IBar bar = context.getHistory().getBar(Instrument.EURUSD, Period.ONE_HOUR, OfferSide.ASK, 0); //fetching a current bar (shift = 0)context.getConsole().getOut().println("open: " + bar.getOpen() + ", close: " + bar.getClose() + ", high: " + bar.getHigh() + ", low: " + bar.getLow());