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

合集下载

自用抄底集合通达信指标公式源码

自用抄底集合通达信指标公式源码

自用抄底集合(通达信源码副图选股贴图)指标虽然不是万能,但好指标是有一定的参考价值的,此贵在出票不多准确率高,指标来自网络,非自创去除ST股:=IF(NAMELIKE('S'),0,1);去除停牌:=DYNAINFO(8)>0;去除星股:=IF(NAMELIKE('*'),0,1);去无用股:=去除ST股AND 去除停牌AND 去除星股;A8:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;B8:=SMA(A8,9,1);C8:=SMA(B8,9,1);D8:=CROSS(B8,C8);E8:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;F8:=COUNT(D8,21)>=2;G8:=B8<20;H8:=MA(CLOSE,10)>REF(MA(CLOSE,10),1);I8:=COUNT(E8<-8,20)>=1 AND E8<=0 AND COUNT(E8<=0,4)>=2;ZY4:=F8 AND G8 AND H8 AND I8 ;底1:=ZY4 AND COUNT(ZY4,10)=1;A6:=REF(CLOSE,1);B6:=SMA(MAX(CLOSE-A6,0),7,1)/SMA(ABS(CLOSE-A6),7,1)*100;C6:=SMA(MAX(CLOSE-A6,0),13,1)/SMA(ABS(CLOSE-A6),13,1)*100;D6:=BARSLAST(C6<20)<=3 AND CROSS(B6,C6);E6:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100<-12.5;F6:=LLV(LOW,5);G6:=HHV(HIGH,5);H6:=EMA((CLOSE-F6)/(G6-F6)*100,4);I6:=EMA(0.667*REF(H6,1)+0.333*H6,2);底2:=D6 AND E6 AND CROSS(H6,I6) AND H6<=25;A:=DMA(EMA(CLOSE,14),SUM(VOL,5)/3/CAPITAL);SW:=(CLOSE-A)/A*100;B:=SW<-38 ;A1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);S:=(CLOSE-A1)/A1*100;J:=REF(S,1)<-37 AND S>REF(S,1) AND REF(S,1)<REF(S,2) AND (REF(S,2)-REF(S,1))>1;K:=(B OR J) AND VOL/CAPITAL*100<6 ;底3:=K AND COUNT(K,10)=1;A4:=(HIGH-LOW)/HIGH*100+(C-REF(C,1))/REF(C,1)*100;B4:=EMA(MA(A4,50),5);C4:=B4>LLV(B4,5)*1.01 AND REF(B4,1)<REF(LLV(B4,5),1)*1.01 AND LLV(B4,50)=LLV(B4,5);D4:=LLV(LOW,5)=LLV(LOW,50) AND LLV(LOW,5)<HHV(LOW,70)*0.5; 底4:=C4 AND D4;XG:底1 OR 底2 OR 底3 OR 底4 AND 去无用股;。

抄底逃顶技术指标源代码

抄底逃顶技术指标源代码

