Skip to content

Crosses Operators

By Optuma Team · Updated 2020-06-30

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

This is different to the Greater Than > and Less Than < Operators, as the Crosses operators will only show the first instance the values cross and won’t trigger again until the value has crossed above / below again.

Closing Price Crosses Above 25EMA

**CLOSE() CrossesAbove MA(BARS=25, STYLE=Exponential)

Ex10

Closing Price Crosses Below 25EMA

**CLOSE() CrossesBelow MA(BARS=25, STYLE=Exponential)

Ex11

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.

Close Crossing 5SMA in v1.5 vs v1.6

Crossesequal2
In 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.

Crossesequal1
In Optuma v1.6 the equal values no longer trigger a true result.

Choose which categories of cookies you allow. Strictly-necessary cookies are always on. You can change this any time via the "Cookie Settings" link in the footer.

  • Functional

    Remember preferences like dismissed banners and your dark-mode choice.

  • Analytics

    Help us understand how the site is used so we can improve it.

  • Marketing

    Measure our advertising and help us reach people who may be interested in Optuma.