以下是通达信霸占大牛股(生命、K线、持股线),通达信公式源码

通达信霸占大牛股(生命、K线、持股线),通达信公式源码:

    H0:=MA(C,8);
    H1:=(55*H0+34*REF(H0,1)+21*REF(H0,2)+13*REF(H0,3)+8*REF(H0,4)+5*REF(H0,5)
    +3*REF(H0,6)+2*REF(H0,7)+REF(H0,8)+REF(H0,9))/143;
    H2:=REF(H1,1);
    短期牛熊:=0.5*(H1+H2);
    XG:EVERY(H1>H2,5)&&LONGCROSS(C,短期牛熊,2);
    JJX:=ABS(OPEN+HIGH+LOW+CLOSE)/4;
    生命:MA(JJX,5),COLORYELLOW;
    VL:=REF(LOW,1);VH:=REF(H,1);
    VAR1:=SMA(ABS(H-VH),13,1)/SMA(MAX(H-VH,0),13,1)*100;
    VAR2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;
    VAR3:=MA(VAR1,13);
    VAR4:=MA(VAR2,13);
    VAR5:=LLV(L,34);
    VAR6:=HHV(H,34);
    VAR7:=EMA(IF(H>=VAR6,VAR3,0),3);
    VAR8:=EMA(IF(L<=VAR5,VAR4,0),3);
    VAR9:=(SMA(SMA((((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54)))*100),7,1),5,1));
    VAR10:=((SMA(((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100),7,1))*16.18)-(VAR9*10.9);
    VAR11:=FILTER(IF(VAR10<=VAR9ANDVAR8>REF(VAR8,1),VAR8*8,0),55);
    VAR21:=LLV(LOW,60);
    VAR31:=HHV(HIGH,60);
    VAR41:=EMA((CLOSE-VAR21)/(VAR31-VAR21)*100,13);
    VAR51:=EMA(0.667*REF(VAR41,1)+0.333*VAR41,21);
    VARL2:=FILTER(CROSS(VAR51,VAR41)ANDVAR41>84,13);
    {K线}
    STICKLINE(CLOSE>OPENORCLOSE=OPENANDCLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),COLORRED;
    STICKLINE(CLOSE>OPENORCLOSE=OPENANDCLOSE>REF(CLOSE,1),OPEN,CLOSE,4,0),COLORRED;
    STICKLINE(CLOSE<OPENORCLOSE=OPENANDCLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),COLOR00FF00;
    STICKLINE(CLOSE<OPENORCLOSE=OPENANDCLOSE<=REF(CLOSE,1),OPEN,CLOSE,4,0),COLOR00FF00;
    STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0,0),COLOR00FF00;
    STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,4,0),COLOR008800;
    STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.5,0),COLOR009900;
    STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLOR00AA00;
    STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.5,0),COLOR00BB00;
    STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),COLOR00CC00;
    STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLOR00DD00;
    STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),COLOR00EE00;
    STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLOR00FF00;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0),COLORFFBBFF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0),COLORFF00FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.5,0),COLORFF22FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLORFF44FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.5,0),COLORFF66FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLORFF88FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLORFF99FF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),COLORFFAAFF;
    STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORFFBBFF;
    持股线:MA(C,26),LINETHICK2,COLOR6600FF;
    DRAWTEXT(VAR11,L*0.98,'锁定'),COLORFFFF00;
    STICKLINE(VAR11,H,L,1,1),COLORRED;
    STICKLINE(VAR11,OPEN,CLOSE,4.5,0),COLOR000099;
    STICKLINE(VAR11,OPEN,CLOSE,3,0),COLOR0000BB;
    STICKLINE(VAR11,OPEN,CLOSE,2,0),COLOR0000FF;
    DRAWTEXT(VARL2,H*1.04,'逃跑'),COLORYELLOW;
    STICKLINE(VARL2,H,L,1,1),COLORYELLOW;
    STICKLINE(VARL2,OPEN,CLOSE,4.5,0),COLOR00CCCC;
    STICKLINE(VARL2,OPEN,CLOSE,3,0),COLOR33FFCC;
    STICKLINE(VARL2,OPEN,CLOSE,2,0),COLOR00FFFF;
    DRAWGBK(CURRBARSCOUNT=1,RGB(110,108,108),RGB(88,30,0),0,'',0);
    VARA:=REF(LOW,1);
    VARB:=SMA(Abs(LOW-VARA),3,1)/Sma(MAX(LOW-VARA,0),3,1)*100;
    VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
    VARD:=LLV(LOW,30);
    VARE:=HHV(VARC,30);
    VARF:=IF(MA(CLOSE,58),1,0);
    VARG:=EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3)/618*VARF;
    VARH:=IF(VARG>28,28,VARG);
    吸筹:stICKLINE(VARH>-120,0,VARH,6,1),COLOR0FFFFF;
    备钱:IF(吸筹,1,0),COLOR0FFFFF;
    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;
    X:=LLV(J,2)=LLV(J,8);
    买入时机:IF(crOSS(J,3),65,0),COLORFF00FF,LINETHICK3;
    DRAWTEXT(买入时机,70.1,'跟庄'),COLOR00FF00;
    VA:=(2*C+H+L)/4;
    VB:=LLV(L,5);
    VC:=HHV(H,5);
    红线上穿买:EMA((VA-VB)/(VC-VB)*100,5),COLORRED;
    红线下穿卖:EMA(红线上穿买,3),COLORFFFF00;
    趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLOR00FFFF;
    秘密买点:IF(趋势<=3,20,0),COLOR00FF00,LINETHICK3;
    机构建仓:IF(趋势<5,40,0),COLORFFFFFF,LINETHICK3;

通达信霸占大牛股(生命、K线、持股线),通达信公式截图

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。