Hi,
Did a quick search on the forum for a sollution to my problem, but only got this topic which didn't much help.
https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=38943&p=49971&hilit=createPolyLine#p49971My problem is as follows (The API version I use is version 2.6.70)
A simplified version of my code looks like this (with line numbers). "chart" is an object of type IChart.
private void drawPoly() {
IPolyLineChartObject line = chart.getChartObjectFactory().createPolyLine("cp_");
chart.addToMainChartUnlocked(line);
return;
}
The problem I have is when I run my strategy, I get this error:
java.lang.NoSuchMethodException: com.dukascopy.charts.drawings.PolyLineChartObject.<init>(java.lang.String) @ Autochartist.Autochartist_ChartPatterns.drawPoly(Autochartist_ChartPatterns.java:2)
The API documentation on the dukascopy site says this about createPolyLine(java.lang.String key):
Quote:
IPolyLineChartObject createPolyLine(java.lang.String key)
Creates IPolyLineChartObject with default parameters.
Parameters:
key - String identifier
Returns:
instance of IPolyLineChartObject
Any help would be appreciated.
Best regards.
--
Hein van Eeden