ı couldnt do it please help me!!

 
ı did a indicator and ı need to use it in my EA. ı know there is iCustom code but ı didnt understand to use it please help me .
Files:
 

ı forgot to write. momentum ma my indicator. and ı need to ExtMapBuffer2 in this indicator. How can I do with iCustom ??

 
Read this thread, it will help: https://www.mql5.com/en/forum/138577
 
mktw:

ı forgot to write. momentum ma my indicator. and ı need to ExtMapBuffer2 in this indicator. How can I do with iCustom ??

Like this:

double foo = iCustom(Symbol(), 0, "MomentumMA", 12, 14, 1, shift);

Being shift the bar number: normally 0 or 1. I would recommend 1 to avoid false signals.

The parameter before bar shift is the internal buffer number which is set using the SetIndexBuffer function.

(In this case, ExtMapBuffer2 is the internal buffer 0)

Best