scanner-bullish
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBullish Scanner
看涨股票扫描器
Scans symbols for bullish trends and ranks them by composite score.
扫描各类标的的看涨趋势,并按综合得分进行排名。
Instructions
使用说明
Note: Ifis not installed oruvis not found, replacepyproject.tomlwithuv run pythonin all commands below.python
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
参数
- - Comma-separated ticker symbols (e.g.,
SYMBOLS)AAPL,MSFT,GOOGL,NVDA - - Number of top results to return (default: 30)
--top - - Historical period for analysis: 1mo, 3mo, 6mo (default: 3mo)
--period
- - 用逗号分隔的股票代码(例如:
SYMBOLS)AAPL,MSFT,GOOGL,NVDA - - 要返回的排名靠前的结果数量(默认值:30)
--top - - 分析用的历史时间周期:1mo、3mo、6mo(默认值:3mo)
--period
Scoring System (max ~8 points)
评分体系(最高约8分)
| Indicator | Condition | Points |
|---|---|---|
| SMA20 | Price > SMA20 | +1.0 |
| SMA50 | Price > SMA50 | +1.0 |
| RSI | 50-70 (bullish) | +1.0 |
| 30-50 (neutral) | +0.5 | |
| <30 (oversold) | +0.25 | |
| MACD | MACD > Signal | +1.0 |
| Histogram rising | +0.5 | |
| ADX | >25 with +DI > -DI | +1.5 |
| +DI > -DI only | +0.5 | |
| Momentum | 3mo return / 20 | -1 to +2 |
| 指标 | 条件 | 得分 |
|---|---|---|
| SMA20 | 价格 > SMA20 | +1.0 |
| SMA50 | 价格 > SMA50 | +1.0 |
| RSI | 50-70(看涨) | +1.0 |
| 30-50(中性) | +0.5 | |
| <30(超卖) | +0.25 | |
| MACD | MACD > 信号线 | +1.0 |
| 柱状图上升 | +0.5 | |
| ADX | >25 且 +DI > -DI | +1.5 |
| 仅满足 +DI > -DI | +0.5 | |
| 动量 | 3个月收益率 / 20 | -1 到 +2 |
Output
输出
Returns JSON with:
- - Timestamp of scan
scan_date - - Total symbols analyzed
symbols_scanned - - Array sorted by score (highest first):
results- ,
symbol,scoreprice - ,
next_earnings(BMO/AMC)earnings_timing - ,
period_return_pct,pct_from_sma20pct_from_sma50 - ,
rsi,macd,adx,dmpdmn - - List of triggered conditions
signals
返回JSON包含以下字段:
- - 扫描时间戳
scan_date - - 已分析的标的总数量
symbols_scanned - - 按得分降序排列的数组:
results- ,
symbol,scoreprice - ,
next_earnings(BMO/AMC)earnings_timing - ,
period_return_pct,pct_from_sma20pct_from_sma50 - ,
rsi,macd,adx,dmpdmn - - 已触发的条件列表
signals
Examples
示例
bash
undefinedbash
undefinedScan 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
undefineduv run python scripts/scan.py AAPL,MSFT,GOOGL --period 6mo
undefinedInterpretation
结果解读
- 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
依赖项
pandaspandas-tayfinance
pandaspandas-tayfinance