Read here: https://www.mql5.com/en/articles/43, how iCustom is used in an EA.
Dokumentation zu MQL5: Technische Indikatoren / iCustom
- www.mql5.com
[in] Name des Benutzerindikators mit dem Pfad in Bezug auf Ordnerverzeichnis der Indikators (MQL5/Indicators/). Wenn ein Indikator in einem Untervezeichnis liegt, zB. in MQL5/Indicators/ [in] input-Parameter eines Benutzerindikators, die durch Kommas getrennt sind. Typ und Parameterfolge müssen entsprechen. Wenn Parameter nicht angegeben...
Thanks for the link! I had already found it before, but unfortunately the description doesn't help me. I would expect icustom to read the indicator with the default values as follows:
CMI = iCustom(NULL,0, "Choppy market index",1,0);
But unfortunately that doesn't work. how should it look right? :-)
Thanks already!
how can you compute if it is negative or positive?
Hi Mladen, how to call this indicator? I tried below. But got error like "2023.11.17 11:12:22.990 program file added: \Indicators\Choppy market index.ex5. 11971 bytes loaded
2023.11.17 11:12:22.995 2023.11.06 01:00:00 cannot load custom indicator 'Choppy market index' [4002]
2023.11.17 11:12:22.995 2023.11.06 01:00:00 indicator create error
"
This is how I called it:
cmiValue = iCustom(_Symbol, _Period, "Choppy market index", 0,periodCMI, periodSMA, "ma_sma", inpLevel1, exitLevel, inpLevel3);
smaValue = iCustom(_Symbol, _Period, "Choppy market index", 1, periodCMI, periodSMA, "ma_sma", inpLevel1, exitLevel, inpLevel3); I compiled the indicator no problem. I can add to charts. But I have above issues to use it in my EA. Thanks,
Qin
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Choppy market index:
Choppy market index
Author: Mladen Rakic