Skip to content
All library documents

Marking Daily and Weekly Separators on Trading Charts

Article MQL5 code base

Summary

This short description presents a chart utility that draws a vertical separator at the start of each new day. It can display the weekday above the separator, with configurable line style, width, and placement relative to the chart’s price maximum. A distinct color for the first day of the week makes weekly boundaries easier to spot.

The indicator is designed to redraw its separators when chart settings change, keeping them aligned with the displayed time scale. The author notes that the implementation uses a timer callback rather than a chart-event handler. This is a visual aid for organizing price history and distinguishing daily or weekly sessions; the text gives no trading rule, performance evidence, or discussion of how broker session times and market holidays affect the boundaries.

Key ideas

  • The tool marks the beginning of each day with a configurable chart line.
  • Weekday text and line styling, width, and placement can be adjusted.
  • A separate color for the first weekday helps identify weekly divisions.
  • A timer callback is used to refresh separator placement after chart changes.
  • The description provides no strategy or evidence that the visual aid improves results.

Tags

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