通达信合并趋势顶底公式

合集下载

通达信庄家顶底指标公式

通达信庄家顶底指标公式

短线成本:=EMA(CLOSE,17),LINETHICK2,COLORWHITE;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*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18) +REF(A,20))/210;中线成本:=EMA(X,13),LINETHICK2,COLORFF00FF;STICKLINE(BARSLAST(短线成本<中线成本)>30,95,100,5,0),COLORRED;STICKLINE(BARSLAST(短线成本>中线成本)>30,0,5,5,0),COLORGREEN;VAR1:=1;VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);N1:=5;N4:=34;CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));饱和度:=IF(SAT>1,1,SAT)*100;W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));STICKLINE(饱和度>=97 AND CQ>90,0,100,2,0),COLORRED;中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*S MA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);支撑:=LLV(持股,3);短期线:EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30,LINETHICK2,COLORGREEN;中期线:MA(持股,12),COLORWHITE,LINETHICK2;STICKLINE(支撑<中期线,支撑,中期线,2,0),COLOR6B8E23;STICKLINE(持股>0,支撑,持股,2,0),COLORRED;STICKLINE(支撑>中期线,中期线,支撑,2,0),COLOR38B0DE;STICKLINE(支撑=持股 AND 持股>中期线,中期线,支撑,2,0),COLORFF00FF;STICKLINE(REF(中期,1)<1 AND 中期>1,0,15,2,0),COLORWHITE;STICKLINE(W4 AND COUNT(W4,5)=1,85,100,2,0),COLORYELLOW;底部线:0,COLORWHITE;警戒线:85,COLORYELLOW;卖出线:100,COLORRED;。

通达信底顶指标公式

通达信底顶指标公式

通达信底顶指标公式以下是通达信底顶指标的公式和解释:1.底部形态指标公式(1)最近一个底部形态的高点:DHLDHL=REF(HHV(HIGH,20),1)(2)价格打破最近一个底部形态的高点DHLBREAK=LLV(LOW,20)<DHL(3)最近一个底部形态的低点:DLLDLL=REF(LLV(LOW,20),1)(4)价格低于最近一个底部形态的低点DLLBREAK=HHV(HIGH,20)>DLL(5)价格向上的力量:DIRDIR=SMA(CLOSE,7,1)-SMA(CLOSE,70,1)(6)价格向上的力量大于0DIRUP=DIR>0(7)底部形态确认CONDITION1=NOTDIRUPANDDHLBREAKANDSMA(VOLUME,20)>2*MA(VOLUME, 100)2.顶部形态指标公式(1)最近一个顶部形态的低点:DLLDLL=REF(LLV(LOW,20),1)(2)价格低于最近一个顶部形态的低点DLLBREAK=HHV(HIGH,20)>DLL(3)最近一个顶部形态的高点:DHLDHL=REF(HHV(HIGH,20),1)(4)价格打破最近一个顶部形态的高点DHLBREAK=LLV(LOW,20)<DHL(5)价格向下的力量:DIRDIR=SMA(CLOSE,70,1)-SMA(CLOSE,7,1)(6)价格向下的力量小于0DIRDOWN=DIR<0(7)顶部形态确认CONDITION2=NOTDIRDOWNANDDLLBREAKANDSMA(VOLUME,20)>2*MA(VOLUM E,100)通过计算这些指标,我们可以完成对底部和顶部形态的判断。

具体解释如下:底部形态指标的解释:条件1(底部形态确认)需要满足以下三个条件:(a)价格向上的力量(DIR)小于0,即价格下跌;(b)价格打破最近一个底部形态的高点(DHLBREAK);(c)成交量的移动平均值(VOLUME)的20日均线(MA)大于成交量的移动平均值的100日均线的两倍。

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

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

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

通达信组合寻底指标公式

通达信组合寻底指标公式

