fix: exit_price=last_price в executor, time_exit=ON, exp20 результаты

1. executor.py:266 — exit_price=last_price вместо stop_price (реальная
   биржа исполняет по рыночной цене, не по уровню стопа)
2. config.yaml — time_exit=true (exp20: Sharpe 1.10, DD 15.7% vs 0.98/20.2%)
3. exp19 — исправлен пропущенный stop_scale=0.5
4. exp20 — новый эксперимент: повторный тест отклонённых идей с 50% slippage

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-10 22:24:56 +10:00
co-authored by Claude Opus 4.6
parent efce719282
commit aaa9dd6ecb
14 changed files with 73755 additions and 3 deletions
+2 -1
View File
@@ -426,7 +426,8 @@ def main():
k_adj, stop_mult = risk.regime_adaptive_params(prices, price_idx, asset_k)
atr = risk.compute_atr(prices, price_idx)
stop_dist = max(atr * stop_mult, current_price * 0.005)
# stop_scale=0.5 matches production (was missing before exp20 found it)
stop_dist = max(atr * stop_mult * 0.5, current_price * 0.005)
# Lock margin (only margin_needed from free_usdc, haircut+IM tracked separately)
free_usdc -= req["margin_needed"]