Random Walk Index...in easylanguage?

Discussion in 'Technical Analysis' started by Shax, May 4, 2022.

  1. Shax

    Shax

  2. Bad_Badness

    Bad_Badness

    Should I do your laundry and wash your car too? Seriously, this is complex enough that if you cannot do it yourself, you will not be able to debug it.
     
    Amatrue likes this.
  3. ph1l

    ph1l

  4. SunTrader

    SunTrader

    Beware cracked code. Who knows if it works, for how long and whether there is anything else in the file you don't want?
     
  5. SunTrader

    SunTrader

    I did a search over on TradeStation forum and found numerous topics with code and whatnot.

    Here is an image of one (think I would have formatted it as a line rather than dot myself):
    ! Mitch.jpg
     
  6. Shax

    Shax

    Here's the formula:

    // Random Walk Index

    input:Len(14);

    Vars:RWIH(0), RWIL(0), ERW(0);

    ERW=AvgTrueRange(Len)*SquareRoot(Len);

    if ERW <> 0 then Begin
    RWIH = (High - Low[Len])/ERW;
    RWIL = (High[Len] - Low)/ERW;
    end;

    Plot1(RWIH , "HRWI") ;
    Plot2(RWIL , "LRWI") ;
    Plot3(1) ;
     
  7. Shax

    Shax

  8. VSTscalper

    VSTscalper

    Here is the Random Walk Index - overlaid on the Daily NQ and YM - set at the Input value. I added the Lines.

    NQ

    RandomWalkIndex.png

    YM

    RandomWalkIndex_YM.png
     
    Last edited: May 28, 2022