無料でロボットをダウンロードする方法を見る
Facebook上で私たちを見つけてください。
私たちのファンページに参加してください
興味深いスクリプト?
それではリンクにそれを投稿してください。-
他の人にそれを評価してもらいます
記事を気に入りましたか?MetaTrader 5ターミナルの中でそれを試してみてください。
エキスパート

History Downloader - MetaTrader 4のためのエキスパート

ビュー:
14000
評価:
(7)
パブリッシュ済み:
2018.02.14 11:51
このコードに基づいたロボットまたはインジケーターが必要なら、フリーランスでご注文ください フリーランスに移動

The EA downloads the quote history of the current chart symbol and period by "pressing Home button". The method is based on the idea implemented in the s-Downloader от Talex script (CodeBase link).

The main difference from s-Downloader is that only the bars of the current timeframe are downloaded up to the specified time. Personally, I find this more convenient since I conduct tests on a single TF (the one I usually work with).

In this implementation, the EA is executed on a single start() iteration. This caused some difficulties with obtaining the number of bars in the chart window and the time of the first bar. Therefore, the EA takes these data from the global variables updated using the HistoryDownloaderI indicator (in the attachment). Actually, apart from updating the global variables, the indicator does nothing more :)

The attachment contains the EA (HistoryDownloader.mq4), the indicator (HistoryDownloaderI.mq4) and the archive with both source codes + compiled files (HistoryDownloader.zip)

How to use all that:

  • Press Ctrl+О, check the maximum bars in history and on the chart;
  • Open the chart window of a necessary symbol and select the TF the history is to be downloaded for;
  • Disable auto scroll and set the scale to minimum ("zooming out" for as much as possible);
  • Launch HistoryDownloaderI indicator on the chart;
  • After that, launch the EA.

EA parameters:

datetime ToDate - date, up to which the quote history is downloaded

int Timeout - chart update waiting period, in milliseconds. The default is 1 second (1000)

int MaxFailsInARow - maximum number of consecutive unsuccessful attempts to "shift" the chart. The default is 10

I made my best to comment the code in details. After all, this is my first publication in CodeBase.

MetaQuotes Ltdによってロシア語から翻訳されました。
元のコード: https://www.mql5.com/ru/code/9153

Currency Strength Meter Currency Strength Meter

Displays the relative strengths of chosen currencies on one chart.

Signal Candles Signal Candles

Get entry signals from specific candles based on your rules.

s-Downloader.mq4 s-Downloader.mq4

The script downloads history for all timeframes and symbols in the Market Watch.

Save and show the objects of testing chart Save and show the objects of testing chart

After back testing, we usually need to analyze the testing result on a new chart which we have loaded our template,in this case we need to copy the objects on the testing chart to the new chart. This script helps to save the objects into a file and show the objects on a new chart.