How to code an EMA slope comparison (Absolute + Math Operation) — Tradetron Community
← Community

How to code an EMA slope comparison (Absolute + Math Operation)

Uncategorized 958 views

Abhishek

(absolute(ema(close,5,0) - ema(close,5,-3)) - absolute(ema(close,13,0) - ema(close,13,-3)) higher than number(0)

Tradetron Team Tradetron team

Build it from Math Operation, Absolute and EMA:

  • A = Absolute(Math Operation(EMA(CLOSE,5,0), EMA(CLOSE,5,−3), '-'))
  • B = Absolute(Math Operation(EMA(CLOSE,13,0), EMA(CLOSE,13,−3), '-'))
  • Condition: Math Operation(A, B, '-') > Number(0) (or simply A > B).

Use −1 and −4 if you want completed candles only. Keyword reference: Keyword Documentation — Tradetron

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.