RecoverDrawings: Difference between revisions
From MultiCharts
(Created page with "Defines if drawings generated by script at any intrabar calculation are removed after next script calculation or not. == Usage == <syntaxhighlight>[RecoverDrawings = LogicalV...") |
No edit summary |
||
Line 10: | Line 10: | ||
If the attribute is not present in the study's code, RecoverDrawings is set to true by default | If the attribute is not present in the study's code, RecoverDrawings is set to true by default | ||
* [[:Category:Attributes|Attributes]] like the | * [[:Category:Attributes|Attributes]] like the [[RecoverDrawings]] statement are applied at the time of compilation and cannot be changed at run-time. | ||
== Examples == | == Examples == |
Latest revision as of 18:25, 3 March 2017
Defines if drawings generated by script at any intrabar calculation are removed after next script calculation or not.
Usage
[RecoverDrawings = LogicalValue]
Where:
If the attribute is not present in the study's code, RecoverDrawings is set to true by default
- Attributes like the RecoverDrawings statement are applied at the time of compilation and cannot be changed at run-time.
Examples
[RecoverDrawings = False]
if (Close > Close[1]) then
Text_New(Date,Time,High,"UpT");
Will generate text with current bar's date, time, high and UpT text at intrabar and end-of-bar calculations and all of the drawings will stay plotted.
[RecoverDrawings = True]
if (Close > Close[1]) then
Text_New(Date,Time,High,"UpT");
Will generate text with current bar's date, time, high and UpT text at intrabar and at end-of-bar calculations and only the drawings generated at end-of-bar calculations will stay plotted.