When I insert a series of data, the hollow K diagram shows the error, and a line is displayed in the middle
ohlcSeries.insertRange(0,date,open,high,low,close);
My Settings are as follows:
candlestickSeries = sciChartBuilder.newCandlestickSeries()
.withStrokeUp(UP_COLOR)
.withStrokeDown(DOWN_COLOR)
.withDataSeries(ohlcSeries)
.withFillDownColor(0xFFFFFFFF)
.withFillUpColor(UP_COLOR)
.build();
How can I solve this problem?Please see the attachment for details。
- Huang haiyan asked 6 years ago
- You must login to post comments
Hi Huang,
There is an error in your code – when you invoke method which inserts data it has incorrect parameters.
Method in SciK class is declared with next signature:
public void insertData(List<Date> date, List<Double> open, List<Double> low, List<Double> high, List<Double> close){
ohlcSeries.insertRange(0,date,open,high,low,close);
}
but it is invoked with swapped low and high params for some reason :
sciK.insertData(date, open, high, low, close);
That’s why you got those lines after inserting second data batch.
Best regards,
Yura.
- Yura Khariton answered 6 years ago
- You must login to post comments
Please login first to submit.