agentsclimarketplace

Tradingview pine script 整数价格警报代码生成

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/tradingview-pine-script-整数价格警报代码生成

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

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill tradingview-pine-script-整数价格警报代码生成

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.8 KB, 395 tokens by cl100k_base, as published. Nobody here has run it

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 警报代码

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.