Hi all.
I am trying to extract values from an indicator (assume the name is "ABC_Indicator") that has several input values. I have source code of the indicator.
Hence I use the iCustom function to create the following function to extract the buffer values ,as follows.
That is the default version of the iCustom assuming I am extracting the buffer values with the default values of the indicator . I checked and the values are correct.
My question is when I want to introduce in my above function the optional inputs of "ABC_Indicator" , is there a way to know which ones of the "ABC_Indicator" inputs and in which order I should include in the iCustom function to get the correct result.
Thank you
I typically include all of the inputs from the indicator in the order they are declared in the indicator.
According to the documentation:
"The passed parameters and their order must correspond with the declaration order and the type of extern variables of the custom indicator. If the values of input parameters is not specified, the default values will be used."

- docs.mql4.com
You should encapsulate your iCustom calls to make your code self-documenting.
Detailed explanation of iCustom - MQL4 and MetaTrader 4 - MQL4 programming forum

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all.
I am trying to extract values from an indicator (assume the name is "ABC_Indicator") that has several input values. I have source code of the indicator.
Hence I use the iCustom function to create the following function to extract the buffer values ,as follows.
That is the default version of the iCustom assuming I am extracting the buffer values with the default values of the indicator . I checked and the values are correct.
My question is when I want to introduce in my above function the optional inputs of "ABC_Indicator" , is there a way to know which ones of the "ABC_Indicator" inputs and in which order I should include in the iCustom function to get the correct result.
Thank you