create an array of values from a technical indicators

 
I want to create a script that will write the value of a technical indicator to an array or buffer for every candle in a chart. I saw the function ArrayCopySeries but that appears to only apply to open/high/low/close and not to things such as the macd or moving average. Is there a similar function that works for technical indicators
 
You'll have to resize the array and copy the values yourself
Reason: