Documentation / @finchart/indicators / kagi
Function: kagi()
kagi(
source,options):KagiPoint[]
Defined in: indicators/src/kagi.ts:57
Close-based, one candle moves the line once. The first candle's close is the start; the first close at least reversal away from it sets the direction (Nison's rules 1–3 — nothing is drawn while the first move is short of the reversal amount). In the running direction a close beyond the line's extreme extends it (the last point's y and closedAt move). A close that backs off the extreme by reversal or more fixes the extreme as a vertex and starts the opposite segment from it, ending at that close. Anything else moves nothing. The shoulders (a fixed vertex ending a rising segment) and waists (ending a falling one) are what the next segments cross for their tone.
Parameters
source
readonly OHLC[]