How can I calculate a daily indicator in a intra day script.

I tried this:

Code:
BarPeriod = 60;
TimeFrame = frameSync(24); 
ATR = ATR(10) ;
TimeFrame =  frameSync(1);
// more hourly stuff



and get the error: Error 041: Inconsistent series!

Any help apriciated.
dr_panther