Hi, can you please write a trade script for the follg strategy: buy if the following condition is satisfied: 1. when price close abv 210 ema in 5 min time frame sell if the following condition is satisfied: 1.when price close below 210 ema in 5 min time frame
For the above condition use 5 minute time frame
Buy Script:
CLOSE > EMA(CLOSE,210)
Sell Script:
CLOSE < EMA(CLOSE,210)
This code is not working in backtest in pi