神手抄底逃顶主图通达信指标公式源码

合集下载

通达信指标公式源码 常用的经典抓牛逃顶抄底附图

通达信指标公式源码 常用的经典抓牛逃顶抄底附图

最近大盘风险来临,发个经典抄底逃顶指标,帮帮大家减少不必要的亏损使用方法,指标泛绿,注意卖出,红色,随时出现上涨,短牛大牛等信号共振,容易涨停!!!弱势防止假信号,指标有未来函数,但是安全的!N1:=5;N2:=10;STICKLINE(C>0,0,10,15,0),COLOR781816;LC:=REF(CLOSE,1);RSI5:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*10,COLORFF0 0FF,LINETHICK1;RSI10:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLOR00 FFFF;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,BARSLAS T(CROSS(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSL AST(CROSS(MA5,MA13))+1),0),COLOR0000FF;DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BA RSLAST(CROSS(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAS T(CROSS(MA13,MA5))+1),0),COLOR00FF00;BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) ANDCROSS(VAR2,MA(VAR2,2))) ANDREF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);0,COLORFF00FF;10,COLORFF0000;STICKLINE(UP,0,0.2,3,0),COLOR0000FF;STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;STICKLINE(BT,0,3,2,0),COLOR000088;STICKLINE(BT,0,3,1,0),COLOR0000CC;STICKLINE(BT,0,3,0.22,0),COLOR0000FF;DRAWTEXT(BT,3,'短牛'),COLOR0000FF;TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) ANDC<HHV(H,21)*0.82;STICKLINE(TJ1,0,2,3,0),COLOR880088;STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF;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,0,1,5,0),COLOR008888;STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF;DRAWTEXT(TJ2,1,'大牛'),COLOR00FFFF;ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);STICKLINE(ST,10,9,5,0),COLOR008800;STICKLINE(ST,10,9,2,0),COLOR00AA00;STICKLINE(ST,10,9,1,0),COLOR00CC00;STICKLINE(ST,10,9,0.2,0),COLOR00FF00;DRAWTEXT(ST,9,'卖'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=89,9.5,'★途中慎用!!'),COLOR0000FF; DRAWTEXT(CURRBARSCOUNT=89,8.7,'★大牛:长线大牛股,目标翻倍;中短牛:15天目标10%-20%!!'),COLOR0078FF;DRAWTEXT(CURRBARSCOUNT=89,8.0,'★以上信号!!'),COLOR00FF00; DRAWTEXT(CURRBARSCOUNT=89,7.3,'★当大牛\中牛\短牛,果断买入!!'),COLOR00FFFF;清仓:=1.66*MA(FORCAST(CLOSE,2),40),COLORRED;出货:=1.36*MA(FORCAST(CLOSE,2),40),COLOR08FFFF;高抛:=1.16*MA(FORCAST(CLOSE,2),40),COLORFF82FF;低吸:=0.82*MA(FORCAST(CLOSE,2),40),COLORF7E300;满仓:=0.72*MA(FORCAST(CLOSE,2),40),COLORGREEN;强通1:=清仓>REF(清仓,1),;强通2:=出货>REF(出货,1),;强通3:=高抛>REF(高抛,1),;强通4:=低吸>REF(低吸,1),;强通5:=满仓>REF(满仓,1),;上升通道:=强通1 AND 强通2 AND 强通3 AND 强通4 AND 强通5,;。

抄底指标通达信指标公式源码

抄底指标通达信指标公式源码

指标王:=COUNT(CROSS((HHV(HIGH,25)-LLV(LOW,25))/EMA(CLOSE-LLV(LOW,25),5),EMA((CL OSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5)),7)>0 AND REF((HHV(HIGH,25)-LLV(LOW,25))/EMA(CLOSE-LLV(LOW,25),5),2)<REF((HHV(HIGH,25)-LLV(LOW,25))/EMA(CLOSE-LLV(LOW,25),5),1) AND (HHV(HIGH,25)-LLV(LOW,25))/EMA(CLOSE-LLV(LOW,25),5)<REF((HHV(HIGH,25)-LLV(LO W,25))/EMA(CLOSE-LLV(LOW,25),5),1) AND COUNT(COUNT(CROSS((HHV(HIGH,25)-LLV(LOW,25))/EMA(CLOSE-LLV(LOW,25),5),EMA( (CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5)),7)>0 AND REF((HHV(HIGH,25)-LLV(LOW,25))/EMA(CLOSE-LLV(LOW,25),5),2)<REF((HHV(HIGH,25)-LLV(LOW,25))/EMA(CLOSE-LLV(LOW,25),5),1) AND (HHV(HIGH,25)-LLV(LOW,25))/EMA(CLOSE-LLV(LOW,25),5)<REF((HHV(HIGH,25)-LLV(LO W,25))/EMA(CLOSE-LLV(LOW,25),5),1),5)=1 OR CROSS(EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,4),0.3);VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR5:=(VAR2+2*VAR3+3*VAR4)/7;VAR6:=MA(VAR5,1);买点1:=VAR6<=(-8);BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);买点2:=CROSS(BIAS,乖离) AND 乖离<(-9.5);一线:指标王AND 买点1 AND 买点2;。

通达信绝无仅有的指标,太准确了!抄底逃顶,绝了!

通达信绝无仅有的指标,太准确了!抄底逃顶,绝了!

通达信绝无仅有的指标,太准确了!抄底逃顶,绝了!抄底逃顶,绝了!该指标绝对没有未来函数,绝对好用的傻瓜指标。

实现了三个超级:超级准确!超级简单!超级直观!原创指标!源码DIFF:=(EMA(CLOSE,9) - EMA(CLOSE,27));DEA:=EMA(DIFF,6);MACD2:=(2 * (DIFF - DEA))*15;E:=DIFF*100;MA1:MA(E,5),COLORYELLOW,LINETHICK2;MA2:MA(E,10);MA3:MA(E,20);STICKLINE(E<REF(E,1),E,MA(E,1),2,0),COLORD9D919; STICKLINE(E<REF(E,2),E,MA(E,2),2,0),COLORD9D919; STICKLINE(E<REF(E,3),E,MA(E,3),2,0 ),COLORD9D919; STICKLINE(E<REF(E,4),E,MA(E,4),2,0 ),COLORD9D919; STICKLINE(E> REF(E,4),E,EMA(E,4),2,0) ,COLORRED; STICKLINE(E> REF(E,3),E,EMA(E,3),2,0) ,COLORRED; STICKLINE(E> REF(E,2),E,EMA(E,2),2,0) ,COLORRED; STICKLINE(E> REF(E,1),E,EMA(E,1),2,0) ,COLORRED; DIF:=(EMA(CLOSE,4) - EMA(CLOSE,13));F:=DIF*200;MA5:=MA(F,5);STICKLINE(F<REF(F,1),F,MA(F,1),2,0),COLORD9D919; STICKLINE(F<REF(F,2),E,MA(F,2),2,0),COLORD9D919; STICKLINE(F<REF(F,3),E,MA(F,3),2,0 ),COLORD9D919; STICKLINE(F<REF(F,4),E,MA(F,4),2,0 ),COLORD9D919; STICKLINE(F> REF(F,4),E,EMA(F,4),2,0) ,COLORRED; STICKLINE(F> REF(F,3),E,EMA(F,3),2,0) ,COLORRED; STICKLINE(F> REF(F,2),E,EMA(F,2),2,0) ,COLORRED; STICKLINE(F> REF(F,1),E,EMA(F,1),2,0) ,COLORRED; DRAWICON (CROSS(E,MA1),MA1-10,11); DRAWICON (CROSS(MA1,E),MA1+10,12);AA:=E<MA1 AND E>REF(E,1) ;DRAWICON(AA,MA1-20,36);BB:=E>MA1 AND E<=REF(E,1);DRAWICON(BB,MA1+20,37);。

通达信分享一个抄底逃顶的附图指标无加密感觉比较稳妥

通达信分享一个抄底逃顶的附图指标无加密感觉比较稳妥

通达信分享一个抄底逃顶的附图指标无加密感觉比较稳妥BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100; BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;MN:=MA(MM,3);VAR24:=LLV(LOW,36);VAR25:=HHV(HIGH,30);VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25;底背离:IF(MN<-4 ,17,0),COLORA67D3D,LINETHICK3;顶背离: IF((VAR26>90),17,0), COLOR6B238E,LINETHICK3;IF(MN<-4 ,12,0),COLORBLACK,LINETHICK3;IF((VAR26>90),12,0), COLORBLACK,LINETHICK3;DRAWTEXT(底背离,6,'底背离'),COLORA67D3D;DRAWTEXT(顶背离,6,'顶背离'),COLORGREEN;N:=20;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);股价线:(C-LB1)/(UB-LB)*100,COLORGREEN, LINETHICK1;趋势线:MA(股价线,6),COLORRED, LINETHICK3;90,COLORGREEN, LINETHICK1;50,COLORWHITE, LINETHICK1;0,COLORWHITE, LINETHICK1;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORFF00FF,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),80,100) ,COLORFFFF00,LINETHICK3;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;下单:IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1 00,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),38,0),STICK ,COLORYELLOW, LINETHICK4; DRAWTEXT(下单,38,'下单!'),COLORGREEN;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离1:=MA(BIAS,3);乖离:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORRED,LINETHICK2;IF(CROSS(BIAS,乖离1) AND 乖离1<-9,18,0),COLORRED,LINETHICK2; STICKLINE(CROSS(BIAS,乖离1) AND 乖离1<-9,-12,0,6,0),COLORYELLOW;DRAWTEXT(乖离,18,'低买'),COLORRED;TRJ:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH -REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) / TRJ);辅助线:=((DMM * 100) / TRJ);动向趋势线:=(MA(((ABS((辅助线- 神偷线)) / (辅助线+ 神偷线)) * 100),3)); ADXR:=((动向趋势线+ REF(动向趋势线,3)) / 2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);快买:( IF(((动向趋势线> 88) AND (神偷线<5.8)),68,0)),LINETHICK1,COLORFF00FF;( IF(((动向趋势线> 88) AND (神偷线<5.8)),48,0)),LINETHICK1,COLORFF00FF;DRAWTEXT(快买,60,'准备'),COLORFF00FF;MA2:=EMA(C,2);MA5:=EMA(C,5);MA13:=EMA(C,13);MA30:= EMA(C,30);MA55:=EMA(C,55);YCX:=MA5>=REF(MA5,1);H1:=MAX(MAX(MA5, MA13),MA30 );L1:=MIN(MIN(MA5,MA13),MA30);一阳穿三线:= H1REF(MA2,1);满仓选股:IF(一阳穿三线,88,0),COLORFFFF00,LINETHICK2;IF(一阳穿三线,58,0),COLORFFFF00,LINETHICK2;DRAWTEXT(一阳穿三线,88,'满仓'),COLORYELLOW;VAR2:=0.0001*AMOUNT,;MA1:=0.0001*MA(AMOUNT,5);M2:=0.0001*MA(AMOUNT,10);百日地量:LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0; DRAWTEXT(百日地量,-10,'地量'),COLORRED;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可} DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);JC:IF(SSS-SSB=2 ANDSSS>REF(SSS,1),-22,0),LINETHICK2,COLORFFFF00;IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORFFFF00; DRAWTEXT(A1,-10,'W底'),COLORYELLOW;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);V1:(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));IF(V1,28,0),COLORYELLOW,LINETHICK2;IF(V1,18,0),COLORYELLOW,LINETHICK2;DRAWTEXT(V1,28,'买点'),COLORRED;AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) ANDAA30>REF(AA30,1);(AA30-AA20)<="" bdsfid="169" p="">AA30<ref(aa30,1);< bdsfid="171" p=""></ref(aa30,1);<>BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;狙击选股:FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 ANDREF(C,1)<aa30;< bdsfid="178" p=""></aa30;<>青云直上选股:IF(FILTER(MR,10),30,0),COLORYELLOW,LINETHICK2;IF(FILTER(MR,10),20,0),COLORYELLOW,LINETHICK2;DRAWTEXT(青云直上选股,30,'青云直上'),COLORGREEN;QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM( VOL,13))*100<=-28 AND(CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34 ) )*100<=-19AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND(COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 ANDIF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(S MA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<="" p="">ANDSMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<="" bdsfid="195" p="">(COUNT(C1.1,5)>3),3) ;DRAWTEXT(QUAN,88,'弱市百发百中'),COLORFFFF00;IF(QUAN,88,0),COLORFFFF00,LINETHICK2;IF(QUAN,60,0),COLORFFFF00,LINETHICK2;AA:=1;BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;DRAWTEXT_FIX(CURRBARSCOUNT=60,0.4,0.01,0,'【抄底逃顶战斗机】'),COLORGREEN;CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100>100,1 00,AMOUNT/C/H HV(AMOUNT,9)/HHV(C,9)*100);DD:=CC/BB;DRAWTEXT_FIX(C>O,0.01,0.9,0,'1'),COLORRED;顶部雷达:CROSS(80,RSI)*88,LINETHICK2 ,COLORGREEN;CROSS(80,RSI)*58,LINETHICK2 ,COLORGREEN;DRAWTEXT(CROSS(80,RSI),88,'逃顶'),COLORGREEN;。

