IAccount that is passed into IStrotegy.onAccount() is the same object that can be retrieved from context.getAccount(). context.getAccount() can be saved into strategy`s class and then it can be used from any method.
public class StrategyA implements IStrategy {
private IAccount account;
public void onStart(IContext context) throws JFException {
this.account = context.getAccount();
}
public void onAccount(IAccount account) throws JFException {
}
public void onMessage(IMessage message) throws JFException {
}
public void onStop() throws JFException {
}
public void onTick(Instrument instrument, ITick tick) throws JFException {
}
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
}
}