Need a stockcharts.com-like program

Discussion in 'App Development' started by dangqiwu, Nov 18, 2013.

  1. dangqiwu

    dangqiwu

    Is there any program to generate stock charts similar to stockcharts.com? Any information is appreciated.
     
  2. 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.
     
  3. You need live data or delayed data is fine with you?
     
  4. dangqiwu

    dangqiwu

    I should say that I need the source code or library for development. ;)
     
  5. There's any number of charting packages out there.

    I've used Highcharts/Highstocks.

    There are others, but I've misplaced the links..
     
  6. Wulfrede

    Wulfrede

    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
     
  7. dangqiwu

    dangqiwu

    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.
     
  8. ramora

    ramora

    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.
     
  9. Butterfly

    Butterfly

    not sure why you want to use C++ when PHP has a lib to plot and make graphs
     
    #10     Nov 18, 2013