Skip to content

charton API


charton API / @chart-on/core / index / fibLevels

Function: fibLevels() ​

fibLevels(start, end, levels?): FibLevel[]

Defined in: packages/core/src/drawing/fibonacci.ts:25

Retracement prices of a move from start to end. Level 0 sits at the end of the move and 1 at its start, so 0.618 is the 61.8% retracement; levels outside 0..1 project beyond the move. Non-finite levels are skipped.

Parameters ​

start ​

number

end ​

number

levels? ​

readonly number[] = FIB_LEVELS

Returns ​

FibLevel[]