Discussion of article "Universal Expert Advisor: Trading Modes of Strategies (Part 1)" - page 2

 
Pierre Rougier:

Hello,

The source code of the article does not compile.
The error returned is:

cannot cast 'DoubleValue' to 'ULongValue' Dictionary.mqh 210 14


Thanks for your help,
Pierre8r

I found how to compile the program.
Change the Dictionary.mqh file of this article by the Dictionary.mqh file of this article 
https://www.mql5.com/en/articles/2653

Universal Expert Advisor: CUnIndicator and Use of Pending Orders (Part 9)
Universal Expert Advisor: CUnIndicator and Use of Pending Orders (Part 9)
  • 2017.10.20
  • Vasiliy Sokolov
  • www.mql5.com
Table of Contents Introduction The development of the Universal Expert Advisor's base of source code continues. Most of the approaches integrated into the CStrategy trade engine have proven their efficiency, convenience and simplicity in practice. However, over the course of actual usage, certain aspects in the expert operation had to be...
 
 
Where are the attachments, please?
 
Surely it would make more sense to only update the effected elements in m_state so that the order of calling SetTradeState did not matter? Also, if this were implemented as part of strategy instead of or as well as engine, then different states could be assigned for different assets (eg particular forex pairs during relevent news releases)