Stop and Limit Orders should be filled at the order price or better. My understanding is that there should not be negative slippage, only positive slippage, or not filled at all.
" Yes, limit orders are only filled at the specified price or better. A buy limit order can only be executed at or below the limit price, while a sell limit order can only be executed at or above the limit price." SEC Reference: https://www.investor.gov/introduction-investing/investing-basics/how-stock-markets-work/types-orders
I see one stop order in your trades. Are you using only stop and limit orders?
I am also working on a hedging EA and am interested in your observations.
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.
Thank you for the correction William about stop orders.
Apparently Oleksandr was correct. Limit orders are not really getting set. Perhaps the quote below is old information, and this is changed "
Per FXSaber: "Before the introduction of hedge TakeProfit open positions were not stored on the exchange in the form of limit orders, but on the MT5 trading server. And at the moment of acceptance, they were sent to the exchange not as limit orders at the declared price, but as market orders at the declared price."
![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
Hello everyone,
I'm using an EA which is working based on hedging strategy. It put several pending orders at the same price, However after triggering prices are not the same.
Can anybody help me to solve the issue?