[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: backtesting multiple data streams?



PureBytes Links

Trading Reference Links

On Thu, 09 May 2002, Bob Fulks wrote:

> At 8:02 AM -0500 5/9/02, Mike Eggleston wrote:
> 
> >We just had a talk about this. Try this setup and see if it
> >is simple to understand and illustrate what I'm asking. For
> >simplicity sake start with a 1 min bar. Then add the same
> >symbol again as a 30 min bar and a 90 min bar. Next a strategy
> >that is plotted in the 1 min chart that also looks at the 30
> >min and 90 min data. As the chart is plotting data I know it
> >will see the 1 min data and the strategy will fire on the 1
> >min close of bar (right?).
> 
> Right
> 
> >Now, in the strategy looking at the
> >other data streams, will the strategy see the previous close
> >of the 90 min bar or will the strategy see the current close
> >price within the 90 min stream?
> 
> It will see the value of the the last bar of that data stream.
> 
> >Since the close of all bars, regardless of their time frame, is
> >the current close, then does the strategy see the current close
> >or does the strategy only see the previously plotted close?
> 
> It doesn't know the data series have the same symbol so if you refer
> to the High of data2, it will use the High of the last data2 bar.
> 
> One suggestion. For this kind of question, it would take you less
> time to just try it and see what happens than it takes you to type
> the question and send it to the list. When in doubt - try it and see
> what happens...
> 
> Bob Fulks
> 

I agree that creating a short something to test it is the easiest.
That is why I yesterday created this to test it:

vars: p1(0), p5(0), p10(0), p15(0), star("");
p1 = close of data1;
p5 = close of data2;
p10 = close of data3;
p15 = close of data4;
star = " ";
if p1 <> p15 then star = "*";
print(star, " p1=", p1, " p5=", p5, " p10=", p10, " p15=", p15);

Plot the same symbol four times in the same chart with different times
and see what it says. Mine shows that the price does not change on
the time boundaries. If the indicator only sees the value of the previous,
non-closed bar, then the values printed should change ever N minutes.

I'm interested in what others see.

Mike