I recently tried to make Xupypr ea object oriented by attaching classes that perform trade executions. I found out that the initial optimization without the object oriented approach worked well. The results were good. Then, I proceeded by enabling the objects and it failed to achieve the former result. I thought this might be a result of programming error, then I stripped all the code from the attached class and still I got the same poor result. Could this be a bug or am I missing something?
Get in touch with developers using Service Desk!
- www.mql5.com
We therefore attach great importance to all user reports about issues in our programs and try to answer each one of them.
Files:
mql5Error.zip
41 kb
- Development of applications in MetaQuotes Language 5 (MQL5)
- Trading Robots and Technical Indicators in MetaTrader 5
- Algorithmic (automated) trading in MetaTrader 5
Every class must have a constructor. See the article The Order of Object Creation and Destruction in MQL5
Here is the updated version with a constructor and destructor added. The results of an ea should not change when you add an object that "does nothing"
Files:
mql5Error.zip
79 kb
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