Your topic has been moved to the section: Expert Advisors and Automated Trading — Please consider which section is most appropriate — https://www.mql5.com/en/forum/443428#comment_49114884
Thejudg 47:
double arrSellSignals[]; CopyBuffer(handle, 0, 0, 1, arrSellSignals); double arrBuySignals[]; CopyBuffer(handle, 1, 0, 1, arrBuySignals);
double arrSellSignals[]; CopyBuffer(handle, 0, 0, 1, arrSellSignals); double arrBuySignals[]; CopyBuffer(handle, 1, 0, 1, arrBuySignals);
double arrSellSignals[]; ArraySetAsSeries(arrSellSignals, true); CopyBuffer(handle, 0, 0, 1, arrSellSignals); double arrBuySignals[]; ArraySetAsSeries(arrBuySignals, true); CopyBuffer(handle, 1, 0, 1, arrBuySignals);
In order to use the EA on several charts simultaneously you have to use magic numbers.

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 recently made a simple expert advisor, all i just want is to open, for example, a sell trade when a sell signal appears in the chart, that trade would be open until a buy signal appears, when the buy signal appears it would close the sell signal and immediately open a buy trade so on and so forth. The problem is that the ea actually make the first trade but it does nothing when the other signal appears, it does not close the trade neither open the other one. Also, i have this ea running on xauusd m15, xauusd 1h, eurusd 15m, and eurusd 1h charts, but they not run all at once, it run only on xauusd 15m chart but when i turned down the ea it instantly begin to run on xauusd 1h chart son on and so forth, i need to solve that problem too.
Thanks in advance