How to code Linear Regression Channel into EA

 
Hi all :) I'm trying to develop an EA using this LRC indicator but i'm not able enough to code it into an Expert Advisor. Is there a way to have a list code version so that i can import it using iCustom function ? Any suggestion/help is appreciated ;) Thank you :)
 
http://www.metatrader4.com/forum/search/?search=linear+regression

'ang PR (Din)-v1'