Your indicator just shows a line...the array Go_Short[] may only containe 0 or -1 elements.....it´s impossible to show it in the window.What you want to plot...?
Hi everybody,
I’m trying to change some formulas from MQL4 to MQL5, but I’m having some problems with that. It’s my first trying. Could you please check my formula and inform me where my mistake is?
It did not plot a line.
Thanks
Hi rodrigosm,
Would you please show the MQL4 codes, otherwise you may get an error but running CI
:D
Firstly iMA function returns a handle. It isn't the same as indicator value. You should use CopyBuffer function to get indicator value.
Secondly it isn't good idea to create indicator handles in OnCalculate function. OnInit is more suitable.
Finally look at source code of custom indicator Alligator (it comes in standard delivery). It might be helpful.
- 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 everybody,
I’m trying to change some formulas from MQL4 to MQL5, but I’m having some problems with that. It’s my first trying. Could you please check my formula and inform me where my mistake is?
It did not plot a line.
Thanks