Unmatched Data Error!

 

Hey guys,

I was testing out my first EA and it seems that i cant get any results due to this error: TestGenerator: unmatched data error (volume limit 65403 at 2008.11.20 00:00 exceeded) 

I tried everything to fix the error but i guess my lack of experience wont let me figure out whats going on.

Here is my code:

//+------------------------------------------------------------------+
//|                                         ProZillaZ Machine #3.mq4 |
//|                                                    Hessan Adnani |
//|                                       http://www.nilegraphic.com |
//+------------------------------------------------------------------+
#property copyright "Hessan Adnani"
#property link      "http://www.nilegraphic.com"

//--- input parameters
extern double    TakeProfit=120.0;
extern double    Lots=1.0;
extern double    StopLoss=120.0;

//--- Stochastic Options
extern double    KPeriod=5;
extern double    DPeriod=3;
extern double    Slowing=3;

//--- RSI Options
extern double    RSI_Period=3;


int start() {

   double RSI_00 = iRSI(NULL,0,RSI_Period,0,0);
   double Stoch_Main_00 = iStochastic(NULL,0,KPeriod,DPeriod,Slowing,MODE_SMA,0,MODE_MAIN,0);
   double Stoch_Signal_00 = iStochastic(NULL,0,KPeriod,DPeriod,Slowing,MODE_SMA,0,MODE_SIGNAL,0);
   double SMA_00 = iMA(NULL,0,150,0,MODE_SMA,0,0);
   
   int ticket;
   
   Print("Close: ",Close[0]);
   
   if (Close[0] > SMA_00) {
   
      if (RSI_00 < 20) {
      
         if (Stoch_Main_00 < 30) {
         
            if (Stoch_Main_00 == Stoch_Signal_00) {
         
               ticket = OrderSend(Symbol(),OP_BUY,1,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point,"My order #2",16384,0,Green);
            }
         }
      }
   }
   
   if (Close[0] < SMA_00) {
   
      if (RSI_00 > 80) {
      
         if (Stoch_Main_00 > 70) {
         
            if (Stoch_Main_00 == Stoch_Signal_00) {
            
               ticket = OrderSend(Symbol(),OP_SELL,1,Bid,3,Bid+StopLoss*Point,Bid-TakeProfit*Point,"My order",16384,0,Red);
            }
         }
      }
   }
   
   return(0);
}
//+------------------------------------------------------------------+

Please help me out identifying the error.

 

Thanks! 

 
ProZillaZ: I tried everything to fix the error but i guess my lack of experience wont let me figure out whats going on.
  1. If you had use this and you would have found that it has nothing to do with your code.
  2. Not adjusting for 4/5 digit brokers or ECN brokers
  3. What are Function return values ? How do I use them ? - MQL4 forum
 

It is a data error  

you do backtesting with data

everybar (a period of time)   has data        volume high low open close and time data

if it is not matching with the data of bars lower timeframe same period you will

get backtesting  unmatched data error 

 

About your EA  

if (Stoch_Main_00 == Stoch_Signal_00)  is not happening with every crossing

 read   Can price != price ? 

Reason: