gspt:=(C+H+O+L)/4;
M:=32;
P2:=100;
gspt1:=XMA(gspt,M)*(1-P2/1000);
gspt88:=DATE< 1301230;
gspt87:=IF(COUNT(gspt1>=C,6)>=4,20,0);
gspt81:=IF(gspt87,20,0);
STICKLINE(FILTER(gspt81,15)=1,0,55,3.2,0)*gspt88,COLOR000077;
STICKLINE(FILTER(gspt81,15)=1,0,55,2.5,0)*gspt88,COLOR000099;
STICKLINE(FILTER(gspt81,15)=1,0,55,1.9,0)*gspt88,COLOR0000BB;
STICKLINE(FILTER(gspt81,15)=1,0,55,1.2,0)*gspt88,COLOR0000DD;
STICKLINE(FILTER(gspt81,15)=1,0,55,0.4,0)*gspt88,COLOR0000FF;
DRAWTEXT(FILTER(gspt81,15)=1,40,'严重异动')*gspt88,COLORYELLOW;
V3:=100-(100-3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1));
V4:=100-(100-3*SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1));
gsptJJ:=V3>REF(V4,1);
gspt84:=COUNT(gspt87=20,16)>=1;
gsptSJ:=gspt84 AND gsptJJ;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,8,0)*gspt88,COLOR0000FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,7.8,0)*gspt88,COLOR0018FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,7.5,0)*gspt88,COLOR001BFF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,7.3,0)*gspt88,COLOR0022FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,7,0)*gspt88,COLOR0035FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,6.8,0)*gspt88,COLOR0041FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,6.5,0)*gspt88,COLOR0050FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,6.3,0)*gspt88,COLOR0059FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,6,0)*gspt88,COLOR0062FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,5.7,0)*gspt88,COLOR006CFF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,5.5,0)*gspt88,COLOR007AFF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,5.3,0)*gspt88,COLOR0080FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,5,0)*gspt88,COLOR0089FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,4.5,0)*gspt88,COLOR0095FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,3.5,0)*gspt88,COLOR009CFF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,3,0)*gspt88,COLOR00ABFF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,2.5,0)*gspt88,COLOR00C0FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,1.5,0)*gspt88,COLOR00D1FF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,1,0)*gspt88,COLOR00EAFF;
STICKLINE(FILTER(gsptSJ,30)=1,35,0,0.7,0),COLOR00FFFF;
DRAWTEXT(FILTER(gsptSJ,30)=1,25,'即将加速')*gspt88,COLORWHITE,LINETHICK5;
gspt83:=(H+L+C)/3;
gspt85:=(C-LLV(L,100))/(HHV(H,100)-LLV(L,100))*200;
中线:=EMA((gspt83-LLV(gspt83,60))/(HHV(gspt83,60)-LLV(gspt83,60)),2)*100;
gspt82:=SMA(gspt85,3,1);
线:=SMA(gspt82,3,1);
gsptMR:=IF(CROSS(线,45) AND 中线>45,100,0);
DRAWTEXT_FIX(1,0.980,20,1,'分析家公式网http://www.70822.com'),COLOR333333;
DRAWTEXT(FILTER(gsptMR,10)=1 AND gspt84,8,'. . 短线加仓!')*gspt88,COLORYELLOW;
STICKLINE(FILTER(gsptMR,10)=1 AND gspt84,0,20,5,0)*gspt88,COLORFF11FF;
STICKLINE(FILTER(gsptMR,10)=1 AND gspt84,0,20,4,0)*gspt88,COLORFF33FF;
STICKLINE(FILTER(gsptMR,10)=1 AND gspt84,0,20,3,0)*gspt88,COLORFF55FF;
STICKLINE(FILTER(gsptMR,10)=1 AND gspt84,0,20,2,0)*gspt88,COLORFF77FF;
STICKLINE(FILTER(gsptMR,10)=1 AND gspt84,0,20,1,0)*gspt88,COLORFF99FF;
gspt86:=V3>REF(V4,1) AND V>REF(V,1) AND C>REF(C,1);
DRAWTEXT(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,16,'')*gspt88,COLORRED;
STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,3.6,0 )*gspt88,COLOR550055;
STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,2.8,0 )*gspt88,COLOR770077;
STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,1.7,0 )*gspt88,COLOR990099;
STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,0.9,0 )*gspt88,COLORBB00BB;
STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,0.5,0 )*gspt88,COLORDD00DD;
STICKLINE(gspt86 AND COUNT(gspt86,30)=1 AND gspt84,25,0,0.1,0 )*gspt88,COLORFF00FF;