That's the issue with MT4, the backtester works only with one asset . Hope MT5 will have a multiasset backtester. The lack of a multiasset backtester sadly made the entire pair trading to be a foreign domain for the MQL developer.
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
Hi,
I wrote an EA and,in which I am trying to open two buystop orders - One for EURUSD, and another for USDCHF pairs. I use the following ordersend commands.
Order#1. OrderSend("EURUSD",OP_BUYSTOP,.............)
Order#2. OrderSend("USDCHF",OP_BUYSTOP,.........)
When I try to backtest it, here is what I notice.
#1. When I attach EA to EURUSD chart, first order is placed, whereas second one results in error (invalid symbol)
#2. When I attach EA to USDCHF chart, second order is placed, and first one results in error (invalid symbol).
I am wondering how to open orders on a symbol different than the one in which EA is running.
I appreciate your help.
Thanks,
Jay.