Commit Graph
5 Commits
Author SHA1 Message Date
anorandClaude Opus 4.6 39d7458fdd fix: убрать лишний timeInForce GTC (ccxt сам ставит PostOnly)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:31:17 +10:00
anorandClaude Opus 4.6 096a361584 fix: limit order по bid/ask, partial fill, maker fee в бэктесте
- exchange: limit по bid (buy) / ask (sell) вместо last price
- exchange: partial fill handling при cancel limit order
- backtest_wf: MAKER_FEE + TAKER_FEE вместо TAKER_FEE * 2
- sweep_leverage/sweep_stop: аналогично maker+taker

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:05:03 +10:00
anorandClaude Opus 4.6 921defad30 feat: limit entry (maker fee) + fallback на market
- exchange.py: _open() пробует postOnly limit (maker 0.02%),
  ждёт fill 10s, fallback на market (taker 0.055%)
- executor.py: PnL = maker_fee на вход + taker_fee на выход
- config: maker_fee: 0.0002, ETH оптимальные params из 365d OOS
  (rr=2.0, stop_mult=2.0, min_range=0.2, min_fvg=0.02)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:00:36 +10:00
anorandClaude Opus 4.6 650ab61168 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>
2026-03-13 18:46:28 +10:00
anorandClaude Opus 4.6 4c90345585 feat: live execution — replay approach для ORB+FVG+Engulfing
config.yaml + config.py: конфигурация с YAML + env var overrides
state.py: SQLite state (equity, sessions, positions, orders)
exchange.py: Bybit linear futures executor (dry-run + live)
executor.py: торговый цикл — fetch candles → run_day() → reconcile
cli.py: Click CLI (run, status, history, daemon с APScheduler 5m)
notify.py: Telegram alerts (entry, exit, OR)

Существующие backtest-скрипты не затронуты.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:56:45 +10:00