Documentation/AlgoCode/Function reference

operators

Arithmetic, comparison, and grouping. English forms (is above, and) are preferred in rules.

Reference/Language basics/Language

+  -  *  /  ==  !=  <  >  <=  >=  ( )

Bar-by-bar math on series. Parentheses group. You can write rsi(14) > 70 or rsi(14) is above 70. Use and / or / not for logic, not && / ||.

Return value

series or boolean

Note

  • Division by zero is na.
  • English: is above, is below, crosses above, and, or, not.

Example

body = abs(close - open)
when rsi(14) > 70 and body is above atr(14)
  exit

See also