ea have no errors trade on live but can not backtest on strategy tester help - page 2

 
zainone #: here is EA please fix it to do backtest

We are not going to fix it for you! We will only help guide you to resolve the problem on your own. If you want someone to do it for you, then go to the Freelance section.

What I can say is that your EA has an "endless" loop in it, so it will never return form the OnTick event handler and never receive the following tick. That is why it does nothing in the tester. You should return from the event as soon as possible to continue receiving ticks.

void OnTick()
{
  while(true)
  {
    TryClose();
    CalcLot();
    TryTrade();    

    pAsk=MarketInfo(Symbol(),MODE_ASK);
    pBid=MarketInfo(Symbol(),MODE_BID);
    Sleep(25);
  }
}
EDIT: Seems I posted while William was already doing the same.
 
Fernando Carreiro #:

We are not going to fix it for you! We will only help guide you to resolve the problem on your own. If you want someone to do it for you, then go to the Freelance section.

What I can say is that your EA has an "endless" loop in it, so it will never return form the OnTick event handler and never receive the following tick. That is why it does nothing in the tester. You should return from the event as soon as possible to continue receiving ticks.

EDIT: Seems I posted while William was already doing the same.

i can not pay with mql5 payment methods , payments methods not supported in my country