My system generates pending orders. This works very well. Now I would like to delete my pending order under certain conditions and if the condition is no longer given, then I would like to use the pending order again.
The deletion of the pending order works already. But how can I save the current stop sell or stop buy price before? - I would like to query this ad hoc again live. Probably the request is ridiculously simple. But I am not really a good programmer.... unfortunately I do not get it at the moment.
- Cancel or delete a pending stop order
- delete pending orders
- Changing Pending Order OR Getting the Trigger Price
Ulrich1983: But how can I save the current stop sell or stop buy price before? -
-
Either remember them when you open the order. Or select the order and read them.
Perhaps you should read the manual. Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up. -
There is no need to create pending orders in code.
- The pending has the slight advantage, A) you are closer to the top of the queue (filled quicker), B) there's no round trip network delay (filled quicker.)
- Don't worry about it unless you're scalping M1 or trading news.
- Humans can't watch the screen 24/7, so they use pending orders; EAs can, so no need for pending orders, have it wait until the market reaches the trigger price and just open an order.
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