Account Type, Login, Run Mode

General account information like account type IEngine.Type (i.e. if account is DEMO or LIVE) and user name are held by IEngine interface. Consider retrieving account type and user name on strategy start:

public void onStart(IContext context) throws JFException {
    IConsole console = context.getConsole();
    IEngine engine = context.getEngine();
    IAccount account = context.getAccount();
    console.getOut().format("Account type: %s login: %s run mode: %s", engine.getType(), account.getUserName(), engine.getRunMode()).println();

The information on this web site is provided only as general information, which may be incomplete or outdated. Click here for full disclaimer.