Difference between revisions of "Below"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Used in combination with <syntaxhighlight>Cross</syntaxhighlight> to specify the direction of the cross. <syntaxhighlight>Below</syntaxhighlight> specifies a downward (greate...")
 
Line 1: Line 1:
Used in combination with <syntaxhighlight>Cross</syntaxhighlight> to specify the direction of the cross.  
+
Used in combination with [[Cross]] to specify the direction of the cross.  
<syntaxhighlight>Below</syntaxhighlight> specifies a downward (greater to a lesser value) direction.  
+
[[Below]] specifies a downward (greater to a lesser value) direction.  
  
The plot of A is defined as having crossed <syntaxhighlight>Below</syntaxhighlight> the plot of B if the value of A is less than the value of B and one of the following is true:  
+
The plot of A is defined as having crossed [[Below]] the plot of B if the value of A is less than the value of B and one of the following is true:  
  
 
a) The value of A was more than the value of B on the bar immediately preceding the current bar,  
 
a) The value of A was more than the value of B on the bar immediately preceding the current bar,  
Line 10: Line 10:
 
b) The values of A and B were equal for a consecutive sequence of one or more bars immediately preceding the current bar and the value of A was more than the value of B on the bar immediately preceding this sequence of bars.  
 
b) The values of A and B were equal for a consecutive sequence of one or more bars immediately preceding the current bar and the value of A was more than the value of B on the bar immediately preceding this sequence of bars.  
  
For more information see <syntaxhighlight>Cross.</syntaxhighlight>
+
For more information see [[Cross.]]
 
   
 
   
 
==== Usage ====
 
==== Usage ====
Line 19: Line 19:
 
<syntaxhighlight>Plot1 Cross Below Plot2</syntaxhighlight>  
 
<syntaxhighlight>Plot1 Cross Below Plot2</syntaxhighlight>  
  
Where: <syntaxhighlight>E</syntaxhighlight> - a numerical expression  
+
Where: [[E]] - a numerical expression  
 
   
 
   
 
==== Example ====
 
==== Example ====
Trigger an alert on the bar where the Close price crosses below 1350.00:  
+
<syntaxhighlight>Trigger an alert on the bar where the Close price crosses below 1350.00:  
  
<syntaxhighlight>Plot1(Close);
+
Plot1(Close);
 
If Plot1 Cross Below 1350.50 Then
 
If Plot1 Cross Below 1350.50 Then
 
Alert("Price has crossed below 1350.00");</syntaxhighlight>  
 
Alert("Price has crossed below 1350.00");</syntaxhighlight>  

Revision as of 12:32, 20 January 2012

Used in combination with Cross to specify the direction of the cross. Below specifies a downward (greater to a lesser value) direction.

The plot of A is defined as having crossed Below the plot of B if the value of A is less than the value of B and one of the following is true:

a) The value of A was more than the value of B on the bar immediately preceding the current bar,

or

b) The values of A and B were equal for a consecutive sequence of one or more bars immediately preceding the current bar and the value of A was more than the value of B on the bar immediately preceding this sequence of bars.

For more information see Cross.

Usage

E1 Cross Below E2

or:

Plot1 Cross Below Plot2

Where: E - a numerical expression

Example

Trigger an alert on the bar where the Close price crosses below 1350.00: 

Plot1(Close);
If Plot1 Cross Below 1350.50 Then
Alert("Price has crossed below 1350.00");