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

Indicator not getting into list

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

    Indicator not getting into list

    Hi,

    I found this Index code from shared user apps. Copied to script editor and compile was successful. Only issue is it doesn't show up in the indicator list, though I can see it in the file folder and from script editor.

    I saw in another thread that this could be the Name property is not unique? But I still can't find the problem.



    Thanks.

    #2
    Hi cliffhu, thanks for your post.

    When the indicator list loads, the Index indicator posted does not get through the OnStateChanged method. We get the error in the Log tab of the Control Center:

    Indicator 'Index': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.

    You can use Visual Studio to break upon exceptions to find exactly what is null at this point:



    Please let me know if I can assist any further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hi Chris,
      thx for reply. I was missing a "throw new NotImplementedException();".
      In the meantime multiple indicators are showing which i had added before, but after i excluded them all from the project in VS, they still appear.
      Some of them not even exist as a file.
      Question, where to i handle these indicator appearances which don't exist any more ?
      Are the still listed in another file that i have to cleanup ?

      Comment


        #4
        ok seems i have solved it in the meantime.
        There was set a display name within the code, which confused me because it was not the file name:

        Code:
        public class FH_Yuri_Indicator_Tut_Cur : Indicator
            {
                private const string IndName = "FH_Yuri_Indicator_Tut_Cur";
                private const string IndVersion = " V1";
        
                private const string UserParams = "Parameters";
                private const string UserVisuals = "User Visuals Example";

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kempotrader, Today, 08:56 AM
        0 responses
        7 views
        0 likes
        Last Post kempotrader  
        Started by kempotrader, Today, 08:54 AM
        0 responses
        4 views
        0 likes
        Last Post kempotrader  
        Started by mmenigma, Today, 08:54 AM
        0 responses
        2 views
        0 likes
        Last Post mmenigma  
        Started by halgo_boulder, Today, 08:44 AM
        0 responses
        1 view
        0 likes
        Last Post halgo_boulder  
        Started by drewski1980, Today, 08:24 AM
        0 responses
        4 views
        0 likes
        Last Post drewski1980  
        Working...
        X