We detail how to trade fractional shares in backtesting.py. This is useful for assets like Bitcoin with a high unit price, and to ensure that our backtests are accurate.
⭐ Code:
github.com/ChadThackray/fractional-backtesting-py-…
Backtesting.py Free Course:
• Backtesting.py - Full course in python
Timestamps:
00:00 - Intro
00:55 - The problems with only trading full shares
03:24 - Adjusting our data to trade fractions
07:38 - Adjusting trade data by our scale factor
コメント