I assume you defined a new Compare method
instead of using the defined parameters
and cast to your class later inside the method.
ugo58:
Hi ugo58,I assume you defined a new Compare method
instead of using the defined parameters
and cast to your class later inside the method.
thanks for your reply, but I can't catch your point?
What do you mean exactly?
The result of the expert above should be a list with ascending strategyID value. This is the result I expect to obtain.
Regards,
och:
Hi ugo58,
Hi ugo58,
thanks for your reply, but I can't catch your point?
What do you mean exactly?
The result of the expert above should be a list with ascending strategyID value. This is the result I expect to obtain.
Regards,
int CStrategy::Compare(const CObject *node,const int mode=0) // instead of Compare(CStrategy *node,const int mode=0) { // Print(__FUNCSIG__ + ":: Here we are! ",this.m_id," ",((CStrategy*)node).StrategyID()); if (this.m_id > ((CStrategy*)node).StrategyID()) return(1); if (this.m_id < ((CStrategy*)node).StrategyID()) return(-1); return(0); }
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
Dear All,
I tried to use the virtual Compare method from CObject Class, but can't manage to make it works, any insights?
Regards,