黄金柱 支撑线通达信指标公式源码

合集下载

通达信智能黄金线主图指标公式

通达信智能黄金线主图指标公式

通达信智能黄金线主图指标公式MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);{明日均线:=REF(C,2)*2-REF(C,5),LINETHICK0,COLOR550055 ;后日均线:=REF(C,1)*2-REF(C,4),LINETHICK0,COLOR008800;大后天均线:=C*2-REF(C,3),LINETHICK0,COLOR008888;}KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:= - 100 * (趋势线 - CLOSE) / 趋势线;AC:=(EMA(AA,5) );SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MMV;{STICKLINE(((SSL > MM) ),SSL,MM,0.1,0),COLORRED;}SA:=(MM * 0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));捞钱手:IF(((SSL > MM)),MM,SA),LINETHICK2,COLORWHITE;VAR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);VAR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);VAR4Y:=REF(CLOSE,1);VAR5Y:=((SMA(MAX((CLOSE - VAR4Y),0),6,1) / SMA(ABS((CLOSE - VAR4Y)),6,1)) * 100);VAR6Y:=((SMA(MAX((CLOSE - VAR4Y),0),12,1) / SMA(ABS((CLOSE - VAR4Y)),12,1)) * 100);VAR7Y:=((SMA(MAX((CLOSE - VAR4Y),0),24,1) / SMA(ABS((CLOSE - VAR4Y)),24,1)) * 100);VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);VAR9Y:=SMA(VAR8Y,3,1);VARAY:=SMA(VAR9Y,3,1);VARBY:=((3 * VAR9Y) - (2 * VARAY));VARCY:=(CROSS(VAR5Y,10) AND (VAR3Y < (0 - (28 * 20))));VARDY:=((100 - CROSS(76,VAR5Y)) AND (VAR3Y > (5 * 20)));DRAWICON(((CROSS(76,VAR5Y) AND (VAR3Y > 5)) ),(HIGH * 1.01),5),COLORFFFFFF;VAREY:=((((CROSS(VAR9Y,VARAY) AND (VARAY < 10)) AND (VAR3Y < (0 - 30))) AND (VAR2Y > 3)) * 30);VARFY:= - ((((VARAY < 11) AND (VAR5Y < 15)) AND (VAR3Y < (0 - 26))) * 10);DRAWICON((CROSS(VARFY,(0 - 9))),(LOW * 0.998),4);能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) * 4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);B:REF(A,1),POINTDOT,COLORYELLOW;智能黄金线:A,COLORYELLOW,LINETHICK1;VA1:=EMA(上收,8);VA2:=EMA(上收,20);DRAWTEXT(CROSS(VA2,VA1),VA1*1.10,'止损'),COLORYELLOW;DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.96,'买入'),COLOR00FF00;选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T1;T3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,箱底,'★'),COLORF00F F0;DRAWTEXT(CROSS(VAR4,VAR3) AND VAR4>75 ,箱顶*1.03,'减磅'),COLORF0F000;VAR111:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE :=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARF :=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);{股旁网-股票公式网站 }VAR10 :=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 ORVAR16 OR VAR17 OR VAR18,1) AND VAR1;趋势线1:=FORCAST(CLOSE,7);FK:=100*(C-REF(C,1))/REF(C,1);PK1:=IF(C<REF(O,1) AND FK<0,1,0);PK2:=IF(C<REF(O,2) AND FK<0,1,0);STICKLINE((PK1=0 AND REF(PK1,1)=1 AND PK2=0 AND REF(PK2,1)=1)AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),OPEN,CLOSE,3,0),COLORRED;STICKLINE((PK1=0 AND REF(PK1,1)=1 AND PK2=0 ANDREF(PK2,1)=1)AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;PK3:=(((CLOSE / OPEN) > 1.04) AND (CLOSE <(SMA(HIGH,21,2) * 1.05))) AND ((CLOSE - REF(CLOSE,1)) > 0);STICKLINE(PK3 AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;STICKLINE(PK3 AND(趋势线1>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;STICKLINE(VAR19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORRED;STICKLINE(VAR19 AND(趋势线>REF(趋势线1,1)OR 智能黄金线>REF(智能黄金线,1)),H,L,0.5,0),COLORRED;买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);STICKLINE(买进条件AND 捞钱手>智能黄金线AND 智能黄金线>REF(智能黄金线,1),L,L*0.998,7,0),COLORWHITE;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),箱底,'★'),COLOR00FFFF;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;STICKLINE(CROSS(买线,卖线),H,L,0.5,0),COLOR00FFFF;。

通达信黄金柱主图公式源码

通达信黄金柱主图公式源码

通达信黄金柱主图公式源码M1:=5;M2:=10;M3:=20;M4:=30;M5:=60;M6:=120;M7:=240;MA5攻击线:EMA(CLOSE,5),LINETHICK1,COLORFFFFFF;MA10操盘线:EMA(CLOSE,10),LINETHICK2,COLOR00FFFF;MA20月线:EMA(CLOSE,20),LINETHICK2,COLORFF00FF;MA30生命线:EMA(CLOSE,M4),LINETHICK2,COLORFF6600;MA60决策线:EMA(CLOSE,M5),LINETHICK1,COLOR009933;MA120趋势线:EMA(CLOSE,M6),COLOR006699,LINETHICK1;MA240年线:EMA(CLOSE,M7),COLOR002299,LINETHICK1;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);AA11:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB11:=REF(COUNT(C<MA60,AA11)=AA11,1);CC11:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB11 AND CC11;DRAWTEXT(芙蓉出水,H,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,0.1,0),COLORFF00FF;STICKLINE(芙蓉出水,O,C,1.1,1),LINETHICK1,COLORFF00FF;ZJ:=AMOUNT/10000;TM:=V-MA(V,10);一穿三:=MA5>O AND MA10>O AND MA30>O AND MA5<C AND MA10<C AND MA30<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L,'◆一穿三'),COLORFFFFFF;STICKLINE(一穿三,OPEN,CLOSE,5,0),COLORCC0066;三日不破:=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);立桩量:=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 立桩量;{重绘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,1,0),COLORLIBLUE;大阳线:=C>O AND (比前涨率>=涨停率5 OR 本日涨率>=涨停率5)AND 比前涨率<涨停率10 AND 涨停=0;STICKLINE(大阳线,O,C,0.5,0),COLORFF99FF;大阴线:=C<O AND (比前跌率>=涨停率5 OR 本日跌率>=涨停率5)AND 比前跌率<涨停率10 AND 跌停=0;STICKLINE(大阴线,O,C,1,0),COLOR009933;{假阴柱}假阴:=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(立桩量成立,HIGH,'←立柱'),COLORGREEN;DRAWTEXT(FILTER101,LOW,'↖黄金柱'),COLORYELLOW;STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER104,LOW,'↖将军柱'),COLORRED;STICKLINE(FILTER104,OPEN,CLOSE,0.1,1),COLORYELLOW;{设立参数:百分比(2,20,5), 右数峰序(2,20,2)}{ZIG(3,5);}百分比:=5;右数峰序:=2;波谷值: CONST(TROUGH(2,百分比,1)),NODRAW;波谷距离:= 1+CONST(TROUGHBARS(2,百分比,1)),NODRAW;波峰值:= CONST(PEAK(1,百分比,右数峰序));允许误差:=0.024;XG:= ABS(波峰值-波谷值)<=允许误差{AND BARSCOUNT(V)>60};波峰距离:= 1+CONST(PEAKBARS(1,百分比,右数峰序)),NODRAW;距离:=CURRBARSCOUNT;DRAWLINE(距离=波峰距离AND XG,波谷值,距离=1,波谷值,-1),COLORFF0099;DRAWTEXT(距离=波谷距离AND XG,L,' ↖精准峰谷线'),COLORFF0099;DRAWICON(距离=波峰距离,H,2);{波峰位置}DRAWICON(距离=波谷距离,L,1);{波谷位置}精准点:=(ABS(H-波谷值)<=允许误差OR ABS(L-波谷值)<=0.024) {AND 距离<=120};STICKLINE(精准点,波谷值,波谷值,40,-1),COLORFF6600;{画精准谷底线}波谷值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 AND XG3)OR (距离=波谷距离4 AND XG4);DRAWLINE(XGL,波谷值,距离=1,波谷值,-1),COLORFFFF33;DRAWTEXT(XGL,L,' -------↖精准谷底线'),COLORFFFF33;{精准线WEN98的}N110:=3;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 OR L4 OR L5;精准左:=FILTER(精准线首次,N110) ;天数:=BARSLAST(精准左);LTS:=REF(L,天数);精准右:=ABS(L-LTS)<=L0;STICKLINE(精准左,L,L,30,-1),COLORMAGENTA;{顶精准线}G1:=ABS(H-REF(H,1))<=L0;G2:=ABS(H-REF(H,2))<=L0;G3:=ABS(H-REF(H,3))<=L0;G4:=ABS(H-REF(H,4))<=L0;G5:=ABS(H-REF(H,5))<=L0;精准线首次1:=G1 OR G2 OR G3 OR G4 OR G5;精准左1:=FILTER(精准线首次1,N110) ;天数1:=BARSLAST(精准左1);HTS:=REF(H,天数1);精准右1:=ABS(H-HTS)<=L0;STICKLINE(精准左1,H,H,30,-1),COLOR00FF00;{必杀线}N:=10;T1:=CONST(LLVBARS(LOW,N));T1HIGH:=CONST(REF(HIGH,T1));CC:=CONST(CURRBARSCOUNT);T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1)) AND (HIGH>T1HIGH)));T2HIGH:=CONST(REF(HIGH,T2));T3:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND (HIGH>T2HIGH)));T3HIGH:=CONST(REF(HIGH,T3));必杀线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK5,COLOR0000FF;杀线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK1,COLOR00FFFF;DRAWTEXT(ISLASTBAR, T3HIGH, ' 必杀线')LINETHICK1,COLOR002299;。

