跳到正文
Skillpedia
分析与电子表格18k · #10660

trader-hand-skill

它能做什么

这个技能是市场分析的参考知识,涵盖 RSI 等技术指标、风险管理思路以及市场数据 API 的使用方法。适合想要清楚了解这些工具的市场研究者。

适用场景

  • ✓当你想了解 RSI 等技术指标及其计算方法时。
  • ✓当你在为市场分析或交易项目设置风险规则时。
  • ✓当你需要了解如何调用 Alpaca 等市场数据 API 时。

技能链接

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-hands/bundled/trader/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-hands/bundled/trader/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请解释 RSI 指标如何计算,以及它在股票图表上的超买和超卖水平意味着什么。”

每周 5 个新技能,1 分钟读完。

工作原理

该技能为各项指标提供公式、示例计算和解读规则,并附有关于风险和数据来源的说明。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Trading Expert Knowledge

Reference Knowledge

1. Technical Analysis Indicators Reference

RSI (Relative Strength Index)

Formula: RSI = 100 - (100 / (1 + RS))
Where:  RS = Average Gain / Average Loss over N periods (default N = 14)

Step-by-step calculation:
  1. For each period, compute change = Close(t) - Close(t-1)
  2. Gains = max(change, 0), Losses = abs(min(change, 0))
  3. First average: simple mean of first 14 gains/losses
  4. Subsequent: AvgGain = (PrevAvgGain * 13 + CurrentGain) / 14  (Wilder smoothing)
  5. RS = AvgGain / AvgLoss
  6. RSI = 100 - (100 / (1 + RS))

Worked example (14-period):
  Avg Gain over 14 periods = 1.02
  Avg Loss over 14 periods = 0.68
  RS = 1.02 / 0.68 = 1.50
  RSI = 100 - (100 / (1 + 1.50)) = 100 - 40 = 60.0

Interpretation:

  • RSI < 30: Oversold territory (potential buy signal)
  • RSI > 70: Overbought territory (potential sell signal)
  • RSI = 50: Neutral — price momentum balanced

Advanced RSI Signals:

Signal Description Strength
Bearish divergence Price makes new high, RSI makes lower high Strong reversal warning
Bullish divergence Price makes new low, RSI makes higher low Strong reversal warning
Bullish failure swing RSI drops below 30, bounces, pulls back above 30, breaks prior RSI high Very strong buy
Bearish failure swing RSI rises above 70, drops, bounces below 70, breaks prior RSI low Very strong sell
Range shift RSI oscillates 40-80 in uptrend, 20-60 in downtrend Trend confirmation

Best practices: Never use RSI as a sole signal. Combine with trend direction (moving averages) and volume. In strong trends, RSI can stay overbought/oversold for extended periods.


MACD (Moving Average Convergence Divergence)

MACD Line   = EMA(12) - EMA(26)
Signal Line = EMA(9) of MACD Line
Histogram   = MACD Line - Signal Line

EMA formula: EMA(t) = Price(t) * k + EMA(t-1) * (1 - k)
Where: k = 2 / (N + 1)
  For EMA(12): k = 2/13 = 0.1538
  For EMA(26): k = 2/27 = 0.0741

Worked example:
  EMA(12) = 155.20
  EMA(26) = 152.80
  MACD Line = 155.20 - 152.80 = 2.40
  Previous Signal Line = 1.80
  Signal Line = 2.40 * (2/10) + 1.80 * (8/10) = 0.48 + 1.44 = 1.92
  Histogram = 2.40 - 1.92 = 0.48 (positive = bullish momentum increasing)

Interpretation:

Signal Condition Strength
Bullish crossover MACD crosses above Signal Line Moderate buy
Bearish crossover MACD crosses below Signal Line Moderate sell
Zero-line bullish cross MACD crosses above zero Trend change to bullish
Zero-line bearish cross MACD crosses below zero Trend change to bearish
Histogram expansion Bars growing taller Momentum accelerating
Histogram contraction Bars shrinking Momentum weakening, reversal may come
Bullish divergence Price new low, MACD higher low Strong reversal signal
Bearish divergence Price new high, MACD lower high Strong reversal signal

Bollinger Bands

Middle Band = SMA(20)
Upper Band  = SMA(20) + 2 * StdDev(20)
Lower Band  = SMA(20) - 2 * StdDev(20)
Bandwidth   = (Upper - Lower) / Middle
%B          = (Price - Lower) / (Upper - Lower)

Worked example:
  SMA(20) = 150.00
  StdDev(20) = 3.50
  Upper = 150.00 + 2 * 3.50 = 157.00
  Lower = 150.00 - 2 * 3.50 = 143.00
  Bandwidth = (157.00 - 143.00) / 150.00 = 0.0933 (9.33%)
  Current price = 155.00
  %B = (155.00 - 143.00) / (157.00 - 143.00) = 12/14 = 0.857
  Interpretation: Price is 85.7% of the way from lower to upper band — near upper band

Key Bollinger Band Signals:

Signal Condition Meaning
Squeeze Bandwidth at 6-month low Volatility contraction, big move imminent
Squeeze breakout up Price breaks above upper band after squeeze Strong bullish breakout
Squeeze breakout down Price breaks below lower band after squeeze Strong bearish breakout
Walking the upper band Price hugs upper band with middle band rising Strong uptrend — do NOT short
Walking the lower band Price hugs lower band with middle band falling Strong downtrend — do NOT buy
Mean reversion touch Price touches outer band, %B reverses Potential reversion to middle band
W-bottom Price hits lower band twice, second low has higher %B Bullish reversal pattern
M-top Price hits upper band twice, second high has lower %B Bearish reversal pattern

常见问题

什么是 RSI?

RSI 是一个 0 到 100 之间的动量分数;低于 30 称为超卖,高于 70 称为超买。

这个技能会自己进行交易吗?

更大的项目涵盖自主的市场工作,但这个技能本身是关于指标、风险和数据来源的参考资料。

涵盖哪些数据来源?

该技能提到了金融数据来源,以及用于访问市场的 Alpaca API。

详情

作者的原始描述

Expert knowledge for autonomous market intelligence and trading — technical analysis, risk management, Alpaca API, financial data sources

repo: RightNow-AI/openfang

热度

GitHub 星标
18k
排名
#10660
许可证
Apache-2.0
更新时间
2026/7/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能