lets see i think TSD (which i believe is the namesake of this forum) has some multi pair action. may wanna study that. also the 1st value of an indicator is the pair.
iMA("EURUSD",0,13,8,MODE_SMMA,PRICE_MEDIAN,i);
for interbank mini and micro i guess it would be
iMA("EURUSDm",0,13,8,MODE_SMMA,PRICE_MEDIAN,i);
Files:
tsd-mt4-_v1c.mq4
12 kb
one way i set up my code when using a moving average in an ea is like this;
adding a global variable:
extern double emaperiod = 20;[/PHP]
and changing where you define your variable to this:
[PHP]double ma iMA(NULL,0,emaperiod,1,0,PRICE_CLOSE,1);of course you can adjust this to however you want your moving average set up, but the3 purpose of doing this is that when you apply the ea, you can just change the inputs (inputs tab) to what you desire your trailing stop to be.

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
Can I use the same EA for different symbols with different parameters?
Can I have a 20 Moving Average for a symbol, and a 50 Moving Average in another?
Thanks for help.