RecoverDrawings

From MultiCharts
Jump to: navigation, 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.