Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug in NinjaTrader 8.0.17.1

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

    Bug in NinjaTrader 8.0.17.1

    Hello!
    I have loaded a strategy and in that strategy I have added some indicators in code.
    When I do a refresh of the strategy (F5) after som code changes, it starts adding indicators that I have in code.
    For each press on F5 I get a new indicator.
    When I remove the strategy the indicators stays and cannot be removed.
    It says that indicators that belongs to a strategy cannot be removed.
    Kind Regards
    Kennet

    #2
    Hello kennet,stenberg,
    Thanks for your post.

    Every time you press F5 to reload the strategy adds another indicator? How are you adding the indicator in your code?

    Does this occur if you add the same strategy to a fresh chart?

    Do you see any errors on the logs tab of your Control Center?
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Hello
      I have had to unistall that version because I could not work with it any more.
      Version 8-0-15-1 is working well, so I use that one.
      Here is an example of the code, but I do not think that this is the problem since I've been doing like this for the last two years, at least:
      First a private variable
      private ZiSchaffTrendCycle stc;
      And I have a boolean property (UseSTC) to decide weather to show the indicator or not
      And then in OnStateChange (in State.Configure or State.DataLoaded)
      stc = ZiSchaffTrendCycle(BarsArray[0], Fast, Slow, Smooth, Period, Factor);
      stc.Lines[0].Value = HighLevel;
      stc.Lines[1].Value = LowLevel;
      if(UseSTC)
      AddChartIndicator(stc);

      Comment


        #4
        kennet,stenberg,

        You can only user AddChartIndicator() inside State.DataLoaded. Please make sure you are not using that method inside State.Configure and let me know if the issue persists.

        Josh G.NinjaTrader Customer Service

        Comment


          #5
          Hello again!
          Sorry but the problem is still there after moving the indicators with AddChartIndicator() to State.DataLoaded.
          And it says (Calculating)... all the time and the indicators can not be removed even after I have removed the strategy.
          After restarting NT I can start all over again

          Comment


            #6
            kennet,stenberg,

            Please write in to PlatformSupport(AT)NinjaTrader(DOT)com and reference this forum post. Be sure to include RE:JOSH in the subject line and attach your Log and Trace files to your email so that I may investigate this matter further. You may follow the steps below to attach those files.
            • Open your NinjaTrader folder under My Documents.
            • Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
            • Send the 2 compressed folders as attachments to this email.
            • Once complete, you can delete these compressed folders.
            Josh G.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            71 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            43 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            25 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            28 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            56 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X