MetaTrader5
Mastering the Blau Ergodic Oscillator: A Comprehensive Guide for Traders
Author: Andrey N. Bolkonsky
The Blau Ergodic Oscillator, developed by William Blau, is a powerful tool based on the True Strength Index (TSI). If you're interested in diving deeper, check out the book Momentum, Direction, and Divergence: Applying the Latest Momentum Indicators for Technical Analysis.
One of the key features of the Ergodic Oscillator is its signal line, which helps indicate trend reversals.
Buy signal: An upward crossover of the signal line.
Sell signal: A downward crossover of the signal line.
The signal line is derived from smoothing the base line (the Ergodic oscillator or TSI), with its averaging period matching the last averaging period of the base line.
When the base line is above the signal line, the trend is considered upward; conversely, when the base line is below the signal line, the trend is downward.
Make sure to place WilliamBlau.mqh in your terminal_data_folder/MQL5/Include/ directory.
Place Blau_Ergodic.mq5 in your terminal_data_folder/MQL5/Indicators/ directory.
Calculation:
The Ergodic Oscillator is calculated using the following formulas:
Ergodic(price,q,r,s,u) = TSI(price,q,r,s,u)
SignalLine(price,q,r,s,u,ul) = EMA(Ergodic(price,q,r,s,u),ul)
Where:
Ergodic() - Base line: True Strength Index TSI(price,q,r,s,u);
SignalLine() - Signal line: Exponentially smoothed moving average with period ul, applied to Ergodic;
ul - Averaging period of the signal line (according to William Blau, it should equal the last averaging period of the Ergodic line, which must be greater than 1). For example, if Ergodic(price,q,r,s,u)=Ergodic(price,2,20,5,1), then ul=s=5.
Input Parameters:
Graphic Plot #0 - Ergodic (True Strength Index):
q - Momentum averaging period (default q=2);
r - Period of the 1st EMA applied to Momentum (default r=20);
s - Period of the 2nd EMA applied to the result of the first smoothing (default s=5);
u - Period of the 3rd EMA applied to the result of the second smoothing (default u=3);
Graphic Plot #1 - Signal Line:
ul - Smoothing period of the signal line applied to the base line (default ul=3);
AppliedPrice - Price type (default AppliedPrice=PRICE_CLOSE).
Note:
q>0;
r>0, s>0, u>0. If r, s, or u =1, smoothing is not used;
ul>0. If ul=1, the signal and base lines are identical;
Minimum rates = (q-1+r+s+u+ul-4+1).
2011.06.20