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>
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
mode: paper # paper | live
|
||||
capital: 1000.0
|
||||
symbol: "BTC/USDT:USDT"
|
||||
timeframe: "5m"
|
||||
|
||||
strategy:
|
||||
rr_ratio: 2.5
|
||||
max_trades: 2
|
||||
fvg_expiry: 12
|
||||
or_minutes: 15
|
||||
session_end_h: 11
|
||||
|
||||
risk:
|
||||
per_trade: 0.02
|
||||
leverage: 10
|
||||
taker_fee: 0.00055
|
||||
|
||||
exchange:
|
||||
api_key: "" # env: SCALP_API_KEY
|
||||
api_secret: "" # env: SCALP_API_SECRET
|
||||
|
||||
telegram:
|
||||
enabled: false
|
||||
bot_token: "" # env: SCALP_TG_TOKEN
|
||||
chat_id: ""
|
||||
Reference in New Issue
Block a user