
Hi - What are the libraries to use in Haskell to generate a stock candlestick chart like http://stockcharts.com/h-sc/ui?s=SPY&p=D&b=5&g=5&id=p05007254056 I will use Finance-Quote-Yahoo to get the quote data from Yahoo. thanks for all your help.

On Sat, 25 Sep 2010, rgowka1 wrote:
Hi -
What are the libraries to use in Haskell to generate a stock candlestick chart like http://stockcharts.com/h-sc/ui?s=SPY&p=D&b=5&g=5&id=p05007254056
I will use Finance-Quote-Yahoo to get the quote data from Yahoo.
You might try the gnuplot package as interface to the gnuplot program. There was already someone who wanted to plot candle sticks: http://projects.haskell.org/pipermail/gnuplot/2010-April/000009.html

Can I just do cabal install gnuplot or should I use darcs to get the
candles version..
On Sat, Sep 25, 2010 at 8:03 AM, Henning Thielemann
On Sat, 25 Sep 2010, rgowka1 wrote:
Hi -
What are the libraries to use in Haskell to generate a stock candlestick chart like http://stockcharts.com/h-sc/ui?s=SPY&p=D&b=5&g=5&id=p05007254056
I will use Finance-Quote-Yahoo to get the quote data from Yahoo.
You might try the gnuplot package as interface to the gnuplot program.
There was already someone who wanted to plot candle sticks: http://projects.haskell.org/pipermail/gnuplot/2010-April/000009.html

I am trying to compile demo.hs, but keep getting the error that
Paths_gnuplot could not be found. What/where is paths_gnuplot?? Sorry,
I am still a beginner..
On Sat, Sep 25, 2010 at 8:48 AM, Henning Thielemann
On Sat, 25 Sep 2010, rgowka1 wrote:
Can I just do cabal install gnuplot or should I use darcs to get the candles version..
The Hackage version should be up to date now.

On Sat, 25 Sep 2010, rgowka1 wrote:
I am trying to compile demo.hs, but keep getting the error that Paths_gnuplot could not be found. What/where is paths_gnuplot?? Sorry, I am still a beginner..
I forgot to mention in the documentation that you have to install with $ cabal install -fbuildExamples gnuplot in order to get the Demo compiled and the example data file installed.

On 25/09/10 06:57, rgowka1 wrote:
What are the libraries to use in Haskell to generate a stock candlestick chart like http://stockcharts.com/h-sc/ui?s=SPY&p=D&b=5&g=5&id=p05007254056
I will use Finance-Quote-Yahoo to get the quote data from Yahoo.
The chart library: http://hackage.haskell.org/package/Chart doesn't currently have support for candlestick charts, but adding support would be straightforward - a patch would be most welcome (hint, hint!). Tim

What are the libraries to use in Haskell to generate a stock candlestick chart like http://stockcharts.com/h-sc/ui?s=SPY&p=D&b=5&g=5&id=p05007254056
The chart library: http://hackage.haskell.org/package/Chart doesn't currently have support for candlestick charts, but adding support would be straightforward - a patch would be most welcome (hint, hint!).
I have a patch for Chart, adding candles as a new plot type. Patch attached, together with a PNG of some demo output. (patch containing demo/test to follow.) Regards, Malcolm
participants (4)
-
Henning Thielemann
-
Malcolm Wallace
-
rgowka1
-
Tim Docker