What is calculation logic use for ADX — Tradetron Community
← Community

What is calculation logic use for ADX

Strategy 1,457 views

Shaurya Pratap

Hi

May i know what is the calculation logic used for ADX?
Basically while using ADX in condition builder i just get to provide length - which i assume is the DI length
Whereas ADX has a smoothening period as well, what is that period taken into calculation at tradetron?
Also what is the smoothening function used? is it SMA/EMA/RMA/WMA ?

Tradetron Team Tradetron team

The docs don’t say which smoothing period or method (SMA/EMA/RMA/WMA) the ADX keyword uses internally. Here is what is documented:

  • ADX takes one length and returns the Average Directional Index for the instrument and timeframe you pick. Use it inside Position, e.g. Position(ADX(Symbol(<instrument>, '15m'), 14), -1).
  • ADX Smooth is a separate keyword that returns a smoothed ADX series, with its own period input (default 15).
  • DI+ and DI- are available too if you want the directional lines.

If your values differ from your chart

  1. Compare on the same instrument (spot vs futures) and the same timeframe.
  2. Use offset -1 (the last closed candle) on both.
  3. Note candle timing: 30-minute and hourly candles on Tradetron sit on a fixed clock grid, so the first candle of the day can differ from your charting platform.

For the exact formula, ask support (chat on tradetron.tech). 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.