v0.0.1
Bollinger Bands as simple as it gets
Repository
Current version released
4 years ago
Bollinger Bands
Bollinger Bands as simple as it gets.
Usage Examples
import { BollingerBandsService, IBollingerBands } from "https://deno.land/x/bollinger_bands/mod.ts"
const testSequenceMayBePricesOrPNLs = [4, 10, 13, 13]
const bollingerBands: IBollingerBands = BollingerBandsService.getBollingerBands(testSequenceMayBePricesOrPNLs)
console.log(bollingerBands.sma)
console.log(bollingerBands.lower)
console.log(bollingerBands.upper)
Execute Unit Tests
deno test https://deno.land/x/bollinger_bands/src/bollinger-bands-service.spec.tsFor further examples you can check the unit tests.
Further Information & Links
https://lukkval.com/bollinger-bands-formula-and-calculation/