"The New Relative Volatility Index indicator was designed by Donald Dorsey"
{New Relative Volatility Index (Modified)}
prd1:=Input("New RVI Periods",1,1000,14);
prd2:=Input("Deviations Periods",1,1000,10);
(100*Mov(If(H>Ref(H,-1),Std(H,prd2),0),prd1,E)/(Mov(If(H>Ref(H,-1),Std(H,prd2),0),prd1,E)+Mov(If(H<Ref(H,-1),Std(H,prd2),0),prd1,E))+100*Mov(If(L>Ref(L,-1),Std(L,prd2),0),prd1,E)/(Mov(If(L>Ref(L,-1),Std(L,prd2),0),prd1,E)+Mov(If(L<Ref(L,-1),Std(L,prd2),0),prd1,E)))/2;
