*

Trend Intensity Index という指標

公開日: : 最終更新日:2015/02/24 マネー

Schaff Trend Cycle について調べていたら、似たような指標 Trend Intensity Index について書かれたブログを見つけました。

Trend Intensity IndexにAlert をつける。

早速、インディケーターの TII_RLH.mq4 をダウンロードさせていただき、自前の EA に組み込んでみました。

バックテストを行うと、これが過去最高の成績に。

USDJPY 1時間足 2014/1/1~2015/1/1

なんと、プロフィットファクター 2.97!

勝率も44%となかなかいい。

ドローダウンも低めで安心感があります。

ちょっと改良しがいがありそうです。

GBPJPY H4 も成績がいいです。

GBPJPY H4 2014/1/1-2015/1/1

Minor_period =7, Major_period = 20 に変更しています。

プロフィットファクター 3.06投資資金 3.8倍は魅力的。

 

 

しめしめと思ったら落とし穴が・・・

関連記事

プログラムソース(重大なバグあり使用不可)

//
//    yasciiTII01
//         動作にはTII_RLH.mq4 が必要

//マジックナンバーの定義
#define MAGIC  42235        

//パラメーターの設定//
extern double Lots = 1.0;     //取引ロット数
extern int Slip = 10;         //許容スリッページ数
extern string Comments =  "TII01"; //コメント

extern int Major_Period=18;
extern int Minor_Period=12;
int Major_MaMode=1; //0=sma, 1=ema, 2=smma, 3=lwma, 4=lsma
extern int Major_PriceMode=0;//0=close, 1=open, 2=high, 3=low, 4=median(high+low)/2, 5=typical(high+low+close)/3, 6=weighted(high+low+close+close)/4
color LevelColor=Silver;
extern int BuyLevel=35;
int MidLevel=50;
extern int SellLevel=75;

extern int Fast_period = 14 ;
extern double margin = 0.0 ;

extern double ILC = 100.0 ;
// extern double TP = 1100 ;

//変数の設定//
int Ticket_L = 0; //買い注文の結果をキャッチする変数
int Ticket_S = 0; //売り注文の結果をキャッチする変数
int Exit_L = 0;   //買いポジションの決済注文の結果をキャッチする変数
int Exit_S = 0;   //売りポジションの決済注文の結果をキャッチする変数
int OS1 ;
int OS2 ;
double   OOPL;
double   OOPS;

int start(){

    //暴落対策(始め)

   double FastHH1 = Close[iHighest(NULL, 0, MODE_CLOSE, Fast_period, 1)];
   double FastLL1 = Close[iLowest(NULL, 0, MODE_CLOSE, Fast_period, 1)];

   //買いポジションのエグジット
   OS1 = OrderSelect(Ticket_L, SELECT_BY_TICKET);  
   if( Bid < FastLL1-margin 
       && ( Ticket_L != 0 && Ticket_L != -1 ))
    {     
      Exit_L = OrderClose(Ticket_L,Lots,Bid,Slip,Red);
      if( Exit_L ==1 ) {Ticket_L = 0;}
    }    

   //売りポジションのエグジット
   OS2 = OrderSelect(Ticket_S, SELECT_BY_TICKET); 
   if( Ask> FastHH1+margin
       && ( Ticket_S != 0 && Ticket_S != -1 ))
    {     
      Exit_S = OrderClose(Ticket_S,Lots,Ask,Slip,Blue);
      if( Exit_S ==1 ) {Ticket_S = 0;} 
    }   

   //暴落対策(終わり)

    if (Volume[0]>1 || IsTradeAllowed() == false) return(0) ;

       double tii1 = iCustom(NULL, 0,"TII_RLH", Major_Period, Major_MaMode, Major_PriceMode, Minor_Period, LevelColor , BuyLevel, MidLevel , SellLevel, 0 , 1);
       double tii2 = iCustom(NULL, 0,"TII_RLH", Major_Period, Major_MaMode, Major_PriceMode, Minor_Period, LevelColor , BuyLevel, MidLevel , SellLevel, 0 , 2);
       double tii3 = iCustom(NULL, 0,"TII_RLH", Major_Period, Major_MaMode, Major_PriceMode, Minor_Period, LevelColor , BuyLevel, MidLevel , SellLevel, 0 , 3);       
       double tii4 = iCustom(NULL, 0,"TII_RLH", Major_Period, Major_MaMode, Major_PriceMode, Minor_Period, LevelColor , BuyLevel, MidLevel , SellLevel, 0 , 4);   
       double tiiSM1 = (tii1+tii2+tii3) / 3.0 ;
       double tiiSM2 = (tii4+tii2+tii3) / 3.0 ;

   double lc = ILC;
   if(( Digits ==3 ) ||(Digits ==5)) lc = lc*10.0 ;

   //買いポジションのエグジット
    OS1 = OrderSelect(Ticket_L, SELECT_BY_TICKET);  
    OOPL = OrderOpenPrice();
    if(    ((tii1 < SellLevel && tii2 > SellLevel) || ( OOPL - lc*Point >= Close[1] ) ) //|| ( OOPL+TP <= Close[1] ))
            && ( Ticket_L != 0 && Ticket_L != -1 ))
    {     
      Exit_L = OrderClose(Ticket_L,Lots,Bid,Slip,Red);
      if( Exit_L ==1 ) {Ticket_L = 0;}
    }    

   //売りポジションのエグジット
    OS2 = OrderSelect(Ticket_S, SELECT_BY_TICKET); 
    OOPS = OrderOpenPrice();
    if(    ((tii1 > BuyLevel && tii2 < BuyLevel )||( OOPS + lc*Point <= Close[1] ) ) //|| ( OrderOpenPrice()-TP >= Close[1] ))
          && ( Ticket_S != 0 && Ticket_S != -1 ))
    {     
      Exit_S = OrderClose(Ticket_S,Lots,Ask,Slip,Blue);
      if( Exit_S ==1 ) {Ticket_S = 0;} 
    }   

   //買いエントリー
   if( ((tii1 > BuyLevel && tii2 < BuyLevel) || (tii1 > tiiSM1 && tii2 < tiiSM2) )
       && ( Ticket_L == 0 || Ticket_L == -1 ) 
       && ( Ticket_S == 0 || Ticket_S == -1 ))
    {  
      Ticket_L = OrderSend(Symbol(),OP_BUY,Lots,Ask,Slip,0,0,Comments,MAGIC,0,Red);
    }

   //売りエントリー
   if(( (tii1 < SellLevel && tii2 > SellLevel) || (tii1 < tiiSM1 && tii2 > tiiSM2))
       && ( Ticket_S == 0 || Ticket_S == -1 )
       && ( Ticket_L == 0 || Ticket_L == -1 ))
    {   
      Ticket_S = OrderSend(Symbol(),OP_SELL,Lots,Bid,Slip,0,0,Comments,MAGIC,0,Blue);     
    } 

   return(0);

  }

 

