Skip to content
All library documents

Comparing Bar-Based Price Changes with Rolling Intraday Windows

Article MQL5 code base

Summary

The described quote display reports the current bid, percentage change, high, low, and range for a selected bar or a chosen number of prior bars. The percentage change is measured against the open of the reference bar. For example, selecting the current daily or hourly bar compares the current price with that bar's open, so the reference resets when a new bar begins.

A rolling window can instead be built from shorter bars. The example uses sixty one-minute bars to measure the last hour, comparing price with the open sixty minutes earlier and calculating high, low, and range across the same lookback. The document says this follows the recent hourly trend without resetting at each clock hour. It explains the difference in reference periods, but supplies no signal rules, backtest, or evidence that either view predicts future returns. The displayed measures are descriptive context, and their usefulness depends on the market and trading decisions in which they are applied.

Key ideas

  • The display reports bid price, percentage change, high, low, and range for a selected period.
  • A bar-based change compares current price with the open of the selected bar.
  • A rolling window of shorter bars can track a recent interval without resetting at fixed hour boundaries.
  • The document describes measurements but does not provide trading signals or performance evidence.

Tags

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