« Back home

EMA and Directional Indicator (DI) crossover

The strategy takes into consideration the 13 and 21 day Exponential Moving Average along with the Directional Indicator (DI). Signals are generated when two conditions are satisfied –

1) 21 day EMA crosses over 13 day EMA

2) Directional indicator positive crosses over directional indicator negative

Buy script

Sell script

Additional notes

DIP = Directional indicator positive
DIN = Directional indicator negative.
DIP and DIN are predefined functions in the Tradescript.