通达信公式指标源码量柱量线主图.doc

通达信公式指标源码量柱量线主图.doc

量柱量线主图(主图公式源码贴图)DING:=MAX(O,C);{实顶}DI:=MIN(O,C);{实底}YANG:=(DI>=REF(DING Z1)) OR (C>0 AND NOT(DING<=REF(DI,1))) OR(C>REF(C,1) AND C=0) OR (C=REF(C,1) AND C=O AND REF(DING Z1)=C);{K 线}YIN:=N OT(YANG);{YIN:=(C<0 AND NOT(DI>=REF(DING,1))) OR (C>0 AND DING< = REF(DI,1)) OR (CvREF(C,l) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DI,1)=C);{|^ 线}}YANGSHENG:YANG AND C> = REF(DING,BARSLAST(YIN)) AND(V>REF(V Z BARSLAST(YIN)) OR(BETWEEN(V,REF(V,BARSLAST(YIN))*0.95,REF(V z BARSLAST(YIN))*1.05))),N ODRAW;■1LIANGJIABI:V/C,NODRAW;MALIANGJIABI:MA(LIANGJIABI,3)Z NODRAW;LIANGJIABIXISHU:=1.5;BLZ:=V>REF(V,1)*1.5;PLZ:=BETWEEN(V,REF(V z l)*0.95z REF(V,l)*1.05) ORBETWEEN(V,REFX(V,l)*0.95,REFX(V z l)*1.05) OR(BETWEEN(V z REF(V,2)*0.95,REF(V,2)*1.05) AND V>REF(V,1)*1.2) OR (BETWEEN(V z REF(V z3)*0.95z REF(V z3)*1.05) AND V>REF(MA(V,2),1)*1.2 AND V>REF(HHV(V Z2),1)) OR(BETWEEN(V z REF(V,4)*0.95,REF(V,4)*1.05) AND V>REF(MA(V,3),1)*1.2 AND V>REF(HHV(V Z3)Z1)) OR(BETWEEN(V z REF(V,5)*0.95,REF(V,5)*1.05) AND V>REF(MA(V Z4)Z1)*1.2 AND V>REF(HHV(V,4),1)) OR(BETWEEN(V,REF(V/6)*0.95,REF(V,6)*1.05) AND V>REF(MA(V,5),1)*1.2 AND V>REF(HHV(V Z5),1)) OR(BETWEEN(V z REF(V,7)*0.95z REF(V,7)*1.05) AND V>REF(MA(V Z6),1)*1.2 AND V>REF(HHV(V,6)Z1)) OR(BETWEEN(V z REF(V z8)*0.95z REF(V,8)*1.05) AND V>REF(MA(V,7),1)*1.2 AND V>REF(HHV(V,7),1)) OR(BETWEEN(V z REF(V,9)*0.95,REF(V,9)*1.05) AND V>REF(MA(V,8),1)*1.2 AND V>REF(HHV(V,8)Z1)) OR(BETWEEN(V z REF(V,10)*0.95z REF(V,10)*1.05) AND V>REF(MA(V Z9)Z1)*1.2 AND V>REF(HHV(V,9),1)) OR(BETWEEN(V,REF(V,ll)*0.95,REF(V/ll)*1.05) AND V>REF(MA(V/10),l)*1.2 AND V>REF(HHV(V,10),1)) OR(BETWEEN(V,REF(V,12)*0.95,REF(V,12)*1.05) AND V>REF(MA(V Z11)Z1)*1.2 AND V>REF(HHV(V Z11)Z1));GLZ:=V=HHV(V z3) AND V=REFX(HHV(V,3)Z2);TLZ:=(V*1.1<REFX(V,1) AND REFX(V,1)*1.1<REFX(V,2)) OR(V>REF(V Z1)*1.1 AND V*1.1<REFX(V,1)) OR (V>REF(V,1)*1.1 ANDREF(V,1)>REF(V,2)*1.1);JSLS:=C<=REFX(C Z1) AND REFX(C,l)v二REFX(C,2) ANDLIANGJIABI>REFX(LIANGJIABI,1) AND REFX(LIANGJIABI,1)>REFX(LIANGJIABI,2); JZ:=BLZ OR GLZ OR PLZ OR TL乙NODRAW;JJZ:=CURRBARSCOUNT>=4 AND YANG AND (YANGSHENG) AND JZ ANDREFX(LLV(DI,3),3)>=DI AND(REFX(MA(LIANGJIABI,3),3)<=LIANGJIABIXISHU*LIANGJIABI OR REFX(JSLSJ)) AND REFX(C,3)>=DING,NODRAW;HJZ1:=JJZ AND REFX(MA(C,3),3)>=DING ANDREFX(MA(LIANGJIABI Z3),3)<=LIANGJIABI AND REFX(YANGQ);HJZ2:=YANG AND YANGSHENG AND JZ AND REFX(DI,1)>=DI AND REFX(JJ乙2) AND REFX(C,2)>DING AND REFX(LIANGJIABI Z1)<LIANGJIABI;HJZ3:=YANG AND YANGSHENG AND JZ AND REFX(LLV(DI,2),2)>=DI AND REFX(JJ乙3) AND REFX(C,3)>DING ANDREFX(MA(LIANGJIABI Z2),2)<LIANGJIABI;HJZ4:=JJZ AND REFX(LLV(DI,3),3)>=DING AND REFX(MA(LIANGJIABI,3),3)< = LIANGJIABI AND REFX(YANG,3) AND (REFX(YANG’l) OR REFX(YANG,2));WP:JJZ OR HJZ1 OR HJZ4 OR HJZ2 OR HJZ3,NODRAW;CONDJJZ:=JJZ AND REF(NOT(WP)Z1);CONDHJZ1:=(HJZ1 OR HJZ2 OR HJZ3) AND REF(NOT(WP)Z1);STICKLINE(CONDJJZ,C,0,1,0),COLORYELLOW;STICKLINE(CONDHJZl,C,O,l,0)z COLORMAGENTA;DRAWTEXT(HJZ4 AND REF(NOT(HJZ4)z l),L*0.98;H,),COLORRED; DRAWLINE(CONDJJZ,DING z REF(CONDJJ 乙1)'REF(DING,1),1)/COLORBROWN; DRAWLINE(CONDJJ 乙DI,REF(CONDJJ 乙1),REF(DI,1),1),COLORBROWN; DRAWLINE(CONDHJZl,DING z REF(CONDHJZl,l)z REF(DING,l)z l),COLORBRO WN; DRAWLINE(CONDHJZl,DI z REF(CONDHJZl,l),REF(DI,l)z l),COLORBROWN;VOL5:=MA(VOL,5)Z COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW; VOL40:=MA(VOL,40),COLORFFOOFF ;MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10)Z COLORYELLOW;MA20:=MA(CLOSE,20),COLORMAGENTA;MA60: = MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) ANDREF(VOL10,1)<REF(VOL40,1);DRAWTEXT(量托z 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,l))/REF(C z l)*100>3;芙蓉出水: = BB AND CC1,COLOROOFFOO;DRAWTEXT(芙蓉岀水,H+0・12,芙蓉出水'),COLORFFOOFF;STICKLINE(芙蓉出水Z H Z L,0.5,1)Z COLORFFOOFF;STICKLINE(芙蓉出水Q ,C,3,1),LINETHICK2,COLORFFOOFF;MA1: = MA(CLOSE,14);MA2: = MA(CLOSE,25);MA3: = MA(CLOSE,99);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:二MA1>O AND MA2>0 AND MA3>0 AND MA1<C AND MA2<C ANDMA3<C AND CLOSE>OPEN ;DRAWTEXT( 一穿三丄-0.012;穿J,COLORFFOOFF;TY:=C;Al:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,1O); C1:=BACKSET(B1,104-1); HD:=FILTER(C1,1O);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);C2:=BACKSET(B2,10+l); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLOROOFFOO,POINTDOT;STICKLINE(C,前期高位,前期高位,8z O)/COLORRED;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLOR BLUE;三日不破:=MIN(MIN(L,REF(L/1))Z REF(L,2))>=REF(L Z3);三日量缩:=(MAX(MAX(V Z REF(V,1)),REF(V,2))<REF(V Z3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C Z1);三日价涨C:=MIN(MIN(C Z REF(C Z1)),REF(C Z2))>=REF(L,3);TIM: =IF(DATE < 1140214z 1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C z l)*l-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(四日前倍量柱⑴AND (REF(三日不破,1) ORREF(三日价涨C z l)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,l)),3)=0;倍量黄金柱:二四日前倍量柱AND三日量缩AND三日不破AND三日价涨A AND前三引用不成立;高量黄金柱:=四日前高量柱AND三口量缩AND三口不破AND三日价涨AAND前三引用不成立;黄金柱:=倍量黄金柱OR高量黄金柱;次倍量黄金柱: = NOT(黄金柱)AND四日前倍量柱AND三日量缩AND三日不破AND三日价涨BAND前三引用不成立;次高量黄金柱: = NOT(黄金柱)AND四口前高量柱AND三口量缩AND三口不破AND三日价涨BAND前三引用不成立;次黄金柱:二次倍量黄金柱OR次高量黄金柱;准倍量黄金柱: = NOT(黄金柱OR次黄金柱)AND四日前倍量柱AND((三日量缩AND三日价涨C) OR (COUNT(倍量tt,3)> = l AND三日不破))AND前三引用不成立;准高量黄金柱: = NOT(黄金柱OR次黄金柱)AND四H前高量柱AND (三H量缩AND三日价涨C) AND前三引用不成立;准黄金柱:二准倍量黄金柱OR准高量黄金柱;倍量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱)AND四日前倍量柱AND 三口不破AND三口价涨A AND前三引用不成立;高量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱)AND四H前高量柱AND三日不破AND三日价涨A AND前三引用不成立;将军柱:二倍量将军柱OR高量将军柱;次倍量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱)AND四口前倍量柱AND三口不破AND三口价涨BAND前三引用不成立;次高量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱)AND四日前高量柱AND三日不破AND三日价涨BAND前三引用不成立;次将军柱:二次倍量将军柱OR次高量将军柱;准倍量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱)AND四口前倍量柱AND三口价涨CAND前三引用不成立;准高量将军柱: = NOT(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR次将军柱)AND四日前高量柱AND三日价涨C AND前三引用不成立;准将军柱:二准倍量将军柱OR准高量将军柱;BACKSET100:=BACKSET(黄金柱OR次黄金柱OR准黄金柱OR将军柱OR 次将军柱OR准将军柱,4);FILTER100:=FILTER(BACKSET100,3)Z NODRAW;BACKSET101:=BACKSET(黄金柱,4); FILTER101:=FILTER(BACKSET101,3); BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102z3);BACKSET103:=BACKSET(准黄金柱,4); FILTER103:=FILTER (BACKSET103z3);BACKSET104:=BACKSET(将军柱,4); FILTER104:=FILTER(BACKSET104,3); BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4); FILTER106:=FILTER(BACKSET106,3);黄金线下影线: = REF(FILTER100z3)=l ANDMIN(MIN(L,REF(L,1))/REF(L,2))<=REF(L Z3);黄金线实体下端: = REF(FILTER100z3)=l ANDMIN(MIN(L Z REF(L,1))Z REF(L,2))<=MIN(REF(C,3)Z REF(O,3)) ANDMIN(MIN(L,REF(L,l)),REF(L,2))>REF(L,3)z LINETHICK0;黄金线上影线: = REF(FILTER100,3)=l ANDMIN(MIN(L Z REF(L,1))Z REF(L Z2))>=REF(H,3);黄金线实体上端: = REF(FILTER100z3)=l ANDMIN(MIN(L,REF(L,1)),REF(L Z2))>=MAX(REF(C Z3)Z REF(O Z3)) ANDREF(FILTER100,3)=l AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体屮间: = REF(FILTER100,3)=l ANDMIN(MIN(L,REF(L Z1))Z REF(L Z2))<MAX(REF(C,3),REF(O,3)) ANDREF(FILTER100,3)=l ANDMIN(MIN(L,REF(L,1)),REF(L Z2))>MIN(REF(C Z3),REF(O,3));黄金线实体中间l:=REF(FILTER100,3)=l ANDMIN(MIN(L Z REF(L,1)),REF(L,2))<MAX(REF(C Z3)Z REF(O,3)) ANDREF(FILTER100,3)=l ANDMIN(MIN(L,REF(L,1))Z REF(L,2))>MIN(REF(C,3)Z REF(O,3)) ANDREF(L Z2)=MIN(MIN(L,REF(L,1)),REF(L,2));黄金线实体中间2:=REF(FILTER100,3)=l ANDMIN(MIN(L Z REF(L,1)),REF(L,2))<MAX(REF(C Z3)Z REF(O,3)) ANDREF(FILTER100,3)=l ANDMIN(MIN(L,REF(L,1))Z REF(L,2))>MIN(REF(C,3)Z REF(O,3)) ANDREF(L Z1)=MIN(MIN(L,REF(L,1))Z REF(L Z2));黄金线实体中间3:=REF(FILTER100,3)=l ANDMIN(MIN(L Z REF(L,1)),REF(L,2))<MAX(REF(C Z3)Z REF(O,3)) ANDREF(FILTER100,3)=l ANDMIN(MIN(L,REF(L,1))Z REF(L,2))>MIN(REF(C,3)Z REF(O,3)) ANDL=MIN(MIN(L Z REF(L Z1))Z REF(L,2));BACKSET201:=BACKSET(黄金线卜影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202z3),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(BACKSET2052z3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;盯201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER201));盯202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER202));盯203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE)/BARSLA ST(FILTER203));盯204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER204));盯205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLA ST(FILTER205));盯2051:=IF(BARSU\ST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARS LAST(FILTER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE)Z BARSU\ST(FILTER2052));盯2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARS LAST(FILTER2053));最近黄金线: = MIN(MIN(MIN(MIN(MIN(MIN(BT201, BT202)z BT203),BT204),BT2051), BT 2052),BT2053);DAY1:=SUMBARS(FILTER1OO,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1Z IF(DAY1=1Z LOW,REF(LOW,DAY1 -1)),0),NODRAW;HJX1_2:=IF(SUMBARS(FILTER202Z1)=DAY1/IF(DAY1=1Z MIN(C/0),MIN(REF(CDAYl-l),REF(OPEN,DAYl-l)))z O),NODRAW;zHJX1_3:=IF(SUMBARS(FILTER2O3Z1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY 1-1)),0),NODRAW;HJX1_4:=IF(SUMBARS(FILTER204Z1)=DAY1,IF(DAY1=1,MAX(C,0),MAX(REF( C,DA Y1-1),REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,D RAWNULL,REF(LOW,DAYl-2)))z O),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052Z1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,D RAWNULL,REF(LOWQAY1・3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053Z1)=DAY1,IF(DAY1=4Z LOW Z IF(DAY1<4,D RAWNULL,REF(LOW,DAY1-4))),0),NODRAW;黄金线:HJX1 1+HJX1 2+HJX1 3+HJX1 4+HJX1 51+HJX1 52+HJX1 53,COLORY ELLOW,NODRAW;立桥量:=VOL=HHV(VOL Z40) AND VOL>1.9*REF(VOL Z1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1)Z1,IF(BARSLAST(立桩量)=2 ANDCLOSE>REF(HIGH,2)Z1Z IF(BARSLAST(立桩量)=3 ANDCLOSE>REF(HIGH,3),l z O)));立桩量三日不破: = BARSLAST(立桩量)=3 ANDREF(LOW Z3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三H 不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立: = FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量; DRAWTEXT(立桩量成立,HIGH*1・O1//立桩量jCOLORRED; DRAWTEXT (FILTER101,LOW *0・986,\ 黄金柱jCOLORYELLOW; DRAWTEXT (FILTER102,LOW *0・986,\ 次黄金柱)COLORYELLOW; DRAWTEXT (FILTER104 丄OW*0・986,\ 将军柱)COLORYELLOW;。

黄金量柱指标公式通达信指标公式源码

黄金量柱指标公式通达信指标公式源码

绿低量:=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;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;换手: VOL*10000/FINANCE(7),NODRAW,COLORGREEN; {DYNAINFO(37)*100}全换手周期: SUMBARS(V,CAPITAL),NODRAW,COLORLIGREEN;{求完全换手到现在的周期数}量比: V/REF(MA(V,5),1),COLORBROWN,NODRAW;几倍: 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;平量: 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; 地量: VOL=LLV(VOL,灰低量) AND BARSCOUNT(V)>=灰低量,COLORGRAY,NODRAW;V1:=VOL*0.95;{图标位置}V2:=VOL*0.85;STICKLINE(倍量, 0,V1,1,0),COLORYELLOW;STICKLINE(平量,0,V1,1,0),COLORWHITE;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;{假阴柱}真阳或假阴:=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;}{收盘价逐升原指标}价升:=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 收阳;高量将军柱:= 高量AND 三日不破AND 收阳;将军柱:= 倍量将军柱OR 高量将军柱;黄金柱:= 将军柱AND 价升AND 量缩AND 阳线;{标准黄金柱}STICKLINE(黄金柱,0.3*V,0.7*V,1,0),COLORRED; {红柱}DRAWICON(黄金柱,V*1.5,1);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; DRAWTEXT(长阴短柱,V+1.6*H_L,'!'),COLORLICYAN;。

通达信很准的黄金线主图指标

通达信很准的黄金线主图指标

通达信很准的黄金线主图指标日时转换:=IF(PERIOD=5,120,240);QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;V AR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;V AR2:=(EMA(VOL,10)+EMA(VOL,32))/2;V AR3:=(V AR1+V AR2)/2;V AR4:=EMA(V AR3,30);V AR5:=EMA(V AR3,60);V AR6:=EVERY(V AR1&gt;REF(V AR1,1),5) ANDEVERY(V AR4&gt;REF(V AR4,1),5);DRAWBAND(V AR1,RGB(150,30,30),EMA(V AR1,60),RGB(0, 110,30));牵引线:V AR1,COLORF29540;强弱线:EMA(V AR1,日时转换),POINTDOT,COLORWHITE; 趋势关注:IF(CROSS(V AR1,EMA(V AR1,60)) ANDV AR6,1,0),NODRAW,COLORRED;量价关注:IF(CROSS(V AR3,V AR5) ANDV AR6,1,0),NODRAW,COLORWHITE;冲击量:IF(V AR3&gt;V AR5 ANDV AR6,1,0),NODRAW,COLORYELLOW;强势区:IF(V AR1&gt;强弱线,1,DRAWNULL),NODRAW,COLORRED;止损区:IF(V AR1&lt;强弱线,1,DRAWNULL),NODRAW,COLORGREEN;STICKLINE(QZS&gt;V AR1,QZS,V AR1,1,0),COLORF29540;STICKLINE(冲击量=1,QZS,V AR1,1,0),COLOR0F26FB; DRAWICON(趋势关注=1,EMA(V AR1,60),13);DRAWTEXT(量价关注=1,EMA(V AR1,60),'关注' ),COLORWHITE;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA( CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORC C66FF;力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLOR GREEN;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&gt;=VOL40 AND CROSS(VOL10,VOL40) ANDREF(VOL10,1)&lt;REF(VOL40,1);DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;AA1:=BARSLAST(MA60&gt;MA30 AND (MA30=MA10 ORMA30&gt;MA10));BB1:=REF(COUNT(C&lt;MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL&gt;MA(VOL,5) AND(C-REF(C,1))/REF(C,1)*100&gt;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&gt;O AND MA2&gt;O AND MA3&gt;O AND MA1&lt;C ANDMA2&lt;C AND MA3&lt;C AND CLOSE&gt;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)&gt;0.667,H,C,0.8,0),COLORBLUE;}三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))&gt;=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))&lt;REF(V,3));三日价涨A:=C&gt;=REF(C,1);三日价涨B:=C&lt;REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))&gt;=REF(L,3);TIM:=IF(DATE&lt;1140214,1,0);缩倍柱:=(VOL*1.95&lt;=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C&gt;REF(C,1)*1.04 AND(VOL&gt;=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)&gt;1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)&gt;=REF(VOL,4) ANDREF(VOL,3)&lt;1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) ORREF(三日价涨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)&gt;=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))&lt;=REF(L,3);黄金线实体下端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&lt;=MIN(REF(C,3),REF(O, 3))ANDMIN(MIN(L,REF(L,1)),REF(L,2))&gt;REF(L,3),LINETHICK0 ;黄金线上影线:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&gt;=REF(H,3);黄金线实体上端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&gt;=MAX(REF(C,3),REF( O,3))AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&lt;REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&lt;MAX(REF(C,3),REF(O, 3))AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&gt;MIN(REF(C,3),REF(O, 3));黄金线实体中间1:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&lt;MAX(REF(C,3),REF(O, 3))AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&gt;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 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&lt;MAX(REF(C,3),REF(O, 3))AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&gt;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 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&lt;MAX(REF(C,3),REF(O, 3))AND REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))&gt;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,BARSCO UNT(CLOSE),BARSLAST(FILTER201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCO UNT(CLOSE),BARSLAST(FILTER202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCO UNT(CLOSE),BARSLAST(FILTER203));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCO UNT(CLOSE),BARSLAST(FILTER204));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCO UNT(CLOSE),BARSLAST(FILTER205));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARS COUNT(CLOSE),BARSLAST(FILTER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARS COUNT(CLOSE),BARSLAST(FILTER2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARS COUNT(CLOSE),BARSLAST(FILTER2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),B T204),BT2051),BT2052),BT2053);DAY1:=SUMBARS(FILTER100,1),NODRAW;OW,REF(LOW,DAY1-1)),0),NODRAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,M IN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NOD RAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HI GH,REF(HIGH,DAY1-1)),0),NODRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,M AX(C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NO DRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2, LOW,IF(DAY1&lt;2,DRAWNULL,REF(LOW,DAY1-2))),0),N ODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3, LOW,IF(DAY1&lt;3,DRAWNULL,REF(LOW,DAY1-3))),0),N ODRAW;LOW,IF(DAY1&lt;4,DRAWNULL,REF(LOW,DAY1-4))),0),N ODRAW;黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52 +HJX1_53,COLORYELLOW,NODRAW;立桩量:=VOL=HHV(VOL,40) ANDVOL&gt;1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 ANDCLOSE&gt;REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 ANDCLOSE&gt;REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 ANDCLOSE&gt;REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 ANDREF(LOW,3)&lt;=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),COLORYELL OW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW;DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELL OW;K2:=SUMBARS(FILTER101,1);STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORYEL LOW;。

