Delay start of B&H
Author: innertrader
Creation Date: 12/21/2011 6:17 PM
profile picture

innertrader

#1
In backtesting, is there a way to delay the Buy & Hold trading start date for the length of GetTradingLoopStartBar()? The goal is to have the B&H results cover the same time period the trading period of the strategy under test, i.e., [Data Range - GetTradingLoopStartBar()].
profile picture

Eugene

#2
This is used to be called "lead bars". Here's this question asked and answered on the forum a year ago:

Delaying Start of Buy & Hold
profile picture

innertrader

#3
This is exactly my question and issue. (Sorry I posted in the wrong forum initially). So there is no intention to implement this? Is there any other action you suggest I take?
profile picture

Eugene

#4
Right, there has been no intention.

The only suggestion so far is to follow the pointers in the FAQ - meaning the forum discussion (read Cone's replies) and the dedicated User Guide chapter.
profile picture

Cone

#5
Note that you can create a "Buy and Hold" strategy, i.e., BuyAtMarket(1); run it in a separate window that corresponds to the dates you need to evaluate.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).