通达信组合寻底指标公式N:=5;VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400;A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O;STICKLINE(A1,10,0,4,0),COLOR770077;STICKLINE(A1,10,0,3,0),COLOR990099;STICKLINE(A1,10,0,2,0),COLORBB00BB;STICKLINE(A1,10,0,1,0),COLORDD00DD;STICKLINE(A1,10,0,0.3,0),COLORFF00FF;DRAWTEXT(A1,11,'财富临门'),COLORRED;财富临门:A1,NODRAW;RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);J1:=IF(CLOSE>QJ,VOL,0);J2:=IF(CLOSE<QJ,VOL,0);VAR44:=SMA(RV,3,1);VAR55:=SMA(VAR44,3,1);KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:=SMA(KK,3,1),COLOR00FFFF;DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'共振'),COLOR00FFFF;共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));STICKLINE(共振点>0,0,40,2,0),COLOR008888;STICKLINE(共振点>0,0,40,1.5,0),COLOR00AAAA;STICKLINE(共振点>0,0,40,0.8,0),COLOR00DDDD;STICKLINE(共振点>0,0,40,0.3,0),COLOR00FFFF;VAR1P2:=(CLOSE-LLV(LOW,55.144))/(HHV(HIGH,55.144)-LLV(LOW,55))*80;VAR2P2:=SMA(VAR1P2,7,1);VAR3P2:=SMA(VAR2P2,5,1);起飞:IF(CROSS(VAR2P2,VAR3P2) AND VAR2P2<20,40,0),STICK,COLOR00FF7F,LINETHICK2;DRAWTEXT(CROSS(VAR2P2,VAR3P2) AND VAR2P2<20,35,'起飞'),COLORFFFF00;DRAWTEXT(CROSS(VAR2P2,VAR3P2) AND VAR2P2<22,20,'★'),COLORRED;主流资金:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORMAGENTA,LINETHICK2;XG3:CROSS(主流资金,10);DRAWICON(XG3=1,24,14);{A88:=(C+H+O+L)/4;套马索:=XMA(A88,32)*0.9;套马杆:=MA(CLOSE,20);栓马桩:CROSS(套马索,套马杆);STICKLINE(FILTER(栓马桩,5),0,35,3,0),COLORFF00FF;DRAWICON(FILTER(栓马桩,5),40,9);DRAWICON(FILTER(栓马桩,5),35,9) ;DRAWICON(FILTER(栓马桩,5),20,9) ;DRAWICON(FILTER(栓马桩,5),15,9) ;DRAWICON(FILTER(栓马桩,5),10,9) ;STICKLINE(FILTER(栓马桩,5),0,15,15,0),COLORCYAN;DRAWTEXT(FILTER(栓马桩,5),35,' 快马'),COLORYELLOW;}TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));XG:CCI<-100 AND CCI>REF(CCI,1)AND(REF(C,1)-C)/REF(C,1)*100>3;DRAWICON(XG=1,10,26);小底:FILTER((CROSS((EMA(CLOSE,2)-EMA(CLOSE,10)),EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)) AND EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)<0 AND CROSS(C,MA(C,20))),90);DRAWICON(小底=1,8,27);AA:=REF(CLOSE,1);BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;HHH:=BBB-LLV(BBB,27);CCC:=LLV(BBB,27)-BBB;QQ:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK 1;SS:=(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK1;GG:=MA(HHH,5),LINETHICK1,COLORGREEN;MM:=MA(CCC,5),LINETHICK1,COLORGREEN;WW:=IF(QQ<GG,SS,MM),LINETHICK1,COLOR0000FF;EE:=IF(SS<MM,GG,QQ),COLORFFFFCC,LINETHICK1;买:=IF(EE-WW<5.6,200,0);RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB2:=(RSVV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH),COLORRED;买AA:=黄金 AND RSVV<VARB2-2;短牛:买AA>0,COLORRED,LINETHICK2;DRAWICON(短牛=1,1,1);RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*10000;RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*10000;短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00;中线:=SMA(RSV2,5,1)+2*STD(CLOSE,37),COLORRED;RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*10000;长线:=SMA(RSV3,5,1),COLORYELLOW;黄金坑:短线<2000 AND 中线<2000 AND 长线<2000;DRAWICON(黄金坑=1,12,25);V1:=EMA(CLOSE,5)-EMA(CLOSE,340);V2:=EMA(V1,144);V3:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;卖出:=-1*IF((CROSS(98.5,V3) AND V1>V2) AND COUNT(V3>97,3)=2,20,0)+90;买入:=IF(CROSS(V3,5) AND V1<V2,20,0)+20,COLORYELLOW;{2}VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4;VAR3:=EMA(VAR2,13);VAR4:=LLV(LOW,34);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:=STICKLINE(VAR5>REF(VAR5,1),0,VAR5,7,0 );主力进场和:=SUM(主力进场,20);{3}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D2:=SMA(K,3,1);JJ:=9*(3*D2-2*K);J:=((3 * K) - (2 * D2));MAIRU:= CROSS(K,D2) AND K<20;MAICHU:= CROSS(D2,K) AND D2>80;快线:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;慢线:=SMA(快线,3,1);空:=SMA(慢线,3,1);BB:=IF(BARSLAST(CROSS(慢线,快线))>=3 AND CROSS(快线,慢线) AND 慢线<30,20,0);买点:=IF(BB AND 买入>25 AND 主力进场和>5,35,0)+10,COLORYELLOW;DRAWICON(买点=45,2,1);VAR2B:=(C-MA(C,6))/MA(C,6)*100;VAR3B:=(C-MA(C,12))/MA(C,12)*100;VAR4B:=(C-MA(C,24))/MA(C,24)*100;VAR5B:=(VAR2B+2*VAR3B+3*VAR4B)/6;线:=MA(VAR5B,3);LC:=REF(CLOSE,1);RSI5:=((SMA(MAX((C- LC),0),5,1) / SMA(ABS((C-LC)),5,1)) * 100);TR1:=SUM(MAX(MAX((H- LOW),ABS((H-REF(C,1)))),ABS((L- REF(C,1)))),10);HD:=(H-REF(H,1));LD:=(REF(LOW,1) - LOW);DMP:=SUM(IF(((HD>0) AND (HD > LD)),HD,0),10);DMM:=SUM(IF(((LD>0) AND (LD > HD)),LD,0),10);PDI:=((DMP*100)/TR1);MDI:=((DMM*100)/TR1);ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI)) * 100),5);AV:=(RSI5 + ADX);WR10:=((100 *(HHV(H,10)-C)) / (HHV(H,10) - LLV(L,10)));NEW:=(RSI5 - WR10);回调:=(AV + NEW);GG2:=CROSS(回调,0);KTB:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1);DTB:=SMA(KTB,3,1);JTB:=3*KTB-2*DTB;出击:=CROSS(CLOSE,REF(EMA(DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9),3),1))AND JTB<55;狙击:=CROSS(J,0) AND 线<=-7 AND GG2 AND 出击;DRAWICON(狙击=1,9,28);AAA:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;趋势:=IF(AAA>65,65,AAA),COLORYELLOW;底部:=-21,COLORGREEN;技术高位:=21,COLORWHITE;顶区:=36,COLORGREEN;技术低位:=-10,COLORWHITE;牛熊分界:=0,COLORRED;选股1:=CROSS(趋势,技术低位);选股2:=CROSS(趋势,牛熊分界);DRAWICON(选股1=1,11,24);DRAWICON(选股2=1,13,13);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&&SM05>REF(SM05,1)&&REF(SM05,1 )<REF(SM05,2)&&SM06<-100&&SM06>REF(SM06,1);STICKLINE(SM07,0,0.5,2,0),COLORYELLOW;神秘买点:SM07,COLORRED,LINETHICK3;LC20:=REF(CLOSE,1);RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;底:CROSS(RSI20,11)*1;DRAWICON(底=1,4,7);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),1,0),STICK,COLORRED;DRAWICON(加仓=1,6,23);选股3:=COUNT(C/REF(C,1)<0.96,6)>=1 AND LAST(C<O,2,1) AND (REF(L,1)/REF(C,4)<0.85 ORL/REF(C,3)<0.85) AND C>O;DRAWICON(选股3=1,7,34);MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA60:= MA(C,60);CBFB:=MA(C,2);JL:=IF(C>CBFB,V,0);CL:=IF(C<CBFB,V,0);JLH:=SUM(JL,4);CLH:=SUM(CL,4);LHB:=CLH/JLH;TJ1:=IF(HHV(LHB,5)>4 AND CROSS(2,LHB) AND C>=O,1,0);DRAWICON(TJ1=1,15,9);VAR1P:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;VAR2P:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR3P:=(SMA(VAR2P,3,1)-18)*1.55;VAR4P:=SMA(VAR3P,3,1);VAR5P:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;VAR6P:=SMA(VAR5P,10,1);VAR7P:=(EMA(SMA(VAR6P,8,1),34)-25)*2.6;VAR8P:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);VAR9P:=POW(MA(LOW,5),2)+MA(LOW,5);VARAP:=POW(MA(HIGH,5),2)+MA(HIGH,5);VARBP:=((VAR8P-LLV(VAR9P,64))/(HHV(VARAP,64)-LLV(VAR9P,64))*150+65-10)/2;VARCP:=SMA(VARBP,3,1)*1.5-46;VARDP:=SMA(VARCP,3,1);VAREP:=3*VARCP-2*VARDP;VARFP:=(VAR1P+VAR2P+VAR5P)/3;VAR10P:=((VAR3P+VAR3P+VAR6P+VARCP)/4-15)*1.67;VAR11P:=((VAR4P+VAR4P+VAR7P+VARDP)/4-15)*1.67;VAR12P:=((VAR1P+VAR5P*2+VARFP+VAR10P+VAR11P+VA RBP+VARCP+VARDP+VAREP)/10-15)*1.67;VAR13P:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;VAR14P:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;VAR15P:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;VAR16P:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;VAR17P:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;VAR18P:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;VAR19P:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;VAR1AP:=((VAR13P*8+VAR14P*8+VAR15P*8+VAR16P+VAR 17P+VAR18P+VAR19P)/28-0.1)*185;VAR1B:=SMA(VAR1AP,3,1);VAR1C:=(SMA(VAR1B,8,1)-8)*1.18;VARA1:=(CLOSE-LLV(LOW,60.13547854))/(HHV(HIGH,60.13547854)-LLV(LOW,60))*80;VARB1:=SMA(VARA1,7,1);VARC1:=SMA(VARB1,5,1);英雄:=IF(CROSS(VARBP,VARCP) AND VARBP<20,100,0);VAR2N:=LLV(LOW,3)<=LLV(LOW,60);VAR3N:=C>O AND (C/O>1.03 OR C>1.03*REF(C,1));绝地反击:IF(VAR2N AND VAR3N,30,0)COLOR00FF00;VAR1A:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2A:=SMA(ABS(LOW-VAR1A),13,1)/SMA(MAX(LOW-VAR1A,0),10,1);VAR3A:=EMA(VAR2A,10);VAR4A:=LLV(LOW,33);VAR5A:=EMA(IF(LOW<=VAR4A,VAR3A,0),3);主力进场2:=(VAR5A>REF(VAR5A,1));DRAWICON(主力进场2,30,1);QVAR1A:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;QVAR1B:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);QVAR1C:=SMA(QVAR1B,13,8);QVAR1D:=SMA(QVAR1A,21,8);机会来临:=SMA(QVAR1C,13,8);AAS:=FILTER((COUNT((机会来临-QVAR1D<(-65)),3)=3),34);DRAWICON(AAS,29,29);DRAWICON( CROSS(CCI,-200),28,16);DRAWICON( CROSS(CCI,-100),28,1);DRAWTEXT(ISLASTBAR,28,'--CCI合并');DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);WR10C:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));NEWVOL:=(RSI5 - WR10C);最佳买入:=(AV + NEWVOL);最佳买入选股:=(CROSS(最佳买入,0));DRAWICON(最佳买入选股,26,1);RSVA:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 50);KA:=SMA(RSVA,3,1);DA:=SMA(KA,3,1);JA:=3*KA-2*DA;XB:=LLV(JA,2)=LLV(JA,8);最佳买入时机:= (CROSS(JA,3));DRAWICON(最佳买入时机,26,25);DRAWTEXT(ISLASTBAR,26,'--最佳买入');{短线套利}MA18:=MA(C,21);加码价:=((C-REF(MA18,1))/18+MA18)*1.004;短线套利:=(CROSS(C,加码价) AND 加码价>REF(加码价,1));DRAWICON(短线套利,20,1);{短炒公式}VARO:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;DRAWICON(VARO<-9 AND VARO> REF (VARO,1),20,26);{DRAWICON(短底,20,26);}DRAWTEXT(ISLASTBAR,20,'--短线套利');{收银台}QVAR2:=IF((HIGH+LOW<=REF(HIGH,1)+REF(LOW,1)),0,MAX (ABS(HIGH-REF(HIGH,1)),ABS(LOW-REF(LOW,1))));QVAR3:=IF((HIGH+LOW>=REF(HIGH,1)+REF(LOW,1)),0,MAX (ABS(HIGH-REF(HIGH,1)),ABS(LOW-REF(LOW,1))));QVAR4:=(SUM(QVAR2,13))/(SUM(QVAR2,13)+SUM(QVAR3, 13));QVAR5:=(SUM(QVAR3,13))/(SUM(QVAR3,13)+SUM(QVAR2, 13));QVAR9:=100-(3)*(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1))+(2)*(SMA(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15,1));QVARA:=100-(3)*(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1))+(2)*(SMA(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15,1));QVARB:=(QVAR9<REF(QVARA,1)) AND (VOL>REF(VOL,1)) AND (CLOSE>REF(CLOSE,1));{QVAR1A:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;QVAR1B:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);QVAR1C:=SMA(QVAR1B,13,8);QVAR1D:=SMA(QVAR1A,21,8);}生意上门:=SMA(QVAR1C,13,8);收银台:=(生意上门-QVAR1D<-65);DRAWICON(收银台,22,31);AAS1:=FILTER((COUNT((生意上门-QVAR1D<(-65)),3)=3),34);收银:=AAS1;DRAWICON(收银,22,30);AASS:=REF(BARSLAST(NOT(L<REF(L,1)))>=3,1) AND CROSS(C,REF(C,1));自己动手:EXIST(AASS,5)*5;VAR1K:4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*40,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*40,5,1),3.2,1),COLORYELLOW,LINETHICK0;VAR2K:=8,COLORGREEN,LINETHICK0;杀猪宰羊: IF(CROSS(VAR1K,VAR2),40,0),STICK,COLOR0000CC,LINETHICK2;斗地主: IF(VAR1K<=8,25,0),STICK,COLORWHITE,LINETHICK2;DRAWTEXT(CROSS(VAR1K,VAR2K),40,'谨慎买入'),COLOR00FFFF;M2:=EMA(C,2);M18:=EMA(C,18);买点3:=IF(CROSS(M18,M2),5,10* 10000),COLORFF00FF,LINETHICK2;RSVV3:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;VARB22:=(RSVV3/2+22)*1;Q:=EMA(VOL,13);Y:=EMA(AMOUNT,13);S:=((Y /Q) / 100);X:=(((CLOSE -S) / S) * 100);F:=((X < (0)) AND ZXNH);XQ:=F AND RSVV<VARB22-2;无未来XG:(买点3 AND XQ);DRAWICON(无未来XG,33,18);VARW2:=((CLOSE-MA(CLOSE,6))/(MA(CLOSE,6)))*(100);VARW3:=((CLOSE-MA(CLOSE,12))/(MA(CLOSE,12)))*(100);VARW4:=((CLOSE-MA(CLOSE,24))/(MA(CLOSE,24)))*(100);VARW5:=(VARW2+(2)*(VARW3)+(3)*(VARW4))/(6);VARW6:=MA(VARW5,3);底部3:=IF((VARW6<-6),20,0),COLORFF9933;DRAWICON(底部3=20,35,34);主力:=EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,LINETHICK2,COLOR0000FF;散户:=EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,LINETHICK2,COLOR00FF 00;TJ2:=CROSS(主力,散户) AND 主力<-10;TJ:=FILTER(COUNT(TJ1 OR TJ2,2)=2,5);主力布控:=TJ OR TJ1 OR TJ2;DRAWICON(主力布控=1,37,5);预警1:(REF(CLOSE,2)/REF(OPEN,2)<= 0.98) AND (REF(OPEN,1) <= REF(CLOSE,2)) AND(ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03) AND CLOSE/OPEN>0.88 AND CLOSE>=REF(OPEN,2);DRAWICON(预警1=1,38,27);极品底:=IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,23,0),LINETHICK2,COLORFF00FF;DRAWICON(极品底=23,23,17);J8:=3*K-2*D2;注意:= IF(CROSS(J8,3),95,0),COLORYELLOW,LINETHICK2;DRAWICON(注意=95,18,16);HH:=MAX(HIGH,REF(CLOSE,1));LL:=MIN(LOW,REF(CLOSE,1));AAAA:=SUM(CLOSE-LL,7)/SUM(HH-LL,7);BBA:=SUM(CLOSE-LL,14)/SUM(HH-LL,14);CC:=SUM(CLOSE-LL,28)/SUM(HH-LL,28);TLIKTLI:=(AAAA/7+BBA/14+CC/28)*7*14*28/(7*14+14*28+ 7*28)*1000;MTLIKTLI:=EMA(TLIKTLI,6);ZZZ:=(HIGH + LOW + CLOSE)/3;TLIK:=(ZZZ-MA(ZZZ,16))*100/(1.5*AVEDEV(ZZZ,16));VVV:=IF((DATE>173****5120),0,1);AVPRICE:=((CLOSE+OPEN+LOW+HIGH)/(4))*(VVV);XXVOL:=(VOL)*(AVPRICE);AAB:=(SUM(XXVOL,25)+0.001)/(SUM(VOL,25)+0.001);GN:=(((500)*(AVPRICE-AAB))/(MAX(AVPRICE,AAB)))*(VVV);ZS:=EMA(TLIK,3),COLOR0000FF;IK:=EMA(TLIK,10),COLOR00FFFF;ZZZZZ:=EMA(TLIK,20),COLORFF00FF,LINETHICK1;青龙:=EMA(MTLIKTLI,1)/3.5815926,COLORDB70DB,LINETHICK1,D OTLINE;青龙2:=EMA(MTLIKTLI,1)/4.5815926,COLOR009900,DOTLINE;白虎:=EMA(GN,14),COLORFFFFFF,LINETHICK2;地鼠:=EMA(MTLIKTLI,1)/-3.5815926,COLORDB70DB,LINETHICK1,DOTLINE;地鼠2:=EMA(MTLIKTLI,1)/-4.5815926,COLOR009900,DOTLINE;买入A:=(CROSS(ZS,地鼠))*100;买入2A:=(CROSS(ZS,地鼠2))*100;DRAWICON(买入A=100,20,13);DRAWICON(买入2A=100,20,1);VAR1S:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0;VAR2S:=8,COLORGREEN,LINETHICK0;V3S:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;操盘线:=SMA(V3S,2,1);V5:=SMA(操盘线,2,1);抄底9:IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)<REF(操盘线,2) AND 操盘线<23 ,25,0) AND CROSS(VAR1S,VAR2S);DRAWICON(抄底9=1,8,28);黄金线:=EMA(C,18),COLORMAGENTA;金矿:=COUNT(CLOSE<黄金线,5)=4 AND CLOSE/黄金线>1.004 ANDCROSS(CLOSE,黄金线) AND 黄金线>=REF(黄金线,1),LINETHICK,COLORRED;有金矿:=IF(金矿,1.5,0),COLORLIRED,LINETHICK2;DRAWICON(有金矿=1.5,2,13);REF((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,1) AND C>O AND C>REF(H,1);SY:=H>C*1.02 AND C>O AND V>REF(V,1)*1.4;CV:=CLOSE;FF:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;UPR:=FF+6*STD(BBIBOLL,11);DWN:=FF-6*STD(BBIBOLL,11);MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);HDZ :=HIGH-REF(HIGH,1);LDZ :=REF(LOW,1)-LOW;DMPZ:=EXPMEMA(IF(HDZ>0&&HD>LDZ,HDZ,0),14);DMMZ:=EXPMEMA(IF(LDZ>0&&LD>HD,LDZ,0),14);PDIZ:=DMPZ*100/MTR;MDIZ:=DMMZ*100/MTR;ADXZ:=EXPMEMA(ABS(MDIZ-PDIZ)/(MDI+PDIZ)*100,6);ADXR:=EXPMEMA(ADXZ,6);KKK:=C>REF(C,1) AND FF<REF(FF,1) AND PDI<REF(PDI,1) AND UPR>REF(UPR,1) AND ADX>REF(ADX,1) AND VOL<REF(VOL,1);DRAWICON(KKK=1,40,13);{三线共振}HXLXA:=MA(CLOSE,5);HXLXB:=MA(CLOSE,10);HXLXC:=(HXLXA-CLOSE)/CLOSE>13/100;HXLXD:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100/0.7;HXLXE:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100*2;HXLXF:=(CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*100/0.3/1.3/1.5;HXLXH:=IF(HXLXE<-9,32,40);HXLXI:=IF(HXLXF<-12,22,30);HXLXG:=IF(HXLXD<-12,12,20);共振:HXLXH<40 AND HXLXI<30 AND HXLXG<20;DRAWICON(共振=1,40,1);买Z:=IF("KDJ.J"<-10,10,0);条件:=CROSS(9.9,买Z);VAR1Z:=(2*CLOSE+HIGH+LOW)/4;VAR2Z:=LLV(LOW,5);VAR3Z:=HHV(HIGH,5);VAR4Z:=EMA((VAR1Z-VAR2Z)/(VAR3Z-VAR2Z)*100,5);MA1:=MA(VAR4Z,2);稳底:VAR4>MA1 AND REF(VAR4,1)<15;DRAWICON(稳底=1,40,38);QZ:=(3*CLOSE+LOW+OPEN+HIGH)/6;QQZ:=(20*QZ+19*REF(QZ,1)+18*REF(QZ,2)+17*REF(QZ,3)+ 16*REF(QZ,4)+15*REF(QZ,5)+14*REF(QZ,6)+13*REF(QZ,7)+12*REF(QZ,8)+11*REF(QZ,9)+10*REF(QZ,10)+9* REF(QZ,11)+8*REF(QZ,12)+7*REF(QZ,13)+6*REF(QZ,14)+5*REF(QZ,15)+4*REF(QZ,16)+3*R EF(QZ,17)+2*REF(QZ,18)+ REF(QZ,20))/211;DDZ:=CROSS(QQZ,EMA(EMA(EMA(QQZ,2),2),2));CCZ:=EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9);QQ1:=HHV(2*(EMA(CLOSE,12)-EMA(CLOSE,26)-CC),4)<0AND 2*(EMA(CLOSE,12)-EMA(CLOSE,26)-CCZ)>REF(2*(EMA(CLOSE,12)-EMA(CLOSE,26)-CCZ),1) AND REF(2*(EMA(CLOSE,12)-EMA(CLOSE,26)-CCZ),1)<REF(2*(EMA(CLOSE,12)-EMA(CLOSE,26)-CCZ),2) AND REF(2*(EMA(CLOSE,12)-EMA(CLOSE,26)-CCZ),2)<REF(2*(EMA(CLOSE,12)-EMA(CLOSE,26)-CCZ),3);QQ2:=EMA(EMA(EMA(EMA(CLOSE,2),2),2),2);DD1:=CROSS(QQ2,EMA(REF(QQ2,1),2)) AND C>O AND V>=MA(V,21) AND V> REF(V,1);DD2:=DD1+QQ1+DD>=2 AND EMA(CLOSE,12)-EMA(CLOSE,26)>CC AND H/C<1.01 AND REF(MA(C,5),1)<MA(C,5) AND REF(MA(C,5),2)>REF(MA(C,5),1);MACD:=(EMA(CLOSE,12)-EMA(CLOSE,26)-EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9))*2;CC1:=CROSS(K,D2) AND MACD>0;赚钱法宝:=DD2 AND REF(H/C<1.02,1) AND CC1,COLORRED;DRAWICON(赚钱法宝=1,40,29);====================================== =======VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57; VAR400:=EMA(VAR300,5);操盘:=3*VAR300-2*VAR400; A1:=CROSS(操盘,VAR300) AND VAR300<2.1 AND C>O; STICKLINE(A1,10,0,4,0),COLOR770077;STICKLINE(A1,10,0,3,0),COLOR990099;STICKLINE(A1,10,0,2,0),COLORBB00BB;STICKLINE(A1,10,0,1,0),COLORDD00DD;STICKLINE(A1,10,0,0.3,0),COLORFF00FF; DRAWTEXT(A1,11,'财富临门'),COLORRED;财富临门:A1,NODRAW; RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100; RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3); J1:=IF(CLOSE>QJ,VOL,0); J2:=IF(CLOSE<QJ,VOL,0); VAR44:=SMA(RV,3,1); VAR55:=SMA(VAR44,3,1);KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;DD:=SMA(KK,3,1),COLOR00FFFF;DRAWTEXT(CROSS(VAR44,VAR55) AND CROSS(KK,DD),10,'共振'),COLOR00FFFF;共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD)); STICKLINE(共振点>0,0,40,2,0),COLOR008888; STICKLINE(共振点>0,0,40,1.5,0),COLOR00AAAA; STICKLINE(共振点>0,0,40,0.8,0),COLOR00DDDD; STICKLINE(共振点>0,0,40,0.3,0),COLOR00FFFF;VAR1P2:=(CLOSE-LLV(LOW,55.144))/(HHV(HIGH,55.144)-LLV(LOW,55))*80;VAR2P2:=SMA(VAR1P2,7,1); VAR3P2:=SMA(VAR2P2,5,1);起飞:IF(CROSS(VAR2P2,VAR3P2) AND VAR2P2<20,40,0),STICK,COLOR00FF7F,LINETHICK2; DRAWTEXT(CROSS(VAR2P2,VAR3P2) AND VAR2P2<20,35,'起飞'),COLORFFFF00; DRAWTEXT(CROSS(VAR2P2,VAR3P2) AND VAR2P2<22,20,'★'),COLORRED;主流资金:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), COLORMAGENTA,LINETHICK2; XG3:CROSS(主流资金,10); DRAWICON(XG3=1,24,14); {A88:=(C+H+O+L)/4;套马索:=XMA(A88,32)*0.9;套马杆:=MA(CLOSE,20);栓马桩:CROSS(套马索,套马杆);STICKLINE(FILTER(栓马桩,5),0,35,3,0),COLORFF00FF; DRAWICON(FILTER(栓马桩,5),40,9); DRAWICON(FILTER(栓马桩,5),35,9) ; DRAWICON(FILTER(栓马桩,5),20,9) ; DRAWICON(FILTER(栓马桩,5),15,9) ; DRAWICON(FILTER(栓马桩,5),10,9) ; STICKLINE(FILTER(栓马桩,5),0,15,15,0),COLORCYAN; DRAWTEXT(FILTER(栓马桩,5),35,' 快马'),COLORYELLOW;} TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,99))/(0.015*AVEDEV(TYP,99)); XG:CCI<-100 AND CCI>REF(CCI,1)AND(REF(C,1)-C)/REF(C,1)*100>3; DRAWICON(XG=1,10,26);小底:FILTER((CROSS((EMA(CLOSE,2)-EMA(CLOSE,10)),EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)) ANDEMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)<0 AND CROSS(C,MA(C,20))),90); DRAWICON(小底=1,8,27); AA:=REF(CLOSE,1); BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000; HHH:=BBB-LLV(BBB,27); CCC:=LLV(BBB,27)-BBB; QQ:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK1; SS:=(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK1; GG:=MA(HHH,5),LINETHICK1,COLORGREEN;MM:=MA(CCC,5),LINETHICK1,COLORGREEN;WW:=IF(QQ<GG,SS,MM),LINETHICK1,COLOR0000FF;EE:=IF(SS<MM,GG,QQ),COLORFFFFCC,LINETHICK1;买:=IF(EE-WW<5.6,200,0); RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100; VARB2:=(RSVV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯< (0)) AND ZXNH),COLORRED;买AA:=黄金AND RSVV<VARB2-2;短牛:买AA>0,COLORRED,LINETHICK2; DRAWICON(短牛=1,1,1); RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*10000; RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*10000;短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21),COLOR00FF00;中线:=SMA(RSV2,5,1)+2*STD(CLOSE,37),COLORRED; RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*10000;长线:=SMA(RSV3,5,1),COLORYELLOW;黄金坑:短线<2000 AND 中线<2000 AND 长线<2000; DRAWICON(黄金坑=1,12,25); V1:=EMA(CLOSE,5)-EMA(CLOSE,340); V2:=EMA(V1,144); V3:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;卖出:=-1*IF((CROSS(98.5,V3) AND V1>V2) AND COUNT(V3>97,3)=2,20,0)+90;买入:=IF(CROSS(V3,5) AND V1<V2,20,0)+20,COLORYELLOW; {2} VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*4; VAR3:=EMA(VAR2,13); VAR4:=LLV(LOW,34); VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:=STICKLINE(VAR5>REF(VAR5,1),0,VAR5,7,0 );主力进场和:=SUM(主力进场,20); {3} RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D2:=SMA(K,3,1); JJ:=9*(3*D2-2*K); J:=((3 * K) - (2 * D2)); MAIRU:= CROSS(K,D2) AND K<20; MAICHU:= CROSS(D2,K) AND D2>80;快线:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;慢线:=SMA(快线,3,1);空:=SMA(慢线,3,1); BB:=IF(BARSLAST(CROSS(慢线,快线))>=3 AND CROSS(快线,慢线) AND 慢线<30,20,0);买点:=IF(BB AND 买入>25 AND 主力进场和>5,35,0)+10,COLORYELLOW; DRAWICON(买点=45,2,1);VAR2B:=(C-MA(C,6))/MA(C,6)*100; VAR3B:=(C-MA(C,12))/MA(C,12)*100; VAR4B:=(C-MA(C,24))/MA(C,24)*100; VAR5B:=(VAR2B+2*VAR3B+3*VAR4B)/6;线:=MA(VAR5B,3); LC:=REF(CLOSE,1); RSI5:=((SMA(MAX((C- LC),0),5,1) / SMA(ABS((C-LC)),5,1)) * 100); TR1:=SUM(MAX(MAX((H- LOW),ABS((H-REF(C,1)))),ABS((L- REF(C,1)))),10); HD:=(H-REF(H,1)); LD:=(REF(LOW,1) - LOW); DMP:=SUM(IF(((HD>0) AND (HD > LD)),HD,0),10); DMM:=SUM(IF(((LD>0) AND (LD > HD)),LD,0),10); PDI:=((DMP*100)/TR1); MDI:=((DMM*100)/TR1); ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI)) * 100),5); AV:=(RSI5 + ADX); WR10:=((100 *(HHV(H,10)-C)) / (HHV(H,10) - LLV(L,10))); NEW:=(RSI5 - WR10);回调:=(AV + NEW); GG2:=CROSS(回调,0); KTB:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,3,1); DTB:=SMA(KTB,3,1); JTB:=3*KTB-2*DTB;出击:=CROSS(CLOSE,REF(EMA(DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9),3),1))AND JTB<55;狙击:=CROSS(J,0) AND 线<=-7 AND GG2 AND 出击;DRAWICON(狙击=1,9,28); AAA:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;趋势:=IF(AAA>65,65,AAA),COLORYELLOW;底部:=-21,COLORGREEN;技术高位:=21,COLORWHITE;顶区:=36,COLORGREEN;技术低位:=-10,COLORWHITE;牛熊分界:=0,COLORRED;选股1:=CROSS(趋势,技术低位);选股2:=CROSS(趋势,牛熊分界);DRAWICON(选股1=1,11,24); DRAWICON(选股2=1,13,13); 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&&SM05>REF(SM05,1)&&REF(SM05,1)<RE F(SM05,2)&&SM06<-100&&SM06>REF(SM06,1); STICKLINE(SM07,0,0.5,2,0),COLORYELLOW;神秘买点:SM07,COLORRED,LINETHICK3;LC20:=REF(CLOSE,1); RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;底:CROSS(RSI20,11)*1; DRAWICON(底=1,4,7); 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),1,0),STICK,COLORRED; DRAWICON(加仓=1,6,23);选股3:=COUNT(C/REF(C,1)<0.96,6)>=1 AND LAST(C<O,2,1) AND (REF(L,1)/REF(C,4)<0.85 OR L/REF(C,3)<0.85) AND C>O; DRAWICON(选股3=1,7,34); MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA60:=MA( C,60); CBFB:=MA(C,2); JL:=IF(C>CBFB,V,0); CL:=IF(C<CBFB,V,0); JLH:=SUM(JL,4); CLH:=SUM(CL,4); LHB:=CLH/JLH; TJ1:=IF(HHV(LHB,5)>4 AND CROSS(2,LHB) ANDC>=O,1,0); DRAWICON(TJ1=1,15,9); VAR1P:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;VAR2P:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR3P:=(SMA(VAR2P,3,1)-18)*1.55; VAR4P:=SMA(VAR3P,3,1); VAR5P:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100; VAR6P:=SMA(VAR5P,10,1); VAR7P:=(EMA(SMA(VAR6P,8,1),34)-25)*2.6;VAR8P:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);VAR9P:=POW(MA(LOW,5),2)+MA(LOW,5);VARAP:=POW(MA(HIGH,5),2)+MA(HIGH,5); VARBP:=((VAR8P-LLV(VAR9P,64))/(HHV(VARAP,64)-LLV(VAR9P,64))*150+65-10)/2; VARCP:=SMA(VARBP,3,1)*1.5-46; VARDP:=SMA(VARCP,3,1); VAREP:=3*VARCP-2*VARDP; VARFP:=(VAR1P+VAR2P+VAR5P)/3; VAR10P:=((VAR3P+VAR3P+VAR6P+VARCP)/4-15)*1.67;VAR11P:=((VAR4P+VAR4P+VAR7P+VARDP)/4-15)*1.67;VAR12P:=((VAR1P+VAR5P*2+VARFP+VAR10P+VAR11P+VARBP +VARCP+VARDP+VAREP)/10-15)*1.67; VAR13P:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;VAR14P:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92; VAR15P:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;VAR16P:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94; VAR17P:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;VAR18P:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91; VAR19P:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;VAR1AP:=((VAR13P*8+VAR14P*8+VAR15P*8+VAR16P+VAR17P +VAR18P+VAR19P)/28-0.1)*185; VAR1B:=SMA(VAR1AP,3,1); VAR1C:=(SMA(VAR1B,8,1)-8)*1.18; VARA1:=(CLOSE-LLV(LOW,60.13547854))/(HHV(HIGH,60.13547854)-LLV(LOW,60))*80; VARB1:=SMA(VARA1,7,1); VARC1:=SMA(VARB1,5,1);英雄:=IF(CROSS(VARBP,VARCP) AND VARBP<20,100,0); VAR2N:=LLV(LOW,3)<=LLV(LOW,60); VAR3N:=C>O AND (C/O>1.03 OR C>1.03*REF(C,1));绝地反击:IF(VAR2N AND VAR3N,30,0)COLOR00FF00; VAR1A:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2A:=SMA(ABS(LOW-VAR1A),13,1)/SMA(MAX(LOW-VAR1A,0),10,1); VAR3A:=EMA(VAR2A,10); VAR4A:=LLV(LOW,33); VAR5A:=EMA(IF(LOW<=VAR4A,VAR3A,0),3);主力进场2:=(VAR5A>REF(VAR5A,1)); DRAWICON(主力进场2,30,1); QVAR1A:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10; QVAR1B:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);QVAR1C:=SMA(QVAR1B,13,8); QVAR1D:=SMA(QVAR1A,21,8);机会来临:=SMA(QVAR1C,13,8); AAS:=FILTER((COUNT((机会来临-QVAR1D<(-65)),3)=3),34); DRAWICON(AAS,29,29); DRAWICON( CROSS(CCI,-200),28,16); DRAWICON( CROSS(CCI,-100),28,1); DRAWTEXT(ISLASTBAR,28,'--CCI合并');DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5); WR10C:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10C);最佳买入:=(AV + NEWVOL);最佳买入选股:=(CROSS(最佳买入,0)); DRAWICON(最佳买入选股,26,1); RSVA:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 50); KA:=SMA(RSVA,3,1); DA:=SMA(KA,3,1); JA:=3*KA-2*DA; XB:=LLV(JA,2)=LLV(JA,8);最佳买入时机:= (CROSS(JA,3)); DRAWICON(最佳买入时机,26,25); DRAWTEXT(ISLASTBAR,26,'--最佳买入'); {短线套利}MA18:=MA(C,21);加码价:=((C-REF(MA18,1))/18+MA18)*1.004;短线套利:=(CROSS(C,加码价) AND 加码价>REF(加码价,1)); DRAWICON(短线套利,20,1); {短炒公式}VARO:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3; DRAWICON(VARO<-9 AND VARO> REF (VARO,1),20,26); {DRAWICON(短底,20,26);} DRAWTEXT(ISLASTBAR,20,'--短线套利'); {收银台}QVAR2:=IF((HIGH+LOW<=REF(HIGH,1)+REF(LOW,1)),0,MAX( ABS(HIGH-REF(HIGH,1)), ABS(LOW-REF(LOW,1)))); QVAR3:=IF((HIGH+LOW>=REF(HIGH,1)+REF(LOW,1)),0,MAX(AB S(HIGH-REF(HIGH,1)), ABS(LOW-REF(LOW,1)))); QVAR4:=(SUM(QVAR2,13))/(SUM(QVAR2,13)+SUM(QVAR3,13)); QVAR5:=(SUM(QVAR3,13))/(SUM(QVAR3,13)+SUM(QVAR2,13)); QVAR9:=100-(3)*(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1))+(2)*(SMA(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15,1)); QVARA:=100-(3)*(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1))+(2)*(SMA(SMA(((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20,1),15,1)); QVARB:=(QVAR9<REF(QVARA,1)) AND (VOL>REF(VOL,1)) AND (CLOSE>REF(CLOSE,1)); {QVAR1A:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;QVAR1B:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100); QVAR1C:=SMA(QVAR1B,13,8); QVAR1D:=SMA(QVAR1A,21,8);}生意上门:=SMA(QVAR1C,13,8);收银台:=(生意上门-QVAR1D<-65); DRAWICON(收银台,22,31); AAS1:=FILTER((COUNT((生意上门-QVAR1D<(-65)),3)=3),34);收银:=AAS1; DRAWICON(收银,22,30); AASS:=REF(BARSLAST(NOT(L<REF(L,1)))>=3,1) AND CROSS(C,REF(C,1));自己动手:EXIST(AASS,5)*5; VAR1K:4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*40,5,1)- 3*SMA(SMA((CLOSE-。

通达信指标公式源码超级组合顶底副图,抄底逃顶不是梦,适合做波段或者趋势交易。

通达信指标公式源码超级组合顶底副图,抄底逃顶不是梦,适合做波段或者趋势交易。

VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);阶段卖: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓,动力线),20),动力线+0.02,2);DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖,动力线),20),动力线+0.02,2);界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:=动力线,COLORA8A8A8;{希望之星买点}A3:=ABS(REF(C,2)-REF(O,2))/REF(O,2)<0.012;{前天星形}A2:=(REF(O,1)-REF(C,1))/REF(O,1)<0.008;{昨天星形}B1:=IF(REF(C,2)>REF(O,2),REF(O,2),REF(C,2));B2:=IF(REF(C,1)<REF(O,1),REF(O,1),REF(C,1));B3:=IF(C>O,O,C);B4:=B1>B2 AND B3>B2 AND REF(C,1)<MA(C,5);A1:=ABS(C-O)/O<0.012;{今天星形}星K:A3 AND A2 AND A1 AND B4;{准备上买点}VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区:=VARO7<10;TJ:=COUNT(建仓区,3);VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);上升:=CROSS(VAR1,8);准备上:(建仓区OR REF(建仓区,0.5)) AND 上升;{出手买点}出手:FILTER((CROSS((EMA(CLOSE,2)-EMA(CLOSE,10)),EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2))AND EMA((EMA(CLOSE,2)-EMA(CLOSE,10)),2)<0 AND CROSS(C,MA(C,20))),90);{强势买点}D1:="WR.WR1"<5;D2:=CROSS("KDJ.K","KDJ.D") AND "KDJ.K"<50;D3:=CROSS("MACD.DIF","MACD.DEA");D4:="I">-100 AND "I"<-90;D5:=CROSS("RSI.RSI1","RSI.RSI2")AND "RSI.RSI1"<50;S1:=20;M2:=40;L1:=60;AAA:=CLOSE>OPEN;BBB:=AAA&&CLOSE>MA(CLOSE,S1)&&CLOSE>MA(CLOSE,M2)&&CLOSE>MA(CLOSE,L1); CCC:=BBB&&OPEN<MA(CLOSE,M2)&&OPEN<MA(CLOSE,L1);XG1:=CCC&&(CLOSE-OPEN)>0.0618*CLOSE;AA1:=D1 AND D2;AA2:=D2 AND D3;AA3:=D1 AND D3;XG2:=AA1 OR AA2 OR AA3;强势:IF(XG1 AND XG2,1,0),COLORRED;{底部买点}WW:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);MM:=DMA(CLOSE,WW);{好}通道4:= (1-7/100)*MM;VAR4:=EXPMA(CLOSE,9);LDN:=EXPMA(VAR4*0.86,5);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));TTRR:=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&&HD>LD,HD,0),14);DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);PDI:=DMP*100/TTRR;MDI:=DMM*100/TTRR;ADX:= EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);买底: C<=通道4 AND C<=LDN AND CCI<-100AND ADX>=60 AND MDI >= PDI AND CLOSE>OPEN;。

通达信均线顶底指标公式

通达信均线顶底指标公式

通达信均线顶底指标公式V AR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2); V AR2:=REF(V AR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); V AR3:=REF(V AR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); V AR4:=REF(V AR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); V AR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); V AR6:=REF(V AR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); V AR7:=REF(V AR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); V AR8:=REF(V AR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); V AR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VARA:=REF(V AR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); V ARB:=REF(V ARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); V ARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); STICKLINE(V AR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,CLOSE,REF(CLOSE,1),3,1),COLORRED;{红1} V ARD:=CLOSE<REF(CLOSE,1) CLOSE AND V ARE:="REF(VARD,1)" CLOSE=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); V ARF:=REF(V ARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); V AR10:=REF(V ARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); V AR11:=REF(V AR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); V AR12:=REF(V AR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); V AR13:=REF(V AR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); V AR14:=REF(V AR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); V AR15:=REF(V AR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); V AR16:=REF(V AR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); V AR17:=REF(V AR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2); V AR18:=REF(V AR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); STICKLINE(V ARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR V AR16 OR V AR17 OR V AR18,CLOSE,REF(CLOSE,1),3,0),COLORFFCC66; V AR19:=REF(V ARD OR V ARE OR V ARF OR V AR10 OR V AR11 OR V AR12 OR V AR13 OR V AR14 OR V AR15 OR VAR16 OR V AR17 OR V AR18,1) AND V AR1; STICKLINE(V AR19,REF(CLOSE,1),REF(CLOSE,2),4,1),COLORYELLOW;V AR1A:=REF(VAR1 OR V AR2 OR V AR3 OR V AR4 OR V AR5 OR V AR6 OR V AR7 OR V AR8 OR V AR9 OR V ARA OR V ARB OR V ARC,1) AND V ARD; STICKLINE(V AR1A,REF(CLOSE,1),REF(CLOSE,2),4,2),COLOR00FF00{98FD}; STICKLINE(V AR19,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00C8FF;STICKLINE(V AR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR10ECFF;STICKLINE(V AR19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORRED;{黄托底} STICKLINE(V AR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00D900;STICKLINE(V AR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORBLUE;{蓝压顶} STICKLINE(V AR1A,REF(CLOSE,1),REF(CLOSE,2),0,0),COLOR090FF2;PMA:MA(C,5),COLORWHITE,LINETHICK2;IF(PMA>REF(PMA,1),PMA,DRAWNULL),COLORRED,LINETHICK2;IF(PMA<REF(PMA,1),PMA,DRAWNULL),COLORGREEN,LINETHICK2; A:="(PMA" IF(DD,多空线,DRAWNULL),COLOR00FFFF,LINETHICK2; DD:="多空线多空线); IF(A,多空线,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;。

通达信指标公式源码顶底趋势主图画线指标

通达信指标公式源码顶底趋势主图画线指标

顶底趋势主图画线指标N:=3;A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N);{高点}A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);{低点}E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=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 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1),LINETHICK0;{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1),LINETHICK0;{过滤后高点}R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);S1:=R1>REF(R1,1);{前一高}T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);U1:=T1>REF(T1,1);{前一低}R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1);{前二高}T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1);{前二低}T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);U3:=T3>REF(T3,1);{前三低}T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2);U4:=T4>REF(T4,1);{前四低}R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2);S3:=R3>REF(R3,1);{前三高}R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2);S4:=R4>REF(R4,1);{前四高}★压力1:DRAWLINE(S2,H,S1,H,1),COLORMAGENTA,LINETHICK1; ★支撑1:DRAWLINE(U2,L,U1,L,1),COLOR8FBC8F,LINETHICK1;★压力2:DRAWLINE(S3,H,S2,H,1),COLORFF8000;★支撑2:DRAWLINE(U3,L,U2,L,1),COLOR99CC32;★压力3:DRAWLINE(S4,H,S3,H,1),COLOR0000FF;★支撑3:DRAWLINE(U4,L,U3,L,1),COLOR00FF7F; DRAWICON(S2,H*1.01,10);DRAWICON(S3,H*1.01,10);DRAWNUMBER(S2,H*1.02,H),COLORCFB53B; DRAWNUMBER(S1,H*1.02,H),COLORCFB53B; DRAWNUMBER(S3,H*1.02,H),COLORCFB53B;DRAWICON(U1,L*0.99,11);DRAWICON(U2,L*0.99,11);DRAWICON(U3,L*0.99,11);DRAWICON(U4,L*0.99,11);DRAWNUMBER(U1,L*0.98,L),COLORCYAN;DRAWNUMBER(U2,L*0.98,L),COLORCYAN;DRAWNUMBER(U3,L*0.98,L),COLORCYAN;DRAWNUMBER(U4,L*0.98,L),COLORCYAN;。