通达信指标公式源码买底 逃顶

通达信指标公式源码买底 逃顶

涨势不言顶,跌势不言底,底和顶都是之后走出来的,在趋势没确立之前抄底,逃顶都是徒劳,极少人能够做到抄到最底,逃到最顶,有也是运气罢了。

VARB2:=((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10)))*(100);VARB3:=EMA(VARB2,7);VARB4:=EMA(VARB3,10);VARB5:=(3)*(VARB3)-(2)*(VARB4);VARB6:=EMA(VARB5,5);趋势:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2) *(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));探底:IF((趋势<=5),58,0),COLORFF00FF;桥1:=EMA(VARB6,1);美化:=IF(REF((COUNT((桥1<=REF(桥1,1)),5)=5),1) AND (桥1>REF(桥1,1)),10,0); STICKLINE((美化),-20,20,15,1),COLORFFFF00;MTM1:MA((CLOSE-REF(CLOSE,13))*31,5),LINETHICK1,COLOR7711EE;VARF1:=MA(HHV(HIGH,485),17);VARF2:=MA(HHV(HIGH,222),17);VARF3:=MA(HHV(HIGH,96),17);VARF4:=MA(LLV(LOW,485),17);VARF5:=MA(LLV(LOW,222),17);VARF6:=MA(LLV(LOW,96),17);VARF7:=MA((VARF4*0.96+VARF5*0.96+VARF6*0.96+VARF1*0.558+VARF2*0.558+VAR F3*0.558)/6,17);VARF8:=MA((VARF4*1.25+VARF5*1.23+VARF6*1.2+VARF1*0.55+VARF2*0.55+VARF3* 0.65)/6,17);VARF9:=MA((VARF4*1.3+VARF5*1.3+VARF6*1.3+VARF1*0.68+VARF2*0.68+VARF3*0.68)/6,17);VARFA:=MA((VARF7*3+VARF8*2+VARF9)/6*1.738,17);VARFB:=IF(C=C,VARFA,VARFA*DAY);VARFC:=LOW;VARFD:=REF(LOW,1);VARFE:=SMA(ABS(VARFC-VARFD),3,1)/SMA(MAX(VARFC-VARFD,0),3,1)*100; VARFF:=MA(IF(CLOSE*1.35<=VARFB,VARFE*10,VARFE/10),3);VARF10:=LLV(LOW,30);VARF11:=HHV(VARFF,30);绝佳买点:IF(C=C,MA(IF(LOW<=VARF10,(VARFF+VARF11*2)/2,0),3),100000000)/(200),COLOR RED,LINETHICK2;I:=IF(CLOSE<REF(CLOSE,1),0,VOL/CAPITAL);骤雨初晴:=ABS(EMA(I,13.3)-18)/WINNER(CLOSE)*IF((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)<-0. 04,1,0);W:=COST(10)*0;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA)*231;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.9,0),COLOR00FFFF; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.8,0 ),COLORFFEE44; STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.1,0 ),COLOR0055FF; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.1,0 ),COLORFF55BB; DRAWTEXT(CROSS(绝佳买点,1.20000) ,-32,'疯牛'),COLORYELLOW;DRAWTEXT(CROSS(绝佳买点,4.50000) ,1,'倾家荡产买'),COLOR00FFFF; {DRAWTEXT(CROSS(绝佳买点,7.00000) ,88,'疯牛3'),COLORCYAN,LINETHICK4;} DRAWTEXT(CROSS(绝佳买点,3.60000) ,28,'疯牛2'),COLORFF00FF;{DRAWTEXT(CROSS(绝佳买点,2.40000) ,-55,'疯牛1'),COLORFFFFCC,LINETHICK3 ; };。

通达信成功率很好的抄底逃顶指标公式编程思路破译

通达信成功率很好的抄底逃顶指标公式编程思路破译

