record-is-doji
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    record-is-doji Build Status npm version npm

    Test if a Japanese candlestick qualifies as a doji

    Install

    npm install record-is-doji

    Use

    import isDoji from 'record-is-doji'
    import Record from 'timeseries-record'
     
    const doji: Record = {
      Open: 0,
      High: 100,
      Low: 0,
      Close: 8,
      Time: 1,
      Volume: 1
    }
     
    const nonDoji: Record = {
      Open: 0,
      High: 100,
      Low: 0,
      Close: 100,
      Time: 1,
      Volume: 1
    }
     
    console.log(isDoji(doji))
    //=> true
     
    console.log(isDoji(nonDoji))
    //=> false

    Related

    Index


    Install

    npm i record-is-doji

    DownloadsWeekly Downloads

    4

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    4.78 kB

    Total Files

    4

    Last publish

    Collaborators

    • hamroctopus