Discussion of article "Creating Multi-Expert Advisors on the basis of Trading Models" - page 6

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
Thank you, this is a great article and a good framework. Exactly what I was looking for.
I plan to use it with real money, is it the latest version?
Thanks
Good afternoon!
I've tried to correct several errors, but one more keeps popping up... if the aim was to make life easier for beginners, it's getting difficult like this and I'm losing my mind here...
Help Please!
Great article!
I had to change two things to get it working.
On the file "TableOrders.mqh" on this function bool CTableOrders::Add(ulong Ticket,double stop_loss,double take_profit) line 89, the variable m_type should be replaced by:
From:
m_type=order_info.Type();
To:
m_type=order_info.OrderType();
The second one also on the "TableOrders.mqh":
From:
class CTableOrders : CObject
To:
class CTableOrders : public CObject
Regards,
A. HUPP
Good afternoon!
I've tried to correct several errors, but one more keeps popping up... if the aim was to make life easier for beginners, it's getting difficult like this and I'm losing my mind here...
Help Please!
Airton this article is very advanced for beginners, you must first understand the concept of Object Oriented application development, hierarchies, polymorphism, inheritance, virtual methods, that is, you need to know advanced programming, the errors found in these examples however are related to class declarations, which in some of them are missing the public keyword that you must insert by hand, perhaps the previous version of MQL did not need these keywords to compile, but this version requires this correction.
in order to compile the file simple_model.mq5 i had to add "public":
class CModel: public CObject at line 12
while compiling MACD_MA_model.mq5 i keep getting this error:
'MODE_OPEN' - enumerator identifier already defined stdlib.mqh 13 4
i cannot get around this error which refers to underlying library.
Thank you for your article and the effort to build a general framework for testing.
in order to compile the file simple_model.mq5 i had to add "public":
class CModel: public CObject at line 12
while compiling MACD_MA_model.mq5 i keep getting this error:
'MODE_OPEN' - enumerator identifier already defined stdlib.mqh 13 4
i cannot get around this error which refers to underlying library.
Thank you for your article and the effort to build a general framework for testing.
https://www.mql5.com/en/forum/244512
Tried to uncompile, got errors
Any plans to fix the code?
min_risk = point * tick_value * symbol_info_.LotsStep();
you should use tick count instead of point count.
tick_count = MathAbs(open_price - stop_loss) / symbol_info_.TickSize();
because in some symbols, tick size != point
for example:
Futures\Agricultural Commodities\#Coffee_H21:
You shouldn't delete node when iterating the list.
for example:
After deleting node at index 5, you iterate index 6, but the next element is still index 5.
It's a better idea using GetFirstNode / GetNextNode
Thanks for your contribution!