Difference between revisions of "NoPlot"

From MultiCharts
Jump to navigation Jump to search
m (Reverted edits by 176.8.90.7 (talk) to last revision by JoshM)
 
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 13:11, 13 February 2012

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 the use of NoPlot in this example, 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.