Indicators problem

6 posts, 0 answers
  1. Flash
    Flash avatar
    3 posts
    Member since:
    Jan 2016

    Posted 08 Apr Link to this post

    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.

  2. Adrian
    Admin
    Adrian avatar
    167 posts

    Posted 12 Apr Link to this post

     
    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
  3. DevCraft banner
  4. Fahad
    Fahad avatar
    3 posts
    Member since:
    Jul 2015

    Posted 14 Apr in reply to Adrian Link to this post

    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

  5. Fahad
    Fahad avatar
    3 posts
    Member since:
    Jul 2015

    Posted 14 Apr in reply to Fahad Link to this post

    Never mind I had the dates reversed :)
  6. Fahad
    Fahad avatar
    3 posts
    Member since:
    Jul 2015

    Posted 14 Apr in reply to Adrian Link to this post

    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.
  7. Adrian
    Admin
    Adrian avatar
    167 posts

    Posted 19 Apr Link to this post

    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
Back to Top
DevCraft banner