Difference between revisions of "Above"
(Created page with "Used in combination with <syntaxhighlight>Cross</syntaxhighlight> to specify the direction of the cross. <syntaxhighlight>Above</syntaxhighlight> specifies an upward (lesser ...") |
|||
Line 1: | Line 1: | ||
− | Used in combination with | + | Used in combination with [[Cross]] to specify the direction of the cross. Above specifies an upward (lesser to a greater value) direction. |
− | |||
− | The plot of A is defined as having crossed | + | The plot of A is defined as having crossed Above the plot of B if the value of A is greater than the value of B and one of the following is true: |
a) The value of A was less than the value of B on the bar immediately preceding the current bar | a) The value of A was less than the value of B on the bar immediately preceding the current bar | ||
Line 10: | Line 9: | ||
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 less 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 less than the value of B on the bar immediately preceding this sequence of bars. | ||
− | For more information see | + | For more information see [[Cross]]. |
==== Usage ==== | ==== Usage ==== |
Revision as of 12:09, 18 January 2012
Used in combination with Cross to specify the direction of the cross. Above specifies an upward (lesser to a greater value) direction.
The plot of A is defined as having crossed Above the plot of B if the value of A is greater than the value of B and one of the following is true:
a) The value of A was less 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 less than the value of B on the bar immediately preceding this sequence of bars.
For more information see Cross.
Usage
E1
Cross Above
E2
or:
Plot1 Cross Above Plot2
Where: E - a numerical expression
Example
Trigger an alert on the bar where the Close price crosses above 1350.00:
Plot1(Close);
If Plot1 Cross Above 1350.50 Then
Alert("Price has crossed above 1350.00");