趋势顶底通达信公式及选股

趋势顶底通达信公式及选股

趋势顶底通达信公式及选股趋势顶底通达信公式及选股80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;90,COLOR9966FF,LINETHICK2;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,COLORWHITE;中期线: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) ,COLORRED;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 )),COLORGREEN;STICKLINE( 低位金叉,0,5,11,0 ),COLORGREEN;改个选股的,在低位也就是20左右短期线上穿中期线选股公式源码: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);短期线:=B+100;中期线:=D+100;XG:短期线<20 AND 中期线<20 AND CROSS(短期线,中期线);。

通达信QSDD“趋势顶底”指标

通达信QSDD“趋势顶底”指标

通达信QSDD“趋势顶底”指标看到有些朋友总是抱怨操盘手软件的BS点不准确!利用这个机会我来教大家一招!希望对大家有所帮助!首先打开操盘手软件!输入QSDD四个英文字母!可以调出一个叫QSDD的指标!横着的一共有5条线!弯曲的一共有3条线!横着的顶部2条线是顶部区域!下面横着的是底部区域!弯曲的灰色线是短期线!黄色的是中期线!红色的是长期线!那么我来教大家如何使用这样一个指标!以000998为案例来讲解!这个股票也是我实战操作的一个股票14块一直拿到46.8成功跑掉!下面来介绍方法!那个时候我先观察灰色线触底了了!在08年4月1号的时候我当时的想法!灰色线是短周期线那么这种股票可以作个短线风险估计会小!那么就密切观察他!开始关注底部区域的换手!同时等待灰色线的拐头向上的机会!终于灰色线在4月2号开始拐头向上!那么这个时候立刻选择进场!(要点这种股票最好是价位是底部区域的,同时灰色线触底紫色线)进场后拿着股票这样灰色线拐头不向下就拿着!如果你选择一直做短线的话!那么就可以按照股票的日线图的QSDD灰色线一直做!拐头向上就进场,拐头向下力马离场!如果你愿意做中线那么就要看黄色线!话还回到前面我进场以后观察换手和量能!不错不断的放大!接着我观察黄色线拐头也向上了!那么坚定信心做中线!黄线是在4月5号有明显向上迹象那么继续持有!我介绍过红线是个长期线如果你发现的股票的QSDD红线也是拐头向上的,那么这种股票长线可以做!4月15号的时候红线开始拐头向上!那么这个时候我选择了继续持股!那么LP后来就是一路拉升!灰色线有过高位几次波动!我还是继续持股因为这个时候黄色线和红色线2线支持股价攀升!那么大胆的持股!终于在5月13号的这天黄线也达到顶部而且灰色线已经再次出现拐头向下!而且QSDD的顶部提示信号出来!我立刻提高警觉果然5月14LP冲高并且放天量我一看坏了!一个字跑!黄色线也拐头向下!我选择46.8挂单走人!后来的一切大家也都知道!一路回落!QSDD的3线也是一路的拐头向下!我看了一下LP的BS点!B点发的还算及时!但这个S点!发的有点晚!如果按QSDD指标的话!你可以直接逃顶!而不是选择5月16号在跑!后面的有图大家可以看一下!我在这里讲这个案例不是叫大家买LP,也不是炫耀自己抓了主升浪!我只是教大家方法!大家可以在以后选股做股票的时候运用他!提高BS点效率!下面我总结一下QSDD的运用的几个要点!1.最好选择在底部区域中的股票!低位要高换手和量能的配合最完美!如果QSDD发出底部信号的话更好!如果没有,一定要灰色线最好是在底部区域出现拐头向上迹象!这样的股票!在考虑进入!2.明确自己的运用QSDD指标的思路!你到底是短,中,长中的哪一种如果短线严格按灰色线做!如果做中线结合黄红2线做!3.QSDD顶部信号出现!一定要跑!特别是灰黄2线拐头明显向下!你千万别忧郁,坚决出局!即使后面有拉升后面的钱不是你该赚的!4.最好用日线看QSDD指标!当然结合小时线运用也未尝不可!做好以上4点!那么我相信你的BS点效率应该可以提高!软件是死的,人是活的怎么样灵活的运用他!用什么样的心态去研究他!才是正确的!整合的通达信QSDD“趋势顶底”指标{趋势顶底QSDD源码}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;。

