马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
{通达信高低点}
HD:=FILTER(BACKSET(FILTER(REF(H,N)=HHV(H,2*N+1),N),N+1),N);
LD:=FILTER(BACKSET(FILTER(REF(L,N)=LLV(L,2*N+1),N),N+1),N);
DRAWNUMBER(HD,HIGH,HIGH),COLORGREEN,LINETHICK6;
DRAWNUMBER(LD,LOW,LOW),COLORWHITE,LINETHICK6;
{跳空缺口}
LL1:=REF(L,1);
HH1:=REF(H,1);
SQK:=L>HH1;
XQK:=H<LL1;
上跳:IF(SQK=1,L-HH1,DRAWNULL),COLORFF00FF,CROSSDOT,LINETHICK3,NODRAW;
下跳:IF(XQK=1,H-LL1,DRAWNULL),COLORGREEN,CROSSDOT,LINETHICK3,NODRAW;
STICKLINE(SQK,L,HH1,2,1),COLORYELLOW;{上跳}
STICKLINE(XQK,H,LL1,2,2),COLORWHITE;{下跳}
{补缺口}
K1:=BARSLAST(L>REF(H,1));
K2:=L<REF(H,K1+1) AND COUNT(L<REF(H,K1+1),K1)=1;
STICKLINE(K2,L,O,0.5,0),COLORFF00FF;{缺口回补};
MA21:=MA(C,N),COLORFF8888,LINETHICK1;
涨停:=(C-REF(C,1))/REF(C,1)*100>9.92;
STICKLINE(涨停,C,O,3,0),COLORFF0085;
STICKLINE(涨停,C,O,2,0),COLORFF00B5;
STICKLINE(涨停,C,O,1,0),COLORFF00F5;
DRAWTEXT(涨停,L*0.97,'涨停'),COLOR00FFFF;
{跌停K线图}
跌停:=(C-REF(C,1))/REF(C,1)*100<-9.92;
STICKLINE(跌停,C,O,3,0),COLOR008800;
STICKLINE(跌停,C,O,2,0),COLOR00BB00;
STICKLINE(跌停,C,O,1,0),COLOR00FF00;{主图涨跌图二线及缺口提示};
倍数:=1.9;
倍量:= VOL>=REF(V,1)*倍数 AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW;
STICKLINE(倍量 AND C>O,C,O,1,0),COLORYELLOW;
STICKLINE((C=O)AND(C>REF(C,1)),C,O,4,1),COLORRED;
STICKLINE((C=O)AND(C<REF(C,1)),C,O,4,1),COLORGREEN;
{假阴真阳}
假阴:=C>REF(H,1) AND C<O;
STICKLINE(假阴,L,H,0.51,0),COLORRED;
假阳:=C<REF(C,1) AND C>O;
假阳1:=REF(C,1)<REF(O,1) AND C<REF(O,1) AND C>O;
STICKLINE(假阳 OR 假阳1 ,L,H,0.21,0),COLORGREEN;
盖阴:=REF(C,1)<REF(O,1) AND C>REF(O,1) AND C>O;
盖阴1:=REF(C,1)<REF(O,1) AND O>=REF(C,1) AND C>REF(O,1) AND C>O;
STICKLINE(盖阴 OR 盖阴1 ,C,O,0.51,0),COLORRED;
二一:=(C+O)/2;
STICKLINE(二一,二一,二一,2,0),COLORYELLOW; {红柱};
|