akumar
1
I wish to code the following :
buy when hourly candle stick closes above EMA(33)
Exit long position when hourly candle stick touches EMA(133)
Enter short position when hourly candle stick closese below EMA (13)
And exit short postion whne Hourly candle stick closese > EMA(9)
Many thanks in advance.
eagal
2
Buy : - CROSSOVER(CLOSE, EMA(CLOSE, 33))
Exit Long : - CROSSOVER(EMA(CLOSE, 133), CLOSE)
Short : - CROSSOVER(EMA(CLOSE, 13), CLOSE)
Exit Short : - CROSSOVER(CLOSE, EMA(CLOSE, 9))
We can't define Time Frame in Trade script. We have to select Manually while back testing.
akumar
3
Thank you. this is helpful.