fix: maker+taker fee во всех backtest скриптах и test_live
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ def test_run_cycle_simulation():
|
||||
gross = pos_size * (t.exit_price - t.entry)
|
||||
else:
|
||||
gross = pos_size * (t.entry - t.exit_price)
|
||||
commission = pos_value * cfg.risk.taker_fee * 2
|
||||
commission = pos_value * (cfg.risk.maker_fee + cfg.risk.taker_fee)
|
||||
pnl = gross - commission
|
||||
print(f" [{now_ny.strftime('%H:%M')}] EXIT {t.direction.upper()} "
|
||||
f"@ ${t.exit_price:,.2f} ({t.result}) PnL ${pnl:+,.2f} [flash]")
|
||||
|
||||
Reference in New Issue
Block a user