technicalindicators
technicalindicators copied to clipboard
Observable and indicators
How do you plug those indicators with observable? Examples ?
Don't have to do much.
import { RSI } from 'technicalindicators'
// RxJs 5.x
const obs = getCandlesticks()
.map((candlesticks) => {
// ... codes
const opts = {
values: candlesticks.map(x => x.close) // Change to whatever the candle structure is
}
const rsis = RSI.calculate(opts)
// ... code
})