FOREX.com MT4 中級者のためのMeta Trader 4実践編 カスタム指標の作り方 2012年5月31日 アセンダント 山中康司
はじめにお 読 みください < 当 社 主 催 のセミナーについて> 本 セミナーにて 紹 介 する 内 容 は 為 替 取 引 に 関 する 情 報 ですが 通 貨 の 種 類 に 関 わらずその 売 買 を 推 奨 するものではありません 本 セミナーにて 紹 介 する 内 容 は 特 定 の 投 資 目 的 金 融 情 勢 あるいは 特 定 の 方 のニーズを 考 慮 ものではありません 本 セミナーにて 紹 介 する 情 報 は 信 頼 できる 情 報 源 から 入 手 されたもので すが その 正 確 性 完 全 性 を 保 証 するものではなく 当 該 情 報 または 意 見 を 信 頼 したことに 起 因 して 発 生 するいかなる 直 接 的 間 接 的 または 結 果 的 損 失 についても 弊 社 はいかなる 責 任 も 負 いません 投 資 に 関 する 判 断 の 最 終 決 定 は ご 自 身 で 判 断 されますようお 願 いいたします 当 セミナーおいて 弊 社 の 外 国 為 替 証 拠 金 取 引 への 勧 誘 を 行 う 場 合 も ございます アセンダントおよびフォレックス ドットコムは 本 日 のセミナーで 示 す 手 法 の 利 用 により 生 ずるいかなる 損 害 の 責 任 を 負 うものではありません Ascendant Inc. 2
今 後 のセミナーについて 7 月 のForex.com MT4セミナー 予 定 7 月 12 日 ( 木 )20:00 MT4 for iphoneの 機 能 紹 介 7 月 26 日 ( 木 )20:00 初 心 者 の 疑 問 に 回 答 今 年 のセミナー 参 加 者 層 6 割 以 上 の 方 が 初 めて~ 始 めて1 年 以 内 と 回 答 今 までよりも 初 心 者 向 けの 内 容 を 増 やす 予 定 Ascendant Inc. 3
MT4 for iphone & ipad 概 要 リアルタイムでの 気 配 値 チャート 表 示 ズーム スクロール 機 能 30 種 類 のテクニカルインディケーター 7 種 類 の 時 間 枠 バーチャート ローソク 足 ラインチャート テクニカル 指 標 の 色 や 線 幅 の 変 更 その 他 Ascendant Inc. 4
セミナー バックナンバー 検 索 過 去 のセミナー 内 容 の 検 索 が 可 能 http://jp.forex.com/jp/seminar/backnumber.shtml Ascendant Inc. 5
カスタム 指 標 の 利 用 カスタム 指 標 の 作 成 Bollinger Envelope Band Width (PIPS) Band Width (%) Molanis Indicator Builder 本 日 の 内 容 Ascendant Inc. 6
カスタム 指 標 の 利 用
MT4で 探 す ナビゲーターペイン Custom Indicators 地 球 アイコン 2011 年 6 月 28 日 現 在 1374more と 1374 種 類 のテクニカル 指 標 が 利 用 可 能 Ascendant Inc. 8
インターネットで 探 す テクニカル 指 標 を 集 めたサイトにアクセス < 国 内 サイト> メタトレーダーインジケーター 集 http://fx7-kawase.com/ MT4でFX http://www.abysse.co.jp/mt4/ < 海 外 サイト> ForexMT4.com http://www.forexmt4.com/mt_yahoo/ Ascendant Inc. 9
自 分 で 作 る EAを 自 分 で 作 る 時 同 様 に MQLの 知 識 が 必 要 一 から 作 るのはハードルが 高 いので 標 準 装 備 の 指 標 やダウンロードした 指 標 の 部 分 修 正 から 始 める 今 回 は ここ に 焦 点 をあてます ある 程 度 の 知 識 は 必 要 でもコツさえわかれば 決 して 難 しくなく EA 作 成 よりは 簡 単 Ascendant Inc. 10
カスタム 指 標 の 作 成
ボリンジャーバンド Ascendant Inc. 12
ボリンジャーバンドWeb ジョン ボリンジャー 氏 のサイト( 英 語 ) www.bollingerbands.com www.bbands.com www.equitytrader.com www.bbforex.com ボリンジャーバンド 派 生 指 標 が 式 とともに 紹 介 されている http://www.bbscript.net/examples/ Ascendant Inc. 13
ボリンジャーエンベロープ Ascendant Inc. 14
カスタム 指 標 の 大 枠 表 題 各 種 プロパティ パラメータ バッファの 設 定 カスタム 指 標 の 設 定 利 用 するテクニカル 指 標 の 設 定 Ascendant Inc. 15
ボリンジャーエンベロープ 1 //+------------------------------------------------------------------+ // Boll_Envelope.mq4 // Copyright J.Bollinger/Panrolling/Yamanaka //+------------------------------------------------------------------+ #property copyright "Copyright J.Bollinger/Panrolling/Yamanaka" #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 Red #property indicator_color2 Green #property indicator_color3 Blue //---- indicator parameters extern int BandsPeriod=20; extern double BandsDeviations=1.7; Ascendant Inc. 16
ボリンジャーエンベロープ 2 //---- buffers string indname="bollinger_envelope"; double ExtMapBuffer0[]; double ExtMapBuffer1[]; double ExtMapBuffer2[]; int FixZeroD=0; //---- Custom indicator initialization function int init() { SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1); SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,1); SetIndexStyle(2,DRAW_LINE,STYLE_SOLID,1); SetIndexBuffer(0,ExtMapBuffer0); SetIndexBuffer(1,ExtMapBuffer1); SetIndexBuffer(2,ExtMapBuffer2); IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)); return(0); } Ascendant Inc. 17
ボリンジャーエンベロープ 3 //---- Custom indicator Bollinger Envelope int start() { int i,counted_bars; Counted_bars=IndicatorCounted(); i=bars-counted_bars-1; if(counted_bars == 0) i = Bars -1 -FixZeroD; double sum=0; while(i>=0) { ExtMapBuffer0[i]=iBands(NULL,0,BandsPeriod,BandsDeviations,0,PRICE_HIGH,MODE_UPPER,i ); ExtMapBuffer1[i]=iBands(NULL,0,BandsPeriod,BandsDeviations,0,PRICE_LOW,MODE_LOWER,i) ; } } ExtMapBuffer2[i]=(ExtMapBuffer0[i]+ExtMapBuffer1[i])/2; i--; return; Ascendant Inc. 18
バンド 幅 (PIPS) Ascendant Inc. 19
バンド 幅 (PIPS) 1 //+------------------------------------------------------------------+ // Boll_Band-width.mq4 // Copyright J.Bollinger/Panrolling/Yamanaka //+------------------------------------------------------------------+ #property copyright "Copyright J.Bollinger/Panrolling/Yamanaka" #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Red //---- indicator parameters extern int BandsPeriod=20; extern double BandsDeviations=2.0; Ascendant Inc. 20
バンド 幅 (PIPS) 2 //---- buffers string indname="boll_band-width"; double ExtMapBuffer0[]; int FixZeroD=0; //---- Custom indicator initialization function int init() { SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1); SetIndexBuffer(0,ExtMapBuffer0); IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)); } return(0); Ascendant Inc. 21
バンド 幅 (PIPS) 3 //---- Custom indicator Bollinger Band-width int start() { int i,counted_bars; Counted_bars=IndicatorCounted(); i=bars-counted_bars-1; if(counted_bars == 0) i = Bars -1 -FixZeroD; double sum=0; while(i>=0) { ExtMapBuffer0[i]=(iBands(NULL,0,BandsPeriod,BandsDeviations,0,PRICE_CLOSE,MODE_UPPER,i)-iBands(NULL,0,BandsPeriod,BandsDeviations,0,PRICE_CLOSE,MODE_LOWER,i)); } } i--; return; Ascendant Inc. 22
バンド 幅 (%) Ascendant Inc. 23
バンド 幅 (%) 3 //Custom indicator Bollinger Band-width int start() { int i,counted_bars; Counted_bars=IndicatorCounted(); i=bars-counted_bars-1; if(counted_bars == 0) i = Bars -1 -FixZeroD; double sum=0; while(i>=0) { ExtMapBuffer0[i]=(iBands(NULL,0,BandsPeriod,BandsDeviations,0,PRICE_CLOSE,MODE_UPPER,i)- ibands(null,0,bandsperiod,bandsdeviations,0,price_close,mode_lower,i))/(0.0000000000 001+iMA(NULL,0,BandsPeriod,0,MODE_SMA,PRICE_CLOSE,i)); } i--; return; } Ascendant Inc. 24
Molanis Indicator Builder
Molanis Indicator Builder Molanis(モラニス) 社 による 製 品 MT4 用 カスタム 指 標 作 成 ツール Indicator Builder for MT4 スタンダード 版 (ex4ファイルの 生 成 ) $29.99 Stratagy Builderとのスタンダード 版 セット $84.99 エクセル 感 覚 で 式 を 記 述 すればカスタム 指 標 が 作 成 可 能 MQLの 知 識 が 不 要 なので 初 心 者 でも 簡 単 Pro 版 ではMQLの 知 識 があればカスタマイズも 可 能 www.molanis.com すぐに 買 いたい 方 は プロモコード jp15 をメールで 知 らせると15 %OFFの 割 引 価 格 で 購 入 できます Ascendant Inc. 26
Molanis SBセミナー 第 2 回 2012 年 7 月 9 日 ( 月 )20:00~21:00 主 催 株 式 会 社 直 伝 講 師 山 中 康 司 (アセンダント) 詳 細 は 直 伝 チャンネルにて( 要 申 込 ) http://www.jikiden.co.jp/ カスタム 指 標 を 作 成 できるIndicator Builderも 紹 介 前 回 のMolanisセミナーのオンディマンド http://ascendant.jp のモラニス ストラテジー ビルダー の 項 目 からご 覧 ください 割 引 価 格 での 購 入 方 法 も 説 明 しています Ascendant Inc. 27
セミナーサポート 掲 示 板 http://ascendant.bbs.coocan.jp/ Ascendant Inc. 28