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 mmckinnm, Today, 01:34 PM
            0 responses
            2 views
            0 likes
            Last Post mmckinnm  
            Started by f.saeidi, Today, 01:32 PM
            0 responses
            2 views
            0 likes
            Last Post f.saeidi  
            Started by traderqz, Today, 12:06 AM
            9 responses
            16 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by kevinenergy, 02-17-2023, 12:42 PM
            117 responses
            2,766 views
            1 like
            Last Post jculp
            by jculp
             
            Started by Mongo, Today, 11:05 AM
            5 responses
            15 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X