Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Chart control bar colors

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

    Chart control bar colors

    In NT7 many indicators make use of the properties of ChartControl for various purposes.
    One purpose is to manipulate the colors of the bars on the chart

    For example to set the bars to be invisible:
    ChartControl.ChartStyle.DownColor = Color.Transparent;
    ChartControl.ChartStyle.UpColor = Color.Transparent;

    How does one set the bar colors to transparent in NT8?

    Later the script will want to set them back to the original color. In NT7 this was done in the Dispose() method. I assume State == State.Terminate would be the equiv in NT8?

    #2
    There is a new ChartBars class which has a properties object that you can obtain the chart style info from



    Code:
    ChartBars.Properties.ChartStyle.DownBrush = Brushes.Transparent;
    Originally posted by Brillo View Post
    Later the script will want to set them back to the original color. In NT7 this was done in the Dispose() method. I assume State == State.Terminate would be the equiv in NT8?
    Yes, State.Terminate would be where you want to clean up/restore settings.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Great! This is working.

      Comment

      Latest Posts

      Collapse

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