In the last year, it shows the right spread.
If im printing Bid and Ask in the past where the tester shows spread 0, there is a difference between Bid and Ask.
Does that mean that even back then, when the tester shows spread 0 is the spread, so the tester is testing with the right realistic spread?
Thanks for answers;)
The spread shown in the Data Window is not the spread of the tick quotes (ask & bid). It is the minimum spread for the entire bar. Don't confuse the two things ...
Simple bar spread indicator as reported by the OnCalculate data
Fernando Carreiro, 2022.05.01 14:05
Very simple indicator to plot the values of the spread[] data as reported by the OnCalculate event handler.
You are misunderstanding it. Let us say you are looking at the M1 chart. Every bar is 1 minute in duration and during that bar you could have hundreds of ticks.
Each tick can change the Bid or the Ask price or both, so there is always a spread. The minimum of those hundreds of spreads is what is recorded and shown the the Data Window.
So if, just one tick out of the hundreds, causes Ask and Bid to be the same, then the minimum spread for that bar is zero, even if the average spread is higher.
You are misunderstanding it. Let us say you are looking at the M1 chart. Every bar is 1 minute in duration and during that bar you could have hundreds of ticks.
Each tick can change the Bid or the Ask price or both, so there is always a spread. The minimum of those hundreds of spreads is what is recorded and shown the the Data Window.
So if, just one tick out of the hundreds, causes Ask and Bid to be the same, then the minimum spread for that bar is zero, even if the average spread is higher.
- www.mql5.com
To create a "fixed spread" Custom Symbol, you need to feed it tick data that has a fixed spread. You can't just load normal tick data with floating spread.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Example:
MetaTrader5 Spread: 15
tester Spread at the same moment: 1.5
So do you need to divide the MT5 spread / 10 to get the right tester spread?
Thanks for answers;)