Combine the two indicators into a single CustomAB indicator would be my first thought as to a solution.
Second thought is you didn't supply any parameters for the first indicator in the iCustom() call.
should i use iMAOnArray? how?
![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
for(i=0; i<limit; i++) {
Custom_A[i] = iRSI(NULL,0,Periodo,PRICE_CLOSE,i) + iMFI(NULL,0,Periodo,i);
}
for(i=0; i<limit; i++) {
Custom_B[i] = iCustom(NULL,0,"Custom_A",Period,0,i) - iMA(b5vg,0,Period,0,MODE_EMA,PRICE_CLOSE,i);
}