EMA 10 & EMA 20 Crossover Strategy — Tradetron Community
← Community

EMA 10 & EMA 20 Crossover Strategy

Strategy 8,104 views

Kunal Singh

Hi,
I would like to create a EMA 10 & EMA 20 crossover trading strategy on tradetron, therefore request forum members to help me with same.

Regards

PREM DAN

here is ema crossover syntax

  1. crosses above

this strategy is based on the 8/20 ema crossover. please make changes as you want in this strategy.

Kunal Singh

Thank you Mr Prem, I have made appropriate changes in my strategy as shown above.

Regards

Sangram Sawant

I have used above condition in condition builder but my strategy is not getting executed…

Lion Algos

May be some syntax error. Paste your code here.

Tradetron Team Tradetron team

A crossover entry uses the Cross keyword (or two Position checks) on the same timeframe.

Buy: Position(Cross(EMA(CLOSE(Symbol(<symbol>, '5m')), 10), EMA(CLOSE(Symbol(<symbol>, '5m')), 20)), -1) == Number(1) (EMA 10 crossed above EMA 20 on the last closed candle)
Exit / sell: swap the two EMAs inside Cross (EMA 20 crosses above EMA 10).

If the strategy is not trading (reply #4):

  1. Check that the instrument, timeframe and expiry are set correctly in both the condition and the Position builder.
  2. Open the deployment’s ⋮ menu → Notification Logs to see which part was false.
  3. A cross happens at one moment. If your Check conditions every interval is long, check on closed candles (-1 vs -2) instead.

Please do not post phone numbers here. For paid help, use https://questionnaire.tradetron.tech/. Keyword inputs: Keyword Documentation — Tradetron

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