Hi Guys

what I would like to do is use a 3 day pivot point as a BIAS line (close above for long & below for short) with 4 hour bars. I know the problem I have is simple, but I can't see it. I hope someone can point out the error of my ways.

Thanks, Peter

Code:
// 4 hour (240 minute) bars used in this strategy 
BarPeriod = 240;
TimeFrame = 1;

// define bar open,high,low,close
vars H = series(priceHigh()),
	L = series(priceLow()),
	O = series(priceOpen()),
	C = series(priceClose());

// = MTF Pivot Point
// timeframe 6 * barperiod 240 = 1 day bar
TimeFrame = 6
// define HH & LL for MTF Pivot Point
vars HH = series(priceHigh());
vars LL = series(priceLow());
// define BIAS calculation
vars BIAS = series((HH()+LL()+C())/3);
// back to 4 hour time frames
TimeFrame = 1;	

// describe MB calculation
// = midpoint of bar()
vars MB = series((H()-L())/2);
// if C() > MB[] // then close above midpoint
// if C() < MB[] // then close below midpoint