RecoverDrawings

From MultiCharts
Revision as of 13:03, 23 January 2014 by Andrew MultiCharts (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Defines if drawings generated by script at any intrabar calculation are removed after next script calculation or not.

Usage

[RecoverDrawings = LogicalValue]

Where:

LogicalValue - a true/false value: True = Enable; False = Disable.

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.