shokollm 6a5694f74b fix: properly value open positions using last kline price for max_drawdown calculation
- Track last_kline_price during kline processing
- Use last_kline_price instead of entry price for open position valuation
- Add final marked-to-market value to portfolio_values for max_drawdown calculation
- This fixes the issue where max_drawdown exceeded stop_loss percentage
2026-04-11 13:54:16 +00:00
Description
Research and documentation repository
1.6 MiB
Languages
Python 63%
Svelte 30.2%
TypeScript 6.2%
Shell 0.3%
JavaScript 0.2%