hhv-llv
Calculates the highest high values / lowest low values of closing prices over the preceding periods (periods includes the current time)
Install
$ npm install hhv-llv
Usage
const array = 1 2 4 1 // [, 2, 4, 4] // 4 // [<4 empty items>] // [1, 2, 4, 1] // [, 1, 2, 2]
hhv(data, periods)
- data
Array.<Number>
the array of closing prices. - periods
Number
the size of periods
Returns Number
the highest closing prices over the preceding periods
periods.
llv(data, periods)
Instead, returns Number
the lowest closing prices.
License
MIT