Boolean Operator checking whether a curve has crossed over another one.
Syntax:
1 |
a CROSSES OVER b |
Example:
1 2 3 4 5 6 7 8 9 10 11 12 |
a = ExponentialAverage[20](close) b = ExponentialAverage[50](close) signal = 0 if(a[1] CROSSES OVER b[1]) THEN signal = 1 ELSE signal = 0 ENDIF RETURN signal AS "Bullish Signal" |