亚色全新中文字幕11p,欧美色中文字幕,日本特黄特大视频,99视频在精品免费

  • <dfn id="lejeg"></dfn>
    <ul id="lejeg"></ul>
  • <dfn id="lejeg"><span id="lejeg"></span></dfn>
    • <ul id="lejeg"></ul>

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

      通達信實用背離指標公式

      基本概況:
      • 指標類別: 通達信指標
      • 授權(quán)方式: 免費版
      • 指標評級: ★★★★★
      • 指標語言: 簡體中文
      • 指標來源: 互聯(lián)網(wǎng)
      • 指標日期: 2017-08-05 00:00:00
      內(nèi)容介紹:
      通達信實用背離指標公式:
      {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次低點:=LLV(DIFF,MACD金叉);
      MACD最低點:=LLV(DIFF,MACD上次死叉);
      MACD底背離:=REF(CLOSE,MACD金叉+1)>CLOSE AND MACD次低點>MACD最低點 AND CROSS(DIFF,DEA);
      DRAWLINE(MACD金叉=0,DEA,MACD底背離,DEA,0),COLORRED,LINETHICK2;
      {MACD頂背離}
      MACD次高點:=HHV(DIFF,MACD金叉);
      MACD最高點:=HHV(DIFF,MACD上次金叉);
      MACD頂背離:=REF(CLOSE,MACD死叉+1)<CLOSE AND MACD次高點<MACD最高點 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且收盤價在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次低點:=LLV(J,AAA1);
      KDJ最低點:=LLV(J,KDJ上次死叉);
      KDJ底背離:=REF(CLOSE,AAA1+1)>CLOSE AND KDJ次低點>KDJ最低點 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次高點:=HHV(J,AAA1);
      KDJ最高點:=HHV(J,KDJ上次金叉);
      KDJ頂背離:=REF(CLOSE,BBB1+1)<CLOSE AND KDJ次高點<KDJ最高點 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 N
      相關(guān)閱讀信息
      關(guān)于我們 | 商務(wù)合作 | 聯(lián)系投稿 | 聯(lián)系刪稿 | 合作伙伴 | 法律聲明 | 網(wǎng)站地圖