Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Relative Volatility Index (RVI) -Correct Version for Amibroker (AFL)
wwfwwf
about 8 years ago
Amibroker (AFL)

Rating:
3 / 5 (Votes 5)
Tags:
oscillator, amibroker

This is correct version of Relative Volatility Index (RVI).
The Relative Volatility Index (RVI) is similar to the Relative Strength Index (RSI) index. Both measure the direction of volatility, but RVI uses the standard deviation of price changes in its calculations, while RSI uses the absolute price changes. The RVI is best used as a confirmation indicator to other momentum and/or trend-following indicators.

Indicator / Formula

Copy & Paste Friendly
xPrice = ParamField("Price",3);
Period  = Param("Period",10,1,100,1);
SD10=StDev(xPrice,Period);
upward = (xPrice > Ref(xPrice,-1)) * SD10;
downward = (xPrice < Ref(xPrice,-1)) * SD10;
upwardMA = wilders(upward,Period);
downwardMA = wilders(downward,Period);
RV = upwardMA / downwardMA;
myRVI = 100 - 100 / (1 + RV);
Plot(myRVI,"Rvi",Colorred,styleLine|styleThick);
PlotGrid(0,ColorRGB(160,32,240));
PlotGrid(20,Colorred);
PlotGrid(80,Colorgreen);

1 comments

1. morgen

Good, thank you.

Leave Comment

Please login here to leave a comment.

Back