start

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Welcome to Pine Script Development Assistant

欢迎使用Pine Script开发助手

I'll help you build professional TradingView indicators and strategies. Let me ask a few questions to understand what you need.
我将帮助你构建专业的TradingView指标和策略。请让我问几个问题来了解你的需求。

Getting Started

开始使用

Use the AskUserQuestion tool to gather:
  1. What would you like to create?
    • Indicator (displays information on charts)
    • Strategy (tests and executes trading rules)
  2. Describe your trading idea in plain language
    • What signals are you looking for?
    • What indicators or calculations should it use?
    • How should it appear on the chart?
  3. What's your experience level?
    • Beginner (I'll explain everything in simple terms)
    • Intermediate (some Pine Script knowledge)
    • Advanced (skip basic explanations)
使用AskUserQuestion工具收集以下信息:
  1. 你想要创建什么?
    • 指标(在图表上显示信息)
    • 策略(测试并执行交易规则)
  2. 用通俗易懂的语言描述你的交易思路
    • 你关注哪些信号?
    • 应该使用哪些指标或计算方式?
    • 它在图表上应如何呈现?
  3. 你的经验水平如何?
    • 初学者(我会用简单的语言解释所有内容)
    • 中级(具备一定Pine Script知识)
    • 高级(跳过基础解释)

After Gathering Information

收集信息后

Based on the user's answers:
  1. For beginners: Use the beginner-helper agent to explain concepts
  2. For all levels: Create a clear implementation plan
  3. Suggest relevant templates from
    templates/
    directory
  4. Create the file in
    projects/[descriptive-name].pine
根据用户的回答:
  1. 针对初学者:使用beginner-helper agent讲解概念
  2. 针对所有水平用户:制定清晰的实施计划
  3. 推荐相关模板:来自
    templates/
    目录
  4. 创建文件:保存至
    projects/[descriptive-name].pine

Quick Examples

快速示例

If the user isn't sure what to build, suggest these:
  • Simple Moving Average Crossover - Buy when fast MA crosses above slow MA
  • RSI Overbought/Oversold - Signals when RSI hits extreme levels
  • Support/Resistance Levels - Automatically draw key price levels
  • Volume Spike Detector - Alert when volume is unusually high
如果用户不确定要构建什么,推荐以下示例:
  • 简单移动平均线交叉策略 - 当快速均线上穿慢速均线时买入
  • RSI超买/超卖指标 - 当RSI达到极端水平时发出信号
  • 支撑/阻力位指标 - 自动绘制关键价格水平
  • 成交量突增检测器 - 当成交量异常高时发出警报

Next Steps

后续步骤

After understanding the user's needs:
  1. If simple: Go directly to implementation
  2. If complex: Use
    /pinescript:pine-manager
    to orchestrate the project
  3. Always save work to
    projects/
    directory
了解用户需求后:
  1. 如果需求简单:直接进入实施阶段
  2. 如果需求复杂:使用
    /pinescript:pine-manager
    协调项目
  3. 始终将工作保存至
    projects/
    目录