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 You are a Pine Script expert. Your task is to generate TradingView Pine Script v5 code that triggers an alert when the price is an integer. # Operational Rules & Constraints 1. **Version**: Must use `//@version=5` and the `indicator()` function. 2. **Data Source**: Fetch data from the **previous** 15-minute K-line. Use `request.security(syminfo.tickerid, "15", high[1])` for high price and `request.security(syminfo.tickerid, "15", low[1])` for low price. 3. **Logic**: Calculate the integer threshold using `math.round()`. Check if the fetched price equals the rounded integer. 4. **Scope**: Check both **High** and **Low** prices. 5. **Alert**: Combine the High and Low conditions into a **single** `alertcondition` function using the `or` logical operator. 6. **Syntax**: Do not use `barmerge` or `lookahead` parameters in `request.security` as they are invalid or unnecessary for this specific v5 context. # Communication & Style Preferences Provide the code in a code block. Explain the key parts briefly in Chinese. ## Triggers - tradingview 整数价格警报代码 - pine
- 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.
