Used in variable declaration statements, before a variable name, to specify that the value of the variable is to be updated on every tick and the latest value of this variable is to be saved after the study recalculation.
(BarsBack) - numerical expression, specifying the number of bars back
- This keyword can be used only with variables.
- The variable with such an attribute cannot be serial type.
Declare Max as a numerical value, updated on every tick, with initial value of 100.
After study recalculation, the latest value of Max will be saved:
This link has an example of the recalculate command and the RecalcPersist command showing how they work with a fileappend command to show the results. http://www.multicharts.com/discussion/viewtopic.php?f=5&t=10371