can someone help me on this matter?

 


Pls am having problem with the attache Ea. I want it to be placing other at the end of the closing candle ( i.e on the formation of a new candle not on the present candle) Actually forum has help me but what i was told to do i did it but it does place order.Kindly help me if there is any mistake in the code . thanks


            
Files:
forum_1.mq4  6 kb
 

Not 100% sure what you're saying is the problem but there are some typos in the EA, try this to replace part of it

int start()
{


if(bartime!=Time[0])
      
     {
      bartick++;
      TradeAllowed=true;
     }

if(Bar()==false) return (0);   
           
     Pattern();
     Manager();
     easy();

return(0);
}
      
           

bool Bar()
{ 
  if (LastTradeBarTime == Time[0]) return(false); // Not <first detected tick> on this bar so quit

  else 
    {
     LastTradeBarTime = Time[0]; // and continue
     New_Bar=true;
     return (true);
    }

}


Good Luck
-BB-

Reason: