ensure_analysis_overlay
Idempotently ensures a TradingView chart has exactly one Bushido analysis overlay at the latest saved Pine version, reusing, adding, or upgrading and migrating inputs, then removing old versions; changes preview-only without confirmation.
Instructions
Idempotently ensure that the audited Bushido Analysis Overlay is present once on a target chart at the latest saved Pine version. It reuses a current instance, adds a missing one, or transactionally adds the latest version, migrates the analysis inputs, verifies them, then removes the old instance. Source, symbol, timeframe, pine_id, version and input contract are checked fail-closed. Without confirm=true, any chart-changing action is preview-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pine_id": "<pine_id>",
"expected_symbol": "<expected_symbol>",
"expected_timeframe": "<expected_timeframe>"
},
"name": "ensure_analysis_overlay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| pine_id | Yes | Saved Bushido Analysis Overlay id from list_pine_scripts | |
| chart_index | No | ||
| expected_symbol | Yes | ||
| expected_timeframe | Yes |