スクリプト: ThirdPartyTicks - ページ 9

 
fxsaber、ありがとう!
 
Sergey Lebedev:

今日、私もこのスクリプトを扱っていて、トラベラー00 2と同様に、リフレッシュがあるかどうかの二重チェックがあることを理解した

- まず、私たちはRefresh()を実行します - すべてのシンボルのセクションでは、サーバー上の更新があるかどうかを判断しました、

オンライン・ファイルとオフライン・ファイルのリストを取得。

- 次に Update(false) を実行します - 特定のシンボルについて新しい zip ファイルをダウンロードします、

リストの差分をダウンロードする。

- その後、ToCustomSymbol(Sync, false, MinPips) を実行 - ここでカスタムシンボルを再構築しますが、最初に Sync = t rue で あった場合、 Refresh(true) が繰り返し呼び出されます。

同期が行われたため、アップロード後にOfflineリストをリフレッシュして、そこから引用符の解析を開始する必要があります。

 
スクリプトのティックのソースは現在MT5です。だから直接可能だ(試していない)。
 
確認した。M15のローソクも一致しないことがある。
ファイル:
Image1.png  25 kb
 
Evgenii Kuznetsov:
確認した。M15のローソクも一致しないことがある。

一致する必要はない。ティックを1ミリ秒ずらすと、H1バーでさえどのように変化したかがわかります。

 
fxsaber:
スクリプトのティックのソースがMT5になりました。だから、それを直接使うことは可能だ(試していない)。

運が悪いのか、直接使わないほうがいいのか、どちらかだ。過去3ヶ月間稼動

AUDNZD : 2020.03.02 23:59 - real ticks absent for 72 minutes out of 1435 total minute bars within a day
AUDNZD : 2020.03.02 23:59 - real ticks discarded for 1363 minutes out of 1435 total minute bars within a day
AUDNZD : 2020.03.02 23:59 - 151776 tick prices mismatch for 1363 minute bars
AUDNZD : 2020.03.03 23:59 - real ticks absent for 894 minutes out of 1435 total minute bars within a day
AUDNZD : 2020.03.03 23:59 - real ticks discarded for 541 minutes out of 1435 total minute bars within a day
AUDNZD : 2020.03.03 23:59 - 72794 tick prices mismatch for 541 minute bars
AUDNZD : 2020.03.04 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.04 23:59 - 105750 tick prices mismatch for 1435 minute bars
AUDNZD : 2020.03.05 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.05 23:59 - 93130 tick prices mismatch for 1435 minute bars
AUDNZD : 2020.03.06 23:59 - real ticks absent for 4 minutes out of 1434 total minute bars within a day
AUDNZD : 2020.03.06 23:59 - real ticks discarded for 1430 minutes out of 1434 total minute bars within a day
AUDNZD : 2020.03.06 23:59 - 132351 tick prices mismatch for 1430 minute bars
AUDNZD : 2020.03.09 23:59 - real ticks absent for 1 minutes out of 1424 total minute bars within a day
AUDNZD : 2020.03.09 23:59 - real ticks discarded for 1423 minutes out of 1424 total minute bars within a day
AUDNZD : 2020.03.09 23:59 - 226074 tick prices mismatch for 1423 minute bars
AUDNZD : 2020.03.10 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.10 23:59 - 189595 tick prices mismatch for 1436 minute bars
AUDNZD : 2020.03.11 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.11 23:59 - 156645 tick prices mismatch for 1436 minute bars
AUDNZD : 2020.03.12 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.12 23:59 - 239423 tick prices mismatch for 1436 minute bars
AUDNZD : 2020.03.13 23:59 - real ticks absent for 4 minutes out of 1379 total minute bars within a day
AUDNZD : 2020.03.13 23:59 - real ticks discarded for 1375 minutes out of 1379 total minute bars within a day
AUDNZD : 2020.03.13 23:59 - 240354 tick prices mismatch for 1375 minute bars
AUDNZD : 2020.03.16 23:59 - real ticks absent for 21 minutes out of 1436 total minute bars within a day
AUDNZD : 2020.03.16 23:59 - real ticks discarded for 1415 minutes out of 1436 total minute bars within a day
AUDNZD : 2020.03.16 23:59 - 232846 tick prices mismatch for 1415 minute bars
AUDNZD : 2020.03.17 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.17 23:59 - 170369 tick prices mismatch for 1436 minute bars
AUDNZD : 2020.03.18 23:59 - real ticks absent for 2 minutes out of 1436 total minute bars within a day
AUDNZD : 2020.03.18 23:59 - real ticks discarded for 1434 minutes out of 1436 total minute bars within a day
AUDNZD : 2020.03.18 23:59 - 236843 tick prices mismatch for 1434 minute bars
AUDNZD : 2020.03.19 23:59 - all the real ticks discarded within a day
AUDNZD : 2020.03.19 23:59 - 322182 tick prices mismatch for 1436 minute bars
AUDNZD : 2020.03.20 23:59 - real ticks absent for 3 minutes out of 1379 total minute bars within a day
AUDNZD : 2020.03.20 23:59 - real ticks discarded for 1376 minutes out of 1379 total minute bars within a day
AUDNZD : 2020.03.20 23:59 - 212599 tick prices mismatch for 1376 minute bars
AUDNZD : 2020.03.23 23:59 - real ticks discarded for 1422 minutes out of 1429 total minute bars within a day
AUDNZD : 2020.03.23 23:59 - 363481 tick prices mismatch for 1422 minute bars
AUDNZD : real ticks begin from 2020.01.02 00:00:00
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  real ticks absent for 1001 minutes of 28527 total minute bars, every tick generation used
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  real ticks discarded for 21829 minutes of 28527 total minute bars, every tick generation used
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  real ticks discarded for 7 whole days
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  tick volumes not matched for 1429 minute bars
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  tick prices of 3146212 ticks not matched for 21829 minute bars
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  last prices absent for 7 minute bars, bid prices used
AUDNZD : 2020.03.01 00:00 - 2020.03.30 00:00  last prices absent for 1 whole days, bars built by bid prices
 
traveller00:

運が悪いのか、ダイレクトを使わない方がいいのか。ここ3カ月はダイレクトを使い続けている。

私はティックソースについて話しているのであって、元のシンボルでのバックテストについて話しているのではありません。

MT5 TesterはティックよりもM1バーを優先します。ログにエラーが多いのはそのためです。

 
ええ、理解しています。ただ、ウェブ経由でなくとも、シンボルを直接コピーしてカスタムシンボルを作る方がまだましだと言いたいんだ。でも、シンボルを直接テストするのは止めた方がいい。
 
traveller00:
シンボルで直接テストしない方が良い。

取引、自動取引システム、取引戦略のテストに関するフォーラム

ライブラリ: シンボル

fxsaber, 2020.03.26 08:02

Swissquote-Serverで デモ口座を開き、このスクリプトを 実行すると、次のような行が表示されます。

2020.03.26 08:53:12.567 5, 5

これは、ティック履歴のBid/Ask価格がマーケットウォッチの価格と5ピップス異なっていることを意味します。

従って、TesterではTerminalで表示されているものを元のシンボルで再現することはできません。


唯一の解決策は、ティック履歴の対応するデマキャップに基づくカスタムシンボルを使用することです。

つまり、元のシンボル上のTesterは、完全に同期されたティックとバーの履歴を生成できます。結果だけがでたらめになります。

 

バグなのか機能なのかわかりませんが、エラーの原因になることがあります。フィルタリングされていない建値では、商品タイプはFXのままです。