4 October 2021

This snippet shows how to get current spread as points. If you want it in price then you have to multiply it with point size or get ask and bid difference.

Source code viewer
  1. int currentSpreadPoints = SymbolInfoInteger(Symbol(), SYMBOL_SPREAD);
Programming Language: MQL5