Hi, do you have RWI (Random Walk Index) by E. M. Poulos and RVI (Relative Volatility Index) by D. Dorsey please?
Thanks in advance, best
Erem
As to RWI I think this should be the correct interpretation of its formula (give me some feedback):
// Random Walk Index (RWI)
//
// https://tradingsim.com/blog/random-walk-index/
// https://www.investopedia.com/terms/r/random-walk-index.asp
// http://www.traderpedia.it/wiki/index.php/Formula_Random_Walk_Index
// https://rtmath.net/helpFinAnalysis/html/934563a8-9171-42d2-8444-486691234b1d.htm
//
//p = 10 //number of periods
RWIhi = 0
RWIlo = 0
FOR n = 1 TO p DO
ATRdiv = AverageTrueRange[n](close[1]) * sqrt(n)
//
RWIhiX = (high - low[n]) / ATRdiv
RWIhi = max(RWIhiX,RWIhi)
//
RWIloX = (high[n] - low) / ATRdiv
RWIlo = max(RWIloX,RWIlo)
NEXT
RETURN RWIhi AS "RwiHIGH",RWIlo AS "RwiLOW"
As to RVI, I found this one here https://www.prorealcode.com/prorealtime-indicators/builderrvi/, do you think it’s the one you are looking for?
I just realized that the RWI formula above is incorrect, you will find the correct one at https://www.prorealcode.com/topic/rwi-random-walk-index/.
Hi Roberto, I checked and the one above is correct not the last one you refer to. Shall I elaborate?
No, thanks. I must have overlooked some details.
Any way it misses ,1 at the end as well. I’ve added it below to make ik complete.
// Random Walk Index (RWI)
//
// https://tradingsim.com/blog/random-walk-index/
// https://www.investopedia.com/terms/r/random-walk-index.asp
// http://www.traderpedia.it/wiki/index.php/Formula_Random_Walk_Index
// https://rtmath.net/helpFinAnalysis/html/934563a8-9171-42d2-8444-486691234b1d.htm
//
//p = 10 //number of periods
RWIhi = 0
RWIlo = 0
FOR n = 1 TO p DO
ATRdiv = AverageTrueRange[n](close[1]) * sqrt(n)
//
RWIhiX = (high - low[n]) / ATRdiv
RWIhi = max(RWIhiX,RWIhi)
//
RWIloX = (high[n] - low) / ATRdiv
RWIlo = max(RWIloX,RWIlo)
NEXT
RETURN RWIhi AS "RwiHIGH",RWIlo AS "RwiLOW",1
Thanks for your quick replies, till next time.