v0.2.0
Bollinger Bands as simple as it gets
Repository
Current version released
4 years ago
Bollinger Bands
Bollinger Bands as simple as it gets.
Usage Example
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 Usage Example
deno run https://deno.land/x/bollinger_bands/usage-example.tsExecute Unit Tests
deno test https://deno.land/x/bollinger_bands/src/bollinger-bands-service.spec.tsFor further examples you can check the unit tests.