Download MetaTrader 5

EA Testing Problems.

To add comments, please log in or register
All Code Base apps are available from MetaTrader 5. You can publish your own one!
craigearl
1692
craigearl 2016.03.11 07:19 

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?

Alain Verleyen
Moderator
30739
Alain Verleyen 2016.03.11 18:00  
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 ?
troimuaratto
8
troimuaratto 2016.03.13 07:09  

 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
Alain Verleyen
Moderator
30739
Alain Verleyen 2016.03.13 16:31  
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.

troimuaratto
8
troimuaratto 2016.03.14 03:41  

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]


Marco vd Heijden
Moderator
4704
Marco vd Heijden 2016.03.14 11:22  
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.
troimuaratto
8
troimuaratto 2016.03.16 12:22  
Thank you!
To add comments, please log in or register