{通达信}
TYP:=(HIGH+LOW+CLOSE)/3;
NOTEXTCL:(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
NOTEXTC2:MA(NOTEXTCL,4);
NOTEXTC3:MA(NOTEXTCL,10),LINETHICK2;
DRAWBAND(NOTEXTCL,RGB(0,255,0),NOTEXTC2,0);
DRAWBAND(NOTEXTCL,RGB(255,0,0),NOTEXTC3,0);
LC:=REF(CLOSE,1);
DI:=(EMA(C,12)-EMA(C,26))*200;
DE:=EMA(DI,9);
MACD:=2*(DI-DE);
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*400-200;
STICKLINE(MACD>0ANDMACD>REF(MACD,1),MACD,0,1,0),COLOR0000AA;
STICKLINE(MACD>0ANDMACD STICKLINE(MACD STICKLINE(MACDREF(MACD,1),MACD,0,1,0),COLORFF00A9; CL:(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30)),COLORFFFFFF; C2:MA(CL,4); C3:MA(CL,10),COLOR00FFFF,LINETHICK2;