I am using custom period in a strategy
public void onStart(IContext context) throws JFException {
this.engine = context.getEngine();
this.console = context.getConsole();
this.history = context.getHistory();
context.subscribeToBarsFeed(Instrument.EURAUD, Period.createCustomPeriod(Unit.Hour, 12), OfferSide.BID,
new IBarFeedListener() {
public void onBar(Instrument instrument, Period period, OfferSide offerSide, IBar bidBar) {
Please help me, how to modify the program to be able to handle 2 different custom periods?
Where and how do I have to place the 2nd period?