Knowledge Base
Crosses Operators
Overview
Optuma includes 3 Crosses type Operators for use in Scripting:- CrossesAbove - Looks for instances where Function A crosses above the value of Function B
- CrossesBelow - Looks for instances where Function A crosses below the value of Function B
- Crosses - Looks for instances where Function A crosses above OR below the value of Function B
Examples
Closing Price Crosses Above 25EMACLOSE() CrossesAbove MA(BARS=25, STYLE=Exponential)
Closing Price Crosses Below 25EMA
CLOSE() CrossesBelow MA(BARS=25, STYLE=Exponential)
Optuma v1.6 Update
With the release of the Optuma v1.6 update the Crosses, CrossesAbove and CrossesBelow operators have been adjusted so that values equal to each other do not count as a cross.Example
Close Crossing 5SMA in v1.5 vs v1.6In Optuma v1.5 and earlier you can see in the instances where the Moving Average value and the Closing value matched, the script showed a true result.
In Optuma v1.6 the equal values no longer trigger a true result.