Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Random Walk Index

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Random Walk Index

    Hello,


    i have a question about the RWI. Use RWI someone in NinjaTrader and can publish the code for it. I have try to understand how i must writing but its so hard. I have it in Prorealtime, but there i can only backtesting one Underlaying in NinjaTrader can backtesting complete Underlayings.

    It were so great. I use the follow code in Prorealtime.

    Code:
    b=0
    d=0
    for i=1 to n do
    	a=(high-low[i])/((averagetruerange[i](close[1]))/SQRT(i))
    	b=max(b,a)
    next
    for i = 1 to n do
    	c=(high[i]-low)/((averagetruerange[i](close[1]))/sqrt(i))
    	d=max(c,d)
    next
    if b<1 then
    	e=-1
    else
    	if d< 1 then
    		e=1
    	else
    	endif
    endif
    f=-2
    ligne=1
    return b as "rwi high",ligne as "ligne1",d as "rwi low",f coloured by e
    n = period (64)

    it were nice when can someone help.


    Silvio

    #2
    I would unfortunately not be aware of a direct port, but the Fractal Dimension might be a good starting point as it falls into the same category - http://www.ninjatrader.com/support/f...90&postcount=1

    Comment


      #3
      Hello,

      yes thank u then i have installed but is not so same. Because they plot not the RWI only the other on chart.


      Regards
      Silvio

      Comment


        #4
        Correct, they would not be the same, but perhaps a start for you - if you would like to get the RWI coded up / ported to NT you can consider contacting a consultant - http://www.ninjatrader.com/partners#...pt-Consultants

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        581 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        338 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        552 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X