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

 

my ea have no errors and can trade on live but it is not working on strategy tester why

any one experienced can fix it please?

Files:
Capture1.JPG  59 kb
 
zainone:

my ea have no errors and can trade on live but it is not working on strategy tester why

any one experienced can fix it please?

Is the pause button pressed?

 
Your image says “stop button pressed.”
 
William Roeder #:
Your image says “stop button pressed.”
yes i pressed it because ea will stay running without doing anything at all
 
Keith Watford #:

Is the pause button pressed?


yes i pressed it because ea will stay running without doing anything 

 
Keith Watford #:

Is the pause button pressed?

zainone #:

yes i pressed it because ea will stay running without doing anything 

Don't press it!

Wait for the test to complete.

 
Keith Watford #:

Don't press it!

Wait for the test to complete.

Actually, I probably should have said unpress it!

If the button is showing >> then press it so that it shows ||

Your image shows that only 1 tick was processed, so that means that you had the pause button pressed when you started the test .

 
zainone #:

yes i pressed it because ea will stay running without doing anything 

Do you know how to use tester? I mean… did you use it on other EA and it worked? 

If you do… what method did you use? Open/Close tick … or what… Also… post here your trade filters … when it should open buy/sell trades your EA…. It is the same you sent me on private? Please don’t do that anymore… post it here… if it is the same… is hard to get it work on tester… unless you put it on tick modeling… I am not sure…. Example : buy order should open when Ask<= Bid-InpStep*_Point… correct? Not sure you can get that on tester… if you post your filters here coding gods will help… 
 
Keith Watford #:

Actually, I probably should have said unpress it!

If the button is showing >> then press it so that it shows ||

Your image shows that only 1 tick was processed, so that means that you had the pause button pressed when you started the test .

i use mt4 so i pressed start and waited 30 minutes and nothing happend ea did nothing , 

i didnt press pause or anything 

should i wait more for it to show me error?

 
zainone #:

i use mt4 so i pressed start and waited 30 minutes and nothing happend ea did nothing , 

i didnt press pause or anything 

should i wait more for it to show me error?

Read my post carefully. Did you check?

 
 zainone #:here is EA please fix it to do backtest
void OnTick()
{
  while(true)
  {
    ⋮
    Sleep(25);
  }
}
  1. You fix it or hire someone.
              No free help (2017)

  2. Nothing will happen in the tester until you return from OnTick. Fix your infinite loop.

  3. Perhaps you should read the manual. Sleep doesn't work in the tester.
       How To Ask Questions The Smart Way. (2004)
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.