Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Does anyone know how to add Custom indicators to an Expert Advisor & have it come up in the chart?
Example of code for stochastic below.
Stoch=iStochastic(NULL,0,14,5,3,MODE_SMA,0,MODE_MAIN,0);
Stochsig=iStochastic(NULL,0,14,5,3,MODE_SMA,0,MODE_SIGNAL,0);
The above code shows the for accessing the Stochastic indicator.
Fortunately, the Stochastic indicator comes with Metatrader 4.
But how would you access an indicator like ADXdon?
ADXdon, that does not come with Metatrader.
I've tried things like
adxdon=iCustom(NULL,0,adxdon,14,34,34,MODE_MAIN,0);
But when I run the expert and open the chart, all the other indicators like the Stochastic indicator come up but the ADXdon does not.
Right now I have to add the indicator manually to the chart.
Does anyone know how to add Custom indicators to an Expert Advisor & have it come up in the chart?
I'm attaching the indicator in case you'd like to try.
Thanks.