{KKDD中线}
LOWV1:=EMA(LLV(LOW,34),3);
HIGHV1:=EMA(HHV(HIGH,34),3);
RSV1:=EMA((CLOSE-LOWV1)/(HIGHV1-LOWV1)*100,3);
长线1:SMA(RSV1,8,1),COLORMAGENTA,LINETHICK1,NODRAW;
长线2:SMA(长线1,6,1),COLORGRAY,LINETHICK1,NODRAW;
DRAWBAND(长线1,RGB(200,0,200),长线2,RGB(100,100,100));
50,COLORRED,LINETHICK2;
105,COLORFF7F00,DOTLINE;
{强势有效}
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
短线买点:=CROSS(((DIFF1-EMA(DIFF1,9))*10-REF((DIFF1-EMA(DIFF1,9))*10,1)),1) AND (DIFF1-EMA(DIFF1,9))*10>1;
STICKLINE(短线买点>0,0,45,1.3,0),COLOR008888;
STICKLINE(短线买点>0,0,45,0.9,0),COLOR00AAAA;
STICKLINE(短线买点>0,0,45,0.6,0),COLOR00DDDD;
STICKLINE(短线买点>0,0,45,0.2,0),COLOR00FFFF;
DRAWTEXT(短线买点>0,43,’☆预警’),COLOR00FFFF,LINETHICK1;
0,COLORWHITE,LINETHICK1;
{KDJ短线}
RSV:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
短线2:SMA(RSV,3,1),COLORWHITE,LINETHICK2;
D:=SMA(短线2,3,1),COLOR00FFFF,LINETHICK2;
{J线没未来}
短线1:3*短线2-2*D,COLOR00FFFF,LINETHICK2;
IF(短线1REF(短线1,1),短线1,DRAWNULL),COLORRED,LINETHICK2;
{KDJ红绿相交}
DRAWICON(CROSS(短线1,D) AND CROSS(短线1,短线2),0,25);
DRAWICON(CROSS(D,短线1) AND CROSS(短线2,短线1),110,27);
{KKDD红绿箭头}
DRAWICON(CROSS(长线1,长线2),长线2,1);
DRAWICON(CROSS(长线2,长线1),长线2,2);
{横盘启动}
LOWV:=LLV(LOW,15); {15天内的最低价}
HIGHV:=HHV(HIGH,15); {15天内的最高价}
HIGHVV:=HHV(HIGH,40); {40天内的最高价}
V0:=V; {当天的成交量}
V1:=REF(V,1); {一天前的成交量}
V2:=REF(V,2); {两天前的成交量}
V3:=REF(V,3); {三天前的成交量}
HV22:=HHV(V,35); {35天内的最大成交量}
D0U:=C>O; {今天是阳线}
D1U:=REF(C,1)>=REF(C,2); {昨天是阳线}
横盘:=((HIGHV-LOWV)/HIGHV)=(1.8*((V1+V2+V3)/3)); {今天量是前三天均量的1.8倍}
放量2:=V0=0.018; {今天涨幅大于1.8%}
开盘非最高价:=C
【股票投资】【通达信】趋势整合指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。