Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Starting NT - Custom Indicator Bug?

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

    Starting NT - Custom Indicator Bug?

    I can't tell if I am doing something wrong here or whether this is a bug.

    When I start the NT environment, the indicators that I have developed seem to partially load. (See the first image.) I have pressed F5, connected to my broker, etc. Nothing seems to make it reload.

    If I remove the instance of my indicator and readd it, everything is fine (see the second image.)

    Is this a bug?

    Thanks!
    Attached Files

    #2
    Hello moflaherty,

    Can you please verify if the behavior only occurs using your custom indicator. Does it occur when you test a default indicator?

    In addition, please take a look at the following link, which will provide critical information regarding code breaking changes regarding NinjaScript in NinjaTrader 7.
    Contains critical information including but not limited to migration, installation, connections and changes.


    Could it be your custom indicator uses code that does not work in version 7?

    What happens if you create a new chart via File-->New-->Chart and subsequently apply the indicator. Does the issue occur as well or does it only occur when you start NinjaTrader and your charts are loaded?

    Comment


      #3
      Answers

      First, this was written for NT7 and then changed to support NT6.5 (NT 3.5 features that are not supported in NT7 were changed to the .NET 2.0 equivalents.) However, it compiles fine in NT7 without any change using the .NET 2.0 code, and the only changes in NT6.5 to make it work are things like BarsPeriod to Bars.Period, etc. It works fine in both NT7 and NT6.5 with essentially the same code.

      When I add an existing indicator (such as the SMA), it opens fine when I restart NT7.

      When I open a new chart and add my indicator to it, it works fine, even with the other charts up that show the problem.

      I can send you the indicator if that helps. It is being designed for a product release, so it is wired with your authentication. If anything, I suspect that might be the cause. I think this is a bug.

      Comment


        #4
        Have you serialized your color parameters for this indicator?
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          ?

          Here is how I exposed the color properties:

          Code:
           
          [Description("Sets the color of the Andrew's Pitchfork.")]
          [GridCategory("Parameters")]
          public Color AndrewsPitchforkColor
          {
          get { return _andrewsPitchforkColor; }
          set { _andrewsPitchforkColor = value;}
          }
          When you say "serialized", is the above done incorrectly?

          Comment


            #6
            moflaherty, have you seen the sample titled User Definable Color Inputs?

            If you post the code here, I'd be happy to take a look at it and see if anything else looks out of place.

            The license verification could very well be the source of the indicator not drawing correctly the first time around.
            AustinNinjaTrader Customer Service

            Comment


              #7
              Test Indicator

              I distilled this down to a simple test. I removed the authentification code and it appears that it is because of the color variables. I am running Win 7 64 bit but the 32 bit version of NT7. Latest beta.

              I am not clear. By referring me to that link/code, are you suggesting that using colors as a public property won't work? Or I am doing something wrong?

              Thanks for looking at this!
              Attached Files

              Comment


                #8
                Fixed

                OK, after investigating your link/example, that does appear to solve the problem (at least in the indicator below.) I will test in my indicator. Thanks for your help!

                Comment

                Latest Posts

                Collapse

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