This is a migrated thread and some comments may be shown as answers.

How can I get line's color of MacdIndicator

1 Answer 26 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
qq
Top achievements
Rank 1
qq asked on 25 Feb 2016, 08:28 AM

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.

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 01 Mar 2016, 08:44 AM
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
Tags
Chart
Asked by
qq
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or