Serhii Kushchenko

Results 13 comments of Serhii Kushchenko

Dear author, the information about accessing individual trades and orders is very useful and even essential. Would you please make it easier to find? I mean, add this information into...

I'd like to be able to pass some label aka custom column with trades ``` stats = backtest.run() stats._trades.tail(20) ``` This works, but custom info is needed also. For example,...

How about making all the tests work? Or remove outdated tests.

You may want to take a look at [https://github.com/s-kust/python-backtesting-template/](https://github.com/s-kust/python-backtesting-template/) > You can easily run backtests of your strategy for several (or several dozen) tickers simultaneously. The results of these backtests...

@cdm-analytics how about also using `with` instead of `instance_file.close()` - ?

> it has to be an integer if it is to be greater than 1 It will mean the number of stocks, not the proportion of your equity

You may want to take a look at [https://github.com/s-kust/python-backtesting-template/](https://github.com/s-kust/python-backtesting-template/) > You can easily run backtests of your strategy for several (or several dozen) tickers simultaneously. The results of these backtests...

> are there ways around it? Not yet

This repo - [https://github.com/s-kust/python-backtesting-template](https://github.com/s-kust/python-backtesting-template) - may be helpful. See `Optimization of Strategy Parameters` in `readme.md` and `optimize_params.py` script. This solution is more flexible than the original `bt.optimize` and also provides...

Strategy has a list of closed trades. Try something like this: ``` if self.closed_trades[-1].pl > 0: self._broker._cash += self._broker._cash * 0.25 ```