M:=10;
牛熊界:EMA(CLOSE,250),CIRCELDOT,colorred;
VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,5,1);
VAR3:=SMA(VAR2,8,1);
VAR4:=CROSS(VAR2,VAR3) AND VAR3<20;
VAR5:=CLOSE>LLV(CLOSE,60)+0.3*(LLV(CLOSE,60) AND VAR4);
VAR6:=IF(CLOSE>1000,VAR4,VAR5);
STICKLINE(C>=0,C,0,7,0),colorred;
STICKLINE(C>=0,C,0,4,0),colorboboff;
STICKLINE(C>=0,C,0,2,0),coloryellow;
STICKLINE(C>=0,H,L,0,0),coloryellow;
STICKLINE(C<=0,C,0,7,0),colorff2020;
STICKLINE(C<=0,C,0,4,0),colorff6600;
STICKLINE(C<=0,C,0,2,0),colorwhite;
STICKLINE(C<=0,H,L,0,0),colorwhite;