Discussion of article "Timeseries in DoEasy library (part 38): Timeseries collection - real-time updates and accessing data from the program"

To add comments, please log in or register
MetaQuotes
Moderator
222380
MetaQuotes  

New article Timeseries in DoEasy library (part 38): Timeseries collection - real-time updates and accessing data from the program has been published:

The article considers real-time update of timeseries data and sending messages about the "New bar" event to the control program chart from all timeseries of all symbols for the ability to handle these events in custom programs. The "New tick" class is used to determine the need to update timeseries for the non-current chart symbol and periods.

Compile the EA and set its parameters the following way:

  • set Mode of used symbols list for using a specified symbol list,
  • in the List of used symbols (comma - separator), leave only three symbols, one of them being EURUSD and
  • in Mode of used timeframes list, select working with the current timeframe only, for example:


Launch the EA on the chart. After a while, the journal displays the "New bar" event messages on used symbols for the current symbol chart:

New bar on EURUSD M5: 2020.03.11 12:55
New bar on EURAUD M5: 2020.03.11 12:55
New bar on AUDUSD M5: 2020.03.11 12:55
New bar on EURUSD M5: 2020.03.11 13:00
New bar on AUDUSD M5: 2020.03.11 13:00
New bar on EURAUD M5: 2020.03.11 13:00

Launch the EA in the visual tester mode on the chart of one of the symbols selected in the settings, for example on EURUSD, and see how the zero bar data changes in the chart comment:


As we can see, both lines containing data obtained in different ways, have identical values of received zero bar properties and are updated in real time on each tick.

Author: Artyom Trishkin

Flavio Jarabeck
174034
Flavio Jarabeck  

This is the most unfortunate name for a library, EVER!

:)

Artyom Trishkin
Moderator
60626
Artyom Trishkin  
Flavio Jarabeck :

This is the most unfortunate name for a library, EVER!

:)

Why?

To add comments, please log in or register