SurfAgent TradingView
by @surfagentapp
TradingView platform skill for SurfAgent, covering chart workflows, proof rules, blockers, and when to use the TradingView adapter over generic browser control.
clawhub install surfagent-tradingviewπ About This Skill
name: tradingview description: TradingView platform skill for SurfAgent, covering chart workflows, proof rules, blockers, and when to use the TradingView adapter over generic browser control. version: 1.0.0 metadata: openclaw: homepage: https://surfagent.app emoji: "π"
TradingView
> TradingView-specific operating skill. Use this with browser-operations, surfagent-perception, and surfagent-mcp-selection.
This skill teaches agents how to work TradingView without treating a live chart like a generic webpage, guessing at chart state, or claiming technical-analysis results without proof.
1. Use this skill for
2. Tool preference
Use this order: 1. TradingView adapter state/data tools 2. TradingView adapter action tools 3. SurfAgent perception for visual confirmation 4. targeted browser evaluation only when needed 5. raw generic browser actions as fallback
Verdict: if the task is about chart state, market data, indicators, Pine, alerts, or drawings, the TradingView adapter should usually win.
3. TradingView truths that matter
TradingView is not a normal DOM-first app.
It has:
Important: clicking around the UI is usually the dumbest path. If the adapter can read or set chart state directly, use it.
4. Core TradingView loop
Default loop: 1. confirm TradingView is open and chart-ready 2. read current chart state 3. apply one chart change or extract one data view 4. verify the changed state or rendered chart 5. continue only if the chart settled into the expected mode
5. Verified chart workflow
Known-good pattern:
tv_health_checktv_chart_statetv_chart_statetv_screenshot or use perceptiontv_quote, tv_ohlcv, tv_indicators, or tv_study_valuesDo not claim a chart change succeeded from navigation alone.
6. Proof rules
For TradingView, success requires evidence from the right layer.
1. state proof
- tv_health_check says TradingView is open and chart-ready
- tv_chart_state shows the expected symbol, interval, or chart type
2. data proof - quote, OHLCV, indicator, study, alert, drawing, or watchlist output matches the requested target
3. visual proof when the task is visual
- tv_screenshot, tv_export_image, or perception confirms the rendered chart or dialog
Good proof examples:
tv_chart_statetv_drawings_list plus screenshottv_alert_listBad proof:
7. When to use the TradingView adapter
Prefer the TradingView adapter for:
Current adapter verbs include:
tv_health_checktv_opentv_chart_statetv_set_symboltv_set_timeframetv_set_chart_typetv_quotetv_ohlcvtv_indicatorstv_study_valuestv_screenshottv_export_imagetv_alert_listtv_alert_createtv_draw_horizontaltv_drawings_listtv_drawings_cleartv_pine_open_editortv_pine_set_sourcetv_pine_compiletv_pine_get_errorstv_watchlisttv_watchlist_add8. When generic browser control is still acceptable
Use targeted browser control when:
Even then:
9. Chart workflows
Symbol/timeframe/chart type
Use: 1.tv_chart_state
2. tv_set_symbol or tv_set_timeframe or tv_set_chart_type
3. tv_chart_state again
4. optional screenshot if the chart appearance mattersData extraction
Use: 1.tv_chart_state
2. tv_quote or tv_ohlcv
3. tv_indicators or tv_study_values if the task depends on studiesVisual chart evidence
Use: 1. adapter state/data first 2.tv_screenshot for browser render proof
3. tv_export_image when native export quality matters and the flow is supported10. Pine workflows
Use the adapter, not raw typing, for Pine work.
Default loop:
1. tv_pine_open_editor
2. tv_pine_set_source
3. tv_pine_compile
4. tv_pine_get_errors
5. screenshot or perception if the rendered study placement matters
Proof standard:
11. Alerts and drawings
For alerts:
tv_alert_list to inspect current statetv_alert_create to open the flowFor drawings:
tv_draw_horizontal for support/resistance style actionstv_drawings_list12. Common blockers
Watch for:
When blocked:
13. Token-efficiency rules for TradingView
Prefer:
Avoid:
tv_ohlcv exists14. Minimal TradingView checklist
Before claiming a TradingView task done, confirm:
15. Relationship to other docs
Use alongside:
browser-operations for universal browser rulessurfagent-perception for screenshots and visual state diffingsurfagent-mcp-selection for layer choice disciplinesurfagent-tradingview adapter docs for concrete MCP setup and verb behavior