通達信波段效益指標(biāo)公式
基本概況:
- 指標(biāo)類別: 通達信指標(biāo)
- 授權(quán)方式: 免費版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)語言: 簡體中文
- 指標(biāo)來源: 互聯(lián)網(wǎng)
- 指標(biāo)日期: 2017-07-26 00:00:00
內(nèi)容介紹:
通達信波段效益指標(biāo)公式:
買入價:=8;
賣出價:=9;
數(shù)量:=10000;
買入日:=161226;
賣出日:=170330;
均線:=1;
MA1:IF(均線=1,MA(CLOSE,5),DRAWNULL);
MA2:IF(均線=1,MA(CLOSE,10),DRAWNULL);
MA3:IF(均線=1,MA(CLOSE,20),DRAWNULL);
MA4:IF(均線=1,MA(CLOSE,60),DRAWNULL);
買入日期:=1000000+買入日;
DRAWICON(DATE=買入日期,L*0.98,1);
賣出日期:=1000000+賣出日;
DRAWICON(DATE=賣出日期,H*1.02,2);
買入:IF(買入價!=0,買入價,DRAWNULL),COLORLIRED,DOTLINE;
賣出:=IF(賣出價!=0,賣出價,DRAWNULL),COLORGREEN,DOTLINE;
STICKLINE(DATE=買入日期,買入,買入,10,0),COLORGREEN;
STICKLINE(DATE=賣出日期,賣出,賣出,10,0),COLORGREEN;
盈虧:=(賣出-買入)*數(shù)量/10000,COLORYELLOW,NODRAW;
買入金額:=買入*數(shù)量/10000;
獲利:=盈虧/買入金額*100;
通達信波段效益指標(biāo)公式
{偏離:=IF(賣出價>MA(C,5),(賣出價-MA(C,5))/MA(C,5)*100,(MA(C,5)-賣出價)/賣出價*100),NODRAW;}
DRAWTEXT_FIX(1,0.1,0.15,0,STRCAT('股票代碼:',CODE)),COLORWHITE;
DRAWTEXT_FIX(1,0.22,0.15,0,STRCAT('股票名稱:',STKNAME)),COLORWHITE;
DRAWTEXT_FIX(1,0.1,0.20,0,STRCAT('買入日期:',CON2STR(買入日期+19000000,0))),COLORLIRED;
DRAWTEXT_FIX(1,0.22,0.20,0,STRCAT('買入價:',CON2STR(買入,2))),COLORLIRED;
DRAWTEXT_FIX(1,0.1,0.25,0,STRCAT('賣出日期:',CON2STR(賣出日期+19000000,0))),COLORLIGREEN;
DRAWTEXT_FIX(1,0.22,0.25,0,STRCAT('賣出價:',CON2STR(賣出,2))),COLORLIGREEN;
DRAWTEXT_FIX(1,0.1,0.30,0,STRCAT('交易數(shù)量:',CON2STR(數(shù)量,0))),COLORYELLOW;
DRAWTEXT_FIX(1,0.22,0.30,0,STRCAT('占用資金:(萬)',CON2STR(買入金額,2))),COLORYELLOW;
DRAWTEXT_FIX(1,0.1,0.35,0,STRCAT('盈虧:(萬)',CON2STR(盈虧,2))),COLORMAGENTA;
DRAWTEXT_FIX(1,0.22,0.35,0,STRCAT('獲利比:(%)',CON2STR(獲利,2))),COLORMAGENTA;
{DRAWTEXT_FIX(1,0.1,0.40,0,STRCAT('偏離度:)',CON2STR(偏離,2))),COLORCYAN;};
通達信波段效益指標(biāo)公式更新時間:2017-07-26 15::53
相關(guān)推薦: