プログラム実行【Program Run】

For an MQL4 program to work, it must be compiled (the “Compile” button or F5). It must be compiled without any errors (warnings are allowed, but they must be analyzed). At this, in the corresponding directory, terminal_dir\experts, terminal_dir\experts\indicators, or terminal_dir\experts\scripts, an executable file must be created that has the same name and extension EX4. It is this file that can be launched for execution.

MQL4 プログラムが動作するために、コンパイル(「Compile」ボタン、もしくは F5 )をする必要があります。コンパイルは、どんなエラーも発生してはいけません(警告は許されますが、それらを分析する必要があります)。これで、対応するディレクトリ terminal_dir\experts、 terminal_dir\experts\indicators、または terminal_dir\experts\scripts に同じ名前で拡張子 EX4 をもっている実行可能ファイルが作成されます。それは実行するために起動することができるファイルです。

Experts, custom indicators, and scripts are attached to one of the opened charts by dragging with the mouse from the “Navigator” window of the client terminal to the corresponding chart (the Drag’n’Drop technique). MQL4 programs can work only when the client terminal is on.

エキスパート、カスタム インディケータ、およびスクリプトは、ターミナル クライアントの開いているチャートの1つに、ターミナル クライアントの “Navigator” ウィンドウから、対応するチャートにマウスでドラッグして、関連付けられます(ドラック&ドロップ手法)。MQL4 プログラムは、ターミナル クライアントが起動しているときのみ作動することができます。

For an expert to stop working,it must be deleted from the chart using “Expert Advisors – Delete” in the chart context menu. The status of the “Enable Expert Advisors” field influences the running of the expert.

エキスパートの動作を停止するには、チャートのコンテキスト(右クリック)メニューで “Expert Advisors – Delete” で使っているチャートから削除する必要があります。”Enable Expert Advisors”フィールドの状態は、エキスパートの実行に影響します。

For a custom indicator to stop working, it must be deleted from the chart.

カスタム インディケータを停止するには、チャートからそれを削除する必要があります。

Custom indicators and expert advisors operate until they are explicitly deleted from the chart. Information about the attached experts and custom indicators is saved between client terminal startups. Scripts are executed once and deleted automatically after they have completed their operation, or when the current chart has been closed or changed its status, or when the client terminal has been terminated. Scripts are not launched at the terminal restart since information about them is not saved.

カスタム インディケータとエキスパート アドバイザーは、チャートから明確に削除されるまで稼動します。エキスパートとカスタム インディケーターの関連付け情報は、ターミナル クライアントが起動している間、保存されます。スクリプトは1度だけ実行され、その動作を完了した時、または、現在のチャートが閉じられた時、スクリプトの状態が変更された時、クライアント ターミナルが終了した時に自動的に削除されます。スクリプトの情報は保存されませんので、ターミナルの再起動時に起動されません。

In the same chart, one expert, one script, and an unlimited amount of indicators can work simultaneously.

同じチャートで、1つのエキスパート、1つのスクリプト、および無制限の量のインディケーターを同時に動かすことができます。

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">