飞狐MACD超强叠加K线指标
源码
超强的MACD叠加K线。几种形态:
一、K线正好站在MACD的交叉点上,如果MACD在0轴之上的交叉是强势股,在0轴之下的交叉是次强股。
二、个股K线从下或平台钻入DIFF与DEA组成的轨道中,MACD在0轴附近,最好在0轴之上。
三、个股K线在MACD之上走,但K线紧压着DIFF线上涨,在此情形下K线沉入轨道中离场,击穿DEA时不留仓。
四、个股K线在MACD之下,但紧跟着DEA线上涨,一旦进入轨道中时滞涨准备离场,出现反向击穿DEA时危险信号。
五、K线运行在MACD之上且远离MACD此类个股多数为涨升后的现象,这些个股灵活性大,尽量避免参与。
其余的请各位朋友多指点,还几种不适合这个公式的。这个公式做短线博杀比较好。
{MACD超强叠加K线}
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA: EMA(DIFF,9),COLORGREEN;
MACD : 2*(DIFF-DEA), COLORSTICK;
s1:=MACD<ref(MACD,1)and MACD>0;
s2:=MACD<ref(MACD,1)/2 and MACD<0;
PARTLINE(DIFF>DEA,DIFF),COLORff11cc,LINETHICK2;
PARTLINE(DIFF>DEA AND DIFF<0,DIFF),COLORred,LINETHICK2;
DRAWICON(CROSS(DIFF,DEA),DIFF-0.01,6);
DRAWICON(CROSS(DEA,DIFF),DIFF,11);
D1:=EMA(C,3)-EMA(C,15);
D2:=EMA(O,3)-EMA(O,15);
D3:=EMA(H,3)-EMA(H,15);
D4:=EMA(L,3)-EMA(L,15);
DRAWICON(cross(d1,diff) and diff<-0.05 ,d4-0.1,1);
DRAWICON(cross(diff,d1) and diff>0.1 ,d3+0.1,2);
STICKLINE(D1>=D2,D1,D2,8,0),COLOR0055AA;
STICKLINE(D1<=D2,D1,D2,8,0),COLOR006600;
STICKLINE(D1>=D2,D1,D2,5,0),COLOR0077CC;
STICKLINE(D1>=D2,D1,D2,3,0),COLOR0099DD;
STICKLINE(D1>=D2,D3,D4,0,0),COLOR00BBFF;
STICKLINE(D1<=D2,D1,D2,5,0),COLOR009900;
STICKLINE(D1<=D2,D1,D2,3,0),COLOR00BB00;
STICKLINE(D1<=D2,D3,D4,0,0),COLOR00EE00;
-0.2