New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a column for outstanding balance #3020
Comments
You should look at But let me ask- what for / why would you need this? |
you can't do it with the sum, you have to match the close price at each candle for every non closed trade
It is probably in the same vein as |
Having a column that shows the outstanding balance on each candle can be useful. What is the outstanding balance? The sum of the virtual profits of all open trades on each candle, this is a very slow version:
I am trying to come up with a vectorized one, also not sure how much would this calculation impact performance if it was applied on the main backtest loop
The text was updated successfully, but these errors were encountered: