DEA: EMA(DIFF,d3),LAYER0,linethick1;
MACD:2*(DIFF-DEA), COLORSTICK,LAYER2,linethick2;
STICKLINE(CROSS(DIFF ,DEA),DIFF,DIFF,1,1),ColorFF00FF,linethick5;
STICKLINE(CROSS(DEA ,DIFF),DIFF,DIFF,1,1),Color00FF00,linethick5;
周DIFF:MA( MACD.DIFF#WEEK (wa,wb,wc),5),Color8000FF,linethick1,PRECIS2;
周DEA:MA( MACD.DEA#WEEK (wa,wb,wc),5),Color8000FF,linethick1,PRECIS2;
周MACD:2*(周DIFF-周DEA),PRECIS2,linethick0,ColorFF00FF;
STICKLINE(周DIFF =周DEA,周MACD,0,0.1,1),Color00FFFF,LAYER0;
STICKLINE(周DIFF 周DEA,周MACD,0,0.1,1),Color00FF00,LAYER0;
M1:MA( MACD.DIFF#MONTH (ma0,mb,mc),20),LINETHICK0,ColorC080FF;
M2:MA( MACD.DEA#MONTH (ma0,mb,mc),20),LINETHICK0,ColorC080FF;
FILLRGN(m1,m2,m1 m2,RGB(150,0,0),m1 m2,RGB(0,150,150));
PARTLINE(m1,m1 =m2,RGB(150,0,0),m1 m2,RGB(0,150,150)),PRECIS2,LINETHICK1;
PARTLINE(m2,m1 =m2,RGB(150,0,0),m1 m2,RGB(0,150,150)),PRECIS2,LINETHICK1;
{STICKLINE(CROSS( MACD.DIFF#MONTH , MACD.DEA#MONTH ),m1,m1,2,0),ColorFF00FF,linethick5,LAYER0;
STICKLINE(CROSS( MACD.DEA#MONTH , MACD.DIFF#MONTH ),m1,m1,2,0),Color00FF00,linethick5,LAYER0;}
分1: MACD.DIFF#MIN60 ,COLORCYAN,linethick2;
分2: MACD.DEA#MIN60 ,COLORMAGENTA,linethick2;
PARTLINE(周DIFF,周DIFF =周DEA,RGB(180,0,100),周DIFF 周DEA,RGB(0,180,0),1,RGB(0,0,0)),LINETHICK1,Color000000;
PARTLINE(周DEA,周DEA =周DIFF,RGB(0,180,0),周DEA 周DIFF,RGB(180,0,0),1,RGB(0,0,0)),LINETHICK1,Color000000;
PARTLINE(m1,m1 =m2,RGB(100,0,0),m1 m2,RGB(0,100,0),1,RGB(0,0,0)),LINETHICK1,Color000000;
PARTLINE(m2,m2 =m1,RGB(0,100,0),m2 m1,RGB(100,0,0),1,RGB(0,0,0)),LINETHICK1,Color000000;
{DRAWICON(CROSS(DIFF ,DEA),DIFF*1.5,7),LAYER0;
DRAWICON(CROSS(DEA ,DIFF),DIFF*1.5,8),LAYER0;}
STICKLINE(CROSS(DIFF ,DEA),DIFF,DIFF,1,0),ColorFF00FF,linethick5,LAYER0;
STICKLINE(CROSS(DEA ,DIFF),DIFF,DIFF,1,0),Color00FF00,linethick5,LAYER0;
{DRAWTEXT(CROSS( MACD.DIFF#MONTH , MACD.DEA#MONTH ),m1*1.3,'△M'),ColorFF00FF,LAYER0;
DRAWTEXT(CROSS( MACD.DEA#MONTH , MACD.DIFF#MONTH ),m1*1.3,'▽M'),Color00FF00,LAYER0;
DRAWTEXT(CROSS( MACD.DIFF#WEEK , MACD.DEA#WEEK ),周DIFF*1.5,'△W'),COLORred,LAYER0;
DRAWTEXT(CROSS( MACD.DEA#WEEK , MACD.DIFF#WEEK ),周DIFF*1.5,'▽W'),Color00FF00,LAYER0;}
STICKLINE(CROSS( MACD.DIFF#WEEK , MACD.DEA#WEEK ),周DIFF,周DIFF,3,0),ColorFF00FF,linethick5,LAYER0;
STICKLINE(CROSS( MACD.DEA#WEEK , MACD.DIFF#WEEK ),周DIFF,周DIFF,3,0),Color00FF00,linethick5,LAYER0;
0,Color808080;
{DRAWGBKLAST(CLOSE 0,strip(RGB(0,0,0),RGB(150,150,0),0));}
FILLRGN(周DIFF,周DEA,周DIFF =周DEA,RGB(255,0,255),周DIFF =周DEA,RGB(0,255,0)),LAYER1;
PARTLINE(周DIFF,周DIFF =周DEA,RGB(255,0,255),周DIFF 周DEA,RGB(0,255,0)),PRECIS2,LINETHICK1;
PARTLINE(周DEA,周DIFF =周DEA,RGB(255,0,255),周DIFF 周DEA,RGB(0,255,0)),PRECIS2,LINETHICK1;