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