How can calculate RSI level for result of another indicator?
- mohsen.mahmoudi.91: I wanna to calculate RSI level for result of another indicator like Alligator or MA. How can I calculate that?
Copy the RSI code and change the source data.
diff=close[i]-close[i-1]; -
RSI_1 = iRSI(NULL ,0 ,RSI_PERIOD ,lips ,1);
What is the fourth argument in iRSI. It is certainly not a double! Perhaps you should read the manual.
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Hi, I am trying to create an EA.
I wanna to calculate RSI level for result of another indicator like Alligator or MA. How can I calculate that?
When I use iRSI method like below, the result is zero!
Is there any library or MQL code to help to me?
Thanks a lot.
why not try the iRSIOnArray
lipsBuffer[i] = iAlligator(NULL ,0 ,13 ,8 ,8 ,5 ,5 ,3 ,MODE_SMMA ,PRICE_MEDIAN ,MODE_GATORLIPS ,i); RSI[i] = iRSIOnArray(lipsBuffer,RSI_Period,i);//etc
somrthing like this
-
Copy the RSI code and change the source data.
- What is the fourth argument in iRSI. It is certainly not a double! Perhaps you should read the manual.
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.
Thanks For reply.
1. How can I use, RSI indicator code on expert advisor?
2. yes it is double...
why not try the iRSIOnArray
somrthing like this

Hi, I am trying to create an EA.
I wanna to calculate RSI level for result of another indicator like Alligator or MA. How can I calculate that?
When I use iRSI method like below, the result is zero!
Is there any library or MQL code to help to me?
Thanks a lot.