Heikinashi
Converts OHLC Candlestick data to Heikin-Ashi
The conversion is done based on this:
HAClose = + + + / 4;HAOpen = HA + HA / 2;HAHigh = ;HALow = ; // Where (0) means current candle, and (-1) means the previous candle
The output is an array of the same size
let result = open: 100 high: 200 low: 10 close: 50 ...
Install
npm i -S heikinashi
Usage
var HeikinAshi = ; let result = ; console;
Examples:
This package is used to implement TD Sequential indicator in Bitcoin CrazYness app:
Below is an example screenshot.
Standard | Heikin Ashi |
---|---|