Hello Support,
I wanted to make the default candlesticks invisible on the chart while backtesting with TesterMainGUIMode.java under Eclipse. The story is that I have my own indicator that draws algo OHLC candlesticks for me on the chart. Now I wanted to color the default candlesticks to the background color so that they get invisible in TesterMainGUIMode by using the
clientGUI.getChartPresentationManager() function but I got the following error message:
//Background is white so that the default candles will be colored to white as well to make them disappear
final IClientGUI clientGUI = client.getClientGUI(mychart);
IClientChartPresentationManager chartPresentationManager = clientGUI.getChartPresentationManager();
chartPresentationManager.setTheme(
chartPresentationManager.getTheme()
.setName("candle color theme")
.setColor(ColoredElement.CANDLE_BEAR, Color.WHITE)
.setColor(ColoredElement.CANDLE_BULL, Color.WHITE)
);
at singlejartest.TesterMainGUIMode.startStrategy(TesterMainGUIMode.java:238)
at singlejartest.TesterMainGUIMode$3$1.run(TesterMainGUIMode.java:306)
at java.lang.Thread.run(Unknown Source)
java.lang.IllegalStateException: It's not designed to open chart GUI in back-testing at the moment
at com.dukascopy.api.impl.connect.TesterClientImpl.getClientGUI(TesterClientImpl.java:680)
at singlejartest.TesterMainGUIMode.setChartPanels(TesterMainGUIMode.java:139)
at com.dukascopy.api.impl.connect.TesterClientImpl.startTest(TesterClientImpl.java:1012)
at com.dukascopy.api.impl.connect.TesterClientImpl.startTest(TesterClientImpl.java:965)
at com.dukascopy.api.impl.connect.TesterClientImpl.startStrategy(TesterClientImpl.java:811)
at com.dukascopy.api.impl.connect.TesterClientImpl.startStrategy(TesterClientImpl.java:760)
at singlejartest.TesterMainGUIMode.startStrategy(TesterMainGUIMode.java:238)
at singlejartest.TesterMainGUIMode$3$1.run(TesterMainGUIMode.java:306)
at java.lang.Thread.run(Unknown Source)
this is a bug
?? could you please give me a piece of advice how to make the default candlesticks coming from TesterMainGUIMode invisible? The code is attached.
Thanks in advance!!!