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
I'm not sure I understand your question correctly.
I sometimes have a situation where child classes are initialized differently. I did something like this:
Code just to demonstrate the idea. Of course, I did not run it and did not test it.
Thank you Vladislav for your answer.
I'd like to do the other way round,
This is working also, thanks !
that means each time I want to use a child method I have 2 solutions right :
This is working also, thanks !
that means each time I want to use a child method I have 2 solutions right :
That's a bad solution.
Your problem come from this class CExpertModelTrailing which you don't need at all. It does nothing except bothering you.
That's a bad solution.
Your problem come from this class CExpertModelTrailing which you don't need at all. It does nothing except bothering you.
Thanks for your reply.
I guess you're saying that I don't need this intermediary CExpertModelTrailing class because in the standard library the TrailingXXX.mqh are inheriting for the base CExpertTrailing class. I changed that so that all my Trailing classes are extending the CExpertModelTriling class.
How else could I do than this (below code) to create my own code instanciated dynamically
I guess for now I'll just do like this
Because I can't see how alse I could do...