Boolean Operator checking whether a curve has crossed under another one.
Syntax:
1 |
a CROSSES UNDER 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 UNDER b[1]) THEN signal = -1 ELSE signal = 0 ENDIF RETURN signal AS "Bearish Signal" |