|
Adding Custom Indicator to Expert
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_MA IN,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.
|