Make the distance between the price of your pending order about 50-100 points from the current price, then your pending order will definitely be successfully placed. If it is too close to the current price, it will be rejected.
https://www.mql5.com/en/docs/constants/structures/mqltraderequest
![Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Trade Request Structure Documentation on MQL5: Constants, Enumerations and Structures / Data Structures / Trade Request Structure](https://c.mql5.com/36/53/documentation-on-mql5-constants__19.png)
- www.mql5.com
Make the distance between the price of your pending order about 50-100 points from the current price, then your pending order will definitely be successfully placed. If it is too close to the current price, it will be rejected.
https://www.mql5.com/en/docs/constants/structures/mqltraderequest
Thanks Jacobs, are you aware about any ready script to apply this? I am not MQL programmer myself.
Also, to be clear broker has 100 points restrictions for limitstop. So I am looking for script/ea/indicator which can read prices and allow me to have my own limitstop level so I can set the pending order in EA/Indicator/Script and it will trigger and send order as market order so no chances of rejections.
Thanks Jacobs, are you aware about any ready script to apply this? I am not MQL programmer myself.
Also, to be clear broker has 100 points restrictions for limitstop. So I am looking for script/ea/indicator which can read prices and allow me to have my own limitstop level so I can set the pending order in EA/Indicator/Script and it will trigger and send order as market order so no chances of rejections.
Here's an sample EA from Guru Vladimir Karputov https://www.mql5.com/en/code/20304
![EA Stop Order EA Stop Order](https://c.mql5.com/36/55/ea-stop-order.jpg)
- www.mql5.com
Hi, Is there any expert or script where I can place pending order and it will trigger order as market order.
Required this because some brokers don't allow placing pending orders near market, so the expert/script will allow me placing the order and will trigger it as market.
-
Makes no sense, as a pending order becomes a market order when price hits.
- 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.
-
Makes no sense, as a pending order becomes a market order when price hits.
- 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 orderIt make
It makes perfect sense to want to use market orders instead! Pending orders are not always filled and market orders allow for some slippage but ensure your orders are filled. There are several expert advisors that use pending orders instead, which I would agree is absurd, it is why I am here, looking for an ea that can delete pending orders and re-execute them as market orders.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, Is there any expert or script where I can place pending order and it will trigger order as market order.
Required this because some brokers don't allow placing pending orders near market, so the expert/script will allow me placing the order and will trigger it as market.
Thank You