Hi Support,
how can I obtain low and high values from Fractal indicator in my strategy ?
I tried with the following code, but I obtain always NaN
Object[] vals = context.getIndicators().calculateIndicator(
Instrument.EURUSD,
Period.createCustomPeriod(Unit.Minute, 5),
new OfferSide[] {OfferSide.BID, OfferSide.BID},
"FRACTAL",
new AppliedPrice[] {AppliedPrice.CLOSE, AppliedPrice.CLOSE},
new Object[] {2},
0);
context.getConsole().getOut().println("HighFractal: " + vals[0].toString() + " LowFractal: " + vals[1].toString());
Best regards,
Frank