feat: stop_scale=0.5, отключение time_exit, safety stop на бирже

- config: stop_scale (множитель стоп-дистанции), time_exit (вкл/выкл),
  safety_stop_pct (защитный стоп на бирже от flash crash)
- executor: применение stop_scale, условный time_exit, размещение и
  отмена safety stop при открытии/закрытии live позиции
- spot: place_safety_stop() и cancel_order() для Bybit
- state: миграция safety_stop_order_id в positions

Бэктест exp16e: stop_scale=0.5 + no time_exit → Sharpe 4.15 (vs 2.45),
DD 5.0% (vs 8.4%), +$13.20/мес (vs $4.15) — все 7 активов прибыльные.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-10 02:15:55 +10:00
co-authored by Claude Opus 4.6
parent 59496ac316
commit acdcdba9d0
5 changed files with 87 additions and 8 deletions
+4 -1
View File
@@ -12,6 +12,9 @@ risk:
max_position_pct: 0.40 # max 40% of equity (min $5 Bybit limit)
max_open_positions: 7 # 7 assets, one position per asset
leverage: 2 # 2x spot margin (exp12: DD ~14%, Sharpe stable)
stop_scale: 0.5 # exp16e: tighter stop = faster exit + cooldown (Sharpe 4.15)
time_exit: false # exp16e: no forced close, hold until stop (Sharpe +70%)
safety_stop_pct: 0.10 # 10% hard stop on exchange (flash crash protection)
assets:
- ticker: ETH-USD
@@ -82,7 +85,7 @@ exchange:
web:
host: 0.0.0.0
port: 8080
port: 8090
telegram:
enabled: false