显示主力操作趋势的MACD,红买绿卖,欢迎使用, 中线:0,Color9587FF; 
Var1:=EMA(MA(IF(CLOSE>OPEN,(CLOSE-OPEN)*VOL,IF(CLOSE<OPEN,(CLOSE-OPEN)*VOL,0)),5),1); 
Var2:=EMA(MA(IF(CLOSE>REF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,IF(CLOSE<REF(CLOSE,1),(CLOSE-REF(CLOSE,1))*VOL,0)),5),1); 
Var3:=EMA(MA(IF(OPEN>REF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,IF(OPEN<REF(CLOSE,1),(OPEN-REF(CLOSE,1))*VOL,0)),5),1); 
Var4:=EMA(MA(IF(CLOSE<OPEN,(OPEN-CLOSE)*VOL,IF(CLOSE>OPEN,(OPEN-CLOSE)*VOL,0)),10),1); 
Var5:=EMA(MA(IF(CLOSE<REF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,IF(CLOSE>REF(CLOSE,1),(REF(CLOSE,1)-CLOSE)*VOL,0)),10),1); 
Var6:=EMA(MA(IF(OPEN<REF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,IF(OPEN>REF(CLOSE,1),(REF(CLOSE,1)-OPEN)*VOL,0)),10),1); 
Var7:=CLOSE>OPEN; 
Var8:=CLOSE>REF(CLOSE,1); 
Var9:=OPEN>REF(CLOSE,1); 
多头:=(Var1+Var2+Var3)/3/10000,colorff00ff; 
空头:=(Var4+Var5+Var6)/3/10000,color00ff00; 
A:=EMA(EMA((Var1+Var2+Var3)/3-(Var4+Var5+Var6)/3,5),5)*1/100,colorgray,linethick2; 
一次金叉:EMA((COUNT(Var8,12)/12+COUNT(Var7,12)/12+COUNT(Var9,12)/12)/5*MA(多头,5.3)*2*6.8,5)/12,colorblue,linethick3; 
短趋势:EMA((COUNT(Var8,12)/12+COUNT(Var7,12)/12+COUNT(Var9,12)/12)/5*MA(多头,5)*2*6.8,5)/12,Color10dd10,linethick1; 
二次金叉:=EMA((COUNT(Var8,22)/22+COUNT(Var7,22)/22+COUNT(Var9,22)/22)/18*MA(多头,8)*5*1.8,5),colorred,linethick3; 
长趋势:=EMA((COUNT(Var8,22)/22+COUNT(Var7,22)/22+COUNT(Var9,22)/22)/18*MA(多头,8)*5*1.8,5),Color10c110,linethick2; 
DRAWTEXT(CROSS(一次金叉,中线),中线+0,'★'),colorred; 
DRAWTEXT(CROSS(二次金叉,中线),中线+0,'★<'),colorgreen; 
STICKLINE(短趋势>0 AND 短趋势<REF(短趋势,1),短趋势,0,5,0),Color10dd10; 
STICKLINE(短趋势<0 AND 短趋势<REF(短趋势,1),短趋势,0,5,0),colorgreen; 
STICKLINE(短趋势>0 AND 短趋势>=REF(短趋势,1),短趋势,0,5,0),colorred; 
STICKLINE(短趋势<0 AND 短趋势>=REF(短趋势,1),短趋势,0,5,0),colorff00ff; 
升:IF(短趋势>REF(短趋势,1),短趋势,DRAWNULL),colorwhite,LINETHICK1; 
降:IF(短趋势<REF(短趋势,1),短趋势,DRAWNULL),Color10dd10,LINETHICK1; 
 | 




