As an example, I'd like to get the average of the RSI over the last last 14 bars. I've tried using SMA but it seems to only work using the equities price. Is there a function that can return the average of an indicator variable over x# of periods? 

Thank you 

Author