The description on this page answers your question.
https://www.mql5.com/en/docs/constants/indicatorconstants/enum_indicator
![Documentation on MQL5: Standard Constants, Enumerations and Structures / Indicator Constants / Indicator Types Documentation on MQL5: Standard Constants, Enumerations and Structures / Indicator Constants / Indicator Types](https://c.mql5.com/36/17/documentation-on-mql5-standard__2.png)
- www.mql5.com
Hi,
I'm wonder what is the difference between iCustom and IndicatorCreate functions which give a handle of home made indicator both.
In which condition shall I use one or other ?
Thanks !
Erwann.
What Alain said, and to make it a little more precise:
IndicatorCreate is better suited when you want to set the number of parameters and their types and values at runtime (it's a dynamic option of creating indicators because it always uses the same MqlParam[] which encapsulates the actual parameters).
While iCustom has to state all parameters at the compilation time (which fixes their number and type, only the values can be changed at runtime) - which makes it less flexible when you want to call many different indicators with the same code.
What Alain said, and to make it a little more precise:
IndicatorCreate is better suited when you want to set the number of parameters and their types and values at runtime (it's a dynamic option of creating indicators because it always uses the same MqlParam[] which encapsulates the actual parameters).
While iCustom has to state all parameters at the compilation time (which fixes their number and type, only the values can be changed at runtime) - which makes it less flexible when you want to call many different indicators with the same code.
![](https://c.mql5.com/3/182/bigsmile-fixed__1.png)
You could connect some lines with ';'
LOLL
You could connect some lines with ';'
It's clear !
Many thanks for your help :)
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- 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,
I'm wonder what is the difference between iCustom and IndicatorCreate functions which give a handle of home made indicator both.
In which condition shall I use one or other ?
Thanks !
Erwann.