Bollinger Bands Strategy: Delay in execution with larger deviation settings - page 2

 
2OT 3OT #:

1. I have just added slippage of 20, and the issue still persists.

2. This is an excerpt of the code. I have included whether trades are open using the magic number in the full code, ensuring only 1 trade opens. I have also done it by checking if a order of the same symbol is open. Still the issue persists.

It appears that the problem is not in the snippet of code that you posted, but in the remainder of the code. If you can not post all of the code, how can we help?

Post the bit of code that you mean by "ensuring only 1 trade opens". Maybe your logic is wrong here. Post that so we can see your logic here.