Download MetaTrader 5

Expert advisor doesn't open any trades in strategy testing

To add comments, please log in or register
Ibrahim Melssen
49
Ibrahim Melssen 2014.06.04 09:41 

Dear fellow traders,

I am pretty new to MQL5. Therefor I studied this article and expert advisor for beginners: https://www.mql5.com/en/articles/35

It has a really nice expert advisor and I would like to adjust/work with it in the future. Then I installed the expert advisor into my strategy tester to see it perform but nothing happens..? I am really confused..

does anybody has a clue why it won't execute any trades?  Thanks in advanced!

Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator
Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator
  • 2010.04.07
  • Denis Zyatkevich
  • www.mql5.com
MetaQuotes Programming Language 5 (MQL5), included in MetaTrader 5 Client Terminal, has many new possibilities and higher performance, compared to MQL4. This article will help you to get acquainted with this new programming language. The simple examples of how to write an Expert Advisor and Custom Indicator are presented in this article. We will also consider some details of MQL5 language, that are necessary to understand these examples.
Alain Verleyen
Moderator
31138
Alain Verleyen 2014.06.04 12:31  
DutchFX:

Dear fellow traders,

I am pretty new to MQL5. Therefor I studied this article and expert advisor for beginners: https://www.mql5.com/en/articles/35

It has a really nice expert advisor and I would like to adjust/work with it in the future. Then I installed the expert advisor into my strategy tester to see it perform but nothing happens..? I am really confused..

does anybody has a clue why it won't execute any trades?  Thanks in advanced!

Did you get any message in the Journal tab ?

Which settings are you using for the Strategy Tester ?

Ibrahim Melssen
49
Ibrahim Melssen 2014.06.04 13:45  
angevoyageur:

Did you get any message in the Journal tab ?

Which settings are you using for the Strategy Tester ?

When I look at my journal it says: tester agent authorization error

 

Does that mean that I am not allowed to use this expert advisor..? 

Marco vd Heijden
Moderator
4733
Marco vd Heijden 2014.06.04 16:36  
DutchFX:

When I look at my journal it says: tester agent authorization error

 

Does that mean that I am not allowed to use this expert advisor..? 

Did you try to download the code below the article and compile it as is?

I see the expert calls for a custom indicator.

Did you also make sure to compile the called hCI indicator ?


Marcelo Coutinho
1158
Marcelo Coutinho 2014.06.04 20:07  

DutchFX

Any printscreen and/or code will help us to help you.

The way this is going, it will take too much time to help you.

Regards 

hhchenfx
931
hhchenfx 2014.06.09 23:32  
DutchFX:

Dear fellow traders,

I am pretty new to MQL5. Therefor I studied this article and expert advisor for beginners: https://www.mql5.com/en/articles/35

It has a really nice expert advisor and I would like to adjust/work with it in the future. Then I installed the expert advisor into my strategy tester to see it perform but nothing happens..? I am really confused..

does anybody has a clue why it won't execute any trades?  Thanks in advanced!

Hi,

There could be many reason, I guess. However my situation is similar and the problem with my code is "for(i=1;i<=limit;i++)"

the EQUAL sign on my indicator is incorrect.

Just my 2 cents.

SCFX 

Ibrahim Melssen
49
Ibrahim Melssen 2014.06.11 10:15  

Thanks for all your replys!

I made a stupid mistake. I didn't downloaded the indicator because I thought I only need the expert advisor! Once I downloaded the indicator and compiled the expert advisor works great! 

To add comments, please log in or register