最精准抄底通达信指标公式源码
抄底指标通达信指标公式源码
指标王:=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;。
通达信精准的引力抄底【副图】指标公式
通达信精准的引力抄底【副图】指标公式浮平线:=EMA(CLOSE,6)-EMA(CLOSE,13);MB2:=LLV(浮平线,20);门槛线:=REF(MB2,1);底部预警:CROSS(浮平线,门槛线);VAR1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR3:=(SMA(VAR2,3,1)-18)*1.55;VAR4:=SMA(VAR3,3,1);VAR5:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;VAR6:=SMA(VAR5,10,1);VAR7:=(EMA(SMA(VAR6,8,1),34)-25)*2.6;VAR8:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);VAR9:=POW(MA(LOW,5),2)+MA(LOW,5);VARA:=POW(MA(HIGH,5),2)+MA(HIGH,5);VARB:=((VAR8-LLV(VAR9,64))/(HHV(VARA,64)-LLV(VAR9,64))*150+65-10)/2;VARC:=SMA(VARB,3,1)*1.5-46;VARD:=SMA(VARC,3,1);VARE:=3*VARC-2*VARD;VARF:=(VAR1+VAR2+VAR5)/3;VAR10:=((VAR3+VAR3+VAR6+VARC)/4-15)*1.67;VAR11:=((VAR4+VAR4+VAR7+VARD)/4-15)*1.67;VAR12:=((VAR1+VAR5*2+VARF+VAR10+VAR11+VARB+VAR C+VARD+VARE)/10-15)*1.67;VAR13:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;VAR14:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;VAR15:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;VAR16:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;VAR17:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;VAR18:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;VAR19:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;VAR1A:=((VAR13*8+VAR14*8+VAR15*8+VAR16+VAR17+V AR18+VAR19)/28-0.1)*185;VAR1B:=SMA(VAR1A,3,1);VAR1C:=(SMA(VAR1B,8,1)-8)*1.18;引力1:=(VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7) /9;引力2:=(VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7) /13;引力3:=(VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7) /21;引力4:=(VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7) /34;引力5:=(VAR10+VAR11+VAR12+VARC+VARD+VARE+VAR1C+VAR7)/55;预设值:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;设置1:=SMA(预设值,5,1);设值2:=SMA(设置1,5,1);首峰线:=3*设置1-2*设值2;引力抄底:CROSS(首峰线,引力1) AND CROSS(首峰线,引力2) AND CROSS(首峰线,引力3) AND CROSS(首峰线,引力4) AND CROSS(首峰线,引力5),LINETHICK3;。
洗盘结束抄底通达信指标公式源码
洗盘结束抄底通达信指标公式源码通达信是国内主流的股票软件之一,它提供了丰富的技术指标,帮助投资者进行股票分析和决策。
其中,洗盘结束抄底指标是一种常用的技术指标,用于判断股票的洗盘过程是否结束,以及是否适合进行抄底操作。
下面是通达信洗盘结束抄底指标的源码:```//洗盘结束抄底指标的公式源码//计算累积动向值AVGDM:=MA(HIGH-REF(HIGH,1),N)/MA(LOW-REF(LOW,1),N)*100;//计算DX值DX:=MA(AVGDM,M)/MA(AVGDM,N)*100;//计算洗盘结束抄底指标WPR:=(COUNT(CROSS(REF(DX,M),DX),N1)==1)AND(COUNT(CROSS(DX,RE F(DX,N)),N2)==1)AND(COUNT(CROSS(REF(DX,M),DX),N3)==1)AND(COUNT(C ROSS(DX,REF(DX,N)),N4)==1);//绘制指标曲线WPR_LINE:WPR;```上述源码中,涉及到了几个参数的定义:-`N`:累积动向值的计算周期;-`M`:DX值的计算周期;-`N1`、`N2`、`N3`、`N4`:洗盘结束抄底指标的计算周期。
这段源码的计算过程如下:1. 计算累积动向值(Average Directional Movement,简称AD):通过当前最高价和前一个最高价的差值与当前最低价和前一个最低价的差值的比值,乘以100,得到动向值。
然后,计算动向值在N个周期内的平均值。
2.计算DX值:将动向值在M个周期内的平均值除以动向值在N个周期内的平均值,并乘以100,得到DX值。
3.计算洗盘结束抄底指标:判断DX值是否在短周期内连续上穿长周期内,并且判断DX值是否在长周期内连续下穿短周期内。
如果同时满足这两个条件,则表示洗盘结束抄底的信号。
4.绘制指标曲线:将洗盘结束抄底指标的结果绘制成曲线,以便投资者进行观察和分析。
通达信回调抄底指标公式
通达信回调抄底指标公式OSC:=100*(CLOSE-ma(CLOSE,20));MaoSC:=EXPMEMA(OSC,6);F:=100*(C-REF(C,1))/REF(C,1);P1:=IF(C<REF(O,1) AND F<0,1,0);P2:=IF(C<REF(O,2) AND F<0,1,0);LIN:=IF(P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1,1,0);E:=-100*(HHV(HIGH,84)-CLOSE)/(HHV(HIGH,84)-LLV(LOW,84));DJ1:=crOSS(OSC,MAOSC) AND LIN AND REF(EVERY(C<O,3),1) AND REF((E<-98)*50,1);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);DJ2:=CROSS(J,REF(J+0.01,1)) AND X AND J<20 AND REF((E<-98)*50,1) AND REF(EVERY(C<O,3),1);F1:=100*(C-REF(C,1))/REF(C,1);KX:=IF(C<REF(O,1) AND F1<0,1,0);LH:=IF(C<REF(O,2) AND F1<0,1,0);BE:=KX=0 AND REF(KX,1)=1 AND LH=0 AND REF(LH,1)=1;VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(Abs(CLOSE-VAR1),7,1)*100;SS1:=FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5);SM01:=MA((2*C+H+L)/4,5);SM02:=SM01*(200-102)/100;SM03:=(1-7/100)*DMA(C,ABS((2*C+H+L)/4-MA(C,20))/MA(C,20));SM04:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;SM05:=3*SMA(SM04,3,1)-2*SMA(SMA(SM04,3,1),3,1);SM06:=((H+L+C)/3-MA((H+L+C)/3,14))/(0.015*AVEDEV((H+L+C)/3,14));SM07:=SM02<SM03 AND SM05>REF(SM05,1) AND REF(SM05,1)<REF(SM05,2) AND SM06<-100 AND SM06>REF(SM06,1);BZ:=SS1 AND SM07;CC1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);DD1:=DMA(CLOSE,CC1);EE:=(1-14/100)*DD1;DI:=BETWEEN(C,EE*0.98,EE*1.01);WZ:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100;WZBP:=CROSS(-27,WZ) AND COUNT(H=L,5)<1;QSX:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;KJ:=CROSS(-20,QSX);抄底:=(BE AND BZ AND DI) OR WZBP OR KJ OR DJ1 OR DJ2;stICKLINE(抄底,-8,15,1,0),COLORRED,LINETHICK2;STICKLINE(抄底,1,6,1,0),COLOR00FF00,LINETHICK2;DRAWICON(抄底,15,42);DRAWTEXT(抄底,10,'抄底'),COLORYELLOW;。
通达信指标公式源码一个超准的顶底指标公式{高抛低吸}
一个超准的顶底指标公式{高抛低吸},绝对好用(副图、说明、有未来)对选股没影响。
说明:1看图出信时,按提示买卖。
非常简单。
{高抛低吸}强弱分界: 50, POINTDOT;VAR2:=IF(MONTH<12,1,1);VAR3:=(2*CLOSE+HIGH+LOW)/4;VAR4:=LLV(LOW,34);VAR5:=HHV(HIGH,34);主力:EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13)*VAR2,LINETHICK2,COLORRED; 散户:EMA(0.667*REF(主力,1)+0.333*主力,2),LINETHICK1,COLORFF9933; DRAWTEXT(CROSS(主力,散户) AND 主力<20,20,'低点'),LINETHICK2,COLORWHITE;DRAWICON(CROSS(主力,散户) AND 主力<20,21,1);DRAWTEXT(CROSS(主力,67) AND 散户<主力,58,'冲高'),LINETHICK2,COLOR9966FF;DRAWICON(CROSS(主力,67) AND 散户<主力,70,2);DRAWTEXT(CROSS(主力,76) AND 散户<主力,68,'小心被套'),LINETHICK2,COLOR669900;DRAWICON(CROSS(主力,76) AND 散户<主力,80,2);DRAWTEXT(CROSS(散户,主力) AND 散户>78,80,'卖出'),COLORWHITE; DRAWTEXT(CROSS(主力,散户) AND 主力<16,45,'买入'),COLORFFFF00;买入脉冲:IF(CROSS(主力,散户) AND 主力<16,40,5),LINETHICK2,COLORYELLOW;卖出脉冲:IF(CROSS(散户,主力) AND 散户>78,75,90),LINETHICK2,COLORGREEN;BB1:=WINNER(CLOSE)*100;BB2:=100-BB1;BB3:=ABS(BB1-BB2);。
最强抄底通达信指标公式源码
最强抄底通达信指标公式源码抄底是股市中一种常见的交易策略,通达信是一款广泛使用的股市分析软件。
以下是一些在通达信中常用的指标公式源码,用于抄底策略。
1.均线指标源码:```MA(CLOSE,N):=AVE(CLOSE,N);```该指标计算n周期内的收盘价平均值。
2.RSI指标源码:```RSI(CLOSE,N):=BEGINLC:=REF(CLOSE,1);ROC:=CLOSE-LC;UP:=SUM(MAX(ROC,0),N);DOWN:=ABS(SUM(MIN(ROC,0),N));RSI:=UP/(UP+DOWN)*100;RSI;END;```该指标计算n周期内的相对强弱指数。
3.MACD指标源码:```EMAFast:=EMA(CLOSE, 12);EMASlow:=EMA(CLOSE, 26);DIF:=EMAFast - EMASlow;DEA:=EMA(DIF,9);MACD:(DIF-DEA)*2;```该指标由两条移动平均线和一个差离值构成,用于衡量买卖力量。
4.KDJ指标源码:```RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,M1,1);D:=SMA(K,M2,1);J:=3*K-2*D;```该指标由三条曲线构成,用于衡量股价走势的超买超卖情况。
5.威廉指标源码:```WMS:=100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N));```该指标用于衡量股价处于过买或过卖的程度。
这些是通达信中一些常见的指标公式源码,可用于抄底策略。
当然,抄底不只依赖于指标,还需要结合其他股市因素进行分析和判断。
通达信指标公式源码趋势操盘抄底副图指标
通达信指标公式源码趋势操盘抄底副图指标{趋势操盘}VAR1:=(EMA(C,12)-EMA(C,26))*100+50;VAR2:=EMA(VAR1,9);VAR3:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;VAR4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;VAR5:=SMA(VAR4,13,8);VAR6:=SMA(VAR3,21,8);VAR7:=MA(C,80)-MA(C,10)/7;VAR8:=EMA(C,5);VAR9:=MA((LLV(C,9))*1.1,14);VAR10:=2*VAR9-VAR8-C*0.1;VAR11:=IF(((VAR8-VAR10)*5>0),(POW((VAR8-VAR10)*5,2))/10,(-1*(POW((VAR8-VAR10)*(5),2)))/(10));VAR12:=IF((VAR11>0),VAR11-0,12);VAR13:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;趋势线:CEILING(SMA(VAR5,13,8)),LINETHICK2,COLOR0000FF;操盘线: MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK2,COLORBLUE;STICKLINE(FILTER(CROSS(趋势线,VAR12)AND 趋势线>REF(C,1) OR CROSS(趋势线,操盘线) AND 趋势线<20 OR 趋势线>REF(趋势线,1)AND 趋势线<35 AND C>REF(C,1),5),5,20,2,2),COLOR00FF00;底部:IF((趋势线-VAR6<(-65)),20,40),COLORF0F000;顶部:IF((趋势线-VAR6>85),80,100),COLORF0F000;DRAWICON(IF(VAR13<15,15,0),20,1);黄金区:IF(VAR13<15,15,0),COLORYELLOW;强弱分界:50,POINTDOT,COLORAABBDD,LINETHICK2;{抄底不败参数:P1:-20 20 -6}P1:=-6;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;MM:=(BIAS1+2*BIAS2+3*BIAS3)/6;股价趋势:=MA(MM,3),COLORRED;买入信号:=EMA(股价趋势,2);抄底:IF(股价趋势<P1,20,0),COLORFFCCCC;DRAWTEXT(CROSS(股价趋势,买入信号) AND COUNT(买入信号<P1,2)>1,50,'┻'),COLORRED,L INETHICK3;STICKLINE((股价趋势<-9),0,0,4,0 ),COLORCC0033;STICKLINE((股价趋势<-9),0,5,4,0 ),COLORFF9966;底部预警信号:=STICKLINE( (股价趋势<-9),0,2,4,0) ,COLORFFCC66;STICKLINE( (股价趋势<-9),0,8,4,0 ),COLORFFFF66;XY1272:=STICKLINE((股价趋势<-12),10 ,-15,4,0) ,COLOR0066FF;STICKLINE((股价趋势<-12),10 ,-5,4,0 ),COLOR0099FF;STICKLINE((股价趋势<-12),10 ,0,4,0 ),COLOR00CCFF;STICKLINE((股价趋势<-12),10 ,3,4,0),COLOR00FFFF;风险提示:本指标公式仅作为知识分享,不构成任何投资建议,投资有风险,交易需谨慎。
判明底部通达信指标公式源码
判明底部通达信指标公式源码
指标名称:顺势指标(CCI)
股票指标公式:
CCI:=(CLOSE-MA(CLOSE,N))/(0.015*AVEDEV(CLOSE,N));
M1:SMA(ABS(CLOSE-REF(CLOSE,1)),N,1);
M2:SMA(ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,N,1);
M:=M1>M2*1.5;
A1:=SUM(M,N);
A2:=SUM(M,N-1);
RSI:A1/A2*100;
COUNT1:=COUNT(M,N);
COUNT2:=COUNT(M,N-1);
SUMCOUNT:=SUM(COUNT2,N);
CCI:=IF(COUNT2=0,100,RSI/SUMCOUNT*100);
通达信公式描述:
CCI指标,又称顺势指标,由朱令品博士创立,研究的对象是价格与成本之间的关系,以及价格在市场中的状况。
CCI指标是根据过去数据的波动范围,结合价格的涨跌,以及价格偏离均线的距离来衡量股票价格是否过于低迷或过于激进的量化指标。
当CCI指标超过+100时,表明股价
在市场上属于超买区;当CCI指标低于-100时,表明该股处于超卖区。
此外,CCI指标还能及时发现价格的趋势转折,发出买卖信号。
通达信指标公式源码 绝佳抄底副图选股指标
_红柱:IF("MACD.MACD">REF("MACD.MACD",1),"MACD.MACD",DRAWNULL), STICK,COLORRED;绿柱:IF("MACD.MACD"<REF("MACD.MACD",1),"MACD.MACD",DRAWNULL), STICK,COLORYELLOW;_抄底:ABS((CROSS("MACD.DIF","MACD.DEA")&&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.50,COLORLIMAGENTA;_DIF:"MACD.DIF",COLORWHITE;_DEA:"MACD.DEA",COLORYELLOW;__强度:IF(_DIF>_DEA,_DIF,DRAWNULL),COLORRED,LINETHICK2;_强度:IF(_DEA<_DIF,_DEA,DRAWNULL),COLORMAGENTA,LINETHICK2; DRAWTEXT(ABS(_抄底)>0,_抄底*1.20,' 抄底'),COLORYELLOW; DRAWICON(ABS(_抄底)>0,_抄底*1.10,4);DRAWICON(CROSS(_DIF,_DEA),_DEA,1);DRAWICON(CROSS(_DEA,_DIF),_DEA,2);DIFF:EMA(CLOSE,12) - EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA),COLORSTICK;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));MD底背:IF(B1>0,-0.1,0),COLORRED,POINTDOT;KDJ底背:IF(B2>0,-0.1,0),COLORFF00FF,POINTDOT;RSI底背:IF(B3>0,-0.1,0),COLORYELLOW,POINTDOT;MD顶背:IF(D1>0,0.1,0),COLOR00FF00,POINTDOT;KDJ顶背:IF(D2>0,0.1,0),COLORFFCC66,POINTDOT;RSI顶背:IF(D3>0,0.1,0),COLORWHITE,POINTDOT;STICKLINE(B1>0,-0.1,0,2,0),COLORRED;STICKLINE(B2>0,-0.1,0,2,0),COLORFF00FF;STICKLINE(B3>0,-0.1,0,2,0),COLORYELLOW;STICKLINE(D1>0,0.1,0,2,0),COLOR00FF00;STICKLINE(D2>0,0.1,0,2,0),COLORFFCC66;STICKLINE(D3>0,0.1,0,2,0),COLORWHITE;。
通达信指标公式源码 抄底公式(副图)
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;。
抄底逃顶公式通达信指标公式源码
双阳开路版(主图副图选股源码){主图}ZF:=(H-L)/REF(C,1)*100;VV:=VOL/HHV(VOL,250);TJA:=REF(EVERY(L<REF(L,1),2),1) AND C>O AND ZF>1.9 AND VV>0.67 ANDL=LLV(L,10);T:=BARSLAST(TJA);DF:=(HHV(H,T+1)-LLV(L,T+1))/LLV(L,T+1)*100;TJ:=C>O AND VV<0.23 AND DF>28;TT:=BARSLAST(COUNT(TJ,T+1)=1 AND TJ);XG:=CROSS(C,REF(H,TT)) AND COUNT(CROSS(C,REF(H,TT)),TT)=1 AND HSL>5; DRAWLINE(COUNT(TJ,T+1)=1 AND TJ,H,REF(COUNT(TJ,T+1)=1 ANDTJ,1),REF(H,1),1),COLORYELLOW;DRAWICON(XG,L*0.95,1);STICKLINE(XG,C,O,2,0),COLORYELLOW;STICKLINE(XG,L,H,0,0),COLORYELLOW;{幅图}ZF:=(H-L)/REF(C,1)*100;VV:=VOL/HHV(VOL,250);TJA:=REF(EVERY(L<REF(L,1),2),1) AND C>O AND ZF>1.9 AND VV>0.67 ANDL=LLV(L,10);T:=BARSLAST(TJA);DF:=(HHV(H,T+1)-LLV(L,T+1))/LLV(L,T+1)*100;TJ:=C>O AND VV<0.23 AND DF>28;TT:=BARSLAST(COUNT(TJ,T+1)=1 AND TJ);XG:=CROSS(C,REF(H,TT)) AND COUNT(CROSS(C,REF(H,TT)),TT)=1 AND HSL>7 AND TT<45;STICKLINE(XG,0,8,1.2,0),COLORYELLOW;{选股}ZF:=(H-L)/REF(C,1)*100;VV:=VOL/HHV(VOL,250);TJA:=REF(EVERY(L<REF(L,1),2),1) AND C>O AND ZF>1.9 AND VV>0.67 ANDL=LLV(L,10);T:=BARSLAST(TJA);DF:=(HHV(H,T+1)-LLV(L,T+1))/LLV(L,T+1)*100;TJ:=C>O AND VV<0.23 AND DF>28;TT:=BARSLAST(COUNT(TJ,T+1)=1 AND TJ);XG:CROSS(C,REF(H,TT)) AND COUNT(CROSS(C,REF(H,TT)),TT)=1 AND HSL>7 AND TT<45;。
霸气精准追底通达信指标公式源码
霸气精准追底通达信指标公式源码通达信是一款常用的股票分析软件,拥有丰富的技术指标库。
以下是霸气精准追底指标的通达信源码,共计超过1200字:```java/**///计算底部信号double calcBottomSignal(DataArray data, int n)int len = data.length(;double bottomSignal = 0;for (int i = n; i < len; i++)double diffSum = 0;for (int j = 0; j < n; j++)diffSum += data.get(i - j) - data.get(i - j - 1);}if (diffSum <= 0)bottomSignal += 1;}}return bottomSignal / (len - n);//计算霸气指标double calcDomineering(DataArray data, int n)int len = data.length(;double domineering = 0;for (int i = n; i < len; i++)double riseRatio = (data.get(i) - data.get(i - n)) / data.get(i - n);if (riseRatio > 0)domineering += 1;}}return domineering / (len - n);//计算精准指标double calcAccuracy(DataArray data, int n)int len = data.length(;double accuracy = 0;for (int i = n; i < len; i++)double avgRiseRatio = 0;for (int j = 0; j < n; j++)avgRiseRatio += (data.get(i - j) - data.get(i - j - 1)) / data.get(i - j - 1);}avgRiseRatio /= n;if (avgRiseRatio > 0)accuracy += 1;}}return accuracy / (len - n);//主函数void mai//获取收盘价数据DataArray closePrice = GetClosePrice(;//计算底部信号double bottomSignal = calcBottomSignal(closePrice, 20);Print("底部信号:", bottomSignal);//计算霸气指标double domineering = calcDomineering(closePrice, 20);Print("霸气指标:", domineering);//计算精准指标double accuracy = calcAccuracy(closePrice, 20);Print("精准指标:", accuracy);```该源码实现了霸气精准追底指标的计算,基于通达信平台的数据数组类 DataArray。