I have a question on backtesting. The strategy I currently want to test exits upon hitting a profit target. In addition, as is often the case, there is a stop loss exit.
My question is how do you go about doing a backtest of something like that? The problem I have is that if I use daily bars, I could easily have a situation where both the PT and the SL are hit, within the same bar. How do I figure out which one gets hit first?
The only solution I can think of is to use shorter bars, like hourly.
I assume that is the standard way to proceed, or is there some obvious alternative that I'm missing here?
|
Someone sent me the above question, I thought I should post the answer here for the benefit of all.
MultiCharts has a feature called "
Bar-Magnifier".
TradeStation calls it
Look-Inside-Bar-Backtesting (LIBB).
MultiCharts/TradeStation lets you add
a second data stream for backtesting.
For example if your strategy is to work on a daily chart. You can add a finer resolution 2nd data stream (eg 5min) to the backtesting, thus allowing the program to calculate your strategy rules and fill orders at intrabar prices, as if in real life trading.
