Getting values for Moving Average plotted on the subwindow for mql5

 

Hello fellow coders

I am using moving averages plotted on the sub-window to help in the automation of a strategy that I am currently working on. Any ideas on how I can get the MA values for the sub-window. I have tried using the normal iMA function but it returns the values of the MA plotted on the main chat. Any suggestions will be highly appreciated. Find attached an image of what I am talking about. 

Kind regards

Files:
MA_subWinow.PNG  11 kb
 
By the function iCustom() - but read and study the example given there!