refactor: 工具函数抽取公共模块——indicators.py(指标)+market_data.py(数据),mr/s2扫描器改为公共模块import(消除策略扫描器互import)

This commit is contained in:
hmo
2026-08-11 08:20:09 +08:00
parent af7419bc77
commit 0ef84d34d5
4 changed files with 171 additions and 138 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ from pathlib import Path
from datetime import datetime
sys.path.insert(0, str(Path(__file__).parent))
from mr_scanner import fetch_tx_klines, calc_ma, calc_rsi, get_stock_pool
# 2026-08-11 重构:工具函数从 mr_scanner 抽到公共模块,s2 直接引用公共模块
from indicators import calc_ma, calc_rsi
from market_data import fetch_tx_klines, get_stock_pool
DB_PATH = Path("/home/hmo/MoFin/data/mofin.db")