周DIFF:ma(EMA(CLOSE,40)-EMA(CLOSE,89),2),color909090,LINETHICK4; 周DEA:=EMA(周DIFF,28); FILLRGN(周DIFF,周DEA,周DIFF>周DEA,RGB(100,0,0),周DIFF<周DEA,RGB(0,80,0)); PARTLINE(周DIFF,周DIFF>=REF(周DIFF,1),RGB(250,0,0),周DIFF<REF(周DIFF,1) ,RGB(0,128,255)),LINETHICK2;
DIFF:EMA(CLOSE,10)-EMA(CLOSE,22),colorwhite; DEA:EMA(DIFF,7),coloryellow; MACD:(DIfF-DEA)*2,COLORSTICK; STICKLINE(MACD>ref(MACD,1)and MACD>0,0,MACD,3,0),COLORred;{0軸上長} STICKLINE(MACD<ref(MACD,1)and MACD>0,0,MACD,3,0),COLOR0779e2;{0軸上短} STICKLINE(MACD<ref(MACD,1)and MACD<0,0,MACD,3,0),colorff7700;{0軸下長} STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,3,0),colorgreen;{0軸下短}
SCT:=BARSLAST(CROSS(DEA,DIFF)); JC:=CROSS(DIFF,DEA) AND SCT<10 AND BETWEEN(DIFF-DEA,0,0.05); DRAWTEXT(JC,DIFF,'卷');
{散戶:=(DIfF-DEA)*2;} {DIF1:=EMA(CLOSE,3)-EMA(CLOSE,8);{3 8 5} {DEA1:=EMA(DIF1,5); 莊家:(DIF1-DEA1)*2,COLORff00ff,LINETHICK1;}{magenta};
{60分鐘} {DIFF60:-("MACD.DIFF##MIN60"(12,26,9)),COLOR655050; DEA60:-1*("MACD.DEA##MIN60"(12,26,9)),COLORf05050; {DRAWTEXT(FILTER(CROSS(DIFF60,DEA60),1),0,'↑'),ALIGN2,COLORWHITE;} {周線金叉,死叉▲} AA:="MACD.DIFF#WEEK"; BB:="MACD.DEA#WEEK"; DRAWTEXT(CROSS(AA,BB),0,'周'),ALIGN2,COLORyellow,LINETHICK3; DRAWTEXT(CROSS(BB,AA),0,'周'),ALIGN2,COLORFFFF80,LINETHICK3; {月線金叉,死叉★} CC:="MACD.DIFF#MONTH"; DD:="MACD.DEA#MONTH"; DRAWTEXT(CROSS(CC,DD),0,'月'),ALIGN2,COLORyellow,LINETHICK3; DRAWTEXT(CROSS(DD,CC),0,'月'),ALIGN2,COLORFFFF80,LINETHICK3;
|