is-doji
Test if a Japanese candlestick qualifies as a doji
Install
npm install is-doji
Use
console.logisDojidojiCandle//=> true console.logisDojinonDojiCandle//=> false
Index
Interfaces
Functions
Functions
isDoji
▸ isDoji(candle: Candle, maximumBodyAsPercentOfSpread?: number
): boolean
Defined in is-doji.ts:25
Returns true if candle qualifies as a doji.
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
candle | Candle | - | |
Default value maximumBodyAsPercentOfSpread |
number |
8 | Largest body:spread ratio to qualify as a doji. |
Returns: boolean
True if candle is a doji.