DemosRSI divergence

RSI divergence

import { ChartWidget } from '@tradecanvas/chart/widget'
import { detectDivergences } from '@tradecanvas/chart'

const widget = new ChartWidget(document.getElementById('chart')!, {
  symbol: 'EURUSD',
  timeframe: '15m',
  theme: 'light',
  adapter: feed,
})
const chart = widget.getChart()
chart.addIndicator('rsidiv')   // hidden: 1 adds the hidden ones, dashed

// Or read any line, one value a bar
const divergences = detectDivergences(bars, rsiValues)
import { ChartWidget } from '@tradecanvas/chart/widget'
import { detectDivergences } from '@tradecanvas/chart'

const widget = new ChartWidget(document.getElementById('chart')!, {
  symbol: 'EURUSD',
  timeframe: '15m',
  theme: 'dark',
  adapter: feed,
})
const chart = widget.getChart()
chart.addIndicator('rsidiv')   // hidden: 1 adds the hidden ones, dashed

// Or read any line, one value a bar
const divergences = detectDivergences(bars, rsiValues)

● Simulated market data, generated in your browser

138 indicators in their own panes or on the price, and 64 candlestick patterns marked on the bars.

API: addIndicator('rsidiv')