RefreshRates() not working properly or broker price feed frozen, yet order is executed, causing slippage repeatedly

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
Please see an excerpt of my log below in which I recorded order execution details. I have bolded the requested open price and the slippage incurred in pips.
These orders were executed within milliseconds of each other, as you can see by the time stamp.
My Expert Advisor always calls RefreshRates() before every call to OrderSend() or OrderClose(). However, you can see that the requested open price remains the same, and I end up incurring slippage because the actual execution price is different from the price that is obtained by RefreshRates().
So is there someithng wrong with RefreshRates()?
Or is it the broker's fault, in that they had a problem with their price feed, causing it to be temporarily frozen (yet they still accepted and executed orders at their real market price, not the stale quoted price)?
How can we fix or at least work around this problem?