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 cmtjoancolmenero, Yesterday, 02:31 PM
      7 responses
      22 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by hdge4u, 04-29-2024, 12:23 PM
      3 responses
      19 views
      0 likes
      Last Post MisterTee  
      Started by mintos, 04-02-2024, 08:22 PM
      8 responses
      41 views
      0 likes
      Last Post mintos
      by mintos
       
      Started by PaulMohn, 04-24-2024, 03:49 AM
      5 responses
      39 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by claxxical, 05-30-2017, 12:30 PM
      38 responses
      4,481 views
      0 likes
      Last Post alancurry  
      Working...
      X