Getting the value of an indicator

 

Hi dear coders,

I would like to ask you a simple question, however for me it is not that simple...

as you can see in the attached screenshot, I added two rsi indicators and a simple moving average of 50 applied to previous indicator's data  in the same subwindow.

My question is : how do I get the value of that 50 ma?

i mean,

  if (iRSI(NULL, PERIOD_CURRENT, 13, PRICE_CLOSE, i) > ........ ?

     && iRSI(NULL, PERIOD_CURRENT, 35, PRICE_CLOSE, i) > .......?   )

     {    my code here  }

thanks for your answers, Oliver


    

Files:
question.jpg  423 kb