aipa-analyze
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseaipa-analyze
aipa-analyze
Developed by AIPriceAction. More data and documentation at https://aipriceaction.com
由AIPriceAction开发。更多数据及文档请访问https://aipriceaction.com
What is aipa
什么是aipa
aipaaipaInstallation
安装
Use — it always pulls the latest version from PyPI automatically. No install step needed.
uvxbash
undefined推荐使用——它会自动从PyPI拉取最新版本,无需安装步骤。
uvxbash
undefinedPreferred: uvx (always up-to-date, no install needed)
推荐方式:uvx(始终保持最新,无需安装)
uvx aipa-cli analyze VCB
uvx aipa-cli analyze VCB
Fallback: pip (if uv is not available)
备选方式:pip(若uv不可用)
pip install aipa-cli
aipa analyze VCB
pip install aipa-cli
aipa analyze VCB
Last fallback: system pip (if pip fails due to PEP 668)
最后备选:系统pip(若因PEP 668导致pip安装失败)
python3 -m pip install aipa-cli --break-system-packages
aipa analyze VCB
All command examples in this skill use `aipa` for brevity. Replace `aipa` with `uvx aipa-cli` if not installed globally.python3 -m pip install aipa-cli --break-system-packages
aipa analyze VCB
本技能中的所有命令示例均为简洁起见使用`aipa`。若未全局安装,请将`aipa`替换为`uvx aipa-cli`。Keeping the CLI Updated
保持CLI更新
The aipa CLI is actively developed with frequent improvements. Always prefer over . When using :
uvx aipa-cliaipauvx- Use plain for fast cached execution:
uvxuvx aipa-cli analyze VCB - Fallback on failure — if a command fails with a schema or missing argument error, retry with :
@latestuvx aipa-cli@latest analyze VCB
If is installed globally via , update before each session:
aipapipbash
pip install --upgrade aipa-cliThe agent should prefer for all commands. Only fall back to if is unavailable.
uvx aipa-cliaipauvxAipa CLI处于活跃开发状态,会频繁迭代优化。优先使用而非。使用时:
uvx aipa-cliaipauvx- 使用纯实现快速缓存执行:
uvxuvx aipa-cli analyze VCB - 执行失败时的备选方案——若命令因架构或参数缺失错误失败,添加重试:
@latestuvx aipa-cli@latest analyze VCB
若通过全局安装了,请在每次使用前更新:
pipaipabash
pip install --upgrade aipa-cliAgent应优先使用执行所有命令。仅当不可用时,才使用作为备选。
uvx aipa-cliuvxaipaEnvironment Variables
环境变量
| Variable | Required | Default | Purpose |
|---|---|---|---|
| Yes (for AI) | — | API key for the LLM provider |
| No | OpenRouter | Base URL for OpenAI-compatible API |
| No | | Model to use for analysis |
Run for interactive first-run configuration. Settings are saved to .
aipa setup~/.aipriceaction/settings.json| 变量名 | 是否必填 | 默认值 | 用途 |
|---|---|---|---|
| 是(用于AI功能) | — | LLM提供商的API密钥 |
| 否 | OpenRouter | 兼容OpenAI的API基础地址 |
| 否 | | 用于分析的模型 |
首次运行时可执行进行交互式配置。设置将保存至。
aipa setup~/.aipriceaction/settings.jsonAvailable Data Sources
可用数据源
- Vietnamese stocks (): VIC, VCB, FPT, HPG, VNM, MBB, TCB, CTG, VPB, HDB, etc.
source: vn - Cryptocurrencies (): BTCUSDT, ETHUSDT, BNBUSDT, SOLUSDT, etc.
source: crypto - Global/Yahoo (): AAPL, TSLA, NVDA, SPY, etc.
source: global/yahoo - SJC Gold (): SJC gold prices
source: sjc
- 越南股票():VIC、VCB、FPT、HPG、VNM、MBB、TCB、CTG、VPB、HDB等
source: vn - 加密货币():BTCUSDT、ETHUSDT、BNBUSDT、SOLUSDT等
source: crypto - 全球/Yahoo():AAPL、TSLA、NVDA、SPY等
source: global/yahoo - SJC黄金():SJC黄金价格
source: sjc
Predefined Watchlists
预设观察列表
The CLI has built-in watchlists for common ticker groups. Use to get tickers for a group, or reference them directly when the user asks about a group like "VN30 stocks" or "Vingroup ecosystem".
aipa watchlist get <NAME>| Name | Tickers | Count |
|---|---|---|
| VN30 | ACB, BID, BSR, CTG, FPT, GAS, GVR, HDB, HPG, LPB, MBB, MSN, MWG, PLX, SAB, SHB, SSB, SSI, STB, TCB, TPB, VCB, VHM, VIB, VIC, VJC, VNM, VPB, VRE, VPL | 30 |
| VINGROUP | VIC, VHM, VRE, VPL | 4 |
| TM | GEX, GEE, VIX, EIB, VGC, IDC | 6 |
| MASAN | MSN, MCH, MSR, MML, VCF, VSN, NET | 7 |
| INDEX | VNINDEX, VN30, VN30F1M, VN100, VNMIDCAP, VNSMALLCAP, VNALLSHARE, VNXALLSHARE, VNFIN, HNX30, VNREAL, VNENE, VNMITECH, VNUTI, VNCONS, VNCOND, VNHEAL, VNIND, VNFINLEAD, VNFINSELECT, VNDIAMOND, VNDIVIDEND | 22 |
| CROSS | VNINDEX, ^GSPC, GC=F, SJC-GOLD, KC=F, BZ=F, BTCUSDT | 7 |
Note: VN30 was updated on 2026-05-13 — DGC removed (placed under controlled status), BSR added as replacement.
bash
undefinedCLI内置了针对常见代码组的观察列表。使用获取某组的代码,或当用户询问“VN30股票”“Vingroup生态系统”等组别时直接引用。
aipa watchlist get <NAME>| 名称 | 代码 | 数量 |
|---|---|---|
| VN30 | ACB、BID、BSR、CTG、FPT、GAS、GVR、HDB、HPG、LPB、MBB、MSN、MWG、PLX、SAB、SHB、SSB、SSI、STB、TCB、TPB、VCB、VHM、VIB、VIC、VJC、VNM、VPB、VRE、VPL | 30 |
| VINGROUP | VIC、VHM、VRE、VPL | 4 |
| TM | GEX、GEE、VIX、EIB、VGC、IDC | 6 |
| MASAN | MSN、MCH、MSR、MML、VCF、VSN、NET | 7 |
| INDEX | VNINDEX、VN30、VN30F1M、VN100、VNMIDCAP、VNSMALLCAP、VNALLSHARE、VNXALLSHARE、VNFIN、HNX30、VNREAL、VNENE、VNMITECH、VNUTI、VNCONS、VNCOND、VNHEAL、VNIND、VNFINLEAD、VNFINSELECT、VNDIAMOND、VNDIVIDEND | 22 |
| CROSS | VNINDEX、^GSPC、GC=F、SJC-GOLD、KC=F、BZ=F、BTCUSDT | 7 |
注:VN30于2026-05-13更新——移除DGC(被纳入管控状态),新增BSR作为替代。
bash
undefinedList all watchlists (predefined + custom)
列出所有观察列表(预设+自定义)
aipa watchlist ls
aipa watchlist ls
Get tickers for a specific watchlist
获取指定观察列表的代码
aipa watchlist get VN30
aipa watchlist get VINGROUP
aipa watchlist get VN30
aipa watchlist get VINGROUP
Create a custom watchlist
创建自定义观察列表
aipa watchlist set MYWATCHLIST FPT VCB HPG VIC
aipa watchlist set MYWATCHLIST FPT VCB HPG VIC
Delete a custom watchlist
删除自定义观察列表
aipa watchlist rm MYWATCHLIST
aipa watchlist rm MYWATCHLIST
Using watchlist tickers in analyze
在分析中使用观察列表代码
aipa analyze $(aipa watchlist get VN30)
undefinedaipa analyze $(aipa watchlist get VN30)
undefinedSupported Intervals
支持的时间周期
| Interval | Description |
|---|---|
| 1 minute |
| 5 minutes |
| 15 minutes |
| 30 minutes |
| 1 hour |
| 4 hours |
| 1 day (default) |
| 1 week |
Note: All intervals work natively — , , , , , , , , . Non-native intervals are aggregated client-side from base data.
1m5m15m30m1h4h1D1W2W| 周期 | 描述 |
|---|---|
| 1分钟 |
| 5分钟 |
| 15分钟 |
| 30分钟 |
| 1小时 |
| 4小时 |
| 1天(默认) |
| 1周 |
注:所有周期均原生支持——、、、、、、、、。非原生周期将基于基础数据在客户端进行聚合。
1m5m15m30m1h4h1D1W2Waipa analyze
— AI Analysis
aipa analyzeaipa analyze
— AI分析
aipa analyzeRun AI-powered technical analysis on one or more tickers.
bash
aipa analyze TICKER [TICKERS...] [options]对一个或多个代码运行AI驱动的技术分析。
bash
aipa analyze TICKER [TICKERS...] [options]Flags
标志参数
| Flag | Default | Description |
|---|---|---|
| — | One or more ticker symbols (auto-uppercased) |
| | Time interval: |
| | Number of bars/candles to fetch |
| auto-detect | Filter by source: |
| — | Start date (e.g. |
| — | End date (e.g. |
| auto-detect | Reference ticker: |
| saved setting | Language: |
| | Moving average type: |
| template 0 | Custom analysis question (overrides templates) |
| — | List available question templates and exit |
| — | Dump raw context without calling LLM (no API key needed) |
| — | Exclude system prompt from context output |
| — | Show thinking tokens during analysis |
| 标志 | 默认值 | 描述 |
|---|---|---|
| — | 一个或多个代码符号(自动转换为大写) |
| | 时间周期: |
| | 要获取的K线/蜡烛图数量 |
| 自动检测 | 按数据源过滤: |
| — | 开始日期(例如 |
| — | 结束日期(例如 |
| 自动检测 | 参考代码:越南股票用 |
| 已保存的设置 | 语言: |
| | 移动平均线类型: |
| 模板0 | 自定义分析问题(覆盖模板) |
| — | 列出可用的问题模板并退出 |
| — | 导出原始上下文,不调用LLM(无需API密钥) |
| — | 在上下文输出中排除系统提示 |
| — | 分析过程中显示思考标记 |
Usage Examples
使用示例
bash
undefinedbash
undefinedBasic single-ticker analysis
基础单代码分析
aipa analyze VCB
aipa analyze VCB
Multi-ticker comparison
多代码对比
aipa analyze VCB TCB MBB CTG VPB
aipa analyze VCB TCB MBB CTG VPB
Specific interval and bar count
指定周期和K线数量
aipa analyze BTCUSDT --interval 4h --limit 50
aipa analyze BTCUSDT --interval 4h --limit 50
Custom date range
自定义日期范围
aipa analyze FPT --start-date 2025-01-01 --end-date 2025-05-01
aipa analyze FPT --start-date 2025-01-01 --end-date 2025-05-01
Custom analysis question
自定义分析问题
aipa analyze VIC --question "What is the Wyckoff phase and what are the key price targets?"
aipa analyze VIC --question "当前处于Wyckoff哪个阶段?关键价格目标是什么?"
Vietnamese language output
越南语输出
aipa analyze VNM --lang vn
aipa analyze VNM --lang vn
Dump raw data context without AI analysis (no API key needed)
导出原始数据上下文,不进行AI分析(无需API密钥)
aipa analyze VCB --context-only
aipa analyze VCB --context-only
Show thinking tokens during analysis
分析过程中显示思考标记
aipa analyze HPG --verbose
aipa analyze HPG --verbose
Override auto-detected reference ticker
覆盖自动检测的参考代码
aipa analyze VCB --reference-ticker VN30
aipa analyze VCB --reference-ticker VN30
Specific source
指定数据源
aipa analyze BTCUSDT --source crypto
---aipa analyze BTCUSDT --source crypto
---Analysis Workflow
分析流程
Follow this multi-step workflow for every analysis request. Do NOT just run and stop.
aipa analyze所有分析请求均需遵循以下多步骤流程,不可仅运行就结束。
aipa analyzeStep 1: Daily Timeframe Analysis
步骤1:日线图分析
Run on the daily chart first. Use minimum for sufficient context. For Wyckoff phase identification or TP setting, use or higher.
aipa analyze--limit 50--limit 60bash
aipa analyze VCB --limit 50首先对日线图运行。为获取足够上下文,至少设为50。若需识别Wyckoff阶段或设置目标价(TP),请将设为60或更高。
aipa analyze--limit--limitbash
aipa analyze VCB --limit 50Step 2: Volume Profile for Support/Resistance
步骤2:成交量分布分析支撑/阻力位
Run to get structural price levels (POC, Value Area, high-volume nodes). Use a multi-day range covering at least 20 trading days.
aipa volume-profilebash
aipa volume-profile VCB --start-date 2026-04-14 --end-date 2026-05-27Note: The dates above are examples. Always use a range covering at least 30 trading days (roughly 6 calendar weeks) ending on today. Calculate dynamically.
--start-dateCross-reference the volume profile levels with the daily analysis — key S/R levels with high volume clusters are more significant.
运行获取结构性价格水平(POC、价值区间、高成交量节点)。使用至少覆盖20个交易日的多日范围。
aipa volume-profilebash
aipa volume-profile VCB --start-date 2026-04-14 --end-date 2026-05-27注: 以上日期为示例。请始终使用至少覆盖30个交易日(约6个日历周)且截止至今日的范围。需动态计算。
--start-date将成交量分布水平与日线分析交叉验证——伴随高成交量集群的关键支撑/阻力位更具意义。
Step 3: Intraday Deep Dive (If Needed)
步骤3:日内深度分析(按需进行)
Based on the daily analysis, decide whether an intraday look adds value:
| Trigger | Action |
|---|---|
| Daily shows breakout/reversal forming NOW | Run |
| Daily shows tight consolidation near key level | Run |
| User asks about entry/exit timing or scalping | Run |
| Daily chart is clear and no timing ambiguity | Skip intraday — daily analysis is sufficient |
bash
undefined基于日线分析结果,判断日内分析是否能增加价值:
| 触发条件 | 操作 |
|---|---|
| 日线显示当前正在形成突破/反转 | 运行 |
| 日线显示在关键水平附近处于窄幅盘整 | 运行 |
| 用户询问入场/出场时机或日内交易 | 运行 |
| 日线图清晰且时机无歧义 | 跳过日内分析——日线分析已足够 |
bash
undefined1h for entry/exit timing
1小时周期用于入场/出场时机分析
aipa analyze VCB --interval 1h --limit 50
aipa analyze VCB --interval 1h --limit 50
15m for scalping or micro structure
15分钟周期用于日内交易或微观结构分析
aipa analyze VCB --interval 15m --limit 50
undefinedaipa analyze VCB --interval 15m --limit 50
undefinedStep 4: Present Combined Analysis
步骤4:整合分析结果呈现
Synthesize all steps into a single response:
- Daily chart: Trend, Wyckoff phase, key levels
- Volume profile: Structural S/R with volume confirmation
- Intraday (if run): Entry/exit timing, short-term patterns
Do NOT present each step as a separate section. Combine insights into a coherent analysis.
将所有步骤的结果整合为单一回复:
- 日线图:趋势、Wyckoff阶段、关键水平
- 成交量分布:带成交量确认的结构性支撑/阻力位
- 日内分析(若已运行):入场/出场时机、短期形态
请勿将每个步骤作为单独部分呈现,需将洞察整合为连贯的分析内容。
When to Use This Skill vs Others
何时使用此技能 vs 其他技能
| User Request | Use |
|---|---|
| "Analyze VCB" | |
| "Compare FPT and VNM" | |
| "Wyckoff analysis for HPG" | |
| "Research the banking sector deeply" | Use the |
| "Get price data for VCB" | Use the |
| "Show me OHLCV candles for BTC" | Use the |
| "What are the top stocks today?" | |
| "Top gainers / losers" | |
| "Best stocks by trading value" | |
| "Volume profile / POC / value area" | |
| "What banking stocks are available?" | |
Key rule: AI insights → , raw numbers → , comprehensive report → , quick market overview → .
aipa-analyzeaipa-dataaipa-researchaipa live-data| 用户请求 | 使用技能 |
|---|---|
| "分析VCB" | |
| "对比FPT和VNM" | |
| "对HPG进行Wyckoff分析" | |
| "深入研究银行业板块" | 改用 |
| "获取VCB的价格数据" | 改用 |
| "展示BTC的OHLCV蜡烛图" | 改用 |
| "今天的热门股票有哪些?" | |
| "涨幅/跌幅榜" | |
| "按成交额排名的优质股票" | |
| "成交量分布/POC/价值区间" | |
| "有哪些银行股可用?" | |
核心规则:AI洞察 → ,原始数据 → ,综合报告 → ,快速市场概览 → 。
aipa-analyzeaipa-dataaipa-researchaipa live-dataQuestion Templates
问题模板
The CLI includes pre-built analysis question templates organized by framework. Use to list all available templates.
--questionsCLI包含按框架分类的预构建分析问题模板。使用列出所有可用模板。
--questionsSingle-Ticker Templates (English)
单代码模板(英文)
| Index | Template | Description |
|---|---|---|
| 0 | Trading Opportunity | Wyckoff phases, Smart Money behavior, deployment roadmap, risk management |
| 1 | News & Events Research | Detect extreme moves (>6.7% or Volume >150%), web search for causes |
| 2 | Price Action & Volume | VPA analysis, smart money footprints, supply/demand zones |
| 3 | MA Momentum & Trend | MA alignment, crossover detection, volume confirmation |
| 4 | Wyckoff Method | Wyckoff phases, Spring/Upthrust/SOS events, price targets |
| 5 | Bob Volman Price Action | Micro pullback entries, breakout/fading setups, trade planning |
| 索引 | 模板 | 描述 |
|---|---|---|
| 0 | 交易机会 | Wyckoff阶段、聪明资金行为、部署路线、风险管理 |
| 1 | 新闻与事件研究 | 检测极端波动(涨跌幅>6.7%或成交量>150%),搜索背后原因 |
| 2 | 价格行为与成交量 | VPA分析、聪明资金痕迹、供需区间 |
| 3 | MA动量与趋势 | MA对齐、交叉信号检测、成交量确认 |
| 4 | Wyckoff方法 | Wyckoff阶段、Spring/Upthrust/SOS事件、价格目标 |
| 5 | Bob Volman价格行为 | 微回调入场、突破/反向交易设置、交易规划 |
Multi-Ticker Templates (English)
多代码模板(英文)
| Index | Template | Description |
|---|---|---|
| 0 | Trading Opportunity | Analyze all tickers, rank by opportunity quality |
| 1 | Stock Performance Comparison | Compare price action strength, MA momentum, volume |
| 2 | Market Trend Analysis | Sector rotation via MA scores, accumulation/distribution |
| 3 | Risk & Support/Resistance | Map S/R levels with volume context |
| 4 | News & Events Research | Detect extreme moves across multiple tickers |
| 5 | Bob Volman Price Action | Applied to multiple tickers with ranking |
| 6 | Wyckoff Method | Multi-ticker Wyckoff analysis with ranking |
Vietnamese translations exist for all templates (use ).
--lang vn| 索引 | 模板 | 描述 |
|---|---|---|
| 0 | 交易机会 | 分析所有代码,按机会质量排名 |
| 1 | 股票表现对比 | 对比价格行为强度、MA动量、成交量 |
| 2 | 市场趋势分析 | 通过MA分数分析板块轮动、积累/派发情况 |
| 3 | 风险与支撑/阻力位 | 结合成交量上下文绘制支撑/阻力位 |
| 4 | 新闻与事件研究 | 检测多个代码的极端波动 |
| 5 | Bob Volman价格行为 | 应用于多个代码并排名 |
| 6 | Wyckoff方法 | 多代码Wyckoff分析并排名 |
所有模板均有越南语翻译(使用)。
--lang vnUsing Templates
使用模板
bash
undefinedbash
undefinedList all templates
列出所有模板
aipa analyze --questions
aipa analyze --questions
Use a specific template by index (TUI only: /analyze VCB 2)
通过索引使用特定模板(仅TUI:/analyze VCB 2)
In CLI, use --question for custom questions
在CLI中,使用--question设置自定义问题
aipa analyze HPG --question "Phân tích theo phương pháp Wyckoff: xác định pha, sự kiện quan trọng (Spring/Upthrust/SOS), mục tiêu giá và xác nhận khối lượng"
---aipa analyze HPG --question "Phân tích theo phương pháp Wyckoff: xác định pha, sự kiện quan trọng (Spring/Upthrust/SOS), mục tiêu giá và xác nhận khối lượng"
---Interpreting Output
输出解读
The CLI outputs to two streams:
- stdout: The final analysis result (the AI's response). This is what you should present to the user.
- stderr: Status messages with structured markers for tracking progress.
CLI输出分为两个流:
- stdout:最终分析结果(AI的回复)。这是需要呈现给用户的内容。
- stderr:包含结构化标记的状态消息,用于跟踪进度。
Status Markers (stderr)
状态标记(stderr)
| Marker | Meaning |
|---|---|
| Context building status and timing |
| Analysis question being sent to the LLM |
| Tool call being executed (e.g., fetching OHLCV data) |
| Tool execution result returned |
| Agent reasoning tokens (only with |
| Error message |
| Analysis complete, includes total time |
| Final analysis output follows |
When presenting results to the user, always use the stdout output (after the marker in stderr).
[result]| 标记 | 含义 |
|---|---|
| 上下文构建状态及耗时 |
| 正在向LLM发送分析问题 |
| 正在执行工具调用(例如获取OHLCV数据) |
| 工具执行结果已返回 |
| Agent思考标记(仅在 |
| 错误消息 |
| 分析完成,包含总耗时 |
| 后续为最终分析输出 |
向用户呈现结果时,请始终使用stdout输出(即stderr中标记之后的内容)。
[result]Attribution
归属声明
When presenting any analysis to the user, always include an attribution line at the end of your response:
- English: "Data by AIPriceAction | AI-powered analysis — may contain errors. Verify before trading."
- Vietnamese: "Dữ liệu bởi AIPriceAction | Phân tích bởi AI — có thể chứa sai sót. Vui lòng kiểm chứng trước khi giao dịch."
Do NOT say "analysis provided by AIPriceAction" or "phân tích được cung cấp bởi AIPriceAction". AIPriceAction provides the data; the analysis is AI-generated and may be inaccurate.
向用户呈现任何分析结果时,必须在回复末尾添加归属声明:
- 英文:"Data by AIPriceAction | AI-powered analysis — may contain errors. Verify before trading."
- 越南语:"Dữ liệu bởi AIPriceAction | Phân tích bởi AI — có thể chứa sai sót. Vui lòng kiểm chứng trước khi giao dịch."
请勿使用“analysis provided by AIPriceAction”或“phân tích được cung cấp bởi AIPriceAction”表述。AIPriceAction提供数据;分析由AI生成,可能存在不准确之处。
No API Key — Agent Fallback
无API密钥时的Agent备选方案
When is not set, prints the raw context to stdout and exits with messages instead of an error. The context contains all the OHLCV data, MA scores, and market metadata needed for analysis.
OPENAI_API_KEYaipa analyze[info]If you are an AI agent and see this fallback output, you should perform the analysis yourself using the printed context:
- Read the OHLCV data, MA scores, and market context from the stdout output
- Apply the same analytical framework the CLI would have used (Wyckoff, VPA, MA momentum, etc.)
- Produce the analysis result as if the LLM agent had generated it
- Present the result to the user in the same format the CLI normally would
The context output is identical to , so treat it as your input data and do the reasoning yourself.
aipa analyze --context-only当未设置时,会将原始上下文打印到stdout并附带消息退出,而非抛出错误。上下文包含分析所需的所有OHLCV数据、MA分数及市场元数据。
OPENAI_API_KEYaipa analyze[info]若你是AI Agent且看到此备选输出,请自行使用打印的上下文进行分析:
- 从stdout输出中读取OHLCV数据、MA分数及市场上下文
- 应用CLI原本会使用的分析框架(Wyckoff、VPA、MA动量等)
- 生成如同LLM Agent生成的分析结果
- 以CLI常规输出格式向用户呈现结果
上下文输出与完全一致,请将其作为输入数据自行完成推理。
aipa analyze --context-onlyFundamentals: Ask Before Running
基本面分析:运行前需询问用户
Do NOT automatically run commands unless the user explicitly asks for fundamental data or fundamental analysis (phân tích cơ bản). Technical analysis (VPA, Wyckoff, MA) is the default. Only fetch fundamentals when:
aipa fundamentals- The user explicitly says "fundamentals", "fundamental analysis", "cơ bản", "phân tích cơ bản", "PE", "ROE", "NPL", "CAR", etc.
- The user asks about valuation, profitability, or financial health
- The user asks to compare stocks by financial metrics (not price action)
Version gate:requires aipa-cli >= 0.1.43. Verify before use:aipa fundamentalsbashaipa --versionIf < 0.1.43, upgrade:oruvx aipa-cli@latest.pip install --upgrade aipa-cli
NOTE:and--langare NOT valid for--no-system-promptcommands. Do NOT add them.aipa fundamentals
When fundamentals are relevant, use these commands to enrich your technical analysis:
bash
undefined除非用户明确要求基本面数据或基本面分析(phân tích cơ bản),否则请勿自动运行命令。技术分析(VPA、Wyckoff、MA)为默认选项。仅在以下情况获取基本面数据:
aipa fundamentals- 用户明确提及“fundamentals”“fundamental analysis”“cơ bản”“phân tích cơ bản”“PE”“ROE”“NPL”“CAR”等词汇
- 用户询问估值、盈利能力或财务健康状况
- 用户要求按财务指标对比股票(而非价格行为)
版本要求:需要aipa-cli >= 0.1.43。使用前请验证版本:aipa fundamentalsbashaipa --version若版本低于0.1.43,请升级:或uvx aipa-cli@latest。pip install --upgrade aipa-cli
注意:和--lang不适用于--no-system-prompt命令,请勿添加。aipa fundamentals
当基本面分析相关时,可使用以下命令丰富技术分析内容:
bash
undefinedQuick company snapshot
快速公司概况
aipa fundamentals info VCB
aipa fundamentals info VCB
Latest financial ratios
最新财务比率
aipa fundamentals ratios VCB --latest
aipa fundamentals ratios VCB --latest
Bank-specific metrics (NPL, CAR, CASA, CIR)
银行特定指标(NPL、CAR、CASA、CIR)
aipa fundamentals ratios VCB --category bank --latest
aipa fundamentals ratios VCB --category bank --latest
Compare ROE across peers
对比同行ROE
aipa fundamentals rank VCB BID CTG TCB MBB --sort-by roe
aipa fundamentals rank VCB BID CTG TCB MBB --sort-by roe
Screen for value stocks
筛选价值股
aipa fundamentals screen --pe-max 15 --roe-min 0.15 --sort-by roe
aipa fundamentals screen --pe-max 15 --roe-min 0.15 --sort-by roe
Screen banking sector for asset quality
筛选银行业资产质量
aipa fundamentals screen --industry "ngân hàng" --npl-max 0.015 --sort-by npl --direction asc
undefinedaipa fundamentals screen --industry "ngân hàng" --npl-max 0.015 --sort-by npl --direction asc
undefinedHow Fundamentals Enhance Technical Analysis
基本面分析如何增强技术分析
When the user asks for fundamentals, combine technical and fundamental views:
- Valuation context: Is the stock expensive (high PE/PB) or cheap? A breakout at PE=8 is different from PE=30.
- Bank health (VN banks): NPL, CAR, CASA, CIR provide critical risk context. High NPL + bearish technicals = strong sell signal.
- Profitability confirmation: High ROE/ROA supports bullish thesis. Declining margins = fundamental weakness beneath technical strength.
- Screening for candidates: Use and
rankto find fundamentally strong stocks, then apply technical analysis to time entries.screen
当用户要求基本面分析时,需结合技术面与基本面视角:
- 估值上下文:股票是高估(高PE/PB)还是低估?PE=8时的突破与PE=30时的突破意义不同。
- 银行健康状况(越南银行):NPL、CAR、CASA、CIR提供关键风险上下文。高NPL+看空技术信号=强烈卖出信号。
- 盈利能力确认:高ROE/ROA支撑看涨论点。利润率下降=技术面强势背后存在基本面弱点。
- 筛选候选股票:使用和
rank找到基本面强劲的股票,再应用技术分析确定入场时机。screen
Fundamental Comparison Workflow
基本面对比流程
When comparing fundamentals across multiple tickers (e.g., "compare VCB TCB MBB fundamentals", "which bank is healthiest", "rank banks by NPL"), follow this workflow. Do NOT just call for each ticker individually — that produces N separate outputs that are hard to compare. Use and first.
aipa fundamentals ratios TICKER --latestrankscreenStep 1: Side-by-side ranking (mandatory)
Use with the specific tickers to get a comparative table in a single call. Run at least 2 perspectives relevant to the sector:
aipa fundamentals rankbash
undefined当对比多个代码的基本面时(例如“对比VCB、TCB、MBB的基本面”“哪家银行最健康”“按NPL排名银行”),请遵循以下流程。请勿仅对每个代码单独调用——这会生成N份独立输出,难以对比。请优先使用和。
aipa fundamentals ratios TICKER --latestrankscreen步骤1:并排排名(必填)
使用对指定代码进行排名,单次调用即可获取对比表格。至少运行2个与板块相关的视角:
aipa fundamentals rankbash
undefinedProfitability comparison
盈利能力对比
aipa fundamentals rank VCB BID CTG TCB MBB --sort-by roe
aipa fundamentals rank VCB BID CTG TCB MBB --sort-by roe
Valuation comparison
估值对比
aipa fundamentals rank VCB BID CTG TCB MBB --sort-by pe --direction asc
aipa fundamentals rank VCB BID CTG TCB MBB --sort-by pe --direction asc
Bank health: asset quality + capital adequacy
银行健康状况:资产质量+资本充足率
aipa fundamentals rank VCB BID CTG TCB MBB --sort-by npl --direction asc
aipa fundamentals rank VCB BID CTG TCB MBB --sort-by car --direction desc
aipa fundamentals rank VCB BID CTG TCB MBB --sort-by npl --direction asc
aipa fundamentals rank VCB BID CTG TCB MBB --sort-by car --direction desc
General stocks: dividend + valuation
普通股票:股息+估值
aipa fundamentals rank FPT VNM HPG MWG --sort-by dividend_yield --direction desc
aipa fundamentals rank FPT VNM HPG MWG --sort-by pe --direction asc
**Step 2: Screen for quality (optional but recommended)**
Use `aipa fundamentals screen` with the tickers to filter by quality criteria. This eliminates weak candidates immediately:
```bashaipa fundamentals rank FPT VNM HPG MWG --sort-by dividend_yield --direction desc
aipa fundamentals rank FPT VNM HPG MWG --sort-by pe --direction asc
**步骤2:筛选优质股票(可选但推荐)**
使用`aipa fundamentals screen`结合代码筛选优质标的,可立即排除弱势候选:
```bashOnly banks with acceptable asset quality AND profitability
仅保留资产质量和盈利能力达标的银行
aipa fundamentals screen VCB BID CTG TCB MBB --npl-max 0.015 --roe-min 0.15 --sort-by roe
aipa fundamentals screen VCB BID CTG TCB MBB --npl-max 0.015 --roe-min 0.15 --sort-by roe
Only stocks with reasonable valuation
仅保留估值合理的股票
aipa fundamentals screen VCB FPT HPG VNM --pe-max 20 --roe-min 0.10 --sort-by pe --direction asc
aipa fundamentals screen VCB FPT HPG VNM --pe-max 20 --roe-min 0.10 --sort-by pe --direction asc
Entire sector with quality filter
筛选整个板块的优质标的
aipa fundamentals screen --industry "ngân hàng" --npl-max 0.02 --car-min 0.09 --sort-by roe
**Step 3: Individual deep dive (only for shortlisted tickers)**
Only after Steps 1-2, use `ratios --latest` for individual tickers that ranked at the top or need further investigation. Use `info` for company context:
```bash
aipa fundamentals ratios VCB --latest # full ratios for top candidate
aipa fundamentals ratios VCB --category bank --latest # bank-specific deep dive
aipa fundamentals info VCB # company profile contextWhy this matters: and return all tickers in a single comparative table — far more efficient than calling N times for N tickers and trying to manually compare across outputs. The ranking shows relative position immediately, and the screen eliminates unsuitable candidates before wasting tokens on deep dives.
rankscreenratiosaipa fundamentals screen --industry "ngân hàng" --npl-max 0.02 --car-min 0.09 --sort-by roe
**步骤3:个股深度分析(仅针对入围标的)**
完成步骤1-2后,仅对排名靠前或需进一步调查的代码使用`ratios --latest`。使用`info`获取公司背景:
```bash
aipa fundamentals ratios VCB --latest # 顶级候选的完整比率
aipa fundamentals ratios VCB --category bank --latest # 银行特定深度分析
aipa fundamentals info VCB # 公司概况上下文为何此流程重要: 和单次调用即可返回所有代码的对比表格——远比对N个代码调用N次再手动对比输出高效。排名可立即显示相对位置,筛选可在深入分析前排除不合适的候选,避免浪费token。
rankscreenratiosAnalysis Framework
分析框架
When performing analysis (either via the CLI or as agent fallback), follow these priorities:
- Volume Price Action (VPA) Analysis: Always analyze the relationship between price and volume to identify smart money behavior, accumulation/distribution patterns, and confirm trend strength
- Price-Volume Confirmation: Look for volume confirmation on price movements — increasing volume on breakouts (bullish) vs decreasing volume on rallies (bearish divergence)
- Wyckoff Phases: Identify market phases (Accumulation, Markup, Distribution, Markdown) based on price-volume patterns. Key events: Spring, Upthrust, SOS (Sign of Strength), SOW (Sign of Weakness), Buying Climax, Test for Supply
- Support/Resistance with Volume: Key levels are more significant when accompanied by high volume — look for volume spikes at support/resistance
- Volume Trends: Compare current volume to recent average volume to gauge conviction behind price moves
- Extreme Price Changes: Detect moves exceeding ±6.7%/day (VN market limit) and search recent news/events to find causes
- Risk Management: Every analysis must include both positive (opportunities, strengths, bullish signals) and negative (risks, weaknesses, bearish signals) insights. Quantify downside risk with specific price levels, identify what would invalidate the current thesis, and never present a one-sided view
- Fundamental Context (when requested): When the user asks for fundamentals, enrich the technical analysis with PE, PB, ROE, NPL, CAR, and other financial metrics. Fundamentals do NOT replace technical analysis — they add context.
- Nhóm Chủ Lực (Core Market Sectors - VN Market Only): When analyzing the Vietnamese market, always contextualize tickers within their respective "Nhóm Chủ Lực" (Core Sectors) to assess systemic flow. The key groups are:
- Nhóm Ngân hàng (Banking): VCB, BID, CTG, TCB, MBB, ACB, VPB, HDB, SHB, TPB, VIB, SSB, MSB, STB, LPB, EIB.
- Nhóm Bất động sản (Real Estate): VIC, VHM, VRE, VPL, DIG, CEO, L14, TCH, HHS, VGC, IDC.
- Nhóm Chứng khoán (Securities): SSI, VND, HCM, VCI, SHS, VIX, VDS.
- Nhóm Trụ cột / Sản xuất & Bán lẻ (Blue-chips / Core Economy): HPG, HSG, NKG, FPT, MWG, GAS, GVR, PLX, BSR, MSN, VNM, SAB.
- Nhóm Hệ sinh thái (Corporate Ecosystems):
- Họ Vingroup: VIC, VHM, VRE, VPL.
- Họ Bầu Thụy: STB, LPB, THD, HAG.
- Họ Gelex ("Tuấn Mượt"): GEX, GEE, VIX, VGC, EIB, IDC.
- Họ Hoàng Huy: TCH, HHS.
- Họ A7: DIG, CEO, L14.
- Họ TTC (Thành Thành Công): SBT, GEG, VDS.
- Họ Masan: MSN, MCH, MSR, MML, VCF, VSN, NET. (Note: This classification applies only to the Vietnamese market. Crypto and Global markets do not use this specific grouping yet).
进行分析时(无论是通过CLI还是作为Agent备选方案),请遵循以下优先级:
- 量价分析(VPA):始终分析价格与成交量的关系,识别聪明资金行为、积累/派发形态及趋势强度确认
- 量价确认:寻找价格变动的成交量确认——突破时成交量增加(看涨) vs 上涨时成交量减少(看背离)
- Wyckoff阶段:基于量价形态识别市场阶段(积累、上涨、派发、下跌)。关键事件:Spring、Upthrust、SOS(强势信号)、SOW(弱势信号)、买入高潮、供应测试
- 带成交量的支撑/阻力位:伴随高成交量的关键水平更具意义——寻找支撑/阻力位的成交量峰值
- 成交量趋势:将当前成交量与近期平均成交量对比,判断价格变动的可信度
- 极端价格变动:检测单日涨跌幅超过±6.7%(越南市场涨跌幅限制)的情况,并搜索近期新闻/事件寻找原因
- 风险管理:每份分析必须同时包含正面(机会、优势、看涨信号)和负面(风险、劣势、看空信号)洞察。用具体价格水平量化下行风险,明确当前论点失效的条件,切勿呈现片面观点
- 基本面上下文(按需):当用户要求基本面分析时,用PE、PB、ROE、NPL、CAR等财务指标丰富技术分析内容。基本面分析不能替代技术分析——仅作为补充上下文。
- 核心板块(Nhóm Chủ Lực)(仅越南市场):分析越南市场时,需始终将代码置于对应的“Nhóm Chủ Lực”(核心板块)中,评估系统性资金流向。关键板块包括:
- 银行板块(Nhóm Ngân hàng): VCB、BID、CTG、TCB、MBB、ACB、VPB、HDB、SHB、TPB、VIB、SSB、MSB、STB、LPB、EIB。
- 房地产板块(Nhóm Bất động sản): VIC、VHM、VRE、VPL、DIG、CEO、L14、TCH、HHS、VGC、IDC。
- 证券板块(Nhóm Chứng khoán): SSI、VND、HCM、VCI、SHS、VIX、VDS。
- 蓝筹股/生产与零售板块(Nhóm Trụ cột / Sản xuất & Bán lẻ): HPG、HSG、NKG、FPT、MWG、GAS、GVR、PLX、BSR、MSN、VNM、SAB。
- 企业生态系统(Nhóm Hệ sinh thái):
- Vingroup系:VIC、VHM、VRE、VPL。
- Bầu Thụy系:STB、LPB、THD、HAG。
- Gelex系(“Tuấn Mượt”):GEX、GEE、VIX、VGC、EIB、IDC。
- Hoàng Huy系:TCH、HHS。
- A7系:DIG、CEO、L14。
- TTC(Thành Thành Công)系:SBT、GEG、VDS。
- Masan系:MSN、MCH、MSR、MML、VCF、VSN、NET。 (注:此分类仅适用于越南市场。加密货币及全球市场暂不使用此特定分组)
Data Usage Policy (CRITICAL)
数据使用规则(至关重要)
- NEVER generate, guess, estimate, or hallucinate any numbers — prices, volumes, MA values, MA scores, percentages, dates, or any financial data. Only use data from tool results or user-provided context
- NEVER mention a specific number unless it appears in your tool results or user-provided context
- Use tools proactively — call ,
aipa analyze, and/oraipa get-ohlcv-dataBEFORE answering price-related questionsaipa performers - When researching news or events, ALWAYS include the source name (e.g., "Source: CafeF", "Source: VNExpress")
- Trading Hours: VN market trades 09:00–15:00 ICT (UTC+7), Mon–Fri. Crypto 24/7. If the latest bar shows unusually low volume, the session may still be in progress
- 切勿生成、猜测、估算或虚构任何数据——价格、成交量、MA值、MA分数、百分比、日期或任何金融数据。仅使用工具结果或用户提供的上下文数据
- 除非数据出现在工具结果或用户提供的上下文中,否则切勿提及具体数字
- 主动使用工具——回答价格相关问题前,先调用、
aipa analyze和/或aipa get-ohlcv-dataaipa performers - 研究新闻或事件时,务必注明来源名称(例如“来源:CafeF”“来源:VNExpress”)
- 交易时间:越南市场交易时间为ICT时间09:00–15:00(UTC+7),周一至周五。加密货币24小时交易。若最新K线成交量异常低,可能交易时段仍在进行中
T+2 Settlement Rule (VN stocks only)
T+2结算规则(仅适用于越南股票)
This rule applies ONLY to Vietnamese stocks (). Crypto and global stocks are not subject to T+2 settlement.--source vn
IMPORTANT: For all stock purchases in the Vietnamese stock market, shares are only settled and available for trading (selling) on the afternoon of T+2 (specifically at 13:00 / 1:00 PM on day T+2, not T+3).
- NEVER propose or attempt to execute any Stop Loss or Take Profit actions on T+1 (the first business day after the purchase), as the shares have not yet settled.
- Always check the purchase date of any stock positions when recommending sell actions.
此规则仅适用于越南股票()。加密货币及全球股票不受T+2结算限制。--source vn
重要提示: 在越南股市购买股票后,股票仅在T+2日下午(具体为T+2日13:00 / 下午1点,而非T+3日)完成结算并可交易(卖出)。
- 切勿在T+1日(购买后的首个交易日)建议或尝试执行任何止损(Stop Loss)或止盈(Take Profit)操作,因为股票尚未完成结算。
- 建议卖出操作时,务必核对股票的购买日期。
Portfolio File
投资组合文件
The agent looks for a portfolio file in the working directory to track positions. Accepted file names (checked in order):
DANH_MUC.mdPORTFOLIO.mdACCOUNT.md
If none exists, the agent should ask the user whether they want to create one.
Agent会在工作目录中查找投资组合文件以跟踪持仓。支持的文件名(按检查顺序):
DANH_MUC.mdPORTFOLIO.mdACCOUNT.md
若未找到,Agent应询问用户是否需要创建。
Watchlist File
观察列表文件
The agent also looks for a watchlist file to track tickers being monitored (no positions yet). Accepted file names (checked in order):
THEO_DOI.mdWATCHLIST.md
This tracks potential entry candidates. Include: ticker, sector, watch reason, entry zone, key level, and added date.
Agent还会查找观察列表文件以跟踪关注的代码(尚未持仓)。支持的文件名(按检查顺序):
THEO_DOI.mdWATCHLIST.md
此文件用于跟踪潜在入场候选,需包含:代码、板块、关注原因、入场区间、关键水平、添加日期。
Risk Management Rules (MANDATORY)
风险管理规则(强制执行)
- Always check settlement status before recommending sell actions (VN stocks only) — cross-reference buy date with today. For VN stocks, shares are NOT sellable until afternoon of T+2. Does NOT apply to crypto or global stocks
- Every analysis must quantify risk — include specific Stop Loss and Take Profit levels with reasoning, state what invalidates the thesis, calculate risk-reward ratio
- Never present one-sided analysis — every ticker must have both bullish signals and bearish risks
- Position sizing awareness — flag concentration risk when >30% of portfolio is in one sector
- Daily portfolio review — mark settled positions, check SL/TP hits, flag thesis changes
- 建议卖出操作前务必检查结算状态(仅越南股票)——核对买入日期与当前日期。对于越南股票,T+2日下午前股票不可卖出。此规则不适用于加密货币及全球股票
- 每份分析必须量化风险——包含具体的止损和止盈水平及理由,明确论点失效的条件,计算风险回报率
- 切勿呈现片面分析——每个代码必须同时包含看涨信号和看空风险
- 持仓规模意识——当单一板块持仓占投资组合的30%以上时,需标记集中度风险
- 每日投资组合回顾——标记已结算持仓,检查止损/止盈触发情况,标记论点变化
Strict Data Reading & Validation (CRITICAL)
严格的数据读取与验证(至关重要)
Symptom: Misreading or hallucinating the relationship between Price and Moving Averages (e.g., stating a stock is "below EMA20" when it is actually above), or misclassifying a technical event (e.g., calling a failed breakout a "healthy pullback").
Rules:
- Row-by-Row Verification: When reading OHLCV data output from the CLI, you MUST strictly read the exact row for the exact date requested. Do not accidentally read data from an adjacent row or a different ticker's block in multi-ticker outputs.
- Precision Filter with Grep: To minimize reading errors and context volume, always use to isolate your target dates across one or multiple tickers. Use
grep -Eas your header anchor."time"- Surgical view (Header + Today + Breakout Day):
uvx aipa-cli get-ohlcv-data TCB MSB STB | grep -E "time|2026-05-27|2026-05-07" - Comparing recent days:
uvx aipa-cli get-ohlcv-data VND | grep -E "time|2026-05-27|2026-05-26"
- Surgical view (Header + Today + Breakout Day):
- Explicit Value Comparison: Before concluding whether a trend is broken or intact, explicitly state the values being compared: vs
[Close Price].[MA/EMA Value]- Example: "Close is 17.750, EMA20 is 16.881. 17.750 > 16.881 → Price is ABOVE EMA20 (Trend intact)."
- Breakout Validation: A breakout (significant positive price change + high volume) creates a critical support at the structural breakout level — the top of the pre-breakout base/range, the prior swing high, or the pattern's neckline. The breakout candle's Low is NOT a reliable invalidation point: it can extend well below the structural level due to gap opens, intraday noise, or volatile entry bars.
- The correct invalidation is a fall back below the structural breakout level, not below the candle's Low.
- If price pulls back but stays above the structural level, the breakout is intact — this is a healthy pullback.
- If price falls below the structural breakout level, it is a Failed Breakout / Structural Violation.
- Action: Always identify the pre-breakout structure first. Only then assess whether a pullback is healthy (above structure) or a failure (below structure).
常见问题: 误读或虚构价格与移动平均线的关系(例如,实际价格高于EMA20却称其“低于EMA20”),或错误分类技术事件(例如,将失败的突破称为“健康回调”)。
规则:
- 逐行验证: 读取CLI输出的OHLCV数据时,必须严格读取请求日期的对应行。切勿误读相邻行或多代码输出中其他代码的数据块。
- 使用Grep进行精准筛选: 为减少读取错误和上下文信息量,请始终使用隔离目标日期(针对一个或多个代码)。以
grep -E作为表头锚点。"time"- 精准查看(表头+今日+突破日):
uvx aipa-cli get-ohlcv-data TCB MSB STB | grep -E "time|2026-05-27|2026-05-07" - 对比近期数据:
uvx aipa-cli get-ohlcv-data VND | grep -E "time|2026-05-27|2026-05-26"
- 精准查看(表头+今日+突破日):
- 明确数值对比: 判断趋势是否被打破或保持完整前,需明确说明对比的数值:vs
[收盘价]。[MA/EMA数值]- 示例: "收盘价为17.750,EMA20为16.881。17.750 > 16.881 → 价格高于EMA20(趋势保持完整)。"
- 突破验证: 突破(显著正向价格变动+高成交量)会在结构性突破水平形成关键支撑——即突破前底部/区间的顶部、前期摆动高点或形态颈线。突破K线的最低价并非可靠的失效点:由于跳空开盘、日内噪音或波动的入场K线,它可能远低于结构性水平。
- 正确的失效判定是回落至结构性突破水平下方,而非K线最低价下方。
- 若价格回调但仍保持在结构性水平上方,则突破有效——这是健康回调。
- 若价格回落至结构性突破水平下方,则为突破失败/结构性破位。
- 操作: 首先识别突破前的结构,再评估回调是健康的(高于结构)还是失败的(低于结构)。
Tips for AI Agents
AI Agent使用技巧
-
Auto-uppercase: Ticker symbols are automatically converted to uppercase. You can pass,
vcb, etc. — they will be treated asbtcusdt,VCB.BTCUSDT -
Usefor data inspection: If you only need to see what data is available without spending API credits, use
--context-only.aipa analyze VCB --context-only -
Default is good enough: The default template (index 0, Trading Opportunity) is comprehensive. Only specifywhen the user has a specific analytical framework in mind.
--question -
Multi-ticker for comparisons: When the user asks to "compare" or "which is better", pass multiple tickers:.
aipa analyze VCB TCB MBB -
Usefor Vietnamese users: If the user writes in Vietnamese or asks for Vietnamese output, add
--lang vn.--lang vn -
Usefor transparency: When the user wants to see the reasoning process, add
--verbose.--verbose -
for raw numbers: If the user asks for "price data", "candle data", or "OHLCV" without wanting AI analysis, use the
aipa-dataskill instead.aipa-data -
Interval matters: For intraday analysis, useor
1h. For swing trading, use4h. For scalping, use1Dor15m.5m -
Combine with: More bars = more context. Use
--limitor--limit 50for deeper analysis. Default is 20.--limit 100 -
Reference ticker: Auto-detected based on the ticker's source —for VN stocks,
VNINDEXfor crypto,BTCUSDTfor global stocks. Use^GSPCto override.--reference-ticker -
Useto find tickers to analyze — run multiple perspectives: When the user asks "what should I analyze?" or "what's moving today?", run
aipa performerswith multipleaipa performersvalues to get a multi-perspective view. Always run at least these two: default (price change) and value (trading value). Add MA scores when the user cares about trends. Cross-referencing the lists reveals more significant tickers. Then analyze the interesting ones with--sort-by.aipa analyzebashaipa performers # price change — top gainers / worst losers aipa performers --sort-by value # trading value — where the money flows aipa performers --sort-by ma50_score # MA50 trend — strongest/weakest medium-term trends aipa performers --sort-by ma20_score # MA20 trend — strongest/weakest short-term trends aipa performers --sort-by total_money_changed # money flow change — unusual capital activity aipa performers --source crypto --sort-by value # crypto by trading value aipa performers --group NGAN_HANG --sort-by value # banking sector by trading value aipa performers --group CHUNG_KHOAN --sort-by close_changed # securities sector top gainers -
Usefor support/resistance context: When analyzing a ticker and the user asks about key price levels, support, resistance, or "where is the volume?", run
aipa volume-profileto get POC (Point of Control), value area, and volume-weighted statistics. Prefer multi-day ranges over single-day profiles — they produce more reliable support/resistance levels and smooth out intraday noise. Useaipa volume-profile TICKERand--start-datecovering at least 20 trading days as the default approach. Only use a single--end-datewhen the user explicitly asks for one specific day. Examples:--date- — 1-month range (preferred default)
aipa volume-profile VCB --start-date 2026-04-14 --end-date 2026-05-09 - — 2-week range
aipa volume-profile VCB --start-date 2026-04-28 --end-date 2026-05-09 --bins 30 - — single date (only when specifically requested)
aipa volume-profile VCB --date 2026-05-08 - — crypto multi-day
aipa volume-profile BTCUSDT --source crypto --bins 30 --start-date 2026-05-05 --end-date 2026-05-09 - — full options
aipa volume-profile FPT --start-date 2026-05-01 --end-date 2026-05-09 --bins 30 --value-area-pct 80
-
自动大写转换:代码符号会自动转换为大写。你可以传入、
vcb等——它们会被视为btcusdt、VCB。BTCUSDT -
使用检查数据:若仅需查看可用数据而无需消耗API额度,可使用
--context-only。aipa analyze VCB --context-only -
默认模板足够全面:默认模板(索引0,交易机会)内容全面。仅当用户有特定分析框架需求时,才指定。
--question -
多代码用于对比:当用户要求“对比”或“哪个更好”时,传入多个代码:。
aipa analyze VCB TCB MBB -
对越南用户使用:若用户用越南语提问或要求越南语输出,请添加
--lang vn。--lang vn -
使用提升透明度:当用户希望查看推理过程时,添加
--verbose。--verbose -
用于原始数据:若用户要求“价格数据”“蜡烛图数据”或“OHLCV”且无需AI分析,请改用
aipa-data技能。aipa-data -
周期选择很重要:日内分析使用或
1h。波段交易使用4h。日内交易使用1D或15m。5m -
结合使用:K线越多,上下文越充分。深入分析时使用
--limit或--limit 50。默认值为20。--limit 100 -
参考代码:根据代码的数据源自动检测——越南股票用,加密货币用
VNINDEX,全球资产用BTCUSDT。可使用^GSPC覆盖默认设置。--reference-ticker -
使用寻找分析标的——多视角运行:当用户询问“我应该分析什么?”或“今天哪些标的有波动?”时,结合多个
aipa performers值运行--sort-by,获取多视角结果。至少运行以下两个:默认(价格变动)和成交额(value)。若用户关注趋势,可添加MA分数。交叉对比列表可发现更重要的标的,再用aipa performers进行分析。aipa analyzebashaipa performers # 价格变动——涨幅榜/跌幅榜 aipa performers --sort-by value # 成交额——资金流向 aipa performers --sort-by ma50_score # MA50趋势——中期最强/最弱趋势 aipa performers --sort-by ma20_score # MA20趋势——短期最强/最弱趋势 aipa performers --sort-by total_money_changed # 资金流向变化——异常资金活动 aipa performers --source crypto --sort-by value # 加密货币按成交额排名 aipa performers --group NGAN_HANG --sort-by value # 银行板块按成交额排名 aipa performers --group CHUNG_KHOAN --sort-by close_changed # 证券板块涨幅榜 -
使用获取支撑/阻力位上下文:分析代码且用户询问关键价格水平、支撑位、阻力位或“成交量分布在哪里?”时,运行
aipa volume-profile获取POC(控制点)、价值区间及成交量加权统计数据。优先使用多日范围而非单日分布——多日范围可生成更可靠的支撑/阻力位,平滑日内噪音。默认使用覆盖至少20个交易日的aipa volume-profile TICKER和--start-date。仅当用户明确要求某一特定日期时,才使用单一--end-date。示例:--date- — 1个月范围(推荐默认)
aipa volume-profile VCB --start-date 2026-04-14 --end-date 2026-05-09 - — 2周范围
aipa volume-profile VCB --start-date 2026-04-28 --end-date 2026-05-09 --bins 30 - — 单一日期(仅在明确要求时使用)
aipa volume-profile VCB --date 2026-05-08 - — 加密货币多日范围
aipa volume-profile BTCUSDT --source crypto --bins 30 --start-date 2026-05-05 --end-date 2026-05-09 - — 完整参数示例
aipa volume-profile FPT --start-date 2026-05-01 --end-date 2026-05-09 --bins 30 --value-area-pct 80