|
Last closing price not showing. |
Posted by techsoft on Jul-13-2015 20:36 |
|
hi Peter,
I have uploaded stock data until Jul-10-2015 but the last candle stick showing Jul-09-2015.
I don't know why it is not updating?. Please anything to change regarding the timings.
Thanks,
Techsoft
|
Re: Last closing price not showing. |
Posted by Peter Kwan on Jul-14-2015 06:05 |
|
Hi techsoft,
Would you mind to clarify how do you determine if the last timestamp in the data array is
Jul-10-2015?
One way to do that is to display the last data value from your data array somewhere in the
chart, such as in the chart title. For example, instead of using:
$m->addPlotAreaTitle(TopLeft, $tickerKey);
you may use:
$m->addPlotAreaTitle(TopLeft, $tickerKey . " = " . $closeData[count($closeData) - 1]);
With the above code, the last closeData value should follow the tickerKey. If that value
come from Jul 9 (you can try stock that have different close value for Jul 9 and Jul 10),
then the chart displays Jul 9 probably because your stock data in the array is only up to Jul
9.
If the above still does not solve the problem, is it possible to inform me of the code that
creates the data arrays?
Regards
Peter Kwan |
Re: Last closing price not showing. |
Posted by techsoft on Jul-16-2015 16:43 |
|
Hi Peter,
Thanks for reply. I got it solved.
i forgot to add "=" the where condition date_added <'$isoEndDate',
now its changed to date_added <='$isoEndDate'.
Thanks
Techsoft |
|