我们也在 OnInitDoEasy() 函数中进行一些修改。 现在,所有用到品种的即时报价序列创建已实现,可直接访问函数库主对象的相应方法。 此外,我还加入了针对所创建 DOM 序列的检查:
//--- 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 symbolsengine.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 journalengine.GetMBookSeriesCollection().Print();
编译 EA 并启动它,在设置中预先设置两个所用品种,和当前图表周期:
位于所创建 DOM 快照集合上的数据,第一个适配信号的完整数据,以及关于所有盈利的免费信号的简要数据均会被显示到日志里。 清单的末尾含有快照序列中的数据,和当前图表的第一个获得的 DOM 快照:
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: 216048DOM 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
新文章 DoEasy 函数库中的价格(第六十五部分):市场深度集合并操控 MQL5.com 信号的类已发布:
在本文中,我将创建所有品种的市场深度集合类,并着手开发创建信号对象类来操控 MQL5.com 信号服务的功能。
我们也在 OnInitDoEasy() 函数中进行一些修改。 现在,所有用到品种的即时报价序列创建已实现,可直接访问函数库主对象的相应方法。 此外,我还加入了针对所创建 DOM 序列的检查:
编译 EA 并启动它,在设置中预先设置两个所用品种,和当前图表周期:
位于所创建 DOM 快照集合上的数据,第一个适配信号的完整数据,以及关于所有盈利的免费信号的简要数据均会被显示到日志里。 清单的末尾含有快照序列中的数据,和当前图表的第一个获得的 DOM 快照:
作者:Artyom Trishkin