Toufik:
Hi,
SymbolInfoDouble() or MarketInfo() can give the current market spread
Is there a way to know what was the spread for previous 10 or 20 candles ?
Thank you.
https://www.mql5.com/en/docs/series/copyspread
![Documentation on MQL5: Timeseries and Indicators Access / CopySpread Documentation on MQL5: Timeseries and Indicators Access / CopySpread](https://c.mql5.com/36/17/documentation-on-mql5-timeseries__2.png)
Documentation on MQL5: Timeseries and Indicators Access / CopySpread
- www.mql5.com
The function gets into spread_array the history data of spread values for the selected symbol-period pair in the specified quantity. It should be noted that elements ordering is from present to past, i.e., starting position of 0 means the current bar. If you know the amount of data you need to copy, it should better be done to a statically...
Icham Aidibe: https://www.mql5.com/en/docs/series/copyspread
- Why are you posting a MT5 function? This is the MT4 forum.
-
Please use the link button
See the difference? https://www.mql5.com/en/docs/series/copyspread
Messages Editor
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi,
SymbolInfoDouble() or MarketInfo() can give the current market spread
Is there a way to know what was the spread for previous 10 or 20 candles ?
Thank you.