MAVAR5:MA(C,5),COLORFF00FF,LINETHICK2;
MAA10:=MA(C,10);
MAVAR30:MA(C,30),COLORRED;
KS:IF(MAA10>MAVAR30,MAA10,MAVAR30),COLORBLUE;
VAR3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1);
VAR6:=3*VAR4-2*VAR5;
VAR7:=C-REF(C,1);
VAR8:=100*EMA(EMA(VAR7,6),6)/EMA(EMA(ABS(VAR7),6),6);
买:=LLV(VAR8,2)=LLV(VAR8,7) AND COUNT(VAR8<0,2) AND CROSS(VAR8,MA(VAR8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖跟庄买进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
{买进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;}