咨Q:984388831,NODRAW,colorred;红先锋0:=CLOSE-REF(CLOSE,5);红先锋1:=EMA(EMA(红先锋0,5),5)/EMA(EMA(ABS(红先锋0),5),5)*100;红先锋2:=EMA(EMA(红先锋0,10),10)/EMA(EMA(ABS(红先锋0),10),10)*100;红先锋3:=EMA(EMA(红先锋0,20),20)/EMA(EMA(ABS(红先锋0),20),20)*100;买:IF(红先锋3<-45 AND CROSS(红先锋2,红先锋3),15,00),LINETHICK1,coloryellow;买入:IF(CROSS(红先锋2,红先锋3)AND 红先锋3<-45 ,5,0),LINETHICK1,coloryellow;卖:IF(红先锋1>50 AND CROSS(红先锋2,红先锋1),-5,00),LINETHICK1,colorcyan;卖出:IF(CROSS(红先锋2,红先锋1)AND 红先锋1>50 ,-15,0),LINETHICK1,colorcyan;DIFF:(EMA(CLOSE,12) - EMA(CLOSE,26))*20,COLORFFFFFF,LINETHICK1;DEA:EMA(DIFF,9),COLOR00FFFF,LINETHICK1;MACD:2*(DIFF-DEA), COLORSTICK;MACD1:2*(DIFF-DEA),colorred,LINETHICK0;MACD2:SMA(MACD1,0,3),COLORFFFF00,LINETHICK0;STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2,0),colorred;STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2,0),COLOR00FFFF;STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLOR40FF00;S1:=MACD<0;S2:= (MACD>=0);S3:=BARSLAST(CROSS(DIFF,DEA));S4:=REF(S3,S3+1);S5:=DEA>REF(DEA,S4);S6:=DEA;上成立:=CROSS(DIFF,DEA) AND S5;下成立:=CROSS(DIFF,DEA) AND S6;