通达信成功率很好的抄底逃顶指标公式编程思路破译编程思路破译N赋值:5N1赋值:21抄底逃顶公式赋值:4*(收盘价-N日内最低价的最低值)/(N日内最高价的最高值-N日内最低价的最低值)*100的5日[1日权重]移动平均-3*(收盘价-N日内最低价的最低值)/(N日内最高价的最高值-N日内最低价的最低值)*100的5日[1日权重]移动平均的3.2日[1日权重]移动平均,画黄色,线宽为1指标公式赋值:8,画绿色,线宽为0输出通达信: 如果抄底逃顶公式上穿指标公式,返回60,否则返回0,线宽为2,画淡蓝色当满足条件通达信时,在85位置书写文字,画黄色,画淡蓝色SSDD1赋值: 如果抄底逃顶公式<=8,返回50,否则返回0,画青色,线宽为2输出SSDD2: 20,线宽为2,画淡洋红色GGRRRO5赋值:27日内最低价的最低值GGRRRO6赋值:34日内最高价的最高值GGRRRO7赋值:(收盘价-GGRRRO5)/(GGRRRO6-GGRRRO5)*4的4日指数移动平均*25SSDD3赋值: 如果(GGRRRO7<10),返回100,否则返回118 ,COLOR00CCFF,线宽为1CD1赋值:(9日内最高价的最高值-收盘价)/(9日内最高价的最高值-9日内最低价的最低值)-0.7CD2赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)CD3赋值:CD2的3日[1日权重]移动平均的3日[1日权重]移动平均CD4赋值:(CD3-CD1的9日[1日权重]移动平均)-0.5CD5赋值:如果CD4>0.00,返回CD4,否则返回0.00CD6赋值:1日前的CD5GGRRR81赋值:收盘价的9日简单移动平均,画红色SSDD5赋值:如果CD6-CD5,返回CD6,否则返回CD5,线宽为3,画黄色SSDD6赋值:CD6上穿CD5,STICK,画黄色抄底逃顶公式A赋值:(9日内最高价的最高值-收盘价)/(9日内最高价的最高值-9日内最低价的最低值)*100-70指标公式A赋值:抄底逃顶公式A的9日[1日权重]移动平均+100 GGRRR3A赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100GGRRR4A赋值:GGRRR3A的3日[1日权重]移动平均GGRRR5A赋值:GGRRR4A的3日[1日权重]移动平均+100GGRRR6A赋值:GGRRR5A-指标公式AGGRAA赋值:如果GGRRR6A>N1,返回GGRRR6A-N1,否则返回0,画淡红色输出SSDD7:如果GGRAA上穿0.01,返回72,否则返回0,STICK,画黄色,线宽为9当满足条件SSDD7>0时,在72位置画24号图标XG赋值:GGRAA上穿0.01LC赋值:1日前的收盘价RSI赋值:收盘价-LC和0的较大值的6日[1日权重]移动平均/收盘价-LC的绝对值的6日[1日权重]移动平均*100E赋值:83上穿RSIRSV赋值:(收盘价-7日内最低价的最低值)/(7日内最高价的最高值-7日内最低价的最低值)*100输出SSDD8:RSV的3日[1日权重]移动平均,线宽为2,画红色输出SSDD9:SSDD8的3日[1日权重]移动平均,线宽为3,画黄色当满足条件1日前的GGRAA<GGRAA时,在GGRAA和1日前的GGRAA位置之间画柱状线,宽度为3,0不为0则画空心柱.,画淡洋红色当满足条件1日前的GGRAA>GGRAA时,在GGRAA和1日前的GGRAA位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLORFFCCCC注:馆内各种公式为学习编程而保存,实战使用前一定要看其成功率回测数据和风险提示或者自己亲自测试近期成功率,决不能依据公式名称的描述和形容去投资,据此入市造成投资损失由投资者自己承担。

通达信抄底逃顶没错指标公式

通达信抄底逃顶没错指标公式

通达信抄底逃顶没错指标公式BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100; BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;MN:=MA(MM,3);VAR24:=LLV(LOW,36);VAR25:=HHV(HIGH,30);VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25; 底背离:IF(MN<-4 ,17,0),COLORA67D3D,LINETHICK3;顶背离: IF((VAR26>90),17,0), COLOR6B238E,LINETHICK3; IF(MN<-4 ,12,0),COLORBLACK,LINETHICK3;IF((VAR26>90),12,0), COLORBLACK,LINETHICK3; DRAWTEXT(底背离,6,'底背离'),COLORA67D3D; DRAWTEXT(顶背离,6,'顶背离'),COLORGREEN;N:=20;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);股价线:(C-LB1)/(UB-LB)*100,COLORGREEN, LINETHICK1; 趋势线:MA(股价线,6),COLORRED, LINETHICK3;90,COLORGREEN, LINETHICK1;50,COLORWHITE, LINETHICK1;0,COLORWHITE, LINETHICK1;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORFF00FF,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),80,100) ,COLORFFFF00,LINETHICK3;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;下单: IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),38,0),STICK ,COLORYELLOW, LINETHICK4;DRAWTEXT(下单,38,'下单!'),COLORGREEN;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离1:=MA(BIAS,3);乖离:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORRED,LINETHICK2;IF(CROSS(BIAS,乖离1) AND 乖离1<-9,18,0),COLORRED,LINETHICK2;STICKLINE(CROSS(BIAS,乖离1) AND 乖离1<-9,-12,0,6,0),COLORYELLOW;DRAWTEXT(乖离,18,'低买'),COLORRED;TRJ:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) / TRJ);辅助线:=((DMM * 100) / TRJ);动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);快买:( IF(((动向趋势线> 88) AND (神偷线< 5.8)),68,0)),LINETHICK1,COLORFF00FF;( IF(((动向趋势线> 88) AND (神偷线< 5.8)),48,0)),LINETHICK1,COLORFF00FF;DRAWTEXT(快买,60,'准备'),COLORFF00FF;MA2:=EMA(C,2);MA5:=EMA(C,5);MA13:=EMA(C,13);MA30:= EMA(C,30);MA55:=EMA(C,55);YCX:=MA5>=REF(MA5,1);H1:=MA X(MAX(MA5,MA13),MA30);L1:=MIN(MIN(MA5,MA13),MA30);一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);满仓选股:IF(一阳穿三线,88,0),COLORFFFF00,LINETHICK2;IF(一阳穿三线,58,0),COLORFFFF00,LINETHICK2;DRAWTEXT(一阳穿三线,88,'满仓'),COLORYELLOW;VAR2:=0.0001*AMOUNT,;MA1:=0.0001*MA(AMOUNT,5);M2:=0.0001*MA(AMOUNT,10);百日地量:LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0;DRAWTEXT(百日地量,-10,'地量'),COLORRED;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);JC:IF(SSS-SSB=2 AND SSS>REF(SSS,1),-22,0),LINETHICK2,COLORFFFF00;IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORFFFF00;DRAWTEXT(A1,-10,'W底'),COLORYELLOW;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);V1:(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));IF(V1,28,0),COLORYELLOW,LINETHICK2;IF(V1,18,0),COLORYELLOW,LINETHICK2;DRAWTEXT(V1,28,'买点'),COLORRED;AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;强势狙击选股:FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 ANDAA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;青云直上选股:IF(FILTER(MR,10),30,0),COLORYELLOW,LINETHICK2;IF(FILTER(MR,10),20,0),COLORYELLOW,LINETHICK2;DRAWTEXT(青云直上选股,30,'青云直上'),COLORGREEN;QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13 ))*100<=-28 AND (CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34 ))*100<=-19AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 AND IF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),2)AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3),3) ;DRAWTEXT(QUAN,88,'弱市百发百中'),COLORFFFF00;IF(QUAN,88,0),COLORFFFF00,LINETHICK2;IF(QUAN,60,0),COLORFFFF00,LINETHICK2;AA:=1;BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100>100,1 00,AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100);DD:=CC/BB;顶部雷达:CROSS(80,RSI)*88,LINETHICK2 ,COLORGREEN; CROSS(80,RSI)*58,LINETHICK2 ,COLORGREEN; DRAWTEXT(CROSS(80,RSI),88,'逃顶 '),COLORGREEN;。

