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

Calculation
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
Trade the powerful Traders Dynamic Index strategy automatically with this dedicated TDI Expert Advisor. More details.
where:
- CLOSE — is today’s closing price;
- HIGH(i-n) — is the highest high over a number (n) of previous periods;
- LOW(i-n) — is the lowest low over a number (n) of previous periods.
Full description of %R is available in the Technical analysis: Williams Percent Range
Complement community code with advanced automation from RobotFX.
8000