黄金主升浪主图指标通达信指标公式源码
通达信黄金柱主图公式源码
通达信黄金柱主图公式源码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;。
主升浪套装主图指标通达信指标公式源码
MA3:=MA(CLOSE,3);MA5:MA(CLOSE,5),COLORYELLOW;MA7:=MA(CLOSE,7);MA10:=MA(CLOSE,10);MA13:=MA(CLOSE,13);MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);MA60:MA(CLOSE,60),COLORRED;MA120:=MA(CLOSE,120);MA250:=MA(CLOSE,250);STICKLINE(C>1.095*REF(C,1),C,O,3.6,0),COLOR007FEE;UPPER:= MA(CLOSE,26)+ 2*STD(CLOSE,26),LINETHICK1,COLORBLUE;V1:=240/FROMOPEN*DYNAINFO(8);D:=MA(C,5);A:=D>=REF(D,1) ;B1:=C>D AND (C-D)/D<=0.08;DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;MID := MA(CLOSE,26);LOWER:=MID - 2*STD(C,26);MA1:=(V,5);MA2:=(V,60);GX:=DIF>0 AND DEA>0 AND DIF>DEA AND MA5>MA13 AND MA13>MA20 ANDMA20>MA30 AND MA20>REF(MA20,1) AND MA13>REF(MA13,1) AND MA30>REF(MA30,1) AND MA5>REF(MA5,1) AND C> REF(C,1) AND VOL>REF(VOL,1) AND C>MA60 ANDC>MA120 AND C>MA250 AND C>REF(HHV(C,150),1) AND C>UPPER ANDUPPER>REF(UPPER,1) AND CROSS(CLOSE,UPPER);ENTERLONG:=DIF>0 AND DEA>0 AND DIF>DEA AND MA5>MA13 AND WINNER(C)>0.9 AND MA13>MA20 AND MA20>MA30 AND MA20>REF(MA20,1)AND MA13>REF(MA13,1) AND MA30>REF(MA30,1) AND MA5>REF(MA5,1) AND C> REF(C,1) AND VOL>REF(VOL,1) AND C>MA60 AND C>MA120 AND C>MA250 AND C>REF(HHV(C,50),1) AND C>UPPER AND UPPER>REF(UPPER,1) AND CROSS(CLOSE,UPPER) AND COUNT(C>MA(C,5),3)=3 AND LOW<MA(CLOSE,3) AND CLOSE>MA(CLOSE,5) AND MA5>MA20 AND MA5>MA60 AND MA13>MA60 AND V1>MA(V,60) AND V1>MA(V,5);ENTERLONG1:=VOL>MA1 AND VOL>MA2 AND C>MA13 AND C>MA20 AND C>MA30 AND C>MA60 AND C>MA120 AND C>MA250 AND A AND B1 AND DIF=HHV(DIF,30) AND MACD=HHV(MACD,2) AND WINNER(C)>0.9 AND MA5>MA13 AND WINNER(C)>0.9 AND MA13>MA20 AND MA20>MA30 AND MA20>REF(MA20,1) AND MA13>REF(MA13,1) AND MA30>REF(MA30,1) AND MA5>REF(MA5,1) AND C>REF(C,1)AND VOL>REF(VOL,1) AND C>REF(HHV(C,50),1) AND C>UPPER AND UPPER>REF(UPPER,1) ANDCROSS(CLOSE,UPPER);GX11:=GX OR ENTERLONG OR ENTERLONG1;DRAWICON(GX11,L*0.985,25);。
通达信黄金柱主图(源码)(附图) 通达信公式
BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER204));
准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;
倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
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 MA1OPEN ;
DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF;
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;
最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053);
通达信黄金多牛通道主图指标公式
通达信黄金多牛通道主图指标公式VAR3:=AMOUNT/VOL;A:=SMA(VAR3,5,1)-SMA(VAR3,55,1);B:=SMA((A-SMA(A,5,1)),5,1);STICKLINE(CLOSE,HIGH,LOW,0,1),COLORWHITE;STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,3,0),COLORWHITE;STICKLINE(CLOSE<OPEN,OPEN,CLOSE,3,1),COLORWHITE;STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),HIGH,LOW,0.0,1),COLORRED;STICKLINE(CLOSE>MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),OPEN,CLOSE,3,1),COLORRED;STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),HIGH,LOW,0.0,0),COLORWHITE;STICKLINE(CLOSE<MA(CLOSE,5) AND A>REF(A,1) AND B>REF(B,1),OPEN,CLOSE,3,0),COLORWHITE;STICKLINE(A<REF(A,3) AND B<REF(B,3),HIGH,LOW,0.0,1),COLORGREEN;STICKLINE(A<REF(A,3) AND B<REF(B,3),OPEN,CLOSE,3,1),COLORGREEN;STICKLINE(A>REF(A,1) AND B<REF(B,1),HIGH,LOW,0.0,0),COLORWHITE;STICKLINE(A>REF(A,1) AND B<REF(B,1),OPEN,CLOSE,3,0),COLORWHITE;STICKLINE(A<REF(A,1) AND B>REF(B,1),HIGH,LOW,0.0,0),COLORWHITE;STICKLINE(A<REF(A,1) AND B>REF(B,1),OPEN,CLOSE,3,0),COLORWHITE;主力:=EMA(CLOSE,10),COLORRED;散户:=EMA(CLOSE,5),COLORYELLOW;绿降:=(46.18*EMA (CLOSE,10)-31.82*EMA(CLOSE,4))/14.36,COLORGREEN,LINETHICK1;操盘:=MA(CLOSE,9),COLORFF9C65,LINETHICK2;界点:=MA(CLOSE,20);AH:HHV(H,100);AL:LLV(L,100);AHL:=AH-AL;A23:AL+AHL*0.236,COLORBLUE;A38:AL+AHL*0.382,COLORGREEN;A61:AL+AHL*0.618,COLORFF9CFF;A76:AL+AHL*0.764,COLORF0F000;A77:AL+AHL*0.500,COLORRED;DRAWTEXT(ISLASTBAR,AH,'100% '),COLORAAAAAA;DRAWTEXT(ISLASTBAR,A76,'0.764% '),COLORAAAAAA,LINETHICK2;DRAWTEXT(ISLASTBAR,A77,'0.500% '),COLORAAAAAA,LINETHICK2;DRAWTEXT(ISLASTBAR,A61,'0.618% '),COLOR00AAAA,LINETHICK2;DRAWTEXT(ISLASTBAR,A38,'0.382% '),COLOR00AAAA,LINETHICK2;DRAWTEXT(ISLASTBAR,A23,'0.236% '),COLORAAAAAA,LINETHICK2;DRAWTEXT(ISLASTBAR,AL,'最低'),COLORAAAAAA,LINETHICK2;VAR1:=C-REF(C,1);VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);MA5:=EMA(C,5);MA13:=EMA(C,13);UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS (MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS(MA13,MA5))+1),0),COLOR00FF00;BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);STICKLINE(BT,H,L,2,0),COLORRED;DRAWTEXT(BT,C*0.92,'短牛'),COLORRED;TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82; STICKLINE(TJ1,H,L,2,0),COLORMAGENTA;DRAWTEXT(TJ1,C*0.89,'中牛'),COLORMAGENTA;HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;STICKLINE(TJ2,H,L,2,0),COLORYELLOW;DRAWTEXT(TJ2,L*0.90,'大牛'),COLORYELLOW;ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);STICKLINE(ST,H,L,2,0),COLORGREEN;DRAWTEXT(ST,H*1.02,'卖'),COLOR00FF00;VAR11:=MA(C,9),COLORRED;上升通道:IF(VAR11>REF(VAR11,1),VAR11,DRAWNULL),LINETHICK3,COLORRED;下降通道:IF(VAR11<REF(VAR11,1),VAR11,DRAWNULL),LINETHICK3,COLORGREEN;。
黄金波动主图指标通达信指标公式源码
STICKLINE(启爆,C,O,3,1),COLORWHITE;
STICKLINE(启爆,C,O,1,0),COLORGREEN;
STICKLINE(C>=O ,HIGH,LOW,0,1 ),COLORRED;
STICKLINE(C>=O ,OPEN,CLOSE,3.1,0 ),COLOR000033;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.09,'【风险区】--高抛避险'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.3,'【警示区】--逢高减仓'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.45,'【突破区】--主力拉升'),COLORFFFFFF;
STICKLINE(CLOSE<O ,OPEN,CLOSE,0.3,0 ),COLORCYAN;
CC:IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLOR000000,NODRAW;
止赢:1.05*CC,COLORMAGENTA,LINETHICK1;
DRAWTEXT(CURRBARSCOUNT=N/4+5,GD-KJ*0.55,'【拉升区】--强势畜锐'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=N/4+5,DD+KJ/3,'【关注区】--逢低买入'),COLORFFFFFF;
通达信黄金线主图指标公式
通达信黄金线主图指标公式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;。
通达信主升浪狙击100%准确通达信指标公式源码
通达信主升浪狙击100%准确副图源码如下:MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);A1:=IF(C>=MA5,1,-1);A2:=IF(C>=MA10,1,-1);A3:=IF(C>=MA20,1,-1);A4:=IF(MA5>=REF(MA5,1),1,-1);A5:=IF(MA10>=REF(MA10,1),1,-1);A6:=IF(MA20>=REF(MA20,1),1,-1);趋势:(A1+A2+A3+A4+A5+A6)/6*100,COLOR00FF00;主升浪:趋势>=50,COLOR0000FF,POINTDOT,NODRAW;↓:趋势<50,COLORFFFFFF,POINTDOT,NODRAW;周期:IF(主升浪,BARSLAST(CROSS(主升浪,0.1))+1,0),COLORFF00FF,POINTDOT,NODRAW;临界:IF(CROSS(98,趋势),1,0),COLOR00FF00,POINTDOT,NODRAW; WKQY:=BARSLAST(CROSS(50,趋势))<MIN(BARSLAST(CROSS(趋势,1)),BARSLAST(CROSS(趋势,-1)));挖坑:BETWEEN(趋势,-1,50) AND WKQY,COLOR00FFFF,POINTDOT,NODRAW; {以下设置副图显示方式}DRAWBAND(趋势,RGB(250,0,0),50,RGB(0,0,0));AA:=IF(挖坑,趋势,50);DRAWBAND(50,RGB(250,250,0),AA,RGB(0,0,0));STICKLINE(主升浪,周期*0.8,周期*0.95,3,0),COLOR0000FF;STICKLINE(主升浪,周期*1.05,周期*1.2,3,0),COLOR0000FF;STICKLINE(主升浪AND C<REF(C,1),周期*0.9,周期*1.1,3,1),COLORFFFFFF; STICKLINE(CROSS(主升浪,0.1),0,100,0,-1),COLOR0000FF;DRAWTEXT(临界,90,'☆'),COLOR00FF00;平:0,COLORFFFFFF;STICKLINE(C>0,50,50,1,0),COLOR000000;%:趋势,COLOR00FF00;{以下设置文字提示部分}DRAWTEXT(CURRBARSCOUNT=60,20,'====★趋势为王.顺势而为!★===='),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=58,-30,'■只做主升, 挖坑低吸!'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=58,-60,'●临界不涨, 逢高离场!'),COLOR00FFFF;。
【炒股必看】通达信抓住主升浪主图指标公式
通达信抓住主升浪主图指标公式A:EMA(C,21)COLORBLUE,LINETHICK3;B:=A<REF(A,1);IF(B-1,A,DRAWNULL)COLORRED,LINETHICK3;AA:=EMA(C,3) > EMA(C,21);BB:=EMA(C,3) < EMA(C,21);CC:= EMA(C,3) > EMA(C,8);CC1:=EMA(C,3) < EMA(C,8);DD:=CLOSE<OPEN;STICKLINE(AA,H,L,0,0),COLOR007FFF;STICKLINE(AA,O,C,3,1),COLOR007FFF;STICKLINE(AA AND DD,O,C,3,0),COLOR007FFF;STICKLINE(BB,H,L,0,0),COLORGREEN;STICKLINE(BB,O,C,3,1),COLORGREEN;STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;STICKLINE(BB AND CC,H,L,0,1),COLORF00FF0;STICKLINE(BB AND CC,O,C,3,1),COLORF00FF0;STICKLINE(BB AND CC AND DD,O,C,3,0),COLORF00FF0; STICKLINE(AA AND CC1,H,L,0,0),COLORBLUE;STICKLINE(AA AND CC1,O,C,3,1),COLORBLUE;STICKLINE(AA AND CC1 AND DD,O,C,3,0),COLORBLUE;买线:=MA(CLOSE,9),LINETHICK2;卖线:=MA(CLOSE,20);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);DRAWTEXT(BU,L-0.1,'建仓')COLORYELLOW;DRAWTEXT(SEL,H+0.1,'空仓');A2:=(C-REF(C,1))/REF(C,1)*100<1.02;A3:=H>MA(C,5)*1.12;AAA:= A2 AND A3;DRAWTEXT(AAA,H*1.05,'卖点'),COLORWHITE;EMA13:=EMA(C,13),COLOR0000FF,LINETHICK2;EMA34:=EMA(C,34),COLORYELLOW;EMA55:=EMA(C,55),COLORFF00FF;EMA120:=EMA(C,120),COLORFFCC66;AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10);DRAWTEXT(AR6,L-0.09,'启动'),COLORYELLOW;STICKLINE(AR6,H,L,3,0),LINETHICK2,COLORYELLOW;BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;BR3:=C>EMA55 AND (REF(C,1)<REF(EMA55,1) OR REF(C,2)<REF(EMA55,2) OR REF(C,3)<REF(EMA55,3) OR REF(C,4)<REF(EMA55,4) OR REF(C,5)<REF(EMA55,5)); BR4:=BR1 AND BR2 AND BR3;DRAWTEXT(BR4 AND FILTER(BR4,10),L-0.09,'上升'),COLOR00C5FF;STICKLINE(BR4 AND FILTER(BR4,10),O,C,3,1),LINETHICK2,COLOR00C5FF;CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;CR2:=V>MA(V,5)*0.6;CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;CR4:=ABS(EMA34-EMA55)/EMA55<0.03;CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);CR6:=FILTER(CR1 AND CR2 AND CR3 AND CR4 AND CR5,2);STICKLINE(CR6,O,C,3,1),LINETHICK2,COLORF00FF0;DRAWTEXT(CR6,L-0.09,'涨升'),COLORF00FF0;DR1:=EMA13>EMA34 AND EMA34<EMA55;DR2:=BARSLAST(CROSS(C,EMA55) );DR3:=H=HHV(H,DR2);DR4:=BARSLAST(DR3);DR5:=COUNT(O>C AND C<REF(C,1) AND C>EMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),DR4)=1;DR6:=C>REF(C,1) ;DR7:= DR1 AND DR5 AND DR6 ;DR8:=DR7 AND FILTER(DR7 ,10);DRAWTEXT(DR8,L-0.09,'出击'),COLORD6BA63;ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55); DRAWTEXT(ER,L-0.09,'金叉'),COLOR0099FF;FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34); DRAWTEXT(FR,L-0.09,'加仓'),COLORWHITE;GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;DRAWTEXT(GR6 AND GR7,H+0.13,'了结'),COLOR00FF00;HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.3,'推进'),COLORFFC8FF;STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,1),LINETHICK2,COLORFFC8FF;VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2:=CROSS(VAR1,0.9);VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);VAR4:=CROSS(VAR3,0.9);压力:= REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLOREA91B5;STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),2,1), COLOREA91B5,LINETHICK3;支撑:= REF(LOW,BARSLAST(VAR4)), POINTDOT,COLOR00B4FF;STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),2,1), COLOR00B4FF,LINETHICK3;下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);ARSV:=SMA(下档线,3,1);AK:=SMA(ARSV,3,1);AD:=((3 * ARSV) - (2 * AK));AJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);ARSV24:=SMA(AJ12,3,1);AK24:=SMA(ARSV24,3,1);AD24:=((3 * ARSV24) - (2 * AK24));撑:=IF(CROSS(AD24,AD),HIGH,REF(HIGH,BARSLAST(CROSS(AD24,AD))));撑压位:=IF(ISLASTBAR ,撑,DRAWNULL);底底:=LLV(HIGH,30);底:=IF(ISLASTBAR ,底底,DRAWNULL);STICKLINE(ISLASTBAR ,撑压位,撑压位,100,1),LINETHICK1,COLORFFFFFF;STICKLINE(ISLASTBAR ,底,底,80,1),COLOR00FF00,LINETHICK1;。
黄金主升浪主图指标通达信指标公式源码
看图是不是主升浪M3:= EMA(CLOSE,3);M8: EMA(CLOSE,8), , COLORGREEN;M13: EMA(M8,13), , COLORRED;VAR1:=EMA(M13,62);VAR2:=(CLOSE+HIGH+LOW)/3;VAR3:=EMA(VAR2,10);VAR4:=REF(VAR3,1);STICKLINE(VAR3>VAR4,VAR3,VAR4,4,0), , COLORYELLOW; STICKLINE(VAR3<VAR4,VAR3,VAR4,4,0), , COLORBLUE;VAR5:=(REF(HIGH,1)+REF(LOW,1))/2;VAR6:=MA(CLOSE,N)+2*STD(CLOSE,N);DRAWTEXT(CROSS(VAR3,VAR4),VAR3*0.98,''),COLORYELLOW;DRAWTEXT(CROSS(VAR5,VAR6),HIGH*1.04,'↓高位'), , COLORGREEN;VAR7:=REF(CLOSE,1);VAR8:=SMA(MAX(CLOSE-VAR7,0),N1,1)/SMA(ABS(CLOSE-VAR7),N1,1)*100;VAR9:=CROSS(N2,VAR8);VARA:=FILTER(VAR9,4);DRAWTEXT(VARA,HIGH*1.04,''), , COLORWHITE;VARB:=(2*CLOSE+HIGH+LOW)/4;VARC:=LLV(LOW,34);VARD:=HHV(HIGH,34);VARE:=EMA((VARB-VAR1)/(VAR5-VAR1)*100,7);VARF:=EMA(0.667*REF(VARE,1)+0.333*VARE,5);DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.6 AND VOL>=1.5*MA(VOL,5) AND COUNT(VARE>=VARF,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'●买进'), , {00010001};DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>0.6 AND COUNT(VARE>VARF,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) ANDOPEN>REF(CLOSE,1),1,0),LOW,'●买进'), , COLORYELLOW;VAR10:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<VAR10 AND VOL/240>MA(VOL,5)/240 ANDCLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'●抄底'), , COLORRED;BB:=HHV(HHV(LOW,14),60);X:=HHV(MA((L+H+C)/3,8),60),COLORFF6600;。
通达信主升浪指标公式
通达信主升浪指标公式主升浪指标=(最高价-最低价)/(最高价+最低价)*成交量主升浪指标的计算方法与其他指标类似,主要包括以下几个步骤:1.选择合适的时间周期,一般选择较长的周期,如日线或周线。
2.分别计算每个周期内的最高价和最低价,记为H和L。
3.计算每个周期内的成交量,记为V。
4.根据公式,计算主升浪指标。
主升浪指标的含义是在升浪末端,市场上出现了较大的交易量,并且最高价与最低价之差相对较大,这表明市场上的买入力量比卖出力量更强,预示着升势可能即将结束,进入调整或下跌的阶段。
主升浪指标的特点是低调,即其数值一般较小,不像其他指标那样有明显的高点或低点。
因此,需要结合市场目前的走势和其他指标一起使用,才能更好地预测市场未来的走势。
通达信主升浪指标的优点是简单易懂,计算方法清晰明了。
同时,它可以与其他指标相结合,进一步提高预测的准确性。
但是,主升浪指标也存在一些局限性,例如,它只能用于预测升浪的末端,对于其他市场走势的预测能力较弱。
在使用主升浪指标时,需要注意以下几点:1.结合其他指标使用:主升浪指标只是辅助指标之一,单独使用的效果较差。
可以结合其他技术指标,如移动平均线、相对强弱指标等进行综合分析。
2.观察大盘走势:主升浪指标属于宏观指标,对于整个市场的走势具有较好的预测能力。
因此,在使用主升浪指标时,需要同时观察大盘的走势,以更好地把握市场的变化。
3.注意市场风险:任何技术指标都不是绝对准确的,市场风险始终存在。
因此,在使用主升浪指标时,要谨慎决策,并根据市场实际情况进行调整。
总之,通达信主升浪指标是一种简单易懂的预测升浪末端的技术指标,它的计算方法清晰明了,并且可以与其他指标相结合使用。
但是,在使用该指标时,需要结合市场走势和其他指标进行综合分析,同时注意市场风险,做出谨慎决策。
黄金阶梯源码通达信指标公式源码
DRAWGBK(C>0, RGB(0,0,50),RGB(00,0,0),0,0,1);DRAWKLINE(H,O,L,C);买线:=EMA(C,3);卖线:=EMA(SLOPE(C,25)*18+C,55);BU:=CROSS(买线,卖线);SEL:=CROSS(卖线,买线);ISDOWN:=IF(CLOSE<OPEN,1,0);ISUP:=IF(CLOSE>OPEN,1,0);STICKLINE(买线<卖线AND ISDOWN,HIGH,OPEN,0,0),COLORCYAN;STICKLINE(买线<卖线AND ISDOWN,CLOSE,OPEN,3,0),COLORCYAN;STICKLINE(买线<卖线AND ISDOWN,CLOSE,LOW,0,0),COLORCYAN;STICKLINE(买线>=卖线AND ISUP,HIGH,CLOSE,0,1),COLORRED;STICKLINE(买线>=卖线AND ISUP,CLOSE,OPEN,3,1),COLORRED;STICKLINE(买线>=卖线AND ISUP,OPEN,LOW,0,1),COLORRED;STICKLINE(买线>=卖线AND ISDOWN,CLOSE,LOW,0,0),COLORRED;STICKLINE(买线>=卖线AND ISDOWN,HIGH,OPEN,0,0),COLORRED;STICKLINE(买线>=卖线AND ISDOWN,CLOSE,OPEN,3,1),COLORRED,LINETHICK2; STICKLINE(买线>=卖线AND ISDOWN,CLOSE*1.0018,OPEN*0.9988,1.8,0),COLORCYAN; STICKLINE(买线<卖线AND ISUP,HIGH,CLOSE,0,1),COLORCYAN;STICKLINE(买线<卖线AND ISUP,CLOSE,OPEN,3,1),COLORCYAN;STICKLINE(买线<卖线AND ISUP,OPEN,LOW,0,1),COLORCYAN;{MA1:MA(CLOSE,5);MA2:MA(CLOSE,13),LINETHICK2;MA3:MA(CLOSE,21);MA4:MA(CLOSE,62),LINETHICK2;MA120:MA(CLOSE,120);MA6:MA(CLOSE,250);}DRAWBMP(BU=1,L,'B');DRAWBMP(SEL=1,HIGH*1.038,'S');{===================================================== =}范围高A:=REFDATE(HHV(H,120),DATE)*1.05;范围低A:=REFDATE(LLV(L,120),DATE)*0.95;MA5:=MA(C,5),COLORCYAN,LINETHICK2;MA24:=MA(C,24),COLORGREEN,LINETHICK2;MA72:=MA(C,72),COLORRED,LINETHICK2;MA200:=IF((MA(C,200)<=范围高A AND MA(C,200)>=范围低A) ORC>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;{=======================仪表盘=========================} 主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 ANDMA72>IF(MA200=DRAWNULL,0,MA200);主浪回调:=ISLASTBAR AND MA24>MA5 AND MA5>MA72 ANDMA72>IF(MA200=DRAWNULL,0,MA200);主浪深调:=ISLASTBAR AND MA24>MA72 AND MA72>MA5 ANDMA5>IF(MA200=DRAWNULL,0,MA200);初升浪:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MAX(MA24,MA72) AND MA5>MA24 AND MA24>MA72;底部反弹:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 ANDMA72>MA24 AND MA5>MA24;探底阶段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 ANDMA72>MA24 AND MA24>MA5;观望:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24>MA72 AND C<MA72,MA72>MA200 AND C<MA200);有牛:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 ANDC>=MA72,MA72<MA200 AND C>=MA200);放弃:=ISLASTBAR AND IF(MA200=DRAWNULL,MA24<MA72 AND C<MA72,MA72<MA200 AND C<MA200);DRAWGBK(显示仪表盘1=1 AND 主升浪=0 AND 主浪回调=0 AND 主浪深调=0 AND 初升浪=0 AND 底部反弹=0 AND 探底阶段=0 AND 观望=0 AND 有牛=0 AND 放弃=0,0,0,0,'观望',0)COLOR00BF00;DRAWGBK(显示仪表盘1=1 AND 主升浪,0,0,0,'主升浪',0)COLORFF00FF;DRAWGBK(显示仪表盘1=1 AND 主浪回调,0,0,0,'主浪回调',0)COLORFF8080; DRAWGBK(显示仪表盘1=1 AND 主浪深调,0,0,0,'主浪深调',0)COLOR009500; DRAWGBK(显示仪表盘1=1 AND 初升浪,0,0,0,'初升浪',0)COLOR00FFFF; DRAWGBK(显示仪表盘1=1 AND 底部反弹,0,0,0,'底部反弹',0)COLORFFFF00; DRAWGBK(显示仪表盘1=1 AND 探底阶段,0,0,0,'探底阶段',0);DRAWGBK(显示仪表盘1=1 AND 观望,0,0,0,'观望',0)COLORFFFF00;DRAWGBK(显示仪表盘1=1 AND 有牛,0,0,0,'有牛',0)COLOR00FFFF;DRAWGBK(显示仪表盘1=1 AND 放弃,0,0,0,'放弃',0)COLOR00BF00;高1:=REF(HHV(H,120),3);低1:=REF(LLV(L,120),3);H1:=高1-(高1-低1)*0.191;H2:=高1-(高1-低1)*0.382;H3:=高1-(高1-低1)*0.5;H4:=高1-(高1-低1)*0.618;H5:=高1-(高1-低1)*0.809;突破:=REF(EMA(C,55),1);A1X:=(EMA(C,10)-突破)/突破*100;基准:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAS T(CROSS(0,A1X))+1));STICKLINE(A1X>=0,基准,突破,5,0),COLOR000099;STICKLINE(A1X<0,基准,突破,5,0),COLOR00CC66;AA:=CROSS(A1X,0),LINETHICK0;STICKLINE(A1X>=0,C,O,2.7,0),COLOR0011FF;STICKLINE(A1X>=0,C,O,1.8,0),COLOR0044FF;STICKLINE(A1X>=0,C,O,0.9,0),COLOR0077FF;STICKLINE(A1X>=0,C,O,0.1,0),COLOR0099FF;STICKLINE(A1X>=0,H,L,0,0),COLOR0099FF;STICKLINE(AA,C,O,2.7,0),COLOR330033;STICKLINE(AA,C,O,1.8,0),COLOR770077;STICKLINE(AA,C,O,0.9,0),COLORBB00BB;STICKLINE(AA,C,O,0.1,0),COLORFF00FF;STICKLINE(AA,H,L,0,0),COLORFF00FF;{DRAWICON(AA,C*0.92,9);}DRAWTEXT(AA,C*0.98,'买'),COLORRED;BB:=CROSS(0,A1X),LINETHICK0;STICKLINE(A1X<0,C,O,2.7,0),COLORAAAAAA;STICKLINE(A1X<0,C,O,1.8,0),COLORCCCCCC; STICKLINE(A1X<0,C,O,0.9,0),COLORDDDDDD; STICKLINE(A1X<0,C,O,0.1,0),COLORFFFFFF; STICKLINE(A1X<0,H,L,0,0),COLORFFFFFF; STICKLINE(BB,C,O,2.7,0),COLOR333300; STICKLINE(BB,C,O,1.8,0),COLOR555500; STICKLINE(BB,C,O,0.9,0),COLOR777700; STICKLINE(BB,C,O,0.1,0),COLOR999900; STICKLINE(BB,H,L,0,0),COLOR999900;{ DRAWICON(BB,C*1.05,15);} DRAWTEXT(BB,C*1.01,'卖'),COLOR00FF00;。
通达信主升浪狙击100%准确通达信指标公式源码
通达信主升浪狙击100%准确副图源码如下:MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);A1:=IF(C>=MA5,1,-1);A2:=IF(C>=MA10,1,-1);A3:=IF(C>=MA20,1,-1);A4:=IF(MA5>=REF(MA5,1),1,-1);A5:=IF(MA10>=REF(MA10,1),1,-1);A6:=IF(MA20>=REF(MA20,1),1,-1);趋势:(A1+A2+A3+A4+A5+A6)/6*100,COLOR00FF00;主升浪:趋势>=50,COLOR0000FF,POINTDOT,NODRAW;↓:趋势<50,COLORFFFFFF,POINTDOT,NODRAW;周期:IF(主升浪,BARSLAST(CROSS(主升浪,0.1))+1,0),COLORFF00FF,POINTDOT,NODRAW;临界:IF(CROSS(98,趋势),1,0),COLOR00FF00,POINTDOT,NODRAW; WKQY:=BARSLAST(CROSS(50,趋势))<MIN(BARSLAST(CROSS(趋势,1)),BARSLAST(CROSS(趋势,-1)));挖坑:BETWEEN(趋势,-1,50) AND WKQY,COLOR00FFFF,POINTDOT,NODRAW; {以下设置副图显示方式}DRAWBAND(趋势,RGB(250,0,0),50,RGB(0,0,0));AA:=IF(挖坑,趋势,50);DRAWBAND(50,RGB(250,250,0),AA,RGB(0,0,0));STICKLINE(主升浪,周期*0.8,周期*0.95,3,0),COLOR0000FF;STICKLINE(主升浪,周期*1.05,周期*1.2,3,0),COLOR0000FF;STICKLINE(主升浪AND C<REF(C,1),周期*0.9,周期*1.1,3,1),COLORFFFFFF; STICKLINE(CROSS(主升浪,0.1),0,100,0,-1),COLOR0000FF;DRAWTEXT(临界,90,'☆'),COLOR00FF00;平:0,COLORFFFFFF;STICKLINE(C>0,50,50,1,0),COLOR000000;%:趋势,COLOR00FF00;{以下设置文字提示部分}DRAWTEXT(CURRBARSCOUNT=60,20,'====★趋势为王.顺势而为!★===='),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=58,-30,'■只做主升, 挖坑低吸!'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=58,-60,'●临界不涨, 逢高离场!'),COLOR00FFFF;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
看图是不是主升浪
M3:= EMA(CLOSE,3);
M8: EMA(CLOSE,8), , COLORGREEN;
M13: EMA(M8,13), , COLORRED;
VAR1:=EMA(M13,62);
VAR2:=(CLOSE+HIGH+LOW)/3;
VAR3:=EMA(VAR2,10);
VAR4:=REF(VAR3,1);
STICKLINE(VAR3>VAR4,VAR3,VAR4,4,0), , COLORYELLOW; STICKLINE(VAR3<VAR4,VAR3,VAR4,4,0), , COLORBLUE;
VAR5:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR6:=MA(CLOSE,N)+2*STD(CLOSE,N);
DRAWTEXT(CROSS(VAR3,VAR4),VAR3*0.98,''),COLORYELLOW;
DRAWTEXT(CROSS(VAR5,VAR6),HIGH*1.04,'↓高位'), , COLORGREEN;
VAR7:=REF(CLOSE,1);
VAR8:=SMA(MAX(CLOSE-VAR7,0),N1,1)/SMA(ABS(CLOSE-VAR7),N1,1)*100;
VAR9:=CROSS(N2,VAR8);
VARA:=FILTER(VAR9,4);
DRAWTEXT(VARA,HIGH*1.04,''), , COLORWHITE;
VARB:=(2*CLOSE+HIGH+LOW)/4;
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=EMA((VARB-VAR1)/(VAR5-VAR1)*100,7);
VARF:=EMA(0.667*REF(VARE,1)+0.333*VARE,5);
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.6 AND VOL>=1.5*MA(VOL,5) AND COUNT(VARE>=VARF,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'●买进'), , {00010001};
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>0.6 AND COUNT(VARE>VARF,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
OPEN>REF(CLOSE,1),1,0),LOW,'●买进'), , COLORYELLOW;
VAR10:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE<VAR10 AND VOL/240>MA(VOL,5)/240 AND
CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'●抄底'), , COLORRED;
BB:=HHV(HHV(LOW,14),60);
X:=HHV(MA((L+H+C)/3,8),60),COLORFF6600;。