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