Skip to content
All library documents

A Difference Indicator for Open–Close and High–Low Price Ranges

Article MQL5 code base

Summary

This document describes a price-difference indicator that compares current prices with prices from a selected number of periods earlier. It offers two calculation modes: one based on the difference between open and close, and another based on the difference between high and low. Users set a period and choose which calculation method to apply.

The description identifies the indicator’s inputs and the two types of price movement it can display, but it does not specify the exact formula, scaling, or whether the comparison is made to a particular bar’s prices beyond the general reference to N periods ago. Figure captions indicate that examples of both modes are available, but no plotted results or interpretation guidance are included here. The document does not provide entry or exit rules, performance evidence, or advice on choosing a period, so it describes a measurement tool rather than a complete trading strategy.

Key ideas

  • The indicator compares current prices with prices from a chosen number of periods earlier.
  • One mode measures the open-to-close difference.
  • The other mode measures the high-to-low difference.
  • Users select both the calculation period and the calculation method.

Tags

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