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 Mindset, Today, 06:46 AM
      0 responses
      8 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, Yesterday, 05:21 PM
      0 responses
      14 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      15 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      82 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      48 views
      0 likes
      Last Post PaulMohn  
      Working...
      X