Is your EA designed to monitor 4 currency pairs simultaneously? If not, it is pointless to do this.
double rsi[]; CopyBuffer(RSI_Handle, MAIN_LINE, 1, 5, rsi);
In case I may answer,
(1) You need to switch RSI_Handle and rsi for each currency pair.
(2) You need to specify the array size of rsi.
(3) Do you think MAIN_LINE can be used to copy rsi? (I have not checked).
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'm trying to convert my EA from trading a singular currency pair to multiple. Before trying to change the number of pairs in use, i didn't have any errors. Since replacing Symbol() with symbol_loop[i], converting the handle into an array, looping the RSI handle in the OnInit and looping the symbols in the OnTick, i now get errors from the CopyBuffer function. The error reads that the CopyBuffer could be one of 3 different versions. In my array there isn't a datetime like the other potential functions so I don't quite understand the issue. Would appreciate if someone offered some suggestions. Cheers