• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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?
    JoshNinjaTrader 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.

        https://ninjatrader.com/support/help...tindicator.htm
        JoshNinjaTrader 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.
            JoshNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by aligator, Today, 12:29 PM
            0 responses
            3 views
            0 likes
            Last Post aligator  
            Started by bob77713, Today, 11:30 AM
            0 responses
            0 views
            0 likes
            Last Post bob77713  
            Started by FMtrader, 03-15-2019, 02:30 AM
            6 responses
            34 views
            0 likes
            Last Post James108  
            Started by timko, Today, 08:18 AM
            0 responses
            2 views
            0 likes
            Last Post timko
            by timko
             
            Started by victorsmith, Today, 06:00 AM
            0 responses
            5 views
            0 likes
            Last Post victorsmith  
            Working...
            X