AX:=DATE<=20231210;
A:=CROSS(SMA(CLOSE,2,1)*AX,SMA(LOW,5,1))*AX;
A1:=(SMA(HIGH,21,2)*1.05)*1.05*AX;
A2:=IF(A,A1,SMA(LOW,5,1))*AX;
A3:=CROSS(SMA(CLOSE,2,1)*AX,(SMA(HIGH,21,2)*1.05))*AX;
A4:=IF(A3,(SMA(HIGH,21,2)*1.05)*1.10*AX,(SMA(LOW,21,2)*0.95))*AX;
A5:=A2>SMA(LOW,5,1)*AX AND CROSS(C,REF(MA(C,13)*AX,13/2+1))*AX AND VOL>0;
A6:=REF(H/O<1.02,1)*AX AND REF(C<O,1)*AX;
VAR7:=(CLOSE-LLV(LOW,9))*AX/(HHV(HIGH,9)-LLV(LOW,9))*100*AX;
VAR8:=EMA(VAR7,30)*AX;
VAR9:=EMA(VAR8,30)*AX;
VAR10:=3*VAR8-2*VAR9*AX;
势:=EMA(VAR10,5)*AX;
DRAWTEXT(CROSS(10,势*AX),69,'进'),COLORYELLOW;
DRAWTEXT(CROSS(10,势*AX),58,'入'),COLORFF00FF;
DRAWTEXT(CROSS(10,势*AX),43,'预'),COLOR00C0FF;
DRAWTEXT(CROSS(10,势*AX),31,'警[↓]'),COLORFFFF6F;
DRAWTEXT(CROSS(10,势*AX),19,'区'), COLORB47DFF;
VAR1:=EMA(CLOSE,3)*AX;
VAR2:=EMA(CLOSE,21)*AX;
VAR3:=BARSLAST(CROSS(VAR2,VAR1))*AX>15;
VAR4:=VOL>MA(VOL,5)*2*AX AND VOL<MA(VOL,5)*5*AX;
VAR5:=CROSS(VAR1,VAR2)*AX AND VAR4 AND VAR3;
DRAWTEXT(VAR5,80,'★涨')*AX,COLORGREEN,LINETHICK1;
涨:IF(VAR5,80,0)*AX,STICK,LINETHICK3,COLORGREEN;
ZT:=C/REF(C,1)*AX>1.097;
STICKLINE(ZT,0,50,2,0)*AX,COLOR880088;
STICKLINE(ZT,0,50,1.5,0)*AX,COLORAA00AA;
STICKLINE(ZT,0,50,0.8,0)*AX,COLORCC00CC;
STICKLINE(ZT,0,50,0.3,0)*AX,COLORFF00FF;
RSV:=(CLOSE-LLV(LOW,33))*AX/(HHV(HIGH,33)*AX-LLV(LOW,33))*100;
DRAWTEXT( ZT,60,'涨停')*AX,COLORMAGENTA,LINETHICK1;
CXH1:=(C-LLV(L,36))*AX/(HHV(H,36)-LLV(L,36))*100*AX;
CXH2:=SMA(CXH1,3,1)*AX;
CXH3:=SMA(CXH2,3,1)*AX;
CXH4:=SMA(CXH3,3,1)*AX;
波:=CXH3*AX,COLORRED;
段:=CXH4*AX,COLORLICYAN;
CXH5:=CROSS(CXH3,CXH4)*AX AND CXH3<20*AX;
DRAWTEXT(FILTER(CXH5,10)=1,92,'大资金')*AX,COLORRED;
STICKLINE(FILTER(CXH5,10)=1,0,80,10,0)*AX,COLORYELLOW;
CXH9:=CROSS(CXH4,CXH3)*AX AND CXH3>80*AX;
STICKLINE(FILTER(CXH9,5)=1,80,100,10,0)*AX,COLORGREEN;
DRAWTEXT(FILTER(CXH9,5)=1,90,'逃顶')*AX,COLORGREEN;
CXH8:=CROSS(CXH2,CXH3)*AX AND CXH3>80*AX AND CXH3>CXH4*AX;
STICKLINE(CXH8,85,100,10,0),COLOR0099FF;
100,COLORBBBBBB,LINETHICK3;
0,,LINETHICK3;
A11:=DATE <= 20231210;
AA:=LLV(L,36)*AX;
BB:=HHV(H,30)*AX;
风险:80,COLORFF00FF;
小心:87.5,COLOR00FF00;
DD:=(EMA(((C-AA)*AX/(BB-AA))*(4),4))*(25)*AX;
机构:=DD,COLORMAGENTA,LINETHICK2;
庄家:((((DD-LLV(DD,21))*AX/(HHV(DD,21)-LLV(DD,21)))*(4))*(25))*A11,COLORYELLOW;
B:=IF(CROSS(庄家,90)*AX AND (机构<40),85,0),COLORRED;
DRAWTEXT(CROSS(庄家,90)*AX AND (机构<40),80,'-买')*AX,COLORRED;
STICKLINE(B*AX ,75,66,1,0),COLORRED;
STICKLINE(B*AX ,66,57,2,0),COLORMAGENTA;
STICKLINE(B*AX,57,48,3,0),COLORGREEN;
STICKLINE(B*AX,48,39,4,0),COLORBLUE;
STICKLINE(B*AX ,30,21,6,0),COLORBROWN;
STICKLINE(B*AX ,39,30,5,0),COLORCYAN;
STICKLINE(B*AX ,21,12,7,0),COLORYELLOW;
STICKLINE(B*AX ,12,3,8,0),COLORWHITE;
跟踪:10,COLOR0000FF;
中轴:40*AX,COLORWHITE;
上价:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5*AX;
下价:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5*AX;
中价:=MAX(EMA(上价,1)-EMA(下价,5),0)*200*AX;
吃庄:=EMA(中价,5)*AX;
GUA:=30*AX;
实体比例:=(CLOSE-OPEN)/REF(CLOSE,1)*AX;
冲击系数:=MA(实体比例,GUA)*AX;
冲击系数1:=MA(冲击系数,3)*AX;
控盘量:STICKLINE(冲击系数1>0,((冲击系数1*10000 )+吃庄)/2,0,9,0)*AX,COLORRED,LINETHICK4;
STICKLINE(冲击系数1>0,((冲击系数1*10000 )+吃庄)/2,0,9,0)*AX,COLORRED;
财富:=CROSS(控盘量,中轴)=1.05*AX;
STICKLINE(财富*AX ,75,66,1,0),COLORRED;
STICKLINE(财富*AX ,66,57,2,0),COLORMAGENTA;
STICKLINE(财富*AX,57,48,3,0),COLORGREEN;
STICKLINE(财富*AX,48,39,4,0),COLORBLUE;
STICKLINE(财富*AX ,30,21,5,0),COLORBROWN;
STICKLINE(财富*AX,39,30,6,0),COLORCYAN;
STICKLINE(财富*AX,21,12,7,0),COLORYELLOW;
STICKLINE(财富*AX,12,3,8,0),COLORWHITE;
DRAWTEXT(财富*AX,83,'-买')*AX,COLORRED;