Real author:
This Expert Advisor is based on the idea, presented in the article Creating an Expert Advisor, which Trades on a Number of Instruments.
It trades on the EURUSD and GBPUSD daily bars. It buys when MA is upwards, and sells when MA downwards.
It uses a special function for money management. The testing period was the Last year.
Input parameters:


It isn't recommeded to use it in a real trade.
Translated from Russian by MetaQuotes Software Corp.
Original code: http://www.mql5.com/ru/code/158
request.volume = Money_M();
This EA is a great example of organized code and has great comments. I did have one question however pertaining to your lot size function called Money_M(). What and where is the decision tree behind this?
I tried to search the support site but could find no reference and it did not appear to be linked to an associated class.
request.volume = Money_M();
This EA is a great example of organized code and has great comments. I did have one question however pertaining to your lot size function called Money_M(). What and where is the decision tree behind this?
I tried to search the support site but could find no reference and it did not appear to be linked to an associated class.
This function is used to calculate the size of trading lots.
In this string the calculated size of trade lots. The calculation is carried out on free money (ACCOUNT_FREEMARGIN). Risk = 10% of available free funds.
In this line is executed the normalization of the trade lots. 0.1 <= Lot <= 5.0Hi, I'm french and my english is bad sorry^^.
If it does not place any trade or you have an error : [invalid request] , you must add : " request.type_time = ORDER_TIME_GTC; " in the intialization of the MqlTradeRequest structure for every order.
I have trouble when attach this EA. In Expert tab appear this message :
2012.07.09 11:31:16 exp_tema cannot load indicator 'Triple Exponential Moving Average' [4302]
What wrong? Thank you