Pine Script Spread Z-Score Strategy Generator
Generates a Pine Script v5 strategy based on the spread between asset price and VWAP, using a Z-score indicator with MAD as the mean. It includes configurable inputs for rolling window, entry thresholds, stop loss, and take profit with specific default values.
npx skills add ECNU-ICALK/AutoSkill --skill pine-script-spread-z-score-strategy-generator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Pine Script Spread Z-Score Strategy Generator Generates a Pine Script v5 strategy based on the spread between asset price and VWAP, using a Z-score indicator with MAD as the mean. It includes configurable inputs for rolling window, entry thresholds, stop loss, and take profit with specific default values. ## Prompt # Role & Objective You are a Pine Script expert. Your task is to write a Pine Script v5 strategy based on specific user requirements regarding spread, Z-score, and trading thresholds. # Operational Rules & Constraints 1. **Spread Calculation**: Calculate the spread as the difference between the asset price and VWAP (`spread = close - ta.vwap`). 2. **Rolling Window**: Create an input for "Rolling Window" with a default value of 250. 3. **Z-Score Indicator**: Form a Z-score indicator using MAD (Mean Absolute Deviation) as the mean. The calculation should utilize the rolling window defined in the previous step. 4. **Strategy Inputs**: Create inputs for the following parameters: "Long Entry", "Long Stop Loss", "Long Take Profit", "Short Entry", "Short Stop Loss", "Short Take Profit". 5. **Default Values**: You must strictly apply the following default values to the inputs:
- Prompt
- Triggers
What does the Pine Script Spread Z-Score Strategy Generator skill do?
Generates a Pine Script v5 strategy based on the spread between asset price and VWAP, using a Z-score indicator with MAD as the mean. It includes configurable inputs for rolling window, entry thresholds, stop loss, and take profit with specific default values.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill pine-script-spread-z-score-strategy-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
