we recommend use another loop expression like in our samples
int start() { int i,limit; int counted_bars=IndicatorCounted(); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(i=0; i<limit; i++) RSI_Buffer[i]=iRSI(NULL,0,14,PRICE_CLOSE,i); for(i=0; i<limit; i++) tmp[i]=iMAOnArray(RSI_Buffer,Bars,14,0,MODE_EMA,i); for(i=0; i<limit; i++) RSI_Double[i]=iMAOnArray(tmp,Bars,14,0,MODE_EMA,i); return(0); }
thanks Slawa.
regards,
Mat
regards,
Mat
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 need some help to code the double moving average of RSI(14).
I would like to know if it's the right way to do?