MCPVault

draw_shape

MCP tool from Tradingview MCP by tradesdontlie

Draw horizontalline, trendline, rectangle, text

How to use it

draw_shape is exposed by the Tradingview MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the draw_shape tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

FULL TRADINGVIEW MCP LISTING

Other tools in Tradingview MCP (37)

batch_run

Run action across multiple symbols/timeframes

capture_screenshot

Screenshot (regions: full, chart, strategytester)

chart_get_state

First call — get symbol, timeframe, all indicator names + IDs

chart_manage_indicator

Add/remove indicators. Use full names: "Relative Strength Index" not "RSI"

chart_scroll_to_date

Jump to a date (ISO: "2025-01-15")

chart_set_symbol

Change ticker (BTCUSD, AAPL, ES1!, NYMEX:CL1!)

chart_set_timeframe

Change resolution (1, 5, 15, 60, D, W, M)

chart_set_type

Change style (Candles, HeikinAshi, Line, Area, Renko)

chart_set_visible_range

Zoom to exact range (unix timestamps)

data_get_ohlcv

Get price bars. Use summary: true for compact stats

data_get_pine_boxes

Read price zones / ranges as {high, low} pairs

data_get_pine_labels

Read text annotations + prices ("PDH 24550", "Bias Long")

data_get_pine_lines

Read horizontal price levels (support/resistance, session levels)

data_get_pine_tables

Read data tables (session stats, analytics dashboards)

data_get_study_values

Read current RSI, MACD, BB, EMA values from all indicators

pane_focus

Focus a specific pane by index

pane_list

List all panes with symbols and active state

pane_set_layout

Change grid: s, 2h, 2v, 2x2, 4, 6, 8

pane_set_symbol

Set symbol on any pane

pine_analyze

Offline static analysis (no chart needed)

pine_check

Server-side compile check (no chart needed)

pine_get_console

4. Read log.info() output

pine_get_errors

3. Read compilation errors if any

pine_get_source

Read current script (warning: can be 200KB+ for complex scripts)

pine_new

Create blank indicator/strategy/library

pine_save

5. Save to TradingView cloud

pine_set_source

1. Inject code into editor

pine_smart_compile

2. Compile with auto-detection + error check

quote_get

Get latest price, OHLC, volume

replay_autoplay

Auto-advance (set speed in ms)

replay_start

Enter replay at a date

replay_status

Check position, P&L, date

replay_step

Advance one bar

replay_stop

Return to realtime

replay_trade

Buy/sell/close positions

tab_list

List open chart tabs

tab_switch

Switch to a tab by index