blog.robotex.de

JForex Strategy Development: Making the currency pair configurable

Adding a property for the currency pair (Instrument) for the user to choose from is really easy:

public class FirstStrategy implements IStrategy {
  @Configurable("Instrument")
  public Instrument selectedInstrument = Instrument.EURUSD;
}

Back