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

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 frslvr, 04-11-2024, 07:26 AM
          9 responses
          123 views
          1 like
          Last Post caryc123  
          Started by rocketman7, Today, 09:41 AM
          4 responses
          16 views
          0 likes
          Last Post rocketman7  
          Started by selu72, Today, 02:01 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Zachary  
          Started by WHICKED, Today, 02:02 PM
          2 responses
          16 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Started by f.saeidi, Today, 12:14 PM
          8 responses
          21 views
          0 likes
          Last Post f.saeidi  
          Working...
          X