TradingView Strategy Settings
by @mariuswang007
Open and modify TradingView strategy settings on the current chart page. Use when: user wants to change strategy parameters, adjust inputs like stop-loss/tak...
clawhub install tv-strategy-settingsđ About This Skill
name: tv-strategy-settings description: "Open and modify TradingView strategy settings on the current chart page. Use when: user wants to change strategy parameters, adjust inputs like stop-loss/take-profit/period/amount, modify strategy properties like initial capital/commission/slippage, or tune any strategy setting on TradingView. Supports natural language (e.g. 'ćć˘ććšć2%') and exact parameter names. NOT for: creating new strategies, writing Pine Script code, or chart drawing."
TradingView Strategy Settings
Modify strategy parameters on an already-open TradingView chart page via browser automation.
Prerequisites
BrowserTool with action tabs to find the TradingView tab firstCore Workflow
1. Locate the TradingView Tab
BrowserTool 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=
2. Take Page Snapshot
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.
3. Open Strategy Settings Dialog
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=
Alternative approaches if gear icon is not visible:
Wait for the dialog to appear:
BrowserTool action=wait type=text text="Inputs" timeout=5000
4. Navigate to the Correct Tab
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=
5. Snapshot the Settings Panel
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).
6. Locate the Target Parameter
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.
7. Modify the Parameter Value
For number/text inputs â triple-click to select all, then type new value:
BrowserTool action=click ref= clickCount=3
BrowserTool action=type ref= text=""
For checkboxes:
BrowserTool action=click ref=
For dropdowns â click to open, then click the desired option:
BrowserTool action=click ref=
BrowserTool action=snapshot format=ai
BrowserTool action=click ref=
8. Apply Changes
Click the "Ok" or "祎ĺŽ" button to apply and close the dialog:
BrowserTool action=click ref=
Or click "Apply" / "ĺşç¨" to apply without closing (useful for batch changes).
9. Verify
Take a snapshot or screenshot to confirm the strategy has recalculated with the new parameters:
BrowserTool action=screenshot
Batch Modifications
When the user requests multiple parameter changes at once:
1. Open settings dialog once 2. Modify each parameter sequentially (re-snapshot between changes if the dialog layout shifts) 3. Click "Ok" once at the end
Error Handling
wait type=networkidle if the chart is still loadingLanguage Notes
âď¸ Configuration
BrowserTool with action tabs to find the TradingView tab first