Hi there guys,
i'm just beginning writing code for JForex. I'm currently having issues when I try to access former candles via IHistory.
I have an example code attached:
public void onTick(Instrument instrument, ITick tick) throws JFException {
console.getOut().println(history.getBar(instrument, Period.FIVE_MINS, OfferSide.BID, 1).getClose());
}
I would now expect that the same value would be written to the Log until there would be a new Bar. But it is not, in fact i get these:
Quote:
13:48:05 89.67
13:48:05 1.07265
13:48:05 1.07265
13:48:05 1.3709
13:48:05 1.5703
13:48:05 1.3709
13:48:05 1.5703
13:48:04 1.07265
13:48:04 1.3709
13:48:04 89.67
13:48:04 1.5703
13:48:04 1.07265
13:48:04 89.67
13:48:04 1.3709
Did I miss something, are those Bars used differently?
greetings,
gieser