以下是同花顺墨航macd指标公式
在牛市中,黄柱出现,短期买点,也意味着中线行情启动,不怕回调,大胆买入;
绿柱出现,主力拉升,不怕回调,大胆买入。
其他买点,除了macd本身买卖判断以外,
添加了天王买卖箭头提示
ZF5:=C/REF(C,5)<=1.3;”这是5日涨幅小于30%”;
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;
短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21);
中线:=SMA(RSV2,5,1)+2*STD(CLOSE,37);
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
长线:=SMA(RSV3,5,1);
黄金坑:短线<20 AND 中线<20 AND 长线<20,coloryellow,nodraw;
STICKLINE(黄金坑>0 AND 黄金坑>=REF(黄金坑,1),0,黄金坑,2,0),coloryellow;
DIFF : EMA(CLOSE,12) – EMA(CLOSE,26),colorred;
DEA : EMA(DIFF,9),colorliblue;
DIFF大于零变白:IF(DIFF>=0,DIFF,DRAWNULL),colorwhite,linethick1;
DEA大于零变黄:IF(DEA>=0,DEA,DRAWNULL),coloryellow,linethick1;
MACD:2*(DIFF-DEA),nodraw;
Zero := 0;
gj:=MAX(C,O);
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,2,0),color0000ff;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),colorffff00;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorff00ff;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),color00ff00;
DF火:= BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1));
DF山:= COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),12);
天王卖:REF(DF火,4)>0 AND REF(DF火,3)>0 AND REF(DF火,2)>0 AND REF(DF火,1)>0 AND DF火=0 AND REF(DF火,1)>DF山,colorgreen,linethick2,nodraw;
STICKLINE(天王卖>0 AND 天王卖>=REF(天王卖,1),0,天王卖,10,0),colorgreen;
DRAWTEXT(天王卖,-MACD,”天王卖”),colorgreen;
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;
短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00;
中线:=SMA(RSV2,5,1)+2*STD(CLOSE,37),colorred;
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
长线:=SMA(RSV3,5,1),coloryellow;
中线2:=-100*(HHV(HIGH,40)-CLOSE)/(HHV(HIGH,40)-LLV(LOW,40));
大底:CROSS(中线2,-90) AND (长线<中线 AND 长线>REF(长线,1)OR 短线<20 AND 中线<20 AND 长线<20),colormagenta,nodraw;
STICKLINE(大底>0 AND 大底>=REF(大底,1),0,大底,10,0),colormagenta;
DRAWTEXT(大底,大底,”抄底“),colormagenta;
量比:=V/REF(MA(V,5),1),coloryellow;
DRAWTEXT(量比>3,-MACD,”有主力中期关注”),colorwhite;
评论(0)