Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How early can I get the user's colors?

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

    How early can I get the user's colors?

    I have seen code using "ChartControl.ChartStyle.DownColor" in OnBarUpdate().

    I was hoping to be able to do the same thing in Initialize(), so that the user's default configuration colors could be set to the user's pre-existing colors. No such luck -- ChartControl is still NULL at that time.

    Is there any way to fetch the user's colors in Initialize()? Doing so any later defeats the purpose, because any later is too late to set up defaults for the configuration dialog.

    --EV

    #2
    Hello EV,

    Unfortunately working with ChartControl is not supported. The supported properties we offer for chart colors are for assigning values and not reading from.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      As I understand the situation,

      (a) There is no supported way to find the user's colors .

      (b) Even if I am willing to take an unsupported way, there is no way to do so soon enough. You did not say so, but you did not answer my question about whether there is anything that can be done as early as Initialize()

      Right?

      Fortunately, it is not critical ... just trying to be nice to the user. I guess I'll have to back off on that one.

      --EV

      Comment


        #4
        That's correct. Although since these properties are not documented / supported we cannot confirm if they will work for your task. Hopefully other community members can share their input with using chart control properties.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          The big deal to me is that I need it by Initialize() if it is to be useful -- I want to use it to set the user's color defaults in the configuration dialog.

          Whether or not using ChartControl is supported, it is not available in time so the point is moot.

          If anyone knows of any way that is available at Initialize() time, please chime in and let me know.

          --EV

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          571 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          331 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
          549 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          549 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X