Markers in charts...

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
George

Markers in charts...

Post by George » Mon Jul 29, 2002 2:50 pm

Hi again,

I am using JFreeChart in a financial Trading System. The type of chart is a candlesticks chart and I feed the dataset with arrays of values (date,o,h,l,c,v).

For some of the involved days the Trading System produces a buy or sell signal.

I was wondering if it is possible to draw this signal with a marker above or bellow the candle of the specific day.
The signals can be stored as an additional Number array (1 for buy, 2 for sell, 3 for nothing).

However I dont know if this is achievable with JFreeChart and I have no previous experience with graphics in Java.


Could anyone help me on how to put such markers in the chart , please?
Is it possible ?



Thanks for any answer
George

George

Re: Markers in charts...

Post by George » Mon Jul 29, 2002 3:26 pm

The desirable result is something like this :

http://www.metastock.com/popups/systemtester.html

David Gilbert

Re: Markers in charts...

Post by David Gilbert » Mon Jul 29, 2002 11:08 pm

I think this should be possible using an OverlaidXYPlot. Also, I think this is probably the purpose of the SignalRenderer class which I have never used myself (it was contributed by another developer).

Take a look at the OverlaidXYPlotDemo to start with...

Regards,

DG.

Locked