hi,
Today is Monday 20.02.2012 and suprisingly I cannot access the
current weekly candle on EURUSD using the following code lines:
IBar bar1 = history.getBar(instrument, Period.WEEKLY, OfferSide.BID, 0);
if(bar1== null)
console.getOut().println("ERROR: no candle available!! " ) ;
else
console.getOut().println("hurraaaa: candle available!! " ) ;
it returns null with the message "ERROR: no candle available!! "
well the same code works fiine with
Period.ONE_HOUR or
Period.ONE_MIN...could you explain why I cannot access the current weekly candle with index 0? The weekly candle with index 1 is available...
Thanks!