Socket
Socket
Sign inDemoInstall

technicalindicators

Package Overview
Dependencies
135
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.11 to 1.1.12

7

lib/candlestick/Doji.js

@@ -11,3 +11,8 @@ import CandlestickFinder from './CandlestickFinder';

let daysClose = data.close[0];
return this.approximateEqual(daysOpen, daysClose);
let daysHigh = data.high[0];
let daysLow = data.low[0];
let isOpenEqualsClose = this.approximateEqual(daysOpen, daysClose);
let isHighEqualsOpen = isOpenEqualsClose && this.approximateEqual(daysOpen, daysHigh);
let isLowEqualsClose = isOpenEqualsClose && this.approximateEqual(daysClose, daysLow);
return (isOpenEqualsClose && isHighEqualsOpen == isLowEqualsClose);
}

@@ -14,0 +19,0 @@ }

6

lib/candlestick/DragonFlyDoji.js

@@ -12,5 +12,7 @@ import CandlestickFinder from './CandlestickFinder';

let daysHigh = data.high[0];
let daysLow = data.low[0];
let isOpenEqualsClose = this.approximateEqual(daysOpen, daysClose);
let isHighEqualsOpen = this.approximateEqual(daysOpen, daysHigh);
return (isOpenEqualsClose && isHighEqualsOpen);
let isHighEqualsOpen = isOpenEqualsClose && this.approximateEqual(daysOpen, daysHigh);
let isLowEqualsClose = isOpenEqualsClose && this.approximateEqual(daysClose, daysLow);
return (isOpenEqualsClose && isHighEqualsOpen && !isLowEqualsClose);
}

@@ -17,0 +19,0 @@ }

@@ -11,6 +11,8 @@ import CandlestickFinder from './CandlestickFinder';

let daysClose = data.close[0];
let daysHigh = data.high[0];
let daysLow = data.low[0];
let isOpenEqualsClose = this.approximateEqual(daysOpen, daysClose);
let isLowEqualsOpen = this.approximateEqual(daysOpen, daysLow);
return (isOpenEqualsClose && isLowEqualsOpen);
let isHighEqualsOpen = isOpenEqualsClose && this.approximateEqual(daysOpen, daysHigh);
let isLowEqualsClose = isOpenEqualsClose && this.approximateEqual(daysClose, daysLow);
return (isOpenEqualsClose && isLowEqualsClose && !isHighEqualsOpen);
}

@@ -17,0 +19,0 @@ }

{
"name": "technicalindicators",
"version": "1.1.11",
"version": "1.1.12",
"description": "Techincal Indicators written in javascript",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc