Discussion of article "Library for easy and quick development of MetaTrader programs (part XII): "Account" object class and collection of account objects"

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
209770
MetaQuotes Software Corp.  

New article Library for easy and quick development of MetaTrader programs (part XII): "Account" object class and collection of account objects has been published:

In the previous article, we defined position closure events for MQL4 in the library and got rid of the unused order properties. Here we will consider the creation of the Account object, develop the collection of account objects and prepare the functionality for tracking account events.

Launch the EA and see what it displays in the journal when the brief entry is selected (Show full accounts properties = false):


Now select the full list — press F7 and set "Show full accounts properties" to 'true' in the parameters window:


Now the full list of properties for each of the existing accounts is displayed in the journal.

Note that in order to write accounts into the file, you need to connect to the first account, re-connect to the second one, then move on to the third one and so on. In other words, previous account data is written to the file at each connection to a new account.

Author: Artyom Trishkin

To add comments, please log in or register