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![MQL5 for Newbies: Guide to Using Technical Indicators in Expert Advisors MQL5 for Newbies: Guide to Using Technical Indicators in Expert Advisors](https://c.mql5.com/36/24/mql5-for-newbies-guide-to-using.jpg)
- 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.
![How to start with MQL5 How to start with MQL5](https://c.mql5.com/36/34/how-to-start-with-mql5__11.jpg)
- 2018.12.24
- www.mql5.com
![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, 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?