File Exchange

image thumbnail

Backtesting Trading Strategies in Just 8 Lines of Code

version 1.0 (21.2 KB) by

This demo will show how to perform a strategy backtesting in just 8 lines of code.



View License

Using the functionalities in MATLAB® and Financial Toolbox™, you can perform a strategy backtesting in just 8 lines of code. This includes:
• Data preparation
• Trading signal generation
• Calculation of portfolio returns, Sharp ratio, and maximum drawdown
• Equity curve plotting
In fact, there are a lot of things you can do in MATLAB. For example, you can:
• Use Datafeed Toolbox™ to download market data directly from various data providers
• Generate trading signal using Econometrics Toolbox™ or Statistics and Machine Learning Toolbox™
• Automatically execute your strategies by using Trading Toolbox™
The video can be found here

Comments and Ratings (2)

Shaojun Yang

Caxap Puc



Add video link in description

MATLAB Release
MATLAB 9.1 (R2016b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today