How Import a external Function in my Script (mql4)

 

hi

as you know . mql4 library has not function about rate od change ( ROC )

and therefore i can not use it like ima or istoch ...

and i write a function for calculating ROC and save it namely iRoc.

how can i use it like internal function in mql4 ( iMA, iCCI,...)?

 
topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I will move your topic to the MQL4 and Metatrader 4 section.
 
Trader98: how can i use it like internal function in mql4 ( iMA, iCCI,...)?

Exactly like how you use iMA, iCCI, etc.
     How To Ask Questions The Smart Way. 2004
          Be precise and informative about your problem

We can't see your broken code.

 
Trader98:

how can i use it like internal function in mql4 ( iMA, iCCI,...)?

I have registered my functions in the include folder as a mqh file.

 

You can use iCustom() but this supposes to have the ROC.ex4 in your indicators folder. The other solution is to use the formula for current bar


https://docs.mql4.com/indicators/icustom

iCustom - Technical Indicators - MQL4 Reference
iCustom - Technical Indicators - MQL4 Reference
  • docs.mql4.com
[in]  Custom indicator compiled program name, relative to the root indicators directory (MQL4/Indicators/). If the indicator is located in subdirectory, for example, in MQL4/Indicators/ The passed parameters and their order must correspond with the declaration order and the type of extern variables of the custom indicator...
 

thank you for replying.

but i donot understand what you mean

how can i set ROC function in  iCustom ?

please explain it more.