N:=42;
TYP:=(HIGH+LOW+CLOSE)/3;
MACD1:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
STICKLINE(MACD1>100,MACD1,100,2,0),COLORMAGENTA,COLORRED;
STICKLINE(MACD1<-150,MACD1,100,2,0),COLORGREEN;
STICKLINE(MACD1>0,MACD1,100,2,0),COLORCYAN;
STICKLINE(MACD1>-150 AND MACD1<-100,MACD1,100,2,0),COLOR0055FF;
STICKLINE(MACD1>-100 AND MACD1<0,MACD1,100,2,0),COLORMAGENTA;
STICKLINE(MACD1>0 AND MACD1<100,MACD1,100,2,0),COLORYELLOW;
STICKLINE(MACD1>100 AND MACD1<500,MACD1,100,2,0),COLORRED;
强弱分界:100,COLORRED;