Install
openclaw skills install tv-strategy-settingsOpen and modify TradingView strategy settings on the current chart page. Use when: user wants to change strategy parameters, adjust inputs like stop-loss/tak...
openclaw skills install tv-strategy-settingsModify strategy parameters on an already-open TradingView chart page via browser automation.
BrowserTool with action tabs to find the TradingView tab firstBrowserTool action=tabs
Find the tab with "TradingView" in the title. If multiple tabs match, pick the one with a chart URL (tradingview.com/chart/). Focus it:
BrowserTool action=focus tabId=<id>
BrowserTool action=snapshot format=ai
Identify the strategy panel at the bottom of the chart. Look for the strategy name in the "Strategy Tester" panel area.
The settings gear icon is located near the strategy name in the Strategy Tester panel header, or on the strategy overlay on the chart itself. Locate it via the snapshot and click:
BrowserTool action=click ref=<gear-icon-ref>
Alternative approaches if gear icon is not visible:
Wait for the dialog to appear:
BrowserTool action=wait type=text text="Inputs" timeout=5000
The settings dialog has tabs: Inputs, Properties, Style, Visibility.
input.*() in Pine Script) — stop-loss, take-profit, period lengths, thresholds, etc.Parameter routing:
| User says | Target tab |
|---|---|
| 止损 / stop loss / take profit / 周期 / period / length / threshold / amount | Inputs |
| 初始资金 / initial capital / commission / 手续费 / slippage / 滑点 / pyramiding / 加仓 / order size / margin | Properties |
| 颜色 / color / line width / plot style | Style |
Click the appropriate tab:
BrowserTool action=click ref=<tab-ref>
BrowserTool action=snapshot format=ai
This reveals all parameter names and their current values. The dialog content is organized by groups with input fields (number inputs, checkboxes, dropdowns, color pickers).
For exact parameter names: Match directly against input labels in the snapshot.
For natural language: Map the user's description to the closest matching label. Common mappings:
| Natural language (zh/en) | Likely parameter labels |
|---|---|
| 止损 / stop loss | Stop Loss, SL, Stop Loss % |
| 止盈 / take profit | Take Profit, TP, Take Profit % |
| 周期 / period / length | Length, Period, Lookback |
| 初始资金 / initial capital | Initial Capital |
| 手续费 / commission | Commission |
| 滑点 / slippage | Slippage |
| 加仓 / pyramiding | Pyramiding |
| 订单大小 / order size | Order Size |
If ambiguous, take a snapshot and present the available parameters to the user for confirmation before modifying.
For number/text inputs — triple-click to select all, then type new value:
BrowserTool action=click ref=<input-ref> clickCount=3
BrowserTool action=type ref=<input-ref> text="<new-value>"
For checkboxes:
BrowserTool action=click ref=<checkbox-ref>
For dropdowns — click to open, then click the desired option:
BrowserTool action=click ref=<dropdown-ref>
BrowserTool action=snapshot format=ai
BrowserTool action=click ref=<option-ref>
Click the "Ok" or "确定" button to apply and close the dialog:
BrowserTool action=click ref=<ok-button-ref>
Or click "Apply" / "应用" to apply without closing (useful for batch changes).
Take a snapshot or screenshot to confirm the strategy has recalculated with the new parameters:
BrowserTool action=screenshot
When the user requests multiple parameter changes at once:
wait type=networkidle if the chart is still loading