New free code from MQL5: indicators, EAs, and scripts for traders.

Williams’ Percent Range indicator
Calculation:
Trade the powerful Traders Dynamic Index strategy automatically with this dedicated TDI Expert Advisor. More details.
Below is the formula of the %R indicator calculation, which is very similar to the Stochastic Oscillator formula:
%R = (HIGH(i-n)-CLOSE)/(HIGH(i-n)-LOW(i-n))*100
where:
- CLOSE - today’s closing price;
- HIGH(i-n) - the highest high over a number (n) of previous periods;
- LOW(i-n) - the lowest low over a number (n) of previous periods.
Level up your trading with professional RobotFX expert advisors and indicators. Visit www.robotfx.org for proven MT4/MT5 tools.
55