Comment on Code your Technical Analysis strategy

Chenna commented on 31 Aug 2013, 10:54 AM

Thanks Zerodha for having algo trading. Please help me with the code for below logic.

This code is based on 1 minute candle and is based on 2 sets of EMA crossover only.
logic for buy entry :
one minute EMA(90) crossing over one minute EMA(390) ( meaning the previous minute ema 90 is less than ema 390) and the ema(90) should also be greater than ema(150)
logic for sell entry :
one minute EMA(90) cutting down one minute EMA(390) ( meaning the previous minute ema 90 is greater than ema 390) and the ema(90) should also be less than ema(150)

View the full comment thread »