- mtlib/: shared data loader, backtest engine, metrics, cli wrapper, walkforward, GBK-safe console, smoke test (python -m mtlib smoke) - strategies/xauusd_scalp/: single-source signal (generate_signals + generate_signal_at share _check), params dataclass, all runners - Unify 3 known drifts: session filter (discrete set), spread 0.16, backtest signature defaults 1.2/0.6/1.0/0.2 - Fix walkforward verdict (both halves PF>=1) + drop fake stability ratio - Root shims keep old commands working; data/ holds JSON files - Baseline check: new vs old engine identical trades, PnL, final equity Co-Authored-By: Claude Code <noreply@anthropic.com>
10 lines
347 B
Python
10 lines
347 B
Python
"""[已迁移] 旧命令薄壳 - 转调到新结构。
|
|
|
|
请改用: python -m strategies.xauusd_scalp.session_analysis
|
|
"""
|
|
import runpy
|
|
import sys
|
|
|
|
sys.stdout.write("!! 已迁移: 建议改用 python -m strategies.xauusd_scalp.session_analysis\n")
|
|
sys.stdout.flush()
|
|
runpy.run_module('strategies.xauusd_scalp.session_analysis', run_name='__main__') |