Constructors
constructor
new Kagi( priceChart: TradingChart , chart: ChartXY < UIBackground > , currentData: XOHLC [] , dates: string [] , kagiBase?: BaseType , reversalAmount?: number , atrPeriodCount?: number , colorThick?: Color , colorThin?: Color , lineWidth?: number ) : Kagi
Parameters
chart: ChartXY < UIBackground >
currentData: XOHLC []
dates: string []
kagiBase: BaseType = BaseType.Close
reversalAmount: number = 2
atrPeriodCount: number = 14
colorThick: Color = ...
colorThin: Color = ...
lineWidth: number = 2
Methods
_solve Kagi Value
_solve Kagi Value( xValue: number ) : number
Returns number
setATRPeriod Count
setATRPeriod Count( newPeriodCount: number ) : void
Returns void
set Kagi Base Type
set Kagi Base Type( baseType: BaseType ) : void
Returns void
set Line Width
set Line Width( newWidth: number ) : void
Returns void
set Reversal
set Reversal( boxSize: number ) : void
Returns void
set Thick Line Color
set Thick Line Color( newColor: string ) : void
Returns void
set Thin Line Color
set Thin Line Color( newColor: string ) : void
Returns void
Kagi chart is a line chart changing direction when the price moves by a certain amount. It is constructed using a series of connected, time-independent vertical lines. Kagi charts give information on supply and demand forces and price reversals.