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

Message ListMessage List     Post MessagePost Message

  Storing Finance index in a data base
Posted by Gerson Luiz Ceccon on Mar-06-2011 22:44
Hi Peter, I need store the last index value in a data base, I explain:
Today I am evaluating  a lib called Ta-Lib where finance functions are available but this lib has no plot chart functions.
Also I am evaluating ChartDirector lib that has plot chart function but storing index value in a data base is a bit more complicate (I think).

I need monitor several stock shares and store finances indices in a data base (where ta-lib can help me) but for some of themes I need plot finance chart (where ChartDirector can help me)

I would like to use only ChartDirector to avoid to use 2 libs to do more or less the same thing, and of course, the indices values calculated from 2 different libs not all the time are the same. So I am in a doubt,  how to store finance indices from ChartDirector?

Using addRSI as a example I would like to store the last value in my data base without need to plot the chart, my concern is, by plotting the indices all the time that a value change is resource consuming, even if this plot is made only at memory time.

Example:
First change
RSI = [12, 13 ,20, 26, 56, 30, 66, 70, 78, 75], I would like to store 75 in my data base
Second change
RSI = [13 ,20, 26, 56, 30, 66, 70, 78, 75, 60], I would like to store 60 in my data base
more ore less like a pop() function
and so on.....
Is it possible with ChartDirector only calculate finance index passing a array to the function?

  Re: Storing Finance index in a data base
Posted by Peter Kwan on Mar-07-2011 18:09
Hi Gerson,

Because ChartDirector is designed as a charting library, and not as a financial and technical indicator calculator, there is no API to return the technical indicator data series. (These are treated as internal values. ChartDirector will destroy them after creating the chart to save memory.)

If you need the indicator values, see the followings for some options:

http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1264519533#N1264527203

Hope this can help.

Regards
Peter Kwan