超短MACD,重新设定了macd的参数,适合短线操作。
使用过程中,请参考大盘,个股的形态及其它指标。
用法:macd大于0且选股指标等于1,介入。
macd高位死叉减仓,下穿0轴清仓。
DIFF : EMA(CLOSE,6) - EMA(CLOSE,13);
DEA : EMA(DIFF,4);
MACD : 2*(DIFF-DEA);
Zero : 0;
STICKLINE((MACD > 0),0,MACD,1,0),COLOR0000CC;
STICKLINE((MACD > 0),0,MACD*0.9,1,0),COLOR0000EE;
STICKLINE((MACD > 0),0,MACD*0.8,1,0),COLOR0011FF;
STICKLINE((MACD > 0),0,MACD*0.7,1,0),COLOR0033FF;
STICKLINE((MACD > 0),0,MACD*0.6,1,0),COLOR0055FF;
STICKLINE((MACD > 0),0,MACD*0.5,1,0),COLOR0077FF;
STICKLINE((MACD > 0),0,MACD*0.4,1,0),COLOR0099FF;
STICKLINE((MACD > 0),0,MACD*0.3,1,0),COLOR00BBFF;
STICKLINE((MACD > 0),0,MACD*0.2,1,0),COLOR00DDFF;
STICKLINE((MACD > 0),0,MACD*0.1,1,0),COLOR00FFFF;
STICKLINE((MACD < 0),0,MACD,1,0),COLORCC0033;
STICKLINE((MACD < 0),0,MACD*0.9,1,0),COLOREE0033;
STICKLINE((MACD < 0),0,MACD*0.8,1,0),COLORFF1133;
STICKLINE((MACD < 0),0,MACD*0.7,1,0),COLORFF3333;
STICKLINE((MACD < 0),0,MACD*0.6,1,0),COLORFF5533;
STICKLINE((MACD < 0),0,MACD*0.5,1,0),COLORFF7733;
STICKLINE((MACD < 0),0,MACD*0.4,1,0),COLORFF9933;
STICKLINE((MACD < 0),0,MACD*0.3,1,0),COLORFFBB33;
STICKLINE((MACD < 0),0,MACD*0.2,1,0),COLORFFDD33;
STICKLINE((MACD < 0),0,MACD*0.1,1,0),COLORFFFF33;
A0:=DIFF<0 AND DEA<0;
A11:=A0>REF(A0,1);
A3:=BARSLAST(A11);
A4:=COUNT(DEA>0 AND DIFF >0,A3)=0;
A5:=CROSS(DIFF ,DEA);
A6:=BARSLAST(A5);
A7:=REF(A6,A6+1)+A6;
A8:=(DIFF+DEA)/2;
A9:=(HIGH+LOW)/2;
A10:=A5 AND A7<A3 AND A4 AND A8>REF(A8,A7) AND A9<REF(A9,A7) AND MACD>0;
DRAWTEXT(A10,DIFF*0.95,'.'),coloryellow;
DRAWTEXT(CROSS(DIFF,DEA),DIFF,'金叉'),coloryellow;
DRAWTEXT(CROSS(DEA,DIFF),DEA,'死叉'),colorligreen;
DIFF : EMA(CLOSE,6) - EMA(CLOSE,13);
DEA : EMA(DIFF,4);
MACD=2*(DIFF-DEA);
XG:(DIFf-DEA)>0.0 AND MACD>0.02;