Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with indicator ported to another machine

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

    Problem with indicator ported to another machine

    Greetings,

    I have an indicator that I had running on another computer, version 6.5 of NT. I had used it many times without problems. My old computer died so I installed version 6.5 on my new computer and "imported" the indicator. It now will not run at all even though I have not changed the code. The error in the log is:

    "index and length must refer to a location in the string. Parameter name: length"

    Can somebody please explain why this is happening? Even if I remove the 2 instances of the "length" command within my script it appears several times in the "NinjaScript generated" at the end of the file (which is not to be changed)...how is it my previously running flawlessly indicator is now throwing these nonsensical errors when I haven't changed anything except the computer that is running NT???? Thanks in advance.

    #2
    Burga1, how did you import the script to your new computer? Is that error coming from a line of code that is trying to parse a string into a number?
    AustinNinjaTrader Customer Service

    Comment


      #3
      Hello,

      I imported using the standard built-in tools within NT to import/export NinjaScripts. Yes the length command is to return the number character positions in the string. I have a couple of them but if I comment them out so as to remove them I still get the error...I notice there are a couple more of them in the Ninja Generated code section...so I guess they are throwing the error...?

      Comment


        #4
        Burga1,

        If you post your script we can take a look, otherwise this issue is a little difficult to resolve as there is not enough information.

        Please let me know if I can assist further.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Actually I cannot post my code, I have tried but am informed that it is too long...how can I submit it to you?

          Comment


            #6
            Hi Burga1,

            We can't offer any guarantees that we can fix the code issue you're seeing, but are happy to give it a quick look. You can post the file to these forums or send to support 'at' ninjatrader 'dot' com. Please attach files only and not raw text. Include a link to this thread.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            571 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            330 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            548 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            549 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X