JForex Strategy Development: Making the currency pair configurable

Freitag, 20. Mai 2011, 12:14 Uhr | roberto@vasquez-angel.de |

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;
}