Discussion of article "MQL5 Cookbook: Multi-Currency Expert Advisor - Simple, Neat and Quick Approach" - page 2

 
theo.suryadi:

Dear Author,


Unfortunately the Author of the EA did not create this thread,  he may not even know that it exists, you should PM him instead.
 
paladin800:

In the symbol loop, you must subtract 1 from SymbolsTotal() (as below). If SymbolsTotal() returns for example 100, then we should compare from 0 to 99.

No. If you do as you suggest, the last character will not be checked, so you should leave it as it is.
 
tol64:
No. If you do as you suggest, the last character will not be checked, so you should leave it as it is.
I deleted my previous post because I found out later that it was the correct comparison < and not <=.
 

The article is neat and easy to follow, and providing the settings in the .set files. I did have an issue with the symbol execution modes, specifically the condition checking whether it was instant or market, and only after that letting orders be opened, which I had to remove, but everything worked fine .

I do have a question. I have seen many different advanced approaches, such as this one, which are built from the ground neglecting the Expert, ExpertSignal, ExpertTrade…. structure provided, even though they spend a lot of code (and time, I suppose) replicating some of its features. Could anybody justify this to me, please?

Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Symbol Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Symbol Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Environment State / Symbol Properties - Documentation on MQL5
 
jlwarrior:

The article is neat and easy to follow, and providing the settings in the .set files. I did have an issue with the symbol execution modes, specifically the condition checking whether it was instant or market, and only after that letting orders be opened, which I had to remove, but everything worked fine .

I do have a question. I have seen many different advanced approaches, such as this one, which are built from the ground neglecting the Expert, ExpertSignal, ExpertTrade…. structure provided, even though they spend a lot of code (and time, I suppose) replicating some of its features. Could anybody justify this to me, please?

Some people like programming, and not only use what already exist. ;-)
 

The author's series, 'CookBook' is most helpful, especially as he starts with simpler concepts and gradually adds more and more to the experts. I spend a lot of time working with these and  although progress has been slow, I am definitely getting some grasp as to how to use MT5 to advantage.


daveM

 
"The functions for array initialisation are located in the InitArrays.mqh plug-in file." I think there is an error here and the file is called "InitialiseArrays.mqh".
 
Why does this Expert Advisor not work on Alpari? It does not open trades. Where could the problem be?
 
Also the TestIndicatorConditions Expert Advisor does not work on Alpari.
 
Found the answer, should be added: symb.execution_mode==SYMBOL_TRADE_EXECUTION_EXCHANGE