Hello,
I have a urgent issue. Maybe it's a bug in JForex...
My strategy draws some labels on the chart using the following code.
Unfortunately, when you restart JForex, the label has disappear from the chart !
When you draw the label manually, no pb. It seems to happen only on strategy drawn labels.
Here's the code to try in onStart();
IChartObjectFactory factory = chart.getChartObjectFactory();
ILabelChartObject objectLabel = factory.createLabel("labelTest",
history.getTimeOfLastTick(Instrument.EURUSD), history.getLastTick(Instrument.EURUSD).getBid());
objectLabel.setText("My text");
chart.addToMainChart(objectLabel);
Thanks