N:=20;
MID:=MA(C,N);
VAR1111:=POW((C-MID),2);
VAR2111:=MA(VAR1111,N);
VAR3111:=SQRT(VAR2111);
UPPER:=MID+2*VAR3111;
LOWER:=MID-2*VAR3111;
BOLL:REF(MID,1);
UB:REF(UPPER,1),COLORGREEN;
LB:REF(LOWER,1),COLORMAGENTA;
DRAWGBK(C>0,RGB(0,0,0),RGB(00,0,0),0,'背景图片0',0);DRAWKLINE(H,O,L,C);
DRAWTEXT_FIX(1,0,0,0,'所属行业:')COLOR0080FF;
DRAWTEXT_FIX(1,0.1,0,0,HYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.2,0,0,'地区:')COLORLIMAGENTA;
DRAWTEXT_FIX(1,0.3,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.0,0.1,0,'所属概念:')COLOR0000FF;
DRAWTEXT_FIX(ISLASTBAR,0.1,0.1,0,GNBLOCK),COLORYELLOW;{LIMAGENTA}
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),COLORYELLOW;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
前高:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;
STICKLINE(C,前高,前高,5,0),COLORYELLOW;
C6:=REF(C,1);
涨停:=IF((C-C6)*100/C6>=(10-0.05*100/C6),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
跌停:=IF((C-C6)*100/C6<=-9.97,1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,0),COLORGREEN;