最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 大智慧超赢一号和金色两点半股票池的源码

    正文概述    2024-05-04 04:36:01  

    以下是大智慧超赢一号和金色两点半股票池的源码


    大智慧超赢一号和金色两点半股票池的源码:


       JJ:=(CLOSE+HIGH+LOW)/3;

       A:=EMA(JJ,10);

       B:=REF(A,1);

       STICKLINE(A B,A,B,5,0),COLORYELLOW;

       STICKLINE(A B,A,B,5,0),COLORBLUE;

       M1:EMA(CLOSE,3);

       M2:EMA(CLOSE,8);

       M3:EMA(M2,13);

       M4:EMA(M2,55);

       VAR1:=EMA(M3,55);

       M5:EMA(M4,81),COLORRED,LINETHICK2;

       VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;

       VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);

       DRAWICON(CROSS(VAR2,VAR3),HIGH*1.035,2);

       DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'卖出'),COLORGREEN;

       VAR4:=REF(CLOSE,1);

       VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;

       VAR6:=CROSS(79,VAR5);

       VAR7:=FILTER(VAR6,4);

       DRAWICON(VAR7,HIGH*1.035,2);

       DRAWTEXT(VAR7,HIGH*1.02,'卖出'),COLORGREEN;

       A7:=(2*C+H+L)/4;

       VAR10:=LLV(LOW,34);

       VAR11:=HHV(HIGH,34);

       SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);

       SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);

       DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),8)/8 6/10AND =1.5*MA(VOL,5)AND

       COUNT(SK =SD,3)ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW,'●买进'),COLORRED;

       DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),13)/13 6/10AND

       COUNT(SK SD,6)ANDREF(LOW,5)=LLV(LOW,120)ANDREF(CLOSE =OPEN,4)AND

       REF(CLOSE OPEN,3)ANDREF(CLOSE OPEN,2)ANDREF(OPEN CLOSE,1)AND

       OPEN REF(CLOSE,1),1,0),LOW,'●买进'),COLORRED;

       D:=MA(CLOSE,80)-MA(CLOSE,10)/3;

       DRAWTEXT(IF(CLOSE DANDVOL/240 MA(VOL,5)/240ANDCLOSE REF(CLOSE,1)*1.08

       ANDCLOSE MA(CLOSE,13)*1.3,1,0),LOW,'●'),COLORRED;

       {风险控制}

       il:ref(ma(max(abs(ln(c)-ln(o)),abs(ln(c)-ln(ref(c,1))))/amount*100000000,10),1);

       {选出流动性最强的1000只股票}

       {}

       (DYNAINFO(54)-DYNAINFO(3))/DYNAINFO(3) 0.06andDYNAINFO(41) 0{剔除ST和停牌股票}

       andcapital 1000000andcapital 8000000{流通盘在1亿到8亿之间,用户可以修改其中数值}

       andlast("ddx.ddx") 1{DDX连续飘红天数大于1,用户可以修改本数值}

       and"ddx.ddx" 0.05;{当天DDX值大于0.05,用户可以修改本数值}

       {资金}

       (DYNAINFO(54)-DYNAINFO(3))/DYNAINFO(3) 0.06andDYNAINFO(41) 0{剔除ST和停牌股票}

       andma("ddx.ddx",30) ma("ddx.ddx",10){DDX30日、10日多头排列,用户可以修改其中数值}

       andma("ddx.ddx",10) ma("ddx.ddx",5){DDX10日、5日均线多头排列,用户可以修改其中数值}

       andma("ddx.ddx",5) ma("ddx.ddx",1){DDX5日、1日均线多头排列,用户可以修改其中数值}

       andcount("ddx.ddx" 0,30) 6{最近30天DDX的飘红天数大于6,用户可以修改其中数值}

       andsum("ddx.ddx" 0,30) {最近30天DDX的和大于0,用户可以修改其中数值}

       {异动扫描}

       count("ddx.ddx" 0,5) 1{5天内DDX 0的天数 1,用户可以修改其中数值}

       and(DYNAINFO(54)-DYNAINFO(3))/DYNAINFO(3) 0.06andDYNAINFO(41) 0{剔除ST和停牌股票}

       andDYNAINFO(15) 0{委比大于0}

       andcross(ma(c,1),ma(c,3));{1日均线上穿3日均线}

       {超赢一号池}

       if({如果}

       DYNAINFO(14)*100 3{涨幅小于3%,用户可以修改本数值}

       andDYNAINFO(14)*100 -3{并且涨幅大于-3%,用户可以修改本数值}

       and(DYNAINFO(54)-DYNAINFO(3))/DYNAINFO(3) 0.06andDYNAINFO(41) 0

       {剔除ST和停牌股票}

       ,"ddy.ddy",0);{则用DDY选出前1名,用户可以修改本数值}

       {观察池}

       (c-ENTERPOOLPRICE(0))/ENTERPOOLPRICE(0) =-0.04;

       {入池后跌幅超过4%,用户可以修改本数值}

       {英雄榜}

       (c-ENTERPOOLPRICE(0))/ENTERPOOLPRICE(0) =0.05;

       {入池后涨幅超过5%,用户可以修改本数值}

       {热点}

       (BIGORDER(1,3)-BIGORDER(2,3))*vol/capital*100;{特大单买入占流通盘比最大5个板块}

       {热点股票}

       DYNAINFO(14)*100 3{当日涨幅小于3%,用户可以修改本数值}

       andif(count("ddx.ddx" 0,10) 3,count("ddx.ddx" 0,10),last("ddx.ddx" 0))

       {如果10天内DDX 0的天数大于3,则10天内DDX大于0的天数要大于2,否则DDX连续翻红天数要大于2,用户可以修改其中数值}

       金色两点半股票池源码

       {初步筛选,开市后5分钟}

       (strcmp(stkname,'st')=-1orstrcmp(stkname,'*st')=-1)=0{滤除ST股票}

       andDYNAINFO(4) 0{滤除当日停牌股票}

       anddynainfo(57) 5000000000{流通市值小于60亿,用户可修改本数值}

       anddynainfo(57) 1000000000{流通市值大于20亿,用户可修改本数值}

       andbarscount(c) {上市天数大于10天的股票,用户可修改本数值}

       {基准,开市后30分钟}

       count("ddx.ddx" 0,10) 3{DDX10天有3天以上翻红}

       andDYNAINFO(14) 0.03;{涨幅小于3%}

       {一次考量,11:00}

       if(DYNAINFO(14) 0.03,{如果涨幅小于3%}

       sum(BUYVOL-SELLVOL,270)/capital*100,0);{则按最近270笔成交的主动性买盘和主动性卖盘的差值占流通盘比例排序前100名}

       {二次考量,14:03}

       if(DYNAINFO(14) 0.03,{如果涨幅小于3%}

       sum(BUYVOL-SELLVOL,180)/capital*100,0);{则按最近180笔成交的主动性买盘和主动性卖盘的差值占流通盘比例排序前50名}

       {预备池,14:20}

       if(DYNAINFO(14) 0.03,{如果涨幅小于3%}

       sum(BUYVOL-SELLVOL,60)/capital*100,0);{则按最近60笔成交的主动性买盘和主动性卖盘的差值占流通盘比例排序前30名}

       {金色两点半,14:30}

       if(DYNAINFO(14) 0.03,{如果涨幅小于3%}

       sum(BUYVOL-SELLVOL,30)/capital*100,0);{则按最近30笔成交的主动性买盘和主动性卖盘的差值占流通盘比例排序前5名}

       {全程逆散,14:20}

       sum(BUYVOL-SELLVOL,0)/capital*100 0.3

       {从开市到当前的所有分笔成交,主动性买盘和主动性卖盘的差值占流通盘比例大于0.3%的股票}

       andDYNAINFO(14) 0.03;{涨幅小于3%,用户可以修改本数值}

       {英雄榜,14:30,}

       (c-ENTERPOOLPRICE(0))/ENTERPOOLPRICE(0) =0.05;

       {进入金色两点半后涨幅超过5%进入英雄榜}

       JJ:=(CLOSE+HIGH+LOW)/3;

       A:=Ema(JJ,10);

       B:=REF(A,1);

       M3:=EMA(CLOSE,3);

       M8:=EMA(CLOSE,8);

       DRAWBAND(M3,RGB(140,70,30),M8,RGB(140,70,30));

       stICKLINE(A B,A,B,5,0),COLORBLUE;

       STICKLINE(A B,A,B,5,0),COLORGREEN;

       M13:EMA(M8,13),LINETHICK2,COLORWHITE;

       M55:EMA(M8,55),LINETHICK2,COLORYELLOW;

       VAR1:=EMA(M13,55),LINETHICK4;

       M81:EMA(M55,81),COLORRED,LINETHICK4;

       VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;

       VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);

       VAR4:=REF(CLOSE,1);

       VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(Abs(CLOSE-VAR4),7,1)*100;

       VAR6:=crOSS(79,VAR5);

       VAR7:=FILTER(VAR6,4);

       A7:=(2*C+H+L)/4;

       VAR10:=LLV(LOW,34);

       VAR11:=HHV(HIGH,34);

       SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);

       SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);

       JRH:=HHV(C,2);

       JRL:=LLV(C,2);

       MA3:=MA(CLOSE,3);

       YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;

       VAR1Q:=(CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2));

       VAR2Q:=(REF(VAR1Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR3Q:=(REF(VAR2Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR4Q:=(REF(VAR3Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR5Q:=(REF(VAR4Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR6Q:=(REF(VAR5Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR7Q:=(REF(VAR6Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR8Q:=(REF(VAR7Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR9Q:=(REF(VAR8Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VARAQ:=(REF(VAR9Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VARBQ:=(REF(VARAQ,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VARCQ:=(REF(VARBQ,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VARDQ:=(CLOSE REF(CLOSE,1)ANDCLOSE REF(CLOSE,2));

       VAREQ:=(REF(VARDQ,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VARFQ:=(REF(VAREQ,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR10Q:=(REF(VARFQ,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR11Q:=(REF(VAR10Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR12Q:=(REF(VAR11Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR13Q:=(REF(VAR12Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR14Q:=(REF(VAR13Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR15Q:=(REF(VAR14Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR16Q:=(REF(VAR15Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR17Q:=(REF(VAR16Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR18Q:=(REF(VAR17Q,1)ANDCLOSE =REF(CLOSE,1)ANDCLOSE =REF(CLOSE,2));

       VAR19Q:=((REF(VARDQORVAREQORVARFQORVAR10QORVAR11QORVAR12QORVAR13QORVAR14QORVAR15QORVAR16QORVAR17QORVAR18Q,1))ANDVAR1Q);

       VAR1AQ:=((REF(VAR1QORVAR2QORVAR3QORVAR4QORVAR5QORVAR6QORVAR7QORVAR8QORVAR9QORVARAQORVARBQORVARCQ,1))ANDVARDQ);

       红色持股:=VAR1QORVAR2QORVAR3QORVAR4QORVAR5QORVAR6QORVAR7QORVAR8QORVAR9QORVARAQORVARBQORVARCQ,COLOR0000FF,NODRAW;

       离场:=IF(红色持股,JRL,DRAWNULL);

       明离场价:=离场,COLORFF99FF,NODRAW;

       今离场价:=REF(离场,1)COLOR0000FF,NODRAW;

       青色观望:=VARDQORVAREQORVARFQORVAR10QORVAR11QORVAR12QORVAR13QORVAR14QORVAR15QORVAR16QORVAR17QORVAR18Q,COLORFFFF00,NODRAW;

       进:=IF(青色观望,JRH,DRAWNULL);

       明进场价:=进,COLOR33AacC,NODRAW;

       今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;

       黄色低买:=VAR19Q,COLOR33AACC,NODRAW;

       洋红离场:=VAR1AQ,COLORMAGENTA,NODRAW;

       急跌关注:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100 -14,COLORWHITE,NODRAW;

       上市日期年:=REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;

       月:=REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;

       日:=REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;

       STICKLINE(C =O,L,H,0.3,0),COLOR0000CC;

       STICKLINE(C O,L,H,0.3,0),COLOR999900;

       STICKLINE(1,C,O,3.5,0),COLOR858500;

       STICKLINE(C =O,C,O,3.5,0),COLOR0000E5;

       STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;

       STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;

       STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;

       STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;

       STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;

       STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR454500;

       STICKLINE(青色观望,CLOSE,O,2,0),COLOR555500;

       STICKLINE(青色观望,CLOSE,O,1.5,0),COLOR656500;

       STICKLINE(青色观望,CLOSE,O,1,0),COLOR757500;

       STICKLINE(青色观望,CLOSE,O,0.5,0),COLOR858500;

       CO:=(C-O);

       STICKLINE(急跌关注,O,C-CO/2,2.8,0),COLOR555555;

       STICKLINE(急跌关注,O,C-CO/2,2,0),COLOR888888;

       STICKLINE(急跌关注,O,C-CO/2,1.5,0),COLORAAAAAA;

       STICKLINE(急跌关注,O,C-CO/2,1,0),COLORCCCCCC;

       STICKLINE(急跌关注,O,C-CO/2,0.5,0),COLOREEEEEE;

       STICKLINE(黄色低买,O,O+CO/3,2.8,0),COLOR335555;

       STICKLINE(黄色低买,O,O+CO/3,2,0),COLOR338888;

       STICKLINE(黄色低买,O,O+CO/3,1.5,0),COLOR33AAAA;

       STICKLINE(黄色低买,O,O+CO/3,1,0),COLOR33CCCC;

       STICKLINE(黄色低买,O,O+CO/3,0,0),COLOR33EEEE;

       STICKLINE(洋红离场,O,O+CO/3,2.8,0),COLOR550055;

       STICKLINE(洋红离场,O,O+CO/3,2,0),COLOR880088;

       STICKLINE(洋红离场,O,O+CO/3,1.5,0),COLORAA00AA;

       STICKLINE(洋红离场,O,O+CO/3,1,0),COLORCC00CC;

       STICKLINE(洋红离场,O,O+CO/3,0.5,0),COLOREE00EE;

       DRAWICON(CROSS(M55,M81),M81*0.95,1),COLORYELLOW;{抄底};



    大智慧超赢一号和金色两点半股票池的截图

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 大智慧超赢一号和金色两点半股票池的源码 加入收藏