tv_pine_patch
Overwrite the entire Pine Script editor buffer with a full replacement source. Use before saving to apply changes in TradingView.
Instructions
Patch the Pine editor with a full replacement source (semantic patch = overwrite editor buffer). Call tv_pine_save afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Full replacement Pine Script v6 source. | |
| scriptName | Yes |