VAR2:=MA(CLOSE,5);
VAR3:=MA(CLOSE,15);
VAR4:=MA(CLOSE,20);
VAR5:=MA(CLOSE,45);
满仓:100,POINTDOT,COLORRED;
八成:80,POINTDOT,COLORMAGENTA;
半仓:50,POINTDOT,COLORYELLOW;
三成:30,POINTDOT,COLORGREEN;
空仓:0,POINTDOT,COLORWHITE;
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(VAR6,0,5,3,0),COLORWHITE;{九毛八公式指标网www.9m8.cn}
STICKLINE(VAR7 OR VAR18 OR VAR19 OR VAR21,0,30,3,0),COLORGREEN;
DRAWICON(((VAR7 OR VAR18 OR VAR19 OR VAR21) AND REF(VAR6,1)),30,1);
STICKLINE(VAR8 OR VAR20,0,50,3,0),COLORYELLOW;
DRAWICON(((VAR8 OR VAR20) AND REF((VAR7 OR VAR18 OR VAR19 OR VAR21),1)),50,7);
STICKLINE(VAR9,0,80,3,0),COLORLIMAGENTA;
DRAWICON((VAR9 AND REF((VAR8 OR VAR20),1)),80,23);
STICKLINE(VAR10,0,100,3,0),COLORRED;
STICKLINE(VAR11,0,80,3,0),COLORMAGENTA;
DRAWICON((VAR10 AND REF(VAR11,1)),90,9);
STICKLINE(VAR12,0,50,3,0),COLORYELLOW;
STICKLINE(VAR13,0,20,3,0),COLORGREEN;
STICKLINE(VAR14 OR VAR15 OR VAR16 OR VAR17,0,50,3,0),COLORGRAY;