feat: портфель ADA+DOGE only (exp26j: +$289, Sharpe 0.96)
- Убраны BTC/ETH/SOL (формула не даёт edge, exp26i) - Веса 50/50, max_open_positions=2 - Убран regime retrain (exp25: 1086 retrains, DD +14%), только losses_only - Добавлен exp26j: реалистичный бэктест с комиссиями Bybit Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -553,19 +553,15 @@ def _get_atr_regime(prices, idx):
|
||||
|
||||
|
||||
def _should_retrain(asset, prices, idx):
|
||||
"""Event-driven retrain: 3 consecutive losses OR ATR regime change.
|
||||
"""Event-driven retrain: 3 consecutive losses only.
|
||||
|
||||
Regime change retrain removed — exp25/26j: causes 1086 retrains, DD +14%.
|
||||
Returns reason string or None.
|
||||
"""
|
||||
consecutive_losses = asset.get("consecutive_losses") or 0
|
||||
if consecutive_losses >= 3:
|
||||
return f"{consecutive_losses}_losses"
|
||||
|
||||
current_regime = _get_atr_regime(prices, idx)
|
||||
last_regime = asset.get("last_atr_regime")
|
||||
if last_regime and current_regime != last_regime:
|
||||
return f"regime_{last_regime}_to_{current_regime}"
|
||||
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user