×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

NoPlot

28 bytes added, 17:14, 4 February 2012
no edit summary
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 ====
<syntaxhighlight>NoPlot(PlotNumber)</syntaxhighlight>
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:
<syntaxhighlight>If High<High[1] Then Begin PlotPaintBar(High,Low,"",Red);
End
Else Begin
NoPlot(1); NoPlot(2);
End;</syntaxhighlight>
 Without the use of NoPlotin 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.
[[Category:Plotting]]

Navigation menu