Since chart polylines are limited to 150 points, I use a simple code with polyline.removePoint(0) that truncates the oldest point when reaching the IPolyLineChartObject.MAX_POINTS_COUNT limit. It works very well in JForex Client on live RT data and while using Historical Tester. The same code fails in JForex-SDK where it gives ConcurrentModificationException
. The attached Polyline_error.zip file contains polyline_error_info-and_console.txt that describes steps to repeat this error and the Console report. The complete JForexSDK project is in the same zip file.
The above described problem makes it impossible to develop and debug in Eclipse-JForex-SDK environment strategies that use those very useful self-truncating polylines.
Best regards,
leoterra