Skip to content
All library documents

ExchangePrice Indicator for Comparing Current and Past Prices

Article MQL5 code base

Summary

The ExchangePrice indicator displays how the current price has changed relative to the price a specified number of bars earlier. It uses two bar-count inputs, one short and one long, to define the comparison points. This makes it a simple price-change measure that can be used to inspect movement over different lookback horizons.

The description notes that the indicator was first implemented in MQL4 and published in 2013. It gives no formula beyond the stated comparison, chart example details, parameter guidance, or trading rules. It also provides no evidence that the measure predicts returns or improves entries. Users should treat it as a descriptive indicator and establish their own conventions for price selection, lookback lengths, and signal interpretation before incorporating it into a strategy.

Key ideas

  • The indicator compares the current price with prices from two configurable bar counts in the past.
  • Its output represents price change across the chosen lookback horizons.
  • The description provides no parameter recommendations or trading strategy.
  • No performance evidence is supplied to establish predictive value.

Tags

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