Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


Random Walk Index - indicator for MetaTrader 5

Mladen Rakic | English Русский 中文 Español Deutsch 日本語 Português

votes: 12
2018.07.23 15:07

The Random Walk Index (RWI) is a technical indicator that attempts to determine if a stock's price movement is of random nature or a result of a statistically significant trend.

The Random Walk Index attempts to determine when the market is in a strong uptrend or downtrend by measuring price ranges over N and how it differs from what would be expected by a random walk (randomly going up or down). The greater the range suggests a stronger trend. The RWI states that the shortest distance between two points is a straight line and the further prices stray from a straight line, implies the market is choppy and random in nature.

Random Walk Index Formula

The Random Walk Index determines if a security is in an uptrend or downtrend. For each period the RWI is computed by calculating the maximum of the following values for high periods:

(HI - LO.n) / (ATR.1(n) * SQRT(n))


Compared to the original QQE indicator, this version instead of using trailing levels uses fixed levels to estimate overbought and oversold conditions. This version is also using RSX (a smoother RSI without a lag) in order to further purify the signals.


Compared to the original QQE indicator this version is adding fixed levels (to help further estimate the trend) and color changing histogram (based on those levels), and also using RSX (a smoother RSI without a lag) in order to further purify the signals.

Random Walk Index - JMA Smoothed Random Walk Index - JMA Smoothed

In order to avoid the too many signals that the regular Random Walk Index tends to produce, this version is using JMA for smoothing which significantly lessens the number of false signals.

Choppiness Index Choppiness Index

Choppiness Index: another way of calculating fractal dimension.