One more thing regarding P/L indicator - it seems it fails to initialize properly when added programmatically from plugin into already existing sub-panel with VOLUME indicator, i receive such message
23:02:31 Error in indicator: java.lang.NullPointerException @ com.dukascopy.indicators.ProfitLossIndicator.calculate(ProfitLossIndicator.java:184)
Here is my code
IIndicator indicator = context.getIndicators().getIndicator("P/L");
List<IIndicatorPanel> panels = chart.getIndicatorPanels();
if( panels.isEmpty())
chart.add(indicator,
null, new Color[] {Color.RED}, new DrawingStyle[] {DrawingStyle.LINE}, new int[] {2});
else
panels.get(0).add(indicator,
null, new Color[] {Color.RED}, new DrawingStyle[] {DrawingStyle.LINE}, new int[] {2});