抄底逃顶指标公式源码

抄底逃顶指标公式源码

抄底逃顶指标公式源码抄底逃顶是一种用于股市交易的指标,用于判断股票的买入和卖出时机。

以下是抄底逃顶指标的公式源码,供参考:```pythonimport numpy as npdef bottom_topping_indicator(close_prices, window_size=12, bottom_threshold=-0.1, topping_threshold=0.1):"""计算抄底逃顶指标参数:close_prices (array-like): 收盘价数组window_size (int): 移动窗口大小,默认为12bottom_threshold (float): 抄底阈值,默认为-0.1topping_threshold (float): 逃顶阈值,默认为0.1返回:indicator (array-like): 抄底逃顶指标数组"""close_prices = np.array(close_prices)indicator = np.zeros_like(close_prices)for i in range(len(close_prices)):if i >= window_size:sub_prices = close_prices[i-window_size:i] # 获取移动窗口内的收盘价数据daily_return = (sub_prices[-1] - sub_prices[0]) /sub_prices[0] # 计算移动窗口期间的收益率if daily_return <= bottom_threshold: # 判断是否抄底indicator[i] = 1elif daily_return >= topping_threshold: # 判断是否逃顶indicator[i] = -1return indicator```以上代码使用了Python编程语言,通过定义一个`bottom_topping_indicator`函数来计算抄底逃顶指标。

通达信指标公式源码很实用的抄底逃顶指标

通达信指标公式源码很实用的抄底逃顶指标

很实用的抄底逃顶指标DRAWBAND(MA(CLOSE,60),RGB(80,0,0),MA(CLOSE,120),RGB(0,91,0)); DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68)); DRAWKLINE(H,O,L,C);MA5:=MA(CLOSE,5),COLORWHITE;MA10:=MA(CLOSE,10),COLORYELLOW;MA30:=MA(CLOSE,30),COLORMAGENTA;MA60:=MA(CLOSE,60),COLORGREEN;MA120:=MA(CLOSE,120),COLORLIMAGENTA;MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;VOL5:=MA(VOL,5),COLORWHITE;VOL10:=MA(VOL,10),COLORYELLOW;VOL40:=MA(VOL,40),COLORFF00FF ;量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1); DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;AA1:=BARSLAST(MA60>MA30 AND (MA30=MA10 OR MA30>MA10));BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;芙蓉出水:=BB1 AND CC1,COLOR00FF00;DRAWTEXT(芙蓉出水,H+0.3,'芙蓉出水'),COLORFF00FF;STICKLINE(芙蓉出水,H,L,1,1),COLORFF00FF;STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);ZJ:=AMOUNT/10000;{资金}TM:=V-MA(V,10);{量填满}一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;DRAWTEXT(一穿三,L-0.012,'一穿三'),COLORFF00FF;STICKLINE(一穿三,OPEN,CLOSE,1,0),COLORFF00FF;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);前期高位:REF(C,BARSLAST(HD)),COLORBLUE,POINTDOT;STICKLINE(C,前期高位,前期高位,8,0),COLORBLUE;{高点:=(C/REF(C,BARSLAST(HD))-1)*100,NODRAW;STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;}三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));三日价涨A:=C>=REF(C,1);三日价涨B:=C<REF(C,1);三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);TIM:=IF(DATE<1140214,1,0);缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;百日低量:=(VOL=LLV(VOL,100))*TIM;倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;倍量黄金柱:=四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;高量黄金柱:=四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨A AND 前三引用不成立;黄金柱:=倍量黄金柱OR 高量黄金柱;次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱AND 三日量缩AND 三日不破AND 三日价涨B AND 前三引用不成立;次黄金柱:=次倍量黄金柱OR 次高量黄金柱;准倍量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前倍量柱AND ((三日量缩AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;准高量黄金柱:=NOT(黄金柱OR 次黄金柱) AND 四日前高量柱AND (三日量缩AND 三日价涨C) AND 前三引用不成立;准黄金柱:=准倍量黄金柱OR 准高量黄金柱;倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前倍量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱) AND 四日前高量柱AND 三日不破AND 三日价涨A AND 前三引用不成立;将军柱:=倍量将军柱OR 高量将军柱;次倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前倍量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱) AND 四日前高量柱AND 三日不破AND 三日价涨B AND 前三引用不成立;次将军柱:=次倍量将军柱OR 次高量将军柱;准倍量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前倍量柱AND 三日价涨C AND 前三引用不成立;准高量将军柱:=NOT(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱) AND 四日前高量柱AND 三日价涨C AND 前三引用不成立;准将军柱:=准倍量将军柱OR 准高量将军柱;BACKSET100:=BACKSET(黄金柱OR 次黄金柱OR 准黄金柱OR 将军柱OR 次将军柱OR 准将军柱,4);FILTER100:=FILTER(BACKSET100,3),NODRAW;BACKSET101:=BACKSET(黄金柱,4);FILTER101:=FILTER(BACKSET101,3);BACKSET102:=BACKSET(次黄金柱,4);FILTER102:=FILTER(BACKSET102,3);BACKSET103:=BACKSET(准黄金柱,4);FILTER103:=FILTER(BACKSET103,3);BACKSET104:=BACKSET(将军柱,4);FILTER104:=FILTER(BACKSET104,3);BACKSET105:=BACKSET(次将军柱,4);FILTER105:=FILTER(BACKSET105,3);BACKSET106:=BACKSET(准将军柱,4);FILTER106:=FILTER(BACKSET106,3);黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3); 黄金线实体下端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) ANDMIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3); 黄金线实体上端:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);黄金线实体中间:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));黄金线实体中间1:=REF(FILTER100,3)=1 ANDMIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDREF(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))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDREF(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))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) ANDL=MIN(MIN(L,REF(L,1)),REF(L,2));BACKSET201:=BACKSET(黄金线下影线,4);FILTER201:=FILTER(BACKSET201,3),NODRAW;BACKSET202:=BACKSET(黄金线实体下端,4);FILTER202:=FILTER(BACKSET202,3),NODRAW;BACKSET203:=BACKSET(黄金线上影线,4);FILTER203:=FILTER(BACKSET203,3),NODRAW;BACKSET204:=BACKSET(黄金线实体上端,4);FILTER204:=FILTER(BACKSET204,3),NODRAW;BACKSET205:=BACKSET(黄金线实体中间,4);FILTER205:=FILTER(BACKSET205,3),NODRAW;BACKSET2051:=BACKSET(黄金线实体中间1,4);FILTER2051:=FILTER(BACKSET2051,3),NODRAW;BACKSET2052:=BACKSET(黄金线实体中间2,4);FILTER2052:=FILTER(BACKSET2052,3),NODRAW;BACKSET2053:=BACKSET(黄金线实体中间3,4);FILTER2053:=FILTER(BACKSET2053,3),NODRAW;BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 201));BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 202));BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 203));BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 204));BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER 205));BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER2051));BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER2052));BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILT ER2053));最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT20 53);DAY1:=SUMBARS(FILTER100,1),NODRAW;HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NO DRAW;HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),R EF(OPEN,DAY1-1))),0),NODRAW;HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),N ODRAW;HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1), REF(OPEN,DAY1-1))),0),NODRAW;HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL, REF(LOW,DAY1-2))),0),NODRAW;HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL, REF(LOW,DAY1-3))),0),NODRAW;HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL, REF(LOW,DAY1-4))),0),NODRAW;黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,N ODRAW;立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 ANDCLOSE>REF(HIGH,3),1,0)));立桩量三日不破:=BARSLAST(立桩量)=3 ANDREF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));BACKSET300:=BACKSET(立桩量三日不破,4);BACKSET301:=BACKSET(立桩量三日突破,4);立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLOR00FF00;DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW;DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW;K1:=SUMBARS(FILTER104,1);STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),10,0),COLORYELLOW;K2:=SUMBARS(FILTER101,1);STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORYELLOW;强势5:MA(C,5),LINETHICK1;生命24:MA(C,24),COLORRED,LINETHICK1;DG1:=(CROSS(强势5,生命24));DRAWICON(DG1,生命24,1);X1:=(C+L+H)/3;BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;EMA3:=EMA(C,3);DRAWTEXT(FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10),LOW*0.99,'★∠45'),COLORFFFFFF;涨家数:INDEXADV,NODRAW,COLORLIMAGENTA ;跌家数:INDEXDEC,NODRAW,COLORGREEN;C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,2.5,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,2.5,0),COLORGREEN;。