华为通达信KDJMACD合顶底判断大盘动向成本突破

华为通达信KDJMACD合顶底判断大盘动向成本突破

华为通达信K D J M A C D合顶底判断大盘动向成本突破CKBOOD was revised in the early morning of December 17, 2020.【通达信】KDJMACD二合一(顶底判断、大盘动向、成本突破)-指标公式源码A:=CURRBARSCOUNT;A1:=DAY!=REF(DAY,1);A2:=BARSLAST(A1)+1;A3:=MA(C,A2);A4:=SUM(AMO,A2)/SUM(VOL,A2)/100;A5:=IF(CAPITAL>0,A4,A3);均价线:=IF(A<=CONST(A2),A5,DRAWNULL);分钟有效周期:=IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,DRAW NULL))));分时价:=TFILT(CLOSE,CURRBARSCOUNT,00,CURRBARSCOUNT,00);分时判断:=IF(分时价=DRAWNULL,1,IF(分钟有效周期=DRAWNULL,DRAWNULL,1)); {-----------------------------由MACD定位顶底-------------------------------}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);KX:=BARSSINCE(CLOSE);{←首次开盘价距金的天数}HHN:=CONST(HHV(DIFF,KX));HLN:=CONST(LLV(DEA,KX));RC1:=CONST((HHN+HLN)/2);SS:=((HHN-HLN)/200);MACD底部:=(-100*SS+RC1)+-(-100*SS+RC1),COLOR669999;MACD顶部:=(100*SS+RC1)+-(-100*SS+RC1),COLORFF0033;MACD中轴:=0+-(-100*SS+RC1);DIFF修正:=DIFF+-(-100*SS+RC1),COLOR008080;DEA修正:=DEA+-(-100*SS+RC1),COLOR00FF00;MACD修正:=2*(DIFF修正-DEA修正)+MACD中轴,COLOR0000BB,NODRAW;MACD超跌:=CONST(LLV(MACD修正,KX));MACD超跌线:=IF(MACD超跌<MACD底部,MACD超跌,MACD底部);{----------------------利用MACD趋势进行精确顶底判断------------------------}顶部:=MACD顶部+-MACD超跌线;天际:=顶部*;中轴:=MACD中轴+-MACD超跌线;海面:=顶部*;底部:=MACD底部;{------------------------传统KDJ指标结合MACD优化---------------------------}RSVA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*顶部;{采用21日月线优化}K:SMA(RSVA,3,1),COLORFFFFFF,NODRAW;D:SMA(K,3,1),COLOR00FFFF,NODRAW;原J值参数:=3*K-2*D;JD:=IF(原J值参数<底部,底部,原J值参数);{J值底部钝化处理}J:IF(JD>顶部,顶部,JD),COLORFF00FF,NODRAW;{底部钝化处理后再进行顶部钝化处理}{---------------------------MACD多空量能判断-------------------------------}MACD多头:DIFF修正+-MACD超跌线,COLOR339999;空头:DEA修正+-MACD超跌线,COLOR00FF00;量能柱:2*(MACD多头-空头)+中轴,COLOR0000BB,NODRAW;超前DEA:=(EMA(MACD多头,7));超前MACD:=2*(MACD多头-超前DEA)+中轴;{-----------------------------------大盘动向-------------------------------}VAR1大盘:=LLV(LOW,13);VAR2大盘:=HHV(HIGH,13);VAR3大盘:=(SMA((CLOSE-VAR1大盘)/(VAR2大盘-VAR1大盘)*顶部,5,1))-顶部/2;VAR4大盘:=SMA((VAR2大盘-CLOSE)/(VAR2大盘-VAR1大盘)*顶部,5,1)-顶部/2; 大盘散户:=IF(VAR4大盘<底部,底部,VAR4大盘),COLOR408000;大盘主力:=IF(VAR3大盘<底部,底部,VAR3大盘),COLOR330088;{---------------------------------密集成本突破-----------------------------}最高获利参数:=顶部/100;VAR1C:=(COST(89)-COST(11))*最高获利参数;VAR2C:=(COST-COST(1))*最高获利参数;单峰:=((1-VAR1C/VAR2C))*顶部;低密:=((COST(90)-COST(60))/VAR2C)*顶部;高密:=((COST(40)-COST(1))/VAR2C)*顶部;赢利:= (SMA(WINNER(AMOUNT/VOL/99),2,1))*顶部;活跃度:顶部-顶部/(1+EXPMA(HSL,21)),COLOR774455;{←CYF公众追涨热情指标}70%成本集中度:=IF(VAR1C>顶部,顶部,VAR1C),COLORFFFFFF;90%成本集中度:=IF(VAR2C>顶部,顶部,VAR2C),COLORFF0000;套牢筹码上升:=IF((单峰-赢利)>底部,(单峰-赢利),底部);个股散户:=IF(套牢筹码上升>顶部,顶部,套牢筹码上升),COLOR408000;散户:IF(个股散户=DRAWNULL,DRAWNULL,个股散户),COLOR408000;获利筹码上升:=IF((赢利-单峰)>底部,(赢利-单峰),底部);个股主力:=IF(获利筹码上升>顶部,顶部,获利筹码上升),COLOR330088;主力:IF(个股主力=DRAWNULL,DRAWNULL,个股主力),COLOR330088;{--------------------换手率,五日换手率辅助判断个股活跃度-------------------}换手:SUM(VOL,1)/CAPITAL*100,COLOR666666,NODRAW;⑤日换:SUM(VOL,5)/CAPITAL*100,COLOR999999,NODRAW;{----------------------密集成本突破指标筹码峰画线--------------------------}金色背景修边1:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,底部,,0),COLOR003333;金色背景修边2:STICKLINE(C>0 AND CURRBARSCOUNT>=2,顶部,中轴,,0),COLOR003333;金色背景补充:DRAWBAND(顶部,RGB(51,51,0),中轴,RGB(51,51,0));金色背景:DRAWBAND(顶部,RGB(51,51,0),底部,RGB(128,128,128));追涨热度峰紫色:DRAWBAND(活跃度,RGB(66,52,81),底部,RGB(204,0,0));高密峰墨蓝色:=DRAWBAND(高密,RGB(0,0,51),底部,RGB(0,0,255));低密峰纯蓝色:=DRAWBAND(低密,RGB(0,0,102),底部,RGB(0,0,255));90%成本峰:DRAWBAND(90%成本集中度,RGB(0,0,153),底部,RGB(0,0,153)); 70%成本峰:DRAWBAND(70%成本集中度,RGB(0,128,0),底部,RGB(255,255,255));散户峰绿色:DRAWBAND(散户,RGB(0,64,0),底部,RGB(204,0,0));主力峰红色:DRAWBAND(主力,RGB(102,26,51),底部,RGB(0,0,255));MACD多空趋势:DRAWBAND(MACD多头,RGB(204,51,51),空头,RGB(0,179,0)); MACD多头重画:DRAWBAND(MACD多头,RGB(153,153,51),MACD多头,RGB(153,153,51));MACD空头重画:DRAWBAND(空头,RGB(0,204,0),空头,RGB(0,204,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); 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); 三平底翻金:=(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;主力启动线:=MA(V,5),COLORFFFFFF;主力洗盘线:=MA(V,35),COLOR00FFFF;资金异动线:=MA(V,135),COLORFF0000;{----------------------------买卖参考--------------------------------------}出击:=(CROSS(主力启动线,资金异动线) OR ((主力洗盘线 > 资金异动线) AND CROSS(主力启动线,主力洗盘线))),COLORYELLOW;启动:=(主力启动线>REF(主力启动线,1) AND (CROSS(VOL,主力启动线) AND (REF(VOL,1)<REF(资金异动线,1) OR REF(VOL,2)<REF(资金异动线,2)))),COLOR45AAEE;成立:=三平底翻金 AND (出击 OR 启动);买入提示:=IF(成立=1,海面*,0) AND 分时判断=1;{------------------------顶部线,天际线,海面线,底部线重画-------------------}顶部线:DRAWBAND(顶部,RGB(51,0,255),顶部,RGB(51,0,255));天际线:DRAWBAND(天际,RGB(128,64,64),天际,RGB(128,64,64));海面线:DRAWBAND(海面,RGB(0,153,153),海面,RGB(0,153,153));{------------------------超前MACD多空量能柱--------------------------------}超前MACD红柱1:STICKLINE(超前MACD>=中轴,超前MACD,中轴,,0),COLOR226688;超前MACD红柱2:STICKLINE(超前MACD>=中轴,超前MACD,中轴,,0),COLOR4488BB;超前MACD红柱3:STICKLINE(超前MACD>=中轴,超前MACD,中轴,,0),COLOR55AADD;超前MACD兰柱1:STICKLINE(超前MACD<=中轴,超前MACD,中轴,,0),COLOR006600;超前MACD兰柱2:STICKLINE(超前MACD<=中轴,超前MACD,中轴,,0),COLOR007700;超前MACD兰柱3:STICKLINE(超前MACD<=中轴,超前MACD,中轴,,0),COLOR008800;{--------------------------MACD多空量能柱----------------------------------}MACD红柱1:STICKLINE(量能柱>=中轴,量能柱,中轴,,0),COLOR000077; MACD红柱2:STICKLINE(量能柱>=中轴,量能柱,中轴,,0),COLOR000088; MACD红柱3:STICKLINE(量能柱>=中轴,量能柱,中轴,,0),COLOR000099; MACD红柱4:STICKLINE(量能柱>=中轴,量能柱,中轴,,0),COLOR0000AA; MACD兰柱1:STICKLINE(量能柱<=中轴,量能柱,中轴,,0),COLORAA6633; MACD兰柱2:STICKLINE(量能柱<=中轴,量能柱,中轴,,0),COLORBB7744; MACD兰柱3:STICKLINE(量能柱<=中轴,量能柱,中轴,,0),COLORCC8855;MACD兰柱4:STICKLINE(量能柱<=中轴,量能柱,中轴,,0),COLORDD9966;{---------中轴线重画及顶部线,天际线,海面线,底部线,多空线文字说明-----------}中轴线:DRAWBAND(中轴,RGB(128,128,255),中轴,RGB(128,128,255));顶部线文字:DRAWTEXT(CURRBARSCOUNT=1,顶部*,' 顶部线'),COLORFF0033; 天际线文字:DRAWTEXT(CURRBARSCOUNT=1,天际*,' 天际线'),COLOR404080; 海面线文字:DRAWTEXT(CURRBARSCOUNT=1,海面,' 海面线'),COLOR999900;底部线文字:DRAWTEXT(CURRBARSCOUNT=1,底部,' 底部线'),COLOR669999;中轴线文字:DRAWTEXT(CURRBARSCOUNT=1,中轴,' 多空线'),COLORFF8080; {-------------------------------传统KDJ指标线重画--------------------------}D线重画:DRAWBAND(D,RGB(255,255,0),D*,RGB(255,255,0));K线重画:DRAWBAND(K,RGB(255,255,255),K,RGB(255,255,255));J线重画:DRAWBAND(J,RGB(255,0,255),J,RGB(255,0,255));【通达信】KDJMACD二合一(顶底判断、大盘动向、成本突破)-指标公式效果图(文档来源:若水财经社区)。

通达信合并趋势顶底公式

通达信合并趋势顶底公式

通达信合并趋势顶底公式标签: 趋势顶底趋势通达信合并趋势顶底公式顶底指标合并了另外两个指标。

一个是“超跌”指标(绿柱体,注意此指标只表示超跌。

);另一个是“趋势”指标(最下面的红绿点,红点持股,绿点持币);V ARE:=REF(LOW,1)*0.9;V ARF:=LOW*0.9;V AR10:=(V ARF*VOL+V ARE*(CAPITAL-VOL))/CAPITAL; V AR11:=EMA(V AR10,30);V AR12:=V AR11-CLOSE;V AR13:=REF(CLOSE,1);V AR14:=SMA(MAX(CLOSE-V AR13,0),7,1)/SMA(ABS(CLO SE-VAR13),7,1)*100;V AR15:=SMA(MAX(CLOSE-V AR13,0),13,1)/SMA(ABS(CLO SE-VAR13),13,1)*100;V AR16:=BARSCOUNT(CLOSE);V AR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(A BS(CLOSE-REF(CLOSE,1)),6,1)*100;V AR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;V AR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW ,15))*100;V AR1A:=(SMA(VAR19,4,1)-50)*2;V AR1B:=SMA(V AR1A,3,1);V AR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;V AR1D:=SMA(V AR1C,4,1);V AR1E:=SMA(V AR1D,3,1);V AR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;V AR20:=IF(V AR17<=25 AND V AR18<-95 ANDV AR1F>20 AND V AR1B<-30 AND V AR1E<30 AND V AR12>=-0.25 AND VAR14<22 AND V AR15<28 AND V AR16>50,100,0),LINETHICK3,COLORYELLOW ; 极限反击:= V AR20;STICKLINE (极限反击>0,1,89,1.3,0),COLORGREEN; STICKLINE (极限反击>0,3,87,0.00001,0),COLORBLACK;W:80,COLOR996699;S:20,COLORGREEN;Y:10,COLORCC6633,LINETHICK2;T:90,COLOR9966FF,LINETHICK2;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LO W,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:(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,COLORRED;顶部:FILTER(顶区,4);底区:(长期线<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),COLORYELLOW ;STICKLINE(顶部,99,103,4,1 ),COLORRED,LINETHICK2; STICKLINE( 底区,-4,0,4,0 ),COLORGREEN;低位金叉:=长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线OR REF( 短期线,1)<1 );STICKLINE( 低位金叉,0,5,4,0 ),COLORRED; DRAWICON (CROSS(长期线,中期线) ,0,2);DRAWICON(CROSS(中期线,长期线),0,1);STICKLINE( 见顶,99.5,102.5,3,0 ),COLORGREEN; STICKLINE( 见顶,100.5,101.5,1.5,0 ),COLORRED;V AR111:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW, 9))*100;V AR222:=EMA(V AR111,30);V AR333:=EMA(V AR222,30);V AR444:=3*V AR222-2*V AR333;势:=EMA(VAR444,5),COLORBLUE,LINETHICK3;持币:IF(势<REF(势,1),-5,DRAWNULL),CIRCLEDOT,COLORGREEN ;持股:IF(势>REF(势,1),-5,DRAWNULL),CIRCLEDOT,COLOR000099 ;“唉呀跳空”等指标5合1信号集(副图)TD2{TD DEMARKERⅡ等指标5合1信号集,50.00;60.00;68.00;78.88}{买压卖压(TD DEMARKERⅡ),汤姆.迪马克}FZ:=MAX(HIGH-REF(CLOSE,1),0)+(CLOSE-LOW);FM:=MAX(REF(CLOSE,1)-LOW,0)+(HIGH-CLOSE);TD8:100*SUM(FZ,8)/SUM(FM+FZ,8),COLOR9900FF,LINET HICK2;B1:IF(COUNT(TD8>60,3)=3,72,40),COLORFF00FF;B2:IF(COUNT(TD8>60,6)=6,69,40),COLOR33CCFF;警:IF(COUNT(TD8<40,7)=7,66,40),COLORBLUE;{? 0;唉呀跳空”交易系统,拉瑞.威廉姆斯拉瑞.威廉姆斯在其著作《短线交易秘诀》中称,该系统是其研究过以及交易过的最值得信赖的短线形态,许多系统开发人员都把它纳入实务操作当中。

通达信趋势看顶底指标公式源码编程思路破译

通达信趋势看顶底指标公式源码编程思路破译

通达信趋势看顶底指标公式源码编程思路破译编程思路破译VAR1赋值:(收盘价的34日指数移动平均-收盘价的21日指数移动平均)*100VAR2赋值:VAR1的7日指数移动平均VAR3赋值:((21日内最高价的最高值-收盘价)/(21日内最高价的最高值-21日内最低价的最低值))*100-10VAR4赋值:((收盘价-21日内最低价的最低值)/(21日内最高价的最高值-21日内最低价的最低值))*100VAR5赋值:VAR4的13日[8日权重]移动平均VAR6赋值:VAR3的21日[8日权重]移动平均VAR7赋值:收盘价的80日简单移动平均-收盘价的10日简单移动平均/7VAR8赋值:收盘价的5日指数移动平均VAR9赋值:(9日内收盘价的最低值)*1.1的14日简单移动平均VAR10赋值:2*VAR9-VAR8-收盘价*0.1VAR11赋值:如果((VAR8-VAR10)*5>0),返回((VAR8-VAR10)*5的2乘幂)/10,否则返回(-1*((VAR8-VAR10)*(5)的2乘幂))/(10) VAR12赋值:如果(VAR11>0),返回VAR11-0,否则返回12VAR13赋值:收盘价-2日前的收盘价和0的较大值的7日[1日权重]移动平均/收盘价-2日前的收盘价的绝对值的7日[1日权重]移动平均*100A赋值:如果收盘价的5日简单移动平均>1日前的收盘价的5日简单移动平均,返回收盘价+最高价-开盘价,否则返回如果收盘价的5日简单移动平均<1日前的收盘价的5日简单移动平均,返回收盘价+最低价-开盘价,否则返回收盘价RSV赋值:(A-34日内最低价的最低值)/(34日内最高价的最高值-34日内最低价的最低值)*100的3日指数移动平均输出做多:(RSV的21日指数移动平均)输出趋势:(做多的5日指数移动平均)OK赋值:VAR5的13日[8日权重]移动平均的向上舍入输出看底:如果(OK-VAR6<(-65)),返回20,否则返回20输出顶峰:如果(OK-VAR6>85),返回80,否则返回80输出分:50程序源码VAR1:=(EMA(C,34)-EMA(C,21))*100;VAR2:=EMA(VAR1,7);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;A:=IF(MA(C,5)>REF(MA(C,5),1),C+H-O,IF(MA(C,5)<REF(MA(C,5),1),C+L-O,C));RSV:=EMA((A-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100,3);做多:(EMA(RSV,21));趋势:(EMA(做多 ,5));OK:=CEILING(SMA(VAR5,13,8));看底:IF((OK-VAR6<(-65)),20,20);顶峰:IF((OK-VAR6>85),80,80);分:50;。

【指标分享】通达信底部公式和顶部公式

【指标分享】通达信底部公式和顶部公式

【指标分享】通达信底部公式和顶部公式底部公式如下TJ:=EVERY(L>REF(L,1),3) AND EVERY(REF(L,3)<REF(L,4),3) AND REF(L,3)=LLV(L,10);AA1:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(TJ))+4);ZD:REF(L,AA1);T1:=(COUNT(ZD>L,AA1)=1 AND ZD>L) AND AA1>5 AND H/L>1.04;AA2:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(T1))+1);ZG:REF(H,AA2),COLORCYAN,DOTLINE;DRAWTEXT(AA1+1,L*0.985,'(前底)'),COLORYELLOW;DRAWTEXT(AA2+1,L*0.985,'(1B)'),DRAWABOVE,COLORYELLOW;DRAWICON(AA2+1,L,2);DRAWICON(COUNT(C>ZG,AA2)=1 AND C>ZG AND AA2<30,L,1);DRAWTEXT(COUNT(C>ZG,AA2)=1 AND C>ZG AND AA2<30,L*0.985,'(2B)'),DRAWABOVE,COLORRED; 图形如下顶部分式如下TJ2:=EVERY(H>REF(L,1),3) AND EVERY(REF(L,3)<REF(L,4),3) AND REF(L,3)=LLV(L,10);BB1:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(TJ2))+4);ZD2:REF(H,BB1);T2:=(COUNT(ZD2<H,BB1)=1 AND ZD2<H) AND BB1<5 AND L/H<1.04;BB2:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(T2))+1);ZG2:REF(L,BB2),COLORCYAN,DOTLINE;DRAWTEXT(BB1+1,H*1.01,'(前顶)'),COLORYELLOW;DRAWTEXT(BB2+1,H*1.01,'(2B)'),DRAWABOVE,COLORYELLOW;DRAWICON(BB2+1,H,1);DRAWICON(COUNT(C<ZG2,BB2)=1 AND C<ZG2 AND BB2>30,H,1);DRAWTEXT(COUNT(C<ZG2,BB2)=1 AND C<ZG2 ANDBB2>30,H*1.01,'(2B)'),DRAWABOVE,COLORGREEN;百⽇低阳筑平底【⿊马王⼦抖⽶袋】理论及选股公式博弈量能(附图指标)缠师选股的放量上破年线后缩量回调纯成交量选股-OBV选股公式筹码集中度公式低位放量选股低位阳⼗字选股第⼀阳起爆股市独门暗器⼀招鲜系列(附指标)破解博尔系统“多空概率”指标美⼈肩选股理念及公式螺旋浆选股原理及指标两个⼤阴实顶的连线指标均线粘合向上发散选股胡⽴阳“地⼼引⼒线”主图公式各种K线形态指标放量突破年线缩量回调的选股公式通达信量能成交量公式三个MACD底背离选股公式量能平台突破理论-量能指标公式及选股公式最全的唐能通⼴通红绿灯指标通达信底部选股公式⽜股三绝买点选股公式经典地量买点选股指标三买选股公式回踩精准线涨停在眼前及选股公式殷保华公式集底部三绝及⼯作线法则135战法公式。

