Skip to content
All library documents

Monitoring Spread and Bar-Close Time on a Chart

Article MQL5 code base

Summary

This chart indicator displays two live values in the lower-right area: the current trading spread and the time remaining until the current bar closes. It is a display aid for traders who want execution-cost context and a quick view of the bar’s remaining duration while watching a chart.

Users can change label colors and positions through the indicator settings. Coordinates must stay within the chart, and a value of -1 restores the labels to their standard placement. The document describes no trading rules, performance evidence, or tested benefits, so the tool should be understood as a visual monitor rather than a signal or strategy.

Key ideas

  • The indicator shows current spread and remaining time until the active bar closes.
  • The two labels appear near the chart’s lower-right corner by default.
  • Users can customize label color and chart coordinates.
  • Setting a coordinate to -1 returns the label to its standard position.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.