Ema crossover trading view strategy for tradetron — Tradetron Community
← Community

Ema crossover trading view strategy for tradetron

Strategy 1,761 views

Tradetron Team Tradetron team

Use the Cross keyword on two EMAs, read on the last closed candle with Position. This matches an EMA crossover on a TradingView chart.

Example: EMA 9 crossing EMA 21 on 15-minute candles

  • Buy entry:
    Position(Cross(EMA(CLOSE(Symbol(<instrument>, '15m')), 9), EMA(CLOSE(Symbol(<instrument>, '15m')), 21)), -1) == Number(1)
    (9 EMA crossed above 21 EMA on the last completed candle)
  • Exit / sell: swap the two EMAs inside Cross, so it fires when the 21 EMA crosses above the 9 EMA.

Steps

  1. Create the strategy, add the entry above in Set 1, and the exit in the same set’s Exit.
  2. Add your leg in the Position builder.
  3. Use the same instrument and timeframe as your TradingView chart. Index values on TradingView may be spot while you trade futures; pick the matching one.
  4. Test in Live Offline and compare signals with the chart.

Cross is 1 only on the bar where the cross happens. For “is above”, compare the two EMAs directly. 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.