通达信黄金分割压力和支撑画线主图指标公式

通达信黄金分割压力和支撑画线主图指标公式

通达信黄金分割压力和支撑画线主图指标公式通达信黄金分割压力和支撑画线主图指标公式股票软件源码如下: N1:=20;N2:=10;N3:=5;AA:=REF(H,N1)=HHV(H,2*N1+1);QY:=BACKSET(AA,N1+1);CC:=FILTER(QY,N1) AND H=HHV(H,N1+1);DDD:=BARSLAST(CC);GDTS:=IF(CC,CURRBARSCOUNT,0);DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);DINGBU1:=REF(DINGBU,DDD+1);GDCS1:=CONST(DINGBUTS);DINGBUTS1:=REF(DINGBUTS,DDD+1);GDCS2:=CONST(DINGBUTS1);DINGBU2:=REF(DINGBU1,DDD+1);MM:=IF(CURRBARSCOUNT>GDCS2,0,1);{DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H, GDCS2-1),1),COLOR0055FF,POINTDOT,LINETHICK2;DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H, GDCS1-1),1),COLORYELLOW,POINTDOT,LINETHICK2;} AA1:=REF(L,N1)=LLV(L,2*N1+1);QY1:=BACKSET(AA1,N1+1);CC1:=FILTER(QY1,N1) AND L=LLV(L,N1+1);DD1:=BARSLAST(CC1);DDTS:=IF(CC1,CURRBARSCOUNT,0);YDB:=IF(DD1,REF(L,DD1),L);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);DDCS1:=CONST(DDTS1);ZDB:=REF(YDB,DD1+1);DDTS2:=REF(DDTS1,DD1+1);DDCS2:=CONST(DDTS2);{DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L, DDCS2-1),1),COLOR0055FF,POINTDOT,LINETHICK2;DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,D DCS1-1),1),COLORYELLOW,POINTDOT,LINETHICK2;}LAA:=REF(H,N2)=HHV(H,2*N2+1);LQY:=BACKSET(LAA,N2+1);LCC:=FILTER(LQY,N2) AND H=HHV(H,N2+1);LDDD:=BARSLAST(LCC);LGDTS:=IF(LCC,CURRBARSCOUNT,0);LDINGBU:=IF(LDDD,REF(H,LDDD),H);{顶部}LDINGBUTS:=IF(LDDD,REF(LGDTS,LDDD),LGDTS);LDINGBU1:=REF(LDINGBU,LDDD+1);LGDCS1:=CONST(LDINGBUTS);LDINGBUTS1:=REF(LDINGBUTS,LDDD+1);LGDCS2:=CONST(LDINGBUTS1);LDINGBU2:=REF(LDINGBU1,LDDD+1);LMM:=IF(CURRBARSCOUNT>LGDCS2,0,1);{DRAWLINE(CURRBARSCOUNT=LGDCS2,H,ISLASTBAR,REF( H,LGDCS2-1),1),COLOR0055FF,POINTDOT;DRAWLINE(CURRBARSCOUNT=LGDCS1,H,ISLASTBAR,REF(H ,LGDCS1-1),1),COLORYELLOW,POINTDOT;}LAA1:=REF(L,N2)=LLV(L,2*N2+1);LQY1:=BACKSET(LAA1,N2+1);LCC1:=FILTER(LQY1,N2) AND L=LLV(L,N2+1);LDD1:=BARSLAST(LCC1);LDDTS:=IF(LCC1,CURRBARSCOUNT,0);LYDB:=IF(LDD1,REF(L,LDD1),L);LDDTS1:=IF(LDD1,REF(LDDTS,LDD1),LDDTS);LDDCS1:=CONST(LDDTS1);LZDB:=REF(LYDB,LDD1+1);LDDTS2:=REF(LDDTS1,DD1+1);LDDCS2:=CONST(LDDTS2);DDYL2:=DRAWLINE(CURRBARSCOUNT=LGDCS2,H,CURRBA RSCOUNT=LGDCS1,H,1) COLORWHITE;DDZC2:=DRAWLINE(CURRBARSCOUNT=LDDCS2,L,CURRBA RSCOUNT=LDDCS1,L,1) COLORWHITE;ZGSTAR:=(DDYL2+DDZC2)/2;ZGEND:=CONST((DDYL2+DDZC2)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);LLAA:=REF(H,N3)=HHV(H,2*N3+1);LLQY:=BACKSET(LLAA,N3+1);LLCC:=FILTER(LLQY,N3) AND H=HHV(H,N3+1);LLDDD:=BARSLAST(LLCC);LLGDTS:=IF(LLCC,CURRBARSCOUNT,0);LLDINGBU:=IF(LLDDD,REF(H,LLDDD),H);{顶部}LLDINGBUTS:=IF(LLDDD,REF(LLGDTS,LLDDD),LLGDTS);LLDINGBU1:=REF(LLDINGBU,LLDDD+1);LLGDCS1:=CONST(LLDINGBUTS);LLDINGBUTS1:=REF(LLDINGBUTS,LLDDD+1);LLGDCS2:=CONST(LLDINGBUTS1);LLDINGBU2:=REF(LLDINGBU1,LLDDD+1);LLMM:=IF(CURRBARSCOUNT>LGDCS2,0,1);{DRAWLINE(CURRBARSCOUNT=LLGDCS2,H,ISLASTBAR,REF( H,LLGDCS2-1),1),COLOR0055FF,POINTDOT;DRAWLINE(CURRBARSCOUNT=LLGDCS1,H,ISLASTBAR,REF( H,LLGDCS1-1),1),COLORYELLOW,POINTDOT;}LLAA1:=REF(L,N3)=LLV(L,2*N3+1);LLQY1:=BACKSET(LLAA1,N3+1);LLCC1:=FILTER(LLQY1,N3) AND L=LLV(L,N3+1);LLDD1:=BARSLAST(LCC1);LLDDTS:=IF(LLCC1,CURRBARSCOUNT,0);LLYDB:=IF(LLDD1,REF(L,LLDD1),L);LLDDTS1:=IF(LLDD1,REF(LLDDTS,LLDD1),LDDTS);LLDDCS1:=CONST(LLDDTS1);LLZDB:=REF(LLYDB,LLDD1+1);LLDDTS2:=REF(LLDDTS1,DD1+1);LLDDCS2:=CONST(LLDDTS2);GDYL3:=DRAWLINE(CURRBARSCOUNT=LLGDCS2,H,CURRB ARSCOUNT=LLGDCS1,H,1) COLORYELLOW;DDZC3:=DRAWLINE(CURRBARSCOUNT=LLDDCS2,L,CURRB ARSCOUNT=LLDDCS1,L,1) COLORYELLOW;LZGSTAR:=(GDYL3+DDZC3)/2;LZGEND:=CONST((GDYL3+DDZC3)/2);LSTARDAY:=IF(LLDDCS2<LLGDCS2,LLDDCS2,LLGDCS2);GDYL1:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBAR SCOUNT=GDCS1,H,1) COLORRED;DDZC1:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBAR SCOUNT=DDCS1,L,1) COLORRED;长线压力:DDZC1+(GDYL1-DDZC1)*0.809,COLORRED;长线支撑:DDZC1+(GDYL1-DDZC1)*0.191,COLORRED;中线压力:DDZC2+(DDYL2-DDZC2)*0.809,COLORGREEN;中线支撑:DDZC2+(DDYL2-DDZC2)*0.191,COLORGREEN;短线压力:DDZC3+(GDYL3-DDZC3)*0.809,COLORBLUE;短线支撑:DDZC3+(GDYL3-DDZC3)*0.191,COLORBLUE;L中轨:DRAWLINE(CURRBARSCOUNT=LSTARDAY,LZGSTAR,ISLASTBAR,LZGEND,1),COLORYELLOW;中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR, ZGEND,1),COLORWHITE;长GDYL:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOU NT=GDCS1,H,1) COLORRED,POINTDOT;长DDZC:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOU NT=DDCS1,L,1) COLORRED,POINTDOT;中DDYL:DRAWLINE(CURRBARSCOUNT=LGDCS2,H,CURRBARSCOU NT=LGDCS1,H,1) COLORWHITE,POINTDOT;中DDZC:DRAWLINE(CURRBARSCOUNT=LDDCS2,L,CURRBARSCOU NT=LDDCS1,L,1) COLORWHITE,POINTDOT;短GDYL:DRAWLINE(CURRBARSCOUNT=LLGDCS2,H,CURRBARSCO UNT=LLGDCS1,H,1) COLORYELLOW,POINTDOT;短DDZC:DRAWLINE(CURRBARSCOUNT=LLDDCS2,L,CURRBARSCO UNT=LLDDCS1,L,1) COLORYELLOW,POINTDOT;。

