charton API / @chart-on/ta / fractals
Function: fractals()
fractals(
high,low,wing,out?):Fractals
Defined in: fractals.ts:28
Fractals: bars whose high is strictly above the highs of the wing bars before and after it (up), or whose low is strictly below theirs (down); a tie is no fractal. A fractal shows once its last wing bars exist, so the newest wing bars have none yet: recompute over every bar rather than one bar at a time.
Parameters
high
low
wing
number