public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException { hsBarA = history.getBar(instrument, Period.TEN_SECS, OfferSide.ASK, 60); hsBarB = history.getBar(instrument, Period.TEN_SECS, OfferSide.BID, 60);
if (period.name().equals("TEN_SECS")) { barsA = history.getBars(instrument, Period.TEN_SECS, OfferSide.ASK, hsBarA.getTime(), askBar.getTime()); barsB = history.getBars(instrument, Period.TEN_SECS, OfferSide.BID, hsBarB.getTime(), bidBar.getTime()); }}
I get:
com.dukascopy.api.JFException: Interval from [2011.03.04 23:50:00 000] to [2011.03.04 22:00:00 000] GMT is not valid for period [10 Secs] @ com.dukascopy.api.impl.c.getBars(Unknown Source) Interval from [2011.03.04 23:50:00 000] to [2011.03.04 22:00:00 000] GMT is not valid for period [10 Secs]: com.dukascopy.api.JFException: Interval from [2011.03.04 23:50:00 000] to [2011.03.04 22:00:00 000] GMT is not valid for period [10 Secs]
Why ?
|