The answer is here :

http://docs.mql4.com/array/ArraySetAsSeries

You have to use the array function : ArraySetAsSeries.