The files are designed for walk-forward analysis of pair trading strategy using Bollinger Band as entry and exit rules. In this example, you will see 5 pair of stocks tested over the period of 3 years. Performance analytic part includes profit/loss, Sharpe ratio, and maximum drawdown. I really hope that you will find this file as a starting point for backtesting your investment ideas. Definitely, you need to customize the file if you would like to add new rules, trading strategies, or market data. I would also recommend to watch the webinar on this topic.
MathWorks Quant Team (2024). Walk-Forward Analysis (WFA) - Files for WFA webinar (https://www.mathworks.com/matlabcentral/fileexchange/58316-walk-forward-analysis-wfa-files-for-wfa-webinar), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Download Daily Data from Google and Yahoo! Finance
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!