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

bad default settings??

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

    bad default settings??

    Is there any known cause for an indicator to have incorrect default settings when applied to a chart?

    I ask because I am working on an indicator and one of the beta testers just reported an odd bug. When they put the indie on a chart, all of the colors have switched their default values to null, and all objects drawn are grey. They tried restarting and that had no effect. The indie works fine for all the other testers.

    #2
    Hi Antny,

    This is usually caused by having a template for that indicator.

    To check this look in:
    (My) Documents\NinjaTrader 7\templates\Indicator

    If you see a template with the name of your indicator here, delete it.

    Let me know if that does not resolve the issue.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Still no resolution to the issue. They renamed the template so it would not interfere, but it still does it when they load a chart with a template. So, we know it is a template issue.

      Comment


        #4
        Hi Antny,

        If a chart is opened with no template applied and the indicator template is deleted, does this issue still occur?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by Antny View Post
          Is there any known cause for an indicator to have incorrect default settings when applied to a chart?

          I ask because I am working on an indicator and one of the beta testers just reported an odd bug. When they put the indie on a chart, all of the colors have switched their default values to null, and all objects drawn are grey. They tried restarting and that had no effect. The indie works fine for all the other testers.
          Have you serialized the colors correctly?

          Comment


            #6
            Originally posted by NinjaTrader_ChelseaB View Post
            Hi Antny,

            If a chart is opened with no template applied and the indicator template is deleted, does this issue still occur?
            No. As of yet, no one has reported issues when not using a template.

            Comment


              #7
              Originally posted by Harry View Post
              Have you serialized the colors correctly?
              Not sure what you mean by "serialized the colors", so I can't say whether I have or not.

              Comment


                #8
                Hi Antny,

                Below is a link to a thread that demonstrates how to properly serialize a color input.
                http://www.ninjatrader.com/support/f...ead.php?t=4977

                If the chart has no template applied and there is no indicator template as well and the colors are the correct default colors, then it would be likely improperly serialized inputs is the issue.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by NinjaTrader_ChelseaB View Post
                  Hi Antny,

                  Below is a link to a thread that demonstrates how to properly serialize a color input.
                  http://www.ninjatrader.com/support/f...ead.php?t=4977

                  If the chart has no template applied and there is no indicator template as well and the colors are the correct default colors, then it would be likely improperly serialized inputs is the issue.
                  Ah ha! I was not aware of the

                  Code:
                  [XmlIgnore()]
                  and

                  Code:
                  [Browsable(false)]
                  public string PaintColorSerialize
                  {
                       get { return NinjaTrader.Gui.Design.SerializableColor.ToString(paintColor); }
                       set { paintColor = NinjaTrader.Gui.Design.SerializableColor.FromString(value); }
                  }
                  segments of code. I am still not able to replicate the issue either way, so I will have to wait for feedback from my testers. Hopefully I will know something tomorrow.
                  Last edited by Antny; 05-29-2014, 03:25 PM.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Tim-c, Today, 03:54 AM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_BrandonH  
                  Started by rocketman7, Today, 01:00 AM
                  1 response
                  9 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by wzgy0920, 04-23-2024, 09:53 PM
                  3 responses
                  76 views
                  0 likes
                  Last Post NinjaTrader_BrandonH  
                  Started by JonesJoker, 04-22-2024, 12:23 PM
                  9 responses
                  46 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by timko, Today, 06:45 AM
                  1 response
                  7 views
                  0 likes
                  Last Post gaz0001
                  by gaz0001
                   
                  Working...
                  X