Forex Random Walk Index Indicator:
The Random Walk Index indicator is used in situations where it is necessary to determine whether the market instrument is in a developing trend or performs random motion in a trading range.
This indicator tries to do it by defining a trading range of the market instrument first. The next step is to calculate a series of RWI indices for a maximum of the analyzed period. The greatest movement of the index relative to RW is used as the current index. The market develops an uptrend, if RWI of highs > 1, while the downtrend is when RWI of lows > 1.
Copy and paste the file into the MQL5 Indicators folder of the Metatrader 4 trading platform.
You can access this folder from the top menu as follows:
File > Open Data Folder > MQL5 > Indicators (paste here)