Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Name not show up on indicator list (compiled OK)

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

    Name not show up on indicator list (compiled OK)

    I convert Index indicator from NT7 to NT8, it compiled but name 'Index' won't show on indicator list.
    Attached Files

    #2
    Hello nkhoi,

    Thanks for your post.

    When a Ninjascript does not perform as expected please check the "log" tab for any related error messages.

    It is likely that the indicator is being prevented from being loaded due to an error in the OnStateChange() method and is being removed from the indicators list to prevent further potential issues.

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      Hello nkhoi,

      Thanks for your post.

      When a Ninjascript does not perform as expected please check the "log" tab for any related error messages.

      It is likely that the indicator is being prevented from being loaded due to an error in the OnStateChange() method and is being removed from the indicators list to prevent further potential issues.
      there is nothing on log tab after each compiling

      Click image for larger version

Name:	2018-12-03_1301.png
Views:	214
Size:	86.1 KB
ID:	1041622

      Comment


        #4
        Hello nkhoi,

        Thanks for your reply.

        I am not suggesting a compilation error as compilation errors would not show in the log tab, only in the Ninjascript editor window. A log tab type error would be generated from a "run time" type error where the previously compiled strategy is loaded/used/applied. Do you see any log errors when adding an (any) indicator to a chart?

        Comment


          #5
          I added a indicator and I got error indicator 'Index' error on calling 'on state change' method. Object reference not set.

          Last edited by nkhoi; 12-03-2018, 03:17 PM.

          Comment


            #6
            Hello nkhoi,

            Thanks for your reply.

            You will need to debug your indicator named "Index" to determine what object has not been created when trying to access it.

            Please see our debug tips here: https://ninjatrader.com/support/help...script_cod.htm

            Taking a quick look at the code, it appears that you are trying to dynamically add data series which is not recommended in NinjaTrader 8. Please see the warning notes: https://ninjatrader.com/support/help...dataseries.htm There could be other issues but this was the first one observed.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            559 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            546 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X