{商品警戒线}NN:=-2;
WZLONG:=IFF((PERIOD+NN)==3,260,IFF((PERIOD+NN)==2,520,DRAWNULL));
WZSHORT:=IFF((PERIOD+NN)==3,65,IFF((PERIOD+NN)==2,130,IFF((PERIOD+NN)==1,260,IFF((PERIOD+NN)==0,780,DRAWNULL))));
UP短线:IFF(IFF(BETWEEN((PERIOD+NN),0,3),1,0),EMA(100*(C-LLV(LOW,WZSHORT))/(HHV(H,WZSHORT)-LLV(LOW,WZSHORT)),3),DRAWNULL),COLORFFFFFF;
UP中线:IFF(IFF(BETWEEN((PERIOD+NN),2,3),1,0),EMA(100*(C-LLV(LOW,WZLONG))/(HHV(H,WZLONG)-LLV(LOW,WZLONG)),3),DRAWNULL),COLORYELLOW;
STICKLINE(BETWEEN((PERIOD+NN),0,3),0,0,20,0),COLORRED;
低位警戒线:IFF(BETWEEN((PERIOD+NN),0,3),10,DRAWNULL),POINTDOT,COLORRED;
高位警戒线:IFF(BETWEEN((PERIOD+NN),0,3),90,DRAWNULL),POINTDOT,COLORFFFF00;
STICKLINE(BETWEEN((PERIOD+NN),0,3),100,100,20,0),COLORFFFF00;
小周期锁定:=IFF((PERIOD+NN)==0 OR (PERIOD+NN)==1 OR (PERIOD+NN)==2 OR (PERIOD+NN)==3,1,0);