← 返回
未分类

Trend Following

Trend-following stock analysis using price + volume. Use when user asks to analyze a stock, check a ticker, get buy/sell signals, find support/resistance, or...
Trend-following stock analysis using price + volume. Use when user asks to analyze a stock, check a ticker, get buy/sell signals, find support/resistance, or...
eddieguan801-oss eddieguan801-oss 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 400
下载
💾 0
安装
1
版本
#latest

概述

Trend Following Strategy (v1.0.0)

Price + Volume based trend analysis with buy/sell signals, support/resistance levels, and target pricing.

Quick Start

python3 skills/trend-following/scripts/trend_strategy.py <TICKER> [PERIOD]

Examples:

python3 skills/trend-following/scripts/trend_strategy.py ADBE 1y
python3 skills/trend-following/scripts/trend_strategy.py ORCL 6mo
python3 skills/trend-following/scripts/trend_strategy.py AAPL

Indicators Used

IndicatorPurpose
--------------------
RSI(14)Overbought/oversold (70+=overbought, 30-=oversold)
MACDTrend momentum (histogram crossing 0 = signal)
MA20/50/200Trend direction (price vs moving averages)
Bollinger BandsVolatility envelopes
Volume MAVolume surges confirm moves

Signal Logic

Buy Signals 🟢

  • MACD histogram crosses above 0 (golden cross)
  • Volume >1.5x avg + price above MA20
  • RSI 40-60 + uptrend confirmation
  • Pullback to MA20 in strong uptrend
  • RSI oversold + MACD reversal = possible bottom

Sell Signals 🔴

  • RSI >70 (overbought)
  • Price below MA20 in downtrend
  • Volume >2x on price decline
  • MACD bearish (below signal line)
  • Breaking support level

Output Sections

  1. Trend Status — MA20/50/200 alignment
  2. Key Levels — Resistance and support zones
  3. Signals — Current buy/sell conditions
  4. Entry & Targets — Entry price, stop loss, 3 targets with R/R ratio

Parameters

  • TICKER — Required. Yahoo Finance ticker symbol (e.g., ADBE, ORCL, TSLA)
  • PERIOD — Optional. Data period (default: 1y). Options: 3mo, 6mo, 1y, 2y, 5y

Notes

  • Requires yfinance (pip install yfinance)
  • Uses swing point detection for support/resistance
  • Targets are based on measured moves from current price to next S/R level
  • Always validate with current market data before trading

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 09:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 199 📥 64,075
professional

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 134 📥 42,885
professional

Stock Market Pro

kys42
Yahoo Finance (yfinance) 驱动的股票分析技能:行情报价、基本面、ASCII 趋势图、高分辨率图表(RSI/MACD/BB/VWAP/ATR),以及可选的网络...
★ 165 📥 40,410