Walk Forward Optimization in Python with Backtesting.py

Published: 30 September 2022
on channel: Chad Thackray
16,404
378

We use backtesting.py to do walk-forward Analysis / Optimization in Python. This allows us to test our trading strategies more rigorously to ensure that we're not over-fitting.

⭐ Code:
https://github.com/ChadThackray/WFO-b...

⏰ Timestamps:

00:00 - Introduction
03:47 - Data Sourcing / importing
05:50 - Writing our Momentum strategy
20:10 - Walk forward Function
36:00 - Plotting our out of sample backtests
44:55 - Plotting combined equity curve
56:57 - Plotting sample and validation data ranges


On this page of the site you can watch the video online Walk Forward Optimization in Python with Backtesting.py with a duration of hours minute second in good quality, which was uploaded by the user Chad Thackray 30 September 2022, share the link with friends and acquaintances, this video has already been watched 16,404 times on youtube and it was liked by 378 viewers. Enjoy your viewing!