MACD Sample One value at a time.mq5:
final balance 100180.01 USD
EURUSD,M30: 26390728 ticks, 12510 bars generated. Environment synchronized in0:00:00.125. Test passed in0:00:41.016 (including ticks preprocessing 0:00:02.328).
EURUSD,M30: total time from login to stop testing 0:00:41.141 (including 0:00:00.125for history data synchronization)
756 Mb memory used including 1.88 Mb of history data, 512 Mb of tick data
final balance 99523.31 USD
USDJPY,M30: 29801706 ticks, 11837 bars generated. Environment synchronized in0:00:00.032. Test passed in0:01:00.937 (including ticks preprocessing 0:00:02.735).
USDJPY,M30: total time from login to stop testing 0:01:00.969 (including 0:00:00.032for history data synchronization)
819 Mb memory used including 1.88 Mb of history data, 576 Mb of tick data
MACD Sample 4 to 5 MQL4 style.mq5:
final balance 100192.51 USD
EURUSD,M30: 26390728 ticks, 12510 bars generated. Environment synchronized in0:00:00.140. Test passed in0:01:37.969 (including ticks preprocessing 0:00:02.329).
EURUSD,M30: total time from login to stop testing 0:01:38.109 (including 0:00:00.140for history data synchronization)
755 Mb memory used including 1.88 Mb of history data, 512 Mb of tick data
final balance 99550.10 USD
USDJPY,M30: 29801706 ticks, 11837 bars generated. Environment synchronized in0:00:00.031. Test passed in0:01:51.328 (including ticks preprocessing 0:00:02.500).
USDJPY,M30: total time from login to stop testing 0:01:51.359 (including 0:00:00.031for history data synchronization)
819 Mb memory used including 1.88 Mb of history data, 576 Mb of tick data
2018.01.2613:34:10.520 Core 1 authorized (agent build 1755)
2018.01.2613:34:10.522 Tester EURUSD,M1 (MetaQuotes-Demo): testing of Experts\Examples\MACD\MACD Sample.ex5 from2017.09.0100:00 to 2018.01.2600:002018.01.2613:34:16.792 Core 1 EURUSD,M1 (MetaQuotes-Demo): generating based on real ticks
2018.01.2613:34:16.792 Core 1 EURUSD,M1: testing of Experts\Examples\MACD\MACD Sample.ex5 from2017.09.0100:00 to 2018.01.2600:00 started with inputs:
2018.01.2613:34:16.792 Core 1 InpLots=0.12018.01.2613:34:16.792 Core 1 InpTakeProfit=502018.01.2613:34:16.792 Core 1 InpTrailingStop=302018.01.2613:34:16.792 Core 1 InpMACDOpenLevel=32018.01.2613:34:16.792 Core 1 InpMACDCloseLevel=22018.01.2613:34:16.792 Core 1 InpMATrendPeriod=262018.01.2613:25:46.482 Core 1 final balance 10168.90 USD2018.01.2613:25:46.482 Core 1 EURUSD,M1: 9753093 ticks, 147480 bars generated. Environment synchronized in0:00:02.610.
Test passed in0:00:19.062 (including ticks preprocessing 0:00:02.078).
2018.01.2613:25:46.482 Core 1 EURUSD,M1: total time fromlogin to stop testing 0:00:21.672 (including 0:00:02.610for history data synchronization)
2018.01.2613:25:46.482 Core 1600 Mb memory used including 44 Mb of history data, 256 Mb of tick data
これがあなたの設定での私のログです。
EURUSD,M1 (MetaQuotes-Demo): generating based on real ticks
EURUSD,M1: testing of Experts\Examples\MACD\MACD Sample.ex5 from2017.09.0100:00 to 2018.01.2600:00 started with inputs:
InpLots=0.10
InpTakeProfit=50
InpTrailingStop=30
InpMACDOpenLevel=3
InpMACDCloseLevel=2
InpMATrendPeriod=26
final balance 10000168.90 USD
EURUSD,M1: 9753093 ticks, 147480 bars generated. Environment synchronized in0:00:00.031. Test passed in0:00:06.302.
EURUSD,M1: total time from login to stop testing 0:00:06.333 (including 0:00:00.031for history data synchronization)
571 Mb memory used including 44 Mb of history data, 256 Mb of tick data
2018.01.2613:25:46.482 Core 1 final balance 10168.90 USD2018.01.2613:25:46.482 Core 1 EURUSD,M1: 9753093 ticks, 147480 bars generated. Environment synchronized in0:00:02.610.
Test passed in0:00:19.062 (including ticks preprocessing 0:00:02.078).
2018.01.2613:25:46.482 Core 1 EURUSD,M1: total time fromlogin to stop testing 0:00:21.672 (including 0:00:02.610for history data synchronization)
2018.01.2613:25:46.482 Core 1600 Mb memory used including 44 Mb of history data, 256 Mb of tick data
追記 USDJPY M30 2017.02.01-2018.01.18 "All ticks" (記事通り) MetaQuotes-Demoで標準のMACDサンプルを動かしてみました。
8秒に収まるのか?特に1秒で?
取引、自動取引システム、取引戦略のテストに関するフォーラム
記事 "トレーダーのためのライフハック:指標からファーストフードを調理する "の議論
fxsaber, 2018.01.26 11:06 AM.
何もしていません。そのまま実行。上記のログに再現するためのすべてのデータがあります。 あなたの結果は利益の面で私のものと完全に同じでなければなりません。また、パフォーマンスも大差ありません。
配信からMACDを サンプルにしました。そして、残高のEUROはどこから来ているのでしょうか?
そして、テスト時間はまだあなたよりはるかに長いです。
記事のタイムフレームで、EURUSD,M30とUSDJPY,M30で
テスト時間が2回異なる。しかも8秒でも1秒でもない。
残高を比較すると - はい、数字にわずかな違いがありますが、チャート上では目立ちません。
実際、このトピックの説明は、ここでは少し違う次元で見られる:
この場合、必要な値はより高速に計算され、より少ないメモリで済みます。このアイデアは、カスタム・インジケータに 統一的にアクセスできるようなインターフェースを書くことですが、インジケータが独立した純粋な関数として実装されている場合、ハンドルの代わりにこの関数が参照されます。 その結果、高速化を実現すると同時に、任意のインジケーターへのアクセスを失うこともありません。これは興味深いトピックだ。
インジケーターからOnCalculateを取り出し、新しい名前で少し修正し、インジケーターのコードに追加する。そうでしょう?
やってみると面白いですよ。インジケーターからOnCalculateを取り出し、新しい名前で少し修正し、インジケーターのコードに追加します。そうでしょう?
私はこれをiRSIOnArray()のために行いました。インジケーターでは動作します。Expert Advisorから呼び出すには、そう単純にはいかない。
取引、自動取引システム、取引戦略のテストに関するフォーラム
記事 "トレーダーのためのライフハック:指標からファーストフードを調理する "についての議論
ラシッド・ウマロフ, 2018.01.26 11:30 AM
MACD SaMpleを設定上の供給から作りました。EUROはどこからバランスしているのか、それはポイントではありませんか?
それはポイントではありません。ここからEUR
そして、テスト時間はまだあなたよりはるかに長いです。
これがあなたの設定での私のログです。
なぜ私の場合は3.5倍も速いのか(バックテスト前に再コンパイルしてキャッシュを削除した) - 私にはわかりません。設定
理由を見つけましょう!これはとても重要だと思います。私はHDDを持っていない(SSDのみ)。それが問題なのかもしれません。でも、それだとMT5にとって非常にまずい。このコンポはとても古く、5年は確実に経っている。だから変なんだ。
テスト時間は2倍違う。しかも8秒でも1秒でもない。
Terminalの起動 ログから設定行を表示する。
なぜ実行速度が3.5倍も速くなったのか(バックテスト前に再コンパイルすることでキャッシュが除去された)、それは分からない。コンフィギュレーション
その理由を探ってみよう!これはとても重要なことだと思う。私はHDDを持っていない(SSDのみ)。それが問題なのかもしれません。でも、それだとMT5にとって非常にまずい。コンプはとても古く、5年は確実に経っている。だから変なんだ。
これが私のコンピュター、SSDなし
すべての投稿を見たが、ティックの数は同じだ。