通达信顶底趋势主图指标公式

通达信顶底趋势主图指标公式

A1:=REF(H,N)=HHV(H,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);D1:=FILTER(C1,N);{高点}A2:=REF(L,N)=LLV(L,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);D2:=FILTER(C2,N);{低点}E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;E2:=(H+L)/2;{高低点出现在同一K线上时可作取舍}H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=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 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));G1:=F1>REF(F1,1);I1:=BACKSET(G1,2);LD:=I1>REF(I1,1),LINETHICK0;{过滤后低点}L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1;X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2));G2:=F2>REF(F2,1);I2:=BACKSET(G2,2);HD:=I2>REF(I2,1),LINETHICK0;{过滤后高点}R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);S1:=R1>REF(R1,1);{前一高}T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);U1:=T1>REF(T1,1);{前一低}R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2);S2:=R2>REF(R2,1);T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2);U2:=T2>REF(T2,1);{前二低}T3:=BACKSET(U2,REF(BARSLAST(LD),1)+2);U3:=T3>REF(T3,1);{前三低}T4:=BACKSET(U3,REF(BARSLAST(LD),1)+2);U4:=T4>REF(T4,1);{前四低}R3:=BACKSET(S2,REF(BARSLAST(HD),1)+2);S3:=R3>REF(R3,1);{前三高}R4:=BACKSET(S3,REF(BARSLAST(HD),1)+2);S4:=R4>REF(R4,1);{前四高}★压力1:DRAWLINE(S2,H,S1,H,1),COLORMAGENTA,LINETHICK1; ★支撑1:DRAWLINE(U2,L,U1,L,1),COLOR8FBC8F,LINETHICK1;★压力2:DRAWLINE(S3,H,S2,H,1),COLORFF8000;★支撑2:DRAWLINE(U3,L,U2,L,1),COLOR99CC32;★压力3:DRAWLINE(S4,H,S3,H,1),COLOR0000FF;★支撑3:DRAWLINE(U4,L,U3,L,1),COLOR00FF7F;DRAWICON(S2,H*1.01,10);DRAWICON(S3,H*1.01,10);DRAWNUMBER(S2,H*1.02,H),COLORCFB53B;DRAWNUMBER(S1,H*1.02,H),COLORCFB53B;DRAWNUMBER(S3,H*1.02,H),COLORCFB53B;DRAWICON(U1,L*0.99,11);DRAWICON(U2,L*0.99,11);DRAWICON(U3,L*0.99,11);DRAWICON(U4,L*0.99,11);DRAWNUMBER(U1,L*0.98,L),COLORCYAN;DRAWNUMBER(U2,L*0.98,L),COLORCYAN;DRAWNUMBER(U3,L*0.98,L),COLORCYAN;DRAWNUMBER(U4,L*0.98,L),COLORCYAN;。

