通信达公式导入 通达信跟住老鼠仓彩色主图指标公式(2)
2016-11-21 15:24 股票知识 zhishi.southmoney.com
STICKLINE(C>=OPEN,C,OPEN,3.2,0),COLOR0000AA;
STICKLINE(C>=OPEN,C,OPEN,2.2,0),COLOR0000CC;
STICKLINE(C>=OPEN,C,OPEN,1.0,0),COLOR0000EE;
STICKLINE(C>=OPEN,C,OPEN,0.1,0),COLORAA55FF;
STICKLINE(OPEN>=C,C,OPEN,3.2,0),COLOR009900;
STICKLINE(OPEN>=C,C,OPEN,1.5,0),COLOR00BB00;
STICKLINE(OPEN>=C,C,OPEN,0.6,0),COLOR00DD00;
STICKLINE(OPEN>=C,C,OPEN,0.1,0),COLOR00FF00;
Q:=C=T5 AND(T2<T3 OR T2<T4)OR T2=T5 AND C<T3 OR T3=T5 AND T2!=T1 AND C<T2 OR T4=T5 AND C<T2 AND C<T3; W:=O+C;
STICKLINE(Q,C,W/2,3.1,0),COLOR999999;
STICKLINE(Q,C,W/2,2,0),COLORBBBBBB;
STICKLINE(Q,C,W/2,1,0),COLORDDDDDD;
STICKLINE(Q,C,W/2,0.1,0),COLORFFFFFF;
S:=T2=T5 AND C>=T3 OR T3=T5 AND T2<=T4 AND T3<REF(C,4)AND C>=T2;
STICKLINE(S,O,W/2,3.1,0),COLOR999900;
STICKLINE(S,O,W/2,2,0),COLORBBBB00;
STICKLINE(S,O,W/2,1,0),COLORDDDD00;
STICKLINE(S,O,W/2,0.1,0),COLORFFFF00;
STICKLINE(B7,REF(C,1),REF(C,2),3.2,0),COLOR335555;
STICKLINE(B7,REF(C,1),REF(C,2),2.5,0),COLOR338888;
STICKLINE(B7,REF(C,1),REF(C,2),1.5,0),COLOR33AAAA;
STICKLINE(B7,REF(C,1),REF(C,2),0.8,0),COLOR33CCCC;
STICKLINE(B7,REF(C,1),REF(C,2),0.1,0),COLOR33EEEE;
STICKLINE(B8,REF(C,1),REF(C,2),3.0,0),COLORAA0000;
STICKLINE(B8,REF(C,1),REF(C,2),2.0,0),COLORCC0000;
STICKLINE(B8,REF(C,1),REF(C,2),1.1,0),COLORFF4400;
STICKLINE(B8,REF(C,1),REF(C,2),0.2,0),COLORFF8800;
STICKLINE(B8,REF(C,1),REF(C,2),0.0,0),COLORFFCC00;
四:=SUMBARS(VOL,CAPITAL/4),NODRAW;
二:=SUMBARS(VOL,CAPITAL/2),NODRAW;
ZJ:=MA(C,二){中期成本均线};
XJ:=MA(C,四){近期成本均线};
T:=C>XJ; P:=XJ>ZJ; Z:=ZJ>Q;I:=MAX(O,C);
STICKLINE(T AND P AND Z,I,W/2,3.1,0),COLOR880088;
STICKLINE(T AND P AND Z,I,W/2,2,0),COLORBB00BB;
STICKLINE(T AND P AND Z,I,W/2,1,0),COLORDD00DD;
STICKLINE(T AND P AND Z,I,W/2,0.1,0),COLORFF00FF;
STICKLINE(C=C,O+((C-O)/2),(O+(C-O)/2),3,0),COLOR00FFFF;{当日实体幅度的1/2}
AA1:=EMA(C,5); AA2:=EMA(C,10);
突破:REF(AA2,1),COLORMAGENTA,DOTLINE; AA3:=AA1-突破; AA4:=((AA3)/突破*100);
A:=IF(AA4>=0,REF(AA2,BARSLAST(CROSS(AA4,0))+1),DRAWNULL);
B:=IF(AA4<0,REF(AA2,BARSLAST(CROSS(0,AA4))+1),DRAWNULL);
STICKLINE(A,A,A,4,-1)COLORMAGENTA;
STICKLINE(B,B,B,4,-1)COLORGREEN;
STICKLINE(AA4>=0,A,突破,0,-1)COLORMAGENTA;
STICKLINE(AA4<0,B,突破,0,-1)COLORGREEN;
持币:=IF(AA4<0,突破,DRAWNULL)COLORFFCC00,DOTLINE;
DRAWTEXT(ISLASTBAR AND A,A-0.1,'出击'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR AND B,B+0.15,'休假'),COLORGREEN;
顶:HHV(H,60),COLORFF00FF,DOTLINE; 底:LLV(L,60),COLORWHITE,DOTLINE;
MA5:MA(C,5)COLORWHITE;
MA18:MA(C,18)COLOR0080FF;
MA21:MA(C,21)COLORYELLOW;
MA35:MA(C,35)COLOR00FF00;
MA60:MA(C,35)COLORRED;
盈损线:MA(MA5,1),LINETHICK2,COLOR00FF00;
IF(盈损线>=REF(盈损线,1),盈损线,DRAWNULL),COLORRED,LINETHICK2;
DRAWTEXT((MA18>=REF(MA18,3)AND CROSS(C,MA18)),L-0.05,'↖跟'),COLORRED;
获利%:WINNER(C)*100,NODRAW,COLORFF00FF;
XX:=REF(C,1);ZDF:=(C-XX)/XX*100;
DRAWTEXT(C>=1.099*XX,C*1.01,'↙涨停'),COLORYELLOW;
DRAWTEXT(ZDF<-9.9,C*1.01,'↖跌停'),COLOR00FF00;
AA8:=ZIG(3,5); AA9:=REF(AA8,1);(股票知识网zhishi.southmoney.com)
股票知识网声明:资讯来源于合作媒体及机构,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。