EA Testing Problems.

 

Hi Guys

I'm having a bit of a problem with testing my EAs. I can run tests on the four advisor's that  come with MT5, but when I use the wizard to make my own or use a downloaded EA, from MQL5 codebase, the strategy tester wont place any trades.

Has anyone else had this problem. What should I do to  fix this?

 
craigearl:

Hi Guys

I'm having a bit of a problem with testing my EAs. I can run tests on the four advisor's that  come with MT5, but when I use the wizard to make my own or use a downloaded EA, from MQL5 codebase, the strategy tester wont place any trades.

Has anyone else had this problem. What should I do to  fix this?

Learn ?
 

 I have the same problem with craigearl. The strategy tester of MT5 dont place any trades.

Could you please explain more about this problem?thanks alot!

Here's my code: 

Files:
Newbee1.mq5  3 kb
 
troimuaratto:

 I have the same problem with craigearl. The strategy tester of MT5 dont place any trades.

Could you please explain more about this problem?thanks alot!

Here's my code: 

void OnTester()

Why are you using OnTester() ? You have to use OnTick() instead.

You also have to take care of the compiler warnings.

Please read the documentation.

 

thanks for answer,

i changed OnTester to OnTick, but there's another error:

2016.03.14 09:33:27.901 2016.03.01 00:01:24   failed market buy 0.11 GBPUSD [Unsupported filling mode]


 
troimuaratto:

thanks for answer,

i changed OnTester to OnTick, but there's another error:

2016.03.14 09:33:27.901 2016.03.01 00:01:24   failed market buy 0.11 GBPUSD [Unsupported filling mode]


Maybe look at other ea's from code base for examples.
 
Thank you!