How to call Hline Indicator in a expert advisor???please help. This is a custom indicator and a pip calcolator .

 
I want to add this custom indicator in my mql4 EA. But I can not call it in my Ea . Some error are shown like as parameter error, unexpected token error,,etc.
Files:
HLINE.mq4  8 kb
 
Mridul Hedayet Ullah: I want to add this custom indicator in my mql4 EA. But I can not call it in my Ea . Some error are shown like as parameter error, unexpected token error,,etc.

That indicator places a Graphical Object on the chart, to display profit in pips. It is of no use in an EA as there are no buffers to read.

Also, the value of profit in pips can just be calculate directly in the EA in the same way as the "GetProfitOpenPosInPoint" function in that indicator's code.