C22:=REF(C,1);
ZT:=IF((C-C22)*100/C22 =(10-0.01*100/C22),1,0);
LG:=TOPRANGE(VOL);
FZG:=H/REF(L,60) 1.6 AND H/REF(L,20) 1.5 AND H/REF(L,4) 1.3 AND H/REF(L,10) 1.5 AND COUNT(ZT,5) =3 AND COUNT(ZT,50)
ZLC:=O/REF(C,1) 1.07 AND C O AND LG 60 AND FZG;
BGY:=REF(ZT,1) AND O/REF(C,1) 1.01 AND C O AND LG 60 AND FZG;
BGYY:=REF(ZT,1) AND H/REF(C,1) 1.07 AND C O AND LG 100 AND FZG;
EBY:=O/REF(C,1) 1.01 AND C O AND V REF(V,1) AND REF(ZT,1) AND FZG;
HF:=C=H AND C/REF(C,1) 1.095 AND C=O AND L
TZBS31:= REF(HF,1) AND V = 0.7*REF(V,1);
BGS31:= REF(V=HHV(V,100),1) AND REF(C,1) REF(C,2) AND V = 0.7*REF(V,1);
BBZTS31:= REF(ZT,2) AND REF(V,2) = 2* REF(V,3) AND REF(ZT,1) AND REF(V,1) = 2* REF(V,2) AND REF(V=HHV(V,60),1) AND V = 0.7*REF(V,1);
BLZT:= REF(ZT,1) AND REF(V,1) = REF(V,2)*2 AND REF(V=HHV(V,30),1) AND V = 0.5*REF(V,1);
ZTBGS31:= REF(ZT,2) AND REF(V=HHV(V,100),1) AND V = 0.7*REF(V,1);
DRAWICON(ZTBGS31 OR BBZTS31 OR BGS31 OR TZBS31 OR HF OR ZLC OR BGY OR BGYY OR EBY OR BLZT,H*1.015,9),COLORRED;
均价:AMOUNT/VOL/100,NODRAW,COLORYELLOW;
BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));
STICKLINE((C =ZTPRICE(REF(C,1),BK) AND C=H),C,O,2.7,0),COLORFF00FF;
STICKLINE((C =DTPRICE(REF(C,1),BK) AND C=L),C,O,2.7,0),COLOR00BF00;
TC:=NOT(INBLOCK('创业板')) AND NOT(INBLOCK('科创板'));
LB10:=H =REF(C,1)*1.085 AND C REF(C,1)*1.11 AND C H AND TC;
STICKLINE(LB10,H,MAX(O,C),0.02,0),COLORFF00FF;
QB10:=C*1.085 REF(C,1) AND C*1.13 REF(C,1) AND C L AND TC;
STICKLINE(QB10,L,MIN(O,C),0.02,0),COLORFF8000;
LB20:=H REF(C,1)*1.196 AND C REF(C,1)*1.22 AND C
STICKLINE(LB20,H,MAX(O,C),0.02,0),COLORFF00FF;
QB20:=C*1.192 REF(C,1)AND C*1.26 REF(C,1) AND C
STICKLINE(QB20,L,MIN(O,C),0.02,0),COLORFF8000;
向上跳空:=MIN(C,O) REF(MAX(C,O),1);
明日涨停参考:C*1.1,NODRAW,COLORYELLOW;
明日创业涨停:C*1.2,NODRAW,COLORYELLOW;
STICKLINE(向上跳空=1,O,C,0.4,0),COLORYELLOW;
HS:=VOL/CAPITAL*100;
换手比:HS/REF(HS,1),NODRAW,COLORFF00FF;
三一:MAX(O,C)-ABS(O-C)/3,NODRAW,COLORYELLOW;
二一:(O+C)/2,NODRAW,COLORYELLOW;
三二:MIN(O,C)+ABS(O-C)/3,NODRAW,COLORYELLOW;
虚31:MAX(H,L)-(H-L)/3,NODRAW,COLORYELLOW;
虚21:(L+H)/2,NODRAW,COLORYELLOW;
虚32:MIN(H,L)+(H-L)/3,NODRAW,COLORYELLOW;
AA11:=(REFXV(C,1)+REFXV(C,2)+REFXV(C,3))/3 MAX(O,C) ;
高于实顶:IF(AA11,1,0),COLORYELLOW,NODRAW;
T11:=CONST(LLVBARS(L,10));
T11H:=CONST(REF(H,T11));
CC:=CONST(CURRBARSCOUNT);
T12:=CONST(BARSLAST(CURRBARSCOUNT CC+T11 AND H T11H));
T12H:=CONST(REF(H,T12));
T13:=CONST(BARSLAST(CURRBARSCOUNT CC+T12 AND H T12H));
T13H:=CONST(REF(H,T13));
所属板块:=STRCAT('所属板块: ',STRCAT(STRCAT(STRCAT(' 【行业】:',HYBLOCK),STRCAT(' 【地域】:',DYBLOCK)),STRCAT(' 【概念】:',GNBLOCK)));
DRAWTEXT_FIX(O 0,0,0.00,0,所属板块),COLORYELLOW;
DRAWTEXT_FIX(O 0,0,0.05,0,'同花顺概念:');
DRAWTEXT_FIX(O 0,0.08,0.05,0,EXTERNSTR(0,1)),COLORFF00FF;
自由流通市值:=STRCAT(STRCAT('自由流通市值:', CON2STR(C*FINANCE(46)/100000000,2)),'亿');
DRAWTEXT_FIX(O 0,0,0.09,0,自由流通市值),COLORYELLOW;
一字板:=L=H AND (C+0.005-REF(C,1))/REF(C,1)*100
STICKLINE(一字板,REF(C,1),C,2.8,-1),COLORFFEEBB;
收阴:=O C AND (O-C)/O 0.04;
收阳:=O C AND (C-O)/O 0.04;
实体大于4%:=IF(O C,收阴,收阳);
STICKLINE(实体大于4%,二一,二一,2,0),COLORGRAY;
TK:=C O AND O =REF(MAX(C,O),1)+0.01 OR O =REF(C,1)+0.01 ;
STICKLINE(TK, O,(C-O)*0.01+O,3,0),COLORYELLOW;
GLT:=CONST(HHVBARS(V,高量天数));
高量顶:=IF(CURRBARSCOUNT =GLT+1,CONST(REF(MAX(C,O),GLT)),DRAWNULL);
高量底:=IF(CURRBARSCOUNT =GLT+1,CONST(IF((REF(MAX(C,O),GLT)-REF(MIN(C,O),GLT))/REF(O,GLT) =0.033,REF(L,GLT),REF(MIN(C,O),GLT))),DRAWNULL);
STICKLINE(高量底,高量底,高量底,5,0),COLORGREEN;
STICKLINE(高量顶,高量顶,高量顶,5,0),COLORRED;
DRAWTEXT(ISLASTBAR,高量顶,STRCAT(' ','安全线')),COLORRED;
DRAWTEXT(ISLASTBAR,高量底,STRCAT(' ','保命线')),COLORGREEN;