Fernando Carreiro: In MT4 MqlRates ALWAYS has a spread of 0, only MqlTick has a valid spread. Only in MT5 can MqlRates have a valid spread (assuming the MqlRates data was properly collected).
Sorry, for not noticing that at the very beginning, because you did in fact mention MqlRates in your initial post, but since I was assuming that it was on MT5 I did not immediately remember that fact.
Okay, summary: No spread for MqlRates (backtest or live ?). Thank you
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
In MT4 MqlRates ALWAYS has a spread of 0, only MqlTick has a valid spread. Only in MT5 can MqlRates have a valid spread (assuming the MqlRates data was properly collected).
Sorry, for not noticing that at the very beginning, because you did in fact mention MqlRates in your initial post, but since I was assuming that it was on MT5 I did not immediately remember that fact.
Both! MT4 does not store spread information!