You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Here's a solution that utilizes templates. I wrapped it all into a single class. If you need more than 2 arguments, just expand the function templates. I don't know about the maximum number of arguments allowed by a template, but up to 10 should work.
The deficiency of this solution is that it does not support an arbitrarily large amount of arguments, but that's fairly theoretic I guess, because you can expand the templates for as much as you need.
Note it works both for MQL4 and 5. I'm going to publish a cleaned up header with this class in the near future, if time allows.