We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Feature request third candle color when open equals close

Currently when open and close are even price, the bear color is used.

Thanks,
William

3 Replies

DA Devi Aruna Maharasi Murugan Syncfusion Team May 30, 2016 11:16 AM UTC

Hi William, 
  
Thanks for contacting Syncfusion Support. 
  
As informed, we have already logged feature request on this requirement and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates. 
  
  
Regards, 
Devi M 



BL Bryan Lising January 8, 2017 03:56 AM UTC

I also have the same requirement to add colors to the OHLC bars.
I wish there's styling and datatemplating support for each segment.
I was able to do modify the color of the HiLoOpenClose series by making overriding the CreateSegments() method.
I'm not sure how efficient this is but this is the easiest way I've found for now.
this works for me since the number of bars I display is not large.

public class HiLoOpenCloseCustomSeries:HiLoOpenCloseSeries
  {
    public override void CreateSegments()
    {
      base.CreateSegments();
     
      foreach(var item in Segments)
      {
        var hiloseg = item as HiLoOpenCloseSegment;

         if(hiloseg.Open == hiloseg.Close)
        {
          hiloseg.BearFillColor = Brushes.Yellow;
          hiloseg.BullFillColor = Brushes.Yellow;
        }

        }
       
      }
    }
}


This would've been more efficient if there was a method exposed for after a segment was created. Like an OnSegmentCreated(HiLoOpenCloseSegment segment)


DA Devi Aruna Maharasi Murugan Syncfusion Team January 9, 2017 07:22 AM UTC

Hi Bryan, 
  
Thanks for contacting Syncfusion support. 
  
Currently we don’t have any event to expose once the segments of the series get created. However, we have considered your requirement as a feature request and we have added it to our feature request list. This feature will be implemented in any of our upcoming releases. 
  
Regards, 
Devi   


Loader.
Up arrow icon