Hi,
please take a look at sample.
Here is more about IChart interface and some samples:
. . .
public void onStart(IContext context) throws JFException {
//Get chart for instrument EUR/USD and set comment on it.
//Before use it, from JForex platform you should open chart for EUR/USD instrument
//It will show up in left top corner of the chart
if (context.getChart(Instrument.EURUSD) != null){
context.getChart(Instrument.EURUSD).comment("My chart comment");
}
context.stop();
}
. . .