Is there any program to generate stock charts similar to stockcharts.com? Any information is appreciated.
You leave a big question mark? What's you question got to to with programming? Every program out there can plot price or generate stock charts as you wrote. Maybe you should specify a little bit.
There's any number of charting packages out there. I've used Highcharts/Highstocks. There are others, but I've misplaced the links..
I used a couple but ended up writing my own. If you need something to start off with, try ChartDirector. I built a real-time control on top of it and it worked pretty well. It's not too nice on resources though and on .Net the GC proved to be too much. ChartDirector is very full featured though so if you need fancy indicators, etc. it will do a lot straight out of the box. If you use Java, <shudder>, then there is JFreeChart. For Javascript, there is the HighStock stuff, as someone mentioned, but after playing with it for a while I found it too much trouble to customize and not efficient enough for what I am doing. Besides, building a full-blown GUI framework in JS is a pain even with all the latest advances. My advice, if you have a week of coding time, roll your own. You'll make it as efficient as you like and learn a ton also. /Wulfrede
Thanks everyone. I should apologize for not explaining clearly. The purpose (or procedure) is: 1. A user submits a request for a specific chart from web browser. 2. PHP call system() to run a C++ program to generate the chart saved in the JPEG format. 3. The C++ program returns the filename to PHP. 4. PHP provides the chart to the user's web browser. What I need is the C++ program source code in the above procedure.
If you want to take PHP out of the equation, here is a C++ Web framework that looks interesting: http://www.webtoolkit.eu/wt
You could find a c++ framework and all the chart graph routines here... http://qtstalker.sourceforge.net/ You would have to extract and make it client/server. I would think the smallest problem you are trying to solve is the chart drawing routines which are simple. If you are making something that is scaleable capable of following several/many markets you have much bigger database, scaleability, user interface issues. Anyway, good luck.