###

関連記事

「投資塾」という Youtube で無料の投資セミナーがすごい

ゆうさん(投資アドバイザー)という方の「投資塾」という Youtube チャンネルが面白くて役に立ち

記事を読む

【ヤフオク】英国エリザベス二世女王陛下 ご在位25周年記念切手コイン

ヤフオクで落札。 英国エリザベス二世女王陛下ご在位25周年記念コイン(SILVER JUBIL

記事を読む

ふるさと納税2回め / 液晶ディスプレィ XU2390HS-B1(2)

前回の記事「ふるさと納税2回め / 液晶ディスプレィ XU2390HS-B1 」でご紹介した液晶

記事を読む

【FX】IS White という EA

昨日は「【FX】IS Black という EA」を紹介したので、同じ作者による「IS White」を

記事を読む

[FX]前週の平均値と順張り&逆張り EA化(5)

以前の記事「前週の平均値と順張り&逆張り EA化(4)」でも書きましたが、各通貨の逆張りバージョ

記事を読む

【FX】 AXI の使い心地(2)

海外FX業者である AXI Axiory とは別業者)のプレミアム口座を開いたのが先月の 29日です

記事を読む

【FX】 Fintokei はアヤシイ?

日本で事業を行っているプロップファームである Fintokei について、「詐欺ではないか」というス

記事を読む

あっちのゴルカン

昨日、「Tracers MSCIオール・カントリー・ゴールドプラス」に 20万円ほど買い注文を出して

記事を読む

ネクスト・ジェネレーションと世界のベスト 5月の配当

毎月配当の超高配当投資信託の「ネクスト・ジェネレーション」と「世界のベスト」の 5月の配当は、

記事を読む

【FX】ECMarkets にデモ口座を開く

TariTali 対応の海外 FX 業者の中に ECMarkets(ECM)というのを見つけました。

記事を読む

Message

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

Gemini で作曲(Lylia)

Gemini の作曲機能(Lylia)を試してみました。 「宇宙

風邪が治らず

ここ2週間ほど咳、咽頭痛、頭痛が止まらず。発熱までは至りません。 よ

AI で画像生成

昔、四国の高松に一度行ったことがありました。 学会に出席したあとすぐ

Japandi ウォールアート 200枚セット Wabi Sabi

Etsy.com で買ったデジタルアート。 私が買ったと

Utagawa Kuniyoshi Wall Art Bundle

「Utagawa Kuniyoshi Wall Art Bun

→もっと見る

  • アクセスカウンター
PAGE TOP ↑