• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【股票入门】【通达信】康龙双彩图指标公式

    发布时间: 2020-04-20 17:05 首页:股票一点通>股票公式>通达信公式> 阅读()

    N:=9; M:=9;
    VAR1:=(C-MA(C,6))/MA(C,6)*100;
    VAR2:=(C-MA(C,24))/MA(C,24)*100;
    VAR3:=(C-MA(C,32))/MA(C,32)*100;
    VAR4:=(VAR1+VAR2+VAR3)/3;
    VAR5:=EMA(VAR4,5);
    VAR6:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;
    VAR7:=SMA(SMA(100-3*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+SMA(2*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
    VAR8:=VAR7REF(V,1) AND C>REF(C,1);
    A:=PERIOD;
    BL:=IF(A=0,150,IF(A=1,50,IF(A=2,30,IF(A=3,17,IF(A=4,15,IF(A=5,8,IF(A=6,3,IF(A=7,2,IF(A=8,50,IF(A=9,3,1.3))))))))));
    FM:=(EMA(CLOSE,1.414*N+1));
    FCL:=IF(FMREF(MACD,1),0,MACD,0.1,0)COLORRED;
    STICKLINE(MACDDEA AND MACD>0,1,0);
    STICKLINE(转点=1,50,50,2,0),COLORYELLOW;
    STICKLINE(转点=0,50,50,2,0),COLORCYAN;
    STICKLINE(C,90,90,1,0),COLORYELLOW;
    STICKLINE(C,10,10,1,0),COLORCYAN;
    STICKLINE(C,-90,-90,1,0),COLORCYAN;
    SHORT:=6;
    LONG:=13;
    MID:=4;
    DIFJ:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
    DEAJ:=EMA(DIFJ,MID);
    MACDK:=(DIFJ-DEAJ)*2,COLORSTICK;
    MACDJC:CROSS(DIFJ,DEAJ);
    STICKLINE(MACDJC,-100,-80,1,1),COLORWHITE;
    STICKLINE(MACDJC,-100,-80,0,0),COLOR000099;
    STICKLINE(MACDJC,-100,-80,2,0),COLOR0000BB;
    STICKLINE(MACDJC,-100,-80,1,0),COLOR0000DD;
    STICKLINE(MACDJC,-100,-80,0.1,0),COLOR0000FF;
    {MACD金叉}
    NK:=9;
    MK1:=3;
    MK2:=3;
    RSV1:=(CLOSE-LLV(LOW,NK))/(HHV(HIGH,NK)-LLV(LOW,NK))*100;
    K1:=SMA(RSV1,MK1,1);
    D1:=SMA(K1,MK2,1);
    J1:=3*K1-2*D1;
    KDJC:CROSS(K1,D1);
    {STICKLINE(KDJC,-60,-40,1,1),COLORYELLOW;}
    STICKLINE(KDJC,-60,-40,0,0),COLOR330099;
    STICKLINE(KDJC,-60,-40,2,0),COLOR9900BB;
    STICKLINE(KDJC,-60,-40,1,0),COLORBB00DD;
    STICKLINE(KDJC,-60,-40,0.1,0),COLORFF00FF;
    {DRAWBAND(DIF,RGB(155,50,50),DEAC,RGB(0,100,50));}
    {KDJ金叉}
    NN1:=5;NN2:=10;NN3:=20;NN4:=30;
    BBI:=(MA(CLOSE,NN1)+MA(CLOSE,NN2)+MA(CLOSE,NN3)+MA(CLOSE,NN4))/4,COLORRED,LINETHICK1;
    BBIJC:CROSS(C,BBI),COLORRED;
    {STICKLINE(BBIJC,-30,-10,1,1),COLORRED;}
    STICKLINE(BBIJC,-30,-10,2.8,0),COLOR555555;
    STICKLINE(BBIJC,-30,-10,2,0),COLOR888888;
    STICKLINE(BBIJC,-30,-10,1.5,0),COLORAAAAAA;
    STICKLINE(BBIJC,-30,-10,1,0),COLORCCCCCC;
    STICKLINE(BBIJC,-30,-10,0.5,0),COLOREEEEEE;
    {BBI金叉}
    N5:=6;
    LCK:=REF(CLOSE,1);
    AA:=ABS(HIGH-LCK);
    BB:=ABS(LOW-LCK);
    CCK:=ABS(HIGH-REF(LOW,1));
    DDK:=ABS(LCK-REF(OPEN,1));
    R:=IF(AA>BB AND AA>CCK,AA+BB/2+DDK/4,IF(BB>CCK AND BB>AA,BB+AA/2+DDK/4,CCK+DDK/4));
    X:=(CLOSE-LCK+(CLOSE-OPEN)/2+LCK-REF(OPEN,1));
    SI:=16*X/R*MAX(AA,BB);
    ASI:=SUM(SI,0);
    MASI:=(ASI,N5);
    ASIJC:CROSS(ASI,MASI),COLORBLUE;
    STICKLINE(ASIJC,20,40,1,1),COLORBLUE;
    {ASI金叉};
    MTM:=CLOSE-REF(CLOSE,12);
    MTMJC:=CROSS(MTM,0),COLORBROWN;
    STICKLINE(MTMJC,50,70,1,1),COLORBROWN;
    STICKLINE(MTMJC,50,70,2.8,0),COLOR555500;
    STICKLINE(MTMJC,50,70,2,0),COLOR888800;
    STICKLINE(MTMJC,50,70,1.5,0),COLORAAAA00;
    STICKLINE(MTMJC,50,70,1,0),COLORCCCC00;
    STICKLINE(MTMJC,50,70,0.5,0),COLOREEEE00;
    XG:=MACDJC AND KDJC AND BBIJC AND ASIJC AND MTMJC;
    {STICKLINE(XG,-100,100,1,0);}
    {DRAWTEXT_FIX(XG>-1,0,0,0,’共振次数越多成功率越高’);}
    三指标共振:=MACDJC+KDJC+BBIJC+ASIJC+MTMJC=3;
    STICKLINE(三指标共振,50,70,2.8,0),COLOR335555;
    STICKLINE(三指标共振,50,70,2,0),COLOR338888;
    STICKLINE(三指标共振,50,70,1.5,0),COLOR33AAAA;
    STICKLINE(三指标共振,50,70,1,0),COLOR33CCCC;
    STICKLINE(三指标共振,50,70,0,0),COLOR33EEEE;
    四指标共振:=MACDJC+KDJC+BBIJC+ASIJC+MTMJC=4;
    五指标共振:=MACDJC+KDJC+BBIJC+ASIJC+MTMJC=5;
    {DRAWTEXT(三指标共振,85,’三指标共振’);}
    DRAWTEXT(四指标共振,0,’四指标共振’);
    DRAWTEXT(五指标共振,0,’五指标共振’);

    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页-股票知识--股票公式-散户炒股-问答百科--缠中说禅-概念股

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright @ 2020 All Rights Reserved.版权所有 XMl地图
    Baidu
    map