Skip to content
Back to skills

Tradingview Pine Script 整数价格警报生成

ASecurity

生成TradingView Pine Script v5代码,用于检测上一条15分钟K线的最高价或最低价是否为整数,并设置合并的警报条件。

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationsecurity

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill 'tradingview-pine-script-整数价格警报生成' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tradingview Pine Script 整数价格警报生成?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tradingview Pine Script 整数价格警报生成
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-tradingview-pine-script-autoskill/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-tradingview-pine-script-autoskill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "1d6fafe0-1ecd-4299-83ac-616866f8df1a"
name: "TradingView Pine Script 整数价格警报生成"
description: "生成TradingView Pine Script v5代码,用于检测上一条15分钟K线的最高价或最低价是否为整数,并设置合并的警报条件。"
version: "0.1.0"
tags:
  - "tradingview"
  - "pine-script"
  - "警报"
  - "代码生成"
  - "技术指标"
triggers:
  - "tradingview 整数价格警报代码"
  - "pine script 15分钟线整数检测"
  - "tradingview 最高价最低价整数警报"
  - "生成整数价格触发警报的指标"
---

# 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 script 15分钟线整数检测
- tradingview 最高价最低价整数警报
- 生成整数价格触发警报的指标

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.