BuilderRVI

Category: Indicators By: lolo Created: October 12, 2015, 7:53 PM
October 12, 2015, 7:53 PM
Indicators
0 Comments

RVI – Relative Volatility Index

I have programmed one of the scarce indicators still missing in this wonderful workstation.

RVI is a basic tool to trade on volatility, a very profitable strategy over recent years.

REM RVI (Relative Volatility Index) is in fact a RSI
REM calculated on the standard deviation over the closing prices of 10 days
REM instead of being calculated over daily variations

REM RTLudo's "BuilderRSI" inspired me this code:

upward = (CLOSE > CLOSE[1]) * STD[10]
downward = (CLOSE < CLOSE[1]) * STD[10]

REM Calculating the average profits of upward days
REM and the average losses on downward days

upwardMA = wilderAverage[p](upward)
downwardMA = wilderAverage[p](downward)

REM RS is deducted
RV = upwardMA / downwardMA

REM And finally, the RSI
myRVI = 100 - 100 / (1 + RV)

RETURN myRVI AS"Relative Volatility Index"

Download
Filename: BuilderRVI.itf
Downloads: 168
lolo New
This author is like an anonymous function, present but not directly identifiable. More details on this code architect as soon as they exit 'incognito' mode.
Author’s Profile

Comments

Logo Logo
Loading...