Question: if(close[1] < ema_9 && close > ema_9 && smma_21 > smma_50 && smma_50 > ema_200 && !long_entry) { if(high_15min > ema_9 && low_15min > ema_9
if(close[1] < ema_9 && close > ema_9 && smma_21 > smma_50 && smma_50 > ema_200 && !long_entry) { if(high_15min > ema_9 && low_15min > ema_9 && close_15min > smma_21) { if(high_5min > ema_9 && low_5min > ema_9 && close_5min > smma_21) { if(high_1min > ema_9 && low_1min > ema_9 && close_1min > smma_21) { long_entry = true; long_stop_price = low - stop_loss * _Point; OrderSend(_Symbol, OP_BUY, 0.1, Ask, 3, long_stop_price, Ask + take_profit * _Point, "Long Trade", MagicNumber, 0, Blue); } } } }
can you help me debug this?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
