- How to display two currency pairs on one chart?
- Trading Different Pairs With 1 Ea
- Open trades with different pairs (MT4 or MT5)
What determines this is what pairs you have displayed under your market watch.
When making your EA you just have to be sure all the pairs you need for calculations are diplayed there.
You should look into learning MQL. It is much easier than one would think and I believe your idea would be reality within a month if you are a Swift learner.
Thereby not saying it would be profitable, of that I have no idea or opinion.
Best of luck!
/ McKeen
You might also like http://www.correlationcode.com/
Thank you both. I have studied MQL and yes it's quite easy to use. I have written the code of my EA but when I test it on EURUSD and I want to send an order to GBPUSD The error is that there is no symbol called EURUSD. " unknown symbol name GBPUSD for OrderSend function"
What should I do?
Thank you both. I have studied MQL and yes it's quite easy to use. I have written the code of my EA but when I test it on EURUSD and I want to send an order to GBPUSD The error is that there is no symbol called EURUSD. " unknown symbol name GBPUSD for OrderSend function"
What should I do?
You are possibly using a broker with a symbol prefix, try this:
Open your market watch and look at the full symbol prefix as displayed there.
If it displays anything else than EURUSD (example pair) - such as EURUSDm or EURUSDx etc...
Then change your ordertrigger to: OrderSend(Symbol(EURUSDx),,,,,,);
Also try using Print("Ordersenderror: "+GetLastError()); if you haven´t already....
/ McKeen
...is it possible to use ordersend for a different currency pair than the one you are testing your EA on in the tester?
No.
...if not then how can I test an EA that uses correlation as a
strategy?
No.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use