Hi, in these day im trying to study mql5 to pass to it i think in the next months. but several scripts are not working, including the ones that are supposed to work like this,
it says this
on mt4 it worked but i have no idea how to fix it, maybe the path of the indicator?
Using indicators in MQL5 is quite different than in MQL4
https://www.mql5.com/en/articles/31
- www.mql5.com
you'll find the MT5 Zigzag indicators in the Examples folder. There's also a color version.
To get the handle:
input int InpDepth=12; input int InpDeviation=5; input int InpBackstep=3; int ZigzagHandle; int OnInit() { ZigzagHandle=iCustom(_Symbol,_Period,"Examples/ZigZag",InpDepth,InpDeviation,InpBackstep); if(ZigzagHandle==INVALID_HANDLE) { Print("invalid Zigzag handle, error: ",_LastError); return INIT_FAILED; } return INIT_SUCCEEDED; }
Hi, in these day im trying to study mql5 to pass to it i think in the next months. but several scripts are not working, including the ones that are supposed to work like this,
it says this
on mt4 it worked but i have no idea how to fix it, maybe the path of the indicator?
An
example of working with the ZigZag indicator.

- 2018.12.24
- www.mql5.com

- 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, in these day im trying to study mql5 to pass to it i think in the next months. but several scripts are not working, including the ones that are supposed to work like this,
it says this
on mt4 it worked but i have no idea how to fix it, maybe the path of the indicator?