通達(dá)信實(shí)戰(zhàn)很強(qiáng)MACD金叉和死叉背離買賣指標(biāo)公式
- 指標(biāo)類別: 通達(dá)信指標(biāo)公式
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評(píng)級(jí): ★★★★★
- 指標(biāo)分類: 趨勢(shì)
- 畫線方法: 副圖
- 日期:2020-11-03 來源:互聯(lián)網(wǎng)
通達(dá)信實(shí)戰(zhàn)很強(qiáng)MACD金叉和死叉背離買賣指標(biāo)公式:
SHORT:=12;
LONG:=26;
M:=9;
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),LINETHICK0;
DEA : EMA(DIFF,M),LINETHICK0;
DRAWBAND(DIFF,RGB(155,50,50),DEA,RGB(0,100,50));
力:2*(DIFF-DEA),NODRAW;
MACD : 2*(DIFF-DEA), COLORSTICK,LINETHICK2;
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
DRAWICON(CC AND EE,0.1,11);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背離:=IF(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),1.2,DRAWNULL),COLORRED,LINETHICK4,CROSSDOT;
勢(shì):DRAWLINE(A1=0,DEA,底背離,DEA,0),COLORRED LINETHICK2;
DRAWICON(DD AND EE AND DEA< HHV(DEA,180),0.1,2);
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
頂背離:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF),COLORWHITE;
壓:DRAWLINE(A2=0,DEA,頂背離,DEA,0),COLORGREEN LINETHICK2;
FF:=C=LLV(C,180);
GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
DRAWICON(LL AND GG,-0.1,16);
DRAWICON(FF AND GG AND DEA> LLV(DEA,180),-0.3,9);
MM:=IF(MACD< 0,MACD,0);
JJ:=MM> REF(MM,1);
ZZ:=REF(JJ,1)=1;
介入?yún)^(qū):(JJ AND ZZ)*DEA,POINTDOT,COLORFFFFFF;{MACD藍(lán)柱縮短---指今日比昨天短}
STICKLINE(介入?yún)^(qū)=DEA,DEA,DIFF,0,0),COLORFFFFFF;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0),COLORFF00FF;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,0,0)COLOR00FF00;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,0,0),COLORYELLOW;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,0,0),COLORRED;
持:IF(DIFF>=DEA,DIFF,DRAWNULL),COLORRED;
觀:IF(DEA>=DIFF,DEA,DRAWNULL),COLORFF9900;
股:IF(DIFF>=DEA,DEA,DRAWNULL),COLOR00FFFF;
望:IF(DEA>=DIFF,DIFF,DRAWNULL),COLOR00FF00;
AA:=BARSLAST(REF(CROSS(DIFF,DEA),1));
BB:=REF(CLOSE,AA+1)>CLOSE AND DIFF>REF(DIFF,AA+1) AND CROSS(DIFF,DEA);
進(jìn):DRAWLINE(AA=0,DEA,BB,DEA,0),COLOR0000FF;
STICKLINE(BB,0,0.1,0,1),COLORFFFFFF;
火:=BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1)),COLORRED;
山:=COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),5),COLORGREEN;
DRAWTEXT(REF(火,3)>0 AND REF(火,2)>0 AND REF(火,1)>0 AND 火=0 AND REF(火,1)>山,DIFF,'●'),COLORRED;
DRAWTEXT(REF(火,3)>0 AND REF(火,2)>0 AND REF(火,1)>0 AND 火=0 AND REF(火,1)>山,DIFF,'¤'),COLORYELLOW;
STICKLINE(REF(山,1)=0 AND 山>0,0,0.1{-1},5,2),COLORRED;
DRAWTEXT(REF("KDJ.J",1)<0 AND "KDJ.J">0,DIFF,'短'),COLORRED ;
通達(dá)信實(shí)戰(zhàn)很強(qiáng)MACD金叉和死叉背離買賣指標(biāo)公式實(shí)例圖解:
通達(dá)信實(shí)戰(zhàn)很強(qiáng)MACD金叉和死叉背離買賣指標(biāo)公式
- ·通達(dá)信改進(jìn)了的MACD指標(biāo)公式
- ·通達(dá)信MACD主圖指標(biāo)公式
- ·通達(dá)信MACD三背離指標(biāo)公式
- ·通達(dá)信變色MACD指標(biāo)公式
- ·通達(dá)信MACD金叉與背離指標(biāo)公式
- ·通達(dá)信改編MACD指標(biāo)公式
- ·通達(dá)信很好的MACD+KDJ指標(biāo)公式
- ·通達(dá)信齋主MACD通道主圖指標(biāo)公式
- ·通達(dá)信MACD控盤主圖指標(biāo)公式
- ·通達(dá)信金牌MACD指標(biāo)公式
- ·通達(dá)信機(jī)構(gòu)MACD指標(biāo)公式
- ·通達(dá)信MACD箭頭指標(biāo)公式