NoPlot

From MultiCharts
Revision as of 12:57, 23 January 2012 by 194.84.116.138 (talk) (Created page with "Removes a specified plot from the current bar. A conditional plot that is already drawn will remain even if the conditions become no longer true before the bar is closed. NoP...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Removes a specified plot from the current bar. A conditional plot that is already drawn will remain even if the conditions become no longer true before the bar is closed. NoPlot can be used to remove the conditional plot from the current bar if the conditions are no longer true.

Usage

NoPlot(PlotNumber)

Where: PlotNumber - a numerical expression specifying the plot number; plot numbers range from 1 to 999

Example

The example below uses NoPlot remove the PlotPaintBar plot "painted" over the chart’s bars for which the High price is no longer less then the High price of the previous bar:

If High<High[1] Then Begin
PlotPaintBar(High,Low,"",Red);
End
Else Begin
NoPlot(1);
NoPlot(2);
End;


Without NoPlot, chart’s bars for which a High price was initially less then the High price of the previous bar would remain partially “painted” even if a High price equal to or greater then the High price of the previous bar was reached before the bar was closed.