-
You haven't set your H/L/Close arrays direction (as-series)
-
var_1 = Calculate(High[k + 1], SmoothPeriod, SmoothPhase, k + 1, 0);
Always post all relevant code (using Code button) We can't know what Calculate does.
- Your lookback is at least one, but more likely SmoothPhase+1.
How to do your lookbacks correctly #9 — #14 & #19
Hello
I am trying to convert an mt4 indicator into an mt5 indicator.
I have some knowledge about mql4 , but its my first time trying out mql5
I have an indicator in mql4 and I am trying to make it work on mt5 , there were a bunch of errors but somehow got rid of those without removing any of the original code.
even though there aren't any compile time errors , but it throws the array out of range error where EMPTY_VALUE is assigned to the variable.
Can someone please Point out what the issue could be ?
Highlighted section of the code is throwing the error :
There is already Gann high low activator that uses Jurik smoothing made for mt5. Use that
What you are trying to convert is ages old version for mt4 - even for MT4 there were multiple newer versions
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
I am trying to convert an mt4 indicator into an mt5 indicator.
I have some knowledge about mql4 , but its my first time trying out mql5
I have an indicator in mql4 and I am trying to make it work on mt5 , there were a bunch of errors but somehow got rid of those without removing any of the original code.
even though there aren't any compile time errors , but it throws the array out of range error where EMPTY_VALUE is assigned to the variable.
Can someone please Point out what the issue could be ?
Highlighted section of the code is throwing the error :