Is this in the Strategy Tester ?
You can't do it in the Strategy Tester . . . from here: https://www.mql5.com/en/articles/1512
"Trading is permitted for the symbol under test only, no portfolio testing
Attempts to trade using another symbol will return error"
RaptorUK:
You can't do it in the Strategy Tester . . . from here: https://www.mql5.com/en/articles/1512
"Trading is permitted for the symbol under test only, no portfolio testing
Attempts to trade using another symbol will return error"
What is a reason it wont work in live? Even though it will works only for the attatched pair.
It should work on live . . I can't be more specific without seeing your code . . . do you have the symbol names correct ? have you added some debugging Print() statements to see what is going on ?
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
I am working on a strategy the places trades on multiple pairs. I use MarketInfo("GBPUSD", quantitative variable),MarketInfo("GBPJPY", quantitative variable),MarketInfo("EURJPY", quantitative variable) etc...
to retrieve info for all pairs and I send all the required info with the respective Symbol() to the ordersend function. My problem is that it will only place trades on the symbol on which the EA is attatched. Does anyone have a clue?