最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

期貨量化軟件:赫茲量化系統(tǒng)品種即時(shí)報(bào)價(jià)序列集合

2023-10-11 13:34 作者:大牛啊呢  | 我要投稿

即時(shí)報(bào)價(jià)數(shù)據(jù)類的集合

在 \MQL5\Include\DoEasy\Collections\ 中,創(chuàng)建一個(gè)名為 TickSeriesCollection.mqh 的新即時(shí)報(bào)價(jià)數(shù)據(jù)集合類文件。

該類是函數(shù)庫(kù)所有對(duì)象的基準(zhǔn)對(duì)象類的衍生類。

我們看一下類主體,并分析其變量和方法:

//+------------------------------------------------------------------+ //| ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? TickSeriesCollection.mqh | //| ? ? ? ? ? ? ? ? ? ? ? ?Copyright 2021, MetaQuotes Software Corp. | //| ? ? ? ? ? ? ? ? ? ? ? ? ? ? https://mql5.com/en/users/artmedia70 | //+------------------------------------------------------------------+ #property copyright "Copyright 2021, MetaQuotes Software Corp." #property link ? ? ?"https://mql5.com/en/users/artmedia70" #property version ? "1.00" //+------------------------------------------------------------------+ //| Include files ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| //+------------------------------------------------------------------+ #include "ListObj.mqh" #include "..\Objects\Ticks\TickSeries.mqh" #include "..\Objects\Symbols\Symbol.mqh" //+------------------------------------------------------------------+ //| Collection of symbol tick series ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | //+------------------------------------------------------------------+ class CTickSeriesCollection : public CBaseObj ?{ private: ? CListObj ? ? ? ? ? ? ? ?m_list; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // List of used symbol tick series //--- Return the tick series index by symbol name ? int ? ? ? ? ? ? ? ? ? ? IndexTickSeries(const string symbol); public: //--- Return (1) itself and (2) tick series collection list and (3) the number of tick series in the list ? CTickSeriesCollection ?*GetObject(void) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?{ return &this; ? ? ? ? ? ? ? } ? CArrayObj ? ? ? ? ? ? ?*GetList(void) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?{ return &this.m_list; ? ? ? ?} ? int ? ? ? ? ? ? ? ? ? ? DataTotal(void) ? ? ? ? ? ? ? ? ? ? ? ?const { return this.m_list.Total(); } //--- Return the pointer to the tick series object (1) by symbol and (2) by index in the list ? CTickSeries ? ? ? ? ? ?*GetTickseries(const string symbol); ? CTickSeries ? ? ? ? ? ?*GetTickseries(const int index); //--- Create a collection list of symbol tick series ? bool ? ? ? ? ? ? ? ? ? ?CreateCollection(const CArrayObj *list_symbols,const uint required=0); //--- Set the flag of using the tick series of (1) a specified symbol and (2) all symbols ? void ? ? ? ? ? ? ? ? ? ?SetAvailableTickSeries(const string symbol,const bool flag=true); ? void ? ? ? ? ? ? ? ? ? ?SetAvailableTickSeries(const bool flag=true); //--- Return the flag of using the tick series of (1) a specified symbol and (2) all symbols ? bool ? ? ? ? ? ? ? ? ? ?IsAvailableTickSeries(const string symbol); ? bool ? ? ? ? ? ? ? ? ? ?IsAvailableTickSeries(void); //--- Set the number of days of the tick history of (1) a specified symbol and (2) all symbols ? bool ? ? ? ? ? ? ? ? ? ?SetRequiredUsedDays(const string symbol,const uint required=0); ? bool ? ? ? ? ? ? ? ? ? ?SetRequiredUsedDays(const uint required=0); //--- Return the last tick object of a specified symbol (1) by index, (2) by time and (4) by time in milliseconds ? CDataTick ? ? ? ? ? ? ?*GetTick(const string symbol,const int index); ? CDataTick ? ? ? ? ? ? ?*GetTick(const string symbol,const datetime tick_time); ? CDataTick ? ? ? ? ? ? ?*GetTick(const string symbol,const long tick_time_msc); //--- Return the new tick flag of a specified symbol ? bool ? ? ? ? ? ? ? ? ? ?IsNewTick(const string symbol); //--- Create a tick series of (1) a specified symbol and (2) all symbols ? bool ? ? ? ? ? ? ? ? ? ?CreateTickSeries(const string symbol,const uint required=0); ? bool ? ? ? ? ? ? ? ? ? ?CreateTickSeriesAll(const uint required=0); //--- Update (1) a tick series of a specified symbol and (2) all symbols ? void ? ? ? ? ? ? ? ? ? ?Refresh(const string symbol); ? void ? ? ? ? ? ? ? ? ? ?Refresh(void); //--- Display (1) the complete and (2) short collection description in the journal ? void ? ? ? ? ? ? ? ? ? ?Print(void); ? void ? ? ? ? ? ? ? ? ? ?PrintShort(void); ? //--- Constructor ? ? ? ? ? ? ? ? ? ? ? ? ? CTickSeriesCollection(); ?}; //+------------------------------------------------------------------+

類的成員變量 m_list 屬于 CListObj 類型 — 它是標(biāo)準(zhǔn)庫(kù) CArrayObj 類的衍生類,就像在函數(shù)庫(kù)中創(chuàng)建的許多其他列表一樣。 CListObj 類的唯一目的是實(shí)現(xiàn)標(biāo)準(zhǔn)庫(kù)對(duì)象基類 CObject 類的 Type() 虛擬方法操作。 該方法應(yīng)返回類的類型 ID。 在這種情況下,它是數(shù)組類型 ID。


期貨量化軟件:赫茲量化系統(tǒng)品種即時(shí)報(bào)價(jià)序列集合的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
开封县| 泉州市| 翼城县| 大英县| 乡宁县| 潞西市| 陇西县| 林口县| 盐津县| 门头沟区| 独山县| 元氏县| 黄大仙区| 麻栗坡县| 临漳县| 砀山县| 承德县| 衡山县| 金堂县| 宣恩县| 霍邱县| 河间市| 永新县| 甘孜| 赫章县| 象州县| 封丘县| 阜宁县| 砀山县| 留坝县| 遂川县| 邵武市| 视频| 安新县| 肃南| 邢台县| 龙井市| 定西市| 洪雅县| 万盛区| 榕江县|