Hello!
Could you please explain how this implementations works? I confusing a bit because this indicator always returns 2 values (Max and Min) and I never got NaN. Not sure that it is possible to have UP and DOWN fractal in same time.
But on the chart arrows are correct.
Here is way how I calling indicator indicator:
double []fr = indicators.fractal(
Instrument.EURUSD,
period,
offerSide,
0,
2/*or 3 or 5 whatever*/
);
console.getOut().println("L: " + fr.length + " Max: " + fr[0] + " Min: " + fr[1]);
And here is a output:
05:08:40 L: 2 Max: 1.22025 Min: 1.22025
05:08:31 L: 2 Max: 1.22025 Min: 1.2202
05:08:20 L: 2 Max: 1.22025 Min: 1.2202
05:08:11 L: 2 Max: 1.22025 Min: 1.2202
05:08:01 L: 2 Max: 1.2203 Min: 1.22025
05:07:50 L: 2 Max: 1.2203 Min: 1.2203
05:07:41 L: 2 Max: 1.2203 Min: 1.2203
05:07:30 L: 2 Max: 1.22055 Min: 1.2203
05:07:21 L: 2 Max: 1.2205 Min: 1.2205
05:07:10 L: 2 Max: 1.2206 Min: 1.2205
05:07:01 L: 2 Max: 1.2206 Min: 1.2206
05:06:51 L: 2 Max: 1.2206 Min: 1.22055
05:06:40 L: 2 Max: 1.2207 Min: 1.22055
05:06:30 L: 2 Max: 1.2207 Min: 1.2207
05:06:20 L: 2 Max: 1.2207 Min: 1.2207
So question is how to interpret output of this indicator?
Really need your feedback about this question.