Any way to modify the stroke thickness of Lower Band for a Bollinger Band indicator in ChartView?

2 posts, 1 answers
  1. Dev
    Dev avatar
    11 posts
    Member since:
    Jun 2011

    Posted 18 Nov 2012 Link to this post


    I found that there is a property for Bollinger Band thickness (StrokeThickness):

    BollingerBandsIndicator indicator = new BollingerBandsIndicator();
    indicator.Period = 20;
    indicator.StandardDeviations = 2;
    indicator.Stroke = Brushes.Red;
    indicator.LowerBandStroke = Brushes.Red;
    indicator.StrokeThickness = 1;

    However, when the indicator displays, only the upper band thickness will be effective for changing the StrokeThickness. I cannot find how to change the thickness of the lower band.
    Any help?

    Many thanks!

  2. Answer
    Petar Marchev
    Petar Marchev avatar
    1014 posts

    Posted 20 Nov 2012 Link to this post

    Hi Frankie,

    This seems to be a bug in the control. I have logged it as such in our PITS where you can vote for it and track its status. I have updated you Telerik points as a sign of gratitude for bringing this issue to our attention.

    For now I can suggest a simple work around - find the visual elements that represent the Bollinger indicator and manually set the proper StrokeThickness. I have attached a simple project demonstrating this work-around.

    Petar Marchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top