このコーナーでは、EA 自動売買プログラム(スクリプト)を紹介しています。 MT4では自動売買システムをExpert Advisor (EA) という形で作成します。 EAファイル(拡張子.mq4(ソースファイル)、.ex4(システムファイル))は、[掲示板|http://bbs.fxtec.info/x/c-board/c-board.cgi?cmd=;id=metatrader]に添付するか、このページの編集画面から添付できます。 画像は、[掲示板|http://bbs.fxtec.info/x/c-board/c-board.cgi?cmd=;id=metatrader]に添付した画像へのURIを直接貼ってください。 {{outline}} !!!.ex4と.mq4のインストール方法 *.ex4 C:\Program Files\MetaTrader 4\experts ディレクトリ にコピペでおk *.mq4 .mq4はソースファイルなので、コンパイルをする必要がある。 (方法1)C:\Program Files\MetaTrader 4\experts に.mq4ファイルをコピー、  →MetaTrader を起動すると、自動でコンパイルしてくれる。(.ex4ファイルが自動的に作成される)   (方法2)Tools > MetaQuotes Language Editor を開き、 File > Open でコンパイルしたい.mq4ファイルを開く。 んで、ツールバーのCompileをクリック *.ex4と.mq4の違い .mq4をコンパイルしたものが.ex4ファイル。 .mq4だと、プログラムの中身が分かるので手直しが簡単。この形での配布を推奨。 中身を他人に知られたくない場合は.ex4で配布するといいかも。 !カスタムインディケータとEAとの違い Expert Advisor is a mechanical trading system (MTS) linked up to a certain chart. An Advisor starts to run with every incoming tick for a given symbol. The Advisor will not be launched for a new, tick if it is processing the previous one at this moment (i.e., the Advisor has not completed its operation yet). The Advisor can both inform you about a possibility to trade and trade at an account automatically sending orders directly to the trade server. Like most trading systems, the terminal supports testing strategies on history data with displaying trading in-and-out points in the chart. Experts are stored in terminal_directory\experts. Custom Indicator is a technical indicator written independently in addition to those already integrated into the client terminal. Like built-in indicators, they cannot trade automatically and are intended for implementing of analytical functions only. Custom Indicators are stored in terminal_directory\experts\indicators. !!!EA作成で参考になるページ [公式リファレンス MQL4 Reference|http://docs.mql4.com/index] [MQL4 Reference日本語化プロジェクト|http://hikaku.fxtec.info/metatrader/wiki.cgi?page=MQL4+Reference%C6%FC%CB%DC%B8%EC%B2%BD%A5%D7%A5%ED%A5%B8%A5%A7%A5%AF%A5%C8] Show Us Your Best EA - Forex Trading http://www.forex-tsd.com/expert-advisors-metatrader-4/264-show-us-your-best-ea.html Expert Advisor Builder for MetaTrader 4 http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/ SKILL UP FX! :: ツール » MQL入門 http://sufx.core.t3-ism.net/catid_8_subcatid_5.html?page=2 システムトレード研究所 〜FXで完全自動売買〜 http://blog.jidoubaibai.com/ !!!投稿 {{bbs}}