【股票指标公式下载】-【通达信】涨幅前兆(持币区域、持股区域、短顶、大顶)
起涨起跌点通达信指标公式源码
起涨起跌点通达信指标公式源码【公式解析】起涨起跌点(Upturn-Downturn Point,UDP)是通达信中的一个指标,用来标识股价的起涨和起跌点。
该指标通过计算一定周期内最高点和最低点之间的差值,并与一定比例的移动平均线进行对比,从而判断股价的上涨和下跌力度。
【公式代码】//起涨起跌点(Upturn-Downturn Point)//输入参数:N-计算周期//输出:GD-起涨起跌点UPDOWNP(N):=M:=CLOSE;S:=STD(M,N);GD:=IFF(REF(C,M)>MA(REF(C,M),5),M+N*S,M-N*S);【代码解析】1.首先声明起涨起跌点指标的函数UPDOWNP,函数的输入参数为计算周期N,没有输出参数。
2.内部变量M表示收盘价序列,将其赋值为CLOSE。
3.内部变量S表示收盘价序列的标准差,计算公式为STD(M,N),其中N为计算周期,表示最近N个收盘价的标准差。
4.内部变量GD表示起涨起跌点序列,赋初值为M+N*S,表示最近N个收盘价的平均值加上N倍的标准差。
5.判断条件REF(C,M)>MA(REF(C,M),5)表示收盘价M相对于其5个周期前的移动平均线MA(REF(C,M),5)是否上涨。
6.如果条件成立,即收盘价上涨,则GD赋值为M+N*S,表示起涨点;如果条件不成立,即收盘价下跌,则GD赋值为M-N*S,表示起跌点。
7.返回GD作为起涨起跌点指标的输出。
【注意事项】1.起涨起跌点指标是通过计算收盘价的标准差来判断上涨和下跌力度的,因此在使用时应对计算周期和标准差的倍数加以合理设定。
2.UPDOWNP函数返回的是起涨起跌点序列,可以作为其他指标的输入,进行综合分析和判断。
【总结】以上是起涨起跌点指标的通达信源码和解析。
该指标通过计算一定周期内的收盘价标准差,并与移动平均线进行对比,来判断股价的上涨和下跌力度。
在实际应用中,可以结合其他指标和技术分析方法,进行股价的预测和交易决策。
通达信涨跌比指标公式
通达信涨跌比指标公式续三日以上涨跌比超过1.5倍以上,说明股市比较安全,依然看好;如果大盘连续三日以上涨跌比都低于1.25倍以下,说明股市有疲软征兆,随时有变盘可能;如果大盘连续三日以上涨跌比都低于0.65倍以下,说明股市看空,此时注意止损,不要盲目抄底;如果大盘反复无常,说明行情不明朗,不要急于进场;但如果大盘一段时间萎靡不振,近期大盘涨跌家比超过1.25倍以上,并且逐步攀升,说明大盘即将进入反弹期。
}总上涨家数:="SH999999$ADVANCE"+"SZ399001$ADVANCE";总下跌家数:="SH999999$DECLINE"+"SZ399001$DECLINE";涨跌比:=总上涨家数/总下跌家数;涨跌比限制:IF(涨跌比>3,3,IF(涨跌比<3,涨跌比,0)),NODRAW;STICKLINE((涨跌比> 1.5),0,涨跌比限制,2.8,0),COLOR0000CC;STICKLINE((涨跌比< 0.65),0,涨跌比限制,2.8,0),COLORGREEN;STICKLINE((涨跌比< 1.25 AND 涨跌比>0.65),0,涨跌比限制,2.8,0),COLORCC0033;STICKLINE(涨跌比<1.5 AND 涨跌比限制>=1.25,涨跌比限制,0,3,0),COLORMAGENTA,LINETHICK3;1.5,COLORMAGENTA,LINETHICK1,POINTDOT;1.25,COLORWHITE,LINETHICK1,CIRCLEDOT;0.65,COLORGREEN,LINETHICK1,DOTLINE;涨占比%:总上涨家数/(总上涨家数+总下跌家数)*100,COLORMAGENTA,NODRAW;{停板家数-880006}涨停数:"880006$C"COLOR0000CC,NODRAW;大盘温度1:ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*57.3,NODRA W;大盘温度2:ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*57.3,NODR AW;大盘温度3:ATAN((MA(C,20)/REF(MA(C,20),1)-1)*100)*57.3,NODR AW;。
通达信指标-预测上涨-副选指标源码
通达信指标-预测上涨-副选指标源码副图指标源码A:=1;X00:=O;MX000:=(0.3609454219*X00-0.03309329629*REF(X00,1)-0.04241822779*REF(X00,2)-0.026737249*REF(X00,3)-0.007010041271*REF(X00,4)-0.002652859952*REF(X00,5)-0.0008415042966*REF(X00,6)-0.0002891931964*REF(X00,7)-0.0000956265934*REF(X00,8)-0.0000321286052*REF(X00,9)-0.0000106773454*REF(X00,10)-0.0000035457562*REF(X00,11)-0.0000011670713*REF(X00,12) )/ (1-0.7522406533 );明日重心涨跌幅:=(MX000-X00)/X00*100;资金动力:=明日重心涨跌幅*100;ST:=NOT(C/REF(C,1)>=1.045 AND O=C)*A;ST1:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);涨:=REF(C,1)*1.1-C<0.01 AND H=C;{涨停}最低成本:=COST(5);最高成本:=COST(95);平均成本:=COST(50);成本重心:=(平均成本-最低成本)/(最高成本-最低成本)*100;成本带宽CBW:=(最高成本-最低成本)/最低成本*100*A;中线位置:=(C-LLV(最低成本,120))/LLV(最低成本,120)*100*A;成本突破:=(中线位置<50 AND 成本带宽CBW<40)*A;XG5:=BARSLASTCOUNT(成本突破)*A;AHC1:=CLOSE*VOL;AHC2:=EMA((EMA(AHC1,3)/EMA(VOL,3)+EMA(AHC1,6)/EM A(VOL,6)+EMA(AHC1,12)/EMA(VOL,12)+EMA(AHC1,24)/EMA(V OL,24))/4,13);内上:=1.06*AHC2*A;内下:=AHC2*0.94;XXX:=(MA(CLOSE,120)>内下 AND MA(CLOSE,60)>内下 AND MA(CLOSE,20)>内下AND MA(CLOSE,10)>内下AND MA(CLOSE,5)>内下AND MA(CLOSE,120)<内上AND MA(CLOSE,60)<内上AND MA(CLOSE,20)<内上AND MA(CLOSE,10)<内上AND MA(CLOSE,5)<内上)/2*A;VAR61 := MA(C,26);VAR62 := POW(C - VAR61,2);VAR63 := MA(VAR62,13);VAR64 := SQRT(VAR63);VAR65 :=VAR61 + (2 * VAR64);XG14:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG9:=BARSLASTCOUNT(XG14);XG15:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG10:=BARSLASTCOUNT(XG15);A1:=(C-REF(C,1))/REF(C,1)*100*A;涨多:=NOT(REF(涨,1)) AND REF(A1,1)<3 AND REF(A1,2)<3 AND REF(A1,3)<3 AND REF(A1,4)<3 AND REF(A1,5)<3 AND REF(A1,6)<3*A;D:=MA(O,4)+0.03;霸气:={CROSS(VAR32,50) AND }O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 资金动力<=400 AND 涨多 AND XG9=1;霸气2:={CROSS(VAR32,50) AND }O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 涨多AND XG9=1 AND XXX AND XG5 AND ST1 AND ST AND O/REF(C,1)<1.06 AND REF(C,1)<=D;VAR34 := ZJL.折价率#WEEK;VAR35 := MA(VAR34,PERIOD) + (2 * STD(VAR34,PERIOD));VAR36 := (MA(VAR34,3 * PERIOD)) + (2 * (STD(VAR34,3 * PERIOD)));VAR37 := (MA(VAR34,5 * PERIOD)) + (2 * (STD(VAR34,5 * PERIOD)));VAR38 := (MA(VAR34,6 * PERIOD)) + (2 * (STD(VAR34,6 * PERIOD)));VAR39 := (MA(VAR34,7 * PERIOD)) + (2 * (STD(VAR34,7 * PERIOD)));VAR40 := (MA(VAR35 - (REF(VAR35,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR35 - (REF(VAR35,3 * PERIOD)),PERIOD)));VAR41 := (MA(VAR36 - (REF(VAR36,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR36 - (REF(VAR36,3 * PERIOD)),PERIOD)));VAR42 := (MA(VAR37 - (REF(VAR37,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR37 - (REF(VAR37,3 * PERIOD)),PERIOD)));VAR43 := (MA(VAR38 - (REF(VAR38,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR38 - (REF(VAR38,3 * PERIOD)),PERIOD)));VAR44 := (MA(VAR39 - (REF(VAR39,2 * PERIOD)),PERIOD)) + (2 * (STD(VAR39 - (REF(VAR39,3 * PERIOD)),PERIOD)));VAR45 := REF(HHV(VAR37,5),1);VAR46 := REF(HHV(VAR37,5),6);VAR47 := REF(HHV(VAR37,5),11);VAR48 := REF(HHV(VAR37,5),16);VAR49 := REF(HHV(VAR37,5),21);VAR50 := REF(HHV(VAR37,5),26);VAR51 := IF(VAR45 < REF(MAX(VAR46,VAR47),BARSLAST(CROSS(VAR37,MAX(VAR46, VAR47)))),REF(MAX(VAR46,VAR47),BARSLAST(CROSS(VAR37,MA X(VAR46,VAR47)))),VAR45);气:=((((VAR37 > VAR51)) AND (VAR38 > VAR51)) AND (VAR39 > VAR51)),COLORRED;必涨:XXX AND XG5 AND 霸气AND ST1 AND ST{ AND 气}*A,COLORFF00FF;必涨2:=霸气2 AND (REF(C,2)<REF(O,1) OR REF(C,1)<REF(O,1) OR REF(C,4)>REF(O,1) OR REF(C,3)>REF(O,1))*A;MA34:=EMA(H,5);确定涨:(必涨 2 AND REF(C,1)<REF(MA34,1) { AND 底部<=0.13}){ OR (必涨AND MACD.DIF<0.2)}{AND XG10=1},COLORRED,NODRAW;STICKLINE(确定涨,0,0.5,4,0 )*A,COLOR000099;STICKLINE(确定涨,0,0.5,3,0 )*A,COLOR0000BB;STICKLINE(确定涨,0,0.5,1.5,0 )*A,COLOR0000DD;STICKLINE(确定涨,0,0.5,0.3,0 )*A,COLOR0000FF;选股指标源码A:=1;ST:=NOT(C/REF(C,1)>=1.045 AND O=C)*A;ST1:=IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1);涨:=REF(C,1)*1.1-C<0.01 AND H=C;最低成本:=COST(5);最高成本:=COST(95);成本带宽CBW:=(最高成本-最低成本)/最低成本*100*A;中线位置:=(C-LLV(最低成本,120))/LLV(最低成本,120)*100*A;成本突破:=(中线位置<50 AND 成本带宽CBW<40)*A;XG5:=BARSLASTCOUNT(成本突破)*A;AHC1:=CLOSE*VOL;AHC2:=EMA((EMA(AHC1,3)/EMA(VOL,3)+EMA(AHC1,6)/EM A(VOL,6)+EMA(AHC1,12)/EMA(VOL,12)+EMA(AHC1,24)/EMA(V OL,24))/4,13);内上:=1.06*AHC2*A;内下:=AHC2*0.94;XXX:=(MA(CLOSE,120)>内下 AND MA(CLOSE,60)>内下 AND MA(CLOSE,20)>内下AND MA(CLOSE,10)>内下AND MA(CLOSE,5)>内下AND MA(CLOSE,120)<内上ANDMA(CLOSE,60)<内上AND MA(CLOSE,20)<内上AND MA(CLOSE,10)<内上 AND MA(CLOSE,5)<内上)/2*A;VAR61 := MA(C,26);VAR62 := POW(C - VAR61,2);VAR63 := MA(VAR62,13);VAR64 := SQRT(VAR63);VAR65 :=VAR61 + (2 * VAR64);XG14:=COUNT(REF(L,0)/REF(L,1)>1.03,5)=1;XG9:=BARSLASTCOUNT(XG14);A1:=(C-REF(C,1))/REF(C,1)*100*A;涨多:=NOT(REF(涨,1)) AND REF(A1,1)<3 AND REF(A1,2)<3 AND REF(A1,3)<3 AND REF(A1,4)<3 AND REF(A1,5)<3 AND REF(A1,6)<3*A;D:=MA(O,4)+0.03;霸气2:=O/REF(C,1)>1.02 AND HIGH > REF(VAR65,1) AND 涨多AND XG9=1 AND XXX AND XG5 AND ST1 AND ST AND O/REF(C,1)<1.06 AND REF(C,1)<=D;必涨2:=霸气2 AND (REF(C,2)<REF(O,1) OR REF(C,1)<REF(O,1) OR REF(C,4)>REF(O,1) OR REF(C,3)>REF(O,1))*A;MA34:=EMA(H,5);确定涨:(必涨2 AND REF(C,1)<REF(MA34,1) );{提示大家:在复制通达信指标源码时注意复制完整,复制不完整在测试时指标会提示错误。
通达信指标公式源码 趋势顶底 副图公式
80,COLOR996699;20,COLORGREEN;底:10,COLORCC6633,LINETHICK2;90,COLOR9966FF,LINETHICK2;50,COLORRED;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19); 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);长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:=((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,COLORGREEN;顶部:=FILTER(顶部区域,4);STICKLINE( {见顶OR} 顶部,99,103,20,1 ),COLORRED,LINETHICK2;底部区域:(长期线<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) ,COLORGREEN; STICKLINE( 底部区域,-4,0,22,0 ),COLORGREEN;低位金叉:50*(长期线<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 )),COLORRED;。
【股票指标公式下载】-【通达信】涨幅前兆(庄拉线、买点、卖点)
【通达信】涨幅前兆(庄拉线、买点、卖点)-指标公式源码VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=REF(LLV(CLOSE,480),1);VAR6:=REF(HHV(CLOSE,480),1);VAR7:=100*(CLOSE-VAR5)/(VAR6-VAR5);VAR8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100; VAR9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100; VARA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;VARB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;VARC:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4; VARD:=IF(DATE<1031231,IF(VARC>23.16,VARC,0),0);VARE:=VARC<1;VARF:=VARD;VAR10:=VAR4<0 AND VAR7<0;VAR11:=1;VAR12:=(HIGH+LOW+CLOSE*2)/4*VAR11;VAR13:=EMA(VAR12,21);VAR14:=STD(VAR12,21);VAR15:=((VAR12-VAR13)/VAR14*100+200)/4*VAR11;VAR16:=(EMA(VAR15,89)-25)*1.56*VAR11;VAR17:=EMA(VAR16,5)*1.22*VAR11;VAR18:=EMA(VAR17,3)*VAR11;VAR19:=3*VAR17-2*VAR18*VAR11;VAR1A:=IF(CROSS(VAR19,VAR17) AND CROSS(VAR19,VAR18) ANDCROSS(VAR17,VAR18),1,0);VAR1B:=IF(CROSS(VAR17,VAR19) AND CROSS(VAR18,VAR19) ANDCROSS(VAR18,VAR17),1,0);买点: IF(FILTER(VAR8=0 AND VARE AND VAR10 AND VAR1A,5)=1,10,0), COLORRED; 卖点: IF(FILTER(VAR8=100 AND VARF AND VAR1B,5)=1,10,0), COLORGREEN; VAR1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/ 4;VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89);VAR1E:=EMA(VAR1D,30);VAR1F:=2*(VAR1D-VAR1E)*10;VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2);VAR21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR22:=EMA(VAR21*0.97,3);VAR23:=(HIGH+LOW+CLOSE)/3;VAR24:=(VAR23-MA(VAR23,14))/(0.015*AVEDEV(VAR23,14));VAR25:=IF(YEAR<2008 AND VAR1F>0.015,VAR20,0)/45;庄拉线: VAR25,COLORYELLOW ;VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR27:=EMA(VAR26,100);VAR28:=2*(VAR26-VAR27);VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR2B:=EMA(VAR2A*0.97,3);VAR2C:=(HIGH+LOW+CLOSE)/3;VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14));黑马线: IF( VAR28>0.1,VAR29,0)*5, COLORRED;量价线: (CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100, COLORWHITE;VAR2E:=IF(FILTER(量价线>0 AND 量价线<3,5)=1,12,0);涨幅前兆: IF(FILTER(庄拉线>0 AND 庄拉线<0.5 AND VAR2E ANDVAR1C<3,10)=1,10,0), COLORWHITE;选股利器: IF(FILTER(VAR2E>0 AND VAR1C<2 AND 庄拉线>0 AND 庄拉线<1 AND 黑马线>0 AND 黑马线<1.5 AND VAR2E>0,5)=1,10,0),COLORFFFFFF; DRAWICON(买点>0,10,1);DRAWICON(卖点>0,10,2);DRAWICON(涨幅前兆>0,10,1);DRAWICON(选股利器>0,10,1);【通达信】涨幅前兆(庄拉线、买点、卖点)-指标公式效果图(文档来源:若水财经社区)。
股票-通达信CCI看涨跌主图指标公式
通达信CCI看涨跌主图指标公式_正点财经AAF:LLV(LOW,34),LINETHICK1,COLORFFFFCC;BBF:MA(AAF,4),LINETHICK1,COLORYELLOW;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;AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3) +4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36; VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;短线:VAR1,COLORWHITE;中线:VAR6,COLORYELLOW;下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=CCI1立桩量:=FILTER(TJ1,0),NODRAW;TJ2:=IF(BARSLAST(立桩量)=1,1,0);STICKLINE(立桩量!=1,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,1),COLORCYAN; {STICKLINE(立桩量!=1,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,1),COLORCYAN;}成立1:=TJ2=1;条件成立1:=FILTER(成立1,5);DRAWTEXT(条件成立1,REF(HIGH,BARSLAST(立桩量)),看跌),COLORLIBLUE;TJ11:=CCI1-差值4;立桩量2:=FILTER(TJ11,0),NODRAW;TJ22:=IF(BARSLAST(立桩量2)=1ANDCLOSEREF(HIGH,1),1,0);突破2:=TJ22=1;{STICKLINE(CLOSEAND下跌!=VAR6,REF(HIGH,BARSLAST(立桩量2)),REF(HIGH,BARSLAST(立桩量2)),1,1),COLORYELLOW;}STICKLINE(CLOSEAND下跌!=VAR6,REF(LOW,BARSLAST(立桩量2)),REF(LOW,BARSLAST(立桩量2)),1,1),COLORYELLOW; TJ:=IF(BARSLAST(立桩量2)=1ANDCLOSEREF(LOW,1),1,0); 成立2:=TJ=1;条件成立2:=FILTER(成立2,5);DRAWTEXT(条件成立2,REF(LOW,BARSLAST(立桩量2)),看涨),COLORLIMAGENTA;TJ111:=ABS(CCI1)CCIANDABS(差值1)ABS(差值5);立桩量3:=FILTER(TJ111,3);TJ3:=IF(BARSLAST(立桩量3)=1ANDCLOSEREF(LOW,1),1,IF(BARSLAST(立桩量3)=2ANDCLOSEREF(LOW,2),1,IF(BARSLAST(立桩量3)=3ANDCLOSEREF(LOW,3),1,0)));成立:=TJ3=1;条件成立:=FILTER(成立,5);DRAWTEXT(条件成立AND下跌!=VAR6,L*0.97,☆成立LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1)) *100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(FF,MA15),BBF,底背离),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH*1.02),顶背离),COLOR1880FF;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB131ANDEMA(X1,13)REF(EMA(X1,8),1),10) ,EMA8,45),COLORWHITE;STICKLINE(1,C,O,2.8,0),COLOR666600;STICKLINE(立桩量,C,O,2.8,0),COLOR0000FF;STICKLINE(1,C,O,0,0),COLORCCCCCC;通达信CCI看涨跌主图指标公式实例图解:通达信CCI看涨跌主图指标公式。
通达信指标说明
通达信指标说明轻松红牛”---老鼠仓、牛窝、大胆博、牛起步是买入信号,逃顶、小心变盘卖出为上。
“黑牛均线”主力、操盘、界点三线与绿降进行比较,绿降下来买入风险较低。
同时还有相应的操作提醒。
技术角度说还是比较可靠的。
“利多买卖”出现买入信号,检查波段介入点是否转向,再检查金峰暴利有没有出现金叉,如果出现,大胆进入.出货时相反,金峰出现死叉,波段转向,利多买卖卖出,赶快走吧!“庄影难逃”红柱子多于绿柱子买入,反之卖出。
红的多可以买进,绿的多卖出有个小窍门:主动买盘大于主动卖盘时可以不急着卖,主动卖盘大于主动买盘时卖出为上。
“波段介入点”低点买进,高点卖出“波段王”指标,出现绿色卖,出现红色买。
很好用的,是名副其实的波段王。
“主力进出”红的进候买进,绿的时候卖出“追涨”刚出现粉红色的方形可以买进“变色KDJ”看箭头指示,红的买进,绿的卖出“顶底极品”红箭头买进,绿箭头卖出“绝杀”--出现绝杀时买入。
窍门:MA3线在MA4线下方时上涨趋势,反之下跌趋势“特殊会员专用”可以帮助了解一段时间内主力是否持股,特别关注“会员专用”线(蓝色)的位置,一旦“会员专用”线上升,说明主力介入,股票拉升。
“虚拟成交量”有利于判断股票当日能否涨停。
关注开盘后数据的大小,开盘后虚拟成交量柱子较高,涨停的可能性大。
“DKDB多空对比”在当天该指标四条线都在6以下,第二天就会见到低点,同时"短线宝典"指标出现"底背离"为"90"时抄的就是大底.当DKDB多空对比的四条线都到100后,就是强势,一旦出现回调,白线跌到20以下,第二天出现低点就可以买进,“极品短线”波形在最低时买入,在最高点卖出“资金流向”能看到主力的意图,只要红柱多,说明主力筹码多,拉升在即“短线买点”当走势线(白线)低于警戒线(黄线)时,那就是考虑买进的时候了;当白线走到一定的高度开始转弯向下时,那就是要开始抛了庄影难逃12 成交量,大单的主动买卖比例买卖特灵12 买入准备,买入。
通达信筹码辨顶底指标公式
通达信筹码辨顶底指标公式
通达信筹码辨顶底指标公式是通过计算特定时期内的持仓成本与当前成交价之差的比例来判断市场的顶部和底部。
1. 首先,计算筹码密度指标(CD):
CD = (∑(成交价-持仓成本)/持仓成本) / 总成交额 * 100
2. 然后,计算筹码分布指标(PD):
PD = (CD - MA(CD, n)) / MA(CD, n) * 100
其中,MA表示平均值算法,n表示计算的周期。
3. 最后,根据筹码分布指标PD的数值来判断市场的顶部和底部:
- 当PD数值高于一定的阈值(如20)时,表明市场可能处
于顶部,即空头力量较大,应考虑减仓或空仓;
- 当PD数值低于负的一定阈值(如-20)时,表明市场可能
处于底部,即多头力量较大,应考虑加仓或多仓;
- 当PD数值在阈值范围内时,表明市场可能处于震荡走势,投资者可以根据其他指标结合情况作出判断。
以上是通达信筹码辨顶底指标的公式和判断方法,投资者可以根据自己的实际情况和市场状况来使用和调整阈值。
通达信近期顶底主图指标公式
STICKLINE(出,C,O,2,0),COLORGREEN;
低:=REF(LLV(L,N),判断高低);
近期底:REFDATE(低,DATE),COLORRED,LINETHICK3;
最底:=REFDATE(近期底,DATE),NODRAW;
N:=150;判断高低:=3;
高:=REF(HHV(H,N),判断高低);
近期顶:REFDATE(高,DATE),COLORGREEN,LINETHICK3;
最顶:=REFDATE(近期顶,DATE),NODRAW;
出:=最顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW;
进:=最底=L AND ((C+L)<(O+C) OR (O+L)<(C+O)),NODRAW;
STICKLINE(进,C,O,3,0),COLORRED;
STICKLINE(进,C,O,2,0),COLORRED;
顶底公式一般都是出现在副图的多主图也有但不直观这公式由顶线和底线组成顶线为绿底线为红当k线触及顶线k线就变绿当k线触及底线k线就变红很好分辨
通达信近期顶底主图指标公式
通达信近期顶底主图指标公式
顶底公式一般都是出现在副图的多,主图也有但不直观,这公式由顶线和底线组成,顶线为绿,底线为红,当K线触及顶线,K线就变绿,当K线触及底线,K线就变红,很好分辨。
通达信指标公式
通达信指标公式通达信是一种常用的股票分析软件,它包含了许多技术指标的公式,可以帮助投资者进行股票分析和决策。
以下是一些常见的通达信指标公式的中文描述:1. 移动平均线(MA):移动平均线是一种常用的趋势指标,用于显示一段时间内股价的平均水平。
通达信中常用的移动平均线有5日、10日、20日、30日、60日等。
计算公式为:MA(N) = (C1 + C2 + ... + Cn) / N,其中N为移动平均线的天数,C为当天的收盘价。
2. 相对强弱指标(RSI):相对强弱指标可以衡量股价涨跌的强度和速度,帮助判断股票的超买超卖状态。
通达信中的RSI计算公式为:RSI = 100 - (100 / (1 + RS)),其中RS为N日内收盘价上涨和下跌的平均值。
3. 随机指标(KDJ):随机指标通过比较最高价和最低价的位置,来判断市场的超买超卖现象。
通达信中的KDJ计算公式包括三个指标:K值、D值和J值。
计算公式为:K = (C - Ln) / (Hn - Ln) * 100,D = MA(K, M),J = 3 * K - 2 * D。
4. 动量指标(MTM):动量指标可以测量股价涨跌的速度和幅度,用于判断市场的力量和趋势。
通达信中的MTM计算公式为:MTM = C - Cn,其中C为当天的收盘价,Cn为N天前的收盘价。
5. 平均真实波幅(ATR):平均真实波幅可以衡量股票价格的波动性,帮助判断股票的风险和波动情况。
通达信中的ATR计算公式为:ATR = MA(TR, N),其中TR为真实波幅,N为计算的天数。
6. 指数平滑移动平均线(EMA):指数平滑移动平均线是一种更加平滑的移动平均线,它在计算时给予较新数据更大的权重。
通达信中的EMA计算公式为:EMA(N) = (2 * C + (N - 1) * EMA') / (N + 1),其中C为当天的收盘价,EMA'为前一天的指数平滑移动平均值。
通达信涨跌顶底主图指标公式
通达信涨跌顶底主图指标公式{涨跌顶底}范围高A:=REFDATE(HHV(H,120),DATE)*1.05;范围低A:=REFDATE(LLV(L,120),DATE)*0.95;MA5:MA(CLOSE,5),COLORWHITE;MA24:=MA(C,24),COLORGREEN,LINETHICK2;MA72:=MA(C,72),COLORRED,LINETHICK2;MA200:=IF((MA(C,200)<=范围高A AND MA(C,200)>=范围低A) OR C>=MA(C,200),MA(C,200),DRAWNULL),COLORBLUE,LINETHICK2;{=======================仪表盘=========================}主升浪:=ISLASTBAR AND MA5>MA24 AND MA24>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);主浪回调:=ISLASTBAR AND MA24>MA5 AND MA5>MA72 AND MA72>IF(MA200=DRAWNULL,0,MA200);主浪深调:=ISLASTBAR AND MA24>MA72 AND MA72>MA5 AND MA5>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 AND MA72>MA24 AND MA5>MA24;探底阶段:=ISLASTBAR AND IF(MA200=DRAWNULL,300,MA200)>MA72 AND MA72>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 AND C>=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;拉升:IF(CURRBARSCOUNT=1 AND REF(C,1)<REF(C,2) AND C>REF(C,1) AND MA1>REF(MA1,1),CONST(REF(C,1)*1.01),DRAWNULL),COLORFF00FF;A001:STICKLINE(CURRBARSCOUNT=1 AND C>=REF(C,1),拉升,拉升*0.9992,15,0),COLORMAGENTA;DRAWTEXT(CURRBARSCOUNT=1 AND 拉升=CONST(REF(C,1)*1.01),L*0.99996,' 拉升线'),COLORMAGENTA;DRAWKLINE(H,拉升,L,C);止损:REF(HHV(H,13),1)*0.95,COLORGREEN,DOTLINE;A002:STICKLINE(CURRBARSCOUNT=1 AND C>=REF(C,1),止损,止损*0.9996,15,0),COLORGREEN;DRAWTEXT(CURRBARSCOUNT=1,止损*0.996,'止损线'),COLORGREEN;DRAWKLINE(H,O,L,C);ZKP:=IF(C>REF(C,1),REF(C,1),DRAWNULL);ZSP:=IF(C>REF(C,1),C,DRAWNULL);DKP:=IF(C<=REF(C,1),REF(C,1),DRAWNULL);DSP:=IF(C<=REF(C,1),C,DRAWNULL);DRAWKLINE(H,DKP,L,DSP);STICKLINE(C<=REF(C,1),DKP,DSP,3.05,0),COLORBLUE;STICKLINE(C<=REF(C,1),DKP,DSP,2.2,0),COLORFF7700;STICKLINE(C<=REF(C,1),DKP,DSP,1.5,0),COLORFF9900;STICKLINE(C<=REF(C,1),DKP,DSP,0.5,0),COLORFFBB00;DRAWKLINE(H,ZKP,L,ZSP);STICKLINE(C>REF(C,1),ZKP,ZSP,3.05,0),COLOR000099;STICKLINE(C>REF(C,1),ZKP,ZSP,2.2,0),COLOR0000CC;STICKLINE(C>REF(C,1),ZKP,ZSP,1.5,0),COLOR0000FF;STICKLINE(C>REF(C,1),ZKP,ZSP,0.5,0),COLORCC66FF;STICKLINE(V/REF(V,1)>2 AND CLOSE>=OPEN,ZKP,ZSP,1,0),COLORYELLOW;MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16 *REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10* REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4* REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLOR8000FF,LINETHICK2;MA10:=MA(C,10);MA30:=MA(C,30);五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA5-REF(MA5,1))/REF(MA5,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1), MA5,DRAWNULL),LINETHICK3,COLORGREEN;多空线:=(MA(C,8)+MA(C,17)+MA(C,26)+MA(C,35)+MA(C,44)+MA(C, 53)+MA(C,62)+MA(C,71)+MA(C,80)+MA(C,91)+MA(C,102)+MA( C,113)+MA(C,124)+MA(C,135)+MA(C,146)+MA(C,157)+MA(C,1 68))/17,COLORWHITE;做多:=多空线+STD(C,80),COLOR00FFFF;做空:=多空线-STD(C,80),COLORFFFF00;买线:=EMA(C,4);卖线:=EMA(SLOPE(C,20)*10+C,35);DRAWTEXT(CROSS(买线,卖线),LOW*1.00,'←买'),COLORRED,LINETHICK2;DRAWTEXT(CROSS(卖线,买线),HIGH*1.01,'←卖'),COLORGREEN;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT(CROSS(90,RSI) , HIGH*1.01,'←逢高出局!'),COLOR00FF00 ;A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A, 4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF( A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*R EF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+R EF(A,20))/210;主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;ZZ:=(O+H+L)/3;YC:=(H+L)/2;YCHJX:=(EMA(ZZ,4))+(YC-REF(ZZ,3))/4;今日买点:EMA(ZZ,3),COLORYELLOW,LINETHICK0;明日买点:YCHJX,LINETHICK0;昨测今日买点:REF(YCHJX,1),LINETHICK0;FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'←拐点卖'),COLOR00FF00;DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'←拐点买'),COLOR00FFFF;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,BA RSLAST(VAR2)),5,0),COLOREA91B5;支撑: REF(LOW,BARSLAST(VAR4)), POINTDOT,COLOR3791B5;STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BAR SLAST(VAR4)),5,0),COLOR3791B5;DRAWTEXT(VAR2,HIGH*1.01,'跌'),COLOR00E40E;VAR5:=IF(VAR2,HIGH,IF(VAR4,LOW,0));VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3);VAR7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);VAR9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),3);VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),3);VARB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),3);DRAWTEXT(CROSS(VAR9,0.9),LOW*0.99,'涨'),COLOR0000FF;DRAWTEXT(CROSS(VARA,0.9),HIGH*1.01,'犹豫'),COLOR00E5E9;现价:CLOSE,POINTDOT,COLORRED;N:=150;判断高低:=3;高:=REF(HHV(H,N),判断高低);近期顶:REFDATE(高,DATE),COLORGREEN,LINETHICK3;最顶:=REFDATE(近期顶,DATE),NODRAW;出:=最顶=H AND ((C-L)<(O-C) OR (O-L)<(C-O)),NODRAW;STICKLINE(出,C,O,3,0),COLORGREEN;STICKLINE(出,C,O,2,0),COLORGREEN;低:=REF(LLV(L,N),判断高低);近期底:REFDATE(低,DATE),COLORRED,LINETHICK3;最底:=REFDATE(近期底,DATE),NODRAW;进:=最底=L AND ((C+L)<(O+C) OR (O+L)<(C+O)),NODRAW;STICKLINE(进,C,O,3,0),COLORRED;STICKLINE(进,C,O,2,0),COLORRED;马线:=MA(牛线,8),COLORGREEN;DRAWICON( FILTER(CROSS(牛线,马线),20),马线+0.02 ,1);DRAWTEXT(CROSS(牛线,马线),LOW*0.98,'买'),COLORRED,LINETHICK2;庄家:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+ 16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20) )/210,COLORRED;上涨家数:INDEXADV,COLOR0080FF,NODRAW;下跌家数:INDEXDEC,COLORGREEN,NODRAW;涨停:DYNAINFO(3)*1.1,COLORRED,NODRAW;跌停:DYNAINFO(3)*0.9,COLORGREEN,NODRAW;VAR111:=ZIG(3,13);STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 < REF(VAR111,1)),CLOSE,OPEN,3,0),COLOR66FF00;DRAWTEXT_FIX(STICKLINE((REF(VAR111,2) < REF(VAR111,1)) AND (VAR111 < REF(VAR111,1)),CLOSE,OPEN,5,0),0.00,0.11,0,''),COLOR00FF00,LI NETHICK1;VAR010:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR011:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR012:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR013:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR014:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR015:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR016:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR017:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR018:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR019:=EMA(CLOSE,2)-EMA(CLOSE,150);买1:=VAR010;买2:=(VAR011+VAR013+VAR015+VAR017);卖1:=(VAR012+VAR014+VAR016+VAR018);B:=IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYEL LOW;DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'*'),COLORRED;S:=IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGR EEN;DRAWTEXT(卖1>0,HIGH*1.02,'*'),COLORGREEN;DRAWICON((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)),LOW*0.97,5) ;DRAWICON((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)),HIGH*1.03,6);DRAWRECTREL(0,500,147,999.4,IF(120,RGB(10,0,0),0));超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;大宗进限制:=IF((超B+大B)=0,0,大宗进);大宗出限制:=IF((超S+大S)=0,0,大宗出);非大宗进限制:=IF(中B+小B=0,0,非大宗进);非大宗出限制:=IF(中S+小S=0,0,非大宗出);主力净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;散户净流入:=(中B+小B)-(中S+小S),COLORRED,NODRAW;净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),COLORRED,NODRAW;大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW;大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入);大单流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW;大单流出限制:=IF((超B+大B+超S+大S)=0,0,大单流出比);总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;成交总量:=(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW;机构参与度:=(超B+超S+大B+大S)/成交总量*100,COLORYELLOW,NODRAW;大单强度:=(超B+大B-超S-大S)/成交总量*100,COLORYELLOW,NODRAW;大单强度限制:=IF(大单强度=0,-100,大单强度);大单强度比:=IF(大单强度>=0,(大单强度限制+100)/2,100-ABS((大单强度限制-100)/2)),NODRAW;超单强度:=(超B-超S)/(超B+超S)*100,COLORYELLOW,NODRAW;超单强度限制:=IF(超单强度=0,-100,超单强度);超单强度比:=IF(超单强度>0,(超单强度限制+100)/2,IF(超单强度<0,100-ABS((超单强度限制-100)/2),0)),NODRAW;DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;DRAWRECTREL(0,CONST(930-(ABS(大宗进)*250/DAZHIV)),35,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(37,CONST(930-(ABS(大宗出)*250/DAZHIV)),72,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(75,CONST(930-(ABS(非大宗进)*250/DAZHIV)),110,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(112,CONST(930-(ABS(非大宗出)*250/DAZHIV)),147,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(150,CONST(940-(ABS(净流入)*250/DAZHIV))-20,190,950,IF(CONST(净流入>0),RGB(200,0,0),RGB(0,125,50)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT('' ,CON2STR(大宗进/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.036,0.9,0,STRCAT('', CON2STR(大宗出/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.074,0.9,0,STRCAT('', CON2STR(非大宗进/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.111,0.9,0,STRCAT('',CON2STR(非大宗出/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.150,0.9,0,STRCAT('', CON2STR(净流入/1,0))),COLORYELLOW;DRAWTEXT_FIX(1,0.000,0.99,0,STRCAT(STRCAT('主力',CON2STR(主力净流入,0)),'万')),COLORMAGENTA;DRAWTEXT_FIX(1,0.078,0.99,0,STRCAT(STRCAT('散户',CON2STR(散户净流入,0)),'万')),COLORCYAN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.145,0.99,0,'净流入:(万)'),COLORYELLOW;主力买力度:=LARGEINTRDVOL*1000/VOL;主力卖力度:=LARGEOUTTRDVOL*1000/VOL;AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW;DRAWRECTREL(0,515,CONST(ABS(主力买力度)*560/AAD),568,IF(CONST(主力买力度)>0,RGB(255,0,0),RGB(0,50,0)));DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*560/AAD),623,IF(CONST(主力卖力度)>0,RGB(0,50,0),RGB(255,0,0)));DRAWTEXT_FIX(1,0,0.524,0,STRCAT('主买力度:',CON2STR(主力买力度,0))),COLORYELLOW;DRAWTEXT_FIX(1,0,0.576,0,STRCAT('主卖力度:',CON2STR(主力卖力度,0))),COLORYELLOW;DRAWTEXT_FIX(C>0,0.08,0.0,0,STRCAT('所属行业:',HYBLOCK)),COLORYELLOW;DRAWTEXT_FIX(C>0,0.18,0.0,0,STRCAT('所属地区:',DYBLOCK)),COLORYELLOW;{DRAWTEXT_FIX(C>0,0.20,0.0,0,STRCAT('主题投资:',GNBLOCK)),COLORYELLOW;DRAWTEXT_FIX(1,0.00,0.04,0,'业绩预报:')COLORYELLOW;DRAWTEXT_FIX(1,0.06,0.04,0,EXTERNSTR(0,11))COLORYELL OW;{DRAWTEXT_FIX(C>0,0.0,0.05,0,STRCAT('主题投资:',EXTERNSTR(0,7))),COLORYELLOW;}{DRAWTEXT_FIX(C>0,0.00,0.05,0,STRCAT('业绩预报:',EXTERNSTR(0,11))),COLORYELLOW;}{DRAWTEXT_FIX(C>0,0.0,0.15,0,STRCAT('解禁日期:',EXTERNSTR(0,8))),COLORYELLOW;}{DRAWTEXT_FIX(C>0,0.00,0.20,0,STRCAT('千股千评:',EXTERNSTR(0,1))),COLOR00FFFF;}{DRAWTEXT_FIX(C>0,0.00,0.25,0,STRCAT('智能诊股:',EXTERNSTR(0,2))),COLOR00FFFF;};{DDE显示}DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*1000/FINANCE(7);DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);DRAWRECTREL(150,500,192,540,IF(CONST(DDX)>0,RGB(255 ,0,0),RGB(0,50,0)));DRAWRECTREL(150,545,192,585,IF(CONST(DDY)>0,RGB(255 ,0,0),RGB(0,50,0)));DRAWRECTREL(150,590,192,630,IF(CONST(DDZ)>0,RGB(255 ,0,0),RGB(0,50,0)));DRAWTEXT_FIX(1,0.153,0.500,0,STRCAT('DDX:',CON2STR(DD X,1))),COLORYELLOW,COLORWHITE;DRAWTEXT_FIX(1,0.153,0.548,0,STRCAT('DDY:',CON2STR(DD Y,1))),COLORYELLOW,COLORWHITE;DRAWTEXT_FIX(1,0.153,0.596,0,STRCAT('DDZ:',CON2STR(DD Z,1))),COLORYELLOW,COLORWHITE;T1:=IF (DDX>0 AND REF(DDX,1)<0,1,0);T2:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)<0,2,T1);T3:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)<0,3,T2);T4:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)<0,4,T3);T5:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)<0,5,T4);T6:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)<0,6,T5);T7:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)<0,7,T6);T8:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)<0,8,T7);T9:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 AND REF(DDX,9)<0,9,T8);T:=IF (DDX>0 AND REF(DDX,1)>0 AND REF(DDX,2)>0 AND REF(DDX,3)>0 AND REF(DDX,4)>0 AND REF(DDX,5)>0 AND REF(DDX,6)>0 AND REF(DDX,7)>0 AND REF(DDX,8)>0 AND REF(DDX,9)>0,10,T9);DRAWTEXT_FIX(1,0.190,0.500,0,STRCAT(STRCAT('',CON2STR(T,0)),' [天] ')),COLORYELLOW;T11:=IF (DDY>0 AND REF(DDY,1)<0,1,0);T21:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)<0,2,T11);T31:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)<0,3,T21);T41:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)<0,4,T31);T51:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)<0,5,T41);T61:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)<0,6,T51);T71:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)<0,7,T61);T81:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)<0,8,T71);T91:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY,9)<0,9,T81);TY01:=IF (DDY>0 AND REF(DDY,1)>0 AND REF(DDY,2)>0 AND REF(DDY,3)>0 AND REF(DDY,4)>0 AND REF(DDY,5)>0 AND REF(DDY,6)>0 AND REF(DDY,7)>0 AND REF(DDY,8)>0 AND REF(DDY,9)>0,10,T91);DRAWTEXT_FIX(1,0.190,0.548,0,STRCAT(STRCAT('',CON2STR(TY01,0)),' [天] ')),COLORYELLOW;T1Z:=IF (DDZ>0 AND REF(DDZ,2)<0,1,0);T2Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)<0,2,T1Z);T3Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)<0,3,T2Z);T4Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)<0,4,T3Z);T5Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)<0,5,T4Z);T6Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)<0,6,T5Z);T7Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)<0,7,T6Z);T8Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)<0,8,T7Z);T9Z:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)<0,9,T8Z);TZ:=IF (DDZ>0 AND REF(DDZ,1)>0 AND REF(DDZ,2)>0 AND REF(DDZ,3)>0 AND REF(DDZ,4)>0 AND REF(DDZ,5)>0 AND REF(DDZ,6)>0 AND REF(DDZ,7)>0 AND REF(DDZ,8)>0 AND REF(DDZ,9)>0,10,T9Z);DRAWTEXT_FIX(1,0.190,0.596,0,STRCAT(STRCAT('',CON2STR(TZ,0)),' [天] ')),COLORYELLOW;M1:=30;P2:=80;VAR11:=(C+H+O+L)/4;买入:=XMA(VAR11,M1)*(1-P2/1000),COLORFFFFFF,LINETHICK2;反弹:=EMA(EMA(EMA(HIGH,5),5),5)*0.95,COLORRED,LINETHICK1;XG:=CROSS(买入,反弹);DRAWTEXT(XG,(LOW -0.2),'暴' ),COLORRED;。
通达信历史涨幅指标公式
通达信历史涨幅指标公式涨幅:=(C-REF(C,1))/REF(C,1)*100;历史涨幅:SUM(涨幅,0),NODRAW;一周涨幅:历史涨幅-REF(历史涨幅,5),NODRAW;两周涨幅:历史涨幅-REF(历史涨幅,10),NODRAW;一月涨幅:历史涨幅-REF(历史涨幅,20),NODRAW;一季涨幅:历史涨幅-REF(历史涨幅,60),NODRAW;半年涨幅:历史涨幅-REF(历史涨幅,120),NODRAW;一年涨幅:历史涨幅-REF(历史涨幅,240),NODRAW;A11:=(一月涨幅)-MA(一月涨幅,12),COLORWHITE;A21:=(HHV(A11,20)+LLV(A11,20))/2;A31:=(A11+A21)/2;A41:MA((A11+A21+A31)/3,15);M12:=MA(A11,2);M15:MA(A11,5),COLORYELLOW;DRAWBAND(A41,RGB(100,50,205),M15,RGB(0,50,100));A1:=(历史涨幅)-MA(历史涨幅,12),COLORWHITE;A2:=(HHV(A1,20)+LLV(A1,20))/2;A3:=(A1+A2)/2;A4:MA((A1+A2+A3)/3,15);M2:=MA(A1,2);M5:MA(A1,5),COLORYELLOW;DRAWBAND(A4,RGB(60,0,205),M5,RGB(48,0,50));上影线:=(H-C)/REF(C,1);下影线:=(O-L)/REF(C,1);DRAWKLINE(M2*(1+上影线),REF(M2,1)*(1+(O-REF(C,1))/REF(C,1)),REF(M2,1)*(1-下影线),M2);DRAWTEXT(LONGCROSS(M2,M5,4),REF(M2,1),'↖上拐'),COLORGREEN;DRAWICON(CROSS(M5,A4),A4,25);DRAWTEXT(CROSS(M5,A4),A4,'↖日金叉'),COLORGREEN;DRAWICON(CROSS(M15,A41),A41,26);DRAWTEXT(CROSS(M15,A41),A41,'↖月金叉'),COLORGREEN;TT:=CROSS(M15,A41) AND CROSS(M5,A4) AND M2*(1+上影线)>0;DRAWTEXT(TT,-20,'启爆'),COLORGREEN;0;TY:=REF(M2,1)*(1+(O-REF(C,1))/REF(C,1));AG1:=REF(TY,10)=HHV(TY,2*10+1);BG1:=FILTER(AG1,10);C1:=BACKSET(BG1,10+1); {这里有人说是未来,这只是用画线辅助判断}HD:=FILTER(C1,10);AG2:=REF(TY,10)=LLV(TY,2*10+1);BG2:=FILTER(AG2,10);C2:=BACKSET(BG2,10+1); {这里有人说是未来,这只是用画线辅助判断}LD:=FILTER(C2,10);前高位:REF(REF(M2,1)*(1+(O-REF(C,1))/REF(C,1)),BARSLAST(HD)),COLOR00FF00,POINTDOT;STICKLINE(REF(M2,1)*(1+(O-REF(C,1))/REF(C,1)),前高位,前高位,2,0),COLORYELLOW;。
通达信一眼辨别趋势主图指标公式
通达信一眼辨别趋势主图指标公式M1:=5;M2:=10;M3:=20;M4:=60;DRAWGBK(C>0,RGB(0,10,10),RGB(88,0,0),0,'0',0);DRAWGBK(C>0,RGB(40,120,20),RGB(00,00,00),0,'0',1);DRAWGBK(C>0,RGB(80,100,120),RGB(00,00,00),0,'0',1);MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);BM:=EMA(C,2);SM:=EMA(SLOPE(C,21)*20+C,42);BU:=CROSS(BM,SM);SEL:=CROSS(SM,BM);DRAWICON(BU,L-0.05,1);DRAWICON(SEL,H+0.03,2);STICKLINE(BM>=SM,LOW,HIGH,0,1),COLORRED;STICKLINE(BM>=SM,CLOSE,OPEN,3,1),COLORRED;STICKLINE(BM<SM,LOW,HIGH,0,1),COLORCYAN;STICKLINE(BM<SM,CLOSE,OPEN,3,1),COLORCYAN;{缠论}{五线顺上的拐点定位线,有未来函数}局部低点预选A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4);局部低点预选B:=BACKSET(局部低点预选A=0 AND REF(局部低点预选A,1)=1,2);局部低点预选C:=IF(局部低点预选B=1 AND REF(局部低点预选B,1)=0,-1,0);局部高点预选A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4);局部高点预选B:=BACKSET(局部高点预选A=0 AND REF(局部高点预选A,1)=1,2);局部高点预选C:=IF(局部高点预选B=1 AND REF(局部高点预选B,1)=0,1,0);缺口判断:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0));距前高天:=BARSLAST(局部高点预选C=1);距前低天:=BARSLAST(局部低点预选C=-1);小值周期:=LOWRANGE(L);大值周期:=TOPRANGE(H);低保留AA:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留AB:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR LLV(L,距前低天+2)<REF(LLV(L,距前低天+1),1)),-1,0);低保留S:=IF((低保留AA=-1 OR 低保留AB=-1) AND L<REF(H,距前高天+1),-1,0);预判:=IF((距前低天<4 AND HHV(缺口判断,距前低天)!=1) OR REF(低保留S,距前低天)=0,1,0);判断:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND 预判=1 AND 大值周期>REF(小值周期,距前低天+1) AND 大值周期>REF(小值周期,距前低天) AND 大值周期>REF(大值周期,距前高天),1,0);高保留A:=IF(局部高点预选C=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低天+1)>REF(HHV(H,距前低天+1),1),1,0);高保留B:=IF(局部高点预选C=1 AND REF(距前低天,1)<=REF(距前高天,1) AND REF(低保留S,距前低天)=-1 AND (距前低天>=4 OR HHV(缺口判断,距前低天)=1),1,0);高保留:=IF((高保留A=1 OR 高保留B=1 OR 判断=1) AND H>REF(L,距前低天+1),1,0);预判A:=IF((距前高天<4 AND HHV(缺口判断,距前高天)!=1) OR REF(高保留,距前高天)=0,1,0);判断A:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND 预判A=1 AND 小值周期>REF(大值周期,距前高天+1) AND 小值周期>REF(大值周期,距前高天) AND 小值周期>REF(小值周期,距前低天),-1,0);低保留A:=IF(局部低点预选C=-1 AND REF(距前高天,1)>REF(距前低天,1) AND LLV(L,距前高天+1)<REF(LLV(L,距前高天+1),1),-1,0);低保留B:=IF(局部低点预选C=-1 AND REF(距前高天,1)<=REF(距前低天,1) AND (距前高天>=4 OR LLV(缺口判断,距前高天)=-1 OR 判断A=-1),-1,0);低保留:=IF((低保留A=-1 OR 低保留B=-1) AND L<REF(H,距前高天+1),-1,0);距前高天A:=BARSLAST(高保留=1);距前低天A:=BARSLAST(低保留=-1);预判X:=IF((距前低天A<4 AND HHV(缺口判断,距前低天A)!=1) OR REF(低保留,距前低天A)=0,1,0);判断X:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND 预判X=1 AND 大值周期>REF(小值周期,距前低天A+1) AND 大值周期>REF(小值周期,距前低天A) AND 大值周期>REF(大值周期,距前高天A),1,0);高保留XA:=IF(局部高点预选C=1 AND REF(距前低天A,1)>REF(距前高天A,1) AND HHV(H,距前低天A+1)>REF(HHV(H,距前低天A+1),1),1,0);高保留XB:=IF(局部高点预选C=1 AND REF(距前低天A,1)<=REF(距前高天A,1) AND REF(低保留,距前低天A)=-1 AND (距前低天A>=4 OR HHV(缺口判断,距前低天A)=1),1,0);高保留X:=IF((高保留XA=1 OR 高保留XB=1 OR 判断X=1) ANDH>REF(L,距前低天A+1),1,0);预判XA:=IF((距前高天A<4 AND HHV(缺口判断,距前高天A)!=1) OR REF(高保留XA,距前高天A)=0,1,0);判断XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND 预判XA=1 AND 小值周期>REF(大值周期,距前高天A+1) AND 小值周期>REF(大值周期,距前高天A) AND 小值周期>REF(小值周期,距前低天A),-1,0);低保留XA:=IF(局部低点预选C=-1 AND REF(距前高天A,1)>REF(距前低天A,1) AND LLV(L,距前高天A+1)<REF(LLV(L,距前高天A+1),1),-1,0);低保留XB:=IF(局部低点预选C=-1 AND REF(距前高天A,1)<=REF(距前低天A,1) AND (距前高天A>=4 OR LLV(缺口判断,距前高天A)=-1 OR 判断XA=-1),-1,0);低保留X:=IF((低保留XA=-1 OR 低保留XB=-1) AND L<REF(H,距前高天A+1),-1,0);距前高天YA:=BARSLAST(高保留X=1);距前低天YA:=BARSLAST(低保留X=-1);预判YX:=IF((距前低天YA<4 AND HHV(缺口判断,距前低天YA)!=1) OR REF(低保留X,距前低天YA)=0,1,0);判断YX:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND 预判YX=1 AND 大值周期>REF(小值周期,距前低天YA+1) AND 大值周期>REF(小值周期,距前低天YA) AND 大值周期>REF(大值周期,距前高天YA),1,0);高保留YXA:=IF(局部高点预选C=1 AND REF(距前低天YA,1)>REF(距前高天YA,1) AND HHV(H,距前低天YA+1)>REF(HHV(H,距前低天YA+1),1),1,0);高保留YXB:=IF(局部高点预选C=1 AND REF(距前低天YA,1)<=REF(距前高天YA,1) AND REF(低保留X,距前低天YA)=-1 AND (距前低天YA>=4 OR HHV(缺口判断,距前低天YA)=1),1,0);高保留YX:=IF((高保留YXA=1 OR 高保留YXB=1 OR 判断YX=1)AND H>REF(L,距前低天YA+1),1,0);预判YXA:=IF((距前高天YA<4 AND HHV(缺口判断,距前高天YA)!=1) OR REF(高保留YXA,距前高天YA)=0,1,0);判断YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND 预判YXA=1 AND 小值周期>REF(大值周期,距前高天YA+1) AND 小值周期>REF(大值周期,距前高天YA) AND 小值周期>REF(小值周期,距前低天YA),-1,0);低保留YXA:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)>REF(距前低天YA,1) AND LLV(L,距前高天YA+1)<REF(LLV(L,距前高天YA+1),1),-1,0);低保留YXB:=IF(局部低点预选C=-1 AND REF(距前高天YA,1)<=REF(距前低天YA,1) AND (距前高天YA>=4 OR LLV(缺口判断,距前高天YA)=-1 OR 判断YXA=-1),-1,0);低保留YX:=IF((低保留YXA=-1 OR 低保留YXB=-1) AND L<REF(H,距前高天YA+1),-1,0);AAAD:=IF(高保留YX=1 AND 低保留YX=-1 AND H>REF(H,REF(距前高天YA,1)+2),1,IF(高保留YX=1 AND 低保留YX=-1 AND L<REF(L,REF(距前低天YA,1)+2),-1,0));极点保留:=IF(AAAD=0,高保留YX+低保留YX,AAAD);局部极点:IF(极点保留=-1,L,IF(极点保留=1,H,DRAWNULL)),CIRCLEDOT,COLORYELLOW;DRAWLINE(极点保留=-1,局部极点,极点保留=1,局部极点,0)COLORLIRED,LINETHICK3;DRAWLINE(极点保留=1,局部极点,极点保留=-1,局部极点,0)COLORLICYAN,LINETHICK5;DD1:=BARSLAST(ABS(极点保留)!=1);DRAWICON(极点保留=1,局部极点,2);DRAWICON(极点保留=-1,局部极点,1);。
通达信专用逃顶指标公式
通达信专用逃顶指标公式首先是移动平均线(MA)。
移动平均线是统计一段时间内收盘价的平均值,可以衡量价格走势的长期趋势。
常用的移动平均线周期包括5日、10日、20日、30日、60日和120日。
股价向上突破移动平均线时,说明股价处于上升趋势;股价向下跌破移动平均线时,说明股价处于下降趋势。
其次是指数平滑移动平均线(EMA)。
指数平滑移动平均线在计算中更注重最近的价格数据,对股价的变动更加敏感。
EMA的计算方法是给每个价格数据赋予权重,根据不同的权重比例来计算平滑移动平均线。
EMA具有更快的反应速度和更强的短期趋势捕捉能力。
再次是相对强弱指数(RSI)。
相对强弱指数是一种常用的超买超卖指标,用于判断市场的买入力量和卖出力量。
RSI的计算方法是根据一定周期内的涨跌幅度来计算,一般周期为14天。
当RSI超过70时,说明市场处于超买状态,可能出现回调;当RSI低于30时,说明市场处于超卖状态,可能出现反弹。
最后是顶部运动指标(TMT)。
顶部运动指标是通达信独有的指标,用于判断股票等金融产品的顶部风险。
顶部运动指标的计算方法是结合MA、EMA和RSI等指标,通过对多个指标的综合分析判断股价是否到达顶部,进而决定是否逃离市场。
1.计算移动平均线(MA)。
通达信系统默认提供了5日、10日、20日、30日、60日和120日的移动平均线,可以根据不同的需要选择相应的周期。
2.计算指数平滑移动平均线(EMA)。
通达信系统默认提供了12日、26日和9日的指数平滑移动平均线。
EMA的计算公式如下:EMA(N)=(2×收盘价+(N-1)×前一日EMA)/(N+1)其中,N表示周期数,一般情况下取12、26或93.计算相对强弱指数(RSI)。
通达信系统默认使用14日的相对强弱指数。
RSI的计算公式如下:RSI(n)=100×(1-1/(1+RS))RS=n天内收盘价上涨幅度的平均值/n天内收盘价下跌幅度的平均值4.根据给定的规则判断顶部运动指标(TMT)是否达到顶部。
爆涨临界点通达信指标公式源码
精准高成功率公式买点参考竖线及信号共振准【副图、说明、贴图】用法:不多说了,公式很简单,只要出现竖线,线周围至少3个图标信号就可以考虑关注。
竖线及信号共振准,连续两天多信号共振则说明启爆开始了。
公式内容非常多,综合了很多经典牛X的公式,更多的使用方法你挖掘。
DRAWGBK(1,RGB(36,38,40),RGB(24,16,51),0,1,0);VAR1B := (100 * (EMA(EMA(C - REF(C,1),6),6))) / (EMA(EMA(ABS(C - REF(C,1)),6),6)); 抄底红箭:= ((LLV(VAR1B,2) = LLV(VAR1B,7)) AND (COUNT(VAR1B < 0,2))) AND CROSS(VAR1B,MA(VAR1B,2));量能:= IF((MA((VOL - REF(VOL,1)) / REF(VOL,1),10)) = DRAWNULL,EMA((VOL - REF(VOL,1)) / REF(VOL,1),10),MA((VOL - REF(VOL,1)) / REF(VOL,1),10));股价:= IF(((CLOSE - MA(CLOSE,22)) / MA(CLOSE,22)) = DRAWNULL,(CLOSE -EMA(CLOSE,22)) / EMA(CLOSE,22),(CLOSE - MA(CLOSE,22)) / MA(CLOSE,22));主力量能:= IF(((股价* (100 + 量能)) - (MA(股价* (100 + 量能),7))) = DRAWNULL,(股价* (100 + 量能)) - (EMA(股价* (100 + 量能),7)),(股价* (100 + 量能)) - (MA(股价* (100 + 量能),7)));量能金叉:= CROSS(主力量能,0);TYP := ((HIGH + LOW) + CLOSE) / 3;CCI := (TYP - MA(TYP,14)) / (0.015 * AVEDEV(TYP,14));CCI金叉:= CROSS(CCI,-100);A1 := EMA(C,14);A1X := ((A1 - REF(A1,1)) / REF(A1,1)) * 100;出击A := IF(A1X >= 0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0)) + 1),DRAWNULL);出击A金叉:= CROSS(A1X,0);DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD金叉:= CROSS(DIFF,DEA);MTR := EXPMEMA(MAX(MAX(HIGH - LOW,ABS(HIGH - REF(CLOSE,1))),ABS(REF(CLOSE,1) - LOW)),14);HD := HIGH - REF(HIGH,1);LD := REF(LOW,1) - LOW;DMP := EXPMEMA(IF((HD > 0) AND (HD > LD),HD,0),14);DMM := EXPMEMA(IF((LD > 0) AND (LD > HD),LD,0),14);PDI := (DMP * 100) / MTR;MDI := (DMM * 100) / MTR;ADX := EXPMEMA(((ABS(MDI - PDI)) / (MDI + PDI)) * 100,6);ADXR := EXPMEMA(ADX,6);X1 := MAX(C,O);X2 := MIN(C,O);X := ((REF(C > O,2)) AND (REF(X1,2) >= HHV(X1,2))) AND (REF(X2,2) <= LLV(X2,2));B := BARSLAST(X) + 2;A := ((REF(X1,B) >= HHV(X1,B)) AND (REF(X2,B) <= LLV(X2,B))) AND (EVERY(V <= REF(V,1),B));肉夹馍:= (((REF(A,1) AND (C > O)) AND (C > REF(HHV(H,B),1))) AND (V >REF(HHV(V,B),1))) AND (EVERY(MA(C,5) > MA(C,10),B + 1));平台起飞: IF(((LAST(((H - L) / REF(C,1)) < 0.1,5,0)) AND (VOL > (REF(VOL,1) * 2))) AND (C > (REF(C,1) * 1.05)),1,DRAWNULL),NODRAW,COLOR6060A0;NH := 18;LOWV := LLV(LOW,NH);HIGHV := HHV(HIGH,NH);MAV := MA(V,3);横盘:= ((HIGHV - LOWV) / NH) < 0.15;放量1 := V >= (1.8 * MAV);今天大阳:= ((C - REF(C,1)) / REF(C,1)) >= 0.05;启动: IF((横盘AND 放量1) AND 今天大阳,1,DRAWNULL),NODRAW,COLOR4080FF;A☆:= DMA(((H + L) + (C * 2)) / 4,0.9);B☆:= VOL / (((H - L) * 2) - (ABS(C - O)));C☆☆:= (IF(C > O,B☆* (H - L),IF(C < O,B☆* ((H - O) + (C - L)),VOL / 2))) + (IF(C > O,0 - (B☆* ((H - C) + (O - L))),IF(C < O,0 - (B☆* (H - L)),0 - (VOL / 2))));A☆☆:= (C☆☆/ 20) / 1.15;攻击流量:= ((A☆☆* 0.618) + (REF(A☆☆,1) * 0.382)) + (REF(HSL.HSL,2) * 0.168);B☆☆:= EMA(攻击流量,3);流量:= IF(B☆☆> REF(B☆☆,1),1,0);AA☆:= ((MAX(C,O) - MIN(C,O)) / MIN(C,O)) < 0.00618;BB☆:= ((H - MAX(C,O)) / MAX(C,O)) > 0.00382;DD☆:= ((MIN(C,O) - L) / L) > 0.00382;EE☆:= ((ABS(BB☆- DD☆)) / C) < 0.00618;星☆星:= ((AA☆AND BB☆) AND DD☆) AND EE☆;星线选:= ((((星☆星= 1) AND (流量= 1)) AND (C > O)) AND ((ABS((C - MA(C,20)) / MA(C,20))) > 0.0382)) AND ((H - MAX(C,O)) <= (MIN(C,O) - L));星线确认: IF(((IF((REF(星线选,1) = 1) AND (C >= REF(C,1)),1,0)) AND (C > O)) AND (((C - REF(C,1)) / REF(C,1)) > 0.00618),1,DRAWNULL),NODRAW,COLORFF3399;一阳穿三线: IF(((((CROSS(PDI,MDI) AND CROSS(PDI,ADX)) AND CROSS(PDI,ADXR)) AND (CLOSE > OPEN)) AND ((C / REF(C,1)) > 0.5)) AND (VOL > (MA(VOL,5) *1.5)),1,DRAWNULL),NODRAW,COLOR800080;T31 := (REF(C,1) / REF(C,2)) >= 1.095;T32 := (O > REF(C,1)) AND (C > O);T33 := ((H > C) AND (O > L)) AND (L >= REF(C,1));T34 := V > REF(V,1);涨停螺旋: IF(((T31 AND T32) AND T33) ANDT34,1,DRAWNULL),NODRAW,COLOR002080;RSV := ((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100;K := SMA(RSV,3,1);D := SMA(K,3,1);J := (3 * K) - (2 * D);KD金叉:= CROSS(K,D);A1B := EMA(((L + H) + (C * 2)) / 4,14);A1XB := ((A1B - REF(A1B,1)) / REF(A1B,1)) * 100;出击B := IF((A1XB >= 0) AND (BARSLAST(CROSS(A1XB,0)) > 0),REF((C + O) /2,BARSLAST(CROSS(A1XB,0))),DRAWNULL);出击B金叉:= CROSS(出击B,0);WMTM := CLOSE - REF(CLOSE,12);动量金叉:= CROSS(WMTM,0);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))) AND (CLOSE >= REF(CLOSE,2));VAR10 := (REF(VARF,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2));VAR11 := (REF(VAR10,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2));VAR12 := (REF(VAR11,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2));VAR13 := (REF(VAR12,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2));VAR14 := (REF(VAR13,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2));VAR15 := (REF(VAR14,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2));VAR16 := (REF(VAR15,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2));VAR17 := (REF(VAR16,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >=REF(CLOSE,2));VAR18 := (REF(VAR17,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <=REF(CLOSE,2));K线金底:= (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;下跌:= ((((((((((VARD OR VARE) OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18;K线银底:= (下跌AND (C > O)) AND (C > REF(C,1));金银K线:= REF(K线银底,1) AND K线金底;HLC := REF(MA(((HIGH + LOW) + CLOSE) / 3,10),1);HV := EMA(HHV(HIGH,10),3);LV := EMA(LLV(LOW,10),3);麦克支撑压力:= EMA((HLC * 2) - LV,3);短线突击:= EMA((C + REF(C,1)) / 2,3);PSY := ((COUNT(CLOSE > REF(CLOSE,1),12)) / 12) * 100;PSYMA := MA(PSY,6);预选安全区域:= (C <= 麦克支撑压力) AND (C >= 短线突击);做空衰歇:= CROSS(ADX,MDI);做多金叉:= CROSS(PDI,MDI);拉升金叉:= CROSS(ADX,ADXR) AND (PDI > MDI);初选量能金叉:= 量能金叉AND (金银K线OR 抄底红箭);初选基础池:= (预选安全区域AND (((金银K线OR 抄底红箭) OR 动量金叉) OR (做空衰歇OR 做多金叉))) AND ((初选量能金叉OR CCI金叉) OR 出击A金叉);动量金叉确认:= (动量金叉OR (REF(动量金叉,1) AND (拉升金叉OR 做多金叉))) OR (做多金叉AND 做空衰歇);出击B金叉确认:= 出击B金叉AND ((REF(CCI金叉OR KD金叉,1)) OR 做空衰歇);做多金叉确认:= 做多金叉OR (做空衰歇AND 拉升金叉);MACD金叉确认:= MACD金叉AND REF(量能金叉,1);KD金叉确认:= KD金叉AND (REF((金银K线OR 抄底红箭) OR 做空衰歇,1));稳操胜券: IF((REF(初选基础池,1) AND ((动量金叉确认OR 出击B金叉确认) OR 启动)) AND ((做多金叉确认OR MACD金叉确认) OR KD金叉确认),1,DRAWNULL),COLORA000FF; 追涨: IF(((((肉夹馍OR 平台起飞) OR 启动) OR 一阳穿三线) OR 星线确认) OR 涨停螺旋,1,DRAWNULL),COLORRED;关注:= ((((((((金银K线+ 抄底红箭) + 量能金叉) + CCI金叉) + CROSS(出击A,0)) + CROSS(出击B,0)) + 拉升金叉) + 做多金叉) + KD金叉) + MACD金叉;DRAWBAND(关注,RGB(51,32,64),0,RGB(255,96,96));STICKLINE(稳操胜券,0,9.0,0.8,0),COLORLIMAGENTA;STICKLINE(涨停螺旋,0,4.0,0.3,0),COLOR002080;STICKLINE(星线确认,0,3.5,0.0,0),COLORFF0080;STICKLINE(肉夹馍,0,3.0,1.3,0),COLORRED;STICKLINE(一阳穿三线,0,2.5,1.8,0),COLORB040B0;STICKLINE(启动,0,2.0,2.3,0),COLOR0080FF;STICKLINE(平台起飞,0,1.5,2.8,0),COLOR6060A0;追涨显示条件:= ((((肉夹馍OR 平台起飞) OR 启动) OR 一阳穿三线) OR 星线确认) OR 涨停螺旋;金K线显示条件:= ((REFX(稳操胜券OR 追涨显示条件,1)) OR 初选基础池) OR ((CURRBARSCOUNT <= 2) AND 初选基础池);银K线显示条件:= (REFX(K线金底AND 金K线显示条件,1)) OR ((CURRBARSCOUNT <= 2) AND 初选基础池);STICKLINE(K线银底AND 银K线显示条件,0,0.5,3.5,0),COLORLIGRAY;STICKLINE(金银K线AND 金K线显示条件,0,1.0,3.3,0),COLOR006060;图标显示:= ((REFX(稳操胜券,1) OR 稳操胜券) OR 追涨显示条件) OR ((CURRBARSCOUNT <= 2) AND 初选基础池);DRAWICON(抄底红箭AND 图标显示,0.3,1);DRAWICON(出击A金叉AND 图标显示,1.0,16);DRAWICON(出击B金叉AND 图标显示,2.0,17);DRAWICON(CCI金叉AND 图标显示,3.0,25);DRAWICON(量能金叉AND 图标显示,4.0,26);DRAWICON(KD金叉AND 图标显示,5.0,27);DRAWICON(MACD金叉AND 图标显示,6.0,34);DRAWICON(做多金叉AND 图标显示,7.0,13);DRAWICON(做空衰歇AND 图标显示,6.5,14);DRAWICON(拉升金叉AND 图标显示,8.0,23);DRAWICON(动量金叉AND 图标显示,9.5,30);。
起涨起跌点 通达信指标公式源码
通达信起涨点和下跌点画线主图指标公式,有助投资者对股票走势的判断。
起涨起跌K:=BARSLAST(CURRBARSCOUNT=120);GD:=CONST(IF(ISLASTBAR=1,HHV(H,K),0));DD:=CONST(IF(ISLASTBAR=1,LLV(L,K),0));KJ:=GD-DD;A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3);C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3);A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3); C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2;H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=BARSCOUNT(2) OR BARSCOUNT(CLOSE)=1;L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 ANDCOUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);L2:=LD OR BARSTATUS=BARSCOUNT(2) OR BARSCOUNT(CLOSE)=1;X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 ANDCOUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);J1:=BACKSET(BARSTATUS=BARSCOUNT(2),MIN(BARSLAST(HD),BARSLAST(LD))+1);J2:=J1>REF(J1,1);A3:=H<REF(H,REF(BARSLAST(HD),1)+1);B3:=REF(H,REF(BARSLAST(HD),1)+1)>REF(H,REF(BARSLAST(HD),1)+2+REF(BARSLAST(HD),REF(BARSLAST(HD),1)+2));D3:=A3 AND B3 AND HD; E3:=BACKSET(D3,REF(BARSLAST(HD),1)+2);HH:=E3>REF(E3,1);A4:=L>REF(L,REF(BARSLAST(LD),1)+1);B4:=REF(L,REF(BARSLAST(LD),1)+1)<REF(L,REF(BARSLAST(LD),1)+2+REF(BARSLAST( LD),REF(BARSLAST(LD),1)+2));D4:=A4 AND B4 AND LD; E4:=BACKSET(D4,REF(BARSLAST(LD),1)+2);LL:=E4>REF(E4,1);DRAWICON(HH,H,12); DRAWICON(LL,L,11 );H3:=HH OR BARSTATUS=BARSCOUNT(HH) OR BARSCOUNT(C)=1;X3:=REF(BARSLAST(H3),1)+1; F3:=BACKSET(H3 ANDCOUNT(LL,X3)>0,LLVBARS(IF(LL,L,POW(10,20)),X3));G3:=F3>REF(F3,1); I3:=BACKSET(G3,2); LZ:=I3>REF(I3,1);L4:=LZ OR BARSTATUS=BARSCOUNT(2) OR BARSCOUNT(C)=1;X4:=REF(BARSLAST(L4),1)+1; F4:=BACKSET(L4 ANDCOUNT(HH,X4)>0,HHVBARS(IF(HH,H,-POW(10,20)),X4));G4:=F4>REF(F4,1); I4:=BACKSET(G4,2); HZ:=I4>REF(I4,1);K1:=BACKSET(BARSTATUS=BARSCOUNT(2),MIN(BARSLAST(HZ),BARSLAST(LZ))+1); K2:=K1>REF(K1,1);UU:=BACKSET(BARSTATUS=BARSCOUNT(2),BARSLAST(LD)+1);VV:=UU>REF(UU,1);WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);XX:=WW>REF(WW,1);DRAWLINE(XX,L,VV,L,1),COLORMAGENTA,LINETHICK1;UU2:=BACKSET(BARSTATUS=BARSCOUNT(2),BARSLAST(HD)+1);VV2:=UU2>REF(UU2,1);WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);XX2:=WW2>REF(WW2,1);DRAWLINE(XX2,H,VV2,H,1),COLORMAGENTA,LINETHICK1;N:=1;XGG:=ZIG(H,L);STICKLINE(HH,DD,GD,0,-1),COLORGREEN;STICKLINE(CURRBARSCOUNT=N/2,GD,DD,0,-1),COLORGREEN;STICKLINE(CURRBARSCOUNT=1 AND C<O,GD,DD,0,-1),COLORGREEN;STICKLINE(CURRBARSCOUNT=1 AND C>O,GD,DD,0,-1),COLORRED;STICKLINE(LL,GD,DD,0,-1),COLORRED;。
【股票指标公式下载】-【通达信】顶置优化(小心变盘、逃顶、上高点)
STICKLINE((OPEN<CLOSE),CLOSE,OPEN,0,0),COLORRED;
C4:=CROSS(VAR2,VAR3);
C5:=CROSS(VAR3,VAR2);
DRAWICON(C4,LOW-0.2,7);
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.2,0),COLOR0000BB;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.0,0),COLOR0000CC;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,1.8,0),COLOR0000DD;
DRAWICON(C5,HIGH+0.2,8);
A1AA:=9;
A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.03),'小心变盘'),COLORFFFFFF;
DRAWTEXT(CROSS(83,RSI),H*1.04,'逃顶')COLORYELLOW;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2,2),COLORBBBB00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.0,0),COLORCCCC00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,1.8,0),COLORDDDD00;
上高点:HHV(C,30),LINETHICK2,COLORGREEN;
通达信逢顶必跌逢低必涨指标公式
买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND 长趋势>1.3*趋势线,趋势线,'买'),COLORRED,LINETHICK1;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
长趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK3;
趋势线:EMA(Q3, 3),COLORRED,LINETHICK3;
DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, REF(长趋势,3), '股票顶部'),COLORRED,LINETHICK5;
请注意甄别内容中的联系方式诱导购买等信息谨防诈骗
通达信逢顶必跌逢低必涨指标公式
STICKLINE(C>1,90,65,5,0),COLORRED;
STICKLINE(C>1,80,65,5,0),COLOR6ቤተ መጻሕፍቲ ባይዱ006A;
STICKLINE(C>1,0,65,5,0),COLOR888800;
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
DRAWTEXT(CROSS(长趋势,趋势线),趋势线,'★'),COLORRED;
VAR3:=(3,15,1)<10;
VAR5:=IF(VAR3=1,2,0);
股票顶部:= IF(VAR5=2,2,0);
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】涨幅前兆(持币区域、持股区域、短顶、大顶)-指标公式源码VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CL OSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;{持币区域:VAR1,COLORFEDCBA;持股区域:IF(VAR1>0,VAR1,0),COLORRED;}短顶:STICKLINE(VAR1>9 ANDFILTER(VAR1<REF(VAR1,1),5),VAR1+2,0,3,0),COLORGREEN;大顶:STICKLINE(VAR1>20 ANDFILTER(VAR1<REF(VAR1,1),5),VAR1+5,0,7,0),COLOR00FF00;VAR2:=HHV(VAR1>20,10);危险: STICKLINE(VAR2 ANDCROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+1 0,0,4,0);注意止损:STICKLINE(VAR2 AND FILTER(VAR1< REF(VAR1,1),6)AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,0,3,0);短底:=STICKLINE(VAR1<-9 AND VAR1> REF(VAR1,1),VAR1-2,0,3,0),COLORRED; 大底:STICKLINE(VAR1<-20 AND FILTER(VAR1>REF(VAR1,1),5),VAR1-5,0,7,0),COLORYELLOW;买入准备:VAR1<-9 AND VAR1>REF(VAR1,1),COLORWHITE;DRAWTEXT(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+2,'短顶'),COLOR00FF00;DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+5,'大顶'),COLORFFFF00;DRAWTEXT(VAR2 ANDCROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+1 0,'危险'),COLOR00FFFF;DRAWTEXT(VAR2 AND FILTER(VAR1< REF(VAR1,1),6) ANDCROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,'注意止损'),COLORFF00FF; DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),VAR1-2,'短底'),,COLOR0000FF;DRAWTEXT(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),VAR1-5,'大底'),; DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),1,'买入准备');VAR3:=LLV(HIGH,240);VAR4:=((100 * (CLOSE - VAR3)) / VAR3);VAR5:=REF(LLV(CLOSE,480),1);VAR6:=REF(HHV(CLOSE,480),1);VAR7:=((100 * (CLOSE - VAR5)) / (VAR6 - VAR5));VAR8:=(((CLOSE - LLV(CLOSE,981)) / (HHV(CLOSE,981) - LLV(CLOSE,981))) * 100);VAR9:=(((CLOSE - LLV(CLOSE,393)) / (HHV(CLOSE,393) - LLV(CLOSE,393))) * 100);VARA:=(((CLOSE - LLV(LOW,981)) / (HHV(HIGH,981) - LLV(LOW,981))) * 100); VARB:=(((CLOSE - LLV(LOW,393)) / (HHV(HIGH,393) - LLV(LOW,393))) * 100); VARC:=(EMA(((100 * (CLOSE - LLV(LOW,100))) / (HHV(HIGH,100) -LLV(LOW,100))),5) / 4);VARD:=IF((DATE < 1031231),IF((VARC > 23.16),VARC,0),0);VARE:=(VARC < 1);VARF:=VARD;VAR10:=((VAR4 < 0) AND (VAR7 < 0));VAR11:=1;VAR12:=((((HIGH + LOW) + (CLOSE * 2)) / 4) * VAR11);VAR13:=EMA(VAR12,21); VAR14:=STD(VAR12,21);VAR15:=((((((VAR12 - VAR13) / VAR14) * 100) + 200) / 4) * VAR11); VAR16:=(((EMA(VAR15,89) - 25) * 1.56) * VAR11);VAR17:=((EMA(VAR16,5) * 1.22) * VAR11);VAR18:=(EMA(VAR17,3) * VAR11);VAR19:=((3 * VAR17) - ((2 * VAR18) * VAR11));VAR1A:=IF(((CROSS(VAR19,VAR17) AND CROSS(VAR19,VAR18)) ANDCROSS(VAR17,VAR18)),1,0);VAR1B:=IF(((CROSS(VAR17,VAR19) AND CROSS(VAR18,VAR19)) ANDCROSS(VAR18,VAR17)),1,0);买点:IF((FILTER(((((VAR8 = 0) AND VARE) AND VAR10) AND VAR1A),5) = 1),10,0),COLORRED;卖点:IF((FILTER((((VAR8 = 100) AND VARF) AND VAR1B),5) =1),10,0),COLORGREEN;VAR1C:=(EMA(((100 * (CLOSE - LLV(LOW,100))) / (HHV(HIGH,100) -LLV(LOW,100))),13) / 4);VAR1D:=(EMA(CLOSE,2) - EMA(CLOSE,89));VAR1E:=EMA(VAR1D,30);VAR1F:=((2 * (VAR1D - VAR1E)) * 10);VAR20:=((POW(VAR1F,3) * 0.1) + POW(VAR1F,2));VAR21:=SQRT(SQRT((((LOW * HIGH) * OPEN) * CLOSE)));VAR22:=EMA((VAR21 * 0.97),3);VAR23:=(((HIGH + LOW) + CLOSE) / 3);VAR24:=((VAR23 - MA(VAR23,14)) / (0.015 * AVEDEV(VAR23,14)));VAR25:=(IF(((YEAR < 2008) AND (VAR1F > 0.015)),VAR20,0) / 45);庄拉线:VAR25,COLORYELLOW;VAR26:=(EMA(CLOSE,2) - EMA(CLOSE,150)); VAR27:=EMA(VAR26,100);VAR28:=(2 * (VAR26 - VAR27));VAR29:=((POW(VAR28,3) * 0.1) + POW(VAR28,1));VAR2A:=SQRT(SQRT((((LOW * HIGH) * OPEN) * CLOSE)));VAR2B:=EMA((VAR2A * 0.97),3);VAR2C:=(((HIGH + LOW) + CLOSE) / 3);VAR2D:=((VAR2C - MA(VAR2C,14)) / (0.015 * AVEDEV(VAR2C,14)));黑马线:=(IF((VAR28 > 0.1),VAR29,0) * 5),COLORRED;量价线:(((CLOSE - MA(CLOSE,21)) / MA(CLOSE,21)) * 100),COLORFFFFFF; VAR2E:=IF((FILTER(((量价线 > 0) AND (量价线 < 3)),5) = 1),12,0);涨幅前兆:IF((FILTER(((((庄拉线 > 0) AND (庄拉线 < 0.5)) AND VAR2E) AND (VAR1C < 3)),10) = 1),10,0),COLORFFFFFF;选股利器:IF((FILTER((((((((VAR2E > 0) AND (VAR1C < 2)) AND (庄拉线 > 0)) AND (庄拉线 < 1)) AND (黑马线 > 0)) AND (黑马线 < 1.5)) AND (VAR2E > 0)),5) = 1),10,0),COLORFF00FF; DRAWICON((买点 > 0),10,1); DRAWICON((卖点 > 0),10,2); DRAWICON((涨幅前兆 > 0),10,1);DRAWICON((选股利器 > 0),5,1);DRAWBAND(量价线,RGB(255,221,0),0,RGB(0,200,0));IF(黑马线/2>=45,45,黑马线/2),COLORRED;DRAWICON(ISLASTBAR=1 AND CROSS(量价线,0),0,11);拉升开始:(5 * (((((((庄拉线 > 0.1) AND (COUNT((庄拉线 > 0.1),2) = 1)) AND (CLOSE >= OPEN)) AND (VOL > REF(VOL,1))) AND ((VOL / CAPITAL) > 0.003)) AND (量价线 > 1)) AND (量价线 > 黑马线))),LINETHICK2,COLOR00FFFF; DRAWICON((拉升开始 > 0),5,10);量价主升浪:(8 * FILTER((CROSS(量价线,黑马线) AND (庄拉线 >0.5)),7)),LINETHICK3,COLORFF00FF; DRAWICON((量价主升浪 > 0),8,8);庄拉主升浪:(11 * ((CROSS(庄拉线,黑马线) AND (黑马线 > 0)) AND (量价线 > 0))),LINETHICK3,COLORFF00FF;DRAWICON((庄拉主升浪 > 0),11,8);{PJJ:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);JJ:=REF(EMA(PJJ,3),1);}QJJ:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH - LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 - (QJJ * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (QJJ * (HIGH - LOW))),(0 - (VOL / 2)))));ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22)); 流量基线:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);周流量:=SUM(LLJX,5);BB1:=REF(周流量,1);ZQZJJ:=(((周流量 - BB1) / BB1) * 100);周增幅:=IF(((周流量 > 0) AND (BB1 < 0)),ABS(ZQZJJ),IF((((周流量 < 0) AND (BB1 < 0)) AND (周流量 < BB1)),(0 - ZQZJJ),ZQZJJ)),LINETHICK0;{建仓减仓A01:=IF(C>OPEN,VOL,0);A02:=IF(C<OPEN,VOL ,0);正成交量:=MA(A01,10)/2000,COLORRED;负成交量:=MA(A02,10)/2000,COLORGREEN;DRAWTEXT(ISLASTBAR=1 AND CROSS(正成交量,负成交量),0,'♂进'),COLORFF00FF;(正成交量-负成交量)*0.3,COLOR00C600;0;}X1:=EMA(C,7);DRAWTEXT(ISLASTBAR=1 AND FILTER(MA(CLOSE,20) AND MA(CLOSE,10) AND COUNT(X1<REF(X1,1),5)>2 AND X1>REF(X1,1),3),5,'♂短进'),COLOR00C600;【通达信】涨幅前兆(持币区域、持股区域、短顶、大顶)-指标公式效果图(文档来源:若水财经社区)。