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.
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 |