I want the trade to only take place if price is below or above a certain moving average EMA or SMA. So only take SELL or BUY trade when the signal shows 1 in the relevant box but price is below or above that moving average, if it's not then do not open the trade.
in the excel when we see 1 for either buy or sell, we are putting extra add-on else it keeps opening trades all the time. So unless that particular trade is closed for that pair EA will not open any more trades regardless of signal changing.
this is for any timeframe chart is opened for..example 1min, 5 min 15, 30 etc and so on..EA must see moving average for that timeframe only.