SuperAPI AI Directory

create

Coding & development

View repository

Updated 10-16 02:25

About this skill

Quick Pine Script Creation

Creating new Pine Script from your description: $ARGUMENTS

Implementation Steps

  1. Analyze the request to determine:

    • Type: Indicator or Strategy?
    • Complexity: Simple, Medium, or Complex?
    • Key components needed
  2. Check for relevant templates in:

    • templates/indicators/ - For indicator patterns
    • templates/strategies/ - For strategy patterns
    • templates/utilities/ - For helper functions
  3. Create the file at projects/[descriptive-name].pine

  1. Implement with best practices:

    • //@version=6 declaration
    • //@strategy_alert_message for strategies (after the strategy() call)
    • Proper input groups and tooltips
    • NA value handling
    • No repainting issues
  2. 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