【股票指标公式下载】-【通达信】超好主图(主线、股价重心、中短波)
【股票指标公式下载】-【通达信】超好主图(主线、股价重心、中短波)
【通达信】超好主图(主线、股价重心、中短波)-指标公式源码主线:=(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,LINETHICK2 ,COLORFF00FF;股价重心:=DMA(AMOUNT/VOL/100,VOL/CAPITAL),COLORGREEN,LINETHICK2;MA14:=EMA(CLOSE,14);MA34:=EMA(CLOSE,26);MA54:=EMA(CLOSE,54);MA90:=EMA(CLOSE,90);MA120:EMA(CLOSE,120),POINTDOT,LINETHICK2,COLORWHITE;年线:EMA(C,250),COLORYELLOW,LINETHICK2;{中短波}HZ:=EMA(CLOSE,13);短波:EMA(HZ,1),COLOR00DD00,LINETHICK1;中波:EMA(HZ,26),COLORRED,LINETHICK1;均线148天:=EMA(C,148),POINTDOT,LINETHICK1,COLORGREEN;成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100,COLORYELLOW ,LINETHICK2 ;HZ2:EMA(HZ,8),COLORGREEN,LINETHICK2;HZ4:EMA(HZ,39),COLORFF00FF,LINETHICK2;A1:STICKLINE(HZ2<HZ4,短波,HZ4,1,0),COLORBLUE ;A2:STICKLINE(短波>HZ2,短波,HZ2,2,0),COLORGREEN;A3:STICKLINE(中波>HZ4,中波,HZ4,1.5,0),COLORFF00FF;{慢速KDJ}RSV:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;FASTK:=SMA(RSV,12,1);K:=SMA(FASTK,9,1),COLORYELLOW;D:=SMA(K,3,1),LINETHICK2,COLORBLUE;J:=3*K-2*D,LINETHICK1,COLORGREEN;{中波}VAR11:=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);VAR22:=100-VAR11;中势线:=(-1)*(EMA(VAR22,1)-50)+42,COLORYELLOW,LINETHICK2;TZ:=(CLOSE-LLV(LOW,331))/(HHV(HIGH,331)-LLV(LOW,331))*100;强势线:=SMA(TZ,5,1),LINETHICK2,COLORRED;大盘线:=70*(HHV(HIGH,39)-CLOSE)/(HHV(HIGH,39)-LLV(LOW,39)),LINETHICK1,COL OR009900;{量选}AA:=VOL/SUM(VOL,13);BB:=DMA(C,AA);CC:=VOL/SUM(VOL,34);DD:=DMA(C,CC);{背离}VAR00:=WINNER(CLOSE);VAR1:=FORCAST(VAR00,10);VAR2:=MA(VAR1,3);VAR3:=MA(VAR2,12);VAR4:=MA(VAR3,16);VAR5:=MA(VAR4,31);VAR6:=MA(VAR5,55);VAR7:=VAR5;VAR8:=VAR4>VAR2*1.11 AND VAR3>VAR2*1.095;A:=VAR4/VAR2;B:=VAR3/VAR2;VAR9:=VAR2>VAR1*0.95;TD:=VAR2/VAR1;VAR1H:=INDEXC;VAR2H:=MA(VAR1H,6);VAR3H:=MA(VAR1H,24);VAR4H:=MA(VAR1H,32);VAR5H:=MA(VAR1H,62);VAR6H:=MA(VAR1H,105);VAR7H:=VAR5H;VAR8H:=VAR4H>VAR2H*1.11 AND VAR3H>VAR2H*1.095;VAR9H:=VAR2H>VAR1H*0.95;PT:=(IF(H=L AND C=O AND L=C AND C>0 AND REF(H,1)=REF(L,1) ANDREF(C,1)=REF(O,1)AND REF(H,1)=REF(C,1) AND REF(C,1)>0,0,1))>0;G:=(VAR7H AND VAR8H AND VAR9H AND CLOSE/COST(8)<=0.7985AND (COUNT(C=L,4)<3 OR C>REF(C,1)))AND PT ORVAR7 AND VAR8 AND VAR9 AND CLOSE/COST(5)<=0.8 AND((VAR1>OPEN OR VAR1>REF(OPEN,1) ORREF(VAR1,1)));背离:=VAR2<REF(VAR2,1) AND A>REF(A,1);买入信号1:=VAR1>A AND VAR2>B;买入信号2:=B>A AND 1>B AND A<1 AND H=HHV(H,21);BUY:=COUNT(背离,20)>1 AND 买入信号2=1 AND C>O OR CROSS(BB,DD); DRAWICON(CROSS(短波,HZ2),中波,1);X1:=CROSS(主线,MA90) AND 大盘线<36 AND J>K AND 强势线>REF(强势线,1) AND 中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 ANDHZ4-REF(HZ4,1)>0.028;X2:=CROSS(主线,MA120) AND 大盘线<36 AND J>K AND 强势线>REF(强势线,1) AND中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 ANDHZ4-REF(HZ4,1)>0.028;X3:=CROSS(MA120,均线148天) AND 大盘线<36 AND J>K AND 强势线>REF(强势线,1) AND中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 ANDHZ4-REF(HZ4,1)>0.028;X4:=CROSS(中势线,33) AND 短波>HZ2 AND O>REF(O,1) AND C>REF(C,1) AND J>D ANDJ<65 AND 大盘线<36 AND 强势线>36 AND 主线>REF(主线,1)AND 强势线>REF(强势线,1) AND 中势线>REF(中势线,1) AND 中势线<70 AND C>O ANDMA34>REF(MA34,1) AND 短波-REF(短波,1)>0.088 AND HZ4-REF(HZ4,1)>0.028; X5:=CROSS(短波,HZ2) AND 大盘线<36 AND 短波>中波 AND 中波>HZ4 AND短波-REF(短波,1)>0.088 AND HZ4-REF(HZ4,1)>0.028;X6:=J>K AND 大盘线<36 AND 短波>HZ2 AND CROSS(强势线,36);X7:=CROSS(短波,HZ2) AND CROSS(强势线,36);X8:=CROSS(J,K) AND CROSS(强势线,33);X9:=CROSS(短波,HZ2) AND CROSS(强势线,54);X10:=CROSS(J,K) AND 大盘线<36 AND J<65 AND C>O AND 短波-REF(短波,1)>0.088;X11:=CROSS(J,K) AND 短波>HZ2 AND J<68 AND 短波>REF(短波,1) ANDHZ2>REF(HZ2,1)AND 中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088;X12:=CROSS(J,K) AND 大盘线<36 AND J<68 AND 短波-REF(短波,1)>0.088;X13:=CROSS(J,K) AND CROSS(短波,HZ2) AND 大盘线<36;X14:=CROSS(短波,HZ2) AND 大盘线<36 AND J>K AND J<68 AND 强势线>REF(强势线,1) AND中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088;X15:=CROSS(短波,HZ2) AND 中波>MA120 AND 中波>均线148天 AND HZ2>MA120 ANDMA120>均线148天 AND 短波-REF(短波,1)>0.088;X16:=CROSS(J,K) AND 强势线>54 AND 强势线>REF(强势线,1) AND J<68;X17:=COUNT(背离,20)>1 AND 短波>HZ2 AND O>REF(O,1) AND C>REF(C,1) AND J>D ANDJ<65 AND 买入信号2=1 AND 主线>REF(主线,1)AND 中势线>REF(中势线,1) AND 中势线<70 AND C>O;X18:=CROSS(BB,DD) AND J<74 AND MA34>REF(MA34,1) AND 短波-REF(短波,1)>0.088;X19:=大盘线<36 AND J>D AND J<65 AND C>O AND 短波>REF(短波,1) AND CROSS(HZ2,中波)AND 短波-REF(短波,1)>0.088 AND O>REF(C,1);X20:=C>O AND 短波>REF(短波,1) AND J>D AND J<65 AND 大盘线<36 AND CROSS(中势线,33) AND 中势线-REF(中势线,1)>0.23 AND 短波-REF(短波,1)>0.088 AND O>REF(C,1) AND 强势线>12;X21:=短波>HZ2 AND 中波>HZ4 AND 大盘线<36 AND CROSS(J,K) AND J<65 AND 短波-REF(短波,1)>0.088;X22:=短波>HZ2 AND 大盘线<36 AND CROSS(J,K) AND J<65 AND 短波-REF(短波,1)>0.088;X23:=CROSS(J,K) AND CROSS(短波,HZ2) AND 大盘线<36 AND J<56;X24:=短波>HZ2 AND 中波>HZ4 AND 大盘线<36 AND J>D AND J<65 AND CROSS(HZ4,年线) AND 短波-REF(短波,1)>0.088;X25:=短波>HZ2 AND HZ2>HZ4 AND 大盘线<36 AND J>D AND J<65 AND J<65 AND CROSS(强势线,46) AND 短波-REF(短波,1)>0.088;X26:=短波>HZ2 AND 大盘线<36 AND J>D AND J<65 AND CROSS(中势线,36) AND 短波-REF(短波,1)>0.088;DRAWTEXT(X1 OR X2 OR X3 OR X4 OR X5 OR X6 OR X7 OR X8 OR X9 OR X10 OR X11 ORX12 OR X13 OR X14 OR X15 OR X16 OR X17 OR X18 OR X19 OR X20 OR X21 OR X22 ORX23 OR X24 OR X25 OR X26,HZ2-0.18,'!追'),COLORWHITE;{好} DRAWTEXT(CROSS(短波,HZ2) AND C>O AND J>K AND J>D AND 大盘线<36 AND C>HZ4,L*1.09,'●'),COLORYELLOW;DRAWTEXT(CROSS(短波,HZ2) AND C>O AND J>K AND J>D AND 大盘线<36 AND C>HZ4,L*1.12,'做趋势'), COLORYELLOW;DRAWTEXT(CROSS(短波,HZ2),C,'♂');DRAWTEXT(CROSS ( 中波,HZ4),C,'♂');DRAWTEXT(CROSS ( 中波,MA120),C,'♂');DRAWTEXT(CROSS (HZ4,MA120),C,'♂');【通达信】超好主图(主线、股价重心、中短波)-指标公式效果图(文档来源:若水财经社区)。
通达信 自用 分享 【卖股提示】主图指标
通达信自用主图分享【卖股提示】主图指标自用主图分享【卖股提示】(指标主图通达信贴图)你需要做的就是选出一只股按照主图的提示买卖,可做波段、可抄底。
上升线:EMA(C,3),COLORRED,LINETHICK2;下降线:EMA(C,5),COLOR00FF00,LINETHICK2;中间线:EMA(下降线,5),COLORWHITE,LINETHICK2;VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;VAR2:=REF(VAR1,1);VAR3:=SMA((CLOSE-VAR2),6,1)/SMA(ABS(CLOSE-VAR2),6,1)*100;VAR4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,5);VAR6:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VAR4>=VAR5 AND VAR4<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0);VAR7:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;VAR8:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;VAR9:=IF(COUNT(VAR8<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);DRAWICON(FILTER(REF(VAR3,1)>81 AND VAR3<80 OR CROSS(82,VAR7),5),HIGH,2); DRAWTEXT(FILTER(REF(VAR3,1)>81 AND VAR3<80 OR CROSS(82,VAR7),5),HIGH,'快卖'),COLORYELLOW;DRAWTEXT(FILTER(VAR9 OR VAR6,5),LOW,'注意买入'),COLORGREEN;DRAWICON(FILTER(CROSS(上升线,下降线)AND 中间线>=REF(中间线,1)ANDVAR3<50,5),上升线,1);。
通达信波段指标公式
通达信波段指标公式一、KDJ指标:1.K值=(2*移动平均线(n日内最高价+最低价之和)/3-最低价)/(最高价-最低价)×1002.D值=移动平均线(K值)3.J值=3*K值-2*D值二、MACD指标:1、DIF=短期EMA(12)-长期EMA(26)2、DEA=移动平均线(DIF)3、BAR=(DIF-DEA)*2三、RSI指标:1、RSI=100*(n日内上涨点数的总和/n日内上涨及下跌点数之和)2、RSI=100*(n日内上涨点数的总和/n日内上涨点数的总和+n日内下跌点数的总和)四、CCI指标:1、中心线=(n日内最高价+n日内最低价+收盘价之和)/32、偏差平均值=(n日内(最高价-中心线)+n日内(最低价-中心线)+n日内(收盘价-中心线))/n3、CCI=(收盘价-中心线)/偏差平均值/0.015五、OBV指标:1、OBV=前一日的OBV+(当日的收盘价-前一日的收盘价)*成交量2、OBV=前一日的OBV-(前一日的收盘价-当日的收盘价)*成交量六、多空对比指标:1、多空对比指标=(近n日内多头持仓量/近n日内多头持仓量+空头持仓量)×1002、多空对比指标=(今天多头持仓量/今天多头持仓量+昨天空头持仓量)×100七、能量潮指标:1、能量潮=(今日收盘价-过去20日最低价之差)/(过去20日最高价-过去20日最低价之差)×1002、能量潮=(今日最高价-过去20日最低价之差)/(过去20日最高价-过去20日最低价之差)×100八、随机指标:1、K值=50*(当日最高价-当日开盘价)/(当日最高价-当日最低价)+50*(当日最低价-当日开盘价)/(当日最高价-当日最低价)2、D值=移动平均线(K值)3、J值=3*K值-2*D值。
通达信指标公式源码 牛股主图指标
价量:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);主力活跃力度:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25);快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25);RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K1:=SMA(RSV,3,1);D1:=SMA(K1,3,1);KK:=INTPART(K1);DD:=INTPART(D1);TFXXS:=KK+DD;TGLXS:=(TFXXS-REF(TFXXS,1));主力筹码:=EMA(WINNER(CLOSE)*70,3);散户筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);金叉疯牛:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24)) /4,2);界:=MA(CLOSE,27);持股时段:IF((金叉疯牛>界)AND(散户筹码<主力筹码)AND((主力活跃力度>50)OR(主力活跃力度>REF(主力活跃力度,1))),-40,0),COLORRED,NODRAW;ZLCM:=EMA(WINNER(CLOSE)*70,3);{//主力筹码估算}SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);{//小筹码估算}ZSHTL:=SHCM/(ZLCM+SHCM)*100;{//小股民套牢筹码比率}ZZLKP:=ZLCM/(ZLCM+SHCM)*100;{//主力控盘筹码比}ZCMZL:=MA(ZLCM+SHCM,13);{//市场筹码总量}ZZNTS:=BARSLAST(ZSHTL<90 AND REF(ZSHTL,1)>90);{//走牛天数}ZSHJJ:=EMA(ZSHTL,89);{//小股民警戒}ZZLJJ:=EMA(ZZLKP,89);{//主力警戒}ZJLRQD:=INTPART(ZZLKP-ZZLJJ);{//资金流入强度}BB:=MA(C,1);持币阶段:SMA(SMA(SMA(BB,2,1),2,1),2,1);主升持股波段:=HHV(MA(持币阶段,1),13);SH8:=EMA(ZSHTL,8);DKB:=IF(ZZLKP-REF(ZZLKP,1)>ZSHTL-REF(ZSHTL,1),1,0);牛股出现预警:=WINNER(C/1.10)*100,COLOR00FFFF,NODRAW;主力赢利25持仓:=WINNER(C/1.25)*100,COLORFF00FF,NODRAW;散户套牢筹码:=散户筹码/(主力筹码+散户筹码)*100;主升浪波段:=主力筹码/(主力筹码+散户筹码)*100,COLORFF6100,NODRAW; 主力主导行情:=EMA(主升浪波段,55),NODRAW,COLORFF00FF;M:=60;N:=30;SHX:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)) COLORGRAY;庄家主力线:=50-SMA(SMA(SMA(SHX,2,1),2,1),2,1)/2,COLOR00FFFF,LINETHICK2;散户持股线:=50-HHV(MA(庄家主力线,1),13)/2,COLORFF00FF,LINETHICK4; 跌幅:=(REF(C,1)-C)/REF(C,1)*100;涨幅:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,POINTDOT,COLOR009900,LI NETHICK0;ER:=V/FINANCE(7)*100;A0:=TMA(ER,(1-ER),1);MAXCYC:=DMA((C+O)/2,ER/TMA(ER,(1-ER),1));T1:=BARSLAST(C>MAXCYC*POW(1.1,0.9));T2:=BARSLAST(C<MAXCYC*POW(1.1,-0.9));T3:=CROSS(T1,T2) OR CROSS(T2,T1) OR BARSSINCE(T1+1)=0 OR BARSSINCE(T2+1)=0 OR BARSCOUNT(C)=0;T4:=REF(MAXCYC,BARSLAST(T3));HZ:=HHV((H+L)/2,120);AA:=(2*C+H+L)/4;VAR1:=IF(DATE=10301201,0,1);VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);VAR3:=EMA(CLOSE,3);VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1;VAR5:=VAR2-VAR3;VAR6:=CLOSE*VOL;VAR7:=EMA((EMA(VAR6,3)/EMA(VOL,3)+EMA(VAR6,6)/EMA(VOL,6)+EMA(VA R6,12)/EMA(VOL,12)+EMA(VAR6,24)/EMA(VOL,24))/4,13);VAR8:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;VAR9:=(CLOSE+OPEN)/2;MA5:=MA(CLOSE,5);VAR11:=3*SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,5,1)-2*SMA(SMA((C-LLV(L,480))/(HHV(H,480)-LLV(L,480))*100,180,1),15,1);超级主升:=EMA(VAR11,5);主升1:=超级主升-100;D8:=EMA(C,5);D2:=(EMA(C,1)+EMA(C,5)+EMA(C,10)+EMA(C,15)+EMA(C,20)+EMA(C,25)+ EMA(C,30)+EMA(C,35)+EMA(C,40)+EMA(C,45)+EMA(C,50)+EMA(C,55)+EMA(C,60)+EMA(C,65)+EMA(C,70)+EMA(C,75)+EMA (C,80)+EMA(C,85)+EMA(C,90)+EMA(C,95)+EMA(C,100)+EMA(C,105)+EMA(C,110)+EMA(C,115)+EMA(C,120)+EMA(C,12 5)+EMA(C,130)+EMA(C,135)+EMA(C,140)+EMA(C,150))/30;DDE:=(D8/D2)*100;主升2:=DDE-110;A:=(H+L+2*C)/4;A1:=(A-REF(A,3))/3+A;J:=EMA(HHV(A1,20),60),LINETHICK3;CB5:=EMA(COST(80),30),CIRCLEDOT;HMX:=EMA(1.4*EMA(FORCAST(A1,20),40),20),LINETHICK2;金牛线:=(J+CB5+HMX)/3,LINETHICK2;MA20:=MA(C,20);UP:=EMA(EMA(C*1.38,50),50),DOTLINE,COLOR0000FF;白色:=SMA(HIGH,21,2)*1.05;黄色:=SMA(LOW,21,2)*0.95;中线:=(白色+黄色)/2;UP1:=中线+2*STD(中线,20);UP2:=REF(UP1,0);CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(A1,20))/MA(A1,20);DT:=DMA(CLOSE,CC);通道3:=(1+9/100)*DT;通道4:=(1-7/100)*DT;界限:=(REF((金牛线+UP+EMA(UP1*1.04,40)+通道3)/4,10)+MA(C,20)*1.04)/2;AHC1:=H*VOL;AHC24:=EMA((EXPMA(AHC1,180)/EXPMA(VOL,180)+EXPMA(AHC1,360)/EXPMA(VOL,360)+EXPMA(AHC1,720)/EXPMA(VOL,720)+EXPMA(AHC1,1440)/EXP MA(VOL,1440))/4,34);C上X:=1.06*AHC24;C下X:=AHC24*0.94;AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(V OL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL ,316))/4,34);上X:=1.06*AHC22;下X:=AHC22*0.94;AHC23:=EMA((EXPMA(AHC1,5)/EXPMA(VOL,5)+EXPMA(AHC1,10)/EXPMA(VO L,10)+EXPMA(AHC1,20)/EXPMA(VOL,20)+EXPMA(AHC1,40)/EXPMA(VOL,40))/ 4,34);D上X:=1.06*AHC23;D下X:=AHC23*0.94;T:=(C上X+D上X+上X)/3*1.05;主升3:=(MA5*2/(界限+T)-1)*100;CBX80:=MA(COST(80),20);主升4:=(MA5/CBX80-1)*100;FT:=((HHV(H,42)-LLV(L,42)))/2+LLV(L,42);FT1:=ABS(HHV(H,40)-LLV(L,40)-LLV(L,40))+FT*0.5;主升5:=(FT/FT1-1)*100;P:=EMA(EMA(C*1.14,55),20);主升6:=(MA5/P-1)*100;金K线:=(EMA(HHV(H,60),60)+EMA(FT,453)*1.62)/2;主升7:=(MA5/金K线-1)*100;超牛拉升:=(主升1+主升2+主升3+主升4+主升5+主升6+主升7)/2,LINETHICK2;SMA2:=MA(持币阶段,3);V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,21);V3:=EMA(V2,5);V4:=2*(V2-V3)*100,COLORRED,LINETHICK2;筹码进:=IF(V4>=0,V4,0);VARAA:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR21:=SMA(ABS(HIGH-VARAA),13,1)/SMA(MIN(HIGH-VAR1,0),10,1); VAR31:=EMA(VAR21,10);VAR41:=HHV(HIGH,33);VAR51:=EMA(IF(HIGH>=VAR41,VAR31,0),3);主力抬轿:=IF(VAR51<REF(VAR51,1)AND(涨幅>0)AND(筹码进>150)AND(持股时段<-18)AND(跌幅<3),筹码进,0),COLORRED,NODRAW;上轨:=EMA(VAR8*1.15,15),COLORRED,LINETHICK1;黄线:=(EMA(VAR9,3)+EMA(VAR9,6)+EMA(VAR9,12)+EMA(VAR9,24))/4,COLOR YELLOW,LINETHICK1;HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*RE F(H,5)+14*REF(H,6)+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8* REF(H,12)+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*R EF(H,18)+REF(H,20))/210,COLORBLUE,LINETHICK1;LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L, 5)+14*REF(L,6)+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*RE F(L,12)+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF (L,18)+REF(L,20))/210,COLORBLUE,LINETHICK1;VAR80:=3*SMA((C-LLV(L,180))/(HHV(H,180)-LLV(L,180))*100,5,1)-2*SMA(S MA((C-LLV(L,180))/(HHV(H,180)-LLV(L,180))*100,180,1),15,1);疯牛潜力股:=EMA(VAR80,5), NODRAW,COLOR6600FF;牛熊分道:EMA(HH,90),COLORYELLOW,LINETHICK2;下:=牛熊分道-((C-牛熊分道)*C-牛熊分道)/牛熊分道*1.68,LINETHICK3,COLORRED;下轨:=MA(下,14),COLORGREEN,LINETHICK2;IF(持股时段<-28 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(持股时段<-28 AND 疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股<=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORGREEN,LINETHICK6;IF(上轨>=下轨AND 下轨>REF(下轨,1),下轨,DRAWNULL),COLORGREEN,LINETHICK6;IF(持股时段<-28 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;IF(持股时段=0 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK6;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1) AND 牛熊分道>=下轨,上轨,DRAWNULL),COLORFF00FF,LINETHICK4;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORFF00FF,LINETHICK4;IF(COUNT(C>上轨,5)>=2 AND 上轨>=牛熊分道AND 疯牛潜力股>REF(疯牛潜力股,1) AND 涨幅>0.5,上轨,DRAWNULL),COLOR0000FF,LINETHICK4;不参与阶段:IF(上轨<下轨,上轨,上轨),COLORGREEN,LINETHICK2;分道关注:IF(上轨>=下轨AND 牛熊分道<下轨AND 下轨<REF(下轨,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK2;IF(上轨>=下轨AND 牛熊分道<下轨AND 下轨<REF(下轨,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK2;行情主升浪:IF(持股时段<-28 AND 疯牛潜力股>50 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(持股时段<-28 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(持股时段<-28 AND 疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股<=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORGREEN,LINETHICK2;IF(上轨>=下轨AND 下轨>REF(下轨,1),下轨,DRAWNULL),COLORGREEN,LINETHICK2;IF(持股时段<-28 AND BARSCOUNT(C)<250 AND 上轨>=下轨AND 牛熊分道>=下轨AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK2;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1) AND 牛熊分道>=下轨,上轨,DRAWNULL),COLORFF00FF,LINETHICK2;IF(疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORFF00FF,LINETHICK2;超级疯牛分界:IF(持股时段<-28 AND 疯牛潜力股>50 AND 上轨>=下轨AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLORRED,LINETHICK2; IF(COUNT(C>上轨,5)>=2 AND 上轨>=牛熊分道AND 疯牛潜力股>REF(疯牛潜力股,1) AND 涨幅>0.5,上轨,DRAWNULL),COLORRED,LINETHICK2;开口选股:=BARSLASTCOUNT(上轨>下轨)=1,NODRAW;DRAWICON(开口选股,MIN(下轨,上轨)*1.08,26);DRAWTEXT(开口选股,LOW,71),COLORYELLOW;DRAWTEXT(开口选股,上轨*1.13,'开始关注'),COLORRED;变盘加速上扬:=CROSS(牛熊分道,下轨);DRAWICON(变盘加速上扬,LOW*0.9,25);{重仓介入}重仓目标:=FILTER((COUNT(变盘加速上扬,5)=1),15),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.88,0.5,0),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.86,2,0),COLORFF0080,LINETHICK2;STICKLINE(重仓目标>0.8,牛熊分道*0.8,牛熊分道*0.84,4,0),COLORFF00FF,LINETHICK2;DRAWTEXT(重仓目标>0.8,牛熊分道*0.76,'重点目标'),COLORRED;超强自选:=(CROSS(CLOSE,下轨) AND CROSS(CLOSE,超级疯牛分界) AND COUNT(上轨>下轨,2)=1 AND REF(下轨,2)>REF(上轨,2));STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.88,0.5,0),COLORFFFF00,LINETHICK2;STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.86,2,0),COLORFF0080,LINETHICK2;STICKLINE(重仓目标>0.8 OR 超强自选,牛熊分道*0.8,牛熊分道*0.84,4,0),COLORFF00FF,LINETHICK2;DRAWTEXT(重仓目标>0.8 OR 超强自选,牛熊分道*1.05,'重点目标'),COLORRED;VARA:=SMA(AMOUNT,10,1)/1000000;VARB:=REF(VARA,1);VARC:=MA(REF(CLOSE,1),5);最高:=VARA*HIGH/VARC*1/10,POINTDOT,COLOR009900,COLORGRAY;最低:=VARA*LOW/VARC*1/10,POINTDOT,COLOR009900,COLORYELLOW; 开盘:=VARA*OPEN/VARC*1/10,POINTDOT,COLOR009900,COLORMAGENTA; 收盘:=VARA*CLOSE/VARC*1/10,COLOR009900,COLORGREEN,POINTDOT; 涨跌:=(收盘-REF(收盘,1))/REF(收盘,1)*100,POINTDOT,COLOR009900,LINETHICK0;STICKLINE((CLOSE>下轨AND 涨跌>15 AND CLOSE<上轨AND OPEN<上轨AND 下轨<牛熊分道),CLOSE,OPEN,3,0),COLORYELLOW;{超强突破}自选:=IF((CROSS(CLOSE,上轨) AND 下轨<=牛熊分道),18,0),COLORRED,LINETHICK2;重点自选:=FILTER((自选>8),20),COLORRED,LINETHICK2;STICKLINE(重点自选,CLOSE*1.1,CLOSE*1.15,0.5,0),COLORRED; DRAWICON(重点自选,CLOSE*1.06,12),COLORRED;DRAWTEXT(重点自选,CLOSE*1.2,'快马加鞭'),COLORRED;STICKLINE((涨跌>20 AND CLOSE>上轨),OPEN+(CLOSE-OPEN),OPEN,3,0),COLORRED;STICKLINE((涨幅>5 AND 涨跌>0 AND 涨跌<20 AND CLOSE>上轨AND OPEN<上轨),CLOSE,OPEN,3,0),COLORRED;STICKLINE((涨幅>5 AND 涨跌>0 AND 涨跌<20 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)*2/3,OPEN,3,0),COLORBLUE; STICKLINE((涨跌>40 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORYELLOW; STICKLINE((涨跌>20 AND CLOSE>上轨AND OPEN<上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORBLUE; STICKLINE((涨跌>10 AND CLOSE>上轨AND OPEN>上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORYELLOW; DRAWICON(变盘加速上扬,LOW*0.9,25);{大胆博}MB5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);FA:=BARSLAST(CROSS(MA10,MB5)) AND CROSS(MB5,MA10);FB:=FA AND MB5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1); DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;V11:=EMA(CLOSE,5);V22:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V11,V22),V11+0.05,'牛起步'),COLOR00FF00;VAR11A:=LLV(LOW,21);VAR22A:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR11A) / (VAR22A - VAR11A)) * 100),5);AK:=EMA((((CLOSE - VAR11A) / (VAR22A - VAR11A)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF;DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;VAR6A:=REF(C,1);VAR7A:=SMA(MAX(C-VAR6A,0),6,1)/SMA(ABS(C-VAR6A),6,1)*100; DRAWTEXT(CROSS(82,VAR7A),H*1.01,'逃顶')COLORYELLOW;。
通达信最牛最全主图指标公式
通达信最牛最全主图指标公式MA5:MA(C,5);MA6:=MA(C,6);MA10:MA(C,10);MA20:MA(C,20);A2:=REF(MA20,1);J1:=(MA20-A2)/A2*100;MJ1:=MA(J1,3);MA30:MA(C,30);MA60:MA(C,60);MA120:MA(C,120);乖离2:=(MA20-MA30)/MA30*100;VAR1:=IF(BETWEEN(乖离2,-2,5),2,0);MAX1:=MAX(MA20,MA30);MAX2:=MAX(MAX1,MA60);MIN11:=MIN(MA20,MA30);MIN2:=MIN(MIN11,MA60);K1:=(MAX2/MIN2-1)*100;{粘合度符合条件}VAR2:=IF(K1《=8,1,0);上火车轨:=MA20》MA30 AND MA20》REF(MA20,1)AND MA30》REF(MA30,1)AND MA20-MA30》REF ((MA20-MA30),1) ;STICKLINE(上火车轨,MA20,MA30,0,0),COLORRED;神枪手:=DRAWTEXT(FILTER(上火车轨AND “MACD.DIF”《0.15 AND “MACD.DIF”》REF(“MACD.DIF”,1) AND MA (V,60)》REF(MA(V,60),1) AND MA(V,5)》MA(V,10) AND J1》REF(J1,1) AND(L《=MA20 AND C》MA20 OR (CROSS(MA5,MA20))),5),L*0.98,'←神枪手’);神枪手选股:=FILTER(上火车轨AND “MACD.DIF”《0.15AND “MACD.DIF”》REF(“MACD.DIF”,1)AND MA(V,60)》REF(MA(V,60),1)AND MA(V,5)》MA(V,10)AND J1》REF(J1,1) AND(L《=MA20 AND C》MA20 OR (CROSS(MA5,MA20))),5);{44.40%15240}短线暴张:DRAWTEXT(FILTER((VAR1 OR VAR2)AND MA10》REF(MA10,1)AND COUNT(MA30》REF(MA30,1),3)=3 AND MA30》MA60 AND COUNT(CROSS(MA5,MA30),3) AND J1》MJ1 AND MA(V,5)》MA(V,60)AND MA(V,60)》REF(MA(V,60),1),5),MA60*0.99,'短线暴张’),COLORRED;DRAWTEXT(CROSS(“KDJ.K”(5,2,3),“KDJ.D”(5,2,3))AND “KDJ.D”(5,2,3)《30 AND J1》MJ1 AND MA60》REF(MA60,1)AND COUNT(J1《1,3)》=1 ,L*0.995,'←买入’),COLORYELLOW;DRAWTEXT(CROSS(“KDJ.D”(5,2,3),“KDJ.K”(5,2,3))AND “KDJ.D”(5,2,3)》65 AND J1《MJ1 AND COUNT(J1》1,3)》=1,H*1.005,'←卖出’),COLORGREEN;DRAWTEXT(CROSS(“KDJ.D”(18,9,6),“KDJ.K”(18,9,6))AND “KDJ.D”(18,9,6)》60 AND “KDJ.J”(45,15,15)》90,H*1.03,'←顶’),COLORRED;DRAWTEXT(CROSS(MA5,MA6)AND “KDJ.K”(5,3,3)》=50 AND “KDJ.J”(5,3,3)《31 ,L*0.92,'←再买’),COLORMAGENTA;XL1:=((LLV(LOW,3)= LLV(LOW,60))AND ((CLOSE / REF(CLOSE,1))》= 1.04));XL2:=(((CLOSE - EMA(CLOSE,21)) / EMA(CLOSE,21)) * 100);XL3:=CROSS(XL2,(0 - 20));DRAWTEXT(FILTER(((XL1 》0)AND LOW),5),(LOW - 0.4),'●买点’);DRAWTEXT((XL3 》 0),(LOW - 0.2),'●绝对底部’);X6:=REF(CLOSE,1);X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA (ABS((CLOSE - X6)),7,1)) * 100);X8:=CROSS(79,X7);X9:=FILTER(X8,4);DRAWTEXT(X9,(HIGH * 1.02),'●出货’),COLOR9000F5;STICKLINE(C》1.098*REF(C,1),C,O,0,0),COLORYELLOW;AAA:=CONST(HHV(H,90));R1:=MA(CLOSE,1);R2:=MA(CLOSE,3);R3:=(MA(R2,1)*1);R4:=(MA(R2,3)*1);DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'进’),COLORYELLOW;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(88,RSI),(HIGH * 1.02),'出’),COLORGREEN;VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV (HIGH,34)-LLV(LOW,34)),5)-20;VAR12:=(HIGH+LOW+CLOSE)/3;VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV (VAR12,70));VAR15:=IF(VAR13》=150 AND VAR13《200 AND VAR14》=150 AND VAR14《200,10,0);VAR16:=IF(VAR13《=-150 AND VAR13》-200 AND VAR14《=-150 AND VAR14》-200,-10,VAR15);VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;VAR18:=100-ABS(VAR17);VAR19:=IF(VAR18《90,VAR18,100);VAR1A:=IF(VARE》0,VARE,0);VAR1B:=IF(VAR14》=200 AND VAR13》=150,15,IF (VAR14《=-200 AND VAR13《=-150,-15,VAR16))+60;VAR1C:=VAR1A》48 AND VAR1B》60 AND VAR19《100;DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.02,'大笔出货’),LINETHICK1,COLORFFCC66;AA1:=AMOUNT/V;BB1:=L《AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100》1.2;DD1:=L《MA(C,5)*0.921;EE1:=V《MA(V,5)*1.5;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0;DRAWTEXT(老鼠仓,(LOW* 0.99),'老鼠仓’),COLOR40CCFF;A74:=MA(CLOSE,20);A75:=(CLOSE 》 MA(CLOSE,5));A76:=(MA(CLOSE,5)》 MA(CLOSE,10));A77:=(CLOSE 》 MA(CLOSE,10));A78:=(MA(CLOSE,5)》 MA(CLOSE,20));A79:=(CLOSE 》 MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 》 A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10)))+ IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10)))+ IF(A711,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T1:=CONST(IF(C《200 AND ((CROSS(AVX,1) AND (V1 》= V2)) AND (DSLX 》= DSLX1)),1,0));T2:=CONST(IF(C《200 AND ((CROSS(AVX,1) AND (V1 《 V2)) AND (DSLX 》= DSLX1)),1,0));T3:=CONST(IF(C《200 AND ((CROSS(AVX,1) AND (V1 》 V2)) AND (DSLX 《 DSLX1)),1,0));T4:=CONST(IF(C《200 AND ((CROSS(AVX,1) AND (V1 《= V2)) AND (DSLX 《 DSLX1)),1,0));T5:=CONST(IF(C《200 AND ((CROSS(1,AVX) AND (V1 》= V2)) AND (DSLX 》= DSLX1)),1,0));T6:=CONST(IF(C《200 AND ((CROSS(1,AVX) AND (V1 《 V2)) AND (DSLX 》= DSLX1)),1,0));T7:=CONST(IF(C《200 AND ((CROSS(1,AVX) AND (V1 》= V2)) AND (DSLX 《 DSLX1)),1,0));T8:=CONST(IF(C《200 AND ((CROSS(1,AVX) AND (V1 《 V2)) AND (DSLX 《 DSLX1)),1,0));T9:=CONST(IF(C《200 AND ((((AVX 》= 1)AND (REF(AVX,1)》 0)) AND (V1 》= V2)) AND (DSLX 》= DSLX1)),1,0));T10:=CONST(IF(C《200 AND ((((AVX 》= 1) AND (REF(AVX,1)》 0)) AND (V1 《 V2)) AND (DSLX 》= DSLX1)),1,0));T11:=CONST(IF(C《200 AND ((((AVX 》= 1) AND (REF(AVX,1)》0))AND (V1 》= V2))AND (DSLX 《 DSLX1)),1,0));T12:=CONST(IF(C《200 AND ((((AVX 》= 1) AND (REF(AVX,1)》0))AND (V1 《V2))AND (DSLX 《 DSLX1)),1,0));T13:=CONST(IF(C《200 AND ((((AVX 《1)AND (REF(AVX,1)《 0)) AND (V1 》= V2)) AND (DSLX 》= DSLX1)),1,0));T14:=CONST(IF( C《200 AND ((((AVX 《 1) AND (REF(AVX,1)《 0)) AND (V1 《 V2)) AND (DSLX 》= DSLX1)),1,0));T15:=CONST(IF(C《200 AND ((((AVX 《1)AND (REF(AVX,1)《0))AND (V1 》= V2))AND (DSLX 《 DSLX1)),1,0));T16:=CONST(IF(C《200 AND ((((AVX 《1)AND (REF(AVX,1)《0))AND (V1 《V2))AND (DSLX 《 DSLX1)),1,0));T17:=CONST(IF(C》200 AND (CROSS(AVX,1) AND (V1 》= V2)),1,0));T18:=CONST(IF(C》200 AND (CROSS(AVX,1) AND (V1 》= V2)),1,0));T19:=CONST(IF(C》200 AND (CROSS(AVX,1) AND (V1 《 V2)),1,0));T20:=CONST(IF(C》200 AND (CROSS(1,AVX) AND (V1 》= V2)),1,0));T21:=CONST(IF(C》200 AND (CROSS(1,AVX) AND (V1 《 V2)),1,0));T22:=CONST(IF(C》200 AND (((AVX 》= 1)AND (REF(AVX,1)》 0)) AND (V1 》= V2)),1,0));T23:=CONST(IF(C》200 AND (((AVX 》= 1)AND (REF(AVX,1)》 0)) AND (V1 《 V2)),1,0));T24:=CONST(IF(C》200 AND (((AVX 《1)AND (REF(AVX,1)《 0)) AND (V1 》= V2)),1,0));T25:=CONST(IF(C》200 AND (((AVX 《1)AND (REF(AVX,1)《 0)) AND (V1 《 V2)),1,0));DRAWTEXT(T1=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量能理想,明显走强,中线参与,仓位在2/3左右’),COLORFF00FF ;DRAWTEXT(T2=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'走势趋强,还显不足,短线进场,仓位在1/2左右’),COLORFF00FF ;DRAWTEXT(T3=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'量价良好,没有明显走强,短线进场,仓位1/2左右’),COLORFF00FF ;DRAWTEXT(T4=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右’),COLORFF00FF ;DRAWTEXT(T5=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'形态变坏,重仓者减持大半,清仓者观望’),COLORFF00FF ;,'随大盘一起下跌,明显缩量走势,考虑到风险,减持或清仓’),COLORFF00FF ;DRAWTEXT(T7=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股放量下跌,走势明显偏弱,离场观望’),COLORFF00FF ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=70,AAA-(AAA*0.03),'该股缩量下跌,走势偏弱,离场观望。
通达信指标公式源码 主力趋势 中线主图
{开始---主力趋势指标}MTM:=C-REF(C,1);主力做多:=100*EMA(EMA(MTM,9),9)/EMA(EMA(ABS(MTM),9),9),COLORWHITE; 多空趋势线:=MA(主力做多,5),COLORYELLOW;能量:=(主力做多-0)*1,COLORBLACK;持仓:=能量, COLORSTICK;{结束}VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) -LLV(LOW,14))));VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) -LLV(LOW,14))));VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));DIR1:=ABS(CLOSE-REF(CLOSE,5));VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);ER1:=DIR1/VIR1;CS1:=ER1*(0.8-2/8)+2/8;CQ1:=CS1*CS1;基线:EMA(DMA(CLOSE,CQ1),2) ,COLORWHITE;DIR2:=ABS(CLOSE-REF(CLOSE,10));VIR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);ER2:=DIR2/VIR2;CS2:=ER2*(0.8-2/24)+2/24;CQ2:=CS2*CS2;观望:EMA(DMA(CLOSE,CQ2),2),COLORGREEN,LINETHICK2;高抛低吸:IF(观望/REF(观望,1)>0.997,观望,DRAWNULL),COLORYELLOW,LINETHICK2;持股:IF(观望/REF(观望,1)>1.001,观望,DRAWNULL),COLORRED,LINETHICK2; STICKLINE((VAR2 < MA(VAR3,6)) AND 主力做多>0,CLOSE,OPEN,3,1),COLOR008000;STICKLINE((VAR2 > MA(VAR3,6)) AND 主力做多>0,OPEN,CLOSE,3,1),COLORRED;STICKLINE(((OPEN > CLOSE) AND (VAR2 > MA(VAR3,6)) AND 主力做多>0),(OPEN * 0.998),(CLOSE * 1.0001),2.3,0),COLOR008000; STICKLINE(((OPEN < CLOSE) AND (VAR2 < MA(VAR3,6)) AND 主力做多>0),(CLOSE * 0.998),(OPEN * 1.002),2.3,0),COLORRED;STICKLINE(((OPEN > CLOSE) AND (VAR2 < MA(VAR3,6)) AND 主力做多>0),CLOSE,OPEN,2.3,0),COLORCYAN;{主图赋值结束}PT:=REF(H,1)-REF(L,1);CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;AH:=CDP+PT;AL:=CDP-PT;NH:=CDP*2-REF(L,1);NL:=CDP*2-REF(H,1);强:=IF(AH>REF(C,1)*1.1 ,REF(C,1)*1.1,AH),COLORMAGENTA;阻:=IF(NH>强,(强-CDP)*0.618+CDP ,NH),COLORCYAN;M:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1,AL);撑:=IF(NL<M,CDP-(CDP-M)*0.618 ,NL),COLORRED;底:=IF(AL<REF(C,1)/1.1,REF(C,1)/1.1 ,AL),COLORGREEN;{开始---主散分布图指标}机构持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLO RFF00FF;指数趋势:=EMA(1250*(INDEXC-LLV(INDEXL,34))/HHV(INDEXH,34)-LLV(INDEXL,34) ,3),COLORYELLOW,NODRAW;主力:=WINNER(C)*100,COLORRED;散户:= (WINNER(C*1.1)-WINNER(C*0.9))*100,COLORGREEN;强势:=(机构持仓+主力+散户)/2,COLORFF6699;强弱分界:=80,COLOR00FFFF;{结束}{开始----资金动向指标}PJJ:=DMA((H + L + C * 2) / 4,0.9);JJ:=REF(EMA(PJJ,3),1);QJJ:=VOL / ((H - L) * 2 - ABS(C - O));XVL:=IF(C > O,QJJ * (H - L),IF(C < O,QJJ * (H - O + (C - L)),VOL / 2)) +IF(C > O,0 - QJJ * (H - C + (O - L)),IF(C < O,0 - QJJ * (H - L),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;GJJ:=EMA(攻击流量,8);LLJX:=EMA(攻击流量,3);流量:=LLJX,COLORC875B7,NODRAW;流量基线:=GJJ,COLOR00BBBB;ZJLL:=REF(LLJX,1);QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);流量幅%:=IF(((LLJX > 0) AND (ZJLL < 0)),ABS(QZJJ),IF((((LLJX < 0) AND (ZJLL < 0)) AND (LLJX < ZJLL)),(0 - QZJJ),QZJJ))COLORWHITE,NODRAW;大单:=HSL / 1000,COLOR9B37FF,NODRAW;周流量:=SUM(LLJX,5),COLORFFBFDF,NODRAW;BB:=REF(周流量,1);ZQZJJ:=(周流量-BB)/BB*100;周幅%:=IF(周流量>0 AND BB<0,ABS(ZQZJJ),IF(周流量<0 AND BB<0 AND 周流量<BB,-ZQZJJ,ZQZJJ))COLORWHITE,NODRAW;{结束}{反转}VARZ1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-RE F(CLOSE,1))),25);VARZ2:=HIGH-REF(HIGH,1);VARZ3:=REF(LOW,1)-LOW;VARZ4:=SUM(IF(VARZ2>0 AND VARZ2>VARZ3,VARZ2,0),25);VARZ5:=SUM(IF(VARZ3>0 AND VARZ3>VARZ2,VARZ3,0),25);VARZ6:=VARZ4*100/VARZ1;VARZ7:=VARZ5*100/VARZ1;VARZ8:=MA(ABS(VARZ7-VARZ6)/(VARZ7+VARZ6)*100,15);VARZ9:=(VARZ8+REF(VARZ8,15))/2;A:=(VARZ7>VARZ6 AND VARZ7>25 AND VARZ6<25);B:=ZIG(3,50/5)*100,COLORWHITE;G:=MA(B,2),COLORYELLOW;D:=CROSS(B,G)*1000,COLORRED;W:=CROSS(G,B)*1000,COLORBLUE;E:=REF(INDEXC,1);F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1);VARZ10:=F AND F<8;VARZ11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VARZ12:=SMA(VARZ11,3,1);VARZ13:=SMA(VARZ12,3,1);VARZ14:=VARZ13 AND VARZ13<20;MM:=A AND D AND VARZ10 AND VARZ14 ;XXX:=DRAWTEXT(W=1000,B*1.05,'卖' ),COLOR00FF00;XXY:=DRAWTEXT(D=1000,B*1.05,'买'),COLORRED;底1:=STICKLINE(D=1000 AND B*1.05,0,20,2,0),COLORRED;顶1:=STICKLINE(W=1000 AND B*1.05,0,20,2,0),COLORGREEN;{反转}日线:=(MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20))/4;平均线:=MA(日线,2);{DRAWICON(CROSS(日线,平均线),平均线,1);DRAWICON(CROSS(平均线,日线),平均线,2);}{综合选股输出}顶部:=DRAWTEXT( 顶1 ,(HIGH+(HIGH*0.10)),'顶')COLORGREEN;底部:=DRAWTEXT( 底1 ,(LOW - (LOW*0.10)),'底')COLORRED;VAR11:=(2*CLOSE+HIGH+LOW)/4;VAR22:=EXPMA(EXPMA(EXPMA(VAR11,5),5),5);J:= (VAR22-REF(VAR22,1))/REF(VAR22,1)*100, COLORSTICK;多空:= MA(J,3);多头:= MA(J,1);{STICKLINE( UPNDAY(J,1)AND J>0,J ,0,1,0)COLORRED;STICKLINE( UPNDAY(J,1)AND J>0,J ,0,0.8,0)COLORLIRED;}买进:DRAWICON(CROSS(主力做多,0) ,(LOW - (LOW*0.06)),3);卖出:DRAWICON(CROSS(0,主力做多),(HIGH+ (HIGH*0.06)),4);风险:DRAWICON( DOWNNDAY(机构持仓,1) AND (CROSS(多空趋势线,主力做多) AND 主力做多>0) OR( 顶1 AND 主力做多>0),(HIGH+ (HIGH*0.06)),6);。
通达信最全指标公式源码,给大家分享实用的技术指标
通达信最全指标公式源码,给⼤家分享实⽤的技术指标源码: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,COLORRED;IF(主⼒>=REF(主⼒,1),主⼒,DRAWNULL),COLORRED,LINETHICK2;拉升提⽰主图+⼀⼿遮天副图+主⼒追踪副图。
超⽜龙头主图主图源码:展开全⽂TY:=C;TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); CC1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10); AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10);JJ:=(3*C+H+L+O)/6;VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1 AND C>REF(C,1);LJL:=FILTER(TJ1,5) AND C>O AND (C-O)/REF(C,1)>0.06;TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(HIGH,3),1,0)));TP:=TJ2=1;参考重点关注主⼒追踪副图股票实盘分析和技术分享,,坚持每⼀天给⼤家分享实盘经验,教⼤家如何在个股起爆前把握主升浪个股,让所有粉丝朋友逐步建⽴出属于⾃⼰的⼀套交易系统。
【指标公式源码下载】通达信看盘极品主图指标公式【多线】
通达信看盘极品主图指标公式【多线】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(MI D,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*R EF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,LINETHICK1,COLORY ELLOW;生命线:MA(取舍线,6),LINETHICK1,COLORRED;五日线:MA(CLOSE,5),POINTDOT,COLORLIBLUE;水平面:MA(CLOSE,60),CIRCLEDOT,COLORLIMAGENTA;MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,30);MA4:=MA(CLOSE,60);WYA001:=(2*CLOSE+HIGH+LOW)/4;WYA002:=EMA(WYA001,4);WYA003:=EMA(WYA002,4);WYA004:=EMA(WYA003,4);WYA柱:=(WYA004-REF(WYA004,1))/REF(WYA004,1)*100;WYA线1:=MA(WYA柱,2);WYA线2:=MA(WYA柱,1);WY分时1线:=MA(CLOSE,1);WY分时21线:=MA(CLOSE,21);DRAWICON(WYA线1>0.25 AND WYA线2>0.25 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON(WYA线1<0 AND WYA线2<0 AND CROSS(WYA线1,WYA线2),HIGH*1.0128,6);DRAWICON( CROSS(WY分时21线,WY分时1线),HIGH*1.0128,6) ;DRAWICON(WYA线1<-0.25 AND WYA线2<-0.25 AND CROSS(WYA线2,WYA线1),LOW*0.99,5);DRAWICON(WYA线1>0 AND WYA线2>0 AND CROSS(WYA线2,WYA线1),LOW*0.99,5),COLORYELLOW;DRAWICON(CROSS(WY分时1线,WY分时21线),LOW*0.99,5),COLORYELLOW;。
【股票指标公式下载】-【通达信】绝佳主图(趋势线、能量线)
【通达信】绝佳主图(趋势线、能量线)-指标公式源码MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-R EF((L+H+2*C)/4,1)),5,1)*100,1)+50;G1:=IF(-MMS>95,0,20);UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);AA:=-100*(趋势线-CLOSE)/趋势线;AC:=(EMA(AA,5) );SSL:=EMA(CLOSE,3);MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);MM:=MA(MMV,1);STICKLINE(((SSL>MM)),SSL,MM,0.01,0),COLORRED;SA:=(MM*0.985);SS:=(MA(CLOSE,5));DD:=(MA(CLOSE,13));GG:=(MA(CLOSE,21));捞钱手:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORFF00FF;{IF(SSL<MM,捞钱手,DRAWNULL),LINETHICK2,COLORFFFFFF;}能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));上开:=O;上收:=C;上高:=H;上低:=L;JJ:=(上开+上高+上低)/3;A:=EMA(JJ,4);智能黄金线:A,COLORYELLOW,LINETHICK1;B:=REF(A,1);STICKLINE(((SSL<MM)),捞钱手,智能黄金线,0.01,0),COLORFFFF00;VA1:=EMA(上收,8);VA2:=EMA(上收,20);DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★绝佳') ,LINETHICK2,COLORRED;DRAWTEXT(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,'★卖'); DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.97,'★买'),COLOR00FF00;选手A:=MA(上收,3);箱顶A:=MA(REF(HHV(上收,6),1),3);箱底A:=MA(REF(LLV(上收,3),1),3);T1:=MA(上收,20)>=REF(MA(上收,20),1);T2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T1;T3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;选手:=MA(上收,2);箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=SMA(VAR3,3,1);{DRAWTEXT(VAR3 >=VAR4 ,箱顶,'--中期好'),COLOR00FFFF;DRAWTEXT(VAR3<VAR4 ,箱顶,'--中期坏'),COLORF0F000;DRAWTEXT(A>B ,箱底,'--短期好'),COLOR00FFFF;DRAWTEXT(A<B ,箱底,'--短期坏'),COLORF0F000;}DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,LOW*0.96,'★'),COLORF00FF0;STICKLINE(C>=O,C,O,5,0),COLORRED;STICKLINE(C>=O,H,L,0,0),COLORYELLOW;STICKLINE(C<=O,C,O,5,0),COLORGREEN;STICKLINE(C<=O,H,L,0,0),COLORFFFF00;买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),LOW*0.95,'★跟'),COLOR00FFFF;STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;【通达信】绝佳主图(趋势线、能量线)-指标公式效果图(文档来源:若水财经社区)。
【炒股必下载的公式】通达信超赢主图指标公式
通达信超赢主图指标公式JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M3:=EMA(CLOSE,3);M8:=EMA(CLOSE,8);DRAWBAND(M3,RGB(140,70,30),M8,RGB(140,70,30));STICKLINE(A>B,A,B,5,0),COLORBLUE;STICKLINE(A<B,A,B,5,0),COLORGREEN;M13:EMA(M8,13),LINETHICK2,COLORWHITE;M55:EMA(M8,55),LINETHICK2,COLORYELLOW;VAR1:=EMA(M13,55),LINETHICK4;M81:EMA(M55,81), COLORRED,LINETHICK4;VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);VAR4:=REF(CLOSE,1);VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;VAR6:=CROSS(79,VAR5);VAR7:=FILTER(VAR6,4);A7:=(2*C+H+L)/4;VAR10:=LLV(LOW,34);VAR11:=HHV(HIGH,34);SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);JRH:=HHV(C,2);JRL:=LLV(C,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1Q:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2Q:=(REF(VAR1Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR3Q:=(REF(VAR2Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR4Q:=(REF(VAR3Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5Q:=(REF(VAR4Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR6Q:=(REF(VAR5Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR7Q:=(REF(VAR6Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR8Q:=(REF(VAR7Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9Q:=(REF(VAR8Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARAQ:=(REF(VAR9Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARBQ:=(REF(VARAQ,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARCQ:=(REF(VARBQ,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARDQ:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));VAREQ:=(REF(VARDQ,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VARFQ:=(REF(VAREQ,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR10Q:=(REF(VARFQ,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR11Q:=(REF(VAR10Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR12Q:=(REF(VAR11Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR13Q:=(REF(VAR12Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR14Q:=(REF(VAR13Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR15Q:=(REF(VAR14Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR16Q:=(REF(VAR15Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR17Q:=(REF(VAR16Q,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR18Q:=(REF(VAR17Q,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR19Q:=((REF(VARDQ OR VAREQ OR VARFQ OR VAR10Q OR VAR11Q ORVAR12Q OR VAR13Q OR VAR14Q OR VAR15Q OR VAR16Q OR VAR17Q OR VAR18Q,1)) AND VAR1Q);VAR1AQ:=((REF(VAR1Q OR VAR2Q OR VAR3Q OR VAR4Q OR VAR5Q OR VAR6Q OR VAR7Q OR VAR8Q OR VAR9Q OR VARAQ OR VARBQ OR VARCQ,1)) AND VARDQ); 红色持股:=VAR1Q OR VAR2Q OR VAR3Q OR VAR4Q OR VAR5Q OR VAR6Q OR VAR7Q OR VAR8Q OR VAR9Q OR VARAQ OR VARBQ OR VARCQ,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:=离场,COLORFF99FF,NODRAW;今离场价:=REF(离场,1)COLOR0000FF,NODRAW;青色观望:=VARDQ OR VAREQ OR VARFQ OR VAR10Q OR VAR11Q OR VAR12Q OR VAR13Q OR VAR14Q OR VAR15Q OR VAR16Q OR VAR17Q OR VAR18Q,COLORFFFF00,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:=进,COLOR33AACC,NODRAW;今进场价:=REF(明进场价,1),COLORFF0000,NODRAW;黄色低买:=VAR19Q,COLOR33AACC,NODRAW;洋红离场:=VAR1AQ,COLORMAGENTA,NODRAW;急跌关注:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORWHITE,NODRAW; 上市日期年:=REF(YEAR,BARSCOUNT(CLOSE)-1),NODRAW,COLOR0000FF;月:=REF(MONTH,BARSCOUNT(CLOSE)-1),NODRAW,COLORFF00FF;日:=REF(DAY,BARSCOUNT(CLOSE)-1),NODRAW,COLOR00FFFF;STICKLINE(C>=O,L,H,0.3,0),COLOR0000CC;STICKLINE(C<O,L,H,0.3,0),COLOR999900;STICKLINE(1,C,O,3.5,0),COLOR858500;STICKLINE(C>=O,C,O,3.5,0),COLOR0000E5;STICKLINE(红色持股,CLOSE,O,2.8,0),COLOR000055;STICKLINE(红色持股,CLOSE,O,2,0),COLOR000088;STICKLINE(红色持股,CLOSE,O,1.5,0),COLOR0000AA;STICKLINE(红色持股,CLOSE,O,1,0),COLOR0000CC;STICKLINE(红色持股,CLOSE,O,0.5,0),COLOR0000EE;STICKLINE(青色观望,CLOSE,O,2.8,0),COLOR454500;STICKLINE(青色观望,CLOSE,O,2,0),COLOR555500;STICKLINE(青色观望,CLOSE,O,1.5,0),COLOR656500;STICKLINE(青色观望,CLOSE,O,1,0),COLOR757500;STICKLINE(青色观望,CLOSE,O,0.5,0),COLOR858500;CO:=(C-O);STICKLINE(急跌关注,O,C-CO/2,2.8,0),COLOR555555;STICKLINE(急跌关注,O,C-CO/2,2,0),COLOR888888;STICKLINE(急跌关注,O,C-CO/2,1.5,0),COLORAAAAAA;STICKLINE(急跌关注,O,C-CO/2,1,0),COLORCCCCCC;STICKLINE(急跌关注,O,C-CO/2,0.5,0),COLOREEEEEE;STICKLINE(黄色低买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(黄色低买,O,O+CO/3,2,0),COLOR338888;STICKLINE(黄色低买,O,O+CO/3,1.5,0),COLOR33AAAA; STICKLINE(黄色低买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(黄色低买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE(洋红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(洋红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(洋红离场,O,O+CO/3,1.5,0),COLORAA00AA; STICKLINE(洋红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(洋红离场,O,O+CO/3,0.5,0),COLOREE00EE; DRAWICON( CROSS(M55,M81),M81*0.95,1),COLORYELLOW;{抄底};。
通达信指标公式源码最好用的主图指标
通达信指标公式源码最好用的主图指标通达信是一个非常受欢迎的股票分析软件,它提供了丰富的技术指标供投资者使用。
以下是一些通达信中常用的主图指标以及它们的源码。
1.移动平均线(MA):MA是一种常用的趋势指标,通过计算一段时间内的股价平均值来展示价格走势。
通达信中的MA指标源码如下:```MA(CLOSE,N):=MA(CLOSE,N);```其中,CLOSE表示收盘价,N表示计算的周期。
2.相对强弱指标(RSI):RSI是一种用于判断股票超买超卖情况的指标,通达信中的RSI指标源码如下:```RSI(CLOSE,N):=SMA(MAX(CLOSE-REF(CLOSE,1),0),N,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),N,1)*100;```其中,CLOSE表示收盘价,N表示计算的周期。
3.随机指标(KDJ):KDJ指标是一种通过计算最高价、最低价和收盘价的相对关系来判断超买超卖情况的指标,通达信中的KDJ指标源码如下:```RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:SMA(RSV,M1,1);D:SMA(K,M2,1);J:3*K-2*D;```其中,CLOSE表示收盘价,LOW表示最低价,HIGH表示最高价,N、M1和M2表示计算的周期。
4.平均成交量(MAVOL):MAVOL是一种用于衡量成交量的指标,通达信中的MAVOL指标源码如下:```MA(CLCV,N):=MA(CLCV,N);```其中,CLCV表示成交量,N表示计算的周期。
5.动量指标(MTM):MTM是一种用于衡量价格变动速度的指标,通达信中的MTM指标源码如下:```MTM(CLOSE,N):=CLOSE-REF(CLOSE,N);```其中,CLOSE表示收盘价,N表示计算的周期。
以上是一些通达信中常用的主图指标及其源码。
这些指标可以帮助投资者分析股票的趋势、超买超卖情况、成交量以及价格变动速度等重要因素,从而作出更明智的投资决策。
通达信精准预测股价主图指标公式
通达信精准预测股价主图指标公式N:=27;PP:=0.03;AAA2:=SUM(IF( CLOSE>REF(CLOSE,1),VOL*C,0),0);AAA3:=SUM(IF( CLOSE<REF(CLOSE,1),VOL*C,0),0);AAA4:=SUM(IF( CLOSE=REF(CLOSE,1),VOL*C,0),0);BB1:=0;B1万元:=DVOL*DCLOSE/100;B1差:=B1万元-REF(B1万元,1);B2万元:=DVOL*DCLOSE/100;B2比:=B2万元/REF(B2万元,1);净流入万元:=(AAA2-AAA3-0.5*AAA4);PM:=MA(净流入万元,1);PMA:=PM/REF(PM,1)>1;PMB:=REF(PMA,1)<1 AND PMA;数字:(EMA(MA(B1万元,2),2))/100000,COLORYELLOW,NODRAW;二日比:=数字/REF(数字,1);选股:PMB AND 数字>REF(数字,1) AND 二日比>1,COLORRED,NODRAW;MA5:MA(C,5);MA10:MA(C,10);MA30:MA(C,30);DRAWNUMBER(选股=1 ,L,数字),COLORYELLOW;DRAWICON(选股,L*0.975,1);{预测当天最低价公式}A1:=REF(O,1);A2:=ABS((REF(C,1)-A1)/A1);A3:=ABS((REF(H,1)-A1)/A1);A4:=ABS((REF(L,1)-A1)/A1);B1:=ABS((A2+A3+A4)/3);B2:=O*B1;预测低一:=O-B2;预测高一:=O+B2;今日保护价:(REF(C,2)+REF(C,1)+O)/3 ,COLOR4080FF,NODRAW;开盘价1:=OPEN;开盘价2:=REF(OPEN,1);最高价1:=HIGH;最高价2:=REF(HIGH,1);最低价1:=LOW;最低价2:=REF(LOW,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AA:=最高价2;BB:=最低价2;CC:=开盘价2;DD:=收盘价2;EE:=(AA+BB+CC+2*DD)/5;AAA:=EE+(AA-BB);BBB:=2*EE-BB;CCC:=2*EE-AA;DDD:=EE-(AA-BB);上升突破价:=AAA;上升阻力价:=BBB;下跌支撑价:=CCC;下跌反转价:=DDD;EEE:=(EE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+开盘价1)/2;GGG:=(预测低一+FFF)/2;预测低二:=GGG;{预测今日最高价公式}预测高二:=MA(REF(HIGH,1)/REF(CLOSE,2),N)*REF(CLOSE,1);DRAWTEXT_FIX(1,0.04,0.15,0,'预测低一:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.10,0.15,0,CONST(预测低一)),COLORYELLOW;DRAWTEXT_FIX(1,0.15,0.15,0,'元'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.04,0.20,0,'预测高一:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.10,0.20,0,CONST(预测高一)),COLORFFFFFF;DRAWTEXT_FIX(1,0.15,0.20,0,'元'),COLORFFFFFF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.15,0,'预测低二:'),COLORYELLOW;DRAWNUMBER_FIX(1,0.24,0.15,0,CONST(预测低二)),COLORYELLOW;DRAWTEXT_FIX(1,0.29,0.15,0,'元'),COLORYELLOW,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.20,0,'预测高二:'),COLORFFFFFF;DRAWNUMBER_FIX(1,0.24,0.20,0,CONST(预测高二)),COLORFFFFFF;DRAWTEXT_FIX(1,0.29,0.20,0,'元'),COLORFFFFFF,LINETHICK1;买回价:=预测低二*1.015;卖出价:=买回价*(1+PP);DRAWTEXT_FIX(1,0.04,0.10,0,'卖出价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.10,0.10,0,CONST(卖出价)),COLOR8080FF;DRAWTEXT_FIX(1,0.15,0.10,0,'元'),COLOR8080FF,LINETHICK1;DRAWTEXT_FIX(1,0.18,0.10,0,'买回价:'),COLOR8080FF,LINETHICK1;DRAWNUMBER_FIX(1,0.24,0.10,0,CONST(买回价)),COLOR8080FF;DRAWTEXT_FIX(1,0.29,0.10,0,'元'),COLOR8080FF,LINETHICK1;DRAWTEXT_FIX(1,0.01,0.02,0,'★====================================== ===== ★'),COLORRED;DRAWTEXT_FIX(1,0.15,0.05,0,'T+1 操作'),COLORFFFFFF;DRAWTEXT_FIX(1,0.01,0.08,0,'操 '),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.12,0,'盘 '),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.16,0,'铁'),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.20,0,'律'),COLOR0000FF;DRAWTEXT_FIX(1,0.32,0.08,0,'坚 '),COLOR0000FF;DRAWTEXT_FIX(1,0.32,0.12,0,'决 '),COLOR0000FF;DRAWTEXT_FIX(1,0.32,0.16,0,'执'),COLOR0000FF;DRAWTEXT_FIX(1,0.32,0.20,0,'行'),COLOR0000FF;DRAWTEXT_FIX(1,0.01,0.24,0,'★====================================== ===== ★'),COLORRED;STICKLINE(C>=O,C,O,3.4,0),COLOR0000AA;STICKLINE(C>=O,C,O,3.0,0),COLOR0000BB ;STICKLINE(C>=O,C,O,2.4,0),COLOR0000CC;STICKLINE(C>=O,C,O,2.0,0),COLOR0000DD ;STICKLINE(C>=O,C,O,1.6,0),COLOR0000EE;STICKLINE(C>=O,C,O,1.2,0),COLOR0000FF;STICKLINE(C>=O,C,O,0.6,0),COLOR0000FF;STICKLINE(C>=O,H,L,0,0),COLORRED;STICKLINE(C<=O,C,O,3.4,0),COLORAAAA00;STICKLINE(C<=O,C,O,3.0,0),COLORBBBB00;STICKLINE(C<=O,C,O,2.4,0),COLORCCCC00;STICKLINE(C<=O,C,O,2.0,0),COLORDDDD00;STICKLINE(C<=O,C,O,1.6,0),COLOREEEE00;STICKLINE(C<=O,C,O,1.2,0),COLORFFFF00;STICKLINE(C<=O,C,O,0.6,0),COLORFFFF00;STICKLINE(C<=O,H,L,0,0),COLORFFFF00;一天十分钟!让您把手中的鸡肋当鸡腿天天吃!不需丰富实战经验的 T+0 自动化的玩法!重申,我不会写公式,所有公式都来自股票论坛,如有侵犯敬请原谅!先恭喜您,手上有脱不了,又舍不得脱的股票,越多越好!如果您不嫌一天1%太少,那就看下去。
通达信量能主升捕捉黑马主图公式源码
通达信量能主升捕捉黑马主图公式
这是我自己常用的成交量买卖公式,经常会抓到你想要的牛股
公式原理:一支股票好与不好,成交量是关键,放量了股价也创新高了,这样的股票做中长线百分之百不亏,直到在顶部放巨量了赶紧跑吧,不管后面再如何涨,都是主力在为了出货而拉升股价
关注量爆出现后突破量爆的最高价
ZT:=REF(C,1)*1.1-C<0.01 AND H=C;
STICKLINE( ZT,C,O,2,0),COLORYELLOW;
走强线:EMA(COST(99),181),COLORYELLOW,LINETHICK2;
巨量平台:REF(H,BARSLAST(V=HHV(VOL,120))),COLORRED,LINETHICK2;
XG:= NOT(REF(巨量平台,1)=巨量平台) AND ZT;
DRAWTEXT(XG,L,'量爆'),COLORCYAN;
主升:=CROSS(C,巨量平台);
DRAWTEXT(主升,L,'↖主升'),COLORYELLOW;
DRAWTEXT(主升AND ZT,L,'↖超级主升'),COLORRED;。
股市中波段操作最好用的通达信指标公式(1)
顾王{BN:1,100,3;牛:1,100,3;短线:1,20,9;中线:1,30,9;}MAXCYC:DMA((C+O)/2,V/CAPITAL);MAV:=(((CLOSE)*(2)+HIGH+LOW)/(4))*(10);SK:=EMA(MAV,13)-EMA(MAV,34);SD:=EMA(SK,5);B:=((2)*(SK-SD))*(5.5);拉升资金:IF((IF((B>=0),B,(-18))>120),120,IF((B>=0) AND(DATE<=1080531),B,(-18))),LINETHICK2,COLORFF00FF;VAR96:=((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28)))*(100);VAR97:=SMA(VAR96,4,1);VAR98:=SMA(VAR97,2,1);VAR99:=DMA(((AMOUNT)/(VOL))/(100),(VOL)/(CAPITAL));VAR100:=LOW;VAR101:=REF(LOW,1);VAR102:=((SMA(ABS(VAR100-VAR101),3,1))/(SMA(MAX(VAR100-VAR101,0),牛,1)))*(100);VAR103:=MA(IF(((CLOSE)*(1.68)<=MAXCYC),(VAR102)*(10),(VAR102)/(10)),牛); VAR104:=LLV(LOW,30);VAR105:=HHV(VAR103,30);魔王:=MA(IF((LOW<=VAR104),(VAR103+(VAR105)*(2))/(2),0),牛);牛魔王:IF(魔王>10000,100,0),LINETHICK2,COLOR00FFFF;VAR106:=MA(CLOSE,5);VAR107:=MA(CLOSE,10);VAR108:=MA(CLOSE,30);VAR109:=(SUM(((CLOSE)*(VOL))*(100),4))/(SUM((VOL)*(100),4));VAR110:=(SUM(((CLOSE)*(VOL))*(100),7))/(SUM((VOL)*(100),7));VAR111:=(SUM(((CLOSE)*(VOL))*(100),28))/(SUM((VOL)*(100),28));VAR112:=(INTPART((VAR111)*(100)))/(100);短线趋势:=EMA(CLOSE,5)-EMA(CLOSE,10);中线趋势:=EMA(短线趋势,中线);VAR113:=REF(中线趋势,1);VAR114:=中线趋势;VAR115:=VAR114-VAR113;VAR116:=REF(短线趋势,1);VAR119:=短线趋势;VAR120:=VAR119-VAR116;VAR117:=OPEN;VAR118:=CLOSE;小牛魔王:IF((VAR117<=VAR106) AND (VAR117<=VAR107) AND (VAR117<=VAR108) AND (VAR118>=VAR106) AND (VAR118>=VAR112) AND (VAR115>0) AND(VAR120>0) ,80,0),LINETHICK2,COLORFFFFFF;主力建仓:IF((VAR98<8.5) AND (VAR97<11),120,(-18)),LINETHICK2,COLOR0000FF; VAR84:=((CLOSE-MA(CLOSE,13))/(MA(CLOSE,13)))*(100);VAR85:=100-ABS(VAR84);VAR86:=(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));VAR87:=(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)) ;VAR88:=100-VAR87;VAR89:=100-VAR86;VAR92:=MA(((100)*(CLOSE-LLV(CLOSE,34)))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20; VAR93:=100-(3)*(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),2 0,1))+(2)*(SMA(SMA(((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75)))*(100),20, 1),15,1));VAR94:=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),1 5,1));VAR95:=(VAR93<REF(VAR94,1)) AND (VOL>REF(VOL,1)) AND(CLOSE>REF(CLOSE,1));A11:=(3)*(SMA(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*(100),5,1))-(2)* (SMA(((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55)))*(100),5,1));黑马线:=EMA(A11,5);A12:=((黑马线-REF(黑马线,1))/(REF(黑马线,1)))*(100);A4:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);趋势线3:=MA((3)*(SMA(A4,6,1))-(2)*(SMA(SMA(A4,5,1),5,1)),2);N:=3;VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/(4),1);VAR2:=(SMA(ABS(LOW-VAR1),13,1))/(SMA(MAX(LOW-VAR1,0),10,1));VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF((LOW<=VAR4),VAR3,0),5);VAR6:=REF(CLOSE,1);VAR7:=((SMA(MAX(CLOSE-VAR6,0),6,1))/(SMA(ABS(CLOSE-VAR6),6,1)))*(100); VAR8:=(LLV(LOW,5)=LLV(LOW,45)) AND (CLOSE>=(OPEN)*(1.04));VAR9:=(CLOSE>(REF(HIGH,1)+REF(LOW,1))/(2));VAR10:=VAR8 AND VAR9;VAR11:=((2)*(CLOSE)+HIGH+LOW)/(4);VAR12:=LLV(LOW,13);VAR13:=HHV(HIGH,13);VAR14:=(LLV(LOW,1)=LLV(LOW,35)) AND (CLOSE>=(OPEN)*(1.04));VAR15:=(CLOSE>(REF(HIGH,1)+REF(LOW,1))/(2));VAR16:=EMA(((VAR11-VAR12)/(VAR13-VAR12))*(100),13);VAR17:=(((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);VAR19:=MA(CLOSE,13);VAR20:=100-ABS(((CLOSE-VAR19)/(VAR19))*(100));VAR21:=LLV(LOW,75);VAR22:=HHV(HIGH,75);VAR23:=(VAR22-VAR21)/(100);VAR24:=SMA((CLOSE-VAR21)/(VAR23),20,1);VAR25:=SMA((OPEN-VAR21)/(VAR23),20,1);VAR26:=(3)*(VAR24)-(2)*(SMA(VAR24,15,1));VAR27:=MA(HHV(HIGH,485),17);VAR28:=MA(HHV(HIGH,222),17);VAR29:=MA(HHV(HIGH,96),17);VAR30:=MA(LLV(LOW,485),17);VAR31:=MA(LLV(LOW,222),17);VAR32:=MA(LLV(LOW,96),17);VAR33:=MA(((VAR30)*(0.96)+(VAR31)*(0.96)+(VAR32)*(0.96)+(VAR27)*(0.558)+(VAR2 8)*(0.558)+(VAR29)*(0.558))/(6),17);VAR34:=MA(((VAR30)*(1.25)+(VAR31)*(1.23)+(VAR32)*(1.2)+(VAR27)*(0.55)+(VAR28)* (0.55)+(VAR29)*(0.65))/(6),17);VAR35:=MA(((VAR30)*(1.3)+(VAR31)*(1.3)+(VAR32)*(1.3)+(VAR27)*(0.68)+(VAR28)*(0 .68)+(VAR29)*(0.68))/(6),17);VAR36:=LLV(LOW,30);VAR37:=MA((((VAR33)*(3)+(VAR34)*(2)+VAR35)/(6))*(1.738),17);VAR38:=VAR37;VAR39:=LOW;VAR40:=REF(LOW,1);VAR41:=((SMA(ABS(VAR39-VAR40),3,1))/(SMA(MAX(VAR39-VAR40,0),N,1)))*(100); VAR42:=MA(IF(((CLOSE)*(1.35)<=VAR38),(VAR41)*(10),(VAR41)/(10)),N);VAR43:=HHV(VAR42,30);VAR44:=1080531;VAR45:=(3)*(VAR25)-(2)*(SMA(VAR25,15,1));VAR46:=100-VAR45;VAR47:=1;VAR49:=(REF(LOW,1))*(0.9);VAR50:=(LOW)*(0.9);VAR51:=((VAR50)*(VOL)+(VAR49)*(CAPITAL-VOL))/(CAPITAL);VAR52:=EMA(VAR51,30);VAR53:=CLOSE-REF(CLOSE,1);VAR54:=MAX(VAR53,0);VAR55:=ABS(VAR53);VAR56:=((SMA(VAR54,7,1))/(SMA(VAR55,7,1)))*(100);VAR57:=((SMA(VAR54,13,1))/(SMA(VAR55,13,1)))*(100);VAR58:=BARSCOUNT(CLOSE);VAR59:=((SMA(MAX(VAR53,0),6,1))/(SMA(ABS(VAR53),6,1)))*(100);VAR60:=(((-200))*(HHV(HIGH,60)-CLOSE))/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR61:=((CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15)))*(100);VAR62:=SMA((SMA(VAR61,4,1)-50)*(2),3,1);VAR63:=((INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14)))*(100);VAR64:=SMA(VAR63,4,1);VAR65:=SMA(VAR64,3,1);VAR66:=((HHV(HIGH,30)-CLOSE)/(CLOSE))*(100);VAR67:=(VAR59<=25) AND (VAR60<(-95)) AND (VAR66>20) AND (VAR62<(-30)) AND (VAR65<30) AND (VAR52-CLOSE>=(-0.25)) AND (VAR56<22) AND (VAR57<28) AND (VAR58>50);VAR68:=(HIGH+LOW+CLOSE)/(3);VAR69:=(VAR68-MA(VAR68,14))/((0.015)*(AVEDEV(VAR68,14)));VAR70:=(VAR68-MA(VAR68,70))/((0.015)*(AVEDEV(VAR68,70)));VAR71:=IF((VAR69>=150) AND (VAR69<200) AND (VAR70>=150) AND(VAR70<200),10,0);VAR72:=IF((VAR69<=(-150)) AND (VAR69>(-200)) AND (VAR70<=(-150)) AND(VAR70>(-200)),(-10),VAR71);VAR73:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);VAR74:=REVERSE(VAR73);VAR75:=SMA(VAR73,3,1);绝佳买点:=MA(IF((LOW<=VAR36),(VAR42+(VAR43)*(2))/(2),0),N);跑:=FILTER((REF(黑马线,1)>90) AND (A12<0) ,7);买线:=EMA(CLOSE,2);卖线:=EMA((SLOPE(CLOSE,21))*(20)+CLOSE,42);指數位置:=(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));抄底:=CROSS(指數位置,10);A1:=(VOL=HHV(VOL,120));A2:=((CLOSE)/(OPEN)>1.05);TJ:=A1 AND A2;龙:=VAR10;买4:=VAR14;AA1:=(AMOUNT)/(VOL);BB1:=(LOW<(AA1)*(0.9));CC1:=(((CLOSE-REF(CLOSE,1))/(REF(CLOSE,1)))*(100)>1.2);DD1:=(LOW<(MA(CLOSE,5))*(0.921));EE1:=(VOL<(MA(VOL,5))*(1.5));FF1:=BB1 AND CC1 AND DD1 AND EE1;买3:=FILTER(FF1,3);二十天最低跌幅:=(HHV(CLOSE,20))/(LLV(CLOSE,20));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);X:=(LLV(J,2)=LLV(J,8));买1:=CROSS(J,REF(J+0.01,1)) AND X AND (J<20) AND (二十天最低跌幅>=1.3);长期底部:=LLV(HIGH,30);上:=(SMA(LOW,5,2))*(0.96);短期底部:=(LLV(HIGH,30))*(0.93);LC:=REF(CLOSE,1);RSI:=((SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1)))*(100);大顶:=FILTER((VAR17>20) AND FILTER((VAR17<REF(VAR17,1)),5),5);VAR76:=(OPEN+LOW+HIGH+CLOSE)/(4);MAN:=(SMA(HIGH,21,2))*(1.05);短底2:=EMA(VAR76,5);支撑:=HHV(短底2,60);VAR77:=((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36)))*(100);VAR78:=SMA(VAR77,5,1);VAR79:=SMA(VAR78,8,1);VAR80:=CROSS(VAR78,VAR79) AND (VAR79<5);VAR81:=(CLOSE>LLV(CLOSE,60)+(0.3)*(LLV(CLOSE,60))) AND VAR80;VAR82:=IF((CLOSE>1000),VAR80,VAR81);黑马起步:=VAR82;逃:=FILTER((HIGH>支撑) AND (CLOSE<支撑) AND ((CLOSE)/(OPEN)>0-1.06) AND (CLOSE<OPEN),5);逃命:=(黑马起步>0);选逃:=FILTER((((逃命OR 逃) OR CROSS(84,RSI)) OR 大顶),3) ;WW:=1;散户:=((SMA(VAR75,3,1))*(VAR47))*(WW);新庄:=((SMA(散户,3,1))*(VAR47))*(WW);高抛:=CROSS(新庄,散户) AND (新庄>75);买:CROSS(买线,卖线) ,COLOR0000FF;卖:CROSS(卖线,买线) ,COLOR008000;大黑马:=CROSS(趋势线3,0) AND (黑马线<40);大买:=FILTER((绝佳买点>30000),5);大资金进场:=VAR95 AND (COUNT(VAR95,30)=1);做空:=高抛+选逃+(卖=1)+跑;选拉升股:=(买AND (拉升资金>0) OR (拉升资金>0) AND (COUNT(买,5)>=1) AND (COUNT(做空,BARSLAST(买))=0) AND (REF((拉升资金>0) AND (COUNT(买,5)>=1) AND (COUNT(做空,BARSLAST(买))=0),1)=0));选潜力股:=(COUNT(做空,BARSLAST(买))=0) AND((CLOSE)/(REF(CLOSE,BARSLAST(买)))<=1.08) AND ((主力建仓=120) OR (拉升资金>0)) ;选暴涨股:买AND ((COUNT((主力建仓=120),BARSLAST(做空))>=3) OR (COUNT(大黑马+大买+大资金进场,7)>=1)),COLORFF0000;选暴涨潜力:((CLOSE)/(REF(CLOSE,BARSLAST(选暴涨股)))<=1.1) AND (COUNT(做空,BARSLAST(选暴涨股))=0),COLOR000080;选超级暴涨股:(选暴涨股AND (COUNT((主力建仓=120),10)>=3) OR 买AND (COUNT(大黑马+大买+大资金进场,7)>=1) AND (COUNT(做空,BARSLAST(((大黑马OR 大买) OR 大资金进场)))=0)),COLOR800080;黄金暴涨股:买AND (COUNT((主力建仓=120),BARSLAST(做空))>=3) AND (拉升资金>0) AND (COUNT(大黑马+大买+大资金进场,7)>=1) AND (COUNT(做空,BARSLAST(((大黑马OR 大买) OR 大资金进场)))=0),COLOR00FFFF;坚决买进:(((买AND 选暴涨潜力OR 选暴涨股) OR 选超级暴涨股) OR 黄金暴涨股),COLORFF00FF;坚决买进潜力股:(坚决买进OR ((CLOSE)/(REF(CLOSE,BARSLAST(坚决买进)))<=1.1) AND (COUNT(做空,BARSLAST(坚决买进))<=1)) AND (COUNT(做空,BARSLAST(买))=0) AND (做空=0),COLOR00FF00;黄金暴涨潜力股:(黄金暴涨股OR ((CLOSE)/(REF(CLOSE,BARSLAST(黄金暴涨股)))<=1.1) AND (COUNT(做空,BARSLAST(黄金暴涨股))=0)) AND (COUNT(做空,BARSLAST(买))=0) AND (做空=0),COLORFFFFFF;选底:FILTER((LOW<=上) AND (HIGH>=短期底部) AND (CLOSE>=长期底部) AND ((CLOSE)/(OPEN)>1.03),3) AND (DATE<=1080531),COLORFFFF00;稳赚10买:FILTER((买3 OR 选底),3) AND (COUNT(买1+买4+龙,3)>0),COLOR0000FF; 选持股阶段股:(COUNT(卖,BARSLAST(买))=0),COLOR008000;STICKLINE(黄金暴涨潜力股,50,40,7,0),COLORFF0000;STICKLINE((买=1),0,50,7,0),COLOR1020FF;STICKLINE((卖=1),50,100,7,0),COLORFFDD00;STICKLINE(VAR95 AND (COUNT(VAR95,30)=1),50,85,5,0),COLORFF0000; STICKLINE(大黑马,50,90,5,0),COLORFF0000;STICKLINE(大买,50,30,3,0),COLOR0000FF;STICKLINE(选逃,50,65,3,0),COLORFF0000;STICKLINE((选底=1),50,80,3,0),COLOR399C71;STICKLINE((稳赚10买=1),50,65,3,0),COLORFF0000;STICKLINE(高抛,50,75,3,0),COLORFF0000;STICKLINE(跑,50,65,3,0),COLORFF0000;STICKLINE(坚决买进潜力股,50,58,6,0),COLORFF0000;STICKLINE(选持股阶段股,70,50,0.1,0),COLOR0000FF;DRAWTEXT(选持股阶段股,75,'—'),COLOR0000FF;DRAWTEXT(坚决买进,13,'坚决买'),COLOR00FFFF;DRAWTEXT(选拉升股,40,'▲'),COLOR00FFFF;DRAWTEXT(选暴涨股,50,'★'),COLOR00FFFF;DRAWTEXT(选超级暴涨股,60,'●'),COLOR00FFFF;DRAWTEXT(黄金暴涨股,73,'■'),COLOR00FFFF;DRAWTEXT(VAR95 AND (COUNT(VAR95,30)=1),110,'大资金'),COLORFFFFFF; DRAWTEXT(VAR95 AND (COUNT(VAR95,30)=1),100,'进场'),COLORFFFFFF; DRAWTEXT(跑,70,'跑'),COLORYELLOW;DRAWTEXT(大黑马,105,'大黑马'),COLORFFFFFF;DRAWTEXT(CROSS(新庄,散户) AND (新庄>75),90,'抛'),COLOR008000;DRAWTEXT((稳赚10买=1),80,'赚10'),COLORFFFFFF; DRAWTEXT((稳赚10买=1),67,'%买'),COLORFFFFFF; DRAWTEXT(IF((选底=1),100,0),92,'底'),COLORFFFFFF; DRAWTEXT(选逃,80,'逃'),COLOR008000; DRAWTEXT(大买,30,'大买'),COLORFFFFFF; DRAWTEXT((买=1),(-2),'买'),COLOR0000FF; DRAWTEXT((卖=1),117,'卖'),COLOR00FFFF;。
通达信非常棒的主图指标公式
通达信非常棒的主图指标公式EMA13:=EMA(C,13),COLORWHITE;EMA21:=EMA(C,21),COLORYELLOW;EMA34:=EMA(C,34),COLORFF00FF;EMA60:=MA(C,60),COLORFFCC66;VAR2:=(2*CLOSE+HIGH+LOW)/4;VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);VAR4:=LLV(LOW,5); VAR5:=HHV(HIGH,4);散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20 );卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(卖出<0,H+0.05,2); 买线:=EMA(CLOSE,2);卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LIN ETHICK3,COLORYELLOW;VC:=((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;S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLO RGREEN;A0:=(L+H+C*2)/4;A1:EMA(A0,14)COLORBLUE,LINETHICK2;A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1 X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};看空:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A 1X))),DRAWNULL),COLORCYAN,{LINETHICK2};做多:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;做空:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC;STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF;STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;。
通达信主图指标完美(附源码)
通达信主图指标完美(附源码)DRAWTEXT(CROSS(MA(C,10),MA(C,20)),H,'-------------'),LINETHICK2; DRAWBAND(MA(C,3),RGB(230,0,250),HHV(MA(C,5),10),RGB(0,100,150));MA5:MA(CLOSE,5);MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA30:MA(CLOSE,30);MA60:MA(CLOSE,60);MA120:MA(CLOSE,120);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0);主力:=EMA( (CLOSE-MA(CLOSE,3))/MA(CLOSE,3),2);散户:=EMA( (CLOSE-MA(CLOSE,20))/MA(CLOSE,20),7);VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);动能趋势线:=100*EMA((CLOSE-VAR2)/(VAR3-VAR2),4);DRAWTEXT(CROSS(动能趋势线,70),HIGH*1.02,'险'),COLORGREEN; DRAWTEXT(CROSS(动能趋势线,80),HIGH*1.02,'减'),COLOR00FF00; DRAWTEXT(CROSS(动能趋势线,87.5),HIGH*1.02,'出局'),COLORWHITE; DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20,LOW,'短进'),COLORFF00FF; DRAWTEXT(CROSS(主力,散户) AND 主力<0 AND 散户<0,LOW,'见底'),COLORRED; DRAWICON(CROSS(主力,散户) AND 主力<0 AND 散户<0,LOW,1);涨家数:INDEXADV,NODRAW,COLORRED;跌家数:INDEXDEC,NODRAW,COLORGREEN;{涨跌停显示}涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);STICKLINE(涨停,O,C,3,0),COLORYELLOW;ZDF:=(C-REF(C,1))/REF(C,1)*100;STICKLINE(ZDF<-9.9,O,C,3,0),COLORGREEN;{以下为K线上色}STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF; STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF; STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR990000; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;。
通达信指标——日内短线(主图)
N8:=STRCAT(CON2STR(YEAR,0),' 年');Y8:=STRCAT(CON2STR(MONTH,0),' 月');R8:=STRCAT(CON2STR(DAY,0),' 日');NN:=BARSLAST(DATE!=REF(DATE,1))+1;RHN:= REF(HHV(H,NN) ,0);RLN:= REF(LLV(L,NN) ,0);SJTJ:=DA TE<1590301;SJ:=SJTJ AND TIME<1590301;ZS:=IF(DATEREF(DATE,1),REF(C,1),REF(REF(C,1),BARSLAST(DA TEREF(DATE,1)))); KP:=IF(DATEREF(DATE,1),O,REF(O,BARSLAST(DA TEREF(DATE,1))));开:IF(SJTJ AND TIME>090000, KP,DRAWNULL),LINETHICK0,COLORYELLOW;高:IF(SJTJ,RHN,DRAWNULL),LINETHICK0,COLORMAGENTA;低:IF(SJTJ,RLN,DRAWNULL),LINETHICK0,COLORYELLOW;HH1:=IF(HLL1:=IF(L >REF(L,4) AND REF(L,1)>REF(L,4) AND REF(L,2)>REF(L,4) AND REF(L,3)>REF(L,4),REF(L,4),0);HH2:=IF(HH1>0,HH1,REF(HH1,BARSLAST(HH1>0)));LL2:=IF(LL1>0,LL1,REF(LL1,BARSLAST(LL1>0)));K1:=IF(C>HH2 ,-3,IF(CK2:=IF(K1<0 OR K1>0,K1,REF(K1,BARSLAST(K1<0 OR K1>0)));GX:=IF(C>10000,0.001,0.0005);HH22:=IF(C>20000,HH2+20,HH2*(1+GX));LL22:=IF(C>20000,LL2-20,LL2*(1-GX));G:=IF(K2=1,HH22,LL22);支撑:IF(REF(K2,1)=-3 AND SJTJ,REF(G,1),DRAWNULL),LINETHICK2,COLORRED;压力:IF(REF(K2,1)=1 AND SJTJ,REF(G,1),DRAWNULL),LINETHICK2,COLORGREEN;W2:=(O-C);HKX1:=W2>0 AND K2=-3 AND SJTJ;HKX2:=W2<=0 AND K2=-3 AND SJTJ;LKX1:=W2>0 AND K2=1 AND SJTJ;LKX2:=W2<=0 AND K2=1 AND SJTJ;STICKLINE(HKX1,O,C,2,0),COLORRED;STICKLINE(HKX1,O,H,0.0,0),COLORRED;STICKLINE(HKX1,C,L,0.0,0),COLORRED;STICKLINE(HKX2,O,C,2,1),COLORRED;STICKLINE(HKX2,O,L,0.0,0),COLORRED;STICKLINE(HKX2,C,H,0.0,0),COLORRED;STICKLINE(LKX1,O,C,2,0),COLORCYAN;STICKLINE(LKX1,O,H,0.0,0),COLORCY AN;STICKLINE(LKX1,C,L,0.0,0),COLORCY AN;STICKLINE(LKX2,C,O,2,1),COLORCYAN;STICKLINE(LKX2,C,H,0.0,0),COLORCYAN;STICKLINE(LKX2,O,L,0.0,0),COLORCY AN;GDK:=ABS(ZS-KP)/ZS>0.02;XB:=IF(C>13000,0.02,0.01);GDK2:=ABS(ZS-KP)/ZS>XB;KPGZ:=KP*1.0005;KPDZ:=KP*0.9995;HS11:= SJ AND C>KPGZ AND GDK2;LS11:= SJ AND CHS22:= SJ AND C>=KPDZ AND REF(C,1)>=KPDZ AND GDK2;LS22:= SJ AND C<=KPGZ AND REF(C,1)<=KPGZ AND GDK2;HS:= HS11 OR HS22;LS:= LS11 OR LS22;GDJ:=IF(LS,RHN,RLN);最高价:IF(C090500 AND TIME<093000 , RHN,DRAWNULL),LINETHICK2,COLORGREEN;最低价:IF(C>KP AND TIME>090500 AND TIME<093000 , RLN,DRAWNULL),LINETHICK2,COLORRED;DRAWNUMBER(ISLASTBAR AND TIME>090500 AND TIME<103000 AND GDK,GDJ,GDJ),COLORMAGENTA;HKX3:=W2>0 AND HS AND SJ;HKX4:=W2<=0 AND HS AND SJ;LKX3:=W2>0 AND LS AND SJ;LKX4:=W2<=0 AND LS AND SJ;STICKLINE(HKX3,O,C,2,0),COLORRED;STICKLINE(HKX3,O,H,0.0,0),COLORRED;STICKLINE(HKX3,C,L,0.0,0),COLORRED;STICKLINE(HKX4,O,C,2,1),COLORRED;STICKLINE(HKX4,O,L,0.0,0),COLORRED;STICKLINE(HKX4,C,H,0.0,0),COLORRED;STICKLINE(LKX3,O,C,2,0),COLORCYAN;STICKLINE(LKX3,O,H,0.0,0),COLORCY AN;STICKLINE(LKX3,C,L,0.0,0),COLORCY AN;STICKLINE(LKX4,C,O,2,1),COLORCYAN;STICKLINE(LKX4,C,H,0.0,0),COLORCYAN;STICKLINE(LKX4,O,L,0.0,0),COLORCY AN;SJ8:=STRCAT(STRCAT(N8,Y8), R8);GX1:=IF(C>8000,0.001,0.0005);HDK:=(K2=1 AND REF(K2,1)=-3 AND TIME<103500 AND NOT(GDK2)) OR (K2=1 AND REF(K2,1)=-3 AND TIME>103500) OR (K2=1 AND REF(K2,1)=1 AND REF(HS,1) AND TIME=103500);DRAWTEXT(HDK ,H*(1+GX1),1),COLORBLACK{COLORYELLOW};LDD:=(K2=-3 AND REF(K2,1)=1 AND TIME<103500 AND NOT(GDK2)) OR (K2=-3 AND REF(K2,1)=1 AND TIME>103500) OR (K2=-3 AND REF(K2,1)=-3 AND REF(LS,1) AND TIME=103500);DRAWTEXT(LDD ,LOW,2),COLORBLACK{COLORYELLOW};ODD:=(HS AND TIME<=090500 AND C>KP AND SJTJ) OR (HS AND REF(LS,1) AND TIME>090500 AND TIME<=102500 AND SJTJ );DRAWTEXT(ODD,O,2),COLORBLACK{COLORYELLOW};ODK:=(LS AND TIME<=090500 AND C090500 AND TIME<=102500 AND SJTJ);DRAWTEXT(ODK,O,1),COLORBLACK{COLORYELLOW};KKK1:=IF(CLOSE>10000,0.01,0.005);GDK1:=ABS(ZS-KP)/ZS>KKK1;HS1:=TIME>090500 AND TIME<=103000 AND HS AND GDK1;HSZY:=HS1 AND K2=1 AND (G-HHSZD:=TIME>090500 AND TIME<=103000 AND HS AND (REF(HS,1)=1) AND K2=-3 AND (REF(K2,1)=1);HSPD:=TIME>090500 AND TIME<=103000 AND HS AND K2=1 AND (REF(K2,1)=-3);LS1:=TIME>090500 AND TIME<=103000 AND LS AND GDK1;LSZY:=LS1 AND K2=-3 AND (L-GLSZK:=TIME>090500 AND TIME<=103000 AND LS AND (REF(LS,1)=1) AND K2=1 AND (REF(K2,1)=-3);LSPK:=TIME>090500 AND TIME<=103000 AND LS AND K2=-3 AND (REF(K2,1)=1);ZY8L:=(HSZY AND (REF(NOT(HSZY),1)=1)) OR (LSZY AND (REF(NOT(LSZY),1)=1)); DRAWTEXT(GDK AND TIME<=090500 AND SJTJ,KP,3),COLORBLACK;XHL3:=IF(K2=-3,L,H);DRAWTEXT_FIX(C>0,0.88,0,0,SJ8),COLOR00FFFF;DRAWTEXT(HSZD OR LSZK,O,5),COLORYELLOW;GX3:=IF(C>7000,0.01,0.005);MXM:=RHN*(1+GX3);AAA:=CONST(MXM);GX2:=IF(C>8000,0.002,0.001);GX4:=IF(C>5000,6,5);ZHZ20:=IF(TIME<090000,KP,DYNAINFO(20));ZHZ12:=IF(TIME<090000,KP,DYNAINFO(12));ZHZ14:=IF(TIME<090000,KP,DYNAINFO(14));DRAWTEXT(C AND CURRBARSCOUNT=(GX4+4) AND ZHZ14>0 AND TIME>090000 AND C>3500,AAA, 6),COLORWHITE;DRAWTEXT(C AND CURRBARSCOUNT=(GX4+4) AND ZHZ14<0 AND TIME>090000 AND C>3500,AAA, 7),COLORWHITE;DRAWNUMBER( CURRBARSCOUNT=GX4 AND DYNAINFO(14)<0 AND TIME>090000 AND C>3500 ,AAA*(1+GX2),ZHZ20),COLORGREEN;DRAWNUMBER( CURRBARSCOUNT=GX4 AND DYNAINFO(14)<0 AND TIME>090000 AND C>3500,AAA,ZHZ12),COLORGREEN;DRAWNUMBER( CURRBARSCOUNT=GX4 AND DYNAINFO(14)<0 AND TIME>090000 AND C>3500,AAA*(1-GX2),ZHZ14*100),COLORGREEN;DRAWNUMBER( CURRBARSCOUNT=GX4 AND DYNAINFO(14)>0 AND TIME>090000 AND C>3500,AAA*(1+GX2),ZHZ20),COLORRED;DRAWNUMBER( CURRBARSCOUNT=GX4 AND DYNAINFO(14)>0 AND TIME>090000 AND C>3500,AAA,ZHZ12),COLORRED;DRAWNUMBER( CURRBARSCOUNT=GX4 AND DYNAINFO(14)>0 AND TIME>090000 AND C>3500,AAA*(1-GX2),ZHZ14*100),COLORRED;BBB:=CONST(ZHZ20);DRAWNUMBER(ISLASTBAR AND ((REF(K2,1)=1) OR(REF(K2,1)=-3)) ,REF(G,1),REF(G,1)),COLORYELLOW;XHL1:=IF(K2=-3,H,L);XHL2:=IF(LS,H,L);FJTJ:=(HS AND REF(HS,1) AND TIME<103000) OR (LS AND REF(LS,1) AND TIME<103000) OR (K2=1 AND REF(K2=1,1) AND TIME>103000) OR (K2=-3 AND REF(K2=-3,1) AND TIME>103000);KJC:=FJTJ AND ((V>25000 AND C>45000) OR (V>42000 AND C>20000) OR (V>15000 AND C>13000 AND C<20000) OR (V>40000 AND C>5500 AND C<13000) OR (V>50000 AND C<6000)) AND TIME>091500 AND TIME<=145500;KJC1:=KJC AND NOT(REF(KJC,1));KJCZ:=IF(KJC1,XHL1,XHL2);FJTJ1:=FJTJ AND (HSPD OR LSPK );FJTJ2:=FJTJ AND (HSPD OR LSPK OR KJC1) AND NOT(HSZD OR LSZK) AND NOT(ODD OR ODK OR LDD OR HDK);DRAWTEXT(FJTJ2 AND C>3500,KJCZ,8),COLORYELLOW;DRAWNUMBER(ISLASTBAR AND C>0,C,C),COLORWHITE;DRAWTEXT(((CROSS(C,HH2) AND REF(K2=-3,1)) OR (CROSS(LL2,C) AND REF(K2=1,1))) AND C>3500 AND NOT(FJTJ2),O,5),COLORYELLOW;。
通达信史上最牛主图指标
通达信史上最牛主图指标N:=5;M:=13;上:EMA(C,3),COLORRED,LINETHICK1;中:EMA(C,5),COLOR00FF00,LINETHICK1;下:EMA(中,5),COLORWHITE,LINETHICK1;超买:MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORG REEN,LINETHICK2;超卖:MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORR ED,LINETHICK2;获利盘%:WINNER(CLOSE)*100,NODRAW,COLORWHITE;{此句为计算获利盘比例,不需要可以不要}趋势线:EMA(((SLOPE(CLOSE,21) * 20) +CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA( CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撑:=REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLOR CC66FF;阻力:=REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLOR GREEN;MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:=MA(CLOSE,N),COLOR888899;MA13:=MA(CLOSE,M),COLORFF00F0,LINETHICK2;V AR1:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) ANDREF(C,3)=LLV(C,4) AND C>=REF(C,1) ORREF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);V AR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);V AR3:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) ORREF(C,1)=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=REF(C,1);V AR5:=REF(C,1)=HHV(C,4) AND CREF(V5,1) ANDREF(V5,1)OPEN;V AR8:=V AR7 AND COUNT(VAR6,2);V AR9:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C -REF(C,1)),6),6);V AR10:=EMA(MA(C,13),13);V AR11:=FILTER((LLV(V AR9,2)=LLV(V AR9,7) AND COUNT(V AR950,2) ANDCROSS(MA(V AR9,2),V AR9))=1,1);V AR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;V AR14:=FILTER(((CROSS(V AR13,0) OR CROSS(C,V AR10))AND V AR11)=1,3);V AR15:=MA(C,18)>=REF(MA(C,18),3) ANDCROSS(C,MA(C,18));V AR16:=V AR8 AND NOT(REF(VAR8,1));强攻:=IF(MA3>REF(MA3,1) ANDMA3>=0,MA13,DRAWNULL),COLORYELLOW,LINETHIC K2;回调:=IF(MA30,MA13,DRAWNULL),COLORGREEN,LINETHI CK2;{KDJ}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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(V AR14 OR V AR15) AND V AR11;买2:=(V AR14 OR V AR15) AND V AR4;买3:=(V AR14 OR V AR15) AND V AR2;买4:=(V AR2 AND V AR11) OR (V AR4 AND V AR11);买5:=(金叉AND V AR4) OR (金叉AND V AR2) OR (金叉AND V AR11);{涨停}STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 ANDCLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;{跌停}STICKLINE(CLOSE=CLOSE,CLOSE,OPEN,1.3,0),COLORF FBB00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.8,0),COLORC YAN;{红}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.3,0),COLOR000 099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR000 0CC;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3,0),COLOR000 0FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.8,0),COLORCC 66FF;{绿}STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR0 09900;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2.4,0),COLOR0 0BB00;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,1.3,0),COLOR0 0DD00;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,0.8,0),COLOR0 0FF00;{灰}STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR9 99999;STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORB BBBBB;STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,1.3,0),COLORD DDDDD;STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,0.8,0),COLORF FFFFF;STICKLINE(金叉,OPEN,CLOSE,1,0),COLORYELLOW;STICKLINE(死叉,OPEN,CLOSE,1,0),COLOR000099;DRAWICON(V AR16,LOW-0.02,7);DRAWICON(买1 OR 买2 OR 买3 OR 买4 OR 买5,LOW-0.01,1);DRAWICON(死叉OR V AR12 ORCROSS(40,V AR9),HIGH+0.01,2);X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10; EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 ANDEMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠45升'),COLORWHITE;V AR81:=1;V AR82:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉进:=20,COLORYELLOW,LINETHICK2;高死叉出:=90,COLORGREEN,LINETHICK3;V AR84:=LLV(LOW,5);V AR85:=HHV(HIGH,4);C1:=(EMA((((V AR82-V AR84)/(V AR85-V AR84))*100),4)*V A R81),COLORFF00FF,LINETHICK2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*V AR81),COL ORFFFFFF,LINETHICK2;条件:=CROSS(C1,C2) AND C180;DRAWTEXT(条件0,H*1.02,'S'),COLORBLUE;{DRAWTEXT(CROSS(C1,75),H*1.013,'险区'),COLORGREEN;}DRAWTEXT(TJ3,L*0.98,'买底'),COLORFF00FF;DRAWTEXT(TJ4,H*1.02,'逃顶'),COLORGREEN;E1:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);B0:=(AH-AL)/40;KB1:=H+B0;KB2:=L-B0;STICKLINE((E1+0)/34=FLOOR((E1+0)/34),KB2,KB2-0.8*B0 ,1,0),COLORYELLOW,LINETHICK3;DRAWTEXT((E1+0)/34=FLOOR((E1+0)/34),KB2-B0,'时窗'),COLORYELLOW;水平面:=EMA(CLOSE,89),COLOR3399FF;AAA:=(3*C+H+L+O)/6;短趋:=(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(AA A,8))/36;中趋:=(LLV(短趋,2)+LLV(短趋,4)+LLV(短趋,6))/3;{STICKLINE(C>中趋,短趋,中趋,0,0),COLORYELLOW;}TTJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>短趋;立桩量:=FILTER(TTJ1,5);TTJ2:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TTJ2=1;TTJ3:=IF(BARSLAST(立桩量)=1 ANDCLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TTJ3=1;成立:=三天法则AND 突破;条件成立:=FILTER(成立,3);DRAWICON(条件成立,L*0.91,1);DRAWTEXT(条件成立,L*0.91,'立桩'),COLORFF26FF;MA(C,9),LINETHICK0,COLORYELLOW;MA(C,21),LINETHICK0,COLORRED;IF(MA(C,9)<REF(MA(C,9),1),MA(C,9),DRAWNULL),LINET HICK0,COLORBLUE;IF(MA(C,21)<REF(MA(C,21),1),MA(C,21),DRAWNULL),LI NETHICK0,COLORGREEN;V AR90:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),4)REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DC LOSE,12)-EMA(DCLOSE,26)),9)))*2),1))) AND(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EM A(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)<REF((((EMA( DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12) -EMA(DCLOSE,26)),9)))*2),2))) AND(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EM A(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)O,L*0.98,'追加'),COLORMAGENTA;DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DIF" ,"MACD.DEA"),1))+1)>C ANDREF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF"," MACD.DEA"),1))+1)C ANDREF("KDJ.K",BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1 ))+1)C ANDREF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)0,L-0.18,'R'),COLORFF00FF;{RSI底背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA ","MACD.DIF"),1))+1)0,H+0.16,'★M'),COLORGREEN;{MACD顶背离};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.D","KD J.K"),1))+1)0,H+0.08,'◎K'),COLORGREEN;{KDJ顶背离}DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI2"," RSI.RSI1"),1))+1)0,H+0.04,'R'),COLORGREEN;{RSI顶背离};。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【通达信】超好主图(主线、股价重心、中短波)-指标公式源码主线:=(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,LINETHICK2 ,COLORFF00FF;股价重心:=DMA(AMOUNT/VOL/100,VOL/CAPITAL),COLORGREEN,LINETHICK2;MA14:=EMA(CLOSE,14);MA34:=EMA(CLOSE,26);MA54:=EMA(CLOSE,54);MA90:=EMA(CLOSE,90);MA120:EMA(CLOSE,120),POINTDOT,LINETHICK2,COLORWHITE;年线:EMA(C,250),COLORYELLOW,LINETHICK2;{中短波}HZ:=EMA(CLOSE,13);短波:EMA(HZ,1),COLOR00DD00,LINETHICK1;中波:EMA(HZ,26),COLORRED,LINETHICK1;均线148天:=EMA(C,148),POINTDOT,LINETHICK1,COLORGREEN;成本:=SUM(AMOUNT,0)/SUM(VOL,0)/100,COLORYELLOW ,LINETHICK2 ;HZ2:EMA(HZ,8),COLORGREEN,LINETHICK2;HZ4:EMA(HZ,39),COLORFF00FF,LINETHICK2;A1:STICKLINE(HZ2<HZ4,短波,HZ4,1,0),COLORBLUE ;A2:STICKLINE(短波>HZ2,短波,HZ2,2,0),COLORGREEN;A3:STICKLINE(中波>HZ4,中波,HZ4,1.5,0),COLORFF00FF;{慢速KDJ}RSV:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;FASTK:=SMA(RSV,12,1);K:=SMA(FASTK,9,1),COLORYELLOW;D:=SMA(K,3,1),LINETHICK2,COLORBLUE;J:=3*K-2*D,LINETHICK1,COLORGREEN;{中波}VAR11:=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);VAR22:=100-VAR11;中势线:=(-1)*(EMA(VAR22,1)-50)+42,COLORYELLOW,LINETHICK2;TZ:=(CLOSE-LLV(LOW,331))/(HHV(HIGH,331)-LLV(LOW,331))*100;强势线:=SMA(TZ,5,1),LINETHICK2,COLORRED;大盘线:=70*(HHV(HIGH,39)-CLOSE)/(HHV(HIGH,39)-LLV(LOW,39)),LINETHICK1,COL OR009900;{量选}AA:=VOL/SUM(VOL,13);BB:=DMA(C,AA);CC:=VOL/SUM(VOL,34);DD:=DMA(C,CC);{背离}VAR00:=WINNER(CLOSE);VAR1:=FORCAST(VAR00,10);VAR2:=MA(VAR1,3);VAR3:=MA(VAR2,12);VAR4:=MA(VAR3,16);VAR5:=MA(VAR4,31);VAR6:=MA(VAR5,55);VAR7:=VAR5;VAR8:=VAR4>VAR2*1.11 AND VAR3>VAR2*1.095;A:=VAR4/VAR2;B:=VAR3/VAR2;VAR9:=VAR2>VAR1*0.95;TD:=VAR2/VAR1;VAR1H:=INDEXC;VAR2H:=MA(VAR1H,6);VAR3H:=MA(VAR1H,24);VAR4H:=MA(VAR1H,32);VAR5H:=MA(VAR1H,62);VAR6H:=MA(VAR1H,105);VAR7H:=VAR5H;VAR8H:=VAR4H>VAR2H*1.11 AND VAR3H>VAR2H*1.095;VAR9H:=VAR2H>VAR1H*0.95;PT:=(IF(H=L AND C=O AND L=C AND C>0 AND REF(H,1)=REF(L,1) ANDREF(C,1)=REF(O,1)AND REF(H,1)=REF(C,1) AND REF(C,1)>0,0,1))>0;G:=(VAR7H AND VAR8H AND VAR9H AND CLOSE/COST(8)<=0.7985AND (COUNT(C=L,4)<3 OR C>REF(C,1)))AND PT ORVAR7 AND VAR8 AND VAR9 AND CLOSE/COST(5)<=0.8 AND((VAR1>OPEN OR VAR1>REF(OPEN,1) ORREF(VAR1,1)));背离:=VAR2<REF(VAR2,1) AND A>REF(A,1);买入信号1:=VAR1>A AND VAR2>B;买入信号2:=B>A AND 1>B AND A<1 AND H=HHV(H,21);BUY:=COUNT(背离,20)>1 AND 买入信号2=1 AND C>O OR CROSS(BB,DD); DRAWICON(CROSS(短波,HZ2),中波,1);X1:=CROSS(主线,MA90) AND 大盘线<36 AND J>K AND 强势线>REF(强势线,1) AND 中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 ANDHZ4-REF(HZ4,1)>0.028;X2:=CROSS(主线,MA120) AND 大盘线<36 AND J>K AND 强势线>REF(强势线,1) AND中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 ANDHZ4-REF(HZ4,1)>0.028;X3:=CROSS(MA120,均线148天) AND 大盘线<36 AND J>K AND 强势线>REF(强势线,1) AND中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088 ANDHZ4-REF(HZ4,1)>0.028;X4:=CROSS(中势线,33) AND 短波>HZ2 AND O>REF(O,1) AND C>REF(C,1) AND J>D ANDJ<65 AND 大盘线<36 AND 强势线>36 AND 主线>REF(主线,1)AND 强势线>REF(强势线,1) AND 中势线>REF(中势线,1) AND 中势线<70 AND C>O ANDMA34>REF(MA34,1) AND 短波-REF(短波,1)>0.088 AND HZ4-REF(HZ4,1)>0.028; X5:=CROSS(短波,HZ2) AND 大盘线<36 AND 短波>中波 AND 中波>HZ4 AND短波-REF(短波,1)>0.088 AND HZ4-REF(HZ4,1)>0.028;X6:=J>K AND 大盘线<36 AND 短波>HZ2 AND CROSS(强势线,36);X7:=CROSS(短波,HZ2) AND CROSS(强势线,36);X8:=CROSS(J,K) AND CROSS(强势线,33);X9:=CROSS(短波,HZ2) AND CROSS(强势线,54);X10:=CROSS(J,K) AND 大盘线<36 AND J<65 AND C>O AND 短波-REF(短波,1)>0.088;X11:=CROSS(J,K) AND 短波>HZ2 AND J<68 AND 短波>REF(短波,1) ANDHZ2>REF(HZ2,1)AND 中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088;X12:=CROSS(J,K) AND 大盘线<36 AND J<68 AND 短波-REF(短波,1)>0.088;X13:=CROSS(J,K) AND CROSS(短波,HZ2) AND 大盘线<36;X14:=CROSS(短波,HZ2) AND 大盘线<36 AND J>K AND J<68 AND 强势线>REF(强势线,1) AND中势线>REF(中势线,1) AND 短波-REF(短波,1)>0.088;X15:=CROSS(短波,HZ2) AND 中波>MA120 AND 中波>均线148天 AND HZ2>MA120 ANDMA120>均线148天 AND 短波-REF(短波,1)>0.088;X16:=CROSS(J,K) AND 强势线>54 AND 强势线>REF(强势线,1) AND J<68;X17:=COUNT(背离,20)>1 AND 短波>HZ2 AND O>REF(O,1) AND C>REF(C,1) AND J>D ANDJ<65 AND 买入信号2=1 AND 主线>REF(主线,1)AND 中势线>REF(中势线,1) AND 中势线<70 AND C>O;X18:=CROSS(BB,DD) AND J<74 AND MA34>REF(MA34,1) AND 短波-REF(短波,1)>0.088;X19:=大盘线<36 AND J>D AND J<65 AND C>O AND 短波>REF(短波,1) AND CROSS(HZ2,中波)AND 短波-REF(短波,1)>0.088 AND O>REF(C,1);X20:=C>O AND 短波>REF(短波,1) AND J>D AND J<65 AND 大盘线<36 AND CROSS(中势线,33) AND 中势线-REF(中势线,1)>0.23 AND 短波-REF(短波,1)>0.088 AND O>REF(C,1) AND 强势线>12;X21:=短波>HZ2 AND 中波>HZ4 AND 大盘线<36 AND CROSS(J,K) AND J<65 AND 短波-REF(短波,1)>0.088;X22:=短波>HZ2 AND 大盘线<36 AND CROSS(J,K) AND J<65 AND 短波-REF(短波,1)>0.088;X23:=CROSS(J,K) AND CROSS(短波,HZ2) AND 大盘线<36 AND J<56;X24:=短波>HZ2 AND 中波>HZ4 AND 大盘线<36 AND J>D AND J<65 AND CROSS(HZ4,年线) AND 短波-REF(短波,1)>0.088;X25:=短波>HZ2 AND HZ2>HZ4 AND 大盘线<36 AND J>D AND J<65 AND J<65 AND CROSS(强势线,46) AND 短波-REF(短波,1)>0.088;X26:=短波>HZ2 AND 大盘线<36 AND J>D AND J<65 AND CROSS(中势线,36) AND 短波-REF(短波,1)>0.088;DRAWTEXT(X1 OR X2 OR X3 OR X4 OR X5 OR X6 OR X7 OR X8 OR X9 OR X10 OR X11 ORX12 OR X13 OR X14 OR X15 OR X16 OR X17 OR X18 OR X19 OR X20 OR X21 OR X22 ORX23 OR X24 OR X25 OR X26,HZ2-0.18,'!追'),COLORWHITE;{好} DRAWTEXT(CROSS(短波,HZ2) AND C>O AND J>K AND J>D AND 大盘线<36 AND C>HZ4,L*1.09,'●'),COLORYELLOW;DRAWTEXT(CROSS(短波,HZ2) AND C>O AND J>K AND J>D AND 大盘线<36 AND C>HZ4,L*1.12,'做趋势'), COLORYELLOW;DRAWTEXT(CROSS(短波,HZ2),C,'♂');DRAWTEXT(CROSS ( 中波,HZ4),C,'♂');DRAWTEXT(CROSS ( 中波,MA120),C,'♂');DRAWTEXT(CROSS (HZ4,MA120),C,'♂');【通达信】超好主图(主线、股价重心、中短波)-指标公式效果图(文档来源:若水财经社区)。