get_key_levels
Identifies support and resistance levels near the current price from all chart indicators, tags each level with its source, and returns them sorted by distance.
Instructions
Aggregate key price levels near the current price from ALL price-scale indicators on a TradingView chart: plot values whose titles name a level (S/R, pivot, VWAP, bands, BOS/CHoCH...), horizontal lines, box/zone edges and label prices, each tagged with its source indicator. Oscillator panes (RSI etc.) and generic value plots (open/high/low/close mirrors) are excluded. Sorted by distance from the current price. Use this instead of manually combining get_indicator_values and get_indicator_graphics when you need a support/resistance table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max levels to return, nearest first. Default: 30 | |
| chart_index | No | Chart index in a multi-chart layout. Default: the active chart | |
| range_percent | No | Only levels within ±this % of the current price. Default: 3 | |
| include_all_plots | No | Include every numeric plot as a level, not just level-named ones. Use when an indicator names its S/R plots unusually. Default: false |