VAR2:=MA(CLOSE,5);
VAR3:=MA(CLOSE,15);
VAR4:=MA(CLOSE,20);
VAR5:=MA(CLOSE,45);
满仓:100,colorff8000;
八成:80,colorff8000;
爆发警戒线:50,coloryellow;
三成:30,colorff8000;
STICKLINE(10,0,10,3,0),colorblue;
VAR6:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR7:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR8:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR9:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
VAR10:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR11:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR12:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR13:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE>VAR5;
VAR14:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
VAR15:=CLOSE<VAR2 AND CLOSE>VAR3 AND CLOSE<VAR4 AND CLOSE<VAR5;
VAR16:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR17:=CLOSE>VAR2 AND CLOSE=VAR3 AND CLOSE>VAR4 AND CLOSE>VAR5;
VAR18:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE<VAR4 AND CLOSE>VAR5;
VAR19:=CLOSE<VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
VAR20:=CLOSE>VAR2 AND CLOSE<VAR3 AND CLOSE>VAR4 AND CLOSE<VAR5;
VAR21:=CLOSE>VAR2 AND CLOSE>VAR3 AND CLOSE<VAR4 AND CLOSE>VAR5;
STICKLINE(VAR7 OR VAR18 OR VAR19 OR VAR21,0,30,3,0),colorbrown;
STICKLINE(VAR8 OR VAR20,0,50,3,0),color000099;
STICKLINE(VAR9,0,80,3,0),color000099;
STICKLINE(VAR10,0,100,3,0),COLOR000099;
STICKLINE(VAR11,0,80,3,0),color000099;
STICKLINE(VAR12,0,50,3,0),color000099;
STICKLINE(VAR14 OR VAR15 OR VAR16 OR VAR17,0,50,3,0),color000099;
VAR111:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR111-REF(VAR111,1))/REF(VAR111,1)*1000;
VAR112:=100*WINNER(CLOSE*0.95);
STICKLINE(VAR112>50 AND COST(85)<CLOSE AND 控盘>0,100,0,4,0),colormagenta;
长期:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), colorgreen,LINETHICK3;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),color159400;
D:SMA(K,3,1),colorcyan,LINETHICK2;
短期:3*K-2*D,colorred,LINETHICK2;
半仓:50,colorff8000;