Hi,
Sorry for a total newbie question but what am I doing wrong/missing here ?
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
if (selectedInstrument.equals(instrument) && period.equals(setPeriod)) {
double[] fractal = indicators.fractal(instrument, period, OfferSide.BID, 2, 1) ;
console.getOut().println(" 0 :"+fractal[0]+" / 1 :"+fractal[1]);
}
console :
Quote:
0 :NaN / 1 :NaN
0 :NaN / 1 :NaN
0 :NaN / 1 :NaN
0 :NaN / 1 :NaN
0 :NaN / 1 :NaN
0 :NaN / 1 :NaN
0 :NaN / 1 :NaN
0 :NaN / 1 :NaN
0 :NaN / 1 :NaN
0 :NaN / 1 :NaN
...etc
(in testing mode if I had fractal indicator, with 2 bars on the side, on the chart opened by the tester it does show plenty of arrows)