How can I get line's color of MacdIndicator

2 posts, 0 answers
  1. qq
    qq avatar
    8 posts
    Member since:
    Nov 2015

    Posted 25 Feb Link to this post

    There'are two lines in MacdIndicator.

    I can get the DIFF data line's color by indicator.getStrokeColor().

    How can I get the other line's color?

    And how Can I set the color of them.

    I have the same problems with other Indicators such StochasticSlowIndicator.

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 01 Mar Link to this post

    Hello qq dow,

    Thanks for writing.
    You can set the signal color by calling indicator.setSignalPaint(). Also don't forget to set the stroke width of the paint to 2.0f since it is the default width for the chart line series.

    StochasticSlowIndicator on the other had has a setSignalStroke() and setSignalStrokeWidth() methods.

    Please write again if you have more questions. 

    Regards,
    Victor
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top