抄底逃顶技术指标源代码以下是适用于通达信的抄底逃顶技术指标源代码的示例:异动指标代码:```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值的交叉和数值变化来判断买入和卖出的时机。

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

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

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

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

V1:=MA(C,3)=HHV(MA(C,3),7);V2:=MA(C,3)>MA(C,5);LC20:=REF(CLOSE,1);RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100; STICKLINE(CROSS(RSI20,11)*1,-10,20,2,0),COLORYELLOW;VAR3A:=3;VAR2A:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0); 加仓:IF(FILTER(YXF=1,5),20,-10),STICK,LINETHICK3;A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV (H,55)-LLV(L,55))*100,5,1);FY:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;VAR2:=TROUGHBARS(3,15,1)<10;VAR3:=PEAKBARS(3,15,1)<5;VAR4:=IF(VAR2=1,50,0);VAR5:=IF(VAR3=1,50,0);底部:=IF(VAR4=50,10,0);头部:=IF(VAR5=50,20,60);未来买入:IF(底部=10 AND REF(底部,1)=10 AND REF(底部,2)=0,50,0),COLOR0000CC,LINETHICK2;未来卖出:IF(头部=20 AND REF(头部,1)=20 AND REF(头部,2)=60,20,60),COLORGREEN,LINETHICK2;参考买入延迟线:底部,LINETHICK1 ,COLORMAGENTA;LT:=100;LU:=0;LV:=38.2;LA:=REF(CLOSE,1);LB:=((SMA(MAX((CLOSE - LA),0),5,1) / SMA(ABS((CLOSE - LA)),5,1)) * 100);LC:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);{通达信股票指标公式}LE:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);LF:=SUM(IF(((LC > 0) AND (LC > LD)),LC,0),10);LG:=SUM(IF(((LD > 0) AND (LD > LC)),LD,0),10);LH:=((LF * 100) / LE);LI:=((LG * 100) / LE);LJ:=MA(((ABS((LI - LH)) / (LI + LH)) * 100),5);AV:=(LB + LJ);LK:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));LL:=(LB - LK);LM:=(AV + LL);LO:=((((2 * CLOSE) + HIGH) + LOW) / 4);LP:=LLV(LOW,34);LQ:=HHV(HIGH,34);LR:=EMA((((LO - LP) / (LQ - LP)) * 100),13);LS:=EMA(((0.667 * REF(LR,1)) + (0.333 * LR)),2);向导线:=LLV(LM,1);STICKLINE((向导线>225),95,90,4,1),COLORFFCC00;STICKLINE((向导线>235),100,95,4,1),COLORRED;STICKLINE(CROSS(235,向导线),100,90,4,1),COLOR00FF00;STICKLINE((LM<(0-1)),0,5,4,1),COLOR00FF00;STICKLINE((LM<(0-5)),5,10,4,1),COLORYELLOW;STICKLINE(CROSS(向导线,(0-3)),0,10,4,1),COLORRED;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);底一:IF(乖离<-12 AND 乖离>=-18,-4,0), COLORCYAN,LINETHICK1;STICKLINE(乖离<-12 AND 乖离>=-18,2,0,6,0) , COLORCYAN;底二:IF(乖离<-18,3,0),COLORFF35FF,LINETHICK1;STICKLINE(乖离<-18,3,0,6,0),COLORFF35FF;底三:IF(乖离<-6,5,0),COLORRED,LINETHICK1;STICKLINE(乖离<-6,5,3,2,1),COLORRED;底四:IF(乖离<-4.5,0,0),COLOR00FFFF,LINETHICK1;STICKLINE(乖离<-4.5,0,1,3,1),COLOR00FFFF;买:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));卖:=(ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));STICKLINE((买=1),(-10),0,1,0),COLOR0000FF;DRAWTEXT((买=1),(-12),'买'),COLOR0000FF;STICKLINE((卖=1),10,0,1,0),COLOR00FF00;DRAWTEXT((卖=1),19,'卖'),COLOR00FF00;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*S MA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR11:=VARF<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,15,'大资金活动'),LINETHICK1,COLORFF00FF;STICKLINE(VAR11 AND COUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0); VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18<90,VAR18,100);VAR1A:=IF(VARE>0,VARE,0);VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,15,'大笔出货'),LINETHICK1,COLORFFCC66; STICKLINE(VAR1C AND COUNT(VAR1C,30)=1,0,10,5,0),COLORFFCC66;P1:=5;P2:=4;VARA:=LLV(LOW,P1);VARB:=HHV(HIGH,P1);K: EMA((CLOSE-VARA)/(VARB-VARA)*100,P2),COLORLIMAGENTA; D: EMA(0.667*REF(K,1)+0.333*K,2),COLORWHITE;。

通达信指标公式源码 60分钟短线波段交易

通达信指标公式源码 60分钟短线波段交易

O1:(SUM(EMA((CLOSE+LOW)/2,1)/3,3)),COLOR00FFFF,LINETHICK1; O2:EMA(O1,3),COLORFF00FF,LINETHICK1;O3:EMA(O2,3),COLOR00FF00,LINETHICK1;MMM:=MA(CLOSE,20);DRAWTEXT((CLOSE<MMM),MMM,'*'),COLOR00FF00,LINETHICK5; DRAWTEXT((CLOSE>MMM),MMM,'*'),COLOR0000FF,LINETHICK5; VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3.2,0),COLORFF3300;STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.7,0),COLORFF5500; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),2.1,0),COLORFF7700; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORFF9900; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.9,0),COLORFFBB00; STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),0.3,0),COLORFFDD00; DRAWTEXT(FILTER(VAR19=1,5),LOW,'买进'),COLORFF00FF; DRAWICON(FILTER(VAR19=1,5),LOW,9);DRAWTEXT(FILTER(VAR1A=1,5),HIGH,'逃顶'),COLOR00FF00; DRAWICON(FILTER(VAR1A=1,5),HIGH,15);信号共振N 1 100 9 N 1 100 6 M 1 100 14轴1:0,COLORYELLOW;轴2:5,COLORWHITE,POINTDOT;轴3:10,COLORWHITE,POINTDOT;轴4:15,COLORWHITE,POINTDOT;轴5:20,COLORWHITE,POINTDOT;轴6:25,COLORWHITE,POINTDOT;轴7:30,COLORYELLOW;AAATYP := (HIGH + LOW + CLOSE)/3;AAA1:=(AAATYP-MA(AAATYP,M))/(0.015*AVEDEV(AAATYP,M));C1:=SMA(AAA1,3,1);C2:=SMA(C1,3,1);C3:=3*C1-2*C2;CB1:=EMA(C3,5);CB2:=REF(CB1,1);LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100; RSI:=(RSI1-50)*5;R1:=SMA(RSI,3,1);D1:=SMA(R1,3,1);J1:=3*R1-2*D1;RR1:=EMA(J1,5);RR2:=REF(RR1,1);RR:=RR1>RR2;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,3,1);K1:=(K-50)*5;K2:=SMA(K1,3,1);D2:=SMA(K2,3,1);J2:=3*K2-2*D2;BB1:=EMA(J2,5);BB2:=REF(BB1,1);三宝:RR AND NOT(REF(RR,1)) AND (RR1<-100 AND BB1<-100) AND CB1<-100,COLORGREEN,NODRAW;STICKLINE(三宝,5,0,3,0)COLORGREEN;{极地上涨}VA1:=HHV(HIGH,9)-LLV(LOW,9);VA2:=HHV(HIGH,9)-CLOSE;VA3:=CLOSE-LLV(LOW,9);VA4:=VA2/VA1*100-70;VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;VA6:=(CLOSE+HIGH+LOW)/3;VA7:=SMA(VA3/VA1*100,3,1);VA8:=LLV(LOW,34);VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);VARA:=IF(VA9>100,VA9-100,0);VARB:=HHV(HIGH,34);VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF (INDEXC,1))/INDEXC,8,1)*100-25;VARF:=MA(VARE,3);VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=((VAR2)/(VAR1))*(100)-70;VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF((VAR9>100),VAR9-100,0);VAR11:=HHV(HIGH,34);B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);领先:=EMA(B1,5);生命线:=EMA(VARD,1);V1:=MA(C,5)=HHV(MA(C,5),20);V2:=MA(C,5)>MA(C,10);V3:=MA(V,5)>MA(V,40)*1.01;V4:=COUNT(MA(C,1)>REF(C,1),2)=2;VV:=V1 AND V2 AND V3 AND V4;A1:=EMA(CLOSE,8);A2:=EMA(A1,20);A3:=CROSS(A1,A2);A4:=A1<EMA(CLOSE,120);A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1);安全位:=20;低位转强:=CROSS(A5,安全位);开始拉升:=CROSS(VARC,生命线) AND VARC>VARD AND VARC<55 AND C>O; A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100);极地上涨:=A6;极地:开始拉升>0 AND 开始拉升<400 OR 极地上涨>0 AND 极地上涨<400 OR (低位转强>0 AND 低位转强<400) OR (低位转强>0),COLORYELLOW,NODRAW;STICKLINE(极地,10,15,3,0),COLORYELLOW;{好底}D:=EMA((C*3+H+L+O)/6,5);买卖:=D,COLORGREEN,LINETHICK2;A线:=HHV(D,13)COLORYELLOW,LINETHICK2;B线:=LLV(D,13)COLORYELLOW,LINETHICK2;日平:="MACD.MACD#DAY"(12,26,9);周平:="MACD.MACD#WEEK"(12,26,9);JC:=(A线-B线);壹:=COUNT(JC>REF(JC,1)AND A线>REF(A线,1),5)=1 AND JC>REF(JC,1)AND A线>REF(A线,1)AND D>=REF(D,1);G1:=FILTER(壹=1,10);G2:=BARSLAST(G1>0);G3:=IFF(G2>0 AND G2<=10,1,0)=1 AND((C-REF(C,G2))/REF(C,G2))*100>=5;概壹:=(SUM(FILTER(G3,10),0)/SUM(G1>0,0))*100;加1:=COUNT(日平>=0 AND 周平>=0,5)=1 AND 日平>=0 AND 周平>=0; 加2:=FILTER(D=A线AND REF(D,1)<REF(A线,1)AND REF(D,2)<REF(A线,2),10);①:=FILTER(加1=1,10);②:=BARSLAST(①>0);③:=IFF(②>0 AND ②<=10,1,0)=1 AND ((C-REF(C,②))/REF(C,②))*100>=5; 概加1:=(SUM(FILTER(③,10),0)/SUM(①>0,0))*100;好底:FILTER(COUNT(D=B线,3)>=2 AND D>B线,5),COLORBLUE,NODRAW; STICKLINE(好底,15,20,3,0),COLORBLUE;{抄底}MMM:=1;SVOL:=INTPART(SUM(V,0)/CAPITAL);TJ0:=SVOL>REF(SVOL,1) OR BARSSINCE(CLOSE)=0;S1:=BARSLAST(TJ0)+1;TJJ2:=S1<REF(S1,1);S2:=IF(TJJ2,REF(S1,1)+1,S1);S3:=SUM(TJJ2,0);ZK1:="KD.K#WEEK"(9,3,3);ZD2:="KD.D#WEEK"(9,3,3);ZF1:="MACD.DIF#WEEK"(12,26,9);ZA2:="MACD.DEA#WEEK"(12,26,9);换手:=V/CAPITAL*100,LINETHICK0;JCD:=CROSS(ZK1,ZD2) AND REF(ZD2,1)<30;抄底:EXIST(JCD,MMM),COLORCYAN,NODRAW;STICKLINE(抄底,20,25,3,0),COLORCYAN;{只做牛市}HR:=HHV(HIGH,55);HRY:=LLV(LOW,55);HRY11:=HR*HRY;HRY33:=SQRT(HRY11);WLT1:=EMA(C,3);WLT2:=EMA(C,5);WLT3:=EMA(WLT2,5);HP:=(HHV(CLOSE,10)-LLV(CLOSE,10))/CLOSE<0.10;LB:=VOL/MA(VOL,5);X1:=(C+L+H)/3;BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;EMA3:=EMA(C,3);TT:=FILTER(BB5>1 AND EMA(X1,7)>REF(EMA(X1,7),1),10); MM:=WLT1>REF(WLT1,1) AND REF(WLT1,1)<REF(WLT1,2) ; GG1:=CROSS(WLT1,WLT2);TYP:= (HIGH + LOW + CLOSE)/3;CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;CCI:=(CCI1+CCI2+CCI3+CCI4+CCI5)/2,COLORRED,LINETHICK2; WLT91:=HHV(CCI,13);WLT92:=LLV(CCI,13)<-100;WLT95:=COUNT(WLT92,13)>=3;WLT93:=CCI>WLT91;WLT96:=CROSS(CCI,100);TJ91:=WLT95 AND WLT96;JLP:=FILTER(TJ91,5);超买:=MA(C,10)*IF(CAPITAL=0,1.04,1.1);超卖:=MA(C,10)*IF(CAPITAL=0,0.95,0.9);TEND:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42);DD:=TEND>REF(TEND,1) AND REF(TEND,1) >REF(TEND,2);GG2:=CROSS(WLT1,TEND);HRY1:=LLV(LOW,55);HRY2:=HHV(HIGH,21);GG3:=C<HRY2*0.8 AND C>HRY33;JJ1:=C<HRY1*1.62;TJ1:=GG1;TJ2:=GG2 AND JJ1;TJ3:=GG1 AND GG3 ;XG:=TJ1 OR TJ3 ;XG2:=C<HRY2*0.86 OR LB>1;XG1:=XG AND XG2 AND C>HRY33 AND JLP;XG3:=XG AND C<HHV(HIGH,250)*0.3;XG11:=XG1 OR XG3;W8:=XG11 OR XG1;GET:=ZIG(3,5),COLORFFFFFF;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);WLT11:=EN1 AND DTJZ5=1;WLT22:=EN2 AND ZTJZ5=1;WLT33:=WLT11 OR WLT22;WLT01:=EN2 AND DTJZ10=1;WLT02:=EN3 AND ZTJZ10=1;WLT03:=WLT01 OR WLT02;WLT:=WLT33 AND WLT03;未来牛:W8 OR WLT,COLORLIMAGENTA,NODRAW;STICKLINE(未来牛,5,10,3,0),COLORLIMAGENTA;{雨青底}M5:=MA(CLOSE,5);M4:=MA(CLOSE,4);MA3:=MA(CLOSE,3);VOL5:=MA(VOL,5);雨青底:M5>M4 AND SLOPE(M5,5)<0 AND SLOPE(M4,4)<0 AND SLOPE(MA3,3) AND REF(M4>MA3,1) AND CROSS(MA3,M4) ANDVOL>VOL5,COLORRED,NODRAW;STICKLINE(雨青底,25,30,3,0),COLORRED;短线雷达LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;卖点雷达:=CROSS(85,RSI1)*30,COLOR00FF00,LINETHICK2;DRAWTEXT(CROSS(85,RSI1),20,'顶'),COLOR00FF00;STICKLINE(卖点雷达,0,20,3,0),COLOR00FF00;VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100; VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100; VARD:=BARSCOUNT(CLOSE);买点雷达:(VARB< 20 AND VARC< 25 AND VARD> 50 ANDAR<70)*30,LINETHICK2,COLOR0078FF;BT1:=CROSS(RSI1,25);DRAWTEXT(BT1,-80,'底'),COLOR0000FF;STICKLINE(BT1,-100,-80,3,0),COLOR0000FF;主力:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK1,COLOR0 000FF;小股民:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLO RC87800;BT2:=CROSS(主力,小股民) AND 主力<-10;DRAWICON(CROSS(RSI1,25),主力,26);DRAWICON(CROSS(主力,小股民) AND 主力<-10,主力,23);BT:=FILTER(COUNT(BT1 OR BT2,3)>=2,3);STICKLINE(BT,0,50,4,1),COLOR0000FF;DRAWTEXT(BT,50,'金底'),COLOR0000FF;STICKLINE(BT2,0,20,3,0),COLORFF00FF;DRAWTEXT(BT2,20,'升'),COLORFF00FF;与庄共舞VAR1:=EMA(EMA(CLOSE,9),9);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,1,0),COLORWHITE;A10:=CROSS(控盘,0);无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;开始控盘:IF(A10,5,0),LINETHICK1,COLORYELLOW;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLORRED;有庄控盘:IF(控盘>REF(控盘,1) AND 控盘>0,控盘,0),COLORRED,NODRAW; VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,0),COLORFF00FF;高度控盘:IF(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0),COLORFF00FF,NODRAW;STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,0),COLOR00FF00;主力出货:IF(控盘<REF(控盘,1) AND 控盘>0,控盘,0),COLOR00FF00,NODRAW; {分时价格原码}JJ:=DYNAINFO(11);{波段买卖原码}P:=55;S:=8;M1:=3;财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;神:=EMA(财,M1),COLORGREEN,LINETHICK1;DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50));{股价与均线偏离买卖条件}BTJ1:=(C-JJ)/JJ<-0.03;BTJ11:=(C-JJ)/JJ<-0.03;BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005;STJ1:=(C-JJ)/JJ>0.005;{控盘买卖条件}STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;STJ02:=控盘>0;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;{波段买卖条件}BTJ3:=CROSS(财,神) AND 财<-0.3;BTJ32:=CROSS(财,神) AND 财<-0.1;STJ31:=CROSS(神,财);STJ32:=CROSS(神,财) AND 财>1.618;{以下为信号};BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13); DRAWTEXT(BTJ81,神,'↑买底'),COLORRED; DRAWTEXT(BTJ811,神*1.2,'↑有庄'),COLORWHITE; STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);STJ82:=FILTER(STJ02 AND STJ32 ,13);STJ83:=STJ81 AND STJ82;DRAWTEXT(STJ83,神,'↓卖'),COLOR00FF00;DIFF: (EMA(CLOSE,8) - EMA(CLOSE,55))*10,COLORRED; DEA: EMA(DIFF,3),COLORGREEN;庄:= BTJ11 AND BTJ2 AND BTJ3;有庄:FILTER(庄,55),COLORWHITE;DRAWTEXT(BTJ811,有庄,'有庄'),COLORWHITE;。

通达信指标公式源码 短线无敌指标(源码)

通达信指标公式源码 短线无敌指标(源码)

JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2)); VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND 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) ANDCLOSE>=REF(CLOSE,2));VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1); VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1)COLOR0000FF,NODRAW;青色观望:VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,COLORFFFF00,NODRAW; 进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLORFF0000,NODRAW;短买:VAR19,COLOR33AACC,NODRAW;品红离场:VAR1A,COLORFF99FF,NODRAW;急速超跌:(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRAW; 上市日期年:REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;辰星线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(Y TSL,4)+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*R EF(YTSL,13)+6*REF(YTSL,14)+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YT SL,17)+2*REF(YTSL,18)+REF(YTSL,20))/211,COLOR0000FF;牵牛线:MA(CLOSE,26),COLORFF00FF;等待:=IF(MA3>辰星线,辰星线,MA3);IF(等待>REF(等待,1),等待,DRAWNULL),LINETHICK2,COLOR00FFFF;IF(辰星线>REF(辰星线,1),辰星线,DRAWNULL),LINETHICK2,COLOR0000FF; IF(辰星线<REF(辰星线,1),辰星线,DRAWNULL),COLOR00FF00;IF(牵牛线>REF(牵牛线,1),牵牛线,DRAWNULL),LINETHICK1,COLORFF00FF; IF(牵牛线<REF(牵牛线,1),牵牛线,DRAWNULL),COLOR669933; STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;STICKLINE(C>=O,L,H,0,0),COLOR0000CC;STICKLINE(C<O,L,H,0,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR888800;STICKLINE(青色观望,CLOSE,O,1.5,0),COLORAAAA00;STICKLINE(青色观望,CLOSE,O,1,0),COLORCCCC00;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOREEEE00;CO:=(C-O);STICKLINE(急速超跌,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急速超跌,O,C-CO/2,2,0),COLOR888888;STICKLINE(急速超跌,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急速超跌,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急速超跌,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(短买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(短买,O,O+CO/3,2,0),COLOR338888;STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE;DRAWTEXT(短买,REF(CLOSE,1),'←短买'),COLOR33FFCC;STICKLINE(品红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(品红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE; DRAWTEXT(品红离场,REF(CLOSE,1)+0.1,'←离场'),COLORFF99FF;。

通达信指标公式源码最牛短线

通达信指标公式源码最牛短线

通达信指标公式源码最牛短线通达信是中国股市常用的技术指标分析软件之一,其指标公式源码通常是使用C/C++语言编写。

以下是一个通达信中比较常用的短线指标公式源码示例:```cpp/**通达信最牛短线指标-动态平衡指标*公式:*DPT:=(CLOSE-LLV(LOW,34))/HHV(HIGH,34)*100;*DPB:=(HHV(HIGH,37)-CLOSE)/HHV(HIGH,37)*100;*DB:=DMA((DPT+DPB)/2,3);*BD:=DMA(DB,3);*返回值:*DB当日的DB值*BD当日的BD值*/extern "C" __declspec(dllexport) INT32 LuckyLineFLOAT*CLOSE,FLOAT*HIGH,FLOAT*LOW,INT32N,FLOAT*DB,FLOAT*BD) FLOATDPT[3];FLOATDPB[3];FLOATHHV_HIGH[3];FLOATLLV_LOW[3];for (INT32 i = 0; i < N; ++i)if (i < 34)HHV_HIGH[0]=HHV_HIGH[1]=HHV_HIGH[2]=HIGH[0];LLV_LOW[0]=LLV_LOW[1]=LLV_LOW[2]=LOW[0];}elseHHV_HIGH[0] = max(HIGH[i], HHV_HIGH[1]);HHV_HIGH[1]=HHV_HIGH[2];HHV_HIGH[2]=HHV_HIGH[0];LLV_LOW[0] = min(LOW[i], LLV_LOW[1]);LLV_LOW[1]=LLV_LOW[2];LLV_LOW[2]=LLV_LOW[0];}if (i < 37)DPB[0]=DPB[1]=DPB[2]=(HHV_HIGH[0]-CLOSE[0])/HHV_HIGH[0]*100; }DPB[0]=(HHV_HIGH[0]-CLOSE[0])/HHV_HIGH[0]*100;DPB[1]=(HHV_HIGH[1]-CLOSE[1])/HHV_HIGH[1]*100;DPB[2]=(HHV_HIGH[2]-CLOSE[2])/HHV_HIGH[2]*100;}if (i < 34)DPT[0]=DPT[1]=DPT[2]=(CLOSE[0]-LLV_LOW[0])/HHV_HIGH[0]*100; }elseDPT[0]=(CLOSE[0]-LLV_LOW[0])/HHV_HIGH[0]*100;DPT[1]=(CLOSE[1]-LLV_LOW[1])/HHV_HIGH[1]*100;DPT[2]=(CLOSE[2]-LLV_LOW[2])/HHV_HIGH[2]*100;}if (i >= 2)DB[i]=(DPT[0]+DPB[0])/2;BD[i]=(DB[i]+DB[i-1]+DB[i-2])/3;}}return 0;这是一个使用动态平衡指标计算当日的DB值和BD值的指标公式。

