anzaisensei:
A pending order is open when it is no longer a pending order . . . when a OP_BUYSTOP or
OP_BUYLIMIT is an open position it becomes a
OP_ BUY
Is there a way to say when a pending order is open??
anzaisensei:
Check the return of OrderType() with pending's ticket and OrderSelect() function. If OrderType() <= 1, your pending is opened.
Hello,
Is there a way to say when a pending order is open??
thank you
onewithzachy:
Check the return of OrderType() with pending's ticket and OrderSelect() function. If OrderType() <= 1, your pending is opened.
Check the return of OrderType() with pending's ticket and OrderSelect() function. If OrderType() <= 1, your pending is opened.
Thank you very much.
It works with OrderType() <= 1 .
anzaisensei:
onewithzachy:
Check the return of OrderType() with pending's ticket and OrderSelect() function. If OrderType() <= 1, your pending is opened.
Thank you very much.
It works with OrderType() <= 1 .
Actually, you have to thank RaptorUK.
I actually wrote it like this : "Check the return of OrderProfit() with pending's ticket and OrderSelect() function. If OrderProfit() != 0, your pending is opened.". Then I read RaptorUK's reply and I re-edited my reply :)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
I try to make a difference between open position and pending order with mql4.
Example : sell limit is similar to sell (OP_SELLLIMIT - OP_SELL).
Is there a way to say when a pending order is open??
thank you