Plz! Help me for RSI 13 -> RSI 3 Coding

 

Hi Alls/Experts,

Im very trouble to code RSI-13 -> RSI-3 Coding.

First I put the RSI-period-13 on chart

Second I insert Second RSI-period-3 into same RSI window and selected in " Apply to- Previous indicator Data"

Till here all is OK, but when I goto code it, I cant get Value of the second RSI-Period-3. Plz! help me aeap.

Thnx!

 
for (int x=0;x<=KPeriod;x++)
       {
       
                                 
       
            RSI[x]= iRSI(NULL,0,periodo,PRICE_CLOSE,x); //GRAFICA RSI
            
             
       }
     
Reason: