Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Replay Mode Strange Error: Input string was not in a correct format.

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

    Replay Mode Strange Error: Input string was not in a correct format.

    Hello,

    I started to get the following error all of a sudden when enabling strategy in replay mode.

    Error on calling 'OnBarUpdate' method for strategy 'HedgingStr/ebe941fee73744abaa044938224f2bb9': Input string was not in a correct format.

    Any idea what might be causing it? I did repair DB and using the latest Ninja 7 version.

    All was working fine, and I started to get it after one of the replay rewinds.

    Thanks,
    redduke

    #2
    Can't say I've seen this.

    Any luck with restarting NT?

    I usually always restart NT after a replay... just performs so much better instead of degrading performance with each subsequent run (with a 30 hour test over 19 months, anything longer is just even more insane).

    Comment


      #3
      I did restart. Few time actually. Did not help. It just started to happen out of the blue.

      Comment


        #4
        Hi RedDuke,

        Are you able to enable the strategy when connected to a real time feed?

        If you make a copy of the script with a different name, does the copy also have this error?

        Can you post a reduced version of the script that can reproduce?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi Chelsea,

          It does work fine on real feed on another computer. I downloaded it, recompiled but still get the same error. I will try real time feed on the computer where the issue is. I will also try a different name.

          Thanks

          Comment


            #6
            Coping Strategy to a new file and renaming it fixed the issue. Very bizarre, would be great to find out what caused this issue.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            630 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            566 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X