抄底逃顶 趋势顶底通达信指标公式源码

抄底逃顶 趋势顶底通达信指标公式源码

80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;90,COLOR9966FF,LINETHICK2;{50,COLORRED;FILLRGN(1,20,80),COLOR222222;FILLRGN(1,90,100),COLOR000068;FILLRGN(1,79,90),COLOR663366;FILLRGN(1,10,20),COLOR666600;FILLRGN(1, 0,10),COLOR663300;}A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED; B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;{见顶:(长期线>85 OR REF(长期线,1)>85 ) AND (CROSS(中期线,短期线) OR CROSS(REF(中期线,1),REF(短期线,1)) )AND CROSS(长期线,短期线);}见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线) ;顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5AND 短期线<中期线AND 短期线<长期线+4;顶部:=FILTER(顶部区域,4);{DRAWICON( 见顶, 108, 2 );}底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ;STICKLINE( {见顶OR} 顶部,99,103,20,1 ),COLORRED,LINETHICK2;STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线OR REF( 短期线,1)<1 );STICKLINE( 低位金叉,0,5,11,0 ),COLORRED;。

大盘逃顶主图源码通达信指标公式源码

大盘逃顶主图源码通达信指标公式源码

此超好用,精准,无未来,绝不漂移,是判断趋势的绝佳好指标,一直在使用X_1:=LLV(LOW,9);X_2:=LLV(LOW,14);X_3:=LLV(LOW,19);X_4:=LLV(LOW,29);X_5:=LLV(LOW,39);X_6:=LLV(LOW,59);X_7:=LLV(LOW,99);X_8:=LLV(LOW,119);X_9:=LLV(LOW,199);X_10:=REF(BARSLAST(LOW=X_1),1)+1;X_11:=REF(BARSLAST(LOW=X_2),1)+1;X_12:=REF(BARSLAST(LOW=X_3),1)+1;X_13:=REF(BARSLAST(LOW=X_4),1)+1;X_14:=REF(BARSLAST(LOW=X_5),1)+1;X_15:=REF(BARSLAST(LOW=X_6),1)+1;X_16:=REF(BARSLAST(LOW=X_7),1)+1;X_17:=REF(BARSLAST(LOW=X_8),1)+1;X_18:=REF(BARSLAST(LOW=X_9),1)+1;X_19:=LOW<REF(LOW,X_10) AND MACD.DIF>REF(MACD.DIF,X_10);X_20:=LOW<REF(LOW,X_11) AND MACD.DIF>REF(MACD.DIF,X_11);X_21:=LOW<REF(LOW,X_12) AND MACD.DIF>REF(MACD.DIF,X_12);X_22:=LOW<REF(LOW,X_13) AND MACD.DIF>REF(MACD.DIF,X_13);X_23:=LOW<REF(LOW,X_14) AND MACD.DIF>REF(MACD.DIF,X_14);X_24:=LOW<REF(LOW,X_15) AND MACD.DIF>REF(MACD.DIF,X_15);X_25:=LOW<REF(LOW,X_16) AND MACD.DIF>REF(MACD.DIF,X_16);X_26:=LOW<REF(LOW,X_17) AND MACD.DIF>REF(MACD.DIF,X_17);X_27:=LOW<REF(LOW,X_18) AND MACD.DIF>REF(MACD.DIF,X_18);X_28:=X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24 OR X_25 OR X_26 OR X_27; X_29:=CROSS(MACD.DIF,MACD.DEA) AND COUNT(X_28,10)>=1;X_30:=BARSLAST(REF(CROSS(MACD.DIF,MACD.DEA),1))+1;X_31:=CROSS(MACD.DIF,MACD.DEA) AND MACD.DIF>REF(MACD.DIF,X_30) AND LOW<REF(LOW,X_30);X_32:=EMA(CLOSE,12)-EMA(CLOSE,26);X_33:=EMA(X_32,9);X_34:=2*(X_32-X_33);X_35:=BARSLAST(REF(X_34,1)<0 AND X_34>0);X_36:=LLVBARS(X_34,X_35+18);X_37:=IF(X_36>X_35,REF(X_34,X_36),0);X_38:=LLVBARS(X_32,X_35+18);X_39:=IF(X_38>X_35,REF(X_32,X_38),0);X_40:=X_34<0 AND X_34>X_37 AND X_32<0 AND X_32>X_39 AND CLOSE=LLV(CLOSE,X_35+18) AND X_37<0 AND X_39<0;X_41:=REF(X_40,1)=1 AND X_34>REF(X_34,1) AND X_35>=10;X_42:=X_29 OR X_31 OR X_41 AND NOT(EVERY(ABS(MACD.DIF-MACD.DEA)>0.1,3));X_43:=1;X_44:=MA(CLOSE,13);X_45:=100-ABS((CLOSE-X_44)/X_44*100);X_46:=LLV(LOW,75);X_47:=HHV(HIGH,75);X_48:=(X_47-X_46)/100;X_49:=SMA((CLOSE-X_46)/X_48,20,1);X_50:=SMA((OPEN-X_46)/X_48,20,1);X_51:=3*X_49-2*SMA(X_49,15,1);X_52:=3*X_50-2*SMA(X_50,15,1);X_53:=100-X_52;X_54:=(100-X_51)*X_43;X_55:=X_54>X_45;X_56:=REF(LOW,1)*0.9;X_57:=LOW*0.9;X_58:=EMA(X_57,30);X_59:=CLOSE-REF(CLOSE,1);X_60:=MAX(X_59,0);X_61:=ABS(X_59);X_62:=SMA(X_60,7,1)/SMA(X_61,7,1)*100;X_63:=SMA(X_60,13,1)/SMA(X_61,13,1)*100;X_64:=BARSCOUNT(CLOSE);X_65:=SMA(MAX(X_59,0),6,1)/SMA(ABS(X_59),6,1)*100;X_66:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;X_67:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;X_68:=SMA((SMA(X_67,4,1)-50)*2,3,1);X_69:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;X_70:=SMA(X_69,4,1);X_71:=SMA(X_70,3,1);X_72:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;X_73:=X_65<=25 AND X_66<(-95) AND X_72>20 AND X_68<(-30) AND X_71<30 AND X_58-CLOSE>=(-0.25) AND X_62<22 AND X_63<28 AND X_64>50;X_74:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));X_75:=VOL;X_76:=IF(CLOSE>OPEN,ABS(X_74*(HIGH-LOW)),IF(CLOSE<OPEN,ABS(X_74*(HIGH-OP EN+(CLOSE-LOW))),ABS(VOL/2)));X_77:=IF(CLOSE>OPEN,ABS(0-X_74*(HIGH-CLOSE+(OPEN-LOW))),IF(CLOSE<OPEN,AB S(0-X_74*(HIGH-LOW)),ABS(0-VOL/2)));X_78:=X_73 AND X_76>X_77;X_79:=BARSLAST(X_73)>=1 AND CLOSE>REF(CLOSE,BARSLAST(X_73))*1.01 AND COUNT(X_73,2)=1;X_80:=EMA(CLOSE,12)-EMA(CLOSE,26);X_81:=EMA(X_80,9);X_82:=2*(X_80-X_81);X_83:=BARSLAST(REF(X_82,1)<0 AND X_82>0);X_84:=LLVBARS(X_82,X_83+20);X_85:=IF(X_84>X_83,REF(X_82,X_84),0);X_86:=LLVBARS(X_80,X_83+20);X_87:=IF(X_86>X_83,REF(X_80,X_86),0);X_88:=X_82<0 AND X_82>X_85 AND X_80<0 AND X_80>X_87 AND CLOSE=LLV(CLOSE,X_83+20) AND X_85<0 AND X_87<0;X_89:=REF(X_88,1)=1 AND X_82>REF(X_82,1);X_90:=EXIST(CLOSE/REF(CLOSE,1)>1.055,60);X_91:=X_89 AND X_90;X_92:=X_78 OR X_79 OR X_91;X_93:=HHV(HIGH,9);X_94:=HHV(HIGH,14);X_95:=HHV(HIGH,19);X_96:=HHV(HIGH,29);X_97:=HHV(HIGH,39);X_98:=HHV(HIGH,59);X_99:=HHV(HIGH,99);X_100:=HHV(HIGH,119);X_101:=HHV(HIGH,199);X_102:=REF(BARSLAST(HIGH=X_93),1)+1;X_103:=REF(BARSLAST(HIGH=X_94),1)+1;X_104:=REF(BARSLAST(HIGH=X_95),1)+1;X_105:=REF(BARSLAST(HIGH=X_96),1)+1;X_106:=REF(BARSLAST(HIGH=X_97),1)+1;X_107:=REF(BARSLAST(HIGH=X_98),1)+1;X_108:=REF(BARSLAST(HIGH=X_99),1)+1;X_109:=REF(BARSLAST(HIGH=X_100),1)+1;X_110:=REF(BARSLAST(HIGH=X_101),1)+1;X_111:=HIGH>REF(HIGH,X_102) AND MACD.DIF<REF(MACD.DIF,X_102);X_112:=HIGH>REF(HIGH,X_103) AND MACD.DIF<REF(MACD.DIF,X_103);X_113:=HIGH>REF(HIGH,X_104) AND MACD.DIF<REF(MACD.DIF,X_104);X_114:=HIGH>REF(HIGH,X_105) AND MACD.DIF<REF(MACD.DIF,X_105);X_115:=HIGH>REF(HIGH,X_106) AND MACD.DIF<REF(MACD.DIF,X_106);X_116:=HIGH>REF(HIGH,X_107) AND MACD.DIF<REF(MACD.DIF,X_107);X_117:=HIGH>REF(HIGH,X_108) AND MACD.DIF<REF(MACD.DIF,X_108);X_118:=HIGH>REF(HIGH,X_109) AND MACD.DIF<REF(MACD.DIF,X_109);X_119:=HIGH>REF(HIGH,X_110) AND MACD.DIF<REF(MACD.DIF,X_110);X_120:=X_111 OR X_112 OR X_113 OR X_114 OR X_115 OR X_116 OR X_117 OR X_118 OR X_119;X_121:=CROSS(MACD.DEA,MACD.DIF);X_122:=BARSLAST(REF(X_121,1))+1;X_123:=MACD.DIF<REF(MACD.DIF,X_122);X_124:=HIGH>REF(HIGH,X_122);X_125:=X_121 AND X_123 AND X_124;X_126:=X_121 AND COUNT(X_120,10)>=1;X_127:=X_125 OR X_126;X_128:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;X_129:=SMA(X_128,3,1);X_130:=SMA(X_129,3,1);X_131:=3*X_129-2*X_130;X_132:=CROSS(X_130,X_129);X_133:=BARSLAST(REF(X_132,1))+1;X_134:=X_132 AND X_133>3 AND HIGH>REF(HIGH,X_133) AND REF(X_129,1)<REF(X_129,X_133+1);DRAWICON(X_42,LOW*0.97,23);DRAWICON(X_92,LOW*0.97,1);DRAWICON(X_127,HIGH*1.02,15);X_135:=FILTER(EVERY(CLOSE>REF(CLOSE,4),9),9);JZ:DRAWICON(X_135,HIGH*1.02,39);DRAWICON(X_134,HIGH*1.02,2);X_136:=X_127 AND COUNT(JZ,5)>0;X_137:=X_127 AND COUNT(X_134,5)>0;X_138:=X_136 OR X_137;DRAWICON(X_138,HIGH*1.04,15);MA1:MA(CLOSE,20),COLORGREEN;MA2:MA(CLOSE,55),COLORWHITE;IF(MA1>=REF(MA1,1),MA1,DRAWNULL),COLORRED;。

