refactor: 工具函数抽取公共模块——indicators.py(指标)+market_data.py(数据),mr/s2扫描器改为公共模块import(消除策略扫描器互import)
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user