Serhii Kushchenko

Results 13 comments of Serhii Kushchenko

You may want to take a look at [https://github.com/s-kust/python-backtesting-template/](https://github.com/s-kust/python-backtesting-template/) > the system handles many other special situations. For details, see the utils/strategy_exec/special_situations.py file. You are encouraged to modify the list...

This repository - [https://github.com/s-kust/python-backtesting-template](https://github.com/s-kust/python-backtesting-template) - may serve you as a good boilerplate. See the main `Strategy` class with `next` function here - [https://github.com/s-kust/python-backtesting-template/blob/main/strategy/run_backtest_for_ticker.py](https://github.com/s-kust/python-backtesting-template/blob/main/strategy/run_backtest_for_ticker.py)

I have recently published a solution based on a `backtesting` package, which along with `stats` and `stats._trades` also provides a `last_day_result` dictionary containing data for the last day. This dictionary...