Search found 3 matches

by paphus
Fri Nov 07, 2014 8:16 pm
Forum: JFreeChart - Stockmarket
Topic: Add moving average to candle stick
Replies: 1
Views: 33327

Re: Add moving average to candle stick

I think I found the issue. The time period for the moving average is in milliseconds, not candles, so for 5 day it would be 1000L * 60L *60L * 24L * 5L.
by paphus
Fri Oct 31, 2014 9:25 pm
Forum: JFreeChart - Stockmarket
Topic: Add moving average to candle stick
Replies: 1
Views: 33327

Add moving average to candle stick

I'm trying to add a moving average to a candlestick chart. It should be simple, but doesn't seem to work. JFreeChart chart = ChartFactory.createCandlestickChart(title, "date", "price", dataSet, true); XYPlot xyplot = (XYPlot)chart.getPlot(); xyplot.setRangeAxis(1, new NumberAxis("Value 1")); XYDatas...
by paphus
Thu Jul 24, 2014 6:00 pm
Forum: JFreeChart - Stockmarket
Topic: How to set candle start/end
Replies: 0
Views: 29763

How to set candle start/end

I am trying to draw a basic candle stick chart, but confused on how to set the candle duration. It seems to guess at the candle duration, and sometimes looks good, but a lot of the time looks bad (overlaps, gaps, does not start/end at right time). I have seen some much more complex code in other pos...