MQL4 - automated forex trading   /  

Code Base

Code Base  Expert Advisors  Prototype-IX. An Exemplary Multicurrency EA To post a new code, please log in or register

Library of programs in the new MQL5
Prepare for the Championship

This Expert Advisor is for
MetaTrader 4
Download MT 4 - 5.5 Mb

Mobile trading!
Buy a license and be mobile in your trading!

Name:
Prototype-IX. An Exemplary Multicurrency EA [ ru | cn ]
Author: maria (2008.09.16 15:15)
Downloaded: 3658
Download:
 ProtoType-IX.mq4 (36.6 Kb) View

This Expert Advisor traded without algorithmic errors at the Automated Trading Championship 2006. It requires indicator NRTR GATOR to work.It can be considered as an example of a multicurrency EA and, hopefully, will make writing such an EA easier for newbies in MQL4.









Pictures are taken from the comments to ATC 2006.


6 comments  To post a new comment, please log in or register

When I use ParabolTrailingStop then compile, I get error: "TSpar not defined".


17.12.2009 22:23 mgulla


for ibfx:

string SymbolsArray[13]={"","USDCHFm","GBPUSDm","EURUSDm","USDJPYm","AUDUSDm","USDCADm","EURGBPm","EURAUDm","EURCHFm","EURJPYm","GBPJPYm","GBPCHFm"};



18.11.2008 20:23 abstract_mind
ElectricSavant wrote:

This EA does not work with an IBFX mini acciunt. The symbols in IBFX mini accounts use the small 'm" after the symbol...like EUR/USDm...GBP/JPYm...etc.

Also, the NRTR GATOR need to be edited in explorer to be named NRTR_Gator (it needs the underscore).

ES

Rename all symbols in source:

string SymbolsArray[13]={"","USDCHF","GBPUSD","EURUSD","USDJPY","AUDUSD","USDCAD","EURGBP","EURAUD","EURCHF","EURJPY","GBPJPY","GBPCHF"};
13.11.2008 16:58 Rosh

This EA does not work with an IBFX mini acciunt. The symbols in IBFX mini accounts use the small 'm" after the symbol...like EUR/USDm...GBP/JPYm...etc.

Also, the NRTR GATOR need to be edited in explorer to be named NRTR_Gator (it needs the underscore).

ES

13.11.2008 14:27 ElectricSavant
Mehmet wrote:

Please translare english

extern int     PeriodWPR=8;
extern double  CriteriaWPR=25;
extern int     ATRPeriod=40;// ïåğèîä ATR äëÿ èíäèêàòîğà
extern double  kATR=0.5;
extern int     ZeroBar=8; // âûõîä â áåçóáûòîê ÷åğåç ZeroBar áàğîâ

This is my try

extern int     ATRPeriod=40;// amount of bars for calculation of the ATR indicator
extern double  kATR=0.5;
extern int     ZeroBar=8; // setup StopLoss in lossless after ZeroBar bars
17.09.2008 09:57 Rosh

Please translare english

extern int     PeriodWPR=8;
extern double  CriteriaWPR=25;
extern int     ATRPeriod=40;// ïåğèîä ATR äëÿ èíäèêàòîğà
extern double  kATR=0.5;
extern int     ZeroBar=8; // âûõîä â áåçóáûòîê ÷åğåç ZeroBar áàğîâ

16.09.2008 20:51 Mehmet