Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    BertrandNinjaTrader Customer Service

    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
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by zstheorist, Today, 07:52 PM
        0 responses
        3 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        149 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        5 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        5 views
        0 likes
        Last Post tkaboris  
        Working...
        X