Cross



In this page, you will learn about the ‘Cross’ conditions.


‘CROSSOVER’ - On the current bar, the first value is greater than the second value, and on the previous bar, the first value was less than or equal to the second value.
‘CROSSUNDER’ - On the current bar, the first value is less than the second value, and on the previous bar, the first value was greater than or equal to the second value.

This condition is most commonly used for when an indicator crosses over/under its signal line.

For example, if you wanted to code a strategy where one of the entry conditions were:
The RSI crosses above its signal line:
You would input it like this: