[0,0,MACD,0,0 ),COLOR00FFFF;]STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLOR0011EE;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLOR0033DD;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0,0 ),COLOR0055FF;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,macd,2,0>0,0,macd,2,0>
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,macd,1,0>0,0,macd,1,0>
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,macd,0,0>0,0,macd,0,0>
STICKLINE(MACD<=ref(macd,1)and>=ref(macd,1)and><0,0,macd,2,0>0,0,macd,2,0>
STICKLINE(MACD<=ref(macd,1)and>=ref(macd,1)and><0,0,macd,1,0>0,0,macd,1,0>
STICKLINE(MACD<=ref(macd,1)and>=ref(macd,1)and><0,0,macd,0,0>0,0,macd,0,0>
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 and="" count(jccount="">0>
STICKLINE(二次金叉,0,-0.18,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*1.1,13) ;
VAR0004:='MACD.DIF#WEEK'(6,13,5);
VAR0005:='MACD.DEA#WEEK'(6,13,5);
VAR0006:='MACD.MACD#WEEK'(6,13,5);
VAR7:='MACD.DIF#MONTH'(6,13,5);
VAR8:='MACD.DEA#MONTH'(6,13,5);
周金叉:IF(CROSS(VAR0004,VAR0005),0.3,0)LINESTICK, COLORRED,LINETHICK3;
月金叉:IF(CROSS(VAR7,VAR8),-0.5,0)LINESTICK, COLORYELLOW,LINETHICK3;
零軸金叉:IF(CROSS(VAR0004,0),0.2,0)LINESTICK,COLORGREEN,LINETHICK2;
0,LINETHICK3;
DRAWICON(CROSS(MACD,0),MACD,1);
DRAWICON(CROSS(DIF1,0),DIF1,1);
DRAWICON(CROSS(DIF,DEA),DIF,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
低位金叉:=CROSS(DIF,DEA) AND DIF<>
DRAWTEXT(低位金叉,-0.2,' 金叉'),COLORFFFFFF;
JCCOUNT1:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉1:=CROSS(DIF,DEA) AND DEA<0 and="" count(jccount="">0>
STICKLINE(二次金叉,0,-0.18,10,0),COLOR0042CC;
STICKLINE(二次金叉,0,-0.18,8,0),COLOR004FF2;
STICKLINE(二次金叉,0,-0.18,8,0),COLOR3375FF;
DRAWTEXT(二次金叉,-0.2,' 金叉二'),COLOR3375FF;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背離:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
STICKLINE(底背離,0,0.13,10,0),COLORCECE00;
STICKLINE(底背離,0,0.13,4,0),COLORFFFF00;
STICKLINE(底背離,0,0.13,2,0),COLORFFFF44;
DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORFFFFFF,LINETHICK1;
DRAWTEXT(底背離,0.3,' 底背離'),COLORFFFF26;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
頂背離:=REF(CLOSE,A2+1)DIF AND CROSS(DEA,DIF);DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN,LINETHICK1;