设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

通达信股票指标公式 突破左峰主图及选股指标公式

2014-7-30 11:46:35 股票入门 http://rumen.southmoney.com

  南方财富网带来通达信股票指标公式:突破左峰主图及选股指标公式。

  DA1:=IF(130》TOTALBARSCOUNT,TOTALBARSCOUNT,130);

  DA:=IF(CURRBARSCOUNT》DA1,0,DA1);

  HI:=REFDATE(HHV(H,DA),DATE);

  LO:=REFDATE(LLV(L,DA),DATE);

  C1:=IF(CURRBARSCOUNT《=DA,C,DRAWNULL);

  GZ:=EXP(LN(HI/LO)/10);

  LH1:=SUM(IF(C1》=(HI/GZ),V,0),DA);

  LH2:=SUM(IF(C1》=(HI/POW(GZ,2)) AND C1《(HI/GZ),V,0),DA);

  LH3:=SUM(IF(C1》=(HI/POW(GZ,3)) AND C1《(HI/POW(GZ,2)),V,0),DA);

  LH4:=SUM(IF(C1》=(HI/POW(GZ,4)) AND C1《(HI/POW(GZ,3)),V,0),DA);

  LH5:=SUM(IF(C1》=(HI/POW(GZ,5)) AND C1《(HI/POW(GZ,4)),V,0),DA);

  LH6:=SUM(IF(C1》=(HI/POW(GZ,6)) AND C1《(HI/POW(GZ,5)),V,0),DA);

  LH7:=SUM(IF(C1》=(HI/POW(GZ,7)) AND C1《(HI/POW(GZ,6)),V,0),DA);

  LH8:=SUM(IF(C1》=(HI/POW(GZ,8)) AND C1《(HI/POW(GZ,7)),V,0),DA);

  LH9:=SUM(IF(C1》=(LO*GZ) AND C1《LO*POW(GZ,2),V,0),DA);

  LH10:=SUM(IF(C1》=LO AND C1《LO*GZ,V,0),DA);

  L1:=REFDATE(HHV(LH1,DA),DATE),LINETHICK0;

  L2:=REFDATE(HHV(LH2,DA),DATE),LINETHICK0;

  L3:=REFDATE(HHV(LH3,DA),DATE),LINETHICK0;

  L4:=REFDATE(HHV(LH4,DA),DATE);

  L5:=REFDATE(HHV(LH5,DA),DATE);

  L6:=REFDATE(HHV(LH6,DA),DATE);

  L7:=REFDATE(HHV(LH7,DA),DATE);

  L8:=REFDATE(HHV(LH8,DA),DATE);

  L9:=REFDATE(HHV(LH9,DA),DATE);

  L10:=REFDATE(HHV(LH10,DA),DATE);

  SSS:=(L1+L2+L3+L4+L5+L6+L7+L8+L9+L10);

  STICKLINE(CEILING(DA*L1/SSS)*3》=CURRBARSCOUNT,HI*99/100,HI/GZ,9,0)COLOR3C3C3A,LINETHICK3;

  STICKLINE(CEILING(DA*L2/SSS)*3》=CURRBARSCOUNT,HI/POW(GZ,1)*99/100,HI/POW(GZ,2),9,0)COLOR3C3C3A,LINETHICK3;

  STICKLINE(CEILING(DA*L3/SSS)*3》=CURRBARSCOUNT,HI/POW(GZ,2)*99/100,HI/POW(GZ,3),9,0)COLOR3C3C3A,LINETHICK3;

  STICKLINE(CEILING(DA*L4/SSS)*3》=CURRBARSCOUNT,HI/POW(GZ,3)*99/100,HI/POW(GZ,4),9,0)COLOR3C3C3A,LINETHICK3;

  STICKLINE(CEILING(DA*L5/SSS)*3》=CURRBARSCOUNT,HI/POW(GZ,4)*99/100,HI/POW(GZ,5),9,0)COLOR3C3C3A,LINETHICK3;

  STICKLINE(CEILING(DA*L6/SSS)*3》=CURRBARSCOUNT,HI/POW(GZ,5)*99/100,HI/POW(GZ,6),9,0)COLOR3C3C3A,LINETHICK3;

  STICKLINE(CEILING(DA*L7/SSS)*3》=CURRBARSCOUNT,HI/POW(GZ,6)*99/100,HI/POW(GZ,7),9,0)COLOR3C3C3A,LINETHICK3;

  STICKLINE(CEILING(DA*L8/SSS)*3》=CURRBARSCOUNT,LO*POW(GZ,2),LO*POW(GZ,3)*99/100,9,0)COLOR3C3C3A,LINETHICK3;

  STICKLINE(CEILING(DA*L9/SSS)*3》=CURRBARSCOUNT,LO*POW(GZ,1),LO*POW(GZ,2)*99/100,9,0)COLOR3C3C3A,LINETHICK3;

  STICKLINE(CEILING(DA*L10/SSS)*3》=CURRBARSCOUNT,LO,LO*POW(GZ,1)*99/100,9,0)COLOR3C3C3A,LINETHICK3;

  DRAWKLINE(H,O,L,C);

  MA10:MA(C,10),COLORRED ,LINETHICK1;

  MA20:MA(C,20)COLORWHITE ,LINETHICK1;

  MA30:MA(C,30)COLORYELLOW,LINETHICK1;

  MA60:MA(C,60)COLORCC3299,LINETHICK1 ;

  VAR121:=ZIG(3,6)《REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)》=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)》=REF(ZIG(3,6),3);

  VAR141:=ZIG(3,22)《REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)》=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)》=REF(ZIG(3,22),3);

  VAR161:=ZIG(3,51)《REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)》=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)》=REF(ZIG(3,51),3);

  VAR181:=ZIG(3,72)《REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)》=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)》=REF(ZIG(3,72),3);

  卖:=(VAR121+VAR141+VAR161+VAR181),LINETHICK2;

  SQ:DRAWLINE(卖,H,BARSLAST(卖)》=1,REF(H,BARSLAST(卖)),1),COLORWHITE,LINETHICK2;

  过峰:=C》SQ AND REF(C,1)《SQ;

  VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;

  预量:=VVOL/REF(V,1)》1.8;

  现量:=V/REF(V,1)》1.5;

  过峰1:STICKLINE( 过峰,C,O,5,0)COLORFF00FF;

  预量1:DRAWICON(过峰 AND 预量, H*1.01,14);

  现量1:DRAWICON(过峰 AND 现量,(O+C)/2,23);

  前次低点:LLV(L*1,250)POINTDOT,COLORFF00FF,LINETHICK4;

  {

  选股公式1:

  Q1:=V/REF(V,1)》1.5;

  VAR121:=ZIG(3,6)《REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)》=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)》=REF(ZIG(3,6),3);

  VAR141:=ZIG(3,22)《REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)》=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)》=REF(ZIG(3,22),3);

  VAR161:=ZIG(3,51)《REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)》=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)》=REF(ZIG(3,51),3);

  VAR181:=ZIG(3,72)《REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)》=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)》=REF(ZIG(3,72),3);

  卖:=(VAR121+VAR141+VAR161+VAR181),LINETHICK2;

  SQ:=DRAWLINE(卖,H,BARSLAST(卖)》=1,REF(H,BARSLAST(卖)),1);

  A:=C》SQ AND REF(C,1)《SQ AND C》0 ;

  XD:Q1 AND A ;

  选股公式2:

  VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);

  VAR121:=ZIG(3,6)《REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)》=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)》=REF(ZIG(3,6),3);

  VAR141:=ZIG(3,22)《REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)》=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)》=REF(ZIG(3,22),3);

  VAR161:=ZIG(3,51)《REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)》=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)》=REF(ZIG(3,51),3);

  VAR181:=ZIG(3,72)《REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)》=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)》=REF(ZIG(3,72),3);

  卖:=(VAR121+VAR141+VAR161+VAR181),LINETHICK2;

  SQ:=DRAWLINE(卖,H,BARSLAST(卖)》=1,REF(H,BARSLAST(卖)),1),COLORWHITE,LINETHICK2;

  过峰:=C》SQ AND REF(C,1)《SQ;

  预量:=VVOL/REF(V,1)》1.8;

  预量1:过峰 AND 预量;

  }

  更多通达信股票指标公式,请关注南方财富网。

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。