复制内容到剪贴板
代码:
hs:=VOL/CAPITAL*100;{换手 }
yx:=(c/ref(c,1)>=1.04)*2;
sj:=if(barslast(yx)=0,ref(barslast(yx),1),barslast(yx) );
yxcd:=c/ref(c,1);
mh3:=ma(hs,5);
bp:=count(l>ref(l,sj),sj)=sj and sj>1 and sj<=8 and count(hs<ref(hs,sj),sj)=sj;
tp:=ref(bp,1)>0 and c>ref(h,sj+1) and yx>0 and hs>sum(hs,sj)/sj*1.4 and sj>1 and sj<=8;
强势突破:=(tp and count(c>ref(c,1),sj)=sj)*3;
中势突破:=(tp and count(c>ref(c,1),sj)>=sj-sj*0.4 and count(c>ref(c,1),sj)<sj)*2;
弱势突破:=tp and count(c>ref(c,1),sj)<sj-sj*0.4;
单阳突破:(强势突破 or 中势突破 or 弱势突破)*12,LINETHICK0,colormagenta;
获利盘: WINNER(CLOSE)*100,colorcyan;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),colorwhite;
D:SMA(K,3,1),coloryellow;
趋势: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA
(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),colorred;
DRAWICON(强势突破,50,10);DRAWTEXT(强势突破,40,'强势突破'),align1,colorred;
DRAWICON(中势突破,50,12);DRAWTEXT(中势突破,40,'中势突破'),align1,coloryellow;
DRAWICON(弱势突破,50,11);DRAWTEXT(弱势突破,40,'弱势突破'),align1,Color00AF5C;