主图一看就明白,金叉买,死叉卖,交叉位置加入了交易信号提示,清晰明了;有压力线、支撑线;主图上标作为一个小插件,可以提示大盘、个股的基本面情况,助你在选股时多添加一层滤网。不喜欢使用墙纸的,就把主图源码的最后一行删掉就可以;喜欢这个背景的,就把贴图图片文件名'8888.bmp'用bmp格式存在这里:安装盘符:/大智慧/USERDATA/BMP,也可以用同样方式自定义背景。
{掘金主图}
BAR0:=(3*CLOSE+LOW+OPEN+HIGH)/6;
上攻线: (20*BAR0+19*REF(BAR0,1)+18*REF(BAR0,2)+17*REF(BAR0,3)+16*REF(BAR0,4)
+15*REF(BAR0,5)+14*REF(BAR0,6)+13*REF(BAR0,7)+12*REF(BAR0,8)+11*REF(BAR0,9)
+10*REF(BAR0,10)+9*REF(BAR0,11)+8*REF(BAR0,12)+7*REF(BAR0,13)+6*REF(BAR0,14)
+5*REF(BAR0,15)+4*REF(BAR0,16)+3*REF(BAR0,17)+2*REF(BAR0,18)+REF(BAR0,20))/210,
CIRCLEDOT,COLORF00FF0,LINETHICK2;
下攻线: MA(上攻线,5),CIRCLEDOT,COLORGREEN,LINETHICK2;
DRAWICON(CROSS(上攻线,下攻线),上攻线,7,1);
DRAWICON(CROSS(下攻线,上攻线),下攻线,8,-18);
DRAWICON(CROSS(上攻线,下攻线),上攻线,7,14);
DRAWICON(CROSS(下攻线,上攻线),下攻线,8,-30);
BAR1:=(2*C+H+L)/4;
入场位:=LLV(HHV(BAR1,21),5);
止损位:=HHV(LLV(BAR1,21),5);
PARTLINE(入场位,上攻线<下攻线),COLORFFFF54,LINETHICK2;
PARTLINE(止损位,上攻线>下攻线),COLOR5454FF,LINETHICK2;
DRAWRECTABS(0,6,60,25,rgb(235,235,30)),COLORYELLOW;
DRAWTEXTABS(3,10,'先看大盘!'),COLORBLACK,LINETHICK1;
DRAWTEXTABS(0,30,'看大盘表现:'),COLORYELLOW,LINETHICK1;
大盘涨跌:=(INDEXC-REF(INDEXC,1))*100/REF(INDEXC,1);
上涨家数:=INDEXADV;
下跌家数:=INDEXDEC;
DRAWTEXTABS(80,30,'大盘涨跌:'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(150,30,IFS(大盘涨跌>0,'+'+NUMTOSTRN(大盘涨跌,2)+'%','')),COLORRED,LINETHICK1;
DRAWTEXTABS(150,30,IFS(大盘涨跌=0,'+'+NUMTOSTRN(大盘涨跌,2)+'%','')),COLORWHITE,LINETHICK1;
DRAWTEXTABS(150,30,IFS(大盘涨跌<0,NUMTOSTRN(大盘涨跌,2)+'%','')),COLORGREEN,LINETHICK1;
DRAWTEXTABS(210,30,'上涨家数:'+NUMTOSTRN(上涨家数,0)+'家'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(365,30,'下跌家数:'+NUMTOSTRN(下跌家数,0)+'家'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(0,50,'■盘面提示:'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(80,50,STKNAME+' '+STKLABEL),COLORYELLOW,LINETHICK1;
流通盘大小:=FINANCE2(37)*C/1000000*100;
流通比例:=100*FINANCE2(37)/FINANCE2(35);
DRAWTEXTABS(210,50,'流通市值:'+NUMTOSTRN(流通盘大小,2)+'亿'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(365,50,'流通比例:'+NUMTOSTRN(流通比例,2)+'%'),COLORYELLOW,LINETHICK1;
每股净资产:=FINANCE2(4);
每股收益:=FINANCE2(3);
每股市盈率:=DYNAINFO(39);
销售毛利率:=FINANCE2(12);
主营收入同比:=FINANCE2(11);
净利润同比增长:=FINANCE2(10);
DRAWTEXTABS(0,70,'基本面情况:'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(80,70,'每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(210,70,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(365,70,'每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(80,90,'销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(210,90,'主营收入同比增:'+NUMTOSTRN(主营收入同比,2)+'%'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(365,90,'净利润同比增:'+NUMTOSTRN(净利润同比增长,2)+'%'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(0,110,'换手率高低:'),COLORYELLOW,LINETHICK1;
当日换手率:=sum(100*v/capital,1);
DRAWTEXTABS(80,110,'今日换手率: '+NUMTOSTRN(当日换手率,2)+'%'),COLORYELLOW,LINETHICK1;
五日换手率:=sum(100*v/capital,5);
DRAWTEXTABS(210,110,'5日换手率: '+NUMTOSTRN(五日换手率,2)+'%'),COLORYELLOW,LINETHICK1;
十日换手率:=SUM(VOL,10)*100/CAPITAL;
DRAWTEXTABS(365,110,'10日换手率: '+NUMTOSTRN(十日换手率,2)+'%'),COLORYELLOW,LINETHICK1;
DRAWTEXTABS(0,130,'■所属板块:'+' '+BKNAME),COLORYELLOW,LINETHICK1;
DRAWGBK(C>0 ,'8888');
副图买点提示的位置使用了WINNER获利盘函数,如果您认为这属于未来函数,您也表下也表骂,反正我观察了有段时间了,没发现信号有漂移。另外说明一下,此抄底、逃顶信号不是一一对应的。
{掘金副图}
BAR0:=(MA(WINNER(CLOSE),9))*100;
FYJJ:=(CROSS(BAR0,2.5))*(85);
奋勇掘进:IF((FYJJ>0),50,0),COLOR0000FF;
IF(FYJJ>0,12,0),CoLor00FFFF;
DRAWTEXT(FYJJ,68,'奋勇掘进'),COLOR0000FF;
BAR1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
BAR2:=SMA(SMA(BAR1,3,1),3,1);
BAR3:=EMA(BAR2,5);
BAR4:=3*BAR2-2*BAR3;
STJP:=CROSS(BAR3,BAR4) AND BAR4>77;
撒腿就跑:IF(STJP>0,50,100),COLOR00FF00;
DRAWTEXT(STJP,40,'撒腿就跑'),COLOR00FF00;
IF(STJP>0,88,100),CoLor00FFFF;