cape1354:
I heard that "multi-currency baektest" are not allowed at mt4. I'm not trying to deal with multiple currencies transaction in a single currency. When the best indicator of the various pair is eqal to current open pair, I want to | I recommend
Do not trade multiple currencies in one EA
|
whroeder1 :
It's not trading transactions in a single transaction.
I try to compare the best indicators of other pairs when the best pair match.
See below for a short description of my explanations.
int start() { //------------------- KEY POINT----------------------------------------// double USD_EMA = GetEMA( "EURUSD" , 100 ); double JPY_EMA = GetEMA( "USDJPY" , 100 ); double Max_EMA = MathMax (USD_EMA,JPY_EMA); //---------------------------------------------------------------------// if (Max_Symbols == GetEMA( NULL , 100 );) { total= OrdersTotal (); if (total< 1 ) { if ( iRSI(NULL,0,14,PRICE_CLOSE,0)>iRSI(NULL,0,14,PRICE_CLOSE,1) ) { ticket= OrderSend (NULL, OP_BUY ,Lots, Ask , 3 , 0 , 0 , "ma sample" ,MagicNo, 0 ,Green); if (ticket> 0 ) { if ( OrderSelect (ticket, SELECT_BY_TICKET , MODE_TRADES )) Print ( "BUY order opened : " , OrderOpenPrice ()); Print ( "Buy SR : " ,Success_Rate); } else Print ( "Error opening BUY order : " , GetLastError ()); return ( 0 ); } } } return ( 0 ); } //-------------------------------------------------------------------------- double GetEMA( string Sym_EMA, int EMA_PERIOD) { return ( iMA (Sym_EMA, 0 , EMA_PERIOD , 0 , MODE_EMA , PRICE_MEDIAN ,i)); }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Wait for an answer.
I've seen enough of "Reference". but it's very abstract in terms of utilization and isn't helpful at present.
So, please do not reply by raising "the Reference" address.