Token导航 LogoToken导航

Agent Skill · 开发

pine-script-strategy(松树脚本策略)

pine-script-strategy 用于辅助测试设计、自动化测试和回归验证,适合在 OpenClaw 中需要补充测试、分析失败日志或验证功能改动时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

pine-script-strategy 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 7,954。

总安装 3,427周安装 140GitHub Stars 公开资料未说明下载 1,098核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pine-script-strategy(松树脚本策略)
来源仓库:https://github.com/shailendartigga16-collab/pine-script-strategy
安装命令:
openclaw skills install pine-script-strategy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install pine-script-strategy

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

Pine Script策略开发助手支持编写、测试与回测交易算法。适合量化交易者构建TradingView自动化交易系统。提供信号生成、仓位管理与绩效统计模块示例代码。pine-script-strategy 属于开发类 Skill,可作为该场景下的辅助能力补充。实盘使用前必须完成历史数据回测与参数敏感性分析。

部分券商接口限制可能导致信号延迟需考虑滑点因素。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install pine-script-strategy;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

pine-script-strategy 怎么安装?

在终端执行 openclaw skills install pine-script-strategy。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

pine-script-strategy 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

pine-script-strategy 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

pine-script-strategy 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

pine-script-strategy 用的人多吗?

公开数据是累计安装 3,427 次,近一周安装 140 次,下载 1,098 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

pine-script-strategy 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
pine-script-strategy

松树脚本策略 · 本页

3,427—需要联网MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
pine-script-strategy
description
Write, fix, test, and backtest Pine Script v5 strategies and indicators for TradingView. Use when asked to create trading strategies, indicators, Pine Script code, fix compilation errors, backtest ideas, optimize strategies, write SMC/scalping/trend-following systems, or anything related to TradingView Pine Script. Triggers on phrases like "pine script", "tradingview strategy", "tradingview indicator", "backtest this", "write a strategy", "fix my pine script", "pine script error", "create indicator", "trading strategy".

Pine Script Strategy Builder

Write production-ready Pine Script v5 strategies and indicators for TradingView.

Workflow

  1. Understand the request — What instrument, timeframe, style (scalping/intraday/swing)?
  2. Choose type — strategy() for backtesting + signals, indicator() for visual-only
  3. Follow architecture — Data → Signal → Score → Filter → Risk → Execute → Visual
  4. Apply non-repaint rules — MANDATORY, no exceptions
  5. Run pre-flight checklist — Before finalizing ANY script
  6. Test mentally — Walk through edge cases, verify logic on paper
  7. Deliver — Complete script + explanation + suggested backtest settings

Non-Negotiable Rules

Non-Repaint (ALWAYS)

  • Wrap signals in barstate.isconfirmed
  • strategy() must have calc_on_every_tick=false, process_orders_on_close=false
  • request.security() → use barmerge.gaps_off, barmerge.lookahead_on with [1] offset
  • NEVER use current bar data for signal generation without confirmation

Risk Management (ALWAYS)

  • Every trade MUST have a stop loss — no naked positions
  • Use ATR-based or swing-based SL
  • RR ratio ≥ 1:2 preferred
  • Max trades per day filter
  • Cool-off after loss

Quality Gates (ALWAYS)

  • ADX chop filter (ADX > 20 to trade)
  • Session filter for appropriate trading hours
  • Volume confirmation (1.2x+ average)
  • Score threshold ≥ 70 for entries

Strategy Architecture

Layer 1: Data — Collect indicators (EMA, RSI, ATR, VWAP, ADX, Volume, BB, Pivots)
Layer 2: Signal — Generate signals (trend direction, breakouts, pullbacks, sweeps)
Layer 3: Score/Filter — Score + filter (multi-factor score, chop filter, session, cool-off)
Layer 4: Risk — SL/TP calculation (ATR/swing-based, partial exits, trailing)
Layer 5: Execute — Entry/exit logic (NON-REPAINT, barstate.isconfirmed)
Layer 6: Visual — Labels, boxes, tables, alerts, backgrounds

