通達信盈利統(tǒng)計指標公式
基本概況:
- 指標類別: 通達信指標
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標語言: 簡體中文
- 指標來源: 互聯(lián)網
- 指標日期: 2017-08-16 00:00:00
內容介紹:
通達信盈利統(tǒng)計指標公式:
選股條件:=CROSS(MA(C,10),MA(C,20));
贏利系數(shù):10,NODRAW;
止損系數(shù):10,NODRAW;
待倉天數(shù):20,NODRAW;
買點:=選股條件,COLORYELLOW;
買距:=BARSLAST(買點),NODRAW;
MM:=買距>0;
買價:=REF(C,買距)*MM,COLORYELLOW;
止贏價:=買價*(100+贏利系數(shù))/100;
止損價:=買價*(100-止損系數(shù))/100;
預賣:=H>止贏價 OR C<止損價 OR 買距=待倉天數(shù) ;
預賣距:=BARSLAST(預賣),NODRAW;
盈利:= H>止贏價 AND REF(預賣距>=買距,1),COLORRED ,LINETHICK1;
虧損:=C<止損價 AND REF(預賣距>=買距,1),COLORGREEN ,LINETHICK1;
平倉:= 買距=待倉天數(shù) AND REF(預賣距>=買距,1) ,LINETHICK1 ;
盈平倉:=平倉=1 AND C>買價,NODRAW;
虧平倉:=平倉=1 AND C<買價,NODRAW;
買統(tǒng)計:CONST(COUNT(買點,BARSCOUNT(買點))), COLORYELLOW,NODRAW;
盈統(tǒng)計:CONST(COUNT(盈利,BARSCOUNT(盈利))) ,COLORRED,NODRAW;
虧統(tǒng)計:CONST(COUNT(虧損,BARSCOUNT(虧損))) ,COLORGREEN,NODRAW;
平倉統(tǒng)計:CONST(COUNT(平倉,BARSCOUNT(平倉))),COLORWHITE,NODRAW;
盈平倉統(tǒng)計:CONST(COUNT(盈平倉,BARSCOUNT(盈平倉))) ,COLORRED, LINETHICK1,NODRAW;
虧平倉統(tǒng)計:CONST(COUNT(虧平倉,BARSCOUNT(虧平倉))) ,COLORGREEN, LINETHICK1,NODRAW;
選股次數(shù):買統(tǒng)計 ,COLORRED, LINETHICK1,NODRAW;
成功次數(shù):盈平倉統(tǒng)計+ 盈統(tǒng)計 ,COLORRED, LINETHICK1,NODRAW;
成功率:(成功次數(shù)/買統(tǒng)計)*100, ,COLORRED, LINETHICK1,NODRAW;
DRAWICON(買點=1,5,1);
STICKLINE(買點,7,50,1,0),COLORYELLOW,LINETHICK1;
STICKLINE(盈利,25,50,1,0),COLORRED,LINETHICK1;
STICKLINE(虧損,30,50,1,0),COLORGREEN,LINETHICK1;
STICKLINE(平倉,7,40,1,0),COLORWHITE,LINETHICK1;
TDXSTEP101:DRAWTEXT(買點,30,'←買'),COLORYELLOW;
TDXSTEP102:DRAWTEXT(盈利,35,'←盈'),COLORRED;
TDXSTEP103:DRAWTEXT(虧損,15,'←虧'),COLORGREEN;
TDXSTEP104:DRAWTEXT(盈平倉,25,'←盈平'),COLORWHITE;
TDXSTEP105:DRAWTEXT(虧平倉,20,'←虧平'),COLORWHITE;
通達信盈利統(tǒng)計指標公式更新時間:2017-08-16 14:37