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

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 Christopher_R, Today, 12:29 AM
            0 responses
            9 views
            0 likes
            Last Post Christopher_R  
            Started by sidlercom80, 10-28-2023, 08:49 AM
            166 responses
            2,235 views
            0 likes
            Last Post sidlercom80  
            Started by thread, Yesterday, 11:58 PM
            0 responses
            3 views
            0 likes
            Last Post thread
            by thread
             
            Started by jclose, Yesterday, 09:37 PM
            0 responses
            8 views
            0 likes
            Last Post jclose
            by jclose
             
            Started by WeyldFalcon, 08-07-2020, 06:13 AM
            10 responses
            1,415 views
            0 likes
            Last Post Traderontheroad  
            Working...
            X