Pre-Flight Checklist

Before delivering ANY strategy, verify:

  • [ ] Non-repaint logic (barstate.isconfirmed)?
  • [ ] Chop filter (ADX > 20)?
  • [ ] Session filter?
  • [ ] Cool-off after loss?
  • [ ] Score threshold ≥ 70?
  • [ ] Strong breakout confirmation?
  • [ ] Full EMA alignment (3+ EMAs)?
  • [ ] Volume confirmation (1.2x+)?
  • [ ] RR ≥ 1:2?
  • [ ] Max trades per day?
  • [ ] SL always set?
  • [ ] Partial exit or trailing?

Templates

Strategy Template

//@version=5
strategy("Name", overlay=true,
     initial_capital=10000,
     default_qty_type=strategy.percent_of_equity,
     default_qty_value=10,
     commission_type=strategy.commission.percent,
     commission_value=0.05,
     slippage=1,
     pyramiding=0,
     process_orders_on_close=false,
     calc_on_every_tick=false)

Indicator Template

//@version=5
indicator("Name", overlay=true, max_lines_count=500, max_labels_count=500)

Key Patterns

Non-Repaint Entry

var bool longSignal = false
if barstate.isconfirmed
    longSignal := <conditions>
else
    longSignal := false

if longSignal and strategy.position_size == 0 and barstate.isconfirmed
    strategy.entry("Long", strategy.long)

Multi-Timeframe Non-Repaint

htfClose = request.security(syminfo.tickerid, "60", close[1], barmerge.gaps_off, barmerge.lookahead_on)

ATR-Based SL/TP

atrVal = ta.atr(14)
slLong = close - atrVal * 1.5
tpLong = close + atrVal * 1.5 * rrRatio

Score System (0-100)

score = 0
if close > ema50 and close > ema200  // Trend: 0-25
    score += 25
if rsi > 60                          // Momentum: 0-20
    score += 20
if volume > ta.sma(volume, 10) * 1.2  // Volume: 0-15
    score += 15
if close > high[1] and close > open   // Breakout: 0-20
    score += 20
if ta.atr(14) > ta.atr(14)[1]        // Volatility: 0-10
    score += 10
if close > ta.vwap(hlc3)              // VWAP: 0-10
    score += 10
totalScore = math.min(score, 100)

Cool-off After Loss

var int barsSinceLoss = 999
if strategy.closedtrades > 0
    if strategy.closedtrades.profit(strategy.closedtrades - 1) < 0
        barsSinceLoss := 0
barsSinceLoss += 1
coolOffOK = barsSinceLoss > 5

Common Errors & Fixes

ErrorFix
Cannot call ta.dmi().adx[diPlus, diMinus, adxVal] = ta.dmi(len, len)
Undeclared identifierDeclare with var before use
Cannot call operator [] on boolStore in var variable first
Script could not be translatedCheck commas, parentheses, v5 syntax
Too many plot callsMax 64 plots — use tables/labels
Loop takes too longMax 500K iterations — reduce loop
Variable type mismatchUse float() or int() casting

Detailed References

Output Format

When delivering a Pine Script:

  1. Complete, copy-paste-ready code
  2. Brief explanation of what it does
  3. Suggested TradingView backtest settings (timeframe, dates, instrument)
  4. Known limitations or things to watch for
  5. Ideas for improvement

Fixing Errors

When fixing Pine Script compilation errors:

  1. Read the error message carefully
  2. Match to known error patterns above
  3. Fix the specific issue — don't rewrite the whole script
  4. Verify the fix doesn't break other logic
  5. Re-check non-repaint compliance

Optimization Notes

  • Don't overfit to historical data
  • Test across multiple timeframes
  • Verify with walk-forward (test on different date ranges)
  • Keep strategies simple — complex ≠ profitable
  • If win rate < 50% or profit factor < 1.3, strategy needs work

平台分布

OpenClaw

94.26%
按下载量换算1,035

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills