Skip to content
All library documents

Plotting Multi-Timeframe OHLC Levels with a Bar-Shift Option

Article MQL5 code base

Summary

This indicator description explains how to display the open, high, low, and close associated with a selected period on a chart. It supports multi-timeframe use, so the plotted price levels can come from a timeframe different from the chart’s current one.

A shift input selects which candle supplies the values: zero refers to the current bar, while one refers to the immediately preceding bar. This can help traders inspect prior-period reference levels across chart timeframes. The description gives no trading rules, tested results, or guidance on how to interpret the plotted levels, so it documents a charting feature rather than an evaluated strategy.

Key ideas

  • The indicator plots the selected candle’s open, high, low, and close as price levels.
  • It can display OHLC values from a timeframe different from the chart timeframe.
  • A shift setting selects the current candle or a prior candle as the source.
  • The description contains no evidence that the plotted levels provide a trading edge.

Tags

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