【股票指标公式下载】-【通达信】十指荟萃(金叉、趋势、顶底、抢反弹)

【股票指标公式下载】-【通达信】十指荟萃(金叉、趋势、顶底、抢反弹)

【通达信】十指荟萃(金叉、趋势、顶底、抢反弹)-指标公式源码DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);STICKLINE(DIFF>DEA,1,1.8,3,0),COLORFF9999;STICKLINE(DIFF<DEA,1,1.8,3,0),COLOR333333;MCDA金叉:DIFF>DEA,NODRAW;DRAWTEXT(ISLASTBAR=1,1.4,'.MACD'),COLORFFFFFF;RSV:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);STICKLINE(K>D,7,7.8,3,0),COLORRED;STICKLINE(K<D,7,7.8,3,0),COLOR333333;KDJ金叉:K>D,NODRAW;DRAWTEXT(ISLASTBAR=1,7.4,'.KDJ'),COLORFFFFFF;LC:=REF(CLOSE,1);RSI1:=(SMA(MAX(CLOSE-LC,0),9,1))/(SMA(ABS(CLOSE-LC),9,1))*100;RSI2:=(SMA(MAX(CLOSE-LC,0),26,1))/(SMA(ABS(CLOSE-LC),26,1))*100; STICKLINE(RSI1>RSI2,3,3.8,3,0),COLOR6633CC;STICKLINE(RSI1<RSI2,3,3.8,3,0),COLOR333333;RSI金叉:RSI1>RSI2,NODRAW;DRAWTEXT(ISLASTBAR=1,3.4,'.RSI'),COLORFFFFFF;VARA1:=LLV(LOW,10);VARA2:=HHV(HIGH,25);趋势:= EMA((CLOSE-VARA1)/(VARA2-VARA1)*110,4),COLORFF00FF,LINETHICK5; STICKLINE(趋势>=REF(趋势,1),5,5.8,3,0),COLOR9933FF;STICKLINE(趋势< REF(趋势,1),5,5.8,3,0),COLOR333333;顶底:趋势>=REF(趋势,1) NODRAW;DRAWTEXT(ISLASTBAR=1,5.4,'.顶底'),COLORFFFFFF;BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4; STICKLINE(CLOSE>BBI,4,4.8,3,0),COLORCC66FF;STICKLINE(CLOSE<BBI,4,4.8,3,0),COLOR333333;BBI金叉:CLOSE>BBI,NODRAW;DRAWTEXT(ISLASTBAR=1,4.4,'.BBI'),COLORFFFFFF;VAR1:=1;VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,4);C1:=(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1); C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1); AA:=C1>=C2 ;BB:=C2>C1 ;STICKLINE(AA,6,6.8,3,0),COLOR0088FF;STICKLINE(BB,6,6.8,3,0),COLOR333333;抢反弹:C1>=C2, NODRAW;DRAWTEXT(ISLASTBAR=1,6.4,'.抢反弹'),COLORFFFFFF; VOLUME:=VOL,VOLSTICK;MAVOL1:=MA(VOLUME,5);MAVOL2:=MA(VOLUME,10);STICKLINE(MAVOL1>=MAVOL2,2,2.8,3,0),COLOR990066; STICKLINE (MAVOL1<MAVOL2,2,2.8,3,0),COLOR333333;成交量:MAVOL1>MAVOL2,POINTDOT;DRAWTEXT(ISLASTBAR=1,2.4,'.成交量'),COLORFFFFFF;周K:=MA("KDJ.K#WEEK"(9,3,3) ,5);周D:=MA("KDJ.D#WEEK"(9,3,3) ,5);周J:=MA("KDJ.J#WEEK"(9,3,3) ,5);STICKLINE(周K>=周D,8,8.8,3,0),COLORFF00FF; STICKLINE (周K<周D,8,8.8,3,0),COLOR333333;周KD金叉:周K>= 周D POINTDOT;DRAWTEXT(ISLASTBAR=1,8.4,'.周KD金叉'),COLORFFFFFF; STICKLINE(周K>=REF(周K,1),9,9.8,3,0),COLORFF00FF; STICKLINE(周K<REF(周K,1),9,9.8,3,0),COLOR333333;周K拐点:周K>=REF(周K,1) POINTDOT;DRAWTEXT(ISLASTBAR=1,9.4,'.周K拐点'),COLORFFFFFF; STICKLINE(周J>=REF(周J,1),10,10.8,3,0),COLORFF00FF; STICKLINE(周J<REF(周J,1),10,10.8,3,0),COLOR333333; 周J拐点:周J>=REF(周J,1) POINTDOT;DRAWTEXT(ISLASTBAR=1,10.4,'.周J拐点'),COLORFFFFFF;STICKLINE (周K拐点 AND 周J拐点 AND 周KD金叉 AND MCDA金叉 AND KDJ 金叉 AND RSI金叉 AND 顶底 AND BBI金叉 AND 抢反弹 AND 成交量,0,0.8,3,0),COLORFF00FF;【通达信】十指荟萃(金叉、趋势、顶底、抢反弹)-指标公式效果图(文档来源:若水财经社区)。

通达信分时顶底之王指标公式(一)

通达信分时顶底之王指标公式(一)

通达信分时顶底之王指标公式(一)通达信分时顶底之王指标公式简介通达信分时顶底之王指标是一种技术分析指标,用于判断股票的分时图形态,进而预测价格的趋势。

本文将介绍该指标的相关公式,并举例解释说明其应用。

公式×1001.顶底之王指标公式一:K=C−LH−L其中,C代表收盘价,L代表当日最低价,H代表当日最高价。

该公式计算了收盘价在当日最低价和最高价之间的相对位置,用百分比表示。

数值越高,说明收盘价离当日最高价越近,可能代表股票价格处于顶部。

