fix: MTF bot code review — conditional slicing, caching, tests
- Add _remove_incomplete_candle() for timestamp-based conditional slicing on both 15m and 1h data (replaces hardcoded [:-1]) - Add MetaFilter indicator caching to eliminate 3x duplicate calc - Fix notifier encapsulation (_send → notify_info public API) - Remove DataFetcher.poll_update() dead code - Fix evaluate_oos.py symbol typo (xrpusdtusdt → xrpusdt) - Add 20 pytest unit tests for MetaFilter, TriggerStrategy, ExecutionManager, and _remove_incomplete_candle Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@ MTF Pullback Bot — OOS Dry-run 평가 스크립트
|
||||
|
||||
Usage:
|
||||
python scripts/evaluate_oos.py
|
||||
python scripts/evaluate_oos.py --symbol XRPUSDTUSDT
|
||||
python scripts/evaluate_oos.py --symbol xrpusdt
|
||||
python scripts/evaluate_oos.py --local # 로컬 파일만 사용 (서버 fetch 스킵)
|
||||
"""
|
||||
|
||||
@@ -153,7 +153,7 @@ def print_report(df: pd.DataFrame):
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="MTF OOS Dry-run 평가")
|
||||
parser.add_argument("--symbol", default="xrpusdtusdt", help="심볼 (파일명 소문자, 기본: xrpusdtusdt)")
|
||||
parser.add_argument("--symbol", default="xrpusdt", help="심볼 (파일명 소문자, 기본: xrpusdt)")
|
||||
parser.add_argument("--local", action="store_true", help="로컬 파일만 사용 (서버 fetch 스킵)")
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user