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

Indicators problem

5 Answers 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.
Flash
Top achievements
Rank 1
Flash asked on 08 Apr 2016, 02:20 PM

Hi

Can you explain me why indicators gon't display from beginning of the axis? Look like they miss first pack of data.

You can see this in you telerik demo application if you zoom axis (chart->chart types->indicators)

Is it a way indicators works or trial version limitation?

My problem that i have about 30 points for chart and can't see indicators at all.

5 Answers, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 12 Apr 2016, 02:22 PM
 
Hello,

Thank you for writing.
The reason for this behavior is because the indicator values are calculated based on previous periods of time and the first points are used to calculate the first value of the indicator. That is why it doesn't start from the beginning of the data set. You can solve this by changing the minimum range of the x axis:
xAxis.range.minimum = min;

Another option is to manually create the x axis specifying appropriate minimum and maximum:
TKChartDateTimeAxis *xAxis = [[TKChartDateTimeAxis alloc] initWithMinimumDate:[NSDate dateWithTimeInterval:60*60*24*7 sinceDate:minDate] andMaximumDate:maxDate];

I hope this helps.

Regards,
Adrian
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
0
Fahad
Top achievements
Rank 1
answered on 14 Apr 2016, 09:05 AM

Hi, I am having the same problem. For the MACD this is the proper behavior for an indicator:

http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:moving_average_convergence_divergence_macd

 

It uses previous points to calculate the present point. So I am not clear on why the Telerik indicator behaves this way. 

 

Best Regards

0
Fahad
Top achievements
Rank 1
answered on 14 Apr 2016, 09:07 AM
Never mind I had the dates reversed :)
0
Fahad
Top achievements
Rank 1
answered on 14 Apr 2016, 09:46 AM
Hi, I am getting the bollinger bands with a gap as well. check the screen shot. I thought I was reversing the dates but it doesn't appear so.
0
Adrian
Telerik team
answered on 19 Apr 2016, 08:20 AM
Hi, Fahad,

Please, find my response in you support ticket.

Regards,
Adrian
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
Flash
Top achievements
Rank 1
Answers by
Adrian
Telerik team
Fahad
Top achievements
Rank 1
Share this question
or