ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Stock split implementation with php
Posted by Sonu Sindhu on Apr-09-2015 14:01
Attachments:
Hi Peter,

I have implemented finance chart and trying to implement stock split with but did not get any solution and idea to
get that work. here is the screenshot attached how it is looking.

I am using php library and implemented the finance chart.

Waiting for your reply.

Regards,
Sonu Sindhu
Tech Mahindra Limited.png

  Re: Stock split implementation with php
Posted by Peter Kwan on Apr-11-2015 01:51
Hi Sonu,

Some systems will just plot the chart as what you are currently doing. The chart accurately
reflects the price and can be considered as correct.

Some systems will modify the price before the split before passing the data to the charting
engine. For example, for your case, it seems a 1:4 split occurs in the middle of March. In
this case, all prices before the split date can be multiplied by 1/4, and the volume mulitplied
by 4, before passing the data to ChartDirector. In practice, some systems will simply update
the price in database when a split occur. In this way, there is no need to modify the data
everytime a chart is shown, as the data is pre-modified in the database.

In any case, the issue is not related to the chart. It is related to how your system update
and manage the data when a split occur. The charting code does not need to change.

Regards
Peter Kwan

  Re: Stock split implementation with php
Posted by Sonu Sindhu on Apr-11-2015 02:44
Hi Peter,

Thanks for your explanation. I understand that need to be convert the data according to stock split ratio before
showing the chart.

Thanks again.

Regards.
Sonu Sindhu