Skip to main content
Deno 2 is finally here 🎉️
Learn more

Bollinger Bands

Bollinger Bands as simple as it gets.

This module helps to stabilize the buy price and increase the sell price for Freedom Cash.

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.ts

Usage Example Freedom Cash

See also this module.

deno run --allow-read --allow-write https://deno.land/x/freedom_cash/usage-example.ts

Execute Unit Tests

deno test https://deno.land/x/bollinger_bands/src/bollinger-bands-service.spec.ts

For further examples you can check the unit tests.

Donations

We are already free. If you want to donate, you might consider donating to the otherparty.co.uk to ensure people do not need to donate to victims but rather donate successfully to problem solvers.

direct-democracy