量价趋势 发表于 2017-3-18 15:53

{蓝}
DT:=假阴真阳;
STICKLINE(DT,H,L,0,0),COLORFFAA00;
STICKLINE(DT,O,C,3,0),COLORFF3300;
STICKLINE(DT,O,C,2,0),COLORFF7700;
STICKLINE(DT,O,C,1,0),COLORFFAA00;
STICKLINE(DT,O,C,0.1,0),COLORFFFF00;

量价森林 发表于 2017-3-18 15:59

感谢楼主的奉献

zsir7z 发表于 2017-3-18 18:27

谢谢分享,学习了

chf9988 发表于 2017-3-18 19:37

三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3)&&COUNT(C>REF(C,1),3)>=2;
三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));
三日价涨A:=LAST(C>=REF(C,1),3,0);
三日价涨B:=C<REF(C,1) AND LAST(L>REF(C,3),3,0);
三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);
TIM:=IF(DATE<1140214,1,0);
倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;
四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;
四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;
前三引用不成立:=COUNT(REF(四日前倍量柱 OR 四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;
倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
黄金柱:=倍量黄金柱 OR 高量黄金柱;
BACKSET101:=BACKSET(黄金柱,4);
FILTER101:=FILTER(BACKSET101,3);
K1:=SUMBARS(FILTER101,1);
黄金值_实:REF(C,K1-1),NODRAW,COLORYELLOW;
虚:REF(L,K1-2),NODRAW,COLORYELLOW;
倍量:=C>REF(C,1) AND (VOL>=1.9*REF(VOL,1))*TIM;
BACKSET102:=BACKSET(倍量,1);
FILTER102:=FILTER(BACKSET102,1);
K2:=SUMBARS(FILTER102,1);
STICKLINE(K2,REF(C,K2-1),REF(C,K2-1),7,0),COLORBLUE;{高位线};
STICKLINE(K2,REF(O,K2-1),REF(O,K2-1),7,0),COLORLIGREEN;{低位线};
STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),2,0),COLORYELLOW;
STICKLINE(K1,REF(C,K1-1),REF(C,K1-1),5,0),COLORYELLOW;{低位线}
{STICKLINE(FILTER102,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(FILTER102,H,L,0,0),COLORRED;
STICKLINE(FILTER101,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(FILTER101,H,L,0,0),COLORYELLOW;}
波谷值:= CONST(TROUGH(2,5,1)),COLORYELLOW,NODRAW;{前M个ZIG转向波谷值}
      波谷距离:= 1+CONST(TROUGHBARS(2,百分比,1)),NODRAW;{前M个ZIG转向波谷到当前距离}
      波峰值:= CONST(PEAK(1,5,2));
      允许误差:=0.024;
      XG:= ABS(波峰值-波谷值)<=允许误差 {AND BARSCOUNT(V)>60};
      波峰距离:= 1+CONST(PEAKBARS(1,百分比,2)),NODRAW;
      距离:=CURRBARSCOUNT;
   风骨: DRAWLINE(距离=波峰距离 AND XG,波谷值,距离=1,波谷值,1),COLORWHITE;
      DRAWTEXT(距离=波谷距离 AND XG,L*0.99,'风骨'),COLORWHITE;
      精准点:=(ABS(H-波谷值)<=允许误差 OR ABS(L-波谷值)<=0.024){AND 距离<=120};
      STICKLINE(精准点,波谷值,波谷值,6,0),COLORYELLOW;
      波谷值2:= CONST(TROUGH(2,百分比,2));
      波谷值3:= CONST(TROUGH(2,百分比,3));
      波谷值4:= CONST(TROUGH(2,百分比,4));
      波谷距离2:= 1+CONST(TROUGHBARS(2,百分比,2));
      波谷距离3:= 1+CONST(TROUGHBARS(2,百分比,3));
      波谷距离4:= 1+CONST(TROUGHBARS(2,百分比,4));
      XG2:= ABS(波谷值-波谷值2)<=允许误差;
      XG3:= ABS(波谷值-波谷值3)<=允许误差;
      XG4:= ABS(波谷值-波谷值4)<=允许误差;
      XGL:=(距离=波谷距离2 AND XG2) OR (距离=波谷距离3 ANDXG3)
      OR (距离=波谷距离4 ANDXG4);
      精准线:DRAWLINE(XGL,波谷值,距离=2,波谷值,1),COLOR00CCA0;
      DRAWTEXT(XGL,L*0.99, '精准' ),COLOR00CCA0;
五十日低量:=(VOL=LLV(VOL,50))*TIM&&V>0;
STICKLINE(五十日低量,L*0.98,L*0.93,0,-1);
DRAWTEXT(五十日低量,L*0.98,'五十');
百日低量:=(VOL=LLV(VOL,144))*TIM&&V>0;
STICKLINE(百日低量,L*0.98,L*0.93,0,-1);
DRAWTEXT(百日低量,L*0.96,'百日');
价值:FINANCE(34)+FINANCE(18)+FINANCE(32)+FINANCE(33)/4,COLOR00CCFF,NODRAW;
溢价率:(C/价值-1)*100,NODRAW;
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.009*100/C3),1,0);
CC21:=STICKLINE(涨停,OPEN,CLOSE,1,0),COLORBLUE;
上板:REF(HIGH,BARSLAST(涨停)),COLORRED,POINTDOT,LINETHICK3;
STICKLINE(涨停,O,C,3,0),COLORRED;
跌停:=IF((C3-C)*100/C3>=(10-0.009*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,1,0),COLORBLUE;
AB:=C/REF(C,1)<1.0992 AND C/REF(C,1)>0.049;
STICKLINE(C/REF(C,1)<1.0992 AND C/REF(C,1)>=1.09,C,O,2,0),COLORMAGENTA;
STICKLINE(C/REF(C,1)<1.09 AND C/REF(C,1)>=1.07,C,O,1,0),COLORWHITE;
STICKLINE(C/REF(C,1)<1.07 AND C/REF(C,1)>1.049,C,O,1,0),COLORYELLOW;
STICKLINE(C/O>=1.1,C,O,1,0),COLORBROWN;
{多彩K线-主图公式, 显示大阳\大阴\涨停\跌停\假阴\假阳\跳空\大K线中点,适用于通达信 }
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);{在屏幕左上角显示所属行业板块}
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);{在屏幕左上角显示所属地域板块}
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);{在屏幕左上角显示所属概念板块}
{跳空}
STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;
STICKLINE(REF(H,1)<L,L,REF(H,1),5,0),COLORGRAY;
中跌:=IF((C3-C)*100/C3>=(3-0.01*100/C3),1,0);
中阴:=IF((O-C)*100/O>=(3-0.01*100/O),1,0);
大阴:=IF((O-C)*100/O>=(5-0.01*100/O),1,0);
大跌:=IF((C3-C)*100/C3>=(5-0.01*100/C3),1,0);
平底阳:=O=L&&C>O&&EXIST(L=LLV(L,24),3);
STICKLINE(中跌,OPEN,CLOSE,2,10),COLORBLUE;
STICKLINE(中阴,OPEN,CLOSE,2,10),COLORGREEN;
STICKLINE(大跌,OPEN,CLOSE,2,0),COLORBLUE;
STICKLINE(大阴,OPEN,CLOSE,2,0),COLORGREEN;
DD:=中阴||中跌;
SS:=大跌||大阴;
DING:=MAX(O,C);
DING1:=MAX(O,C)&&DD;{实顶}
DING2:=MAX(O,C)&&SS;{实顶}
SDING1:=CURRBARSCOUNT>=N AND DING1=HHV(DING1,1) AND
DING1>REFX(HHV(DING1,N-1),N-1);
SDING2:=CURRBARSCOUNT>=N AND DING2=HHV(DING2,N) AND
DING2>REFX(HHV(DING2,N-1),N-1);
中阴实顶:DRAWLINE(DD,DING,REF(DD,1),REF(DING,1),1),COLORMAGENTA;
大阴实顶:DRAWLINE(SDING2,DING,REF(SDING2,1),REF(DING,1),1),COLORRED;
MA5:=MA(C,5);
M5角: ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416,NODRAW;

zbow6057 发表于 2017-3-21 22:05

hhhhhhhhhhh

阿亮158 发表于 2017-3-21 23:04

bonroi 发表于 2016-10-29 15:51
沙发自己坐!

沙发自己坐!

lovehypo 发表于 2017-3-22 07:44

:)谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢

满山红叶红 发表于 2017-3-23 10:52

买卖黄金线,幅图

好好中 发表于 2017-3-23 10:56


谢谢版主,学习

x01530214 发表于 2017-3-23 11:52

好东西   感谢。。。收藏了

Roarking 发表于 2017-3-23 12:16

辛苦了朋友,刚来学习,请指教!

xtrrdf 发表于 2017-3-23 13:22

三日不补缺口

martin6275 发表于 2017-3-23 22:33

谢谢楼主分享

cuijiantong 发表于 2017-3-24 10:18

一定要向高手学习

跌落于朝花夕拾 发表于 2017-3-24 11:29

谢谢楼主分享!
页: 1 2 3 4 5 6 7 [8] 9 10 11 12 13 14 15 16
查看完整版本: 通达信买卖黄金线幅图公式源码