I have 4 exponential moving average EMA(5) ,EMA(8) ,EMA(18) ,EMA(28) and 3 Momentum Mom(7),Mom(40),Mom(100)
I had this program in other platform and I would like create the same trading system in ninja trader ,can somobody help me to translate this codes?
Entry long when : cross((EMA(5)>EMA(18) AND EMA(8)>EMA(28)),0.5)
AND Mom(7)>0 AND Mom(100)>0
Exit long when : Cross((EMA(5)<EMA(18) AND EMA(8)<EMA(28)),0,5)
OR Mom(40)<0
Entry short when : Cross((EMA(5)<EMA(18) AND EMA(8)<EMA(28)),0.5)
AND Mom(7)<0 AND Mom(100)<0
Exit short when : Cross((EMA(5)>EMA(18) AND EMA(8)>EMA(28)),0.5)
OR Mom(40)>0

Comment