Custom Indicators parameters from an expert.

To add comments, please log in or register
Ricardo
40
Ricardo  
Is there a way to set the parameters of a custom indicator from an Expert? I tried iCustom, but can't find a way to set the parameters of the indicator before calling it.
Jay
79
Jay  

yes, there is a way - with the iCustom function you can pass the parameters you need to that indicator.

please take a look at the documention of the iCustom function, it is described there well:

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

you can your pass your parameters after the name and before the mode ones...

thank you

Automated

Ricardo
40
Ricardo  
Sorry, I didn't notice. Its the first time I see multiparameters at the middle of parameter list instead of at the end. Guess I missed the ... at the middle.

Thank you.

Jay
79
Jay  

you are welcome :)

please note that you must pass the parameters in the same order they are declared in the custom indicator code...

thank you

Automated

To add comments, please log in or register