Is it not just slippage? You retrieve Ask and Bid price, but when your trade is filled, values can be changed...
They can also change from the moment when you retreive it, and when you print as a log...
I am using :
price_ask=mt5.symbol_info_tick(symbol).ask
price_bid=mt5.symbol_info_tick(symbol).bid
Because of errors, i carefully checked why i got errors.
Then i found the error, which was the difference of the values obtained by the above functions and
the values provided by MT5.
Check the screenshot. In which, bid price is different by amount of 1, than the price in the MT5 app.
Since you are comparing the value you are sending when opening a position to the value you are getting for the opened position, I would put this into slippage.
This is because you always only know past price values, but cannot predict the order execution price, your order will get.
Since you are comparing the value you are sending when opening a position to the value you are getting for the opened position, I would put this into slippage.
This is because you always only know past price values, but cannot predict the order execution price, your order will get.
maybe it is, it is same sometimes and different sometimes. However, it only shows difference of value of 1, not 2 or 3...
which makes me shit.
Yes, it was slippage. I recorded my screen and checked the video frame by frame. Thanks for your comments.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am using :
price_ask=mt5.symbol_info_tick(symbol).ask
price_bid=mt5.symbol_info_tick(symbol).bid
Because of errors, i carefully checked why i got errors.
Then i found the error, which was the difference of the values obtained by the above functions and
the values provided by MT5.
Check the screenshot. In which, bid price is different by amount of 1, than the price in the MT5 app.
Where, the function returns 1.09776 while MT5 provides 1.09777.