is-bullish

1.0.1 • Public • Published

is-bullish

tryes to figure out if a given sequence looks increasing

Usage

Import lib.

const isBullish = require('is-bullish')

If last value is lower than first value it will return false.

isBullish([1, 20, 400, 0]) // false

Otherwise it compares the mean of the first half and compares it to the mean of second half.

isBullish([1, 2, 4, 3]) // true

See also

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i is-bullish

      Weekly Downloads

      0

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      3.27 kB

      Total Files

      5

      Last publish

      Collaborators

      • fibo