Hi,
1) When I a use SegmentedTimeLine.newMondayThroughFridaySegmentedTimeLine() method in my candlestick implementation I find that display of few months miss. Although the plotting on the chart is perfect but few months vanish.
I have tried removing the method and implementing, it works perfect but then I dont need saturday and sunday as it represents stock data.
2) The above method still plots any non trading days between Monday and Friday.
Can I get a fix on this?
Your's
Ravi
Bug Found in Version 13
Code
Hi,
Sorry for the late reply. Infact didnt open the forum for a long time after not getting a response. The code where we are using the method is
SegmentedTimeline segmentedTimeline = SegmentedTimeline.newMondayThroughFridayTimeline();
DateAxis domainAxis = new DateAxis("", segmentedTimeline);
domainAxis.setVerticalTickLabels(true);
//domainAxis.setTickMarkPosition(DateTickMarkPosition.START);
ValueAxis rangeAxis=new NumberAxis();
//HighLowDataset dataset=new DefaultHighLowDataset("Stocks",date,high,low,open,close,volume);
HighLowDataset dataset=new DefaultHighLowDataset("Stocks",date,high,low,open,close,volume);
CandlestickRenderer candleRenderer=new CandlestickRenderer();
candleRenderer.setDrawVolume(false);
XYPlot plot = new XYPlot(dataset, domainAxis,rangeAxis,candleRenderer);
NumberAxis pieRangeAxis=(NumberAxis)plot.getRangeAxis();
plot.setRangeAxisLocation(AxisLocation.TOP_OR_RIGHT);
pieRangeAxis.setAutoRangeIncludesZero(false);
//indSeries=(new com.analysis.util.CustomIndicators()).createIndicatorsSeries(onIndicators,date,open,high,low,close,volume,null);
TimeSeries elliotSeries=new CustomIndicators().createIndicatorsSeries("24",date,null,high,low,null,null,indicatorParams);
We are in dire need to solve this. I would really appreciate a help on this.
Your's
Ravi
Sorry for the late reply. Infact didnt open the forum for a long time after not getting a response. The code where we are using the method is
SegmentedTimeline segmentedTimeline = SegmentedTimeline.newMondayThroughFridayTimeline();
DateAxis domainAxis = new DateAxis("", segmentedTimeline);
domainAxis.setVerticalTickLabels(true);
//domainAxis.setTickMarkPosition(DateTickMarkPosition.START);
ValueAxis rangeAxis=new NumberAxis();
//HighLowDataset dataset=new DefaultHighLowDataset("Stocks",date,high,low,open,close,volume);
HighLowDataset dataset=new DefaultHighLowDataset("Stocks",date,high,low,open,close,volume);
CandlestickRenderer candleRenderer=new CandlestickRenderer();
candleRenderer.setDrawVolume(false);
XYPlot plot = new XYPlot(dataset, domainAxis,rangeAxis,candleRenderer);
NumberAxis pieRangeAxis=(NumberAxis)plot.getRangeAxis();
plot.setRangeAxisLocation(AxisLocation.TOP_OR_RIGHT);
pieRangeAxis.setAutoRangeIncludesZero(false);
//indSeries=(new com.analysis.util.CustomIndicators()).createIndicatorsSeries(onIndicators,date,open,high,low,close,volume,null);
TimeSeries elliotSeries=new CustomIndicators().createIndicatorsSeries("24",date,null,high,low,null,null,indicatorParams);
We are in dire need to solve this. I would really appreciate a help on this.
Your's
Ravi
Working Fine with version .14 and .15
Thanks King for your help extended to me. The problem seems to have been resolved with the new versions of JFreeChart
Ravi
Ravi