Calling a custom indicator to MT4 Expert

 

I have been using the indicators that come with Metatrader 4.

I have been able to call them simply by for example using the following statement for Stochastic.

Stoch=iStochastic(NULL,0,30,5,12,MODE_SMA,0,MODE_MAIN,0);

However, I acquired an indicator(ADXdon) that does not come with MT4 and want to add it to my expert. I cannot call it the same way I call the Stochastic indicator.

This indicator in essence tells me when not to trade because the market is flat. When it is below 20 I don't trade. It works well manually.

How can I call this indicator from the expert if it doesn't come with Metatrader?

 

iCustom function!

Chewbaca:
I have been using the indicators that come with Metatrader 4.

I have been able to call them simply by for example using the following statement for Stochastic.

Stoch=iStochastic(NULL,0,30,5,12,MODE_SMA,0,MODE_MAIN,0);

However, I acquired an indicator(ADXdon) that does not come with MT4 and want to add it to my expert. I cannot call it the same way I call the Stochastic indicator.

This indicator in essence tells me when not to trade because the market is flat. When it is below 20 I don't trade. It works well manually.

How can I call this indicator from the expert if it doesn't come with Metatrader?

Salam Chewbaca,

In this case you have to use the iCustom function.

For more information about it please review this:

https://www.mql5.com/en/forum