Skip to content
All library documents

Charting Daily, Weekly, Monthly, Quarterly, and Yearly Boundaries

Article ProRealCode

Summary

This document presents a chart indicator that draws vertical lines when the bar series crosses calendar boundaries. Separate display switches control daily, weekly, monthly, quarterly, and yearly markers, with distinct colors and line styles used to distinguish the periods. The logic detects changes in day, week, month, or year fields and marks the corresponding bar index; quarterly markers are placed at the start of selected months.

The stated purpose is to make time periods easier to see on a price chart. The author says they were unable to extend the indicator to show these periods one year into the future, so the supplied method is limited to marking boundaries that occur in the available chart data. The post includes code but no examples, testing results, or discussion of how the platform handles missing bars, market holidays, or instruments that trade continuously. A separate section concerns site privacy and does not add trading guidance.

Key ideas

  • The indicator marks calendar transitions with vertical lines on a price chart.
  • Users can toggle daily, weekly, monthly, quarterly, and yearly markers independently.
  • Quarter starts are detected from the first month of each calendar quarter.
  • The author does not provide a method for projecting calendar boundaries into future chart space.

Tags

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