【通達信】小牛帶熊主圖指標公式
攻城獅 2016.02.07 23:09
M60:=MA(C,5);
M120:=MA(C,20);
DRAWBAND(M60,RGB(90,0,0),M120,RGB(0,90,0));
{牛熊變線}
變線:=EMA(MA(CLOSE,30),5),LINETHICK0;{20 或 30 或 35}
STICKLINE(C>=變線 AND C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=變線 AND C>=O,C,O,2.7,1),COLORRED;
{www.chiang1015.com 概念股網(wǎng)_通達信股票指標公式}
STICKLINE(C>變線 AND C<=O,H,L,0,1),COLORCYAN;
STICKLINE(C>變線 AND C<=O,C,O,3,0),COLORCYAN;
STICKLINE(C<變線 AND C<=O,H,L,0,1),COLORCYAN;
STICKLINE(C<變線 AND C<=O,C,O,3,0),COLORCYAN;
STICKLINE(C<變線 AND C<=O,H,L,0,1),COLORGRAY;
STICKLINE(C<變線 AND C>O,H,L,0,1),COLORGRAY;
STICKLINE(C<變線 AND C>O,C,O,3,1),COLORGRAY;
STICKLINE(C<變線 AND C<=O,C,O,3,1),COLORGRAY;
{分水嶺操作線}
PM:MA(C,5),COLORGRAY,LINETHICK1;{可用13}
IF(PM IF(PM>=REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;
IF(PM=REF(PM,1),PM,DRAWNULL),COLORRED,LINETHICK2;
A:=MA(CLOSE,12)+ABS(MA(CLOSE,12)-REF(MA(CLOSE,12),1));{原公式為17,最終確定為12}
B:=MA(CLOSE,12)+MA(CLOSE,12)-REF(MA(CLOSE,12),1);
分水嶺:=IF(MA(CLOSE,12) 操作線:=分水嶺-(EMA(C,3)-分水嶺);
AA:=CROSS(分水嶺,操作線);
STICKLINE(AA,C,O,3,0),COLOR0000AA;
STICKLINE(AA,C,O,2,0),COLOR0033CC;
STICKLINE(AA,C,O,1,0),COLOR0055EE;
STICKLINE(AA,C,O,0.3,0),COLOR0099FF;
STICKLINE(AA,H,L,0,1),COLOR0099FF;
RR:=CROSS((MA(VOL,5)),(MA(VOL,10))) AND MA(C,2)>=MA(C,4); {AND VOL>=REF(VOL,1)}
STICKLINE(RR,C,O,3,0),COLOR0000AA;
STICKLINE(RR,C,O,2,0),COLOR0033CC;
STICKLINE(RR,C,O,1,0),COLOR0055EE;
STICKLINE(RR,C,O,0.3,0),COLOR0099EE;
STICKLINE(RR,H,L,0,1),COLOR0099FF;
MA5:MA(CLOSE,5),NODRAW;
MA10:MA(CLOSE,10),COLORCC66FF;
MA20:MA(CLOSE,20),COLORFFCC66,LINETHICK2;
DRAWTEXT(CROSS(MA5,MA20),MA5,’牛’),COLORYELLOW,LINETHICK4;
DRAWTEXT(CROSS(MA20,MA5),MA5,’熊’),COLORWHITE,LINETHICK2;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點,亦不對其真實性負責,投資決策請建立在獨立思考之上。