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 andrewtrades, Today, 04:57 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by chbruno, Today, 04:10 PM
            0 responses
            6 views
            0 likes
            Last Post chbruno
            by chbruno
             
            Started by josh18955, 03-25-2023, 11:16 AM
            6 responses
            436 views
            0 likes
            Last Post Delerium  
            Started by FAQtrader, Today, 03:35 PM
            0 responses
            7 views
            0 likes
            Last Post FAQtrader  
            Started by rocketman7, Today, 09:41 AM
            5 responses
            19 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X