Please note that the discussion of Market products is against forum rules.
However, given that this is a coding question and the product in question is currently free, it will be allowed.
Please be warned not to stray into discussing the product any further, or else this entire thread will be removed.
Stick to discussing the coding aspects.
In response to your query, please note that the Indicator in question as two extra parameters.
I am referring to the "string" parameters name something like "===============================". Those parameters are actually a bad coding practice by the author from the MQL4 era, and should have been replaced by "input groups" in MQL5, and not "string inputs".
However, that been said, that is how it was done, so you have to compensate for it as follows ...
handleHeiken = iCustom( _Symbol, _Period, "Market\\Smoothed HeikenAshi MT5.ex5", "", heikenPeriod, MaMethod, uptrendColor, downtrendColor, plotInBackground, "", pushNotifications, alerts );
In other words, I've added empty strings "", at the relevant positions.
Please note that I did not test the code and the example above only serve to explain the issue.
In response to your query, please pay attention that the Indicator questions as two extra parameters.
I am referring to the "string" parameters "===============================". Those parameters are actually a bad coding practice by the author and should have been "input groups" and not "string inputs".
However, that been said, that is how it was done, so you have to compensate for it as follows ...
In other words, I've added empty strings "", at the relevant positions.
Please note that I did not test the code and the example above only serve to explain the issue.
- 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 world
So I am using the iCustom function with an Heiken Ashi indicator I got on the market. I keep getting the error for incorrect input parameters [4002].
and if I just attach the indicator with these inputs...
the indicator works just fine.
So am I misunderstanding something? Any advise would be appreciated.