最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信量化交易主图指标公式源码

    正文概述    2024-04-13 13:25:17  
    {指标介绍:评分50以下勿碰。}

    {虚拟成交量}
    TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
    MTIME:=MOD(FROMOPEN,TOTAL);
    CTIME:=IF(MTIME 0.5,TOTAL,MTIME);
    Vvol:=IF((CURRBARSCOUNT=1 AND DYNAINFO(8) 1),VOL*(TOTAL+3)/(CTIME+3),VOL);
    今夕比:=VVOL/REF(VOL,1);
    ISST股:=(NAMELIKE('S') OR NAMELIKE('*')) AND NOT(CODELIKE('68') OR CODELIKE('30'));
    ZTBL:=IF(FINANCE(3)=2,0.3,IF((FINANCE(3)=4 OR FINANCE(3)=3 OR CODELIKE('11') OR CODELIKE('12')),0.2,0.1));
    涨停价:ZTPRICE(REF(CLOSE,1),IF(ISST股,0.05,ZTBL)),COLORRED,NODRAW;
    跌停价:DTPRICE(REF(CLOSE,1),IF(ISST股,0.05,ZTBL)),COLORFF8000,NODRAW;
    涨停:=CLOSE =ZTPRICE(REF(CLOSE,1),IF(ISST股,0.05,ZTBL));
    STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;
    STICKLINE(涨停,HIGH,LOW,0,0),COLORRED;
    跌停:=CLOSE =DTPRICE(REF(CLOSE,1),IF(ISST股,0.05,ZTBL));
    STICKLINE(跌停,OPEN,CLOSE,3,0),COLORFF8000;
    STICKLINE(跌停,HIGH,LOW,0,0),COLORFF8000;
    日涨幅:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
    {定义}
    一板:=涨停 AND REF(NOT(涨停),1);
    DRAWNUMBER(一板,LOW,1),COLORB302DF;
    二板:=涨停 AND REF(涨停,1) AND REF(NOT(涨停),2);
    DRAWNUMBER(二板,LOW,2),COLORCB02FD;
    三板:=涨停 AND REF(COUNT(涨停,2)=2,1) AND REF(NOT(涨停),3);
    DRAWNUMBER(三板,LOW,3),COLORD32DFD;
    四板:=涨停 AND REF(COUNT(涨停,3)=3,1) AND REF(NOT(涨停),4);
    DRAWNUMBER(四板,LOW,4),COLORDD58FE;
    五板:=涨停 AND REF(COUNT(涨停,4)=4,1) AND REF(NOT(涨停),5);
    DRAWNUMBER(五板,LOW,5),COLORE378FE;
    六板:=涨停 AND REF(COUNT(涨停,5)=5,1) AND REF(NOT(涨停),6);
    DRAWNUMBER(六板,LOW,6),COLORE994FE;
    七板:=涨停 AND REF(COUNT(涨停,6)=6,1) AND REF(NOT(涨停),7);
    DRAWNUMBER(七板,LOW,7),COLOREDA9FE;
    八板:=涨停 AND REF(COUNT(涨停,7)=7,1) AND REF(NOT(涨停),8);
    DRAWNUMBER(八板,LOW,8),COLORF2C1FF;
    九板:=涨停 AND REF(COUNT(涨停,8)=8,1) AND REF(NOT(涨停),9);
    DRAWNUMBER(九板,LOW,9),COLORF7D7FF;
    十板:=涨停 AND REF(COUNT(涨停,9)=9,1) AND REF(NOT(涨停),10);
    DRAWNUMBER(十板,LOW,10),COLORWHITE;
    SWL:(EMA(CLOSE,10)*7+EMA(CLOSE,20)*3)/10,COLORWHITE;
    SWS:DMA(EMA(CLOSE,20),MAX(1,100*(SUM(VOL,5)/(3*CAPITAL)))),COLORYELLOW;
    STICKLINE(SWL =SWS AND (SWL-SWS) =REF(SWL-SWS,1),SWS,SWL,0,-1),COLORMAGENTA;
    STICKLINE(SWL =SWS AND (SWL-SWS) REF(SWL-SWS,1),SWS,SWL,0,-1),COLORYELLOW;
    STICKLINE(SWL SWS AND (SWL-SWS) REF(SWL-SWS,1),SWS,SWL,0,-1),COLORLICYAN;
    STICKLINE(SWL SWS AND (SWL-SWS) REF(SWL-SWS,1),SWS,SWL,0,-1),COLORGREEN;
    YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;
    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));
    VARYY:=(CLOSE/REF(CLOSE,1)) 1.05 AND C O AND C REF(C,1);
    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);
    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);
    买:VAR19 AND (SWL SWS ORcrOSS(CLOSE,MAX(SWL,SWS))),COLORRED,NODRAW;
    加:VAR19 AND VARYY AND (SWL SWS OR CROSS(CLOSE,MAX(SWL,SWS))),COLORWHITE,NODRAW;
    DRAWICON(买,LOW,1);
    DRAWICON(加,LOW,23);
    DRAWICON(买,LOW,1);
    JRH:=HHV(C,2);
    JRL:=LLV(C,2);
    MA3:=MA(CLOSE,3);
    持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;
    离场:=IF(持股,JRL,DRAWNULL);
    明离场价:=离场;
    今离场价:=REF(离场,1);
    观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORC0C0C0,NODRAW;
    进:=IF(观望,JRH,DRAWNULL);
    明进场价:=进;
    今进场价:=REF(明进场价,1);
    短买:VAR19,COLOR33AacC,NODRAW;
    持币:VAR1A,COLORFF99FF,NODRAW;
    急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100 -14,COLORC0C0C0,NODRAW;
    STICKLINE(急速超跌,MIN(OPEN,CLOSE),(C+O)/2,1.5,0),COLORC0C0C0;{灰色}
    E:=(HIGH+LOW+OPEN+2*CLOSE)/5;
    明阻力:=2*E-LOW;
    明支撑:=2*E-HIGH;
    明突破:=E+(HIGH-LOW);
    明反转:=E-(HIGH-LOW);
    今阻力:=REF(明阻力,1);
    今支撑:=REF(明支撑,1);
    {评分系统}
    {macd}
    DIF:=100*(EMA(CLOSE,12)-EMA(CLOSE,26));
    DEA:=EMA(DIF,9);

    下载源码

    通达信量化交易主图指标公式源码

    通达信量化交易主图指标公式源码

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信量化交易主图指标公式源码 加入收藏