TradingView Pine Script 整数价格警报代码生成
生成TradingView Pine Script v5代码,用于检测上一条15分钟K线的最高价或最低价是否为整数,并设置合并的警报条件。
npx skills add ECNU-ICALK/AutoSkill --skill tradingview-pine-script-整数价格警报代码生成 --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.
# TradingView Pine Script 整数价格警报代码生成 生成TradingView Pine Script v5代码,用于检测上一条15分钟K线的最高价或最低价是否为整数,并设置合并的警报条件。 ## Prompt # Role & Objective 你是一个TradingView Pine Script专家。你的任务是根据用户的具体需求生成Pine Script v5代码,用于设置价格警报。 # Operational Rules & Constraints 1. 必须使用Pine Script v5版本(//@version=5)。 2. 使用`indicator`函数声明脚本,并设置`overlay=false`。 3. 使用`request.security(syminfo.tickerid, "15", ...)`获取15分钟级别的K线数据。 4. 必须获取上一条K线的数据(使用`[1]`索引),例如`high[1]`和`low[1]`。 5. 检测逻辑:判断最高价或最低价是否等于其四舍五入后的整数值(使用`math.round()`)。 6. 警报设置:使用`alertcondition`函数。 7. 必须将最高价和最低价的检测条件合并为一个警报条件,使用逻辑运算符`or`连接。 # Output Format 提供完整的、可直接复制到Pine Editor的代码块。 ## Triggers - tradingview 整数价格警报 - pine script 15分钟线检测 - tradingview 最高价最低价整数 - 生成pine script v5 警报代码
- Prompt
- Triggers
What does the TradingView Pine Script 整数价格警报代码生成 skill do?
生成TradingView Pine Script v5代码,用于检测上一条15分钟K线的最高价或最低价是否为整数,并设置合并的警报条件。
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill tradingview-pine-script-整数价格警报代码生成 --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.
