相關(guān)標(biāo)簽:飛狐macd背離指標(biāo)公式 、 macd背離畫線副圖指標(biāo) 、 macd背離指標(biāo)公式源碼 、 macd頂?shù)妆畴x指標(biāo)公式 、 macd背離選股指標(biāo)公式 、 倚天macd背離指標(biāo)公式 、 macd指標(biāo)背離劃線公式 、 macd面積背離指標(biāo)公式 、 博易macd背離指標(biāo)公式 、 macd變色背離指標(biāo)公式 、 macd鈍化背離指標(biāo)公式 、 macd頂?shù)妆畴x主圖指標(biāo) 、 macd指標(biāo)分時圖背離 、 macd背離副圖 、 macd副圖頂背離 、
========
分析家公式網(wǎng)提示:下面的指標(biāo),源碼是錯誤的,有亂碼,不能修復(fù),附件里的
指標(biāo),改為擴展名是AKL,用交易師
軟件,可以導(dǎo)入的時候,可以看到
公式名稱,但是源碼還是錯誤的,,,,這下面的錯誤的源碼,就給大家參考吧,希望能有人修復(fù)好。 2015.12.11很好的飛狐,交易師,
MACD頂?shù)?/a>鈍化指標(biāo),再用不擔(dān)心被套了!!指標(biāo)很不錯,但用
飛狐、交易師不多,經(jīng)常用通達(dá)信,希望論壇有高手把這個
指標(biāo)改成
通達(dá)信的,謝謝各位了。--------------------
這里是指標(biāo)源代碼DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;SWIFTK:="MACD.MACD" * REF("MACD.MACD",1)<0;
EARLYDAY_1:=BARSLAST(SWIFTK,1);
EARLYDAY_2:=BARSLAST(SWIFTK,2);
EARLYDAY_3:=BARSLAST(SWIFTK,3);
EARLYDAY_4:=BARSLAST(SWIFTK,4);
EARLYDAY_5:=BARSLAST(SWIFTK,5);
CLOW_0:=REF(LLV(MIN(O,C),EARLYDAY_5-EARLYDAY_4-1),EARLYDAY_4+2);
CLOW_1:=REF(LLV(MIN(O,C),EARLYDAY_3-EARLYDAY_2-1),EARLYDAY_2+2);
CLOW_2:=LLV(MIN(O,C),EARLYDAY_1);
DIFFLOW_0:=REF(LLV("MACD.DIFF",EARLYDAY_5-EARLYDAY_4-1),EARLYDAY_4+2);
DIFFLOW_1:=REF(LLV("MACD.DIFF",EARLYDAY_3-EARLYDAY_2-1),EARLYDAY_2+2);
DIFFLOW_2:=LLV("MACD.DIFF",EARLYDAY_1);
鈍化L:=
"MACD.MACD"<0 AND (
(INTPART(DIFFLOW_2)-INTPART(DIFFLOW_1)>0 AND CLOW_1>CLOW_2) OR
(INTPART(DIFFLOW_2)-INTPART(DIFFLOW_0)>0 AND CLOW_0>CLOW_2)
);
結(jié)構(gòu)L:=
"MACD.MACD"<0 AND INTPART("MACD.DIFF")>REF(INTPART("MACD.DIFF"),1) AND (
(INTPART(DIFFLOW_2)-INTPART(DIFFLOW_1)>0 AND CLOW_1>CLOW_2 AND INTPART("MACD.DIFF")>INTPART(DIFFLOW_2)) OR
(INTPART(DIFFLOW_2)-INTPART(DIFFLOW_0)>0 AND CLOW_0>CLOW_2 AND INTPART("MACD.DIFF")>INTPART(DIFFLOW_2))
);
DRAWTEXT(鈍化L,"MACD.DIFF",'L');
DRAWICON(結(jié)構(gòu)L,"MACD.DIFF",4);CHIGH_0:=REF(HHV(MAX(O,C),EARLYDAY_5-EARLYDAY_4-1),EARLYDAY_4+2);
CHIGH_1:=REF(HHV(MAX(O,C),EARLYDAY_3-EARLYDAY_2-1),EARLYDAY_2+2);
CHIGH_2:=HHV(MAX(O,C),EARLYDAY_1);
DIFFHIGH_0:=REF(HHV("MACD.DIFF",EARLYDAY_5-EARLYDAY_4-1),EARLYDAY_4+2);
DIFFHIGH_1:=REF(HHV("MACD.DIFF",EARLYDAY_3-EARLYDAY_2-1),EARLYDAY_2+2);
DIFFHIGH_2:=HHV("MACD.DIFF",EARLYDAY_1);
鈍化H:=
"MACD.MACD">0 AND (
(INTPART(DIFFHIGH_2)-INTPART(DIFFHIGH_1)<0 AND CHIGH_1<CHIGH_2) OR
(INTPART(DIFFHIGH_2)-INTPART(DIFFHIGH_0)<0 AND CHIGH_0<CHIGH_2)
);
結(jié)構(gòu)H:=
"MACD.MACD">0 AND INTPART("MACD.DIFF")<REF(INTPART("MACD.DIFF"),1) AND(
(INTPART(DIFFHIGH_2)-INTPART(DIFFHIGH_1)<0 AND CHIGH_1<CHIGH_2 AND INTPART("MACD.DIFF")<INTPART(DIFFHIGH_2)) OR
(INTPART(DIFFHIGH_2)-INTPART(DIFFHIGH_0)<0 AND CHIGH_0<CHIGH_2 AND INTPART("MACD.DIFF")<INTPART(DIFFHIGH_2))
);
DRAWTEXT(鈍化H,"MACD.DIFF",'H');
DRAWICON(結(jié)構(gòu)H,"MACD.DIFF",5);----------------------{
程序化交易 www.kzuj.com.cn }
公式導(dǎo)入教程: 【通達(dá)信公式源碼導(dǎo)入方法教程】 【同花順公式源碼導(dǎo)入方法教程】 【大智慧新一代公式源碼導(dǎo)入方法教程】
