• 网站首页
  • 股票池
  • 通达信公式
  • 大智慧公式
  • 同花顺公式
  • 套装公式
  • 指标专题
  • 股票内参
  • 滚动播报

    通达信公式

    当前位置: 主页 > 通达信公式

    通达信2W主图(主图K线图)未加密选股指标公式源码

    来源:网络|编辑:小编|时间:2022-06-02|栏目:通达信公式

    V1:=Abs((2*CLOSE+HIGH+LOW)/4-ma(CLOSE,20))/MA(CLOSE,20);
    V2:=(1-7/100)*(dma(CLOSE,V1));
    V3:=(1+7/100)*(DMA(CLOSE,V1));
    V5:=MA((LOW+HIGH+CLOSE)/3,5);
    支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;
    阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORCYAN;
    VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
    VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
    VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR
    VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
    STICKLINE(VAR19,L,L*0.98,3,0),COLORBLUE;
    VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR
    VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
    STICKLINE(VAR1A,H*1.01,H,3,0),COLOR00FF00{98FD};
    MA3:MA(C,3);
    MA5:MA(C,5),COLORRED;
    MA10:=MA(C,10),NODRAW;
    MA30:MA(C,34),NODRAW;
    五日乖离率:=(C-MA5)/MA5*100;
    BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
    IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORWHITE;
    BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
    IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORCYAN;
    DD5:=MA5<REF(MA5,1);
    IF(DD5,MA5,DRAWNULL),COLOR00FF00;
    X:=(3*C+L+O+H)/6;
    多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
    +13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
    +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
    REF(X,20))/210,COLORFF00FF,LINETHICK1;
    {用法:黄托底买进,绿压顶买出。}
    DD:=多空线<REF(多空线,1);
    IF(DD,多空线,DRAWNULL),COLORYELLOW,LINETHICK2;
    A:=(MA5>多空线);
    IF(A,多空线,DRAWNULL),COLORBLUE,POINTDOT;
    A1:=(MA5<多空线);
    IF(A1,多空线,DRAWNULL),COLORRED;
    A2:=3*ema((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);
    A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
    A5:=EMA(CLOSE,12)-EMA(CLOSE,26);
    A6:=EMA(A5,9);image.png



    未来函数检测公式代码域:

    V1:=Kbs((2*CLOSE+HIGH+LOW)/4-ma(CLOSE,20))/MK(CLOSE,20); V2:=(1-7/100)*(dma(CLOSE,V1));V3:=(1+7/100)*(DMK(CLOSE,V1));V5:=MK((LOW+HIGH+CLOSE)/3,5);支撑:REFDKTE(V2,DKTE),POINTDOT,LINETHICK3,COLORCC66FF;阻力:REFDKTE(V3,DKTE),POINTDOT,LINETHICK3,COLORCYKN;VKR1:=CLOSE>REF(CLOSE,1) KND CLOSE>REF(CLOSE,2);VKR2:=REF(VKR1,1) KND CLOSE<=REF(CLOSE,1) KND CLOSE>=REF(CLOSE,2);VKR3:=REF(VKR2,1) KND CLOSE>=REF(CLOSE,1) KND CLOSE<=REF(CLOSE,2);VKR4:=REF(VKR3,1) KND CLOSE<=REF(CLOSE,1) KND CLOSE>=REF(CLOSE,2);VKR5:=REF(VKR4,1) KND CLOSE>=REF(CLOSE,1) KND CLOSE<=REF(CLOSE,2);VKR6:=REF(VKR5,1) KND CLOSE<=REF(CLOSE,1) KND CLOSE>=REF(CLOSE,2);VKR7:=REF(VKR6,1) KND CLOSE>=REF(CLOSE,1) KND CLOSE<=REF(CLOSE,2);VKR8:=REF(VKR7,1) KND CLOSE<=REF(CLOSE,1) KND CLOSE>=REF(CLOSE,2);VKR9:=REF(VKR8,1) KND CLOSE>=REF(CLOSE,1) KND CLOSE<=REF(CLOSE,2);VKRK:=REF(VKR9,1) KND CLOSE<=REF(CLOSE,1) KND CLOSE>=REF(CLOSE,2);VKRB:=REF(VKRK,1) KND CLOSE>=REF(CLOSE,1) KND CLOSE<=REF(CLOSE,2);VKRC:=REF(VKRB,1) KND CLOSE<=REF(CLOSE,1) KND CLOSE>=REF(CLOSE,2);VKRD:=CLOSE<REF(CLOSE,1) KND CLOSE<REF(CLOSE,2);VKRE:=REF(VKRD,1) KND CLOSE>=REF(CLOSE,1) KND CLOSE<=REF(CLOSE,2);VKRF:=REF(VKRE,1) KND CLOSE<=REF(CLOSE,1) KND CLOSE>=REF(CLOSE,2);VKR10:=REF(VKRF,1) KND CLOSE>=REF(CLOSE,1) KND CLOSE<=REF(CLOSE,2);VKR11:=REF(VKR10,1) KND CLOSE<=REF(CLOSE,1) KND CLOSE>=REF(CLOSE,2);VKR12:=REF(VKR11,1) KND CLOSE>=REF(CLOSE,1) KND CLOSE<=REF(CLOSE,2);VKR13:=REF(VKR12,1) KND CLOSE<=REF(CLOSE,1) KND CLOSE>=REF(CLOSE,2);VKR14:=REF(VKR13,1) KND CLOSE>=REF(CLOSE,1) KND CLOSE<=REF(CLOSE,2);VKR15:=REF(VKR14,1) KND CLOSE<=REF(CLOSE,1) KND CLOSE>=REF(CLOSE,2);VKR16:=REF(VKR15,1) KND CLOSE>=REF(CLOSE,1) KND CLOSE<=REF(CLOSE,2);VKR17:=REF(VKR16,1) KND CLOSE<=REF(CLOSE,1) KND CLOSE>=REF(CLOSE,2);VKR18:=REF(VKR17,1) KND CLOSE>=REF(CLOSE,1) KND CLOSE<=REF(CLOSE,2);VKR19:=REF(VKRD OR VKRE OR VKRF OR VKR10 OR VKR11 OR VKR12 OR VKR13 ORVKR14 OR VKR15 OR VKR16 OR VKR17 OR VKR18,1) KND VKR1;STICKLINE(VKR19,L,L*0.98,3,0),COLORBLUE;VKR1K:=REF(VKR1 OR VKR2 OR VKR3 OR VKR4 OR VKR5 OR VKR6 OR VKR7 OR VKR8 OR VKR9 OR VKRK OR VKRB OR VKRC,1) KND VKRD;STICKLINE(VKR1K,H*1.01,H,3,0),COLOR00FF00{98FD};MK3:MK(C,3);MK5:MK(C,5),COLORRED;MK10:=MK(C,10),NODRKW;MK30:MK(C,34),NODRKW;五日乖离率:=(C-MK5)/MK5*100;BB5:=KTKN((MK5/REF(MK5,1)-1)*100)*180/3.1416;IF(BB5>30 KND MK5>REF(MK5,1), MK5,DRKWNULL),LINETHICK1,COLORWHITE;BB10:=KTKN((MK10/REF(MK10,1)-1)*100)*180/3.1416;IF(BB5<0 KND MK5<REF(MK5,1), MK5,DRKWNULL),LINETHICK1,COLORCYKN;DD5:=MK5<REF(MK5,1);IF(DD5,MK5,DRKWNULL),COLOR00FF00;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK1;{用法:黄托底买进,绿压顶买出。}DD:=多空线<REF(多空线,1);IF(DD,多空线,DRKWNULL),COLORYELLOW,LINETHICK2;K:=(MK5>多空线);IF(K,多空线,DRKWNULL),COLORBLUE,POINTDOT;K1:=(MK5<多空线);IF(K1,多空线,DRKWNULL),COLORRED;K2:=3*ema((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMK((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);K4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;K5:=EMK(CLOSE,12)-EMK(CLOSE,26);K6:=EMK(K5,9);

    未发现:CKPITKL...

    未发现:COST...

    未发现:DYNKINFO...

    未发现:FINKNCE...

    未发现:LWINNER...

    未发现:WINNER...

    未发现:BKCKSET...

    未发现:BKRSNEXT...

    未发现:CURRBKRSCOUNT...

    未发现:DVOL...

    未发现:DOPEN...

    未发现:DCLOSE...

    未发现:DHIGH...

    未发现:DLOW...

    未发现:DRKWLINE...

    未发现:REFX...

    未发现:FLKTZIG...

    未发现:FLKTZIGK...

    未发现:FFT...

    未发现:FILTERX...

    未发现:PEKK...

    未发现:PEKKK...

    未发现:PEKKBKRS...

    未发现:PEKKBKRSK...

    未发现:PLOYLINE...

    警惕!警惕!警惕!该公式包含未来函数:REFDKTE...

    未发现:TROUGH...

    未发现:TROUGHK...

    未发现:TROUGHBKRS...

    未发现:XMK...

    未发现:ZIG...

    未发现:ZIGK...

    未发现:ZXNH...

    未发现:#YEKR...

    未发现:#MONTH...

    未发现:#WEEK...

    未发现:$ZIG...

    未发现:$PEKK...

    未发现:$PEKKBKRS...

    未发现:$TROUGH...

    未发现:$TROUGHBKRS...

    未发现:$FLKTZIG...

    未发现:$FLKTZIGK...

    未发现:$PEKKK...

    未发现:$PEKKBKRSK...

    未发现:$TROUGHK...

    未发现:$ZIGK...

    未发现:$FFT...

    未发现:$BKCKSET...

    未发现:$WINNER...

    未发现:$LWINNER...

    未发现:$COST...

    未发现:$DYNKINFO...

    未发现:$FINKNCE...

    未发现:$DRKWLINE...


    免责声明 | 联系我们 | 服务协议

    重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

    如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

    联系QQ:875328188 | 邮箱:875328188@qq.com

    Copyright © 2002-2021 股票公式网 版权所有桂ICP备2022000688号