×1002.顶底之王指标公式二:D=H−CH−L其中,C代表收盘价,L代表当日最低价,H代表当日最高价。

该公式计算了收盘价在当日最低价和最高价之间的相对位置,用百分比表示。

数值越高,说明收盘价离当日最低价越远,可能代表股票价格处于底部。

应用举例假设某股票的分时图数据如下:时间 | 最高价 | 最低价 | 收盘价 |||||| | 09:30 | | | | | 09:31 | | | | | 09:32 | | | | | 09:33 | | | | | 09:34 | | | |根据公式一,我们可以计算出每个时间点的顶底之王指标K值:时间 | K值 |||| | 09:30 | | | 09:31 | | | 09:32 | | | 09:33 | | | 09:34 | |根据公式二,我们可以计算出每个时间点的顶底之王指标D值:时间 | D值 |||| | 09:30 | | | 09:31 | | | 09:32 | | | 09:33 | | | 09:34 | |通过观察K值和D值的变化,我们可以判断分时图的形态。

在本例中,09:33时间点的K值和D值相近,说明收盘价的相对位置较为均衡,可能代表价格处于横盘整理阶段;而09:34时间点的K值较高,D 值较低,说明收盘价离最高价较近,离最低价较远,可能代表价格即将上涨。

通过类似的分析,我们可以对股票的价格趋势进行预测和判断。

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

通达信合并趋势顶底公式标签: 趋势顶底趋势通达信合并趋势顶底公式顶底指标合并了另外两个指标。

一个是&#8220;超跌&#8221;指标(绿柱体,注意此指标只表示超跌。

);另一个是&#8220;趋势&#8221;指标(最下面的红绿点,红点持股,绿点持币);V ARE:=REF(LOW,1)*0.9;V ARF:=LOW*0.9;V AR10:=(V ARF*VOL+V ARE*(CAPITAL-VOL))/CAPITAL; V AR11:=EMA(V AR10,30);V AR12:=V AR11-CLOSE;V AR13:=REF(CLOSE,1);V AR14:=SMA(MAX(CLOSE-V AR13,0),7,1)/SMA(ABS(CLO SE-V AR13),7,1)*100;V AR15:=SMA(MAX(CLOSE-V AR13,0),13,1)/SMA(ABS(CLO SE-V AR13),13,1)*100;V AR16:=BARSCOUNT(CLOSE);V AR17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(A BS(CLOSE-REF(CLOSE,1)),6,1)*100;V AR18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;V AR19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW ,15))*100;V AR1A:=(SMA(VAR19,4,1)-50)*2;V AR1B:=SMA(V AR1A,3,1);V AR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-L LV(INDEXL,14))*100;V AR1D:=SMA(V AR1C,4,1);V AR1E:=SMA(V AR1D,3,1);V AR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;V AR20:=IF(V AR17&lt;=25 AND V AR18&lt;-95 ANDV AR1F&gt;20 AND V AR1B&lt;-30 AND V AR1E&lt;30 AND V AR12&gt;=-0.25 AND V AR14&lt;22 AND V AR15&lt;28 AND V AR16&gt;50,100,0),LINETHICK3,COLORYELLOW ; 极限反击:= V AR20;STICKLINE (极限反击&gt;0,1,89,1.3,0),COLORGREEN; STICKLINE (极限反击&gt;0,3,87,0.00001,0),COLORBLACK;W:80,COLOR996699;S:20,COLORGREEN;Y:10,COLORCC6633,LINETHICK2;T:90,COLOR9966FF,LINETHICK2;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LL V(LOW,34)),19),COLORRED;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LO W,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LL V(LOW,34)),4),LINETHICK2;长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:(REF(中期线,1)&gt;85 AND REF(短期线,1)&gt;85 AND REF(长期线,1)&gt;65) AND CROSS(长期线,短期线) ;顶区:(中期线&lt;REF(中期线,1) AND REF(中期线,1)&gt;80) AND (REF(短期线,1)&gt;95 OR REF(短期线,2)&gt;95 ) AND 长期线&gt;60 AND 短期线&lt;83.5AND 短期线&lt;中期线AND 短期线&lt;长期线+4,COLORRED;顶部:FILTER(顶区,4);底区:(长期线&lt;12 AND 中期线&lt;8 AND (短期线&lt;7.2 OR REF(短期线,1)&lt;5) AND (中期线&gt;REF(中期线,1)OR 短期线&gt;REF(短期线,1)))OR (长期线&lt;8 AND 中期线&lt;7 AND 短期线&lt;15 AND 短期线&gt;REF(短期线,1)) OR (长期线&lt;10 AND 中期线&lt;7 AND 短期线&lt;1),COLORYELLOW ;STICKLINE(顶部,99,103,4,1 ),COLORRED,LINETHICK2; STICKLINE( 底区,-4,0,4,0 ),COLORGREEN;低位金叉:=长期线&lt;15 AND REF(长期线,1)&lt;15 AND 中期线&lt;18 AND 短期线&gt;REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线&gt;中期线AND (REF(短期线,1)&lt;5 OR REF(短期线,2)&lt;5 ) AND (中期线&gt;=长期线OR REF( 短期线,1)&lt;1 );STICKLINE( 低位金叉,0,5,4,0 ),COLORRED; DRAWICON (CROSS(长期线,中期线) ,0,2);DRAWICON(CROSS(中期线,长期线),0,1);STICKLINE( 见顶,99.5,102.5,3,0 ),COLORGREEN; STICKLINE( 见顶,100.5,101.5,1.5,0 ),COLORRED;V AR111:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW, 9))*100;V AR222:=EMA(V AR111,30);V AR333:=EMA(V AR222,30);V AR444:=3*V AR222-2*V AR333;势:=EMA(VAR444,5),COLORBLUE,LINETHICK3;持币:IF(势&lt;REF(势,1),-5,DRAWNULL),CIRCLEDOT,COLORGREEN ;持股:IF(势&gt;REF(势,1),-5,DRAWNULL),CIRCLEDOT,COLOR000099 ;&#8220;唉呀跳空&#8221;等指标5合1信号集(副图)TD2{TD DEMARKERⅡ等指标5合1信号集,50.00;60.00;68.00;78.88}{买压卖压(TD DEMARKERⅡ),汤姆.迪马克}FZ:=MAX(HIGH-REF(CLOSE,1),0)+(CLOSE-LOW);FM:=MAX(REF(CLOSE,1)-LOW,0)+(HIGH-CLOSE);TD8:100*SUM(FZ,8)/SUM(FM+FZ,8),COLOR9900FF,LINET HICK2;B1:IF(COUNT(TD8&gt;60,3)=3,72,40),COLORFF00FF;B2:IF(COUNT(TD8&gt;60,6)=6,69,40),COLOR33CCFF;警:IF(COUNT(TD8&lt;40,7)=7,66,40),COLORBLUE;{&#822 0;唉呀跳空&#8221;交易系统,拉瑞.威廉姆斯拉瑞.威廉姆斯在其著作《短线交易秘诀》中称,该系统是其研究过以及交易过的最值得信赖的短线形态,许多系统开发人员都把它纳入实务操作当中。

从某种意义上来说,这是一个心理交易系统,主要是量度过度的情绪化反应,导致的价格突变。

其基本走势是在一个下跌趋势中,价格在箱形区间的下档附近波动持续5到10 天,然后大幅低开跌破趋势线,卖压情绪极度高涨,如果随后反弹到昨日的最低价时,表明市场能量反转、另一波凌厉的涨势蓄势待发。

系统买入机械规则⒈收盘价比五日均价低4%,确保信号发生在跌势;⒉开盘价低于昨日最低价1%;⒊收盘反弹至昨日最低价以上。

}W1:=CLOSE&lt;0.96*MA(CLOSE,5);W2:=OPEN&lt;0.99*REF(LOW,1);W3:=CLOSE&gt;REF(LOW,1);B0:IF(W1 AND W2 AND W3,75,40),COLORRED;{RSI三重平滑线,康斯坦丝.布朗简}LC := REF(CLOSE,1);RSI14:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-L C),14,1)*100;YSZD:=MA(MA(RSI14,5),3)-MA(MA(MA(RSI14,5),3),9); KB:=YSZD&gt;REF(YSZD,1) ANDREF(YSZD,1)=REF(LLV(YSZD,100),1);B:IF(KB=1,75,40),COLORWHITE;{2B法则,维克多.斯波朗迪}V1:=REF(LLV(CLOSE,100),10);V2:=LLV(CLOSE,100);V3:=CLOSE&gt;V1 AND V2&lt;V1 AND V2&gt;0.95*V1;{验证回升,验证已适度创新低}警2:IF(V3=1,63,40),COLORGRAY;{价量摆荡法则——马丁.普林格}BD:=(CLOSE/MA(CLOSE,28)-1)*100;警3:IF(BD&lt;-10,60,40),COLORGREEN;{通达信虚拟成交量周、3日、日、120分钟、60、30、15分钟}VV1:=IF(CLOSE&lt;150,100*VOL/(FINANCE(7)/100),IF(PE RIOD=8,VOL/10000,AMOUNT/100000000));VV0:=IF(FROMOPEN&gt;120,FROMOPEN-120,FROMOPE N);VV2:=IF(FROMOPEN&lt;=60,FROMOPEN,IF(FROMOPEN &lt;=120,FROMOPEN-60,IF(FROMOPEN&lt;=180,FROMOP EN-120,IF(FROMOPEN&lt;=240,FROMOPEN-180,FROMOP EN))));VV3:=IF(FROMOPEN&lt;=30,FROMOPEN,IF(FROMOPEN &lt;=60,FROMOPEN-30,IF(FROMOPEN&lt;=90,FROMOPE N-60,IF(FROMOPEN&lt;=120,FROMOPEN-90,IF(FROMOPE N&lt;=150,FROMOPEN-120,IF(FROMOPEN&lt;=180,FROM OPEN-150,IF(FROMOPEN&lt;=210,FROMOPEN-180,IF(FR OMOPEN&lt;=240,FROMOPEN-210,FROMOPEN))))))));VV4:=IF(FROMOPEN&lt;=15,FROMOPEN,IF(FROMOPEN &lt;=30,FROMOPEN-15,IF(FROMOPEN&lt;=45,FROMOPE N-30,IF(FROMOPEN&lt;=60,FROMOPEN-45,IF(FROMOPE N&lt;=75,FROMOPEN-60,IF(FROMOPEN&lt;=90,FROMOP EN-75,IF(FROMOPEN&lt;=105,FROMOPEN-90,IF(FROMOP EN&lt;=120,FROMOPEN-105,IF(FROMOPEN&lt;=135,FRO MOPEN-120,IF(FROMOPEN&lt;=150,FROMOPEN-135,IF(F ROMOPEN&lt;=165,FROMOPEN-150,IF(FROMOPEN&lt;=1 80,FROMOPEN-165,IF(FROMOPEN&lt;=195,FROMOPEN-1 80,IF(FROMOPEN&lt;=210,FROMOPEN-195,IF(FROMOPE N&lt;=225,FROMOPEN-210,IF(FROMOPEN&lt;=240,FROM OPEN-225,FROMOPEN))))))))))))))));VV6:=IF(CURRBARSCOUNT=1,IF(PERIOD=5,VV1*240/FR OMOPEN,IF(PERIOD=8,VV1*120/VV0,IF(PERIOD=4,VV1* 60/VV2,IF(PERIOD=3,VV1*30/VV3,IF(PERIOD=2,VV1*15/ VV4,VV1))))),VV1);VV:=IF(PERIOD=6,IF(WEEKDAY=1,5*VV6,IF(WEEKDAY= 2,5*VV1/2,IF(WEEKDAY=3,5*VV1/3,IF(WEEKDAY=4,5*V V1/4,VV1)))),IF(PERIOD&lt;=5 ORPERIOD=8,VV6,VV1)),COLORRED,LINETHICK1;BDV:=(V V/MA(VV,28)-1)*100;警4:IF(BDV&lt;-50,57,40),COLORGREEN;{小结以上交易系统,均为当今世界一流顶尖操盘手或分析师的代表作品,当然是在他们公诸媒体的范围内说的。

相关文档
最新文档