NoPlot

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