tv_get_ohlcv
Extract open, high, low, close, and volume (OHLCV) bars from the active TradingView chart for analysis and backtesting. Read-only retrieval using the chart widget API with a fallback to DOM scraping.
Instructions
Extract OHLCV bars from the active TradingView chart. Best-effort via the widget API, with a DOM fallback. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxBars | No | Maximum bars to return (default 500). |