pine_new
Create a new blank Pine Script draft in the TradingView editor from a standard indicator, strategy, or library template. Use when starting from scratch; it clears unsaved editor changes.
Instructions
Create a new blank Pine Script draft in the editor from a standard template (indicator, strategy, or library). WHEN TO USE: Call when starting a new script from scratch rather than modifying existing code. SIDE EFFECTS: STATE_MUTATING (Clears current editor and loads starter template). LIMITATIONS: Unsaved changes in active editor will be overwritten.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of script to create |