i am testing a strategy in remote mode.at 15:00:00 the following error occurred and the strategy stopped if self.
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History.getBar(History.java:162)
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History.getHistoryBarBlocking(History.java:192)
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History.getBars(History.java:488)
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History$10.run(History.java:488)
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History$10.run(History.java:491)
ERROR
12.08.2014 15:00:00 at com.dukascopy.api.impl.History.getBarsSecured(History.java:541)
ERROR
12.08.2014 15:00:00 Error while loading bars: com.dukascopy.api.JFException: Error while loading bars
ERROR
12.08.2014 15:00:00 com.dukascopy.charts.data.datacache.DataCacheException: java.io.IOException: I/O error @ singlejartest.SmartByIndicatorsRemote.GetRSIvalue(SmartByIndicatorsRemote.java:617)
the function GetRSIvalue is:
public double GetRSIvalue(Instrument instrument) throws JFException {
// RSI
long rsifrom = myhistory.getBar(instrument, rsiperiod, rsiofferside, 3)
.getTime();
long rsito = myhistory.getBar(instrument, rsiperiod, rsiofferside, 0)
.getTime();
double rsivalue[] = myindicators.rsi(instrument, rsiperiod,
rsiofferside, rsiappliedprice, rsitimeperiod, rsifilter,
rsifrom, rsito);
return rsivalue[rsivalue.length - 1];
}
why does this happened and how to improve?is there any way to rerun the stopped strategy automatically?
thanks in advance