for(i=pos; i<rates_total && !IsStopped(); i++) { double sum=0.0; for(k=0; k<InpRSIMAPeriod; k++) sum+=ExtRSIMABuffer[i-k]; ExtRSIMABuffer[i]=sum/InpRSIMAPeriod; }
Why do you calculate the sum of ExtRSIMABuffer?
You have to put this question in "MQL4" section.
Naguisa Unada:
Why do you calculate the sum of ExtRSIMABuffer?
You have to put this question in "MQL4" section.
If I don't calculate the ExtRSIMABuffer, how does the MT4 plot it?
Where is the MT4 section?
kentaicm:
If I don't calculate the ExtRSIMABuffer, how does the MT4 plot it?
Where is the MT4 section?
You want to calculate the average of "ExtRSIBuffer", don't you?
It's impossible to get it from the sum of "ExtRSIMABuffer".
MT4 section.
Naguisa Unada:
Yes, but how will you write this indicator?
You want to calculate the average of "ExtRSIBuffer", don't you?
It's impossible to get it from the sum of "ExtRSIMABuffer".
MT4 section.
kentaicm:
Yes, but how will you write this indicator?
Yes, but how will you write this indicator?
sum+=ExtRSIBuffer[i-k];
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 all,
I am trying to do my own programming in this indicator. I took the default RSI code from MT4 and made some modifications. However, I add in the moving average of the RSI code, the compiler seems ok but when I apply to the chart, there is only an RSI line. The moving average of the RSI is missing. Can anyone let me know what's went wrong? I am using MT4.
Thank you in advance.