I changed the code.
If indicator signal=BUY(longer time frame), then EA attached signal (shorter time frame) order is BUY ONLY.
If indicator signal=SELL(longer time frame), then EA attached signal (shorter time frame) order is SELLONLY.
Note; This indicator is repaint, so sometimes EA can not get signal from the indicator and not open orders!
YOU can check indicator TF signal here;
View attachment 74109
Now TF M15=Buy, so EA will take only buy order every arrow signal but it is sometimes missing trade because of repainting.
View attachment 74110