Quick Pine Script Creation
Creating new Pine Script from your description: $ARGUMENTS
Implementation Steps
Analyze the request to determine:
- Type: Indicator or Strategy?
- Complexity: Simple, Medium, or Complex?
- Key components needed
Check for relevant templates in:
templates/indicators/- For indicator patternstemplates/strategies/- For strategy patternstemplates/utilities/- For helper functions
Create the file at
projects/[descriptive-name].pineImplement with best practices:
//@version=6declaration//@strategy_alert_messagefor strategies (after thestrategy()call)- Proper input groups and tooltips
- NA value handling
- No repainting issues
Add basic debugging if helpful
Quick Implementation Patterns
For Indicators:
//@version=6
indicator("Title", overlay=true)
// Implementation
For Strategies:
//@version=6
strategy("Title", overlay=true)
//@strategy_alert_message {{strategy.order.alert_message}}
// Implementation
Quality Checklist
Before delivering:
- Compiles without errors
- Handles NA values
- Uses cached loop boundaries
- Ternary operators on single lines
- Inputs have tooltips