大智慧MACD背變指標(biāo)公式
大智慧指標(biāo)公式源碼概況:
- 指標(biāo)類(lèi)別: 大智慧指標(biāo)公式
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評(píng)級(jí): ★★★★★
- 指標(biāo)分類(lèi): 趨勢(shì)
- 畫(huà)線(xiàn)方法: 副圖
- 日期:2019-01-08 來(lái)源:互聯(lián)網(wǎng)
大智慧指標(biāo)公式源碼介紹:
大智慧MACD背變指標(biāo)公式:
DRAWTEXTREL(10,5,'正面負(fù)面:'+BKNAME),COLORwhite;
DIFF : EMA(CLOSE,9) - EMA(CLOSE,26),COLORgreen;
DEA : EMA(DIFF,12),COLORyellow;
MACD : 2*(DIFF-DEA), COLORSTICK,COLOR5454FF;
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;
上升背離:(CC AND EE)*DEA,COLOR00FFFF;
頂背離:(DD AND EE AND DEA< HHV(DEA,180))*DEA,STICK,LINETHICK3,COLORGREEN;
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;
下降背離:(LL AND GG)*DEA,COLORMAGENTA;
底背離:(FF AND GG AND DEA> LLV(DEA,180))*DEA,STICK,LINETHICK3,COLORRED;
MM:=IF(MACD< 0,MACD,0);
JJ:=MM> REF(MM,1);
ZZ:=REF(JJ,1)=1;
介入?yún)^(qū):(JJ AND ZZ)*DEA,POINTDOT,COLORRED;
STICKLINE(介入?yún)^(qū)=DEA,DEA,DIFF,3,0),COLORRED;
DRAWTEXT(CROSS(DIFF,DEA ),0,'金叉'),ColorFFFFFF;
DRAWTEXT(CROSS(DEA,DIFF ),0,'死叉'),COLORGREEN;
DIFF : EMA(CLOSE,9) - EMA(CLOSE,26),COLORgreen;
DEA : EMA(DIFF,12),COLORyellow;
MACD : 2*(DIFF-DEA), COLORSTICK,COLOR5454FF;
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;
上升背離:(CC AND EE)*DEA,COLOR00FFFF;
頂背離:(DD AND EE AND DEA< HHV(DEA,180))*DEA,STICK,LINETHICK3,COLORGREEN;
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;
下降背離:(LL AND GG)*DEA,COLORMAGENTA;
底背離:(FF AND GG AND DEA> LLV(DEA,180))*DEA,STICK,LINETHICK3,COLORRED;
MM:=IF(MACD< 0,MACD,0);
JJ:=MM> REF(MM,1);
ZZ:=REF(JJ,1)=1;
介入?yún)^(qū):(JJ AND ZZ)*DEA,POINTDOT,COLORRED;
STICKLINE(介入?yún)^(qū)=DEA,DEA,DIFF,3,0),COLORRED;
DRAWTEXT(CROSS(DIFF,DEA ),0,'金叉'),ColorFFFFFF;
DRAWTEXT(CROSS(DEA,DIFF ),0,'死叉'),COLORGREEN;
PARTLINE(DIFF,DIFF>(REF(DIFF,1)+0.008),RGB(255,0,0)){,COLORMAGENTA},LINETHICK2;
PARTLINE(DEA,DIFF<=(REF(DIFF,1)+0.008){長(zhǎng)期線(xiàn)<=REF(長(zhǎng)期線(xiàn),1)},RGB(50,100,100)){,COLORFFFF00,LINETHICK2};
PARTLINE(DEA,DIFF<=(REF(DIFF,1)+0.008){長(zhǎng)期線(xiàn)<=REF(長(zhǎng)期線(xiàn),1)},RGB(50,100,100)){,COLORFFFF00,LINETHICK2};
FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);
FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;
FH3:=FH1 AND FH2 AND EMA(C,13)>REF(EMA(C,13),1);
FH4:=FH1 AND FH2 AND ABS((DIFF-DEA)/C)<0.018;
FH5:=FH1 AND FH2 AND MACD<0.10;
DRAWTEXT(FH3 OR FH4 OR FH5,DIFF,'★'),COLORred;
大智慧MACD背變指標(biāo)公式實(shí)例圖解:
大智慧MACD背變指標(biāo)公式
大智慧指標(biāo)相關(guān)閱讀
- ·通達(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控盤(pán)主圖指標(biāo)公式
- ·通達(dá)信金牌MACD指標(biāo)公式
- ·通達(dá)信機(jī)構(gòu)MACD指標(biāo)公式
- ·通達(dá)信MACD箭頭指標(biāo)公式