Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

what happened to ChartControl Axis Color ?

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

    what happened to ChartControl Axis Color ?

    So far, no luck finding the new version of this in NT8.

    Would like to use it to set the outlines and wicks of candles drawn by indicators to the same color as the chart axis so that they will always be visible regardless of user color setting.

    How do I get the Background color?

    Thanks...

    #2
    Hello,

    I believe that ChartControl.Properties.ChartBackground may provide what you are looking for:

    http://ninjatrader.com/support/helpG...properties.htm

    If not, please let me know, and I'll dig further.
    Dave I.NinjaTrader Product Management

    Comment


      #3
      Here is the sledge hammer approach I tried, based on what Dave said. It does not work. See next newer post.:

      Code:
                               if(ChartControl.Background==Brushes.Black)
      				{
      					OutlineBrush=Brushes.White;
      				}
      			if(ChartControl.Background==Brushes.White)
      				{
      					OutlineBrush=Brushes.Black;
      				}
      Last edited by Ricam; 10-23-2015, 09:58 PM.

      Comment


        #4
        ChatControlBackground does not seem to be the background color.

        When I assign the value of ChartControl.Background to a string and print it to the output window, it seems to always be #00FFFFFF, whether the chart background color is black or white.

        Found something on the forum and this does what I need: overrides the default candle outline color, setting it to the axis color to make sure bar outlines will be visible, just in case outline color was the same as the background color:

        Code:
        OutlineBrush=ChartControl.Properties.AxisPen.Brush;
        Seems to work, that's a start.
        Last edited by Ricam; 10-23-2015, 10:53 PM.

        Comment


          #5
          Yes, that could be done, as well. Comparing the two, your approach in the previous post would seem like the preferred way to accomplish this.
          Dave I.NinjaTrader Product Management

          Comment


            #6
            Don't know what Background is, but it isn't the background COLOR

            The method in post 4 is indeed the preferred way... the method in post 3 just doesn't work at all!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by alifarahani, Today, 09:40 AM
            6 responses
            31 views
            0 likes
            Last Post alifarahani  
            Started by Waxavi, Today, 02:10 AM
            1 response
            17 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by Kaledus, Today, 01:29 PM
            5 responses
            14 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by Waxavi, Today, 02:00 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_LuisH  
            Started by gentlebenthebear, Today, 01:30 AM
            3 responses
            17 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X