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

Unchanged script now giving error

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

    Unchanged script now giving error

    After installing the latest version of NT, some of my indicators give this error;
    Cannot apply indexing with [] to an expression of type 'method group'
    Just opening the indicator and compiling it without changes, now gives the error

    This is the code;
    Code:
    [SIZE=2][FONT=Courier New][SIZE=2][FONT=Courier New]RegressionChannel(regressionLookBackPeriod, [/FONT][/SIZE][/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080]4[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]).Slope[[/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]] > [/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/FONT]
    [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT]
    It is part of an "if" statement.
    Last edited by astrolobe; 08-30-2011, 05:09 AM.

    #2
    astrolobe, could you perhaps email me the script with the issue to support at ninjartrader dot com?

    There were several visual changes in the Regression Channel indicator for R7, but I don't believe this should impact your compilation.

    Thanks,
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,
      If I replace Slope for Upper it compiles. I think the signature of your slope method may have changed. Could you try any simple code that uses the slope of the regression channel to see if you can get it to compile.
      thanks

      Comment


        #4
        Hi astrolobe, thanks and correct, the call to Slope would fail to compile then for me as well - the RegressionChannel indicator would offer those documented values to be accessed : Upper, Lower and Middle

        BertrandNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Hi astrolobe, thanks and correct, the call to Slope would fail to compile then for me as well - the RegressionChannel indicator would offer those documented values to be accessed : Upper, Lower and Middle

          http://www.ninjatrader.com/support/h...on_channel.htm
          But this used to work this morning before I installed the latest update to R7. How do I determine the slope of a regression channel?

          Comment


            #6
            You can use the dedicated Linear Regression Slope indicator / method for this task -

            BertrandNinjaTrader Customer Service

            Comment


              #7
              ok, thanks.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by andrewtrades, Today, 04:57 PM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by chbruno, Today, 04:10 PM
              0 responses
              6 views
              0 likes
              Last Post chbruno
              by chbruno
               
              Started by josh18955, 03-25-2023, 11:16 AM
              6 responses
              436 views
              0 likes
              Last Post Delerium  
              Started by FAQtrader, Today, 03:35 PM
              0 responses
              7 views
              0 likes
              Last Post FAQtrader  
              Started by rocketman7, Today, 09:41 AM
              5 responses
              19 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X