Yes, but u can't use it in the strategy tester. It only allows one pair at a time.

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
If I am looking at the hourly chart and I want to assess conditions on two different currency pairs(eurusd and usdchf for example)...can I code a common indicator (MACD for example) to get values from two different currencies within one EA? Is this possible:
double H2,H1;//high for eurusd
double L2,L1;//high for usdchf
H2 = iHigh(Symbol(),60,2);
H1 = iHigh(Symbol(),60,1);
I am wondering if I have to set a global variable if certain conditions are met and then call that within the EA? Any help or insight would be greatly appreciated!
Dan