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 DanielSanMartin, Yesterday, 02:37 PM
        2 responses
        12 views
        0 likes
        Last Post DanielSanMartin  
        Started by DJ888, 04-16-2024, 06:09 PM
        4 responses
        12 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by terofs, Today, 04:18 PM
        0 responses
        11 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by nandhumca, Today, 03:41 PM
        0 responses
        7 views
        0 likes
        Last Post nandhumca  
        Started by The_Sec, Today, 03:37 PM
        0 responses
        3 views
        0 likes
        Last Post The_Sec
        by The_Sec
         
        Working...
        X