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 Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        4 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        41 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        20 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Working...
        X