Condition not taking any trades for EMA strategy? — Tradetron Community
← Community

Condition not taking any trades for EMA strategy?

Strategy 2,308 views

Ujjwal

Hi, Below is my strategy, and attached is the entry condition that I have defined. It’s not taking any trades. Kindly check. Thanks

Setup :

Apply EMA 50 to high price,

Apply EMA 15 to close price, and

Apply EMA 50 to low price.

Buying Conditions

● 15 EMA (black color) should cross above all the moving averages.

Umesh Ranglani Tradetron team

Hi Ujjwal,

All technical indicator keywords has to start with position keyword.

That’s why your strategy is not taking any trades.

Piyush Kamra

Also from the looks of it, if this is the complete strategy it may not work a lot. Only in rare cases where both crossovers happen exactly at the same candle will this condition work.

From your description, the strategy should be something like:

At [-1] EMAC15 > EMAH50 AND EMAL50
At [-2] EMAC15 < EMAH50 OR EMAL50

EMAC15 is 15 period EMA on Close
EMAH50 is 50 period EMA on High
EMAC50 is 50 period EMA on Low

Dr Banajit Pathak

Hi , your strategy is all done ?
sorry for pulling up old post .
thanks

Tradetron Team Tradetron team

Two things stop this strategy from trading.

  1. Indicator values must be read through the Position keyword (e.g. Position(EMA(...), -1)), as staff noted. A bare indicator compares a series, not one candle’s value.
  2. The condition only fires on the exact candle where both crossovers happen together, which is rare. Split it by candle instead:
    • At candle -1: EMA15(close) > EMA50(high) AND EMA15(close) > EMA50(low)
    • At candle -2: EMA15(close) < EMA50(high) (the crossing candle)

Run it in Live Offline and open the deployment’s Notification Logs to see each condition’s value. 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.