There are two different techniques for measuring your strategy performance; relative and absolute performance. Before you design your strategy its important to define your metrics for success. As you iterate through strategy ideas this will help you know where you need to improve.
An absolute return strategy aims to make a consistent steady return independent of market conditions. It might rely on assets which are not affected by the market volatility such as bonds. Strategies which trade long and short are easier to be designed for an absolute return.
The alternative method is to compare or “benchmark” your strategy a market index. The precise index or market representation you choose can vary but often funds choose the S&P500. With a relative return strategy reducing holdings to cash is a net gain relative to a downward market.
We’ve integrated this directly into the QuantConnect results panel so you can load a custom benchmark into your charts, to know how your strategy is performing relative to the major indices. To access it, click on the “Select Benchmark” menu in the Chart Options on the right hand side:
To demonstrate the benchmarking functionality we’ve written the next video in the QuantConnect University series – Sell in May and Go Away. It is a demonstration for how to code up the sell in may strategy, and then we benchmark it to the S&P500 over the same period.[js] document.write(“[div class=\”qc-embed-frame\” style=\”display: inline-block; position: relative; width: 100%; min-height: 100px; min-width: 300px;\”][div class=\”qc-embed-dummy\” style=\”padding-top: 56.25%;\”][/div][div class=\”qc-embed-element\” style=\”position: absolute; top: 0; bottom: 0; left: 0; right: 0;\”] [/div][/div]”);
[/js] [youtube http://www.youtube.com/watch?v=25Wi3XgslBs?html5=0&controls=1&color=white&theme=light&modestbranding=1&showinfo=0&rel=0&suggestedQuality=hd1080&enablejsapi=1&origin=https%3A%2F%2Fwww.quantconnect.com]
With this particular implementation we achieved the same returns with lower volatility, resulting in and overall better than investment strategy.This post originally appeared on the QuantConnect Blog. QuantConnect is a free online back-testing solution, seeking to democratize finance and make algorithmic trading accessibly to all investors.