I'm stuck with a problem for days and i have no clue what i made wrong. Please help me if you can.
so under the start() I have the following code:
void CalculateCurrencySlopeStrengthMA(int tf, int shift)
// Get Slope for all symbols and totalize for all currencies
for ( i = 0; i < symbolCount; i++)
double RSI = GetSlope(symbolNames[i], tf, shift);
//double MA = iMAOnArray(RSI,0,MAPeriod,0,MAMethod,shift);
currencyValues3[GetCurrencyIndex(StringSubstr(symbolNames[i], 0, 3))] += RSI;
currencyValues3[GetCurrencyIndex(StringSubstr(symbolNames[i], 3, 3))] += 100 - RSI;
for ( i = 0; i < CURRENCYCOUNT; i++ )
currencyValues3[i] /= currencyOccurrences[i];
This works fine. However when I erase // from MA and modify RSI to MA at currencyValues3 I get the "RSI - parameter conversion not allowed" message. What can be the problem? How can I get the MA instead of RSI?
notice: the indi computes the RSIs of each crosses of the 8 major currencies and makes an avg of them.
thank you very much
Thank you very much for your response. You are right, I've made a mistake, I haven't noticed, that it is a MQL5 section, if I know that I wouldn't post it here. I'm really sorry.