通达信量学指标目前为止成功率95%的黄金坑配合黄金柱平衡点伏击公式

通达信量学指标目前为止成功率95%的黄金坑配合黄金柱平衡点伏击公式

量学指标目前为止成功率95%的黄金坑配合黄金柱平衡点伏击公式用法说明:黄金坑买点出现配合黄金柱主图黄色黄金线上缩量回踩后买进,你就闭着眼睛赚钱吧!收益少则10%多则很大概率抓到牛股!涨幅保守40%以上!!本指标是根据王子老师量学中黄金坑必然是庄家打劫的产物,回踩至重要黄金线处必然要拉升!(本指标中掺杂多种涨停共振基因,所以成功率自然很高)VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VAR2:=2*ABS(VAR1);VAR3:=100-3*SMA((CLOSE-LLV(LOW,72))/(HHV(HIGH,72)-LLV(LOW,72))*100,20,1)+ 2*SMA(SMA((CLOSE-LLV(LOW,72))/(HHV(HIGH,72)-LLV(LOW,72))*100,20,1),15,1);大资金:VAR3*(-1)+100,COLOR00FFFF,LINETHICK3;底部: IF(VAR1<0,VAR2,0), LINESTICK,COLOR00FF00;VAR22:=100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34));VAR23:=MA(VAR22,3);VAR24:=EMA(AMOUNT/VOL/100,5);VAR25:=EMA(AMOUNT/VOL/100,13);VAR26:=VAR24-VAR25;趋势: IF(1000*VAR26/VAR24>0,1000*VAR26/VAR24,0),COLORRED,LINETHICK4;趋势1: IF(1000*VAR26/VAR24>0,1000*VAR26/VAR24,0),COLORRED,LINESTICK;VV20:20,POINTDOT,COLOR00FF00;VV50:50,COLOR00FF00;VV80:80,POINTDOT,COLOR00FF00;VV100:100,COLOR00FF00;。

通达信指标公式源码 黄金分割布林 主图源码

通达信指标公式源码 黄金分割布林 主图源码

M30:=MA(CLOSE,30);压力线:M30 + 2*STD(CLOSE,55),COLOR1010FF,LINETHICK1;支撑线:M30 - 2*STD(CLOSE,55),COLOR1010FF,LINETHICK1;BOLL:MA(CLOSE,10),COLORWHITE,LINETHICK2;UPPER:BOLL+2*STD(CLOSE,10),COLORYELLOW,LINETHICK2;LOWER:BOLL-2*STD(CLOSE,10),COLORLIMAGENTA,LINETHICK2;HH:=HHV(H,200);LL:=LLV(L,200);上涨:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(L=LL)+1)),COLOR0000FF,NO DRAW;↑空间%:(C/REF(L,上涨)-1)*100,COLOR00FFFF,NODRAW;最高%:(HH/REF(L,上涨)-1)*100,COLORFF00FF,NODRAW;下跌:BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(H=HH)+1)),COLOR00FF00,N ODRAW;↓空间%:(C/REF(H,下跌)-1)*100,COLOR888899,NODRAW;最低%:(LL/REF(H,下跌)-1)*100,COLORFF0000,NODRAW;天线:REFDATE(REF(H,下跌),DATE),POINTDOT,LINETHICK3,COLORYELLOW;地线:REFDATE(REF(L,上涨),DATE),POINTDOT,LINETHICK3,COLOR00FF00; 中线:REFDATE((天线-地线)*0.5+地线,DATE),POINTDOT,LINETHICK3,COLOR00FF00;STICKLINE(上涨=0,天线,地线,0,-1),COLORYELLOW;STICKLINE(下跌=0,天线,地线,0,-1),COLORGREEN;DRAWTEXT(下跌=0,地线*1.01,'-最低'),COLOR00FF00;DRAWTEXT(上涨=0,天线*0.99,'-最高'),COLOR0000FF;{2}高:=天线;低:=地线;H1:=高-(高-低)*0.191;H2:=高-(高-低)*0.382;H3:=高-(高-低)*0.5;H4:=高-(高-低)*0.618;H5:=高-(高-低)*0.809;DRAWTEXT(下跌=0,高,'高'),COLORGREEN;DRAWTEXT(下跌=0,H1,'809'),COLORCYAN;DRAWTEXT(下跌=0,H2,'618'),COLORGRAY;DRAWTEXT(下跌=0,H3,'中'),COLORYELLOW;DRAWTEXT(下跌=0,H4,'382'),COLORLIRED;DRAWTEXT(下跌=0,H5,'191'),COLORMAGENTA;DRAWTEXT(上涨=0,H1,'风险'),COLORCYAN;DRAWTEXT(上涨=0,H2,'高位'),COLORGRAY;DRAWTEXT(上涨=0,H3,'中'),COLORYELLOW;DRAWTEXT(上涨=0,H4,'低吸'),COLORLIRED;DRAWTEXT(上涨=0 ,H5,'盘整'),COLORMAGENTA;DRAWTEXT(上涨=0,低,'低'),COLORRED;DRAWTEXT(上涨=5,H*1.02,'5'),COLOR00FFFF;DRAWTEXT(上涨=8,H*1.02,'8'),COLOR00FFFF;DRAWTEXT(上涨=13,H*1.02,'13'),COLOR00FFFF;DRAWTEXT(上涨=21,H*1.02,'21'),COLOR00FFFF;DRAWTEXT(上涨=34,H*1.02,'34'),COLOR00FFFF;DRAWTEXT(上涨=55,H*1.02,'55'),COLOR00FFFF;DRAWTEXT(上涨=89,H*1.02,'89'),COLOR00FFFF;DRAWTEXT(上涨=144,H*1.02,'144'),COLOR00FFFF;DRAWTEXT(上涨=180,H*1.02,'180'),COLOR00FFFF;DRAWTEXT(上涨=250,H*1.02,'250'),COLOR00FFFF;DRAWTEXT(下跌=5,L*0.98,'-5'),COLOR00FF00;DRAWTEXT(下跌=8,L*0.98,'-8'),COLOR00FF00;DRAWTEXT(下跌=13,L*0.98,'-13'),COLOR00FF00;DRAWTEXT(下跌=21,L*0.98,'-21'),COLOR00FF00;DRAWTEXT(下跌=34,L*0.98,'-34'),COLOR00FF00;DRAWTEXT(下跌=55,L*0.98,'-55'),COLOR00FF00;DRAWTEXT(下跌=89,L*0.98,'-89'),COLOR00FF00;DRAWTEXT(下跌=144,L*0.98,'-144'),COLOR00FF00; DRAWTEXT(下跌=180,L*0.98,'-180'),COLOR00FF00; DRAWTEXT(下跌=250,L*0.98,'-250'),COLOR00FF00;。

通达信指标——筹码黄金柱(主图、选股)

通达信指标——筹码黄金柱(主图、选股)

通达信指标——筹码黄⾦柱(主图、选股)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;。

黄金柱主图公式下载通达信金柱

黄金柱主图公式下载通达信金柱

黄金柱主图公式下载通达信金柱HJ_1:=VOL>=REF(VOL,1)*1.9 AND CLOSE>REF(CLOSE,1);STICKLINE(HJ_1,OPEN,CLOSE,2.5,0),COLORYELLOW;HJ_2:=REF(VOL,4)*1.9<REF(VOL,3) AND REF(CLOSE,3)>REF(CLOSE,4) AND REF(OPEN,3)>LLV(LOW,3);HJ_3:=BACKSET(HJ_2,4);HJ_4:=FILTER(HJ_3,3);STICKLINE(HJ_4,OPEN,CLOSE,2.5,0),COLOR9F5F9F;短趋势线:MA(CLOSE,13),COLORRED,LINETHICK3;HJ_5:=MA(CLOSE,33);中趋势线:MA(CLOSE,55),COLORGRAY;年线:MA(CLOSE,250),POINTDOT,COLORLIGRAY;涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),COLORRED,LINETHICK3;HJ_6:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL);跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLORGREEN,LINETHICK3;HJ_7:=((CLOSE-REF(MA(CLOSE,20),1))/20+短趋势线)*1.2;DRAWTEXT(CROSS(CLOSE,HJ_7),HIGH*1.02,148),COLORGRE EN;DRAWTEXT(CROSS(CLOSE,MA(CLOSE,13)) AND 短趋势线<REF(短趋势线,1) AND 短趋势线<中趋势线,HIGH*1.02,148),COLORGREEN;DRAWTEXT(CROSS(短趋势线,CLOSE) AND INDEXC>MA(INDEXC,13) AND 短趋势线>REF(短趋势线,1) AND VOL<REF(VOL,1) AND 短趋势线>中趋势线,LOW*0.97,149),COLORRED;STICKLINE(CROSS(短趋势线,CLOSE) AND 短趋势线>REF(短趋势线,1) AND VOL<REF(VOL,1) AND 短趋势线>中趋势线,LOW,LOW*0.99,2,0),COLORYELLOW;HJ_8:=((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;DRAWTEXT(HJ_8>9 AND VOL<REF(VOL,1) AND FILTER(HJ_8<REF(HJ_8,1),5),HIGH*1.02,150),COLORYELLOW;DRAWTEXT(HJ_8>9 AND VOL>REF(VOL,1) AND FILTER(HJ_8<REF(HJ_8,1),5),HIGH*1.02,148),COLORGREEN;DRAWTEXT(HJ_8>20 AND FILTER(HJ_8<REF(HJ_8,1),5),HIGH*1.06,151),COLORYELLOW;HJ_9:=HHV(HJ_8>20,10);DRAWTEXT(FILTER(HJ_8<(-9) AND HJ_8>REF(HJ_8,1),18) AND VOL>REF(VOL,1),LOW*0.98,152),COLORRED;DRAWTEXT(HJ_8<(-20) AND FILTER(HJ_8>REF(HJ_8,1),5),LOW*0.95,71),COLORYELLOW;DRAWTEXT(HJ_9 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLO SE,20)),HIGH*1.1,153),COLORYELLOW;HJ_10:=HIGH-LOW;HJ_11:=ABS(OPEN-CLOSE);HJ_12:=HIGH-IF(CLOSE>OPEN,CLOSE,OPEN);HJ_13:=IF(CLOSE>OPEN,OPEN,CLOSE)-LOW;HJ_14:=HJ_11/HJ_10*VOL;HJ_15:=HJ_12/HJ_10*VOL;HJ_16:=HJ_13/HJ_10*VOL;HJ_17:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,30) AND MA(CLOSE,30)>MA(CLOSE,60);HJ_18:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;DRAWTEXT(HJ_14>MA(VOL,5)*2 AND 短趋势线>REF(短趋势线,1) AND HJ_14>=HJ_15 AND HJ_14>=HJ_16 AND CLOSE>OPEN OR (VOL>MA(VOL,5)*3 AND HJ_17),LOW*0.98,154),COLORMAGENTA;HJ_19:=COST(0.37);HJ_20:=COST(6);HJ_21:=COST(15);HJ_22:=COST(55);HJ_23:=COST(95);HJ_24:=COST(90);HJ_25:=COST(12);HJ_26:=WINNER(CLOSE)*100;HJ_27:=100-WINNER(CLOSE)*100;HJ_28:=HJ_19;HJ_29:=HJ_20;HJ_30:=HJ_21;HJ_31:=HJ_23;HJ_32:=HJ_22;DRAWTEXT_FIX(1,0,0,0,155),COLORRED;DRAWNUMBER_FIX(1,0.09,0,0,CONST(HJ_26)),COLORRED;DRAWTEXT_FIX(1,0.14,0,0,92),COLORRED;DRAWTEXT_FIX(1,0,0.05,0,156),COLORGREEN;DRAWNUMBER_FIX(1,0.09,0.05,0,CONST(HJ_27)),COLORGRE EN;DRAWTEXT_FIX(1,0.14,0.05,0,92),COLORGREEN;DRAWTEXT_FIX(1,0,0.1,0,157),COLORWHITE;DRAWNUMBER_FIX(1,0.09,0.1,0,CONST(HJ_28)),COLORWHI TE;DRAWTEXT_FIX(1,0.14,0.1,0,158),COLORWHITE;DRAWTEXT_FIX(1,0,0.15,0,159),COLORLIBLUE;DRAWNUMBER_FIX(1,0.09,0.15,0,CONST(HJ_29)),COLORLIBLUE;DRAWTEXT_FIX(1,0.14,0.15,0,158),COLORLIBLUE;DRAWTEXT_FIX(1,0,0.2,0,160),COLORLIMAGENTA;DRAWNUMBER_FIX(1,0.09,0.2,0,CONST(HJ_30)),COLORLIMA GENTA;DRAWTEXT_FIX(1,0.14,0.2,0,158),COLORLIMAGENTA;DRAWTEXT_FIX(1,0,0.25,0,161),COLORRED;DRAWNUMBER_FIX(1,0.09,0.25,0,CONST(HJ_32)),COLORRED;DRAWTEXT_FIX(1,0.14,0.25,0,158),COLORRED;DRAWTEXT_FIX(1,0,0.3,0,162),COLORYELLOW;DRAWNUMBER_FIX(1,0.09,0.3,0,CONST(HJ_31)),COLORYELL OW;DRAWTEXT_FIX(1,0.14,0.3,0,158),COLORYELLOW;DRAWTEXT_FIX(1,0,0.35,0,163),COLORGREEN;DRAWNUMBER_FIX(1,0.09,0.35,0,CONST(HJ_24)),COLORGRE EN;DRAWTEXT_FIX(1,0.14,0.35,0,158),COLORGREEN;DRAWTEXT_FIX(1,0,0.4,0,164),COLORCYAN;DRAWNUMBER_FIX(1,0.09,0.4,0,CONST(HJ_25)),COLORCYA N;DRAWTEXT_FIX(1,0.14,0.4,0,158),COLORCYAN;HJ_33:=HHV(HIGH,22);HJ_34:=HIGH;HJ_35:=HJ_34/1.0809;HJ_36:=HJ_34/1.1618;HJ_37:=HJ_34/1.0809/1.1618;HJ_38:=HJ_34/1.1618/1.1618;DRAWTEXT_FIX(1,0.3,0,0,165),COLORGREEN;DRAWNUMBER_FIX(1,0.38,0,0,CONST(HJ_35)),COLORGREEN;DRAWTEXT_FIX(1,0.42,0,0,166),COLORGREEN;DRAWTEXT_FIX(1,0.49,0,0,158),COLORGREEN;DRAWTEXT_FIX(1,0.3,0.05,0,167),COLORGREEN;DRAWNUMBER_FIX(1,0.38,0.05,0,CONST(HJ_37)),COLORGRE EN;DRAWTEXT_FIX(1,0.42,0.05,0,166),COLORGREEN;DRAWNUMBER_FIX(1,0.45,0.05,0,CONST(HJ_38)),COLORGRE EN;DRAWTEXT_FIX(1,0.49,0.05,0,158),COLORGREEN;HJ_39:=LLV(LOW,22);HJ_40:=LOW;HJ_41:=HJ_40*1.0809;HJ_42:=HJ_40*1.1618;HJ_43:=HJ_40*1.0809*1.1618;HJ_44:=HJ_40*1.1618*1.1618;DRAWTEXT_FIX(1,0.3,0.1,0,168),COLORYELLOW;DRAWNUMBER_FIX(1,0.38,0.1,0,CONST(HJ_41)),COLORYELL OW;DRAWTEXT_FIX(1,0.42,0.1,0,166),COLORYELLOW;DRAWNUMBER_FIX(1,0.45,0.1,0,CONST(HJ_42)),COLORYELL OW;DRAWTEXT_FIX(1,0.49,0.1,0,158),COLORYELLOW;DRAWTEXT_FIX(1,0.3,0.15,0,169),COLORYELLOW;DRAWNUMBER_FIX(1,0.38,0.15,0,CONST(HJ_43)),COLORYEL LOW;DRAWTEXT_FIX(1,0.42,0.15,0,166),COLORYELLOW;DRAWNUMBER_FIX(1,0.45,0.15,0,CONST(HJ_44)),COLORYEL LOW;DRAWTEXT_FIX(1,0.49,0.15,0,158),COLORYELLOW;DRAWTEXT_FIX(1,0.3,0.2,0,170),COLORRED;DRAWTEXT_FIX(1,0.42,0.2,0,158),COLORRED;DRAWTEXT_FIX(1,0.3,0.25,0,171),COLORGREEN;DRAWNUMBER_FIX(1,0.38,0.25,0,CONST(HJ_33)),COLORGRE EN;DRAWTEXT_FIX(1,0.42,0.25,0,158),COLORGREEN;HJ_45:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*57.299999;HJ_46:=ATAN((MA(CLOSE,13)/REF(MA(CLOSE,13),1)-1)*100)*57.299999;HJ_47:=ATAN((MA(CLOSE,23)/REF(MA(CLOSE,23),1)-1)*100)*57.299999;HJ_48:=ATAN((MA(CLOSE,34)/REF(MA(CLOSE,34),1)-1)*100)*57.299999;HJ_49:=ATAN((MA(CLOSE,68)/REF(MA(CLOSE,68),1)-1)*100)*57.299999;HJ_50:=ATAN((MA(CLOSE,250)/REF(MA(CLOSE,250),1)-1)*100)*57.299999;DRAWTEXT_FIX(1,0.16,0,0,172),COLORCYAN;DRAWNUMBER_FIX(1,0.24,0,0,CONST(HJ_45)),COLORCYAN;DRAWTEXT_FIX(1,0.28,0,0,173),COLORCYAN;DRAWTEXT_FIX(1,0.16,0.05,0,174),COLORCYAN;DRAWNUMBER_FIX(1,0.24,0.05,0,CONST(HJ_46)),COLORCYA N;DRAWTEXT_FIX(1,0.28,0.05,0,173),COLORCYAN;DRAWTEXT_FIX(1,0.16,0.1,0,175),COLORRED;DRAWNUMBER_FIX(1,0.24,0.1,0,CONST(HJ_47)),COLORRED;DRAWTEXT_FIX(1,0.28,0.1,0,173),COLORRED;DRAWTEXT_FIX(1,0.16,0.15,0,176),COLORRED;DRAWNUMBER_FIX(1,0.24,0.15,0,CONST(HJ_48)),COLORRED;DRAWTEXT_FIX(1,0.28,0.15,0,173),COLORRED;DRAWTEXT_FIX(1,0.16,0.2,0,177),COLORMAGENTA;DRAWNUMBER_FIX(1,0.25,0.2,0,CONST(HJ_49)),COLORMAG ENTA;DRAWTEXT_FIX(1,0.28,0.2,0,173),COLORMAGENTA;DRAWTEXT_FIX(1,0.16,0.25,0,178),COLORMAGENTA;DRAWNUMBER_FIX(1,0.24,0.25,0,CONST(HJ_50)),COLORMA GENTA;DRAWTEXT_FIX(1,0.28,0.25,0,173),COLORMAGENTA;。

通达信指标公式源码量柱擒涨停+黄金柱+涨停时间窗主图

通达信指标公式源码量柱擒涨停+黄金柱+涨停时间窗主图

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;。

黄金柱主图指标通达信指标公式源码

黄金柱主图指标通达信指标公式源码

所属板块:=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 ;。

通达信当出现黄柱的买点时可以关注公式

通达信当出现黄柱的买点时可以关注公式

通达信当出现黄柱的买点时可以关注公式当出现黄柱的买点时可以关注公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3) +4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;短线:=VAR1,COLORMAGENTA,LINETHICK2;中线:=VAR6,COLORCYAN,LINETHICK2;长线:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),LINETHICK2,NODRAW,COLORGREEN;{持股持币彩色K线}EMA2:=EMA(CLOSE,2);BBUY:=CROSS(EMA2,长线);SEL:=CROSS(长线,EMA2);STICKLINE((EMA2 >= 长线),LOW,HIGH,0.4,0),COLOR0000FF;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,3,1),COLOR000077;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,2.6,1),COLOR000099;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,2,1),COLOR0000BB;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,1.3,1),COLOR0000DD;STICKLINE((EMA2 >= 长线),CLOSE,OPEN,0.4,1),COLOR0000FF;STICKLINE((EMA2 < 长线),LOW,HIGH,0.4,0),COLORFFFF00;STICKLINE((EMA2 < 长线),CLOSE,OPEN,3,1),COLOR777700;STICKLINE((EMA2 < 长线),CLOSE,OPEN,2.6,1),COLOR999900;STICKLINE((EMA2 < 长线),CLOSE,OPEN,2,1),COLORBBBB00;STICKLINE((EMA2 < 长线),CLOSE,OPEN,1.3,1),COLORDDDD00;STICKLINE((EMA2 < 长线),CLOSE,OPEN,0.4,1),COLORFFFF00;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,5,0),COLOR0055FF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,4.2,0),COLOR0077FF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,3,0),COLOR0099FF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,2.2,0),COLOR00BBFF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,1.5,0),COLOR00DDFF;STICKLINE((CROSS(EMA2,长线) OR CROSS(长线,EMA2)),OPEN,CLOSE,0.4,0),COLOR00FFFF;VAR3TD:=100-3*SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1),15,1);VAR4TD:=100-3*SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,42))/(HHV(HIGH,42)-LLV(LOW,42))*100,20,1),15,1);VAR2TD:=VAR3TD<REF(VAR4TD,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);DRAWTEXT(VAR2TD AND COUNT(VAR2TD,30)=1,L,'大资金进场'),COLORFF00FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),78,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW),'★大胆搏'),COLOR00FFFF;DRAWTEXT(CROSS(EMA(((SLOPE(CLOSE,40)*20)+CLOSE),20) ,EMA(CLOSE,3)),(HIGH* 1.05),'卖'),LINETHICK3,COLORFFFFFF;。

【通达信】经典量柱(黄金柱、预定黄金柱、量柱图、大阴线)公式

【通达信】经典量柱(黄金柱、预定黄金柱、量柱图、大阴线)公式

【通达信】经典量柱(黄金柱、预定黄金柱、量柱图、大阴线)公式【通达信】经典量柱(黄金柱、预定黄金柱、量柱图、大阴线)-指标公式源码黄金柱:=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;。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

{阴线战法“大阴实顶”的主图显示}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 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;。

相关文档
最新文档