How to calculate a MA for HA candles ?

 
Hi,

I'm not able to find a solution for this, so I'm asking for help. I'm using Heikin-Ashi candles for my charts and I want to create a moving average line for the last 10 bars in the same way we can use iMA. So my HA indicator uses this call: iCustom( NULL, 0, "Heiken Ashi v2", 0, 0 ) how can find the MA for the last 10 bars? Should / Could I use iMAOnArray ? If so, how?

Thank you. Regards,

Cleon
Reason: