Is there a way to use Buy/Sell Stop Limit order type in MetaTrader 4? The broker i use doesnt have MT5, which has that order type
“A stop-limit order will be executed at a specified price (or better) after a given stop price has been reached. Once the stop price is reached, the stop-limit order becomes a limit order to buy (or sell) at the limit price or better”.
Yes, it's fairly simple thing to implement in MQL4.. If you write down a more specific pseudo-code I can rewrite it in MQl4 for you here.
“A stop-limit order will be executed at a specified price (or better) after a given stop price has been reached. Once the stop price is reached, the stop-limit order becomes a limit order to buy (or sell) at the limit price or better”.
Yes, it's fairly simple thing to implement in MQL4.. If you write down a more specific pseudo-code I can rewrite it in MQl4 for you here.
Capella,
Can you provide a sample script for placing a Buy/Sell Stop Limit order type in MT4? Is it possible to implement in MT4? My first thought was to set the Slippage parameter of the OrderSend() function, but my understanding is that the Slippage parameter is only used for market orders.
Thanks,
Jeff
Is there a way to use Buy/Sell Stop Limit order type in MetaTrader 4?
So maybe a script or EA or something like that will do the job on MT4?
- If you mean programmatically, OrderSend() with Trade operations
- If you mean manual trading, open the new order window and set type to pending.
- If you mean programmatically, OrderSend() with Trade operations
- If you mean manual trading, open the new order window and set type to pending.
OrderSend() with OP_BUYSTOP / OP_SELLSTOP allows you to place a Buy/Sell Stop order. I need to place a Buy/Sell Stop Limit order. This order type includes a maximum slippage above / below the stop price. The OrderSend() Slppage parameter is ignored for pending order types.
The idea is to buy on a breakout to the upside but noy pay too much. I basically want to limit the slippage past the stop price.
Is there a way to use Buy/Sell Stop Limit order type in MetaTrader 4? The broker i use doesnt have MT5, which has that order type.
So maybe a script or EA or something like that will do the job on MT4?
if you find a way to do it, let me know.
thanks.
he/she asked a very brief question but no one undrestand him/her . can anyone write an EA that works as sell/buy stop limit order?
it is when i want price passes a specific price and if return i do my sell/buy (i couldnt explain it more biriefer)
more information about sell/buy stop limit order can be found in MT5
OrderSend() with OP_BUYSTOP / OP_SELLSTOP allows you to place a Buy/Sell Stop order. I need to place a Buy/Sell Stop Limit order.
...But that's not really the same thing...
What are they gonna give us next. A pending order which watches if price bounces off Support & Resistance 3-times before placing the pending order... lol. I'm not picking on you JJC I just find all these cleshay order-types funny. Thats why I don't even bother much with Limit and Stop orders these days. Its almost like the pending order is taking over the job of the EA, while in actuality the EA was created in-part to take over the job of the pending order. Loosing connections and guaranteeing prices is not a good argument for these order-types IMO.
[...] all these cleshay order-types funny.
...no native OCO orders...
Yeah I remember looking for the Order-Cancel-Order command when I first downloaded MetaTrader 4. I was like "what no OCO" this platform sucks lol. Funny how spending time with someone makes you like em.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is there a way to use Buy/Sell Stop Limit order type in MetaTrader 4? The broker i use doesnt have MT5, which has that order type.
So maybe a script or EA or something like that will do the job on MT4?
if you find a way to do it, let me know.
thanks.