@adaptic/utils 0.0.992 → 0.0.993
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/README.md +15 -3
- package/dist/index.cjs +0 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +0 -6
- package/dist/index.mjs.map +1 -1
- package/dist/test.js +0 -220
- package/dist/test.js.map +1 -1
- package/dist/types/technical-analysis.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/index.d.ts.map +1 -1
- package/package.json +1 -2
package/dist/index.mjs
CHANGED
|
@@ -11615,7 +11615,6 @@ function calculateBollingerBands(priceData, { period = 20, standardDeviations =
|
|
|
11615
11615
|
close: priceData[i].close,
|
|
11616
11616
|
});
|
|
11617
11617
|
}
|
|
11618
|
-
// logIfDebug(`Calculated Bollinger Bands for ${result.length} periods`);
|
|
11619
11618
|
return result;
|
|
11620
11619
|
}
|
|
11621
11620
|
/**
|
|
@@ -11678,7 +11677,6 @@ function calculateEMA(priceData, { period = 20, period2 = 9 } = {}) {
|
|
|
11678
11677
|
}
|
|
11679
11678
|
result.push(entry);
|
|
11680
11679
|
}
|
|
11681
|
-
// logIfDebug(`Calculated EMA for ${result.length} periods`);
|
|
11682
11680
|
return result;
|
|
11683
11681
|
}
|
|
11684
11682
|
/**
|
|
@@ -11740,7 +11738,6 @@ function calculateFibonacciLevels(priceData, { lookbackPeriod = 20, retracementL
|
|
|
11740
11738
|
close: priceData[i].close,
|
|
11741
11739
|
});
|
|
11742
11740
|
}
|
|
11743
|
-
// logIfDebug(`Calculated Fibonacci levels for ${result.length} periods`);
|
|
11744
11741
|
return result;
|
|
11745
11742
|
}
|
|
11746
11743
|
/**
|
|
@@ -11788,7 +11785,6 @@ function calculateMACD(priceData, { shortPeriod = 12, longPeriod = 26, signalPer
|
|
|
11788
11785
|
close: emaLong[i].close,
|
|
11789
11786
|
});
|
|
11790
11787
|
}
|
|
11791
|
-
// logIfDebug(`Calculated MACD for ${result.length} periods`);
|
|
11792
11788
|
return result;
|
|
11793
11789
|
}
|
|
11794
11790
|
/**
|
|
@@ -11844,7 +11840,6 @@ function calculateRSI(priceData, { period = 14 } = {}) {
|
|
|
11844
11840
|
close: priceData[i].close,
|
|
11845
11841
|
});
|
|
11846
11842
|
}
|
|
11847
|
-
// logIfDebug(`Calculated RSI for ${result.length} periods`);
|
|
11848
11843
|
return result;
|
|
11849
11844
|
}
|
|
11850
11845
|
/**
|
|
@@ -11897,7 +11892,6 @@ function calculateStochasticOscillator(priceData, { lookbackPeriod = 5, signalPe
|
|
|
11897
11892
|
});
|
|
11898
11893
|
}
|
|
11899
11894
|
}
|
|
11900
|
-
// logIfDebug(`Calculated Stochastic Oscillator for ${result.length} periods`);
|
|
11901
11895
|
return result;
|
|
11902
11896
|
}
|
|
11903
11897
|
/**
|