Indicator value to array

 
Hi all,
Could somebody explain how I would write the code to place the value of say, the CCI or RSI, into an array. I'm thinking more along the lines of per bar, not per tick. I want to be able to use iMAOnArray() in an EA, but I need to place the values of the indicators into an array first.

I'm new to programming, but I'm really trying to learn, so the more explicit your instructions are, the better. Thanks.
Reason: