通达信黄金量柱指标
黄金柱
表示黄金柱的⑴和⑵。
⑴条件如下;a,出现倍量或者10日内最高量。
b,出现倍量或者10日内最高量后三天内收盘价不低于“倍量”或者“高量”当天最低价。
c,“倍量”或者“高量”三天内量能小于“倍量”或者“高量”当天量能(倍量之后三天容许有一天成交量大于前面的倍量(或者高量))。
划线条件如下1.股价突破三日新高2.当日为倍量阳或者高量(再具体一点高量不是一般的高量,要求是10天内最大量)3.价量双覆盖;就是前一天收阴,今日收阳,并且今日成交量要求大于昨天成交量的1.2倍以上. 符合三个画线条件之一的当天画图表示这是自己编写一个雏形,但不符合全部条件,希望高手帮修改一下,通达信的指标如下;三日不破低点:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨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.95*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.95*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.95*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,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 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破低点AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破低点AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破低点)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND 三日不破低点AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND 三日不破低点AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前倍量柱AND 三日不破低点AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前高量柱AND 三日不破低点AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3);BACKSET101:=BACKSET(黄金柱,3);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,3);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,3);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,3);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,3);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,3);FILTER106:=FILTER(BACKSET106,3);STICKLINE(FILTER101,OPEN,CLOSE,2.5,0),COLORYELLOW;STICKLINE(FILTER104,OPEN,CLOSE,2.5,0),COLORFF00FF;K1:=SUMBARS(FILTER104,1);STICKLINE(K1,REF(L,K1-1),REF(L,K1-1),3,0),COLORFF00FF;K2:=SUMBARS(FILTER101,1);STICKLINE(K2,REF(L,K2-1),REF(L,K2-1),10,0),COLORYELLOW;。
通达信虚拟成交量指标
通达信虚拟成交量指标(1)黄金柱流通:CAPITAL/1000000,LINETHICK0;内外比:DYNAINFO(51),COLORYELLOW,NODRAW;五日量比:V/(REF(MA(V,5),1)/240*FROMOPEN),COLORYELLOW,NODRA W;换手:VOL/CAPITAL*100,POINTDOT COLORMAGENTA;5换:SUM(100*V/CAPITAL,5),LINETHICK0;10换:SUM(100*V/CAPITAL,10),LINETHICK0;20换:SUM(100*V/CAPITAL,20),LINETHICK0;VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;VOLUME:VOL,VOLSTICK;MAVOL1:MA(VOLUME,5),COLORWHITE;MAVOL2:MA(VOLUME,35)COLORYELLOW;MAVOL3:MA(VOLUME,135);AA:=VOL>REF(V,1)*1.9;AA1:=VOLAA2:=VOLSTICKLINE(AA,0,V,1,0),COLORYELLOW;STICKLINE(AA1,0,V,1,0),COLORGREEN;STICKLINE(AA2,0,V,1,0),COLORMAGENTA;TJ1:=COUNT(V>REF(V,1)*1.9,4)=1;TJ2:=COUNT(VMIN(L,4) AND L>REF(L,1),3)=3 ;TJ3:=TJ1 AND TJ2;STICKLINE(TJ3,0,V,1,0),COLORRED;QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN))*10;XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSEOPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSEHSL:=(XVL/20)/1.15;攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));LLJX:=EMA(攻击,3);0,POINTDOT,COLORWHITE;B1:SUM(LLJX,1),COLORCYAN;B2:SUM(LLJX,2),COLORCYAN;B3:SUM(LLJX,3),COLORCYAN;B4:SUM(LLJX,4),COLORCYAN;B5:SUM(LLJX,5),COLORCYAN;B6:SUM(LLJX,6),COLORCYAN;B7:SUM(LLJX,7),COLORCYAN;B8:SUM(LLJX,8),COLORCYAN;B9:SUM(LLJX,9),COLORCYAN;B10:SUM(LLJX,10),COLORCYAN;A1:IF(B1>REF(B1,1),B1,DRAWNULL),COLORMAGENTA;A2:IF(B2>REF(B2,1),B2,DRAWNULL),COLORRED;A3:IF(B3>REF(B3,1),B3,DRAWNULL),COLORRED;A4:IF(B4>REF(B4,1),B4,DRAWNULL),COLORRED;A5:IF(B5>REF(B5,1),B5,DRAWNULL),COLORRED;A6:IF(B6>REF(B6,1),B6,DRAWNULL),COLORRED;A7:IF(B7>REF(B7,1),B7,DRAWNULL),COLORRED;A8:IF(B8>REF(B8,1),B8,DRAWNULL),COLORRED;A9:IF(B9>REF(B9,1),B9,DRAWNULL),COLORRED;A10:IF(B10>REF(B10,1),B10,DRAWNULL),COLORRED,LINETHI CK3;CC1:=IF(B1>REF(B1,1),1,0);CC2:=IF(B2>REF(B2,1),1,0);CC3:=IF(B3>REF(B3,1),1,0);CC4:=IF(B4>REF(B4,1),1,0);CC5:=IF(B5>REF(B5,1),1,0);CC6:=IF(B6>REF(B6,1),1,0);CC7:=IF(B7>REF(B7,1),1,0);CC8:=IF(B8>REF(B8,1),1,0);CC9:=IF(B9>REF(B9,1),1,0);CC10:=IF(B10>REF(B10,1),1,0);DD:=CC1+CC2+CC3+CC4+CC5+CC6+CC7+CC8+CC9+CC10;VAX2:=EMA(C,7);VAR3:=EMA(C,14);VAR4:=EMA(C,25);VAR5:=2*(VAX2-VAR4);VAR6:=2*(VAX2-VAR3);VAR7:2*(VAR6+VAR5);DRAWICON(CROSS(VAR7,0),10000,13),COLORYELLOW;LC:=REF(CLOSE,1);RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);HX:=(HIGH - REF(HIGH,1));LX:=(REF(LOW,1) - LOW);DMP:=SUM(IF(((HX > 0) AND (HX > LX)),HX,0),10);DMM:=SUM(IF(((LX > 0) AND (LX > HX)),LX,0),10);PDI:=((DMP * 100) / TR1);MDI:=((DMM * 100) / TR1);ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);AV:=(RSI5 + ADX);DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));NEWVOL:=(RSI5 - WR10);ZZ:=(AV + NEWVOL);DRAWICON(CROSS(ZZ,0),8000,9),COLORFF00FF;--------------------------------------------------------------------------------(2)饱和量虚拟虚拟量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟量,0,3,-1),COLORFFFFFF;【成交量】:VOL,VOLSTICK,COLORWHITE; VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE主卖:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE【买卖差】:主买+主卖,NODRAW,COLOR0000FF;STICKLINE(C>O,0,VOL,3,1),COLOR0000AA; STICKLINE(CSTICKLINE(【买卖差】>0,0,【买卖差】,1,0),COLOR0000FF;STICKLINE(【买卖差】<0,0,-【买卖差】,1,0),COLOR00FF00;DDX:=主买+主卖; DX:=MA(DDX,5)*10; DDX1:SMA(DX,3,1),COLORFF00FF;DDX2:SMA(DDX1,3,1),COLORWHITE;DDX3:EMA(DDX2,5),COLORF0F000;5日换:SUM(100*V/CAPITAL,5),NODRAW,COLOR00CC00;PHD:=25;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和度%:IF(SAT>1,1,SAT)*100,NODRAW; 中点:=REFDATE(HHV(DDX1,100)/2,DATE);STICKLINE(CURRBARSCOUNT=PHD,中点*1.9,中点*1.5,100,1),COLOR00DDDD;STICKLINE(CONST(C>O)=1 AND CURRBARSCOUNT=PHD,中点*1.88,中点*1.52,量能饱和度%,0),COLOR0033FF;STICKLINE(CONST(C>O)=1 AND CURRBARSCOUNT=PHD,中点*1.82,中点*1.58,量能饱和度%,0),COLOR0077FF;STICKLINE(CONST(C>O)=1 AND CURRBARSCOUNT=PHD,中点*1.76,中点*1.64,量能饱和度%,0),COLOR0099FF;STICKLINE(CONST(C>O)=1 AND CURRBARSCOUNT=PHD,中点*1.7,中点*1.7,量能饱和度%,0),COLOR00DDFF;STICKLINE(CONST(CSTICKLINE(CONST(CSTICKLINE(CONST(CSTICKLINE(CONST(CDRAWTEXT(CURRBARSCOUNT=PHD+12,中点*1.35,'量能饱和度'),COLORWHITE;---------------------------------------------------------------------------------------------------------------------(3)划线虚拟量:预测量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测量,0,-1,-1),COLOR00C0C0;实际成交:VOL,VOLSTICK;上涨放量:STICKLINE(预测量/REF(VOL,1)>=1.5 AND C>REF(C,1),VOL,0,2.2,0),COLORYELLOW;动态天量:IF(REF(预测量,1)=HHV(预测量,20),REF(预测量,1),REF(REF(预测量,1),BARSLAST(REF(预测量,1)=HHV(预测量,20)))),COLORFFCC66;动态地量:IF(V=LLV(预测量,20),预测量,REF(预测量,BARSLAST(V=LLV(预测量,20)))),COLORYELLOW;STICKLINE(预测量=动态地量 AND 动态地量IF(预测量=动态地量 AND 动态地量MAVOL5:MA(实际成交,5),COLORRED;MAVOL8:MA(实际成交,8),COLORGREEN;MAVOL21:MA(实际成交,21),COLOR808000;-----------------------------------------------------------------------------(4)接近原版模拟动能虚拟{M1:1,100,5 M2:1,100,10}VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;盘虚万:VVOL/10000,NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL/10000,0,-1,-1),COLOR00C0C0;VOLUME:=VOL,VOLSTICK;MAVOL1:=MA(VOLUME,M1);MAVOL2:=MA(VOLUME,M2);量万:VOL/10000,VOLSTICK;A线万:MA(VOL,M1)/10000;B线万:MA(VOL,M2)/10000;流通亿:IF(C>=500,DRAWNULL,FINANCE(7)/100000000),NODRAW;流通值:IF(C>=500,DRAWNULL,FINANCE(40)/10000/10000),NODRAW;总市值:IF(C>=500,DRAWNULL,FINANCE(41)/10000/10000),COLORFF AA66,NODRAW;资金贡献:AMOUNT/INDEXA*100,NODRAW;上市日:IF(C<=500,FINANCE(42),DRAWNULL),COLORYELLOW,NODRA W;DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);DEA:=EMA(DIFF,5);MACD := 2*(DIFF-DEA);X1:=EMA(DIFF,5)*5;X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;X3:=IF(X2>0,X2,0),COLORRED;STICKLINE(X2>0,0,X2,2,-1),COLORRED;X4:=IF(X2<0,X2,0),COLORGREEN;STICKLINE(X2<0,0,X2,2,-1),COLORGREEN;资金动能A:=X2,LINETHICK1,COLORBROWN;资金动能B:=X1,LINETHICK1,COLORBLUE;选股:IF(CROSS(资金动能A,资金动能B) AND 资金动能B<-0.25,1,0);DRAWICON((CROSS(资金动能A,资金动能B) AND 资金动能B<-0.25),资金动能B,1);DRAWICON((CROSS(资金动能A,资金动能B) AND 资金动能B<-0.25),选股,11);-----------------------------------------------------------------------------------------------------------------(5)最简单虚拟SJ:=IF(ISLASTBAR=1 AND DYNAINFO(8),ISLASTBAR*FROMOPEN,DRAWNULL);预测成交:IF(ISLASTBAR=1,V*240/SJ,DRAWNULL),COLORGREEN,NODRA W;STICKLINE(ISLASTBAR=1,V*240/SJ,DYNAINFO(8),3,2),COLORDDDDDD;VOLUME:VOL,VOLSTICK;。
通达信量柱指标公式源码
DRAWBAND(MA(CLOSE,60),RGB(80,0,0),MA(CLOSE,120),RGB(0,91,0)); DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68)); DRAWKLINE(H,O,L,C);MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10),COLORYELLOW;MA30:=MA(CLOSE,30),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1); DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB1 AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.3,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,1,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF;STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLORBLUE,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORBLUE;{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;}三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1170214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=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(四日前倍量柱,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 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前倍量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前高量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3); 黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3); 黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 01));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 02));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 03));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 04));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2 05));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTE R2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTE R2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTE R2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT20 53);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NOD RAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),R EF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NO DRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),R EF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL,R EF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL,R EF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL,R EF(LOW,DAY1-4))),0),NODRAW;黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,N ODRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLOR00FF00;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW;DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW;K1:=SUMBARS(FILTER104,1);STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),10,0),COLORYELLOW;K2:=SUMBARS(FILTER101,1);STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORYELLOW;。
通达信黄金线主图指标公式
通达信黄金线主图指标公式RC1:=REF(C,1);大阴线:=C<0.96*O OR C<=RC1*0.96 OR C>1000 AND C<=RC1*0.98;大阴T:=BARSLAST(FILTER(大阴线,3));{调整显示密度}大阴实顶: REF(O,大阴T),COLORLIGREEN,POINTDOT;{显示大阴K线的开盘价O};大阴二一: REF((L+H)/2,大阴T),NODRAW;DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);{在屏幕左上角显示所属行业板块}DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);{在屏幕左上角显示所属地域板块}DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);{在屏幕左上角显示所属概念板块};AA:=(C-REF(C,1))/REF(C,1)*100;ZS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA>=4.945;DS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA<=-4.945;涨停价:IF(ZS,REF(C,1)*1.05,REF(C,1)*1.1),NODRAW;跌停价:IF(DS,REF(C,1)*0.95,REF(C,1)*0.9),NODRAW;比系数:=1.3;金线:=1;临界点:=0;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);均线:=MA5>REF(MA5,1) AND MA10<REF(MA10,1) AND MA20<REF(MA20,1);RV1:=REF(V,1);RV2:=REF(V,2);RV3:=REF(V,3);RC2:=REF(C,2);RC3:=REF(C,3);RC4:=REF(C,4);RO1:=REF(O,1);RO2:=REF(O,2);RO3:=REF(O,3);RO4:=REF(O,4);不破价顶:=C>=RC3 AND RC1>=RC3 AND RC2>=RC3;不破价底:=L>RO3 AND REF(L,1)>RO3 AND REF(L,2)>RO3;均价:=AMOUNT/VOL/100;RJ1:=REF(均价,1);RJ2:=REF(均价,2);阳柱:=C>=O OR (C<O AND 均价>RC1);三日二阳:=COUNT(阳柱,3)>=2;基价柱阳:=RC3>RO3;价渐升:=(均价>=RJ1 OR C>RC1) AND (RJ1>=RJ2 OR RC1>=RC2);均价升:=(C+RC1+RC2)/3>RC3;量渐升:=V>RV1 AND RV1>RV2 ;量渐减:=V<=RV1 AND RV1<=RV2 ;均量减:=(V+RV1+RV2)/3<=RV3 AND NOT(量渐升);日价量比:=C/V;日价量比升:=日价量比>=REF(日价量比,1) AND REF(日价量比,1)>=REF(日价量比,2);均价升幅:=(C+RC1+RC2)/3/RC3;均量升幅:=(V+RV1+RV2)/3/RV3;价量比:=比系数*均价升幅/均量升幅>1;基前跳空:=RO3>RC4 AND RC4>RO4;黄金柱1T:=基价柱阳 AND 价渐升 AND 量渐减 AND 不破价顶AND 不破价底 AND 基前跳空;BACKSET101T:=BACKSET(黄金柱1T,5);FILTER101T:=FILTER(BACKSET101T,4);黄金柱1:=基价柱阳AND 价渐升AND 量渐减AND 不破价顶AND 不破价底 ;BACKSET101:=BACKSET(黄金柱1,4);FILTER101:=FILTER(BACKSET101,3);黄金柱11:=黄金柱1 AND REF(黄金柱1,1);BACKSET1011:=BACKSET(黄金柱11,4);FILTER1011:=FILTER(BACKSET1011,3);黄金柱12:=黄金柱1 AND REF(黄金柱1,2);BACKSET1012:=BACKSET(黄金柱12,4);FILTER1012:=FILTER(BACKSET1012,3);黄金柱13:=黄金柱1 AND REF(黄金柱1,3);BACKSET1013:=BACKSET(黄金柱13,4);FILTER1013:=FILTER(BACKSET1013,3);黄金柱2T:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T);BACKSET201T:=BACKSET(黄金柱2T,5);FILTER201T:=FILTER(BACKSET201T,4);黄金柱2:=基价柱阳 AND 价渐升 AND 均量减 AND NOT(量渐升) AND 不破价顶 AND 不破价底 AND NOT(黄金柱1) AND NOT(黄金柱1T);BACKSET201:=BACKSET(黄金柱2,4);FILTER201:=FILTER(BACKSET201,3);黄金柱21:=黄金柱2 AND REF(黄金柱2,1);BACKSET2011:=BACKSET(黄金柱21,4);FILTER2011:=FILTER(BACKSET2011,3);黄金柱22:=黄金柱2 AND REF(黄金柱2,2);BACKSET2012:=BACKSET(黄金柱22,4);FILTER2012:=FILTER(BACKSET2012,3);黄金柱23:=黄金柱2 AND REF(黄金柱2,3);BACKSET2013:=BACKSET(黄金柱23,4);FILTER2013:=FILTER(BACKSET2013,3);黄金柱3T:=基价柱阳 AND 均价升 AND 量渐减 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);BACKSET301T:=BACKSET(黄金柱3T,5);FILTER301T:=FILTER(BACKSET301T,4);黄金柱3:=基价柱阳AND 均价升AND 量渐减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);BACKSET301:=BACKSET(黄金柱3,4);FILTER301:=FILTER(BACKSET301,3);黄金柱31:=黄金柱3 AND REF(黄金柱3,1);BACKSET3011:=BACKSET(黄金柱31,4);FILTER3011:=FILTER(BACKSET3011,3);黄金柱32:=黄金柱3 AND REF(黄金柱3,2);BACKSET3012:=BACKSET(黄金柱32,4);FILTER3012:=FILTER(BACKSET3012,3);黄金柱33:=黄金柱3 AND REF(黄金柱3,3);BACKSET3013:=BACKSET(黄金柱33,4);FILTER3013:=FILTER(BACKSET3013,3);黄金柱4T:=基价柱阳 AND 均价升 AND 均量减 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱1T) AND NOT(黄金柱2) AND NOT(黄金柱2T) AND NOT(黄金柱3) AND NOT(黄金柱3T);FILTER401T:=FILTER(BACKSET401T,4);黄金柱4:=基价柱阳AND 均价升AND 均量减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T);BACKSET401:=BACKSET(黄金柱4,4);FILTER401:=FILTER(BACKSET401,3);黄金柱41:=黄金柱4 AND REF(黄金柱4,1);BACKSET4011:=BACKSET(黄金柱41,4);FILTER4011:=FILTER(BACKSET4011,3);黄金柱42:=黄金柱4 AND REF(黄金柱4,2);BACKSET4012:=BACKSET(黄金柱42,4);FILTER4012:=FILTER(BACKSET4012,3);黄金柱43:=黄金柱4 AND REF(黄金柱4,3);BACKSET4013:=BACKSET(黄金柱43,4);FILTER4013:=FILTER(BACKSET4013,3);黄金柱5T:=基价柱阳 AND 均价升 AND 价量比 AND 不破价顶AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);BACKSET501T:=BACKSET(黄金柱5T,5);FILTER501T:=FILTER(BACKSET501T,4);黄金柱5:=基价柱阳AND 均价升AND 价量比AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);BACKSET501:=BACKSET(黄金柱5,4);FILTER501:=FILTER(BACKSET501,3);黄金柱51:=黄金柱5 AND REF(黄金柱5,1);FILTER5011:=FILTER(BACKSET5011,3);黄金柱52:=黄金柱5 AND REF(黄金柱5,2);BACKSET5012:=BACKSET(黄金柱52,4);FILTER5012:=FILTER(BACKSET5012,3);黄金柱53:=黄金柱5 AND REF(黄金柱5,3);BACKSET5013:=BACKSET(黄金柱53,4);FILTER5013:=FILTER(BACKSET5013,3);黄金柱6T:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶 AND 不破价底 AND 基前跳空 AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601T:=BACKSET(黄金柱6T,5);FILTER601T:=FILTER(BACKSET601T,4);黄金柱6:=基价柱阳 AND 均价升 AND 日价量比升 AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601:=BACKSET(黄金柱6,4);FILTER601:=FILTER(BACKSET601,3);黄金柱61:=黄金柱6 AND REF(黄金柱6,1);BACKSET6011:=BACKSET(黄金柱61,4);FILTER6011:=FILTER(BACKSET6011,3);黄金柱62:=黄金柱6 AND REF(黄金柱6,2);BACKSET6012:=BACKSET(黄金柱62,4);FILTER6012:=FILTER(BACKSET6012,3);黄金柱63:=黄金柱6 AND REF(黄金柱6,3);BACKSET6013:=BACKSET(黄金柱63,4);FILTER6013:=FILTER(BACKSET6013,3);FIL1:=(FILTER101 AND NOT(REF(FILTER101,4))) OR (FILTER1011 AND NOT(REF(FILTER1011,4))) OR (FILTER1012 AND NOT(REF(FILTER1012,4))) OR (FILTER1013 AND NOT(REF(FILTER1013,4)));FIL2:=(FILTER201 AND NOT(REF(FILTER201,4))) OR (FILTER2011 AND NOT(REF(FILTER2011,4))) OR (FILTER2012 AND NOT(REF(FILTER2012,4))) OR (FILTER2013 AND NOT(REF(FILTER2013,4)));FIL3:=(FILTER301 AND NOT(REF(FILTER301,4))) OR (FILTER3011 AND NOT(REF(FILTER3011,4))) OR (FILTER3012 AND NOT(REF(FILTER3012,4))) OR (FILTER3013 AND NOT(REF(FILTER3013,4)));FIL4:=(FILTER401 AND NOT(REF(FILTER401,4))) OR (FILTER4011 AND NOT(REF(FILTER4011,4))) OR (FILTER4012 AND NOT(REF(FILTER4012,4))) OR (FILTER4013 AND NOT(REF(FILTER4013,4)));FIL5:=(FILTER501 AND NOT(REF(FILTER501,4))) OR (FILTER5011 AND NOT(REF(FILTER5011,4))) OR (FILTER5012 AND NOT(REF(FILTER5012,4))) OR (FILTER5013 AND NOT(REF(FILTER5013,4)));FIL6:=(FILTER601 AND NOT(REF(FILTER601,4))) OR (FILTER6011 AND NOT(REF(FILTER6011,4))) OR (FILTER6012 AND NOT(REF(FILTER6012,4))) OR (FILTER6013 AND NOT(REF(FILTER6013,4)));FIL:=FIL1 OR FIL2 OR FIL3 OR FIL4 OR FIL5 OR FIL6;STICKLINE(FIL AND NOT(REF(FIL,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT (FIL AND NOT(REF(FIL,4)),LOW*0.986,'↖黄金柱'),COLOR0099FF;K1:=SUMBARS(FIL,1);STICKLINE(K1 AND 金线=1,REF(C,K1-1),REF(C,K1-1),10,0),COLOR8822FF;FIL1T:=(FILTER101T AND NOT(REF(FILTER101T,5)));FIL2T:=(FILTER201T AND NOT(REF(FILTER201T,5)));FIL3T:=(FILTER301T AND NOT(REF(FILTER301T,5)));FIL4T:=(FILTER401T AND NOT(REF(FILTER401T,5)));FIL5T:=(FILTER501T AND NOT(REF(FILTER501T,5)));FIL6T:=(FILTER601T AND NOT(REF(FILTER601T,5)));FILT:=FIL1T OR FIL2T OR FIL3T OR FIL4T OR FIL5T OR FIL6T;STICKLINE(FILT AND NOT(REF(FILT,5)),OPEN,CLOSE,3,0),COLOR0000FF;DRAWTEXT (FILT AND NOT(REF(FILT,5)),LOW*0.978,'↖元帅柱'),COLOR0000FF;K2:=SUMBARS(FILT,1);STICKLINE(K2 AND 金线=1,REF(C,K2-1),REF(C,K2-1),10,0),COLOR8822FF;黄金柱LJ:=(黄金柱1 OR 黄金柱2 OR 黄金柱3 OR 黄金柱4 OR 黄金柱5 OR 黄金柱6 ) AND 均线 AND 临界点;BACKSET10LJ:=BACKSET(黄金柱LJ ,4);FILTER10LJ:=FILTER(BACKSET10LJ,3);STICKLINE(FILTER10LJ AND NOT(REF(FILTER10LJ,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT(FILTER10LJ AND NOT(REF(FILTER10LJ,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;黄金柱LJT:=(黄金柱1T OR 黄金柱2T OR 黄金柱3T OR 黄金柱4T OR 黄金柱5T OR 黄金柱6T) AND 均线 AND 临界点 ;BACKSET10LJT:=BACKSET(黄金柱LJT ,5);FILTER10LJT:=FILTER(BACKSET10LJT,5);STICKLINE(FILTER10LJT ANDNOT(REF(FILTER10LJT,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT(FILTER10LJT AND NOT(REF(FILTER10LJT,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORFF00FF;STICKLINE(涨停,H,L,0,0),COLORFF00FF;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;STICKLINE(跌停,H,L,0,1),COLORGREEN;N:=10;。
通达信经典量柱主图指标公式
通达信经典量柱主图指标公式黄金柱:=V/REF(V,1)>=2.0;K1:=SUMBARS(黄金柱,1) ;K2:=SUMBARS(黄金柱,2);K3:=SUMBARS(黄金柱,3);K4:=SUMBARS(黄金柱,4);K5:=SUMBARS(黄金柱,5);K6:=SUMBARS(黄金柱,6);K7:=SUMBARS(黄金柱,7);K8:=SUMBARS(黄金柱,8);K9:=SUMBARS(黄金柱,9);K10:=SUMBARS(黄金柱,10);AA:STICKLINE(K1,REF(L,K1-1)*1.002,REF(L,K1-1),5,0),COLORYELLOW;{预定黄金柱}{预定黄金柱:=REF(V,2)>=REF(V,3)*1.99 AND REF(C,2)>REF(O,2)AND REF(V,2)=HHV(V,3) AND C/REF(C,2) >=1.0995 AND REF(L,2)=LLV(L,3);}{预定:STICKLINE(预定黄金柱,H,H,30,0),COLORRED;}{DRAWICON(预定黄金柱,H,19);}{将军柱中的五星上将黄金柱}T60:=V=HHV(V,60);T100:=V=HHV(V,100);T2:=V/REF(VOL,1)>=3;T3:=REF(C,1)/REF( O,1)<3;五星上将:=(T60 AND T2 AND T3) OR (T100 AND T2 AND T3);DRAWICON(五星上将,H,23);{量柱图}C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORWHITE;STICKLINE(涨停,H,L,0,0),COLORWHITE;DRAWICON(涨停,L-0.2,11);DRAWTEXT(涨停,L-0.2,' --涨停');跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;DRAWICON(跌停,H+0.2,2);DRAWTEXT(跌停,H+0.2,' --跌停');{大阳线:=IF((C-C2)*100/C2>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阳线,OPEN,CLOSE,-1,0),COLORRED;STICKLINE(大阳线,H,L,0,1),COLORRED;大阴线:=IF((C2-C)*100/C2>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阴线,OPEN,CLOSE,-1,0),COLORGREEN;STICKLINE(大阴线,H,L,0,1),COLORGREEN;}{MA13:MA(CLOSE,13),COLORWHITE;MA34:MA(CLOSE,34),COLORYELLOW;MA55:MA(CLOSE,55),COLOR9933FF;}{MA4:MA(CLOSE,4),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,20),COLOR9933FF;MA30:MA(CLOSE,30),COLORLIBLUE;MA60:MA(CLOSE,60),COLORWHITE;MA120:MA(CLOSE,120),COLORLIGREEN;}TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); C1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10);AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK3;前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK3;{求位置坐标}PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));{自动画量能平台}{NN 1 300 21}{NN:=21;TTJ:=BARSLAST(REF(倍量黄金柱,NN-1));K0:=TTJ=0;K1:=SUMBARS(K0,1);K2:=SUMBARS(K0,2);K3:=SUMBARS(K0,3);K4:=SUMBARS(K0,4);K5:=SUMBARS(K0,5);K6:=SUMBARS(K0,6);K7:=SUMBARS(K0,7);K8:=SUMBARS(K0,8);K9:=SUMBARS(K0,9);K10:=SUMBARS(K0,10);CCCC1:=REF(C,K1-1);}{在K线图上标示量柱类型}倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);低量:=DRAWICON(VOL<REF(LLV(VOL,13),1),H+0.1,2);地量:=DRAWICON(VOL<REF(LLV(VOL,100),1),H+0.1,12);平量:=DRAWICON(ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03 OR ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,H+0.1,16);倍缩:=DRAWICON(VOL<=REF(V,1)*0.5,H+0.1,27);{画量柱标识:}{1.画倍量黄金柱标识--红箭头图标}倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,1);{2.画梯量黄金柱标识--橘子图标}梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17);{3.画平量黄金柱标识--苹果图标}平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);{4.画立桩量标识--顶部红箭头图标}N:=25;立桩量:=REF(V,3)/REF(MA(V,5),4)>(N/10) ANDREF(V,3)/REF(HHV(V,60),4)>1.5 AND LLV(L,3)>REF(L,3);STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,30,0),COLORWHITE;DRAWICON(倍量黄金柱,PHD*1.008,12);DRAWTEXT(倍量黄金柱,PHD*1.010,' 标准黄金柱精准线'),COLORFF00FF;DRAWTEXT(倍量黄金柱,PHD,'================='),COLORWHITE;{平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(平量黄金柱,PHD*1.015,'平量黄金线'),COLORLIGREEN ;梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(梯量黄金柱,PHD*1.015,'梯量黄金线'),COLORFF00FF ;}立桩量标识:DRAWICON(立桩量,H*1.002,1);DRAWTEXT(立桩量,H*1.06,'立'),COLORRED;DRAWTEXT(立桩量,H*1.04,'桩'),COLORRED;DRAWTEXT(立桩量,H*1.02,'量'),COLORRED;{DA:STICKLINE(K4<=30,REF(C,K4-1)*1.002,REF(C,K4-1),10,0),COLORBLUE;EA:STICKLINE(K5<=30,REF(C,K5-1)*1.002,REF(C,K5-1),10,0),COLORBLUE;FA:STICKLINE(K6<=30,REF(C,K6-1)*1.002,REF(C,K6-1),10,0),COLORBLUE;GA:STICKLINE(K7<=30,REF(C,K7-1)*1.002,REF(C,K7-1),10,0),COLORBLUE;HA:STICKLINE(K8<=30,REF(C,K8-1)*1.002,REF(C,K8-1),10,0),COLORBLUE;IA:STICKLINE(K9<=30,REF(C,K9-1)*1.002,REF(C,K9-1),10,0),COLORBLUE;JA:STICKLINE(K10<=30,REF(C,K10-1)*1.002,REF(C,K10-1),10,0),COLORBLUE;}AAA:=CONST(HHV(H,90));TS1:=0+0.03;TS2:=TS1+0.03;TS3:=TS2+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS1),'<一>.量柱的阶段性拐点标志--空间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS2),' 1.平台起柱:在K线整理平台上突然起柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS3),' 2.凹口起柱:在K线逐步回调形成凹口时起柱.常见凹口倍量;'),COLORFF00FF ;TS4:=TS3+0.03;TS5:=TS4+0.03;TS6:=TS5+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS4),' 3.过顶起柱:过左峰起柱.常见过顶倍量;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS5),' 4.触底起柱:触前期谷底起柱.常见触底倍量.'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS6),'<二>.量柱的集合定性--组合量柱:'),COLORFF00FF ;TS7:=TS6+0.03;TS8:=TS7+0.03;TS9:=TS8+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS7),' 1.低量柱+倍量柱:后市必大涨!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS8),' 2.倍量柱+倍量柱:主庄控盘良好,急于拉升!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS9),' 3.缩倍柱+倍量柱:机会就在眼前!'),COLORFF00FF ;{============================}BBB:=CONST(HHV(H,190));TT1:=0+0.03;TT2:=TT1+0.03;TT3:=TT2+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT1),'<三>.量柱的三日定性--时间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT2),' 1.后三日价升量缩:转化为黄金柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT3),' 2.后三日量柱先阴后阳:该量柱官升一级;'),COLORFF00FF ;TT4:=TT3+0.03;TT5:=TT4+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT4),' 3.后三日量柱阴阳相间:量柱退化,走势面临调整;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT5),' 4.后三日量柱实体逐步缩小:力量将衰退,面临调整.'),COLORFF00FF ;{底部趋势拐点}VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);VOLUME:=VOL;AAG:=VOL>=REF(V,1)*1.91 AND C>REF(C,1);AA1G:=VOL<REF(LLV(VOL,21),1);AA2G:=VOL<REF(LLV(VOL,55),1);AA3G:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05;MAVOL5:=MA(VOLUME,5);MAVOL35:=MA(VOLUME,35);MAVOL135:=MA(VOLUME,135);VOLUME5:=MA(VOLUME,5);VOLUME35:=MA(VOLUME,35);VOLUME135:=MA(VOLUME,135);买入:=CROSS(VOLUME5,VOLUME135);DRAWICON(买入,L,9);买入1:=CROSS(VOLUME35,VOLUME135);DRAWICON(买入1,L,5);买入2:=CROSS(VOLUME5,VOLUME35);DRAWICON(买入2,L,1);{非常棒}EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED;DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20 );卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2);买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LIN ETHICK3,COLORYELLOW;VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLO RGREEN;A0:=(L+H+C*2)/4;A1B:EMA(A0,14),COLORBLUE,LINETHICK2;A2B:=EMA(A0,25),COLORLIBLUE,LINETHICK2;A1X:=(A1B-REF(A1B,1))/REF(A1B,1)*100,NODRAW;A2X:=(A2B-REF(A2B,1))/REF(A2B,1)*100,NODRAW;看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1 X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A 1X))),DRAWNULL),COLORCYAN,{LINETHICK2};买入持股:IF(A1X>=0,A1B,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1B,DRAWNULL)COLORGREEN,LINETHICK3;{STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;};。
通达信黄金柱指标公式
通达信黄金柱指标公式
黄金柱指标是通达信中非常著名的一种技术指标,它由三部分组成,分别是收盘价、最高价和最低价。
黄金柱指标注重趋势发展走势,可以很大程度上反映市场的内外力量持续状态,从而可以快速把握市场的热点和趋势变化,也可以提高投资者的操作成功率。
黄金柱指标最早是由知名投资大师里尔克发明的,他把收盘价、最高价和最低价构成了一个指标,以显示市场的趋势走势、支撑位和阻力位,其中最重要的品质就是它可以在交易中及时发现市场的热点和机遇,从而降低投资者的投资风险。
黄金柱指标的计算方法非常简单,它是根据收盘价、最高价和最低价的比重,以及相应的公式,计算出的一种技术指标,公式如下:【PD (最高价-最低价)/(最高价+最低价+2*收盘价)】
通过计算黄金柱指标,我们可以看到它有三个条件:(1)当它大于0时,表明市场走势情况良好,而且有一定的上涨空间,是一个比较好的买入时机;(2)当它等于0时,表明市场走势处于稳定状态,此时可以考虑离场;(3)当它小于0时,表明市场走势情况较差,而且有一定的下跌空间,可以果断卖出。
另外,黄金柱指标还可以在投资中及时发现趋势变化,通过对比不同时期中指标的变化情况,可以对市场行情进行客观的判断,从而辅助投资者做出科学的投资决策和交易操作,可以提高投资者的操作成功率,让投资者在危机四伏的股市中更加有自信。
总之,熟练使用《通达信黄金柱指标公式》可以大大提高投资者
的交易能力,在进行股票投资时,投资者应该熟练掌握,用黄金柱技术指标来判断市场的趋势和变化,以此来确保投资的安全性。
【股票指标公式下载】-【通达信】黄金量(顶、底、成交量、换手)
【通达信】黄金量(顶、底、成交量、换手)-指标公式源码VOLUME:VOL,VOLSTICK;顶:=HHV(V,90);底:=LLV(V,90);地:=底+(顶-底)*0.06;下:=底+(顶-底)*0.28;中:=底+(顶-底)*0.50;上:=底+(顶-底)*0.75;【金】:REFDATE(地,DATE),COLOR00FFFF;【银】:REFDATE(下,DATE),COLORFFFFFF;【铜】:REFDATE(中,DATE),COLORLIRED;【铁】:REFDATE(上,DATE),COLORRED;【顶】:REFDATE(HHV(V,90),DATE),COLORCYAN;MA1:=MA(VOL,5),COLORYELLOW;MA2:=MA(VOL,10),COLORWHITE;MA3:=MA(VOL,20),COLORWHITE;MA4:=MA(VOL,40),COLORMAGENTA;换手:=V*100/CAPITAL;{---------------------------------------------------}新股成交量:IF(BARSCOUNT(CLOSE)<40,VOL,DRAWNULL),VOLSTICK;AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));成交量(手):VOL,COLORWHITE,LINETHICK0;调整周期:IF(MA1<MA4,BARSLAST(CROSS(MA4,MA1))+1,BARSLAST(CROSS(MA4,MA1))-BAR SLAST(CROSS(MA1,MA4))),NODRAW;调整总换手:IF(MA1<MA4,SUM(换手,BARSLAST(CROSS(MA4,MA1))+1),SUM(换手,BARSLAST(CROSS(MA4,MA1))+1)-SUM(换手,BARSLAST(CROSS(MA1,MA4))+1)),NODRAW;调整均换手:调整总换手/调整周期,NODRAW;虚拟成交量:IF(CURRBARSCOUNT=1 ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;放量上涨:C/REF(C,1)>=1.01 AND V/REF(V,1)>=1.5 AND V>MA(V,5) ANDREF(V,1)/REF(MA(V,5),1)<=1.8,NODRAW;{-------------------------------------------------------------} STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟成交量,0,4,-1),COLOR00C0C0; 主动买盘:=IF(C>OPEN,AA*(HIGH-LOW),IF(C<OPEN,AA*((HIGH-OPEN)+(C-LOW)),VOL/2) );主动卖盘:=IF(C>OPEN,0-AA*((HIGH-C)+(OPEN-LOW)),IF(C<OPEN,0-AA*(HIGH-LOW),0-VOL/2));STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,VOL,0,3,0),COLOR0000AA; STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,主动买盘,0,2.5,0),COLOR0000BB ;STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,主动买盘,0,1.5,0),COLOR0000CC ;STICKLINE(主动买盘>主动卖盘 AND MA1>=MA4,主动买盘,0,1,0),COLOR0000EE; STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),3,0),COLOR7B7B00;STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),2.5,0),COLOR909000;STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),1.5,0),COLORA8A800;STICKLINE(主动卖盘<主动买盘 AND MA1>=MA4,主动买盘,主动买盘+ABS(主动卖盘),1,0),COLORCECE00;STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,3,0),COLORRED; STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,2.5,0),COLOR0066FF;STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,1.5,0),COLOR0099FF;STICKLINE(主动买盘>主动卖盘 AND MA1<MA4,0,主动买盘,1,0),COLORYELLOW; STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),3,0),COLOR007B00;STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),2.5,0),COLOR009000;STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),1.5,0),COLOR00A800;STICKLINE(主动卖盘<主动买盘 AND MA1<MA4,主动买盘,主动买盘+ABS(主动卖盘),1,0),COLOR00FF00;DRAWICON(放量上涨,0,23);【通达信】黄金量(顶、底、成交量、换手)-指标公式效果图(文档来源:若水财经社区)。
通达信指标——筹码黄金柱(主图、选股)
通达信指标——筹码黄⾦柱(主图、选股)N:=3;BL:=4;BN:=20;C2:=REF(C,1);L0:=0.00;L1:=ABS(L-REF(L,1))<= L0;L2:=ABS(L-REF(L,2))<= L0;L3:=ABS(L-REF(L,3))<= L0;L4:=ABS(L-REF(L,4))<= L0;L5:=ABS(L-REF(L,5))<= L0;⾸次:=L1 OR L2 OR L3;中点:=(H+L)/2;本⽇跌率:=(O-C)*100/O;⽐前跌率:=(REF(C,1)-C)*100/REF(C,1);左⼤阴K:=FILTER(⽐前跌率> BL,N) ;天数:=BARSLAST(左⼤阴K);JC:=REF(C,天数);下:=HHV(中点,天数)< REF(中点,天数);MAVOL1:=MA(V,5);JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C> REF(C,1);LJL:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(LJL)= 1 AND CLOSE> REF(HIGH,1),1,IF(BARSLAST(LJL)= 2 AND CLOSE> REF(HIGH,2),1,IF(BARSLAST(LJL)= 3 AND CLOSE> REF(HIGH,3),1,0)));TP:=TJ2=1;STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),6,0),COLORGREEN;STICKLINE(BARSLAST(LJL)= 0,LOW,REF(REF(LOW,BARSLAST(LJL)),1),0,0), COLORGREEN;TJ3:=IF(BARSLAST(LJL)= 1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(LJL)= 2 AND CLOSE> REF(LOW,2),1,IF(BARSLAST(LJL)= 3 AND CLOSE> REF(LOW,3),1,0)));STFZ:=TJ3=1;CL:=STFZ AND TP;TJCL:=FILTER(CL,3);STICKLINE(LJL,OPEN,CLOSE,5,0),COLORYELLOW;DRAWTEXT(LJL,L*0.99,'黄⾦柱'),COLORF00FF0;涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;历史最低价:LLV(LOW,0),COLOR00FF00,NODRAW;历史最⾼价:HHV(HIGH,0),COLORRED,NODRAW;三⽇涨跌:(C-REF(CLOSE,3))/C*100,COLORFF00FF,NODRAW;⼗五⽇涨跌:(C-REF(CLOSE,15))/C*100,NODRAW;三⼗⽇涨跌:(C-REF(CLOSE,30))/C*100,NODRAW;HB:=COST(99.3);LB:=COST(0.2);B3:=(HB-LB)/50;B31:=HB-B3;B32:=HB-2*B3;B33:=HB-3*B3;B34:=HB-4*B3;B35:=HB-5*B3;B36:=HB-6*B3;B37:=HB-7*B3;B38:=HB-8*B3;B39:=HB-9*B3; B310:=HB-10*B3;B311:=HB-11*B3;B312:=HB-12*B3;B313:=HB-13*B3;B314:=HB-14*B3;B315:=HB-15*B3;B316:=HB-16*B3;B317:=HB-17*B3;B318:=HB-18*B3;B319:=HB-19*B3;B320:=HB-20*B3;B321:=HB-21*B3;B322:=HB-22*B3;B323:=HB-23*B3;B324:=HB-24*B3;B325:=HB-25*B3;B326:=HB-26*B3;B327:=HB-27*B3;B328:=HB-28*B3;B329:=HB-29*B3;B330:=HB-30*B3;B331:=HB-31*B3;B332:=HB-32*B3;B333:=HB-33*B3;B334:=HB-34*B3;B335:=HB-35*B3;B336:=HB-36*B3;B337:=HB-37*B3;B338:=HB-38*B3;B339:=HB-39*B3;B340:=HB-40*B3;B341:=HB-41*B3;B342:=HB-42*B3;B343:=HB-43*B3;B344:=HB-44*B3;B345:=HB-45*B3;B346:=HB-46*B3;B347:=HB-47*B3;B348:=HB-48*B3;B349:=HB-49*B3;A1:=WINNER(HB)*100-WINNER(B31)*100;A2:=WINNER(B31)*100-WINNER(B32)*100;A3:=WINNER(B32)*100-WINNER(B33)*100;A4:=WINNER(B33)*100-WINNER(B34)*100;A5:=WINNER(B34)*100-WINNER(B35)*100;A6:=WINNER(B35)*100-WINNER(B36)*100;A7:=WINNER(B36)*100-WINNER(B37)*100;A8:=WINNER(B37)*100-WINNER(B38)*100;A9:=WINNER(B38)*100-WINNER(B39)*100;A10:=WINNER(B39)*100-WINNER(B310)*100;A11:=WINNER(B310)*100-WINNER(B311)*100;A12:=WINNER(B311)*100-WINNER(B312)*100;A13:=WINNER(B312)*100-WINNER(B313)*100;A14:=WINNER(B313)*100-WINNER(B314)*100;A15:=WINNER(B314)*100-WINNER(B315)*100;A16:=WINNER(B315)*100-WINNER(B316)*100;A17:=WINNER(B316)*100-WINNER(B317)*100;A18:=WINNER(B317)*100-WINNER(B318)*100;A19:=WINNER(B318)*100-WINNER(B319)*100;A20:=WINNER(B319)*100-WINNER(B320)*100;A21:=WINNER(B320)*100-WINNER(B321)*100;A22:=WINNER(B321)*100-WINNER(B322)*100;A23:=WINNER(B322)*100-WINNER(B323)*100;A24:=WINNER(B323)*100-WINNER(B324)*100;A25:=WINNER(B324)*100-WINNER(B325)*100;A26:=WINNER(B325)*100-WINNER(B326)*100;A27:=WINNER(B326)*100-WINNER(B327)*100;A28:=WINNER(B327)*100-WINNER(B328)*100;A29:=WINNER(B328)*100-WINNER(B329)*100;A30:=WINNER(B329)*100-WINNER(B330)*100;A31:=WINNER(B330)*100-WINNER(B331)*100;A32:=WINNER(B331)*100-WINNER(B332)*100;A33:=WINNER(B332)*100-WINNER(B333)*100;A34:=WINNER(B333)*100-WINNER(B334)*100;A35:=WINNER(B334)*100-WINNER(B335)*100;A36:=WINNER(B335)*100-WINNER(B336)*100;A37:=WINNER(B336)*100-WINNER(B337)*100;A38:=WINNER(B337)*100-WINNER(B338)*100;A39:=WINNER(B338)*100-WINNER(B339)*100;A40:=WINNER(B339)*100-WINNER(B340)*100;A41:=WINNER(B340)*100-WINNER(B341)*100;A42:=WINNER(B341)*100-WINNER(B342)*100;A43:=WINNER(B342)*100-WINNER(B343)*100;A44:=WINNER(B343)*100-WINNER(B344)*100;A45:=WINNER(B344)*100-WINNER(B345)*100;A46:=WINNER(B345)*100-WINNER(B346)*100;A47:=WINNER(B346)*100-WINNER(B347)*100;A48:=WINNER(B347)*100-WINNER(B348)*100;A49:=WINNER(B348)*100-WINNER(B349)*100;A50:=WINNER(B349)*100-WINNER(LB)*100;MX0:=MAX(A1, MAX(A2, MAX(A3, MAX(A4, MAX(A5, MAX(A6, MAX(A7, MAX(A8, MAX(A9,A10)))))))));MX1:=MAX(A11, MAX(A12, MAX(A13, MAX(A14, MAX(A15, MAX(A16, MAX(A17, MAX(A18, MAX(A19,A20)))))))));MX2:=MAX(A21, MAX(A22, MAX(A23, MAX(A24, MAX(A25, MAX(A26, MAX(A27, MAX(A28, MAX(A29,A30)))))))));MX3:=MAX(A31, MAX(A32, MAX(A33, MAX(A34, MAX(A35, MAX(A36, MAX(A37, MAX(A38, MAX(A39,A40)))))))));MX4:=MAX(A41, MAX(A42, MAX(A43, MAX(A44, MAX(A45, MAX(A46, MAX(A47, MAX(A48, MAX(A49,A50)))))))));最⼤值:=MAX(MX0, MAX(MX1, MAX(MX2, MAX(MX3,MX4))));峰值过滤:=IF(最⼤值< 8,40,IF(最⼤值< 14,25,15));线宽调整:=IF(C< 1.5,0.003,IF(C< 3,0.01,IF(C< 10,0.02,IF(C< 16,0.03,IF(C< 30,0.05,0.06)))))*(5/10);线条长度:=3;STICKLINE(ISLASTBAR AND A1 >最⼤值/线条长度 AND A1 =MAX(MX0,MX1),HB ,HB+线宽调整 ,A1*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A1 >最⼤值/线条长度 AND A1 =MAX(MX0,MX1),B31 ,B31+线宽调整 ,A1*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A2 >最⼤值/线条长度 AND A2 =MAX(MX0,MX1),B32 ,B32+线宽调整 ,A2*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A3 >最⼤值/线条长度 AND A3 =MAX(MX0,MX1),B33 ,B33+线宽调整 ,A3*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A4 >最⼤值/线条长度 AND A4 =MAX(MX0,MX1),B34 ,B34+线宽调整 ,A4*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A5 >最⼤值/线条长度 AND A5 =MAX(MX0,MX1),B35 ,B35+线宽调整 ,A5*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A6 >最⼤值/线条长度 AND A6 =MAX(MX0,MX1),B36 ,B36+线宽调整 ,A6*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A7 >最⼤值/线条长度 AND A7 =MAX(MX0,MX1),B37 ,B37+线宽调整 ,A7*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A8 >最⼤值/线条长度 AND A8 =MAX(MX0,MX1),B38 ,B38+线宽调整 ,A8*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A9 >最⼤值/线条长度 AND A9 =MAX(MX0,MX1),B39 ,B39+线宽调整 ,A9*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A10 >最⼤值/线条长度 AND A10 =MAX(MX0,MX1),B310 ,B310+线宽调整 ,A10*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A11 >最⼤值/线条长度 AND A11 =MAX(MX0,MX1),B311 ,B311+线宽调整 ,A11*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A12 >最⼤值/线条长度 AND A12 =MAX(MX0,MX1),B312 ,B312+线宽调整 ,A12*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A13 >最⼤值/线条长度 AND A13 =MAX(MX0,MX1),B313 ,B313+线宽调整 ,A13*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A14 >最⼤值/线条长度 AND A14 =MAX(MX0,MX1),B314 ,B314+线宽调整 ,A14*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A15 >最⼤值/线条长度 AND A15 =MAX(MX0,MX1),B315 ,B315+线宽调整 ,A15*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A16 >最⼤值/线条长度 AND A16 =MAX(MX0,MX1),B316 ,B316+线宽调整 ,A16*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A17 >最⼤值/线条长度 AND A17 =MAX(MX0,MX1),B317 ,B317+线宽调整 ,A17*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A18 >最⼤值/线条长度 AND A18 =MAX(MX0,MX1),B318 ,B318+线宽调整 ,A18*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A19 >最⼤值/线条长度 AND A19 =MAX(MX0,MX1),B319 ,B319+线宽调整 ,A19*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A20 >最⼤值/线条长度 AND A20 =MAX(MX0,MX1),B320 ,B320+线宽调整 ,A20*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A21 >最⼤值/线条长度 AND A21 =MX2,B321 ,B321+线宽调整 ,A21*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A22 >最⼤值/线条长度 AND A22 =MX2,B322 ,B322+线宽调整 ,A22*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A23 >最⼤值/线条长度 AND A23 =MX2,B323 ,B323+线宽调整 ,A23*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A24 >最⼤值/线条长度 AND A24 =MX2,B324 ,B324+线宽调整 ,A24*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A25 >最⼤值/线条长度 AND A25 =MX2,B325 ,B325+线宽调整 ,A25*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A26 >最⼤值/线条长度 AND A26 =MX2,B326 ,B326+线宽调整 ,A26*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A27 >最⼤值/线条长度 AND A27 =MX2,B327 ,B327+线宽调整 ,A27*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A28 >最⼤值/线条长度 AND A28 =MX2,B328 ,B328+线宽调整 ,A28*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A29 >最⼤值/线条长度 AND A29 =MX2,B329 ,B329+线宽调整 ,A29*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A30 >最⼤值/线条长度 AND A30 =MX2,B330 ,B330+线宽调整 ,A30*峰值过滤 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR AND A31 >最⼤值/线条长度 AND A31 =MAX(MX3,MX4),B331 ,B331+线宽调整 ,A31*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A32 >最⼤值/线条长度 AND A32 =MAX(MX3,MX4),B332 ,B332+线宽调整 ,A32*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A33 >最⼤值/线条长度 AND A33 =MAX(MX3,MX4),B333 ,B333+线宽调整 ,A33*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A34 >最⼤值/线条长度 AND A34 =MAX(MX3,MX4),B334 ,B334+线宽调整 ,A34*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A35 >最⼤值/线条长度 AND A35 =MAX(MX3,MX4),B335 ,B335+线宽调整 ,A35*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A36 >最⼤值/线条长度 AND A36 =MAX(MX3,MX4),B336 ,B336+线宽调整 ,A36*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A37 >最⼤值/线条长度 AND A37 =MAX(MX3,MX4),B337 ,B337+线宽调整 ,A37*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A38 >最⼤值/线条长度 AND A38 =MAX(MX3,MX4),B338 ,B338+线宽调整 ,A38*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A39 >最⼤值/线条长度 AND A39 =MAX(MX3,MX4),B339 ,B339+线宽调整 ,A39*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A40 >最⼤值/线条长度 AND A40 =MAX(MX3,MX4),B340 ,B340+线宽调整 ,A40*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A41 >最⼤值/线条长度 AND A41 =MAX(MX3,MX4),B341 ,B341+线宽调整 ,A41*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A42 >最⼤值/线条长度 AND A42 =MAX(MX3,MX4),B342 ,B342+线宽调整 ,A42*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A43 >最⼤值/线条长度 AND A43 =MAX(MX3,MX4),B343 ,B343+线宽调整 ,A43*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A44 >最⼤值/线条长度 AND A44 =MAX(MX3,MX4),B344 ,B344+线宽调整 ,A44*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A45 >最⼤值/线条长度 AND A45 =MAX(MX3,MX4),B345 ,B345+线宽调整 ,A45*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A46 >最⼤值/线条长度 AND A46 =MAX(MX3,MX4),B346 ,B346+线宽调整 ,A46*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A47 >最⼤值/线条长度 AND A47 =MAX(MX3,MX4),B347 ,B347+线宽调整 ,A47*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A48 >最⼤值/线条长度 AND A48 =MAX(MX3,MX4),B348 ,B348+线宽调整 ,A48*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A49 >最⼤值/线条长度 AND A49 =MAX(MX3,MX4),B349 ,B349+线宽调整 ,A49*峰值过滤 ,0),COLORYELLOW;STICKLINE(ISLASTBAR AND A50 >最⼤值/线条长度 AND A50 =MAX(MX3,MX4),LB ,LB+线宽调整 ,A50*峰值过滤 ,0 ),COLORYELLOW; =======================================选股N:=3;BL:=4;BN:=20;C2:=REF(C,1);L0:=0.00;L1:=ABS(L-REF(L,1))<= L0;L2:=ABS(L-REF(L,2))<= L0;L3:=ABS(L-REF(L,3))<= L0;L4:=ABS(L-REF(L,4))<= L0;L5:=ABS(L-REF(L,5))<= L0;⾸次:=L1 OR L2 OR L3;中点:=(H+L)/2;本⽇跌率:=(O-C)*100/O;⽐前跌率:=(REF(C,1)-C)*100/REF(C,1);左⼤阴K:=FILTER(⽐前跌率> BL,N) ;天数:=BARSLAST(左⼤阴K);JC:=REF(C,天数);下:=HHV(中点,天数)< REF(中点,天数);MAVOL1:=MA(V,5);JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36; TJ1:=VOL=HHV(VOL,10) AND VOL> 2*REF(VOL,1) AND CLOSE> VAR1 AND C> REF(C,1);筹码黄⾦柱: FILTER(TJ1,5) AND DYNAINFO(4)> 0 AND FINANCE(42)> 120 AND DYNAINFO(37)> 0.02;。
通达信指标源码-黄金柱(主图)
通达信指标源码-黄金柱(主图)DRAWBAND(MA(CLOSE,60),RGB(80,0,0),MA(CLOSE,120),RG B(0,91,0));DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),R GB(83,123,68));DRAWKLINE(H,O,L,C);MA5:MA(CLOSE,5),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,30),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L-0.012,'穿'),COLORFF00FF;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORRED;高点:(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=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(四日前倍量柱,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 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩AND 三日不破 AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱 OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩 AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱 OR 高量将军柱;次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱 OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱 OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3);黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3);黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) ANDREF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT( CLOSE),BARSLAST(FILTER201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT( CLOSE),BARSLAST(FILTER202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT( CLOSE),BARSLAST(FILTER203));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT( CLOSE),BARSLAST(FILTER204));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT( CLOSE),BARSLAST(FILTER205));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOU NT(CLOSE),BARSLAST(FILTER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOU NT(CLOSE),BARSLAST(FILTER2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOU NT(CLOSE),BARSLAST(FILTER2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),B T2051),BT2052),BT2053);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,R EF(LOW,DAY1-1)),0),NODRAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH, REF(HIGH,DAY1-1)),0),NODRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX( C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LO W,IF(DAY1<2,DRAWNULL,REF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LO W,IF(DAY1<3,DRAWNULL,REF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LO W,IF(DAY1<4,DRAWNULL,REF(LOW,DAY1-4))),0),NODRAW;黄金线:HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_ 53,COLORYELLOW,NODRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLORRED;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW;DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;。
通达信量柱指标公式源码
通达信量柱指标公式源码
```
/*通达信量柱指标公式*/
/*参数:N1(短周期),N2(长周期)*/
/*输出:BAR(量柱指标)*/
C:=C;
V:=V;
AA:MA(C,N1)/MA(C,N2)*100;
VAR:=CROSS(AA,CROSS(MA(V,N1)/MA(V,N2)*100,0));
VAR1:REF(VAR,1);
BAR:IF(VAR>VAR1,SUM(VAR-VAR1,20),0);
```
上述代码是通达信量柱指标的源码实现。
其中,N1和N2是用户可以
自定义的短期和长期参数,用来设置计算的周期长度。
C表示收盘价序列,V表示成交量序列。
公式的计算过程如下:
1.首先计算AA=MA(C,N1)/MA(C,N2)*100,表示当日短周期均线除以
长周期均线,并乘以100。
2.然后计算VAR=CROSS(AA,CROSS(MA(V,N1)/MA(V,N2)*100,0)),表
示当AA上穿0和当AA上穿成交量的均线之间时,VAR值为1,否则为0。
3.接下来计算VAR1=REF(VAR,1),表示将VAR值向前引用一天。
4.最后计算BAR=IF(VAR>VAR1,SUM(VAR-VAR1,20),0),表示如果VAR 大于VAR1,则累计20天VAR-VAR1的值,否则为0。
BAR即为量柱指标,代表了成交量的变化情况。
当BAR值大于0时,表示当日成交量较前一天有所增加,当BAR值小于0时,表示当日成交量较前一天有所减少。
黄金柱主图公式(通信达)
黄金柱主图公式(通信达)公式如下:B1:=MA(CLOSE,1);B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1) ;SMA2:=MA(B2,5) ;DRAWBAND(B2,RGB(180,0,180),SMA2,RGB(256,100,100)); X:=21;TTY:=H;AAT:=REF(TTY,X)=HHV(TTY,2*X+1);BBT:=FILTER(AAT,X);CCT:=BACKSET(BBT,X+1);HD10T:=FILTER(CCT,X);AA1T:=REF(TTY,X)=LLV(TTY,2*X+1);BB1T:=FILTER(AA1T,X);CC1T:=BACKSET(BB1T,X+1);LD10T:=FILTER(CC1T,X);三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=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(四日前倍量柱,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 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩AND 三日不破 AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱 OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破))AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩 AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱 OR 高量将军柱;次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱 OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱 OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3);BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);{重绘K线}DRAWKLINE(H,O,L,C);{重绘K线显示大阳\大阴\涨停\跌停\假阴,适用于通达信}RC1:=REF(C,1);涨停率10:=10-1/RC1;{178448-WEN98编写}涨停率5:=5-1/RC1;比前涨率:=(C-RC1)*100/RC1;比前跌率:=(RC1-C)*100/RC1;ST:=NAMELIKE('ST') OR NAMELIKE('*ST');涨停:= IF(ST, (比前涨率>=涨停率5), (比前涨率>=涨停率10));本日涨率:=(C-O)*100/O;本日跌率:=(O-C)*100/O;STICKLINE((H-RC1)*100/RC1>=涨停率10,H,MAX(C,O),1,0),COLORYELLOW;{涨停后回落}STICKLINE((RC1-L)*100/RC1>=涨停率10,L,MIN(C,O),1,0),COLORBLUE;{跌停后回升}跌停:= IF(NAMELIKE('ST'), (比前跌率>=涨停率5), (比前跌率>=涨停率10));STICKLINE(跌停,O,C,2,0),COLORLIBLUE;大阳线:=C>O AND (比前涨率>=涨停率5 OR 本日涨率>=涨停率5)AND 比前涨率<涨停率10 AND 涨停=0;STICKLINE(大阳线,O,C,1,0),COLORFF99FF;大阴线:=C<O AND (比前跌率>=涨停率5 OR 本日跌率>=涨停率5)AND 比前跌率<涨停率10 AND 跌停=0;STICKLINE(大阴线,O,C,1,0),COLOR006633;{假阴柱}假阴:=C<O AND C>REF(C,1);STICKLINE(假阴,O,C,1,0),COLORRED;{假阳柱}假阳:=C>O AND C<REF(C,1);STICKLINE(假阳,O,C,1,0),COLORGREEN;{涨停}AAAA:=CLOSE/REF(C,1)>=1.09;STICKLINE(AAAA,O,C,1,0),COLORYELLOW;STICKLINE(AAAA,L,H,1,0),COLORYELLOW;{跌停}STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,1,0),COLORBLUE;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄'){,COLORFF00FF},COLORYELLOW;STICKLINE(FILTER102,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER103,LOW*0.986,'↖准黄'),COLORFF00FF{,COLORYELLOW};STICKLINE(FILTER103,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORRED;STICKLINE(FILTER104,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER105,LOW*0.986,'↖次将'),COLORFF00FF{,COLORYELLOW};STICKLINE(FILTER105,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER106,LOW*0.986,'↖准将'),COLORFF00FF{,COLORYELLOW};STICKLINE(FILTER106,OPEN,CLOSE,0.5,0),COLORYELLOW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;DRAWTEXT(立桩量成立,HIGH,'←立柱'),COLORGREEN;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA120:=MA(CLOSE,120);MA240:=MA(CLOSE,240);AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB1 AND CC1;DRAWTEXT(芙蓉出水,H,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,0.1,0),COLORFF00FF;STICKLINE(芙蓉出水,O,C,1.1,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;TM:=V-MA(V,10);一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L,'一穿三'),COLORFF00FF;STICKLINE(一穿三,OPEN,CLOSE,1.1,0),COLORFF00FF;{不会画线可以让显示}{K1:=SUMBARS(FILTER104,1);STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),3,-1),COLORYELLOW;STICKLINE(K1,REF(L,K1-1),REF(L,K1-1),3,-1),COLORGREEN;K2:=SUMBARS(FILTER101,1);STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),3,-1),COLORYELLOW;};【公式直接安装到软件里即可,大家如果觉得好用,请回帖以示支持,鄙人若有更好的公式也将分享给大家】。
通达信《量柱擒涨停》之精华珍藏版配合指标使用
通达信《量柱擒涨停》之精华珍藏版配合指标使用大盘或个股上,我们都可以通过黄金柱,黄金线,黄金梯,黄金仓,黄金劫,和黄金道六大层面复合,相互配对,求证,以便找到最佳买卖点。
那如何找到黄金柱,再找到黄金线,黄金梯,黄金劫,黄金仓,黄金道呢?一:首先要找到黄金柱1、倍量柱+倍量柱=黄金柱----(单独倍量柱的出现不是最明显的,但却是最重要的,后期走势体现了主庄的主动行为,有预谋的,攻击性多余试探性。
此组合后的黄金柱在阶段性底部较好,往往是主庄控盘比较好,急于拉升的一种体现,可做防守线。
如连续三根倍量柱时最好是持币观望,不宜仓促进入)2、倍量柱+缩量柱=黄金柱----(此组合后的黄金柱关键在于缩量柱的优劣,缩量柱最好是三根左右价涨量却要缩的越大越好,其三日收盘价必须保持在倍量柱所对应的K线的最低价上方,且量柱是步步为阳的,K线与量柱形成一个喇叭形为真黄金柱,可做防守线。
)3、低量柱+梯量柱=黄金柱---(如在低量柱杀入后,出现了高量柱,形成明显的梯量柱拉升,这是因为上升的力度太大,速度太急,主力很可能制造打劫,所以在高量柱出现腰即使退出应是最明智的)4、低量柱+倍量柱=黄金柱---(凡是有低量柱的位置,肯定是回升的始点,是培育黄金柱的土壤。
具有休克机制,收集机制,测幅机制,又称停战柱,反攻柱,庄家的成本底线。
此组合是主庄采用|休克疗法探底之后,心中有数的主动拉升行为,是底部与底气相结合的标志,其后市必然大涨。
其单低量柱后期走势多数向上,少数向下。
可做攻防线)5、高量柱+缩量柱=黄金柱---(同上2,另:单独高量柱是最明显的,可能不是最重要的,后期走势多数向下,少数向上。
如有连续两根超级倍量柱递增的高量柱时,此为“发烧柱|”,是主力极力出货的标志。
而我们需要的是连续两根温和梯量柱递增的高量柱是上品启动柱。
可做攻防线。
)6、梯量柱+缩量柱=黄金柱---(单单梯量柱多数情况下后期走向衰竭,少数走向兴旺。
他是卖盘逐步加大所形成的价格逐步抬高,被动增仓的结果,,如与价涨量缩的缩量柱组合,就形成了买盘旺盛而卖盘短缺的走势,后期就又大幅上涨了,应该在高点逢阴即出。
通达信指标公式源码量柱擒涨停+黄金柱+涨停时间窗主图
C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORYELLOW;STICKLINE(涨停,H,L,0,0),COLORYELLOW;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;大阳线:=IF((C-C2)*100/C2>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0); STICKLINE(大阳线,OPEN,CLOSE,-1,0),COLORRED;STICKLINE(大阳线,H,L,0,1),COLORRED;大阴线:=IF((C2-C)*100/C2>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0); STICKLINE(大阴线,OPEN,CLOSE,-1,0),COLORGREEN;STICKLINE(大阴线,H,L,0,1),COLORGREEN;TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10);C1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10);AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10);CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,CIRCLEDOT;前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,CIRCLEDOT;{黄金柱}JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);LJL:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 ANDCLOSE>REF(HIGH,3),1,0)));TP:=TJ2=1;STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),6,0), COLORYELLOW;TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(LJL)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(LJL)=3 ANDCLOSE>REF(LOW,3),1,0)));STFZ:=TJ3=1;CL:=STFZ AND TP;TJCL:=FILTER(CL,3);DRAWTEXT(LJL,L*0.99,'黄'),COLORYELLOW;DRAWTEXT(LJL,L*0.95,'金'),COLORYELLOW;DRAWTEXT(LJL,L*0.90,'柱'),COLORYELLOW;{涨停跟踪}ZT:=C/REF(C,1)>1.097;XH:=FILTER(ZT,13);BH:=BARSLAST(ZT);CZ:=REF(H,BH)-REF(L,BH);STICKLINE(C,(REF(L,BH)+CZ*0.5),(REF(L,BH)+CZ*0.5),7,0),COLORRED; STICKLINE(C,REF(L,BH),REF(L,BH),7,0),COLORBLUE;DRAWTEXT(ZT,L*0.98,'涨停'),COLORF00FF0;VARZT:=BARSLAST(C/REF(C,1)>1.097);STICKLINE(VARZT=2,L*0.97,L*0.98,8,0),COLOR0000FF;DRAWTEXT(VARZT=2,L*0.95,'3天'),COLORYELLOW;STICKLINE(VARZT=4,H*1.03,H*1.02,8,0),COLOR9966FF;DRAWTEXT(VARZT=4,H*1.06,'5天'),COLORYELLOW;STICKLINE(VARZT=7,L*0.97,L*0.98,8,0),COLOR00FFFF;DRAWTEXT(VARZT=7,L*0.95,'8天'),COLORYELLOW;STICKLINE(VARZT=12,H*1.03,H*1.02,8,0),COLORFF33FF;DRAWTEXT(VARZT=12,H*1.06,'13天'),COLORYELLOW;STICKLINE(VARZT=20,L*0.97,L*0.98,8,0),COLOR0066FF;DRAWTEXT(VARZT=20,L*0.95,'21天'),COLORYELLOW;STICKLINE(VARZT=33,H*1.03,H*1.02,8,0),COLOR9932CD;DRAWTEXT(VARZT=33,H*1.06,'34天'),COLORYELLOW; STICKLINE(VARZT=54,L*0.97,L*0.98,8,0),COLOR006600; DRAWTEXT(VARZT=54,L*0.95,'55天'),COLORYELLOW; STICKLINE(VARZT=88,H*1.03,H*1.02,8,0),COLOR00FF00; DRAWTEXT(VARZT=88,H*1.06,'89天'),COLORYELLOW; STICKLINE(VARZT=143,L*0.97,L*0.98,8,0),COLORCCFFFF; DRAWTEXT(VARZT=143,L*0.95,'144天'),COLORYELLOW; STICKLINE(VARZT=232 ,H*1.03,H*1.02,8,0),COLORFF0033; DRAWTEXT(VARZT=232,H*1.06,'233天'),COLORYELLOW; STICKLINE(VARZT=376,L*0.97,L*0.98,8,0),COLORFF9966; DRAWTEXT(VARZT=376,L*0.95,'377天'),COLORYELLOW;。
黄金柱通达信指标公式源码
{阴线战法“大阴实顶”的主图显示}RC1:=REF(C,1);大阴线:=C<0.96*O OR C<=RC1*0.96 OR C>1000 AND C<=RC1*0.98;大阴T:=BARSLAST(FILTER(大阴线,3));{调整显示密度}大阴实顶: REF(O,大阴T),COLORLIGREEN,POINTDOT;{显示大阴K线的开盘价O}; 大阴二一: REF((L+H)/2,大阴T),NODRAW;DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);{在屏幕左上角显示所属行业板块} DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);{在屏幕左上角显示所属地域板块} DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);{在屏幕左上角显示所属概念板块}; AA:=(C-REF(C,1))/REF(C,1)*100;ZS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA>=4.945; DS:=(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S')) AND AA<=-4.945; 涨停价:IF(ZS,REF(C,1)*1.05,REF(C,1)*1.1),NODRAW;跌停价:IF(DS,REF(C,1)*0.95,REF(C,1)*0.9),NODRAW;{元帅主图}比系数:=1.3;金线:=1;临界点:=0;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);均线:=MA5>REF(MA5,1) AND MA10<REF(MA10,1) AND MA20<REF(MA20,1);RV1:=REF(V,1);RV2:=REF(V,2);RV3:=REF(V,3);RC2:=REF(C,2);RC3:=REF(C,3);RC4:=REF(C,4);RO1:=REF(O,1);RO2:=REF(O,2);RO3:=REF(O,3);RO4:=REF(O,4);不破价顶:=C>=RC3 AND RC1>=RC3 AND RC2>=RC3;不破价底:=L>RO3 AND REF(L,1)>RO3 AND REF(L,2)>RO3;均价:=AMOUNT/VOL/100;RJ1:=REF(均价,1);RJ2:=REF(均价,2);阳柱:=C>=O OR (C<O AND 均价>RC1);三日二阳:=COUNT(阳柱,3)>=2;基价柱阳:=RC3>RO3;价渐升:=(均价>=RJ1 OR C>RC1) AND (RJ1>=RJ2 OR RC1>=RC2);均价升:=(C+RC1+RC2)/3>RC3;量渐升:=V>RV1 AND RV1>RV2 ;量渐减:=V<=RV1 AND RV1<=RV2 ;均量减:=(V+RV1+RV2)/3<=RV3 AND NOT(量渐升);日价量比:=C/V;日价量比升:=日价量比>=REF(日价量比,1) AND REF(日价量比,1)>=REF(日价量比,2);均价升幅:=(C+RC1+RC2)/3/RC3;均量升幅:=(V+RV1+RV2)/3/RV3;价量比:=比系数*均价升幅/均量升幅>1;基前跳空:=RO3>RC4 AND RC4>RO4;黄金柱1T:=基价柱阳AND 价渐升AND 量渐减AND 不破价顶AND 不破价底AND 基前跳空;BACKSET101T:=BACKSET(黄金柱1T,5);FILTER101T:=FILTER(BACKSET101T,4);黄金柱1:=基价柱阳AND 价渐升AND 量渐减AND 不破价顶AND 不破价底; BACKSET101:=BACKSET(黄金柱1,4);FILTER101:=FILTER(BACKSET101,3);黄金柱11:=黄金柱1 AND REF(黄金柱1,1);BACKSET1011:=BACKSET(黄金柱11,4);FILTER1011:=FILTER(BACKSET1011,3);黄金柱12:=黄金柱1 AND REF(黄金柱1,2);BACKSET1012:=BACKSET(黄金柱12,4);FILTER1012:=FILTER(BACKSET1012,3);黄金柱13:=黄金柱1 AND REF(黄金柱1,3);BACKSET1013:=BACKSET(黄金柱13,4);FILTER1013:=FILTER(BACKSET1013,3);黄金柱2T:=基价柱阳AND 价渐升AND 均量减AND NOT(量渐升) AND 不破价顶AND 不破价底AND 基前跳空AND NOT(黄金柱1) AND NOT(黄金柱1T);BACKSET201T:=BACKSET(黄金柱2T,5);FILTER201T:=FILTER(BACKSET201T,4);黄金柱2:=基价柱阳AND 价渐升AND 均量减AND NOT(量渐升) AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱1T);BACKSET201:=BACKSET(黄金柱2,4);FILTER201:=FILTER(BACKSET201,3);黄金柱21:=黄金柱2 AND REF(黄金柱2,1);BACKSET2011:=BACKSET(黄金柱21,4);FILTER2011:=FILTER(BACKSET2011,3);黄金柱22:=黄金柱2 AND REF(黄金柱2,2);BACKSET2012:=BACKSET(黄金柱22,4);FILTER2012:=FILTER(BACKSET2012,3);黄金柱23:=黄金柱2 AND REF(黄金柱2,3);BACKSET2013:=BACKSET(黄金柱23,4);FILTER2013:=FILTER(BACKSET2013,3);黄金柱3T:=基价柱阳AND 均价升AND 量渐减AND 不破价顶AND 不破价底AND 基前跳空AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T);BACKSET301T:=BACKSET(黄金柱3T,5);FILTER301T:=FILTER(BACKSET301T,4);黄金柱3:=基价柱阳AND 均价升AND 量渐减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱1T) AND NOT(黄金柱2T); BACKSET301:=BACKSET(黄金柱3,4);FILTER301:=FILTER(BACKSET301,3);黄金柱31:=黄金柱3 AND REF(黄金柱3,1);BACKSET3011:=BACKSET(黄金柱31,4);FILTER3011:=FILTER(BACKSET3011,3);黄金柱32:=黄金柱3 AND REF(黄金柱3,2);BACKSET3012:=BACKSET(黄金柱32,4);FILTER3012:=FILTER(BACKSET3012,3);黄金柱33:=黄金柱3 AND REF(黄金柱3,3);BACKSET3013:=BACKSET(黄金柱33,4);FILTER3013:=FILTER(BACKSET3013,3);黄金柱4T:=基价柱阳AND 均价升AND 均量减AND 不破价顶AND 不破价底AND 基前跳空AND NOT(黄金柱1) AND NOT(黄金柱1T) AND NOT(黄金柱2) AND NOT(黄金柱2T) AND NOT(黄金柱3) AND NOT(黄金柱3T);BACKSET401T:=BACKSET(黄金柱4T,5);FILTER401T:=FILTER(BACKSET401T,4);黄金柱4:=基价柱阳AND 均价升AND 均量减AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T);BACKSET401:=BACKSET(黄金柱4,4);FILTER401:=FILTER(BACKSET401,3);黄金柱41:=黄金柱4 AND REF(黄金柱4,1);BACKSET4011:=BACKSET(黄金柱41,4);FILTER4011:=FILTER(BACKSET4011,3);黄金柱42:=黄金柱4 AND REF(黄金柱4,2);BACKSET4012:=BACKSET(黄金柱42,4);FILTER4012:=FILTER(BACKSET4012,3);黄金柱43:=黄金柱4 AND REF(黄金柱4,3);BACKSET4013:=BACKSET(黄金柱43,4);FILTER4013:=FILTER(BACKSET4013,3);黄金柱5T:=基价柱阳AND 均价升AND 价量比AND 不破价顶AND 不破价底AND 基前跳空AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T); BACKSET501T:=BACKSET(黄金柱5T,5);FILTER501T:=FILTER(BACKSET501T,4);黄金柱5:=基价柱阳AND 均价升AND 价量比AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T);BACKSET501:=BACKSET(黄金柱5,4);FILTER501:=FILTER(BACKSET501,3);黄金柱51:=黄金柱5 AND REF(黄金柱5,1);BACKSET5011:=BACKSET(黄金柱51,4);FILTER5011:=FILTER(BACKSET5011,3);黄金柱52:=黄金柱5 AND REF(黄金柱5,2);BACKSET5012:=BACKSET(黄金柱52,4);FILTER5012:=FILTER(BACKSET5012,3);黄金柱53:=黄金柱5 AND REF(黄金柱5,3);BACKSET5013:=BACKSET(黄金柱53,4);FILTER5013:=FILTER(BACKSET5013,3);黄金柱6T:=基价柱阳AND 均价升AND 日价量比升AND 不破价顶AND 不破价底AND 基前跳空AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601T:=BACKSET(黄金柱6T,5);FILTER601T:=FILTER(BACKSET601T,4);黄金柱6:=基价柱阳AND 均价升AND 日价量比升AND 不破价顶AND 不破价底AND NOT(黄金柱1) AND NOT(黄金柱2) AND NOT(黄金柱3) AND NOT(黄金柱4) AND NOT(黄金柱5) AND NOT(黄金柱1T) AND NOT(黄金柱2T) AND NOT(黄金柱3T) AND NOT(黄金柱4T) AND NOT(黄金柱5T);BACKSET601:=BACKSET(黄金柱6,4);FILTER601:=FILTER(BACKSET601,3);黄金柱61:=黄金柱6 AND REF(黄金柱6,1);BACKSET6011:=BACKSET(黄金柱61,4);FILTER6011:=FILTER(BACKSET6011,3);黄金柱62:=黄金柱6 AND REF(黄金柱6,2);BACKSET6012:=BACKSET(黄金柱62,4);FILTER6012:=FILTER(BACKSET6012,3);黄金柱63:=黄金柱6 AND REF(黄金柱6,3);BACKSET6013:=BACKSET(黄金柱63,4);FILTER6013:=FILTER(BACKSET6013,3);FIL1:=(FILTER101 AND NOT(REF(FILTER101,4))) OR (FILTER1011 AND NOT(REF(FILTER1011,4))) OR (FILTER1012 AND NOT(REF(FILTER1012,4))) OR (FILTER1013 AND NOT(REF(FILTER1013,4)));FIL2:=(FILTER201 AND NOT(REF(FILTER201,4))) OR (FILTER2011 ANDNOT(REF(FILTER2011,4))) OR (FILTER2012 AND NOT(REF(FILTER2012,4))) OR (FILTER2013 AND NOT(REF(FILTER2013,4)));FIL3:=(FILTER301 AND NOT(REF(FILTER301,4))) OR (FILTER3011 AND NOT(REF(FILTER3011,4))) OR (FILTER3012 AND NOT(REF(FILTER3012,4))) OR (FILTER3013 AND NOT(REF(FILTER3013,4)));FIL4:=(FILTER401 AND NOT(REF(FILTER401,4))) OR (FILTER4011 AND NOT(REF(FILTER4011,4))) OR (FILTER4012 AND NOT(REF(FILTER4012,4))) OR (FILTER4013 AND NOT(REF(FILTER4013,4)));FIL5:=(FILTER501 AND NOT(REF(FILTER501,4))) OR (FILTER5011 AND NOT(REF(FILTER5011,4))) OR (FILTER5012 AND NOT(REF(FILTER5012,4))) OR (FILTER5013 AND NOT(REF(FILTER5013,4)));FIL6:=(FILTER601 AND NOT(REF(FILTER601,4))) OR (FILTER6011 AND NOT(REF(FILTER6011,4))) OR (FILTER6012 AND NOT(REF(FILTER6012,4))) OR (FILTER6013 AND NOT(REF(FILTER6013,4)));FIL:=FIL1 OR FIL2 OR FIL3 OR FIL4 OR FIL5 OR FIL6;STICKLINE(FIL AND NOT(REF(FIL,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT (FIL AND NOT(REF(FIL,4)),LOW*0.986,'↖黄金柱'),COLOR0099FF;K1:=SUMBARS(FIL,1);STICKLINE(K1 AND 金线=1,REF(C,K1-1),REF(C,K1-1),10,0),COLOR8822FF;FIL1T:=(FILTER101T AND NOT(REF(FILTER101T,5)));FIL2T:=(FILTER201T AND NOT(REF(FILTER201T,5)));FIL3T:=(FILTER301T AND NOT(REF(FILTER301T,5)));FIL4T:=(FILTER401T AND NOT(REF(FILTER401T,5)));FIL5T:=(FILTER501T AND NOT(REF(FILTER501T,5)));FIL6T:=(FILTER601T AND NOT(REF(FILTER601T,5)));FILT:=FIL1T OR FIL2T OR FIL3T OR FIL4T OR FIL5T OR FIL6T;STICKLINE(FILT AND NOT(REF(FILT,5)),OPEN,CLOSE,3,0),COLOR0000FF; DRAWTEXT (FILT AND NOT(REF(FILT,5)),LOW*0.978,'↖元帅柱'),COLOR0000FF;K2:=SUMBARS(FILT,1);STICKLINE(K2 AND 金线=1,REF(C,K2-1),REF(C,K2-1),10,0),COLOR8822FF;黄金柱LJ:=(黄金柱1 OR 黄金柱2 OR 黄金柱3 OR 黄金柱4 OR 黄金柱5 OR 黄金柱6 ) AND 均线AND 临界点;BACKSET10LJ:=BACKSET(黄金柱LJ ,4);FILTER10LJ:=FILTER(BACKSET10LJ,3);STICKLINE(FILTER10LJ AND NOT(REF(FILTER10LJ,4)),OPEN,CLOSE,3,0),COLOR0099FF; DRAWTEXT(FILTER10LJ AND NOT(REF(FILTER10LJ,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;黄金柱LJT:=(黄金柱1T OR 黄金柱2T OR 黄金柱3T OR 黄金柱4T OR 黄金柱5T OR 黄金柱6T) AND 均线AND 临界点;BACKSET10LJT:=BACKSET(黄金柱LJT ,5);FILTER10LJT:=FILTER(BACKSET10LJT,5);STICKLINE(FILTER10LJT AND NOT(REF(FILTER10LJT,4)),OPEN,CLOSE,3,0),COLOR0099FF;DRAWTEXT(FILTER10LJT AND NOT(REF(FILTER10LJT,4)) ,LOW*0.958,'↖临界点'),COLOR0099FF;{}{};C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(涨停,OPEN,CLOSE,2,0),COLORFF00FF; STICKLINE(涨停,H,L,0,0),COLORFF00FF;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN; STICKLINE(跌停,H,L,0,1),COLORGREEN;N:=10;。
通达信量柱指标
通达信量柱指标通达信量柱指标概述通达信量柱指标是一种技术分析工具,用于衡量股票或其他交易品种的成交量变化情况。
该指标可以帮助投资者了解市场的交易情况,并根据成交量变化的趋势做出相应的投资决策。
原理通达信量柱指标是通过计算每个交易日的成交量与前一日成交量之间的差值来确定的。
如果当天的成交量大于前一天,则该差值为正数,反之则为负数。
这些差值被绘制为红色和绿色条形图,称为“阳线”和“阴线”,分别代表成交量增加和减少。
应用1. 识别市场趋势:通达信量柱指标可以帮助投资者识别市场趋势。
当红色阳线数量增加时,意味着市场上升趋势加强;而当绿色阴线数量增加时,意味着市场下降趋势加强。
2. 确定支撑和阻力位:通达信量柱指标也可以用来确定支撑和阻力位。
支撑位是在价格下跌时,成交量增加并导致价格反弹的价格点。
阻力位则是在价格上涨时,成交量增加并导致价格下跌的价格点。
3. 确定买卖信号:通达信量柱指标还可以用来确定买卖信号。
当红色阳线数量增加时,意味着市场上升趋势加强,投资者可以考虑买入;而当绿色阴线数量增加时,意味着市场下降趋势加强,投资者可以考虑卖出。
使用方法通达信量柱指标可以在通达信软件中找到。
首先,在通达信软件中打开要分析的股票或其他交易品种的K线图,然后点击“技术指标”按钮,在弹出的窗口中选择“成交量”指标。
在“成交量”指标下拉菜单中选择“量柱”,即可显示出通达信量柱指标。
总结通达信量柱指标是一种简单而有效的技术分析工具,可以帮助投资者了解市场趋势、确定支撑和阻力位以及确定买卖信号。
投资者应该根据自己的风险承受能力和投资目标来灵活运用该指标,并结合其他技术分析工具进行综合分析。
黄金柱主图指标通达信指标公式源码
所属板块:=STRCAT('所属板块: ',STRCAT(STRCAT(STRCAT('[行业]-',HYBLOCK),STRCAT(' [地域]-',DYBLOCK)),STRCAT(' [概念]-',GNBLOCK))); 总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿'); {主图显示} DRAWTEXT_FIX(ISLASTBAR,0.555,0.03,0,所属板块),COLORYELLOW; PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3), IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3), IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3)))); {画量柱标识:} {1.画倍量黄金柱标识} 倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,17); {2.画梯量黄金柱标识} 梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17); {3.画平量黄金柱标识} 平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) AND REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19); 倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26); STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW; 倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,28,0),COLORMAGENTA,LINETHICK5; DRAWICON(倍量黄金柱,PHD*1.008,12); DRAWTEXT(倍量黄金柱,PHD*1.008,'倍量黄金线'),COLORMAGENTA; HJZ:=(3*C+H+L+O)/6;HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ, 5)+2*REF(HJZ,6)+REF(HJZ,8))/36; HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O; 黄金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4,NODRAW; STICKLINE(黄金柱,O,C,3.3,0),COLORRED; STICKLINE(黄金柱,H,L,0.1,0),COLORRED; DRAWTEXT(黄金柱,H*0.98,'←黄金柱'),COLORYELLOW; XG:=SUMBARS(FILTER(黄金柱,2),1);STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN;XG1:=SUMBARS(FILTER(黄金柱,2),1); STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF; 平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW; DRAWTEXT(平量黄金柱,PHD*1.015,'←平量黄金线'),COLORFFCC00 ; 梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,28,0),COLORYELLOW; DRAWTEXT(梯量黄金柱,PHD*1.015,'←梯量黄金线'),COLORCYAN ;。
通达信倍量黄金柱公式和135指标
通达信倍量黄金柱公式和135指标功能-专家系统-公式管理器-成交量型-新建-公式名称:VOL_2V-公式描述:倍量黄金柱-将下面内容复制到中间编辑区-确定-在K线图选择指标:成交量型-VOL_2V倍量黄金柱OK! 你看看是什么效果?提示说明:黄色柱是倍量柱,绿色柱是13日内的低量柱,洋红色为55日内的低量柱,红色实心柱左边的黄色柱就是: 倍量柱+三天价涨量缩=真黄金柱VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;VOLUME:VOL,VOLSTICK;AA:=VOL>REF(V,1)*1.9;AA1:=VOL<ref(llv(vol,13),1);AA2:=VOL<ref(llv(vol,55),1);STICKLINE(AA,0,V,1,0),COLORYELLOW;STICKLINE(AA1,0,V,1,0),COLORGREEN;STICKLINE(AA2,0,V,1,0),COLORMAGENTA;TJ1:=COUNT(V>REF(V,1)*1.9,4)=1;TJ2:=COUNT(VMIN(L,4) AND L>REF(L,1),3)=3 ;TJ3:=TJ1 AND TJ2;STICKLINE(TJ3,0,V,1,0),COLORRED;MV2:MA(V,2);MV6:MA(V,6);MV20:MA(V,20);以下是一个135指标公式MA13:MA(CLOSE,13),COLORRED;MA34:MA(CLOSE,34),COLORWHITE;MA55:MA(CLOSE,55),COLORBLUE;Y:=(MA(C,13)-MA(C,55))/MA(C,13)*100;{135均线战法}YY1:=C>MA(C,13) AND OPEN<ma(c,13);{一阳三线}YY3:=C>MA(C,34) AND OPEN<ma(c,34);YY5:=C>MA(C,55) AND OPEN<ma(c,55);DRAWTEXT(YY1 AND YY5 AND YY3,LOW-0.3,'一阳三线'),COLORRED;DRAWICON(YY1 AND YY5 AND YY3,LOW-0.4,5);SJ1:=ABS(MA(CLOSE,13)-MA(CLOSE,34))<c*0.01;{13线34线55线接近}SJ2:=ABS(MA(CLOSE,34)-MA(CLOSE,55))<c*0.01;SJ3:=CROSS(MA(CLOSE,13),MA(CLOSE,55));{13线上穿55线} DRAWTEXT(SJ1 AND SJ2 AND SJ3,LOW-0.3,'三军集合'),COLORRED;DRAWICON(SJ1 AND SJ2 AND SJ3,LOW-0.4,5);RY1:=C/OPEN>1.04;{阳线4%}RY2:=REF(OPEN,1)/REF(CLOSE,1)>1.04;{阴线4%}RY3:=ABS(OPEN-REF(C,1))<c*0.02;{两线相等}DRAWTEXT(RY1 AND RY2 AND RY3 ,LOW-0.3,'日月合璧'),COLORRED;DRAWICON(RY1 AND RY2 AND RY3,LOW-0.4,5);HK1:=CROSS(MA(C,13),MA(C,55));{13线上穿55线}HK2:=C<o;{当日收阴}HK3:=ABS(L-MA(C,13))<c*0.04;{收盘价或最低价在13线} HK:=HK1 AND HK2 AND HK3;DRAWTEXT(HK,HIGH+0.3,'黑客点击'),COLORBLUE; DRAWICON(HK,HIGH+0.4,4);JG1:=ABS(MA(C,13)-MA(C,34))<c*0.02;JG2:=O>MA(C,13) OR O=MA(C,13);JG3:=C/OPEN>1.03 ; {阳线3%}JG:=JG1 AND JG2 AND JG3;DRAWTEXT(JG,LOW-0.3,'揭竿而起'),COLORRED; DRAWICON(JG,LOW-0.4,5);HY1:=CROSS(MA(C,13),MA(C,55));{13线上穿55线} HY2:=OPEN1.02; {阳线3%}HY3:=ABS(OPEN-MA(C,13))<c*0.05;{开盘在13线附近} HY:=HY1 AND HY2 AND HY3;DRAWTEXT(HY,LOW-0.3,'红衣侠女'),COLORRED; DRAWICON(HY,LOW-0.4,5);JW1:=C<ref(open,1);JW2:=OPENREF(L,1);JW3:=O<ma(c,55);JW:=JW1 AND JW2 AND JW3;DRAWTEXT(JW,LOW-1.2,'金屋藏娇'),COLORRED; DRAWICON(JW,LOW-1.2,5);TS1:=CROSS(MA(C,13),MA(C,34));{13线上穿</c*0.05;{开盘在13线附近}</o;{当日收阴}</c*0.01;</c*0.01;{13线34线55线接近}</ma(c,55);</ma(c,34);</ma(c,13);{一阳三线}</ref(llv(vol,55),1);</ref(llv(vol,13),1);33线}TS2:=MA(C,13)<ma(c,55);TS:=TS1 AND TS2;DRAWTEXT(TS,LOW-0.3,'投石问路'),COLORRED;DRAWICON(TS,LOW-0.4,5);MK1:=MA(C,13)>MA(C,55) AND MA(C,34)>MA(C,55);MK:=TS1 AND MK1;DRAWTEXT(MK,H+0.3,'梅开二度'),COLORBLUE;DRAWICON(MK,HIGH+0.4,4);YZ1:=C/O>1.02 AND H/C>1.02 AND O/L<1.02;{收阳有上影} YZ2:=REF(C,1)>REF(O,1) AND O>MA(C,13);{昨收阳今大于均线}YZ:=YZ1 AND YZ2 AND Y>10;DRAWTEXT(YZ,HIGH+0.3,'一枝独秀'),COLORBLUE;DRAWICON(YZ,HIGH+0.4,4);DS1:=OPEN/C>1.04 AND O/REF(C,1)>1.03;{高开收阴}DS2:=V*100/FINANCE(7)>0.08 AND Y>8;{换手高涨幅大}DS:=DS1 AND DS2;DRAWTEXT(DS,HIGH+0.3,'独上高楼'),COLORGREEN;DRAWICON(DS,HIGH+0.4,6);YJ1:=H/O>1.04;YJ2:=ABS(C-O)<c*0.03;YJ3:=C/MA(C,11)>1.1;YJ:=YJ1 AND YJ2 AND DS2 AND YJ3 AND YZ2; DRAWTEXT(YJ,HIGH+0.3,'一剑封喉'),COLORGREEN; DRAWICON(YJ,HIGH+0.4,6);PC:=C<ma(c,13);PO:=O>MA(C,13);DRAWTEXT(PC AND PO,HIGH+0.3,'S'),COLORGREEN; DRAWICON(PC AND PO,HIGH+0.4,6);CC:=C>MA(C,13);CO:=O<ma(c,13);DRAWTEXT(CC AND CO,LOW-0.3,'B'),COLORRED; DRAWICON(CC AND CO,LOW-0.4,5);DRAWTEXT(Y>10,HIGH+0.3,'GS'),COLORGREEN;</ma(c,13);</ma(c,13);</c*0.03;</ma(c,55);上一页下一页。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
V1:=VOL*0.95;{图标位置}
V2:=VOL*0.85;
STICW;
STICKLINE(平量,0,V1,1,0),COLORWHITE;
平量: RANGE(V/REF(V,1),0.97,1.03) AND BARSCOUNT(V)>=2,COLORWHITE,NODRAW;
低量10: VOL=LLV(VOL,绿低量) AND BARSCOUNT(V)>=绿低量,COLORGREEN,NODRAW;
低量50: VOL=LLV(VOL,蓝低量) AND BARSCOUNT(V)>=蓝低量,COLORBLUE,NODRAW;
真阳或假阴:=C>O OR C>REF(C,1);
收阳:= REF(真阳或假阴,3);
倍量1:=REF(倍量,3);
高量:=REF(V,3)>=HHV(V,7){原为HHV(V,7)};
三日不破:= LLV(C,3)>=REF(L,3);
{价升:=COUNT(C>=REF(C,1),3)=3;}{收盘价逐升原指标}
V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)>=100;
百日地量群:=COUNT(V100,5)>=3;
DRAWTEXT(FILTER(百日地量群,4),V+3*H_L,'地量群'),COLORGRAY;
长阴短柱:=C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9;
几倍: V/REF(V,1),COLORYELLOW,NODRAW;
倍数:=1.9;
倍量: VOL>=REF(V,1)*倍数 AND (IF(C<O,C>REF(C,1),1)),COLORYELLOW,NODRAW;
倍缩: REF(V,1)>=VOL*倍数,COLORMAGENTA,NODRAW;
DRAWTEXT(长阴短柱 ,V+1.6*H_L,'!'),COLORLICYAN;
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);{模拟量}
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,1,-1),COLOR00C0C0;
量:VOL,VOLSTICK,COLORLIGRAY;
价升:=LLV(C,3)>REF(L,3);
{量缩:=COUNT(V<=REF(V,1),3)=3;}{原指标}
量缩:=HHV(V,4)=REF(V,3);
连阳:= COUNT(真阳或假阴,3)=3;
阳线:=REF(C,3)>REF(O,3);
倍量将军柱:= 倍量1 AND 三日不破 AND 收阳;
绿低量:=10;
蓝低量:=50;
灰低量:=100;
H_L:=0.1*CONST(HHV(VOL,240));
{MAV10:MA(V,10),COLORYELLOW;}
异动135:MA(V,135),COLORMAGENTA;
洗盘40:MA(V,40),COLORBLUE;
启动5:MA(V,5),COLORWHITE;
{VOL_量柱}
{看图说明:黄色为倍量柱,白色为并肩平量柱,紫色为缩倍柱,
绿色为10天低量柱,蓝色为50天低量柱,灰色为百日低量柱,
高量柱容易看无标记,!为长阴短柱, 内有红实线为假阴柱。
红色箭头(的前三天)为黄金柱。次黄金柱难判,不标记}
{=====================================================}
换手: VOL*10000/FINANCE(7),NODRAW,COLORGREEN; {DYNAINFO(37)*100}
全换手周期: SUMBARS(V,CAPITAL),NODRAW,COLORLIGREEN;{求完全换手到现在的周期数}
量比: V/REF(MA(V,5),1),COLORBROWN,NODRAW;
高量将军柱:= 高量 AND 三日不破 AND 收阳;
将军柱:= 倍量将军柱 OR 高量将军柱;
黄金柱:= 将军柱 AND 价升 AND 量缩 AND 阳线 ;{标准黄金柱}
STICKLINE(黄金柱,0.3*V,0.7*V,1,0),COLORRED; {红柱}
DRAWICON(黄金柱,V*1.5,1);
STICKLINE(低量10,0,V2,1,0),COLORBLACK;
STICKLINE(低量50,0,V2,1,0),COLORBLUE;
STICKLINE(地量,0,V2,1,0),COLORGRAY;
STICKLINE(倍缩,0,V*0.45,1,0),COLORMAGENTA;
STICKLINE(C<O AND C>REF(C,1),0,V1,0,0),COLORRED;{假阴柱}