https://www.mql5.com/ja/docs/indicators/icustom
Look at the sample program.
It read SMA21 into "Label1Buffer" with "iCustom" function.

- www.mql5.com
Some excerpts OnInit() //--- create handle h_UP = iCustom(_Symbol, PERIOD_CURRENT, indiname); if(h_UP==INVALID_HANDLE) { Print("Error INVALID_HANDLE h_UP - error:",GetLastError(),"!!"); return INIT_FAILED; } OnCalculate() //--- if(CopyBuffer(h_UP, 0, 0, count, _UP)<0){ Alert("Error copying UPsig indicator Buffers - error:",GetLastError(),"!!"); return 0; } if(CopyBuffer(h_UP, 1, 0, count, _DN)<0){ Alert("Error copying DNsig indicator Buffers - error:",GetLastError(),"!!"); return 0; }
That's right.
I made a sample program to display the MACD in MT5. There is absolutely nothing wrong with it.
(You can omit the input parameters)
Thank you for the sample code.
I have tried everything.
I was able to load the signatures in the same place as the UP/DN original sign indicator!
Thank you very much!
Is it possible to omit parameters?
Now I have to comment out the external parameters and enter the values respectively, as it is a self-made sign indicator.
Does this mean that when I load the file in iCutome, I can just use the file name and leave out the external parameters of the sign indicator?
MACD_handle = iCustom(NULL, 0, "Examples\\MACD");
In this case, the default input value of the original indicator will be used.
MACD_handle = iCustom(NULL, 0, "Examples\\MACD", InpFastEMA, InpSlowEMA, InpSignalSMA,InpAppliedPrice);
In this case, the input value of the iCustom indicator will be used. (InpFastEMA..... are input parameters in the iCustom indicator)

- www.mql5.com
Thank you very much for your kind attention.
I understand now! :)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Please tell us.
I am using a translation tool to convert the data into English.