Discussion of article "Prices in DoEasy library (part 59): Object to store data of one tick"

 

New article Prices in DoEasy library (part 59): Object to store data of one tick has been published:

From this article on, start creating library functionality to work with price data. Today, create an object class which will store all price data which arrived with yet another tick.

Compile the EA and launch it on the chart having preliminary set in settings to use the current symbol and timeframe. After the launching and arrival of the new tick, the description of tick data object (arrived tick) will be displayed in the journal:

Account 8550475: Artyom Trishkin (MetaQuotes Software Corp.) 10426.13 USD, 1:100, Hedge, Demo account MetaTrader 5
--- Initialize "DoEasy" library ---
Work with the current symbol only: "EURUSD"
Work with the current timeframe only: H1
EURUSD symbol timeseries: 
- "EURUSD" H1 timeseries: Requested: 1000, Actually: 1000, Created: 1000, On the server: 5153
Library initialize time: 00:00:00.000
============= Beginning of parameter list (Tick "EURUSD" 2020.12.16 13:22:32.822) =============
Last price update time in milliseconds: 2020.12.16 13:22:32.822
Last price update time: 2020.12.16 13:22:32
Volume for the current Last price: 0
Flags: 6
Changed data on the tick:
 - Ask price change
 - Bid price change
------
Bid price: 1.21927
Ask price: 1.21929
Last price: 0.00000
Volume for the current Last price with greater accuracy: 0.00
Spread: 0.00002
------
Symbol: "EURUSD"
============= End of parameter list (Tick "EURUSD" 2020.12.16 13:22:32.822) =============

and with each new tick a comment with its short description will be displayed on the chart:



Author: Artyom Trishkin