scanner-bullish

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Bullish Scanner

看涨股票扫描器

Scans symbols for bullish trends and ranks them by composite score.
扫描各类标的的看涨趋势,并按综合得分进行排名。

Instructions

使用说明

Note: If
uv
is not installed or
pyproject.toml
is not found, replace
uv run python
with
python
in all commands below.
bash
uv run python scripts/scan.py SYMBOLS [--top N] [--period PERIOD]
注意: 如果未安装
uv
或者找不到
pyproject.toml
,请将下方所有命令中的
uv run python
替换为
python
bash
uv run python scripts/scan.py SYMBOLS [--top N] [--period PERIOD]

Arguments

参数

  • SYMBOLS
    - Comma-separated ticker symbols (e.g.,
    AAPL,MSFT,GOOGL,NVDA
    )
  • --top
    - Number of top results to return (default: 30)
  • --period
    - Historical period for analysis: 1mo, 3mo, 6mo (default: 3mo)
  • SYMBOLS
    - 用逗号分隔的股票代码(例如:
    AAPL,MSFT,GOOGL,NVDA
  • --top
    - 要返回的排名靠前的结果数量(默认值:30)
  • --period
    - 分析用的历史时间周期:1mo、3mo、6mo(默认值:3mo)

Scoring System (max ~8 points)

评分体系(最高约8分)

IndicatorConditionPoints
SMA20Price > SMA20+1.0
SMA50Price > SMA50+1.0
RSI50-70 (bullish)+1.0
30-50 (neutral)+0.5
<30 (oversold)+0.25
MACDMACD > Signal+1.0
Histogram rising+0.5
ADX>25 with +DI > -DI+1.5
+DI > -DI only+0.5
Momentum3mo return / 20-1 to +2
指标条件得分
SMA20价格 > SMA20+1.0
SMA50价格 > SMA50+1.0
RSI50-70(看涨)+1.0
30-50(中性)+0.5
<30(超卖)+0.25
MACDMACD > 信号线+1.0
柱状图上升+0.5
ADX>25 且 +DI > -DI+1.5
仅满足 +DI > -DI+0.5
动量3个月收益率 / 20-1 到 +2

Output

输出

Returns JSON with:
  • scan_date
    - Timestamp of scan
  • symbols_scanned
    - Total symbols analyzed
  • results
    - Array sorted by score (highest first):
    • symbol
      ,
      score
      ,
      price
    • next_earnings
      ,
      earnings_timing
      (BMO/AMC)
    • period_return_pct
      ,
      pct_from_sma20
      ,
      pct_from_sma50
    • rsi
      ,
      macd
      ,
      adx
      ,
      dmp
      ,
      dmn
    • signals
      - List of triggered conditions
返回JSON包含以下字段:
  • scan_date
    - 扫描时间戳
  • symbols_scanned
    - 已分析的标的总数量
  • results
    - 按得分降序排列的数组:
    • symbol
      ,
      score
      ,
      price
    • next_earnings
      ,
      earnings_timing
      (BMO/AMC)
    • period_return_pct
      ,
      pct_from_sma20
      ,
      pct_from_sma50
    • rsi
      ,
      macd
      ,
      adx
      ,
      dmp
      ,
      dmn
    • signals
      - 已触发的条件列表

Examples

示例

bash
undefined
bash
undefined

Scan a few symbols

扫描少量标的

uv run python scripts/scan.py AAPL,MSFT,GOOGL,NVDA,TSLA
uv run python scripts/scan.py AAPL,MSFT,GOOGL,NVDA,TSLA

Get top 10 from larger list

从更长的标的列表中获取前10个结果

uv run python scripts/scan.py AAPL,MSFT,GOOGL,NVDA,TSLA,AMD,AMZN,META --top 10
uv run python scripts/scan.py AAPL,MSFT,GOOGL,NVDA,TSLA,AMD,AMZN,META --top 10

Use 6-month lookback

使用6个月的回溯周期

uv run python scripts/scan.py AAPL,MSFT,GOOGL --period 6mo
undefined
uv run python scripts/scan.py AAPL,MSFT,GOOGL --period 6mo
undefined

Interpretation

结果解读

  • Score > 6: Strong bullish trend
  • Score 4-6: Moderate bullish
  • Score 2-4: Neutral/weak
  • Score < 2: Bearish or no trend
  • 得分 > 6:强劲看涨趋势
  • 得分 4-6:温和看涨
  • 得分 2-4:中性/走势疲软
  • 得分 < 2:看跌或无趋势

Dependencies

依赖项

  • pandas
  • pandas-ta
  • yfinance
  • pandas
  • pandas-ta
  • yfinance