ohlcv-indicators 3.2.0 → 3.2.1
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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -312,7 +312,7 @@ export default class OHLCV_INDICATORS {
|
|
|
312
312
|
throw new Error('"options" must be an object in bollingerBands. eg: {target, height, range}');
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
const {target = 'close', height = false, range = [], scale = null, lag = 0, autoMinMax} = options
|
|
315
|
+
const {target = 'close', height = false, range = [], scale = null, lag = 0, autoMinMax = false} = options
|
|
316
316
|
|
|
317
317
|
// Validate size and times
|
|
318
318
|
if (typeof size !== 'number' || size <= 0) {
|
|
@@ -326,7 +326,7 @@ export default class OHLCV_INDICATORS {
|
|
|
326
326
|
}
|
|
327
327
|
if (typeof lag !== 'number') {
|
|
328
328
|
|
|
329
|
-
throw new Error(`"lag" value
|
|
329
|
+
throw new Error(`"lag" value must be a number in bollingerBands.`);
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
if (typeof autoMinMax !== 'boolean') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ohlcv-indicators",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
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",
|