通达信指标公式源码 抄底公式(副图)

通达信指标公式源码 抄底公式(副图)

Var1:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,18),30)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);Var2:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;Var3:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;Var4:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;Var5:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;Var6:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;Var7:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;Var8:=(Var2+Var3+Var4+Var5+Var6+Var7)/6;Var9:=EMA(Var8,3);VarA:=ABS(Var5-Var7);VarB:=(Var8+VarA)/2;VarC:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;VarD:=VarC+VarB;VarE:=IF(Var1>0 AND VarD<0,200,0);VarF:=IF(VarB<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);Var10:=IF(VarD<0 AND VarF=-50,100,0);Var11:=MA(CLOSE,3);Var12:=REF(CLOSE,2)*0.865;Var13:=REF(CLOSE,13)*0.772;Var14:=MIN(Var12,Var13);Var15:=100*VOL/CAPITAL;Var16:=MA(CLOSE,13);Var17:=IF((CLOSE-Var14)/CLOSE<0.03 AND SUM(Var15,5)/5<1.8,1,0);Var18:=IF(Var17>0 AND (VarF<0 OR Var1>0),100,0);Var19:=Var18;Var1A:=IF(VarE>0 AND Var10>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var17>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902 OR (VarE>0 AND Var10>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var17>0) AND (VarF<0 OR Var1>0) AND Var18<10,50,0);Var1B:=(VarE>0 AND Var10>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var17>0) AND (VarF<0 OR Var1>0);Var1C:=VarE>0 AND Var10>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var17>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902;Var1B OR Var1C;。

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

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

