I'm designing a new EA that has multiple pending orders. However since the DeleteP function cant be connected to an AND operator I need to custom code an MQL block. Basically when the price is between 2 variables (prices) the pending order needs to be closed.
If I just use one variable it works, but with 2 it doesnt? I dont know anything about programming can someone steer me in the right direction?
I used the following code:
Code:
MODE_BID>1.0000 && MODE_BID<1.0100
(So if the price is between 1.0000 and 1.0100 the pending order needs to be closed)
Thanks in advance for the help!