There is a very good article:
Transferring an Indicator Code into an Expert Advisor Code. Indicator Structure - MQL4 Articles
but you probably don't need to do that, use iCustom() . . but you may not even need to do that, have you looked at the Technical Indicator functions ?
thanks RaptorUK. Hope its work....
4. Rashid Umarov. Arrays and Technical Indicators for them. http://www.alpari-idc.ru/ru/articles_mql4/20.html
Error page and not in English.
This is related to code any EA for in this iisue. For examle I have codedd some codes for trding with iCuston: