In the Quagensia® Desktop Application’s terminology, an action does something more than merely calculating a value or evaluating an expression. Examples of actions include submitting an order, drawing something on the chart, setting a variable, or executing code multiple times in a loop.
A Quagensia Action Function is a Quagensia Function that does one or more actions or might do one or more actions under certain circumstances such as if a set of conditions evaluate to true. Since a Quagensia Action Function is an action itself, it can be used in the same locations that other actions can be used.
Every edition of Quagensia comes with many Quagensia Action Functions in the “Algos from Quagensia” folder of the Algo Explorer.
You can also create your own Quagensia Action Functions or acquire them from a highly trusted source such as a co-worker and place them in your “My Algos” folder or a subfolder of the “My Algos” folder, then access them by clicking on a location where the Quagensia Action Function is allowed. This allows you to greatly extend the capabilities of your installation of Quagensia with proprietary actions that simply cannot be done with the action functions that come with your installation of your edition of Quagensia and also allows you to create a single function that contains a set of multiple actions that you find yourself using frequently and prefer to add with a single action instead of having to constantly copy and paste the multiple actions between algos and then update all places you have copied and pasted the multiple actions whenever you decide on an improvement to the multiple actions.
Using a Quagensia Action Function is no different than using a Quagensia action that does not come from a Quagensia Action Function, such as the action that lets you set a variable or the actions that make it possible to execute code multiple times in a loop. You can add a Quagensia Action Function to your Quagensia Strategy or Quagensia Function by clicking anywhere on the algo’s workspace where the specific Quagensia Action Function is allowed, and then clicking the context menu item that adds the specific Quagensia Action Function to your algo’s trading logic.