FFCal.mq4 インディケーター
チャート上に経済指標カレンダーを表示するインディケーターになります。
色々なバージョンがありますが、このバージョンでは正常にデータが表示できているようです。
以下、インディケータの解説の要約です。
このインディケーターはXMLファイルをForexFactoryのウェブサイトから取得するためにDLLを必要とします。
取得結果は.CSV ファイルに書き込まれ、 IsNewsTime() 関数で直近の指標発表があるかどうかを判断するためにexperts/filesフィルダに保存されます。
データ取得は、インディケーター装着時と、更新がある場合に6時間毎に行われます。
ForexFactory への負荷を減らすために6時間毎の更新はランダムに行われます。
インディケータへの呼び出し方 (サンプル)
// SAMPLE CALLS TO THE INDICATOR:
//
// int minutesSincePrevEvent =
// iCustom(NULL, 0, "FFCal", true, true, false, true, true, 1, 0);
//
// int minutesUntilNextEvent =
// iCustom(NULL, 0, "FFCal", true, true, false, true, true, 1, 1);
//
// // Use this call to get ONLY impact of previous event
// int impactOfPrevEvent =
// iCustom(NULL, 0, "FFCal", true, true, false, true, true, 2, 0);
//
// // Use this call to get ONLY impact of nexy event
// int impactOfNextEvent =
// iCustom(NULL, 0, "FFCal", true, true, false, true, true, 2, 1);
//
//
EAでの使用例
// extern int MinsBeforeNews = 60; // トレード回避時間(指標前)
// extern int MinsafterNews = 60; // トレード回避時間(指標後)
// bool NewsTime;
指標時間かどうかのチェック用関数
// void NewsHandling()
// {
// static int PrevMinute = -1;
//
// if (Minute() != PrevMinute)
// {
// PrevMinute = Minute();
//
// int minutesSincePrevEvent =
// iCustom(NULL, 0, "FFCal", true, true, false, true, true, 1, 0);
//
// int minutesUntilNextEve nt =
// iCustom(NULL, 0, "FFCal", true, true, false, true, true, 1, 1);
//
// NewsTime = false;
// if ((minutesUntilNextEvent <= MinsBeforeNews) ||
// (minutesSincePrevEvent <= MinsAfterNews))
// {
// NewsTime = true;
// }
// }
// }//newshandling
//
/
パラメーター
IncludeHigh = true; //高のニュースを表示するか
IncludeMedium = true; //中のニュースを表示するか
IncludeLow = false; //低のニュースを表示するか
IncludeSpeaks = true; // "Speaks" 要人発言を含めるか(?)
IsEA_Call = false;//EA呼び出しを使用するか
OffsetHours = 0;
AllowWebUpdates = true; //他のEAやチャートを使用する場合はfalseに設定します。 このインディケータの複数使用は互いに競合します。
Alert1MinsBefore = -1; // -1 はアラート無効
Alert2MinsBefore = -1; // -1 はアラート無効
ReportAllForUSD = false;
EnableLogging = false; // インディケーターが正常に動作しないときのため
ShowNextTwoEvents = true; //次の2つのイベントのみを表示するかどうか
ShowVertNews = false;
TxtSize = 10;
TxtColorTitle = LightGray;
TxtColorNews = DeepSkyBlue;
TxtColorImpact = Red;
TxtColorPrevious = Peru;
TxtColorForecast = Lime;
VertTxtShift = 21;
VertLeftLineShift = 900;
VertRightLineShift = 200;
VertLineColor = SlateBlue; // 垂直ニュースラインの色
VertTxtColor = Black; // 垂直テキストの色
VertTxtSize = 8; // 垂直テキストのサイズ
NewsCorner = 1; // ニュースの表示位置 0=左上 1=左右, 2=左下 , 3=右下
SaveXmlFiles = false; // trueの場合, デイリーの XML ファイルを保管
« イベント&マーケット時間 インディケーター | トップページ | LegoEA »
「インディケータ」カテゴリの記事
- MAC-Fibo indicator(2012.05.15)
- AutoNK(2012.05.14)
- Position Info indi mod インディケーター(2012.05.02)
- MTF-StDev(2012.04.29)
- Heiken Ashi Oscillator(2012.04.28)
トラックバック
この記事のトラックバックURL:
http://app.f.cocolog-nifty.com/t/trackback/1354912/42286156
この記事へのトラックバック一覧です: FFCal.mq4 インディケーター:


