addendum:
I've subscribed to 2 instruments (GBP/USD and EUR/USD)
and the exception is thrown in setChartPanels on the addChartPanel(chartPanel) call.
public void setChartPanels(Map<IChart, ITesterGui> chartPanels)
{
if(chartPanels != null && chartPanels.size() > 0)
{
Instrument instrument;
for (IChart chart : chartPanels.keySet())
{
try
{
instrument = chart.getInstrument();
LOGGER.debug("Adding chart for instrument " + instrument.toString());
setTitle(instrument.toString() + " " + chart.getSelectedOfferSide() + " " + chart.getSelectedPeriod());
JPanel chartPanel = chartPanels.get(chart).getChartPanel();
addChartPanel(chartPanel);
}
catch (Exception e)
{
LOGGER.warn("Error while adding chart to panel: " + e.getMessage());
}
}
}
}
Is there anything wrong with my approach to add the charts of all subscribed instruments?
Thanks a lot for a feedback.
Best, RR.