Skip to content
All library documents

Plotting Price Extremes Across Hourly, Daily, and Weekly Windows

Article MQL5 code base

Summary

This script draws horizontal lines at the highest and lowest prices found over user-selected lookback windows. Users can choose whether to show upper lines for highs, lower lines for lows, or both, and can configure the number of bars considered for hourly, daily, and weekly intervals.

The description presents the lines as a way to display historical price extremes at several time scales. It does not specify how prices are sampled, how levels update, or whether they are intended as support, resistance, or trade triggers. No backtest or performance evidence is provided, so the lines are descriptive chart aids rather than a validated strategy on the evidence shown.

Key ideas

  • The script plots horizontal levels at recent price highs and lows.
  • Users can enable high lines, low lines, or both.
  • Lookback lengths can be configured separately for hourly, daily, and weekly timeframes.
  • The document provides no trading rules or evidence that the plotted levels predict price moves.

Tags

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