Skip to content
All library documents

A Vertical Bar Timer Showing Progress Through the Current Candle

Article MQL5 code base

Summary

The document describes a MetaTrader indicator that displays how much time has elapsed since the current chart bar began, expressed as a share of that bar’s full duration. It uses current-timeframe data, adds a sound alert when a new bar starts, and is available in rising and falling visual variants. The implementation extends a canvas-based indicator library with two classes for drawing the vertical forms.

The text gives implementation context rather than trading evidence: it refers to an accompanying article about custom indicators and infographics and notes that the indicator originated as an earlier MQL4 implementation before being published for MQL5. Compilation depends on placing the included library folder in the terminal’s expected location. The document does not explain a trading rule, test whether bar-progress information improves decisions, or discuss behavior across markets and timeframes. The tool is best understood as a charting aid for monitoring candle timing, not as a standalone signal.

Key ideas

  • The indicator visualizes elapsed time within the active bar as a percentage of its duration.
  • It uses current-timeframe data and can alert the user when a new bar begins.
  • Two visual variants represent rising and falling vertical displays.
  • The implementation relies on canvas library classes and requires the associated files to compile.
  • The document provides no evidence that the display produces profitable trading signals.

Tags

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