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

            同花順MACD能量分析指標(biāo)公式

            基本概況:
            • 指標(biāo)類別: 同花順指標(biāo)
            • 授權(quán)方式: 免費版
            • 指標(biāo)評級: ★★★★★
            • 指標(biāo)語言: 簡體中文
            • 指標(biāo)來源: 互聯(lián)網(wǎng)
            • 指標(biāo)日期: 2017-08-29 00:00:00
            內(nèi)容介紹:
            同花順MACD能量分析指標(biāo)公式SHORT:=12;
            LONG:=26;
            M:=9;
            DIFF:EMA(CLOSE,Short) - EMA(CLOSE,Long);
            DEA:EMA(DIFF,M);
            MACD:2*(DIFF-DEA),COLORSTICK;
            MACDHS:=IF(MACD>0 AND MACD>REF(MACD,1),MACD,0);
            MACDHX:=IF(MACD>0 AND MACD<REF(MACD,1),MACD,0);
            MACDLX:=IF(MACD<0 AND MACD<REF(MACD,1),MACD,0);
            MACDLS:=IF(MACD<0 AND MACD>REF(MACD,1),MACD,0);
            紅柱面積:=IF(MACD>0,SUM(MACD,BARSLAST(MACD<0)),0),PRECIS2,COLOR0000FF;
            綠柱面積:=IF(MACD<0,SUM(MACD,BARSLAST(MACD>0)),0),PRECIS2,COLOR006000;
            //MACD面積:IF(MACD<0,ABS(綠柱面積),ABS(紅柱面積)),NODRAW;
            DRAWTEXT(REF(MACD,1)>0 AND MACD<=0 ,HHV(MACD,4),TOSTRING(REF(紅柱面積,1),3)),colorred;
            DRAWTEXT(REF(MACD,1)<0 AND MACD>=0 ,LLV(MACD,4),TOSTRING(REF(ABS(綠柱面積),1),3)),Color00ff00;
            DRAWTEXT(ISNULL(REFX(&CLOSE,1))=1 AND MACD<0,LLV(MACD,4),TOSTRING(ABS(綠柱面積),3)),Color004A00;
            DRAWTEXT(ISNULL(REFX(&CLOSE,1))=1 AND MACD>0,HHV(MACD,4),TOSTRING(ABS(紅柱面積),3)),colorred;
            DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
            DEA : EMA(DIFF,M);
            MACD : 2*(DIFF-DEA);
            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;
            L4:=LLV(gj,4);
            jl:=(HHV(diff,55)-LLV(diff,55))/5;
            gt:=dea>REF(dea,1) AND REF(dea,1)<REF(dea,2);
            A1:=BARSLAST(REF(gt,1));
            底背離:=REF(L4,A1+1)>CLOSE AND diff>REF(diff,A1+1) AND gt;
            DRAWLINE(A1=0,DEA,底背離,REF(DEA,A1),0),colorred,LINETHICK2;
            DRAWLINE(底背離,DEA,底背離,REF(DEA,A1),0),colorred,LINETHICK2;
            DRAWTEXT(底背離,REF(DEA,A1)*1.18,' 底背離'),COLORFF00FF;
            H4:=HHV(gj,4);
            gt2:=dea<REF(dea,1) AND REF(dea,1)>REF(dea,2);
            A2:=BARSLAST(REF(gt2,1));
            頂背離:= REF(H4,A2+1)<H4 AND diff<REF(diff,A2+1) AND gt2;
            DRAWLINE(A2=0 ,DEA,頂背離,REF(DEA,A2),0),colorgreen,LINETHICK2;
            DRAWLINE(頂背離,DEA,頂背離,REF(DEA,A2),0),colorgreen,LINETHICK2;
            DRAWTEXT(頂背離,REF(DEA,A2)*1.18,' 頂背離'),colorgreen;
            TT:=(2*CLOSE+OPEN+HIGH+LOW);
            主導(dǎo)動能:TT/EMA(TT,4)-1,COLORSTICK;
            FF:=主導(dǎo)動能;
            STICKLINE(FF>0,0,FF,8,0),COLOR33CFDD;
            STICKLINE(FF>0 AND FF>REF(FF,1),0,FF,8,0),COLOR0000CC;
            STICKLINE(FF<=0,0,FF,8,0),COLOR00CC00;
            STICKLINE(FF<=0 AND FF>REF(FF,1),0,FF,8,0),COLORFF9900;
            做多主導(dǎo):IFF(FF>0 AND FF>REF(FF,1),FF,0),NODRAW,COLOR0000CC;
            獲利回吐:IFF(FF>0 AND FF<=REF(FF,1),FF,0),NODRAW,COLOR33CFDD;
            做空主導(dǎo):IFF(FF<=0 AND FF<=REF(FF,1),FF,0),NODRAW,COLOR00CC00;
            空頭回補:IFF(FF<=0 AND FF>REF(FF,1),FF,0),NODRAW,COLORFF9900;
            DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;
            DEA :=EMA(DIFF,9),coloryellow;
            MACD:=2*(DIFF-DEA);
            Zero :0;
            gj:=MAX(C,O);
            STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,10,0),color0000ff;
            STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,10,0),colorffff00;
            STICKLINE(MACD<0 AND MACD>=REF(MACD,1),
            相關(guān)閱讀信息
            關(guān)于我們 | 商務(wù)合作 | 聯(lián)系投稿 | 聯(lián)系刪稿 | 合作伙伴 | 法律聲明 | 網(wǎng)站地圖
            无码专区一va亚洲天堂,久久综合无码人妻,日本一本之道之视频在线不卡,97久久精品视频,久久人人妻人人做人人爱,人妻少妇久久精品无码视频,少妇无码av无码专区线yy,鲁丝片av无码中文字幕