RWi & RVI

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #116988 quote
    Erem
    Participant
    New

    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

    #117001 quote
    robertogozzi
    Moderator
    Master

    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?

    Random-Walk-Index-RWI.itf x-7.jpg x-7.jpg
    #167261 quote
    robertogozzi
    Moderator
    Master

    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/.

    #191974 quote
    Erem
    Participant
    New

    Hi Roberto, I checked and the one above is correct not the last one you refer to. Shall I elaborate?

    #191981 quote
    robertogozzi
    Moderator
    Master

    No, thanks. I must have overlooked some details.

    #191994 quote
    Erem
    Participant
    New

    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
    #191995 quote
    Erem
    Participant
    New

    Thanks for your quick replies, till next time.

    robertogozzi thanked this post
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

RWi & RVI


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Erem @erem Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by Erem
3 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/16/2020
Status: Active
Attachments: 2 files
Logo Logo
Loading...