Confusing is also HLINE example in
https://www.dukascopy.com/wiki/#Chart_object_catalog, which does not work.
It returns an error
java.lang.NoSuchMethodException: com.dukascopy.charts.drawings.HLineChartObject.<init>(java.lang.String, long, double)
It is this line
IHorizontalLineChartObject hLine = chart.getChartObjectFactory().createHorizontalLine("hLine",
tick.getTime(), price1
);
Please renew the examples in this Wiki, how to do chart objects without deprecation?