The SVEZLRBPercB study is a zero-lag oscillator designed by Sylvain Vervoort. Its principle is akin to PercentB developed by John Bollinger, however, the formula is applied to modified data: price is subjected to smoothing using several moving averages. First of all, the Rainbow Moving Average is used, then the result is consequently subjected to Double and Triple Exponential Moving Average smoothing. This result is used as the basis for bands calculation: standard deviations are calculated for this value, thus yielding the half-distance between the upper and lower bands. Principle of Percent B is then applied to these bands and hlc3 price: basically this study indicates the position of this price relative to the bands. Zero value of the indicator means that the price touches the lower band, reading of 100 indicates that it touches the upper band, and 50 means that it is right in the middle.

The primary plot is also overlayed by a slow stochastic oscillator which is derived from the eponymous indicator with modified input. Instead of the Close price, this oscillator uses a synthetic value obtained from the rainbow-smoothed series, hlc3 and Simple Moving Average (see Sylvain Vervoort's article for details about the math employed). When both oscillators are rising, it might be considered a Buy signal; Sell signal is suggested when both are declining. Divergence between either oscillator and price might signify upcoming trend reversal.

Input Parameters

Parameter Description
price The price with which the Rainbow Moving Average is calculated.
std dev length Defines period on which standard deviation is found.
ema length Defines period on which moving averages are calculated.
num dev The number of standard deviations defining the half-distance between the bands.
k period Defines FastK period for stochastic calculation
slowing period Defines length of moving average for stochastic calculation.


Plot Description
PercentB The PercentB oscillator.
Stochastic The stochastic oscillator.
Lower Level 0.
Middle Level 50.
Upper Level 100.

Further Reading

1. "Oscillators, Smoothed" by Sylvain Vervoort. Technical Analysis of Stocks & Commodities, September 2013.


*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.

You may also like
The Momentum Percent Diff is a momentum-based technical indicator. Unlike the regular Momentum ...
Tick Counter
Tick Counter is a feature available for charts using Tick aggregation. This feature shows ...
The Slow Relative Strength Index is a version of the classic Relative Strength Index (RSI), ...