Type : Function, Name : RAVI
input:
price(numericseries),
fast(numericsimple),
slow(numericsimple);
value1=average(price,fast);
value2=average(price,slow);
RAVI = absvalue(100*(value1-value2)/value2);
Type : Indicator, Name : Chande’s RAVI II
input:
price(C),
threshold(3),
fast(5),
slow(65);
plot1(RAVI(price,fast,slow),»RAVI»);
plot2(threshold,»threshold»);