記事についてのディスカッション

 

新しい記事「DoEasyライブラリでの価格(第65部): 板情報コレクションとMQL5.comシグナル操作クラス」はパブリッシュされました:

本稿では、すべての銘柄の板情報コレクションクラスを作成し、シグナルオブジェクトクラスを作成することによってMQL5.comシグナルサービスを使用するための機能の開発を開始します。

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 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();


EAをコンパイルし、2つの銘柄の使用法と現在のチャート期間を設定で事前に設定して起動します。


作成された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: 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

作者: Artyom Trishkin

理由: