• <nobr id="l7vbj"></nobr>

    <sub id="l7vbj"><mark id="l7vbj"><blockquote id="l7vbj"></blockquote></mark></sub>
    <nobr id="l7vbj"></nobr>
            <form id="l7vbj"><th id="l7vbj"></th></form>

            1. <nobr id="l7vbj"></nobr>
              我愛環境保護
              • 首頁
              • 財經知識
              • 通達信shape_short,shape_mid,shape_long函數詳解及對應使用示例

              通達信shape_short,shape_mid,shape_long函數詳解及對應使用示例

              發布:生態652022-9-13 2:03分類: 財經知識 標簽: 操作 佳奕交易系統 通達信 公式

              轉自通達信用戶反饋區:

              一、shape_short,shape_mid,shape_long三個形態函數返回為對應的數字,數定對應的形態如下:

              1:倒V型反轉 2:V型反轉 3:W底 4:M頂 5:盤整 6:盤整后上行 7:盤整后下跌 8:上升通道 9:下降通道 10:拐頭下跌 11:拐頭上升 12:上行盤整 13:下跌盤整 14:其它形態 

              二、各處形態對應的解釋如下:

              1、shape_short:短期形態,近60天歷史 行情走勢進行形態研判

              2、shape_mid:中期形態,對近120天歷史行情走勢進行形態研判

              3、shape_long:長期形態,對近240-500天歷史行情走勢進行形態研判

              showpasted.png

              三、對應使用示例公式源碼及圖例:

              1、公式源碼

              交易周期:=CURRBARSCOUNT;

              交易周期條件:=(交易周期<=55);

              {指數均數系統}

              CYC1:=EMA(C,5);

              CYC2:=EMA(C,13);

              CYC3:=EMA(C,34);

              CYC4:=EMA(C,55);

              E2331:=EMA(C,233);

              {畫變線均線}

              NOTEXT13:IF(交易周期條件,EMA(C,N1),DRAWNULL),COLORLIBLUE,LINETHICK1;

              E131:IF(EMA(C,N1)>REF(EMA(C,N1),1) AND 交易周期條件,EMA(C,N1),DRAWNULL),COLORRED,LINETHICK1;

              NOTEXT34:IF(交易周期條件,EMA(C,N2),DRAWNULL),COLORLIBLUE,LINETHICK1;

              NOTEXT341:IF(EMA(C,N2)>REF(EMA(C,N2),1) AND 交易周期條件,EMA(C,N2),DRAWNULL),COLORRED,LINETHICK1;

              NOTEXT55:IF(交易周期條件,EMA(C,N3),DRAWNULL),COLORLIBLUE,LINETHICK1;

              NOTEXT551:IF(EMA(C,N3)>REF(EMA(C,N3),1) AND 交易周期條件,EMA(C,N3),DRAWNULL),COLORRED,LINETHICK1;

              NOTEXT233:IF(交易周期條件,EMA(C,233),DRAWNULL),COLOR9F5F9F,LINETHICK1;

              NOTEXT234:IF(EMA(C,233)>REF(EMA(C,233),1) AND 交易周期條件,EMA(C,233),DRAWNULL),COLORRED,LINETHICK1;

              {EMA均線上叉股票5\8\13日均線}

              周期1:=(PERIOD=0 OR PERIOD=1 OR  PERIOD=2);

              E5:=EMA(C,5);

              E8:=EMA(C,8);

              E13:=EMA(C,13);

              E13多:=(E13>REF(E13,1) AND REF(E13,1)>REF(E13,2));

              E55:=EMA(C,55);

              E55多:=(E55>REF(E55,1) AND REF(E55,1)>REF(E55,2));

              E233:=EMA(C,233);

              E233多:=(E233>REF(E233,1) AND REF(E233,1)>REF(E233,2));

              年多:=(C>E233);

              {三線金叉}

              E5813:=CROSS(E5,E8) AND CROSS(8,13) AND E55多 AND E233多 AND 年多;

              {多頭上叉

              E58:=CROSS(E5,E8) AND E13多 AND E55多 AND E233多 AND 年多;

              DRAWICON( (E5813 OR E58),H,5);}

              {13日均線向上拐向}

              E1312:=REF(E13,4)<REF(E13,5) AND REF(E13,3)<REF(E13,4) AND REF(E13,2)<REF(E13,3) AND REF(E13,1)>REF(E13,2) AND E13>REF(E13,1);

              {13日均線向下拐向}

              E1311:=REF(E13,4)>REF(E13,5) AND REF(E13,3)>REF(E13,4) AND REF(E13,2)>REF(E13,3) AND REF(E13,1)<REF(E13,2) AND E13<REF(E13,1);

              {55日均線向上拐向}

              E5512:=REF(E55,4)<REF(E55,5) AND REF(E55,3)<REF(E55,4) AND REF(E55,2)<REF(E55,3) AND REF(E55,1)>REF(E55,2) AND E55>REF(E55,1);

              {55日均線向下拐向}

              E5511:=REF(E55,4)>REF(E55,5) AND REF(E55,3)>REF(E55,4) AND REF(E55,2)>REF(E55,3) AND REF(E55,1)<REF(E55,2) AND E55<REF(E55,1);

              {長多或是長空信號}

              長多:=(COUNT(E5512,3)>=1 AND COUNT(E1312,3)>=1);

              長空:=(COUNT(E5511,3)>=1 AND COUNT(E1311,3)>=1);

              DRAWICON(E1312 AND NOT(周期1) AND NOT(長多) AND 交易周期條件,E13,5);

              DRAWICON(E1311 AND NOT(周期1) AND NOT(長空) AND 交易周期條件,E13,6);

              DRAWICON(E5512 AND NOT(周期1) AND NOT(長多) AND 交易周期條件,E55,5);

              DRAWICON(E5511 AND NOT(周期1) AND NOT(長空) AND 交易周期條件,E55,6);

              DRAWICON(長多 AND NOT(周期1) AND 交易周期條件,E55,7);

              DRAWICON(長空 AND NOT(周期1) AND 交易周期條件,E55,8);

              {短期:近60天,中期:近120天,長期:240-500天}

              顯示周期:=(PERIOD=0 OR PERIOD=1 OR PERIOD=2 OR PERIOD=3 OR  PERIOD=4 OR PERIOD=6 OR PERIOD=7 OR PERIOD=8 OR PERIOD=9 OR PERIOD=10);

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期),0.11,0.02,0,'短:60-中:120-長:240-500'),COLORRED;

              {短期形態提示}

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=1,0.11,0.22,0,'短期形態:∧型反轉'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=2,0.11,0.22,0,'短期形態:∨型反轉'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=3,0.11,0.22,0,'短期形態:W底'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=4,0.11,0.22,0,'短期形態:M頂'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=5,0.11,0.22,0,'短期形態:盤整'),COLORLIBLUE;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=6,0.11,0.22,0,'短期形態:盤整上行'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=7,0.11,0.22,0,'短期形態:盤整下跌'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=8,0.11,0.22,0,'短期形態:上升通道'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=9,0.11,0.22,0,'短期形態:下降通道'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=10,0.11,0.22,0,'短期形態:拐頭下跌'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=11,0.11,0.22,0,'短期形態:拐頭上升'),COLORLIRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=12,0.11,0.22,0,'短期形態:上行盤整'),COLORLIBLUE;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=13,0.11,0.22,0,'短期形態:下跌盤整'),COLORLIBLUE;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_SHORT=14,0.11,0.22,0,'短期形態:NA/其它'),COLORLIBLUE;

              {中期形態提示}

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=1,0.11,0.42,0,'中期形態:∧型反轉'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=2,0.11,0.42,0,'中期形態:∨型反轉'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=3,0.11,0.42,0,'中期形態:W底'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=4,0.11,0.42,0,'中期形態:M頂'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=5,0.11,0.42,0,'中期形態:盤整'),COLORLIBLUE;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=6,0.11,0.42,0,'中期形態:盤整上行'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=7,0.11,0.42,0,'中期形態:盤整下跌'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=8,0.11,0.42,0,'中期形態:上升通道'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=9,0.11,0.42,0,'中期形態:下降通道'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=10,0.11,0.42,0,'中期形態:拐頭下跌'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=11,0.11,0.42,0,'中期形態:拐頭上升'),COLORLIRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=12,0.11,0.42,0,'中期形態:上行盤整'),COLORLIBLUE;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=13,0.11,0.42,0,'中期形態:下跌盤整'),COLORLIBLUE;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_MID=14,0.11,0.42,0,'中期形態:NA/其它'),COLORLIBLUE;

              {長期形態提示}

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=1,0.11,0.62,0,'長期形態:∧型反轉'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=2,0.11,0.62,0,'長期形態:∨型反轉'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=3,0.11,0.62,0,'長期形態:W底'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=4,0.11,0.62,0,'長期形態:M頂'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=5,0.11,0.62,0,'長期形態:盤整'),COLORLIBLUE;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=6,0.11,0.62,0,'長期形態:盤整上行'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=7,0.11,0.62,0,'長期形態:盤整下跌'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=8,0.11,0.62,0,'長期形態:上升通道'),COLORRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=9,0.11,0.62,0,'長期形態:下降通道'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=10,0.11,0.62,0,'長期形態:拐頭下跌'),COLORLIGREEN;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=11,0.11,0.62,0,'長期形態:拐頭上升'),COLORLIRED;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=12,0.11,0.62,0,'長期形態:上行盤整'),COLORLIBLUE;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=13,0.11,0.62,0,'長期形態:下跌盤整'),COLORLIBLUE;

              DRAWTEXT_FIX(ISLASTBAR=1 AND NOT(顯示周期) AND  SHAPE_LONG=14,0.11,0.62,0,'長期形態:NA/其它'),COLORLIBLUE;

              {描述行業、地域、風格和概念}

              DY:='股息率:';

              FG:=CON2STR(FINANCE(45),2);

              股息率:=STRCAT(DY,FG);

              DRAWTEXT_FIX(ISLASTBAR=1 AND 顯示周期,0.11,0.02,0,股息率),COLOR9F5F9F;

              2、公式圖例:

              2022-09-13_101823.png
              掃描二維碼

              掃描二維碼關注本站,了解更新資訊!

              伊人久久综合热青草,强?剧,压在稚嫩的身体中h
            2. <nobr id="l7vbj"></nobr>

              <sub id="l7vbj"><mark id="l7vbj"><blockquote id="l7vbj"></blockquote></mark></sub>
              <nobr id="l7vbj"></nobr>
                      <form id="l7vbj"><th id="l7vbj"></th></form>

                      1. <nobr id="l7vbj"></nobr>