通达信神奇的抄底指标公式通达信神奇的抄底指标公式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);。

通达信指标公式源码最牛的抄底追涨公式无未来

通达信指标公式源码最牛的抄底追涨公式无未来

通达信指标公式源码最牛的抄底追涨公式无未来抄底追涨实战公式DEFDRAWICON(T1,T2,SHORT):REF(L,T1)>REF(LLV(L,T2),T1)ANDREF(L,T1)<REF(HHV(H,T2),T1)ANDC<REF(O,T1)ANDC>REF(C,T1)ANDC=HHV(H,T1)ANDC<REF(HHV(H,T2),T1)ANDSHORT>REF(MA(C,SHORT),T1)?1:01,DEFDRAWICON(T1,T2,SHORT)定义函数使用3个参数,T1,T2,SHORT。

2,REF(L,T1),取最近T1日内的最低价;3,REF(LLV(L,T2),T1),取最近T1日内,T2日内的最低价的最低价;4,REF(L,T1)>REF(LLV(L,T2),T1),判断最近T1日内的最低价是否大于最近T1日内,T2日内的最低价的最低价;5,REF(L,T1)<REF(HHV(H,T2),T1),判断最近T1日内的最低价是否小于最近T1日内,T2日内的最高价的最高价;6,C<REF(O,T1),判断当日收盘价是否小于最近T1日开盘价;7,C>REF(C,T1),判断当日收盘价是否大于最近T1日收盘价;8,C=HHV(H,T1),判断当日收盘价是否等于最近T1日内的最高价;9,C<REF(HHV(H,T2),T1),判断当日收盘价是否小于最近T1日内,T2日内的最高价的最高价;10,SHORT>REF(MA(C,SHORT),T1),判断当日SHORT均线是否大于最近T1日内当日SHORT均线;11,?1:0,符合上述条件就返回1,否则返回0。

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