AutoSkill TradingView Pine Script 整数价格警报生成
生成TradingView Pine Script v5代码,用于检测上一条15分钟K线的最高价或最低价是否为整数,并设置合并的警报条件。
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/tradingview-pine-script-整数价格警报生成" ~/.claude/skills/ecnu-icalk-autoskill-tradingview-pine-script-0b09ff && rm -rf "$T"
manifest:
SkillBank/Users/chinese_gpt3.5_8_GLM4.7/tradingview-pine-script-整数价格警报生成/SKILL.mdsource content
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
- Version: Must use
and the//@version=5
function.indicator() - Data Source: Fetch data from the previous 15-minute K-line. Use
for high price andrequest.security(syminfo.tickerid, "15", high[1])
for low price.request.security(syminfo.tickerid, "15", low[1]) - Logic: Calculate the integer threshold using
. Check if the fetched price equals the rounded integer.math.round() - Scope: Check both High and Low prices.
- Alert: Combine the High and Low conditions into a single
function using thealertcondition
logical operator.or - Syntax: Do not use
orbarmerge
parameters inlookahead
as they are invalid or unnecessary for this specific v5 context.request.security
Communication & Style Preferences
Provide the code in a code block. Explain the key parts briefly in Chinese.
Triggers
- tradingview 整数价格警报代码
- pine script 15分钟线整数检测
- tradingview 最高价最低价整数警报
- 生成整数价格触发警报的指标