pine_new
Replace the current Pine editor buffer with a blank template for an indicator, strategy, or library. Requires confirm_overwrite if the buffer holds real content to prevent accidental loss.
Instructions
Replace the Pine editor buffer with a blank template. WARNING: this does NOT create a new saved script. It overwrites whatever script the editor currently has open, and a following pine_save or pine_compile persists that overwrite to the cloud. It refuses to run when the buffer holds real content unless confirm_overwrite is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Template to write into the editor | |
| confirm_overwrite | No | Required when the editor already holds real content. Read it with pine_get_source first. |