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 sjsj2732, Yesterday, 04:31 AM
        0 responses
        39 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        290 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        289 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        135 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        96 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X