44fb840731e4e0ef840babab8f1023c078be95d5
The bug was that running_balance was set to trade['amount'] which is the amount SPENT on a buy (not remaining balance), causing inflated portfolio values and incorrect max drawdown calculation. Now properly tracks: - After BUY: balance decreases by amount spent - After SELL: balance increases by amount received
Description
Research and documentation repository
Languages
Python
63%
Svelte
30.2%
TypeScript
6.2%
Shell
0.3%
JavaScript
0.2%