通达信神奇的抄底指标公式

通达信神奇的抄底指标公式

通达信神奇的抄底指标公式通达信神奇的抄底指标公式DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;DEA :=EMA(DIFF,9);MACD :=2*(DIFF-DEA);绿柱消失买入:STICKLINE(DIFF<0,0,DIFF,2,0),COLOR00FF00;红柱消失卖出:STICKLINE(DIFF>=0,0,DIFF,2,0),COLORRED;STICKLINE(DEA>=0,0,DEA,2,0),COLORBLUE;STICKLINE(DEA<0,0,DEA,2,0),COLORYELLOW;DRAWICON(CROSS(DIFF,DEA),DEA*1.1,1);DRAWICON(CROSS(DEA,DIFF),DEA*1.1,2);强1:IF(DIFF>DEA,DIFF,DRAWNULL),COLORRED;强2:IF(DEA<DIFF,DEA,DRAWNULL),COLORMAGENTA;抄底:=ABS((CROSS("MACD.DIF","MACD.DEA")&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.09,COLORLIMAGENTA,LINETHICK2;DRAWTEXT(ABS(抄底)>0,抄底, 抄底),COLORFFFF00;DRAWICON(ABS(抄底)>0,抄底,9);DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;DEA :=EMA(DIFF,9);MACD :=2*(DIFF-DEA);绿柱消失买入:STICKLINE(DIFF<0,0,DIFF,2,0),COLOR00FF00;红柱消失卖出:STICKLINE(DIFF>=0,0,DIFF,2,0),COLORRED;STICKLINE(DEA>=0,0,DEA,2,0),COLORBLUE;STICKLINE(DEA<0,0,DEA,2,0),COLORYELLOW;DRAWICON(CROSS(DIFF,DEA),DEA*1.1,1);DRAWICON(CROSS(DEA,DIFF),DEA*1.1,2);强1:IF(DIFF>DEA,DIFF,DRAWNULL),COLORRED;强2:IF(DEA<DIFF,DEA,DRAWNULL),COLORMAGENTA;抄底:=ABS((CROSS("MACD.DIF","MACD.DEA")&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.09,COLORLIMAGENTA,LINETHICK2;DRAWTEXT(ABS(抄底)>0,抄底, 抄底),COLORFFFF00;DRAWICON(ABS(抄底)>0,抄底,9);。

抄底逃顶技术指标源代码

抄底逃顶技术指标源代码

抄底逃顶技术指标源代码以下是适用于通达信的抄底逃顶技术指标源代码的示例:异动指标代码:```vlh:=HHV(HIGH,N);l:=LLV(LOW,N);rsv:=(CLOSE-l)/(h-l)*100;k:=EMA(rsv,M1);d:=SMA(k,M2);j:=3*k-2*d;dn:=HHV(LOW,D);up:=HHV(HIGH,D);mi:=SUM(((CLOSE-LOW)-(HIGH-CLOSE))/(HIGH-LOW)*V,H)/SUM(V,H)*100;t:=EMA(mi,P);x:=MA(t,Q);m:N:=0;jc:IF CROSS(k,d) AND J>0 AND J>X AND REF(J,1)<REF(JX,1) THEN M:=2; IF CROSS(K,M) THEN M:=1; IF JX<J THEN JX:=J; IFREF(J,1)>REF(JX,1) THEN JX:=J;```使用方法:2.保存代码,并命名为“抄底逃顶指标”。

3.在通达信的“实时行情”界面中,右键单击图表,选择“显示技术指标”,找到“抄底逃顶指标”,将其添加到图表中。

4.调整参数N、M1、M2、D、H、P和Q以符合您的需求。

5.根据指标的交叉和数值变化来进行买入和卖出的决策。

代码解释:1. 首先,计算最高价和最低价的最大值和最小值,根据这个范围计算RSV(Raw Stochastic Value)。

2.然后,使用指数移动平均线(EMA)计算K值和D值。

3.最后,根据K线和D线的数值来计算J值,并计算J值的前一天的数值。

根据J值的交叉和数值变化来判断买入和卖出的时机。

这是一个简单的抄底逃顶指标示例,您可以根据需要进行修改和优化。

请注意,这只是一个示例,使用这个指标进行交易需要结合自己的判断和风险管理策略进行。

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