Hello.
This piece of code:
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
Period per = new Period(Unit.Hour, 2);
bar = history.getBar(instrument,per,OfferSide.BID,0);
}
Compiles Ok but returns this error:
java.lang.ArrayIndexOutOfBoundsException: -1 @ com.dukascopy.charts.data.datacache.ax.a(Unknown Source)Some help please?. How to download 2-hours time period, or any custom period?
Thanks in advanced.