API ver. 2.6.18
I have a simple script which computes Hi/lo values from a period of time.. It works very well for a couple of months, but since some of later version of JForex(maybe the newest one?) It has started to throw these strange exceptions even I already have all needed pairs subscribed.
an Exception has occured in both versions(Live and Demo)
Instrument [X/Y] not opened List<IBar> historyBars = null;
ITick lastTick = null;
double actual = 0;
try
{
historyBars =
_history.getBars(instr,Period.DAILY,OfferSide.BID,
_history.getBarStart(Period.DAILY,g_fromTime.getTime()),
_history.getStartTimeOfCurrentBar(instr,Period.DAILY));
}
catch (JFException e)
{
printErr (e.getMessage());
return null;
}