Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Coloring chart data on Box and Line on Close charts

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

    Coloring chart data on Box and Line on Close charts

    I noticed that setting BarColor and CandleOutlineColor in an indicator has no effect when the chart style is either Box or Line on Close. To test I wrote a really simple indicator (creatively named MakeBlue) containing only the following code:
    Code:
            protected override void Initialize()
            {
                Overlay                = true;
            }
    
            protected override void OnBarUpdate()
            {
                BarColor = Color.Blue;
                CandleOutlineColor = Color.Blue;
            }
    When I created a chart, applied this indicator and then stepped through the available chart styles, I got blue candles with chart style Candlestick, blue range bars with chart style HiLo and blue bars with chart style OHLC. But chart style Box and chart style Line on Close were not affected.

    #2
    Mike, thanks for testing and reporting in, I believe expected as those styles would have no outline - but we'll take a look into it...
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Box style in the Data Series window offers two colors to choose (up color and down color) as well as two outlines to define. So Box certainly appears to have both a bar color and an outline color. I can understand Line on Close working differently, though I can't see why an indicator shouldn't be able to get at that color, too.

      Comment


        #4
        Thanks for clarifying, I'm seeing it here for the Box style, too - perhaps it's due to the fact that the outline color is split up for those and thus it's being a different property. We'll look into, thanks for reporting in.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cre8able, Today, 03:20 PM
        1 response
        9 views
        0 likes
        Last Post cre8able  
        Started by fiddich, Today, 05:25 PM
        0 responses
        3 views
        0 likes
        Last Post fiddich
        by fiddich
         
        Started by gemify, 11-11-2022, 11:52 AM
        6 responses
        804 views
        2 likes
        Last Post ultls
        by ultls
         
        Started by ScottWalsh, Today, 04:52 PM
        0 responses
        4 views
        0 likes
        Last Post ScottWalsh  
        Started by ScottWalsh, Today, 04:29 PM
        0 responses
        9 views
        0 likes
        Last Post ScottWalsh  
        Working...
        X