Discussion of article "Prices and Signals in DoEasy library (Part 65): Depth of Market collection and the class for working with MQL5.com Signals"

 

New article Prices and Signals in DoEasy library (Part 65): Depth of Market collection and the class for working with MQL5.com Signals has been published:

In this article, I will create the collection class of Depths of Market of all symbols and start developing the functionality for working with the MQL5.com Signals service by creating the signal object class.

Let's make some corrections in the OnInitDoEasy() function as well. Now, creation of the tick series of all used symbols is implemented as a direct access to the appropriate method of the library main object. Besides, I have added the check of created DOM series:

//--- Check created timeseries - display descriptions of all created timeseries in the journal
//--- (true - only created ones, false - created and declared ones)
   engine.GetTimeSeriesCollection().PrintShort(false); // Short descriptions

//--- Create tick series of all used symbols
   engine.TickSeriesCreateAll();

//--- Check created tick series - display descriptions of all created tick series in the journal
   engine.GetTickSeriesCollection().Print();

//--- Check created DOM series - display descriptions of all created DOM series in the journal
   engine.GetMBookSeriesCollection().Print();


Compile the EA and launch it having preliminary set in the settings the usage of two symbols and the current chart period:


Data on the created DOM snapshot collection, full data on the very first suitable signal and short data on all profitable free signals are to be displayed in the journal. The end of the list features the data on the snapshot series and the first obtained DOM snapshot of the current chart:

Account 8550475: Artyom Trishkin (MetaQuotes Software Corp.) 10428.13 USD, 1:100, Hedge, MetaTrader 5 demo
--- Initializing "DoEasy" library ---
Working with predefined symbol list. The number of used symbols: 2
"AUDUSD" "EURUSD"
Working with the current timeframe only: H1
AUDUSD symbol timeseries: 
- Timeseries "AUDUSD" H1: Requested: 1000, Actual: 1000, Created: 1000, On the server: 5385
EURUSD symbol timeseries: 
- Timeseries "EURUSD" H1: Requested: 1000, Actual: 1000, Created: 1000, On the server: 6310
Tick series "AUDUSD": Requested number of days: 1, Historical data created: 294221
Tick series "EURUSD": Requested number of days: 1, Historical data created: 216048
DOM snapshot series collection:
- "AUDUSD" DOM snapshot series: Requested number of days: 1, Actual history depth: 0
"EURUSD" DOM snapshot series: Requested number of days: 1, Actual history depth: 0
Subscribed to Depth of Market  AUDUSD
Subscribed to Depth of Market  EURUSD
Library initialization time: 00:00:25.015

Author: Artyom Trishkin

 
how to install the indicator
Reason: