ohlcv-indicators 3.5.67 → 3.5.68

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/index.js CHANGED
@@ -371,7 +371,7 @@ export default class OHLCV_INDICATORS {
371
371
 
372
372
  validateNumber(lag, {min: 0, max, allowDecimals: false}, 'options.lag', methodName)
373
373
 
374
- this.inputParams.push({key: methodName, order: 0, params: [kPeriod, kSlowingPeriod, dPeriod, {lag}]})
374
+ this.inputParams.push({key: methodName, params: [kPeriod, kSlowingPeriod, dPeriod, {lag}]})
375
375
 
376
376
  return this
377
377
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohlcv-indicators",
3
- "version": "3.5.67",
3
+ "version": "3.5.68",
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",
@@ -6,9 +6,9 @@ export const stochastic = (main, index, kPeriod, kSlowingPeriod, dPeriod, {lag})
6
6
 
7
7
  const { verticalOhlcv, instances } = main;
8
8
 
9
- const paramsKey = (kPeriod === 14 && kSlowingPeriod === 3 && dPeriod === 3) ? '' : `${kPeriod}_${kSlowingPeriod}_${dPeriod}`
10
- const stochD = `stoch_d${paramsKey}`;
11
- const stochK = `stoch_k${paramsKey}`;
9
+ const paramsKey = `${kPeriod}_${kSlowingPeriod}_${dPeriod}`
10
+ const stochD = `stoch_d_${paramsKey}`;
11
+ const stochK = `stoch_k_${paramsKey}`;
12
12
  const instanceKey = paramsKey
13
13
 
14
14
  // Initialization on the first index.