I'm trying to get an indicator data in historical tester but the result is NaN. When I run the same in a live everything OK.
Last week everything worked OK with the same code. All the parameters are double checked.
Please help to get it working back!
Thank you.
Here is a code:
public void onBar(Instrument instrument, Period period, IBar askBar, IBar bidBar) throws JFException {
if (period.equals(Period.ONE_HOUR))
{
double[] res = indicators.alligator(Instrument.XAUUSD, Period.ONE_HOUR, OfferSide.BID, IIndicators.AppliedPrice.CLOSE, 13, 8, 5, 0);
console.getOut().println(new Date(bidBar.getTime()) + ": Jaw " + String.format("%.5f", res[0]) + ". Teeth " + String.format("%.5f", res[1]) + ". Lips " + String.format("%.5f", res[2]));
}
}