what is unmatched data error ?? - page 2

 

last time i adding stochastic, rvi , ma into some internet free ea,

 so now i try to adding money management, and compounding into it.

but there is problem to rewrite it. 

 

because i had use chameleon ea crack version before this,

so i wish to use it's trading style, which is on the trend, keep adding compounding lotsize.

but i will exit on short timeflame. 

 

my planning is enter trade on ema crossing,

but exit on short timeflame depend on stochastic and rvi crossing.

using compounding lotsize, and money management. 

 

i had try chameleon ea crack version,

it's so perfect, earning above 300% daily.

 
RaptorUK:

If you really want to write code you need to learn . . . what is the point people helping if you aren't going to learn when you are helped ?

Where is the closing brace }   ?  what is he point of it being where it is ?

This was the question . . .  you still haven't answered . . .  never mind.
 
RaptorUK:
This was the question . . .  you still haven't answered . . .  never mind.


i am learning and i will learn to make ea.

is this the answer ? 

 
albert_lim83:


i am learning and i will learn to make ea.

is this the answer ? 

Of course it isn't . . .   I asked specifically about the brace  }   never mind,  I won't waste my time any longer.
 
RaptorUK:
Of course it isn't . . .   I asked specifically about the brace  }   never mind,  I won't waste my time any longer.


{ function call }
 
https://forum.mql4.com/36771#394395
 
albert_lim83:
https://forum.mql4.com/36771#394395

I think what raptor is trying to point out is you have your closing brace in the wrong place. Ive (attempted to) tidy up your code a bit. If you format it like i have you may find it a bit easier where to put in the closing braces.
int start()
{   
   double istochastic01 = iStochastic(NULL, PERIOD_H4, 5, 3, 3, MODE_EMA, 0, MODE_MAIN, 0);
   double istochastic02 = iStochastic(NULL, PERIOD_H4, 5, 3, 3, MODE_EMA, 0, MODE_SIGNAL, 1);
   double istochastic03 = iStochastic(NULL, PERIOD_H1, 5, 3, 3, MODE_EMA, 0, MODE_MAIN, 0);
   double istochastic04 = iStochastic(NULL, PERIOD_H1, 5, 3, 3, MODE_EMA, 0, MODE_SIGNAL, 1);
   double istochastic05 = iStochastic(NULL, PERIOD_M15, 5, 3, 3, MODE_EMA, 0, MODE_MAIN, 0);
   double istochastic06 = iStochastic(NULL, PERIOD_M15, 5, 3, 3, MODE_EMA, 0, MODE_SIGNAL, 1);
   double istochastic07 = iStochastic(NULL, PERIOD_M5, 5, 3, 3, MODE_EMA, 0, MODE_MAIN, 0);
   double istochastic08 = iStochastic(NULL, PERIOD_M5, 5, 3, 3, MODE_EMA, 0, MODE_SIGNAL, 1);
   
   double LotSize, StopLoss, TakeProfit; 
   string lsComm;
   
   LotSize = AccountEquity()*(EquityPercent / 10000);
   
   for (int i=5; i<OrdersTotal(); i++) 
   {
//----
      if (AccountFreeMargin() <  AccountBalance()*10/100)
      {
         return(0);
      }
      
      if ( (istochastic01 <= istochastic02) && 
         (istochastic03 <= istochastic04) && 
         (istochastic05 <= istochastic06) )
      {
         OrderSend(Symbol(),OP_SELL,LotSize,Bid,Slippage,StopLoss,TakeProfit,NULL,0,0); 
         return(0);
      }
         
      if ( (istochastic01 >= istochastic02) && 
         (istochastic03 >= istochastic04) && 
         (istochastic05 >= istochastic06) )
      {
         OrderSend(Symbol(),OP_BUY,LotSize,Ask,Slippage,StopLoss,TakeProfit,NULL,0,0); 
         return(0);
      }
         
      if ( istochastic07 <= istochastic08 )
      { // close sell trades
         OrderClose(TicketShortOrder,LotSize,(),Slippage,());
         return (0);
      }
         
      if ( istochastic07 >= istochastic08 )
      { // close long trades
         OrderClose(TicketLongOrder,LotSize,(),Slippage,());
         return(0);
      }
   }      
   return (0);
}
 
getting mad....
 

failed it did it...

the easiest ea   

Reason: