DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);:=2*(DIFF-DEA);BUY1:=OSS(MACD,0);BUY2:=COUNT(MACD>0,2)=2;BUY3:=COUNT(BUY1,2)>0 AND BUY2;{DRAWTEXT(BUY3,H*1.015,'支压线'),COLORFF00FF;}STICKLINE(CLOSE,REF(LOW,BARSLAST(BUY3)),REF(LOW,BARSLAST(BUY3)),6,0),coloryellow;STICKLINE(CLOSE,REF(HIGH,BARSLAST(BUY3)),REF(HIGH,BARSLAST(BUY3)),6,0),colorgreen;绿柱1:=REF(MACD,1)<=0 AND MACD<0>0;绿柱:=BARSLASTCOUNT(MACD,MACD<0)=4;STICKLINE(CLOSE,REF(LOW,BARSLAST(绿柱)),REF(LOW,BARSLAST(绿柱)),6,0),colorwhite;