EA is buying when candle hasn't formed yet help

John Brown  

***

how can i only buy @ the close not when the candle is still forming?

 trade.Buy(1.00,NULL,Ask,Ask-2.5 , Ask+3.5,"buying");


***

Reason: