fix: max_trades=99, leverage per symbol, crash recovery, test_live.py
- max_trades=99 в config/backtest — стратегия находит ВСЕ входы, лимит позиций контролирует executor (Phase 2) - leverage setup per symbol (set[str] вместо bool) - crash recovery: get_today_trade_keys() восстанавливает last_trade_ids - flash trade exit по new_positions[-1] (slippage-safe) - last_trade_ids.add() только в Phase 2 для исполненных трейдов - test_live.py: cfg.strategy → per-symbol strat_cfg - backtest_wf: risk 5%, max_trades=[99] - cli daemon: per-symbol params display Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -23,7 +23,7 @@ NY = ZoneInfo("America/New_York")
|
||||
|
||||
# ── Config ───────────────────────────────────────────────────────────
|
||||
INITIAL_CAPITAL = 1_000.0
|
||||
RISK_PCT = 0.02 # 2% risk per trade
|
||||
RISK_PCT = 0.05 # 5% risk per trade
|
||||
TAKER_FEE = 0.00055 # Bybit linear futures taker fee (0.055%)
|
||||
LEVERAGE = 10 # max leverage (caps position value)
|
||||
TRAIN_RATIO = 0.5 # first 50% days = in-sample
|
||||
@@ -32,7 +32,7 @@ OR_MINUTES = 15 # opening range duration (3 x 5m candles)
|
||||
|
||||
GRID = {
|
||||
"rr_ratio": [2.0, 2.5, 3.0],
|
||||
"max_trades": [1, 2, 3],
|
||||
"max_trades": [99],
|
||||
"min_range_pct": [0.0, 0.1, 0.2],
|
||||
"min_fvg_pct": [0.0, 0.02, 0.05],
|
||||
"first_fvg_only": [False, True],
|
||||
|
||||
Reference in New Issue
Block a user