You don't need MathAbs(Ask-Bid) as some brokers proudly presents their occasionally appearing negative spreads.
lovromirnik:
Hello fellow Traders,
would this be the correct way to calculate spread?
Or
SymbolInfoInteger(_Symbol,SYMBOL_SPREAD); or MarketInfo(_Symbol,MODE_SPREAD);
Thank you both for replying and confirming my code.

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
Hello fellow Traders,
would this be the correct way to calculate spread?