Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 5 Indicator | Spread Monitor | MQL5 Code

Discover expert developed MetaTrader tools that can complement professional solutions.

Image for Spread Monitor


What ideas is the code based on:

Smooth out market noise with the Heiken Ashi Expert Advisor for MT4 and MT5. Reliable trend-following automation. Details here.

Spread expansion and negative swaps can silently reduce a trader's profit, especially during high volatility news events or rollover hours. This lightweight information panel tracks key contract specifications in real-time directly on the active chart. It eliminates the need to constantly open the Market Watch properties tab.

How indications can be interpreted:
The text dashboard displays the current symbol name, real-time spread in points, and swap sizes for both long and short positions. It updates dynamically on every incoming tick or every second via a built-in timer mechanism.

Description of external variables (Inputs):
- InpTextColor: Allows full customization of the font color to match any light or dark chart theme.
- InpFontSize: Adjusts the panel text size for high-resolution screens.
- InpCorner: Lets you anchor the dashboard to any of the 4 corners of your chart screen.

Recommended usage:
- Symbol: Universal (Forex, Gold, Crypto).
- Timeframe: Any chart period.

Thanks for reading. Discover premium MetaTrader solutions at RobotFX.

73129

Best MetaTrader Indicators + Profitable Expert Advisors