Skip to content
All library documents

Displaying the Price Ranges of the Three Most Recent Candles

Article MQL5 code base

Summary

This document describes an indicator that displays the price-change ranges of the three most recent bars for a selected trading instrument. The trader chooses the timeframe in the indicator settings, so the displayed ranges correspond to the last three candles on that selected interval. This can provide a compact view of recent bar size and short-term price movement.

The text does not define a trading signal, explain how the ranges are calculated, or provide examples of using them in a strategy. It contains no backtest or evidence that candle ranges alone predict future price changes. The indicator also relies on a font-name library file that must be available in the platform’s include directory. Its scope is descriptive: it summarizes recent candle ranges rather than prescribing entries, exits, or risk controls.

Key ideas

  • The indicator reports price ranges for the three latest candles.
  • The user selects the timeframe used to identify those candles.
  • The display can help summarize recent bar size and price movement.
  • No strategy rules or performance evidence are included.
  • The indicator requires an additional font-name library dependency.

Tags

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