Difference between revisions of "NoPlot"

From MultiCharts
Jump to navigation Jump to search
(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...")
 
Line 1: Line 1:
 
Removes a specified plot from the current bar.  
 
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.  
 
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 ====
+
==Usage ==
 
<syntaxhighlight>NoPlot(PlotNumber)</syntaxhighlight>  
 
<syntaxhighlight>NoPlot(PlotNumber)</syntaxhighlight>  
  
Where: [[PlotNumber]] - a numerical expression specifying the plot number; plot numbers range from 1 to 999  
+
Where:  
 +
 
 +
:'''PlotNumber''' - a numerical expression specifying the plot number; plot numbers range from 1 to 999.
 
   
 
   
==== Example ====
+
== 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:  
 
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
+
<syntaxhighlight>
PlotPaintBar(High,Low,"",Red);
+
If High < High[1] Then Begin
 +
PlotPaintBar(High,Low,"",Red);
 
End
 
End
 
Else Begin
 
Else Begin
NoPlot(1);
+
NoPlot(1);
NoPlot(2);
+
NoPlot(2);
 
End;</syntaxhighlight>
 
End;</syntaxhighlight>
  
 
+
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.  
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.  
 
 
  
 
[[Category:Plotting]]
 
[[Category:Plotting]]

Revision as of 17:14, 4 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.