puncher:
My question is: Can I program and run EA for 9 different symbols only on the one chart with started EA in the same time ?
Yes, you can. (but not in tester)
puncher:
I mean about send, modify, close orders for many symbols (for example: EURUSD, EURGBP, EURCHF, AUDUSD, USDCAD, USDJPY, EURJPY etc... ), but EA will run only on the EURUSD chart.
I mean about send, modify, close orders for many symbols (for example: EURUSD, EURGBP, EURCHF, AUDUSD, USDCAD, USDJPY, EURJPY etc... ), but EA will run only on the EURUSD chart.
Depending on how it's coded.
- Easy way is to just trade the pair the EA is on. As long as the OrderSelect loops filter by magic number so they don't conflict with each other and if the orderSelect loops also filter by pair, you don't need to even change the magic number. The only interaction would be context is busy type errors and using a mutex solves that.
- Harder is to replace Bars with iBars(symbol), Close[] with iClose, iATR(NULL) with iATR(symbol), Bid with MarketInfo(symbol, MODE_BID) etc. Every trading value must be referenced to the pair under consideration. Also you can NOT get bar zero values in the tester for the non chart pairs.
Thank you for the answers and warnings. Your informations was very helpful.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Good afternoon,
My question is: Can I program and run EA for 9 different symbols only on the one chart with started EA in the same time ?
I mean about send, modify, close orders for many symbols (for example: EURUSD, EURGBP, EURCHF, AUDUSD, USDCAD, USDJPY, EURJPY etc... ), but EA will run only on the EURUSD chart.
Each symbol on the Expert Advisor use the same indicators.
Please for the reply.
Thank you.
Regards,
Puncher