設(shè)正點(diǎn)財(cái)經(jīng)為首頁(yè)     加入收藏
            首 頁(yè) 財(cái)經(jīng)新聞 主力數(shù)據(jù) 財(cái)經(jīng)視頻 研究報(bào)告 證券軟件 指標(biāo)公式 股市學(xué)院 龍虎榜
            軟件搜索: 熱詞:大智慧 通達(dá)信 飛狐軟件 分析家 指南針 同花順 華爾街大師 券商行情
            字母檢索:
            你的位置: > 正點(diǎn)財(cái)經(jīng) > 證券軟件 > 指標(biāo)公式 > 正文

            通達(dá)信綜合背離指標(biāo)公式

            基本概況:
            • 指標(biāo)類別: 通達(dá)信指標(biāo)
            • 授權(quán)方式: 免費(fèi)版
            • 指標(biāo)評(píng)級(jí): ★★★★★
            • 指標(biāo)語(yǔ)言: 簡(jiǎn)體中文
            • 指標(biāo)來(lái)源: 互聯(lián)網(wǎng)
            • 指標(biāo)日期: 2017-08-08 00:00:00
            內(nèi)容介紹:
            通達(dá)信綜合背離指標(biāo)公式:
            {MACD背離}
            DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);
            DEA:EMA(DIFF,9);
            MACD:2*(DIFF-DEA), COLORSTICK,DRAWABOVE;
            MACD金叉:=BARSLAST(REF(CROSS(DIFF,DEA),1));
            MACD死叉:=BARSLAST(REF(CROSS(DEA,DIFF),1));
            MACD上次金叉:=SUMBARS(REF(CROSS(DIFF,DEA),1),2);
            MACD上次死叉:=SUMBARS(REF(CROSS(DEA,DIFF),1),2);
            {MACD底背離}
            MACD次低點(diǎn):=LLV(DIFF,MACD金叉);
            MACD最低點(diǎn):=LLV(DIFF,MACD上次死叉);
            MACD底背離:=REF(CLOSE,MACD金叉+1)>CLOSE AND MACD次低點(diǎn)>MACD最低點(diǎn) AND CROSS(DIFF,DEA);
            DRAWLINE(MACD金叉=0,DEA,MACD底背離,DEA,0),COLORRED,LINETHICK2;
            {MACD頂背離}
            MACD次高點(diǎn):=HHV(DIFF,MACD金叉);
            MACD最高點(diǎn):=HHV(DIFF,MACD上次金叉);
            MACD頂背離:=REF(CLOSE,MACD死叉+1)<CLOSE AND MACD次高點(diǎn)<MACD最高點(diǎn) AND CROSS(DEA,DIFF);
            DRAWLINE(MACD死叉=0,DEA,MACD頂背離,DEA,0),COLORGREEN,LINETHICK2;
            紅面積:SUM(MACD,BARSLAST(MACD<0))*(MACD>0),COLOR0000FF,NODRAW;
            綠面積:SUM(MACD,BARSLAST(MACD>0))*(MACD<0),COLORFFFF00,NODRAW;
            AA:=ROUND(REF(綠面積,1)*100);BB:=ROUND(REF(紅面積,1)*100);
            DRAWNUMBER(CROSS(0,MACD),0.04,ABS(BB)),COLORMAGENTA;
            DRAWNUMBER(CROSS(MACD,0),-0.01,ABS(AA)),COLORGREEN;
            {CCI}
            TYP:=(HIGH+LOW+CLOSE)/3;
            CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
            {BOLL}
            BOLL:=MA(CLOSE,20);
            UB:=BOLL+2*STD(CLOSE,20);
            LB:=BOLL-2*STD(CLOSE,20);
            {KDJ}
            RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
            K:=SMA(RSV,3,1);
            D:=SMA(K,3,1);
            J:=3*K-2*D;
            PP:=CCI<-160 AND CLOSE<LB AND J<20;
            QQ:=CCI>160 AND J>100;
            {KDJ中J值在0-90間為黃色,小于0為綠色,大于90為紅色}
            {顯示J值和CCI值}
            {CCI值小于160且收盤價(jià)在BOLL下軌一下,J值小于20為紅色箭頭,CCI大于160且J值大于100為綠色箭頭}
            DRAWICON(QQ,0,2);
            DRAWICON(PP,0,1);
            KDJ金叉:=BARSLAST(REF(CROSS(J,D),1));
            KDJ死叉:=BARSLAST(REF(CROSS(D,J),1));
            KDJ上次金叉:=SUMBARS(REF(CROSS(J,D),1),2);
            KDJ上次死叉:=SUMBARS(REF(CROSS(D,J),1),2);
            {KDJ底背離}
            AAA1:=BARSLAST(REF(CROSS(J,D),1));
            KDJ次低點(diǎn):=LLV(J,AAA1);
            KDJ最低點(diǎn):=LLV(J,KDJ上次死叉);
            KDJ底背離:=REF(CLOSE,AAA1+1)>CLOSE AND KDJ次低點(diǎn)>KDJ最低點(diǎn) AND CROSS(J,D);
            DRAWTEXT(KDJ底背離,MACD,'KDJ底'),COLORRED;
            STICKLINE(KDJ底背離,MACD,0,2,0),COLORRED;
            {KDJ頂背離}
            BBB1:=BARSLAST(REF(CROSS(D,J),1));
            KDJ次高點(diǎn):=HHV(J,AAA1);
            KDJ最高點(diǎn):=HHV(J,KDJ上次金叉);
            KDJ頂背離:=REF(CLOSE,BBB1+1)<CLOSE AND KDJ次高點(diǎn)<KDJ最高點(diǎn) AND CROSS(D,J);
            DRAWTEXT(KDJ頂背離,MACD,'KDJ頂'),COLORGREEN;
            STICKLINE(KDJ頂背離,MACD,0,2,0),COLORGREEN;
            {九轉(zhuǎn)}
            A1:=C>=REF(C,4);
            A2:=C<REF(C,4);
            A3:=C<REF(C,4) AND REF(A1,1);
            T:=BARSLAST(A3),NODRAW;
            M0:=(T=0 AND REFX(T=1 AND NOT(A2),1)) OR (REFX(T=2 AND NOT(A2),2)) OR (REFX(T=3 AND NOT(A2),3)) OR (REFX(T=4 AND NOT(A2),4)) OR (REFX(T=5 AND NOT(A2),5)) OR (REFX(T=6 AND NOT(A2),6)) OR (REFX(T=7 AND NOT(A2),7)) OR (REFX(T=8 AND NOT(A2),8));
            M1:=T=1 AND REFX(T=2 AND NOT(A2),1) OR (REFX(T=3 AND NOT(A2),2)) OR (REFX(T=4 AND NOT(A2),3)) OR (REFX(T=5 AND NOT(A2),4)) OR (REFX(T=6 AND NOT(A2),5)) OR (REFX(T=7 AND NOT(A2),6)) OR (REFX(T=8 AND NOT(A2),7));
            M2:=T=2 AND REFX(T=3 AND NOT(A2),1) OR (REFX(T=4 AND NOT(A2),2)) OR (REFX(T=5 AND NOT(A2),3)) OR (REFX(T=6 AND NOT(A2),4)) OR (REFX(T=7 AND NOT(A2),5)) OR (REFX(T=8 AND
            相關(guān)閱讀信息
            關(guān)于我們 | 商務(wù)合作 | 聯(lián)系投稿 | 聯(lián)系刪稿 | 合作伙伴 | 法律聲明 | 網(wǎng)站地圖
            无码专区一va亚洲天堂,久久综合无码人妻,日本一本之道之视频在线不卡,97久久精品视频,久久人人妻人人做人人爱,人妻少妇久久精品无码视频,少妇无码av无码专区线yy,鲁丝片av无码中文字幕