why does this code give me a million errors when i try to run it

 
double close240 = iClose(NULL, PERIOD_H4,2);
double High240 = iHigh(NULL, PERIOD_H4,1);
double PreviousHigh240 = iHigh(NULL, PERIOD_H4,2);
double Low240 = iLow(NULL, PERIOD_H4,1);
double PreviousLow240 = iHigh(NULL, PERIOD_H4,2);
double LowerBand240 = iBands(NULL,PERIOD_H4,20,2,0,PRICE_LOW,MODE_LOWER,2);
double UpperBand240 = iBands(NULL,PERIOD_H4,20,2,0,PRICE_LOW,MODE_UPPER,2);
//double RSI240 = iRSI(NULL, PERIOD_H4, 7, PRICE_CLOSE,2);
 
 
if (close240<=LowerBand240 && High240<=PreviousHigh240 && Low240>=PreviousLow240) {EnterLong = true;}
else if (close240>UpperBand240 && High240<=PreviousHigh240 && Low240>=PreviousLow240) {EnterShort = true;}
 
 
 
2007.11.14 16:20:23    Inside Bar inputs: Lots=1; ProfitTarget=50; Slippage=2; PeriodsRSI=7; 
2007.11.14 16:20:18    TestGenerator: unmatched data error (high value 2.0230 at 2007.09.07 02:02 and price 2.0230 mismatched)
11.14 16:20:18    TestGenerator: unmatched data error (low value 2.0226 at 2007.09.06 20:56 and price 2.0225 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (low value 2.0226 at 2007.09.06 20:55 and price 2.0222 mismatched)
.11.14 16:20:18    TestGenerator: unmatched data error (low value 2.0226 at 2007.09.06 20:01 and price 2.0223 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (volume limit 1472 at 2007.09.06 16:00 exceeded)
2007.11.14 16:20:18    TestGenerator: unmatched data error (volume limit 1472 at 2007.09.06 16:00 exceeded)
2007.11.14 16:20:18    TestGenerator: unmatched data error (high value 2.0256 at 2007.09.06 17:30 and price 2.0263 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (low value 2.0215 at 2007.09.06 17:01 and price 2.0212 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (low value 2.0140 at 2007.09.06 14:56 and price 2.0140 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (high value 2.0262 at 2007.09.06 11:12 and price 2.0262 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (low value 2.0187 at 2007.09.06 07:51 and price 2.0186 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (high value 2.0208 at 2007.09.05 22:09 and price 2.0208 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (high value 2.0208 at 2007.09.05 20:00 and price 2.0221 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (volume limit 1528 at 2007.09.05 16:00 exceeded)
2007.11.14 16:20:18    TestGenerator: unmatched data error (volume limit 1528 at 2007.09.05 16:00 exceeded)
2007.11.14 16:20:18    TestGenerator: unmatched data error (low value 2.0200 at 2007.09.05 17:22 and price 2.0200 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (low value 2.0200 at 2007.09.05 17:19 and price 2.0197 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (low value 2.0200 at 2007.09.05 17:18 and price 2.0196 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (high value 1.9883 at 2007.08.21 00:37 and price 1.9902 mismatched)
2007.11.14 16:20:18    TestGenerator: unmatched data error (high value 1.9883 at 2007.08.21 00:08 and price 1.9884 mismatched)
 
and thats alli get whenever i try to run the strategy tester on it is errors
 
Synchronize your data! You use data of different timeframes from different sources. EA has nothing to do with it. These are TestGenerator errors not expert errors.
 
stringo:
Synchronize your data! You use data of different timeframes from different sources. EA has nothing to do with it. These are TestGenerator errors not expert errors.

So, will the code work in real time testing? Or is their any way to just use the data as it is in that timeframe and create entry order?