Back

How to add a buy and hold benchmark

Hi, I have a timeseries signal on a particular security. It is one signal per security using OHLCV data. I'd like to basically get a feel of how the strategy compares against just going long the security? Is it possible to put 2 signals on the same graph in which case I can have my signal under test and a simple buy and hold signal and I can see how they compare? Is there another mechanism for doing this?

Update Backtest








Yes please read the Custom Data section in the documentation. There are  10+ examples in the open source of this specific case. 

https://www.quantconnect.com/docs#Importing-Custom-Data
0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi Jared, thanks - I'll review it. I have custom OHLCV data in the form of large csv files (>100MB). My solution to importing custom data was to export it to a format already understood by Lean/QuantConnect. 

0

For data of that size would recommend breaking it into day-week timeframes and import it in pieces (custom data is build for that style)

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed