GetFractal does not return any values? #599
-
Attempting to use the GetFractals() on my quotes (https://dotnet.stockindicators.dev/indicators/Fractal/#content)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Also, keep in mind, we return the same number of elements as there are in this historical quotes. Since there are relatively fewer identified Fractals, most of the result values will be |
Beta Was this translation helpful? Give feedback.
quotes.Count / 2 - 1)
as the fractalwindowSize
is likely the problem in your example. By definition, you have a Williams' Fractal only when the evaluation point is the highest or lowest point within +/-windowSize
bars. Try2
here and use at least 100 quotes and see if you get any results.Also, keep in mind, we return the same number of elements as there are in this historical quotes. Since there are relatively fewer identified Fractals, most of the result values will be
null
.