Hello everyone;
Would anyone please try to run this RSI file posted down here using InputPeriodRSI = 3 on different currency pairs and different time-frames per each currency pair.
This file is posted by MetaQuotes, so I initially assume that this is the file they use to calculate the RSI.
Guys, I don't know why for this Period ONLY number (3) only gives me problems drawing it !!
The code does work thou on M1 & M5, and some times on MN & W. but for example the M30, M20 or H1, H4, H6 Don't wanna plot the RSI(3) for that time-frame for this currency pair.
Unfortunately I need this RSI(3) specifically with that code because I'm working on certain indicator that needs this RSI(3) calculations from this code!
The Code works perfect on all other RSI periods for all the different currencies with all time-frames. But I don't know why specifically it gives me darn hard time on the 3rd period that I badly need for this custom indicator.
Thanx everyone to consider the time to read & look @ my problem :)
-- PipCaesar
You must be talking about RSI that MetaQuotes published in code base in here. Yes, I try the code you posted, and sometime it draw nothing at all at period 3 on all different time frame. I simply have switch to another time frame and go back again and the line then displayed properly.
There's also RSI in MT5 under Custom Indicator/Examples/RSI which I also try and gives no displaying error. You may want to try that one instead the one you posted.
The differences between RSI in MT5 and in code base is, that the RSI in code base does not have this below, which I don't know if that is the one that give the display error
//--- the main loop of calculations for(i=pos;i<rates_total && !IsStopped();i++) { diff=price[i]-price[i-1]; ExtPosBuffer[i]=(ExtPosBuffer[i-1]*(ExtPeriodRSI-1)+(diff>0.0?diff:0.0))/ExtPeriodRSI; ExtNegBuffer[i]=(ExtNegBuffer[i-1]*(ExtPeriodRSI-1)+(diff<0.0?-diff:0.0))/ExtPeriodRSI; if(ExtNegBuffer[i]!=0.0) ExtRSIBuffer[i]=100.0-100.0/(1+ExtPosBuffer[i]/ExtNegBuffer[i]); else { if(ExtPosBuffer[i]!=0.0) ExtRSIBuffer[i]=100.0; else ExtRSIBuffer[i]=50.0; } }
You must be talking about RSI that MetaQuotes published in code base in here. Yes, I try the code you posted, and sometime it draw nothing at all at period 3 on all different time frame. I simply have switch to another time frame and go back again and the line then displayed properly.
There's also RSI in MT5 under Custom Indicator/Examples/RSI which I also try and gives no displaying error. You may want to try that one instead the one you posted.
The differences between RSI in MT5 and in code base is, that the RSI in code base does not have this below, which I don't know if that is the one that give the display error
Phi.nuts, Hello to u;
Thanx greatly for attracting my attention to that NEW (for me) code of the RSI.
I'll work on it today.
Thanx again.
-- PipCaesar
Hello everyone;
Would anyone please try to run this RSI file posted down here using InputPeriodRSI = 3 on different currency pairs and different time-frames per each currency pair.
This file is posted by MetaQuotes, so I initially assume that this is the file they use to calculate the RSI.
Guys, I don't know why for this Period ONLY number (3) only gives me problems drawing it !!
The code does work thou on M1 & M5, and some times on MN & W. but for example the M30, M20 or H1, H4, H6 Don't wanna plot the RSI(3) for that time-frame for this currency pair.
Unfortunately I need this RSI(3) specifically with that code because I'm working on certain indicator that needs this RSI(3) calculations from this code!
The Code works perfect on all other RSI periods for all the different currencies with all time-frames. But I don't know why specifically it gives me darn hard time on the 3rd period that I badly need for this custom indicator.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everyone;
Would anyone please try to run this RSI file posted down here using InputPeriodRSI = 3 on different currency pairs and different time-frames per each currency pair.
This file is posted by MetaQuotes, so I initially assume that this is the file they use to calculate the RSI.
Guys, I don't know why for this Period ONLY number (3) only gives me problems drawing it !!
The code does work thou on M1 & M5, and some times on MN & W. but for example the M30, M20 or H1, H4, H6 Don't wanna plot the RSI(3) for that time-frame for this currency pair.
Unfortunately I need this RSI(3) specifically with that code because I'm working on certain indicator that needs this RSI(3) calculations from this code!
The Code works perfect on all other RSI periods for all the different currencies with all time-frames. But I don't know why specifically it gives me darn hard time on the 3rd period that I badly need for this custom indicator.
Thanx everyone to consider the time to read & look @ my problem :)
-- PipCaesar