help ,my ea delays opening of orders and trailing stop

 

Hello everyone,

please i need your help on this ea (attached).

the issue is that it delays opening of orders when it matters most,even when all my signals are true, sometimes it opens an order 4 candles after all the signals have been confirmed, meanwhile i programmed it to open an order,once all the signals are true on the last bar.

also i expect it to modify the stoploss once on every candle, but i discovered that it modifies the trailing stop only at random.

Please help me out.

Files:
williams.mq4  7 kb