I have a class called waves and a function in that class called calc. I want to pass an object of type waves as a parameter to the calc function. I got an error stating 'objects are passed by reference only'. I searched the forum on how to pass an object by reference and was not able to find anything useful.
- Development of applications in MetaQuotes Language 5 (MQL5)
- Download MetaTrader 5 build 1730 with new trader features
- Algorithmic (automated) trading in MetaTrader 5
jshumaker:
I have a class called waves and a function in that class called calc. I want to pass an object of type waves as a parameter to the calc function. I got an error stating 'objects are passed by reference only'. I searched the forum on how to pass an object by reference and was not able to find anything useful.
See this article, it would help.
I have a class called waves and a function in that class called calc. I want to pass an object of type waves as a parameter to the calc function. I got an error stating 'objects are passed by reference only'. I searched the forum on how to pass an object by reference and was not able to find anything useful.

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