Spaces:
Sleeping
Sleeping
Update backtest_engine.py
Browse files- backtest_engine.py +4 -4
backtest_engine.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
# ============================================================
|
| 2 |
-
# 🧪 backtest_engine.py (V223.
|
| 3 |
# FIXES APPLIED:
|
| 4 |
# 1) Added Slope & MFI calculation (Critical for Oracle & Titan).
|
| 5 |
# 2) Fixed Sniper prediction shape mismatch (Broadcasting Error).
|
| 6 |
-
# 3)
|
| 7 |
# ============================================================
|
| 8 |
|
| 9 |
import asyncio
|
|
@@ -213,7 +213,7 @@ class HeavyDutyBacktester:
|
|
| 213 |
self.force_end_date = "2024-02-01"
|
| 214 |
|
| 215 |
self.required_timeframes = self._determine_required_timeframes()
|
| 216 |
-
print(f"🧪 [Backtest V223.
|
| 217 |
|
| 218 |
def _verify_system_integrity(self):
|
| 219 |
errors = []
|
|
@@ -426,7 +426,7 @@ class HeavyDutyBacktester:
|
|
| 426 |
scores_file = f"{CACHE_DIR}/{safe_sym}_{period_suffix}_processed.pkl"
|
| 427 |
|
| 428 |
if os.path.exists(scores_file):
|
| 429 |
-
|
| 430 |
return
|
| 431 |
|
| 432 |
print(f" ⚙️ [CPU] Processing {sym} (Truth Mode)...", flush=True)
|
|
|
|
| 1 |
# ============================================================
|
| 2 |
+
# 🧪 backtest_engine.py (V223.4 - GEM-Architect: Clean & Robust)
|
| 3 |
# FIXES APPLIED:
|
| 4 |
# 1) Added Slope & MFI calculation (Critical for Oracle & Titan).
|
| 5 |
# 2) Fixed Sniper prediction shape mismatch (Broadcasting Error).
|
| 6 |
+
# 3) Removed all citation artifacts/syntax errors.
|
| 7 |
# ============================================================
|
| 8 |
|
| 9 |
import asyncio
|
|
|
|
| 213 |
self.force_end_date = "2024-02-01"
|
| 214 |
|
| 215 |
self.required_timeframes = self._determine_required_timeframes()
|
| 216 |
+
print(f"🧪 [Backtest V223.4] IMMUTABLE TRUTH (Patched & Clean). TFs: {self.required_timeframes}")
|
| 217 |
|
| 218 |
def _verify_system_integrity(self):
|
| 219 |
errors = []
|
|
|
|
| 426 |
scores_file = f"{CACHE_DIR}/{safe_sym}_{period_suffix}_processed.pkl"
|
| 427 |
|
| 428 |
if os.path.exists(scores_file):
|
| 429 |
+
print(f" 📂 [{sym}] Loaded Cache.")
|
| 430 |
return
|
| 431 |
|
| 432 |
print(f" ⚙️ [CPU] Processing {sym} (Truth Mode)...", flush=True)
|