The Internal Variables Section of a Quagensia® N Edition Function
The “Internal Variables (Including Secondary Price Bars, Indicators, Plots, etc.)” section of a Quagensia® N Edition Function contains variable definitions that are used to store values that are part of the internal logic of the function.
To learn more about any item in this section of a Quagensia N Edition Function, place your mouse pointer over any of the following things to view information about the item both in a tooltip that appears and in the Context-Sensitive Help panel:
- The icon to the right or upper right of any item
- The label next to any editable field
- Any list of data types (Information about a data type appears in the Context-Sensitive Help panel only. No tooltip will be displayed.)
- Any column header of the main grid in this section
- Any button on the right side of any row
How To Create Variables in Quagensia T Edition Functions
Quagensia T Edition Functions do not have an “Internal Variables” section where you can define internal variables.
Instead, Quagensia T Edition allows you to define special kinds of variables in a Raw Code Output (Single or Multiple Statements) action’s text box by right clicking in the text box and selecting the variables to define. This method of defining variables becomes absolutely essential when creating Quagensia T Edition Functions, because the only way to create variables that store information in Quagensia T Edition Functions is by using this method in a Quagensia T Edition Action Function.
Quagensia T Edition Expression Functions only have input parameters. They do not have internal variables and you cannot create the special kinds of variables just described in Quagensia T Edition Expression Functions like you can for Quagensia T Edition Action Functions. Workaround: If you need to create a Quagensia T Edition Function that does calculations that must be stored in internal variables and then returns a result, you can create a Quagensia T Edition Action Function instead of an expression function, create an input parameter that can be set by reference, create variables in a Raw Code Output (Single or Multiple Statements) action’s text box by right clicking in the text box and selecting the variables to define, then store the results of the calculations in the variables, then return the final result of the complex calculation by setting the value of the input parameter by reference rather than returning the result as the return value of a Quagensia T Edition Expression Function.