Skip to content
All library documents

Random Walk Index for Detecting Trends and Choppy Price Action

Article MQL5 code base

Summary

The Random Walk Index (RWI) is a technical indicator intended to distinguish statistically meaningful price trends from movement that resembles a random walk. It compares observed price ranges over a chosen lookback with the range expected under random movement, scaled by a one-period average true range and the square root of the period length. A larger range is interpreted as stronger directional movement; prices that stray more from a direct path are described as choppy.

The document gives a high-period formula using the high, a lagged low, and the scaled range. It offers no worked example, threshold guidance, empirical performance results, or complete treatment of the downtrend calculation. The indicator therefore provides a conceptual framework and partial formula, but users would need implementation details and testing before relying on it in a trading system.

Key ideas

  • The RWI compares observed price ranges with those expected from random movement.
  • A larger measured range is interpreted as evidence of a stronger trend.
  • The described high-period calculation scales the price range by average true range and the square root of the lookback.
  • The document gives no empirical validation or decision thresholds for using the indicator.

Tags

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