ohlcv-indicators 3.5.3 → 3.5.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohlcv-indicators",
3
- "version": "3.5.3",
3
+ "version": "3.5.41",
4
4
  "description": "A JavaScript library featuring optimized trading indicators for OHLCV arrays [{open, high, low, close, value}]. This library is optimized for backtesting and trading bot development.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -16,6 +16,8 @@ export const pca = main => {
16
16
 
17
17
  const {type, group, lag, pca: pcaOptions} = options
18
18
 
19
+ if(!group || pcaOptions === null) continue
20
+
19
21
  const {
20
22
  showSource = false,
21
23
  storeModel = false,
@@ -27,7 +29,7 @@ export const pca = main => {
27
29
  ignoreZeroVariance = false
28
30
  } = pcaOptions
29
31
 
30
- if(!group || pcaOptions === null) continue
32
+
31
33
 
32
34
  validateBoolean(showSource, 'showSource', 'scaler.options.pca.showSource')
33
35
  validateBoolean(storeModel, 'storeModel', 'scaler.options.pca.storeModel')
@@ -49,7 +51,6 @@ export const pca = main => {
49
51
 
50
52
  scaledKeyNames.push(...laggedKeys)
51
53
 
52
-
53
54
  const diffLen = len - startIndex
54
55
  const numCols = scaledKeyNames.length
55
56
  const tempArr = new Array(diffLen)