How to get 2 values on 1 indicator by EA?

 
I try code a indicator(RSI) to display with RSIPeriod1=10 and RSIPeriod2=20. How to get value of lines RSIPeriod1=10 and RSIPeriod2=20 by EA?
 

iRSI(...)

When the indicator function is called, just like any other function that isn't a void function, it will return a value...that value is the one you are after.

Reason: