比较稳定的通达信指标公式

合集下载

通达信技术指标公式大全

通达信技术指标公式大全

通达信技术指标公式大全本文档汇总了通达信软件中常用的技术指标公式,供参考使用。

1. 移动平均线指标公式- 简称:MA简称:MA- 公式:MA(CLOSE, N)公式:MA(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的移动平均线。

说明:计算收盘价CLOSE在N周期内的移动平均线。

2. 相对强弱指标公式- 简称:RSI简称:RSI- 公式:RSI(CLOSE, N)公式:RSI(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的相对强弱指标。

说明:计算收盘价CLOSE在N周期内的相对强弱指标。

3. 随机指标公式- 简称:KDJ简称:KDJ- 公式:KDJ(N, M, RSV)公式:KDJ(N, M, RSV)- 说明:计算随机指标K、D、J。

说明:计算随机指标K、D、J。

4. 线性回归指标公式- 简称:LINEARREG简称:LINEARREG- 公式:LINEARREG(CLOSE, N)公式:LINEARREG(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的线性回归。

说明:计算收盘价CLOSE在N周期内的线性回归。

5. 移动平均收敛/发散指标公式- 简称:MACD简称:MACD- 公式:MACD(EMA12, EMA26, MACD9)公式:MACD(EMA12, EMA26, MACD9)- 说明:计算移动平均线的收敛/发散指标。

说明:计算移动平均线的收敛/发散指标。

6. 布林带指标公式- 简称:BOLL简称:BOLL- 公式:BOLL(CLOSE, N)公式:BOLL(CLOSE, N)- 说明:计算收盘价CLOSE在N周期内的布林带指标。

说明:计算收盘价CLOSE在N周期内的布林带指标。

7. 高低价指标公式- 简称:H_L简称:H_L- 公式:H_L(HIGH, LOW)公式:H_L(HIGH, LOW)- 说明:根据最高价HIGH和最低价LOW计算高低价指标。

通达信非常好用的组合指标公式

通达信非常好用的组合指标公式

通达信非常好用的组合指标公式N:=6;DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;DEA1:=EMA(DIF1,9);MACD1:=(DIF1-DEA1)*100,COLORSTICK;STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:SMA(RSV,5,1);D:SMA(K,3,1);J:3*K-2*D;VARB2:=(RSV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH),COLORRED;低买:IF(黄金AND RSV<VARB2-2,45,0),COLORRED,LINETHICK3;DRAWTEXT(黄金 AND RSV<VARB2-2,70,'加'),COLOR00FFFF;DRAWTEXT(黄金 AND RSV<VARB2-2,50,'仓'),COLOR00FFFF;上涨分界:25;底部:0,COLORF00FF0,LINETHICK2;DRAWICON(CROSS(J,底部),底部,34);DRAWTEXT(CROSS(J,底部),底部,'买入'),COLORRED;VAR1:=REF(CLOSE,1);VAR2:=SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100;特别准:STICKLINE(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),3,14,5,0),LINETHICK4,COLORRED;有点准:STICKLINE(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),14,27,3,0),LINETHICK3,COLORMAGENTA;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离:=MA(BIAS,3);红柱抄底:STICKLINE(CROSS(BIAS,乖离) AND 乖离<-9.5,27,40,1,0),COLOR00FFFF;DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9),COLORFFFF00;MACD:=(DIFF-DEA)*2;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));MACD底背离:STICKLINE(REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),40,50,1,0),COLOR00FF00;VAR6:=LLV(LOW,10);VAR8:=HHV(HIGH,25);减仓线:=3.2 ;卖出线:=3.5;动力线:=EMA((CLOSE-VAR6)/(VAR8-VAR6)*4,4);清仓线:=EMA((CLOSE-VAR6)/(VAR8-VAR6)*5,5);DRAWICON(CROSS(动力线,减仓线),85,2);DRAWTEXT(CROSS(动力线,减仓线),85,'减仓'),COLORBLUE;DRAWICON(CROSS(卖出线,动力线),90,35);DRAWTEXT(CROSS(卖出线,动力线),95,'减仓'),COLORRED;DRAWTEXT(CROSS(卖出线,清仓线),100,'清仓'),COLOR00FF00;VAR3:=PEAKBARS(3,15,1)<10;VAR5:=IF(VAR3=1,2,0);顶:= IF(VAR5=2,2,0);顶A:IF(顶>REF(顶,1),50,0),COLORGREEN,LINETHICK3;DRAWTEXT(顶A=50,60,'快'),COLORMAGENTA;DRAWTEXT(顶A=50,50,'逃'),COLORRED;DRAWTEXT(顶A=50,40,'顶'),COLORMAGENTA;LC:=REF(CLOSE,1);RSI6:SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100,COLORRED,LINETHICK1;DRAWTEXT(RSI6>82,85,'减')COLOR00FF00;DRAWTEXT(RSI6<12.8,6,'补')COLORYELLOW;{W&R出击}{WR1:100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N));WR2:100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1))}VAR1J:=REF("WR.WR1"(10,6),1)>REF("WR.WR1"(10,6),2);VAR2J:=REF("WR.WR1"(10,6),1)>98;VAR3J:="WR.WR1"(10,6)<REF("WR.WR1"(10,6),1);W&R:IF(VAR1J AND VAR2J AND VAR3J,60,0),STICK,LINETHICK3,COLORRED;DRAWTEXT(VAR1J AND VAR2J AND VAR3J,40,'W&R'),COLORF0F000;{DRAWTEXT(VAR1J AND VAR2J AND VAR3J,30,'98以上弯头'),COLORF0F000;};V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主力撤: IF(V4<=0,V4,0),COLORBLUE;主力进: IF(V4>=0,V4,0),COLORFF00FF;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:IF(VB>=0,VB,0),COLORRED;大盘资金撤走:IF(VB<=0,VB,0),COLORGREEN;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线: EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金: STICKLINE(趋势线<=13,0,20,2,0),COLORCC9900;AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);DRAWTEXT (AA,30,'准备现金'),COLORCC9900;买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),COLOR0099FF;BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ;DRAWTEXT (BB,60,'买入股票'),COLOR0099FF;卖临界: STICKLINE(趋势线>90 AND 趋势线>REF(趋势线,1),100,95,15,1),COLORFFFF00;见顶清仓:FILTER(趋势线>90 AND 趋势线<REF(趋势线,1) AND 主力进<REF(主力进,1),8);DRAWTEXT( 见顶清仓,90,'逃顶'),COLORYELLOW;CC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);STICKLINE(大盘资金进场 AND 趋势线<13,0,30,2,0),COLORRED;STICKLINE(大盘资金撤走AND 趋势线>90,0,30,2,0),COLORGREEN;STICKLINE(主力进 AND 趋势线<13,0,40,2,0),COLORFF00FF;STICKLINE(主力撤 AND 趋势线>90,0,40,2,0),COLORBLUE;。

精选的通达信选股指标公式大集合

精选的通达信选股指标公式大集合

简单的选股指标公式大集合这些选股公式对于一些突发奇想很有帮助,至少对在下是这样!以下内容于数月前复制于网络,向原作者致敬!一、次日涨停W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));W4 AND COUNT(W4,5)=1;二、黄转紫选股DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;紫柱:MACD<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2);三、低位金叉选股DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;低位金叉:CROSS(DIFF,DEA) AND DIFF<-0.1;四、二次金叉选股DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);DEA:=EMA(DIFF,9);MACD:=(DIFF-DEA)*2;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;五、绝地反弹(1)、VAR1:=REF(LOW,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*100; VAR3:=EMA(IF(CLOSE*1.2,VAR2*13,VAR2/13),13);VAR4:=LLV(LOW,34);VAR5:=HHV(VAR3,34);VAR6:=IF(LLV(LOW,55),1,0);VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;XL1:=MA(LOW,2)*0.96;XL2:=MA(LOW,26)*0.85;XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);启动:=IF(XL3,0,VAR7*3),COLORRED;XG:启动>25;(2)、BACKSET( (REF(CLOSE,1)<REF(OPEN,1) ANDCLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002),2);A2:=FILTER(A1<=V3,10);ND CAPITAL<300000000REF(V,1)= LLV(V,4) AND V >=REF(V,1)HHV(V,3)=REF(V,1) AND HHV(V,5)=REF(V,1) AND HHV(V,21)=REF(V,1)AND V >=REF(V,1)01>0 AND T02>0;六.三线粘合M:=1;M5:=MA(CLOSE,5);M10:=MA(CLOSE,10);M20:=MA(CLOSE,20);K1:=MAX(MAX(M5,M10),MAX(M10,M20));K2:=MIN(MIN(M5,M10),MIN(M10,M20));A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))<1+0.03*M;A1:=(K1/K2-1)<0.005;A2:=(K1/K2-1)<0.005;A3:=V>REF(V,1)*1.5 AND V>MA(V,5);XG:A AND A1 AND A2 AND A3AND C>O AND V> REF(V,1)AND CAPITAL<=300000000;2.三条线粘合N1:=5;N2:=10;N3:=20;M:=1;MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);A3:=V>REF(V,1)*1.5 AND V>MA(V,5);MAX(MA1,MAX(MA2,MA3))/MIN(MA1,MIN(MA2,MA3))<1+0.01*MAND C>O AND V> REF(V,1)AND FINANCE(7)<=300000000AND A3 AND CAPITAL<=300000000;3.均线粘合M:=1;M5:=MA(CLOSE,5);M10:=MA(CLOSE,10);M20:=MA(CLOSE,20);K1:=MAX(MAX(M5,M10),MAX(M10,M20));K2:=MIN(MIN(M5,M10),MIN(M10,M20));A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))<1+0.01*M;A1:=(K1/K2-1)<0.005;A2:=(K1/K2-1)<0.005;A3:=V>REF(V,1)*1.5 AND V>MA(V,5);XG:A AND A1 AND A2AND A3 ;七.金叉选股指标快线:=EMA(EMA(EMA(EMA(CLOSE,2),2),2),2);慢线:=EMA(REF(快线,1),2);A3:=V>REF(V,1)*1.5 AND V>MA(V,5);XG:CROSS(快线,慢线) AND C>O ANDV>=MA(V,21) AND V> REF(V,1) AND CAPITAL<=300000000 ;八.角度MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);V0:CROSS(MA5,MA10) AND CROSS(MA10,MA20) ANDCROSS(MA5,MA20);IF(角度MA3>45 AND 角度MA5>40 AND 角度MA10>10AND 角度MA20>20 AND MA(C,135)>REF(MA(C,135),1),1,0),COLOR00FF00九1.聚宝盆DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIFF,M);MACD2:=2*(DIFF-DEA);HHV(MACD2,4)<0 AND MACD2>REF(MACD2,1) AND REF(MACD2,1)<REF(MACD2,2) AND REF(MACD2,2)<REF(MACD2,3);2.强势股{SJXXG四均线选股}MA3:=MA(C,3);MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);V0:=MA(C,3)>REF(MA(C,3),1) AND MA(C,5)>REF(MA(C,5),1) AND C>MA(C,3)AND MA(C,3)>MA(C,5) ; {均线C,MA3,MA5多头排列并向上;}角度MA3:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416;角度MA10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;角度MA20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;选股MA20:IF(角度MA3>45 AND 角度MA5>45 AND 角度MA10>60 AND 角度MA20>45 AND MA(C,250)>REF(MA(C,250),1),1,0),COLOR00FF00;{设计思路:1.3日均线角度大于45度;2:5日均线角度大于45度;3:10日均线角度大于60度;4.20日均线角度大于45度;5.MA250向上;};3。

通达信成功率高的选股指标公式

通达信成功率高的选股指标公式

通达信成功率高的选股指标公式代码集{逆势买入}Var1b:=DMA(CLOSE,VOL/MA(VOL,4)/4);Var2b:=DMA(CLOSE,VOL/MA(VOL,32)/32);Var3b:=(CLOSE-Var1b)/Var1b*100<-8;Var4b:=(Var1b-Var2b)/Var2b*100<-21;逆势买入:if(V ar3b AND Var4b AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05,45,0),stick,linethick3,col orf00ff0;drawtext(逆势买入,40,'逆势买入'),colorf0f000;============================{龙战四海:99%成功率,选股条件:龙战四海=65}Var1c:=REF(OPEN,1)<REF(OPEN,2);Var2c:=REF(CLOSE,1)<REF(CLOSE,2);Var3c:=REF(LOW,1)<REF(LOW,2);Var4c:=OPEN>REF(CLOSE,1) AND OPEN/REF(CLOSE,1)>=1.03; Var5c:=CLOSE>OPEN AND CLOSE/OPEN>1.03;Var6c:=Var1c AND Var2c AND Var3c AND Var4c AND Var5c;Var7c:=CLOSE/MA(CLOSE,3)>=1.07 AND CLOSE=HHV(CLOSE,3) AND MA(VOL,2)/MA(VOL,40)>=3 AND MA(VOL,2)=HHV(MA(VOL,2),3) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);Var8c:=REF(CLOSE,1);Var9c:=SMA(MAX(CLOSE-Var8c,0),5,1)/SMA(ABS(CLOSE-Var8c),5, 1)*100;VarA:=COUNT(Var9c<20,20)>=1;VarB:=Var7c AND VarA;龙战四海:if(VarB AND Var6c,65,0),colorf0f000;drawtext(龙战四海,55,'龙战四海'),colorf00ff0;{股价经历了相当长一段时间下跌后,做空能量逐渐消耗。

通达信技术指标公式

通达信技术指标公式

通达信技术指标公式通达信是国内知名的股票分析软件,其所提供的技术指标具有一定的实用价值。

以下是通达信常用的技术指标公式,包括趋势指标、震荡指标和成交量指标:一、趋势指标1、移动平均线(MA)MA=N日收盘价的总和/N2、指数平滑移动平均线(EMA)EMA(C,N)=2/(N+1)×[C-昨日EMA]+昨日EMA3、相对强弱指标(RSI)RSI=N日内上涨总幅度÷(N日内上涨总幅度+ N日内下跌总幅度)×100%4、平均趋向指标(ADX)DM=当日高价-昨日高价、昨日低价-当日低价真实波幅(TR)=当日最高价-当日最低价、当日最高价-昨日收盘价、昨日收盘价-当日最低价上升动向变动值(+DI)=14日上升动向值(+DM)÷14日真实波幅×100%下降动向变动值(-DI)=14日下降动向值(-DM)÷14日真实波幅×100%DX=(+DI- -DI)÷(+DI+ -DI)×100%ADX=DX的平均数二、震荡指标1、随机指标(KDJ)RSV=(收盘价-N日内最低价)÷(N日内最高价- N日内最低价)×100% K=2/3×昨日K值+1/3×当日RSVD=2/3×昨日D值+1/3×当日KJ=3×当日K-2×当日D2、布林带指标(BOLL)中轨线=MA(N)上轨线=中轨线+k×样本标准差下轨线=中轨线-k×样本标准差3、相对强弱指标(CCI)TP=(最高价+最低价+收盘价÷3)MA= N日内TP的平均值MD=绝对值(TP-MA)的N日简单移动平均CCI=(TP-MA)÷0.015×MD三、成交量指标1、成交量指标(VOL)MA= N日内成交量的总和÷N2、能量潮指标(OBV)当日OBV=前一日OBV+当日交易日的股票数×当日股票价格3、广义移动平均线(GMMA)短期移动平均线:N日移动平均线长期移动平均线:N+k)日移动平均线四、总结以上介绍的通达信技术指标公式并非全部,但这些是最常用的指标之一。

通达信有价值的经典指标公式

通达信有价值的经典指标公式

通达信有价值的经典指标公式以下是通达信有价值的经典指标公式(无源码的请下载附件导入)1 KDJ提前金叉N:=5;M1:=5;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,5,1);D:=SMA(K,M1,5);J:=3*K-2*D;VARB2:=(RSV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH);低买:=IF(黄金 AND RSV高卖:=IF(黄金 AND RSV>VARB2,80,120);上涨分界:=25;选股:(CROSS(上涨分界,低买));2 山沟涨停选股WA2:=(HHV(H,50)-L)/C>0.5;B2:=(HHV(H,8)-L)/C>0.25;A:=A2 AND B2;XG:COUNT(A,5)>=1 AND C/REF(C,1)>=1.095;3 抓牛启动点A:=LLV(HIGH,240);A2:=REF(LLV(CLOSE,480),1);A3:=REF(HHV(CLOSE,480),1);A4:=EMA(EMA(CLOSE,2)-EMA(CLOSE,150),100);A5:=2*(EMA(CLOSE,2)-EMA(CLOSE,150)-A4);A6:=POW(A5,3)*0.1+POW(A5,1);A7:=IF(A5>0.1,A6,0)*5;A8:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;CROSS(A8,A) AND CROSS(A8,A2) AND CROSS(A8,A3) AND CROSS(A7,A) AND CROSS(A7,A2) AND CROSS(A7,A3);4 低开长阳M:=4;N:=7;低开长阳:OPEN<= 1-M/100 AND CLOSE/OPEN>=1+N/100,COLORRED;DRAWICON(低开长阳,1.1,4);5 超级组合顶底N:=5;M1:=5;RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5,1);D:=SMA(K,M1,5);J:=3*K-2*D;VARB2:=(RSV/2+22)*1;量:=EMA(VOL,13);资金:=EMA(AMOUNT,13);过滤:=((资金 /量) / 100);提纯:=(((CLOSE -过滤) / 过滤) * 100);黄金:=((提纯 < (0)) AND ZXNH);低买:=IF(黄金 AND RSV高卖:=IF(黄金 AND RSV>VARB2,80,120);上涨分界:=25;选股:(CROSS(上涨分界,低买));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)B3:=IF(C>O,O,C);B4:=B1>B2 AND B3>B2 AND REF(C,1)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&&OPENXG1:=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;6 侯氏私募选股A01:=DYNAINFO(7);A02:=MA(((AMOUNT / VOL) / 100),(VOL / CAPITAL));A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=(DMA(A06,(VOL / CAPITAL)) * 100);A08:=IF((A02 > A01),(100 - A07),A07);A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);STICKLINE((A09 > 0),0,A09,5,0),COLORFF00FF;黄金线选股:IF(((CROSS(A09,0.009) AND (OPEN && LOW)) AND (CLOSE && LOW)),20,0),COLORFF00FF;私募黄金线:A09,LINETHICK2,COLOR00FFFF;RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);MSD:EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORWHITE;风险区:80,COLORFF85FF;安全区:20,COLORYELLOW;天线:100,COLORFFFF00,LINETHICK2;地线:=0,LINETHICK2 COLOR6699FF;强弱线:50,COLORGREEN,POINTDOT;VAR1:=HHV(HIGH,9)-LLV(LOW,9);VAR2:=HHV(HIGH,9)-CLOSE;VAR3:=CLOSE-LLV(LOW,9);VAR4:=VAR2/VAR1*100-70;VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR7:=SMA(VAR3/VAR1*100,3,1);VAR8:=LLV(LOW,34);VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);VAR10:=IF(VAR9>100,VAR9-100,0);VAR11:=HHV(HIGH,34);VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);趋势值:VAR13,COLORRED;STICKLINE(VAR12-VAR13>0,VAR12,VAR13,8,0),COLORRED;STICKLINE(VAR12-VAR13<0,VAR12,VAR13,8,0),COLOR00FF0F;VARK1:=EMA(HHV(HIGH,500),21);VARK2:=EMA(HHV(HIGH,250),21);VARK3:=EMA(HHV(HIGH,90),21);VARK4:=EMA(LLV(LOW,500),21);VARK5:=EMA(LLV(LOW,250),21);VARK:=EMA(LLV(LOW,90),21);VARK7:=EMA((VARK4*0.96+VARK5*0.96+VARK*0.96+VARK 1*0.558+VARK2*0.558+VARK3*0.558)/6,21);VARK8:=EMA((VARK4*1.25+VARK5*1.23+VARK*1.2+VARK1* 0.55+VARK2*0.55+VARK3*0.65)/6,21);VARK9:=EMA((VARK4*1.3+VARK5*1.3+VARK*1.3+VARK1*0. 68+VARK2*0.68+VARK3*0.68)/6,21);VARKA:=EMA((VARK7*3+VARK8*2+VARK9)/6*1.738,21);VARKB:=REF(LOW,1);VARKC:=SMA(ABS(LOW-VARKB),3,1)/SMA(MAX(LOW-VARKB,0),3,1)*100;VARKD:=EMA(IF(CLOSE*1.35<=VARKA,VARKC*10,VARKC/10 ),3);VARKE:=LLV(LOW,30);VARKF:=HHV(VARKD,30);VARK10:=IF(MA(CLOSE,58),1,0);火焰山: EMA(IF(LOW<=VARKE,(VARKD+VARKF*2)/2,0),3)/618*VARK10;火焰: STICKLINE(火焰山>0,0,火焰山,4,1);今量: 火焰山;STICKLINE(火焰山>0,0,今量*1.2,8,0) COLOR0000FF; STICKLINE(火焰山>0,0,今量*0.8,8,0) COLOR0066FF; STICKLINE(火焰山>0,0,今量*0.6,8,0) COLOR0099FF; STICKLINE(火焰山>0,0,今量*0.4,8,0) COLOR00CCFF; STICKLINE(火焰山>0,0,今量*0.2,8,0) COLOR00FFFF;。

比较稳定的通达信指标公式

比较稳定的通达信指标公式

比较稳定的通达信指标公式1. 12日EMA(12日指数移动平均线):的计算公式是:12日EMA=昨天的EMA+今天的收盘价*(2/13)。

2. 26日EMA(26日指数移动平均线):的计算公式是:26日EMA=昨天的EMA+今天的收盘价*(2/27)。

3. MACD(指数平滑异同平均线):的计算公式是:MACD(12,26,9)=12日EMA-26日EMA 、柱状线=MACD-某一周期前的MACD 、离差线=(DIF-DEA)*2 。

4. KDJ(随机指标):的计算公式是:KDJ(9,3,3) = (当日最高价-N日内最低价之差÷N日内最高价-最低价之差)×100 、 D=(K值的M日算术平均值)、 J= 3K-2D 。

5. PSY(心理线):的计算公式是:PSYMA=N日以来,收盘价大于前一日收盘价的天数占总天数的百分比PSY=PSYMA×100 。

6. BOLL(布林线):的计算公式是:中轨线=N日的算术平均值、上轨线=中轨线+两倍的标准差、下轨线=中轨线-两倍的标准差。

7. SAR(停损反向移动点):的计算公式是:SAR = SARn-1 + AF x (EP - SARn-1) 、其中,SARn-1表示上一周期的SAR值,EP表示该周期的极点值,AF是加速因子,在该波段的价格上涨或者下跌时,加速因子AF都会持续增加。

8. RSI(相对强弱指标):的计算公式是:RSI=N日内收盘涨数平均值÷N日内收盘跌数平均值×100 。

9. WR(Williams指标):的计算公式是:%R = (HIGHn - CLOSEn) / (HIGHn - LOWn) * 100 、其中HIGHn、LOWn、CLOSEn都是某一天的最高价、最低价、收盘价。

10. MTM(动量线):的计算公式是:MTM=今日收盘价-N日前的收盘价。

通达信经典量柱主图指标公式

通达信经典量柱主图指标公式

通达信经典量柱主图指标公式黄金柱:=V/REF(V,1)>=2.0;K1:=SUMBARS(黄金柱,1) ;K2:=SUMBARS(黄金柱,2);K3:=SUMBARS(黄金柱,3);K4:=SUMBARS(黄金柱,4);K5:=SUMBARS(黄金柱,5);K6:=SUMBARS(黄金柱,6);K7:=SUMBARS(黄金柱,7);K8:=SUMBARS(黄金柱,8);K9:=SUMBARS(黄金柱,9);K10:=SUMBARS(黄金柱,10);AA:STICKLINE(K1,REF(L,K1-1)*1.002,REF(L,K1-1),5,0),COLORYELLOW;{预定黄金柱}{预定黄金柱:=REF(V,2)>=REF(V,3)*1.99 AND REF(C,2)>REF(O,2)AND REF(V,2)=HHV(V,3) AND C/REF(C,2) >=1.0995 AND REF(L,2)=LLV(L,3);}{预定:STICKLINE(预定黄金柱,H,H,30,0),COLORRED;}{DRAWICON(预定黄金柱,H,19);}{将军柱中的五星上将黄金柱}T60:=V=HHV(V,60);T100:=V=HHV(V,100);T2:=V/REF(VOL,1)>=3;T3:=REF(C,1)/REF( O,1)<3;五星上将:=(T60 AND T2 AND T3) OR (T100 AND T2 AND T3);DRAWICON(五星上将,H,23);{量柱图}C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,-1,0),COLORWHITE;STICKLINE(涨停,H,L,0,0),COLORWHITE;DRAWICON(涨停,L-0.2,11);DRAWTEXT(涨停,L-0.2,' --涨停');跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;DRAWICON(跌停,H+0.2,2);DRAWTEXT(跌停,H+0.2,' --跌停');{大阳线:=IF((C-C2)*100/C2>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0) AND IF((C-C2)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阳线,OPEN,CLOSE,-1,0),COLORRED;STICKLINE(大阳线,H,L,0,1),COLORRED;大阴线:=IF((C2-C)*100/C2>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0) AND IF((C2-C)*100/C2<(10-0.01*100/C2),1,0);STICKLINE(大阴线,OPEN,CLOSE,-1,0),COLORGREEN;STICKLINE(大阴线,H,L,0,1),COLORGREEN;}{MA13:MA(CLOSE,13),COLORWHITE;MA34:MA(CLOSE,34),COLORYELLOW;MA55:MA(CLOSE,55),COLOR9933FF;}{MA4:MA(CLOSE,4),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,20),COLOR9933FF;MA30:MA(CLOSE,30),COLORLIBLUE;MA60:MA(CLOSE,60),COLORWHITE;MA120:MA(CLOSE,120),COLORLIGREEN;}TY:=C;AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); C1:=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);前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK3;前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK3;{求位置坐标}PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));{自动画量能平台}{NN 1 300 21}{NN:=21;TTJ:=BARSLAST(REF(倍量黄金柱,NN-1));K0:=TTJ=0;K1:=SUMBARS(K0,1);K2:=SUMBARS(K0,2);K3:=SUMBARS(K0,3);K4:=SUMBARS(K0,4);K5:=SUMBARS(K0,5);K6:=SUMBARS(K0,6);K7:=SUMBARS(K0,7);K8:=SUMBARS(K0,8);K9:=SUMBARS(K0,9);K10:=SUMBARS(K0,10);CCCC1:=REF(C,K1-1);}{在K线图上标示量柱类型}倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);低量:=DRAWICON(VOL<REF(LLV(VOL,13),1),H+0.1,2);地量:=DRAWICON(VOL<REF(LLV(VOL,100),1),H+0.1,12);平量:=DRAWICON(ABS(VOL-HHV(REF(VOL,1),5))/HHV(REF(VOL,1),5)<=0.03 OR ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.03,H+0.1,16);倍缩:=DRAWICON(VOL<=REF(V,1)*0.5,H+0.1,27);{画量柱标识:}{1.画倍量黄金柱标识--红箭头图标}倍量黄金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,1);{2.画梯量黄金柱标识--橘子图标}梯量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17);{3.画平量黄金柱标识--苹果图标}平量黄金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)<REF(V,3) ANDREF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);{4.画立桩量标识--顶部红箭头图标}N:=25;立桩量:=REF(V,3)/REF(MA(V,5),4)>(N/10) ANDREF(V,3)/REF(HHV(V,60),4)>1.5 AND LLV(L,3)>REF(L,3);STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;倍量黄金线:STICKLINE(倍量黄金柱,PHD,PHD,30,0),COLORWHITE;DRAWICON(倍量黄金柱,PHD*1.008,12);DRAWTEXT(倍量黄金柱,PHD*1.010,' 标准黄金柱精准线'),COLORFF00FF;DRAWTEXT(倍量黄金柱,PHD,'================='),COLORWHITE;{平量黄金线:STICKLINE(平量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(平量黄金柱,PHD*1.015,'平量黄金线'),COLORLIGREEN ;梯量黄金线:STICKLINE(梯量黄金柱,PHD*1.002,PHD,100,0),COLORYELLOW;DRAWTEXT(梯量黄金柱,PHD*1.015,'梯量黄金线'),COLORFF00FF ;}立桩量标识:DRAWICON(立桩量,H*1.002,1);DRAWTEXT(立桩量,H*1.06,'立'),COLORRED;DRAWTEXT(立桩量,H*1.04,'桩'),COLORRED;DRAWTEXT(立桩量,H*1.02,'量'),COLORRED;{DA:STICKLINE(K4<=30,REF(C,K4-1)*1.002,REF(C,K4-1),10,0),COLORBLUE;EA:STICKLINE(K5<=30,REF(C,K5-1)*1.002,REF(C,K5-1),10,0),COLORBLUE;FA:STICKLINE(K6<=30,REF(C,K6-1)*1.002,REF(C,K6-1),10,0),COLORBLUE;GA:STICKLINE(K7<=30,REF(C,K7-1)*1.002,REF(C,K7-1),10,0),COLORBLUE;HA:STICKLINE(K8<=30,REF(C,K8-1)*1.002,REF(C,K8-1),10,0),COLORBLUE;IA:STICKLINE(K9<=30,REF(C,K9-1)*1.002,REF(C,K9-1),10,0),COLORBLUE;JA:STICKLINE(K10<=30,REF(C,K10-1)*1.002,REF(C,K10-1),10,0),COLORBLUE;}AAA:=CONST(HHV(H,90));TS1:=0+0.03;TS2:=TS1+0.03;TS3:=TS2+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS1),'<一>.量柱的阶段性拐点标志--空间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS2),' 1.平台起柱:在K线整理平台上突然起柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS3),' 2.凹口起柱:在K线逐步回调形成凹口时起柱.常见凹口倍量;'),COLORFF00FF ;TS4:=TS3+0.03;TS5:=TS4+0.03;TS6:=TS5+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS4),' 3.过顶起柱:过左峰起柱.常见过顶倍量;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS5),' 4.触底起柱:触前期谷底起柱.常见触底倍量.'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS6),'<二>.量柱的集合定性--组合量柱:'),COLORFF00FF ;TS7:=TS6+0.03;TS8:=TS7+0.03;TS9:=TS8+0.03;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS7),' 1.低量柱+倍量柱:后市必大涨!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS8),' 2.倍量柱+倍量柱:主庄控盘良好,急于拉升!'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=158,AAA-(AAA*TS9),' 3.缩倍柱+倍量柱:机会就在眼前!'),COLORFF00FF ;{============================}BBB:=CONST(HHV(H,190));TT1:=0+0.03;TT2:=TT1+0.03;TT3:=TT2+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT1),'<三>.量柱的三日定性--时间转化原则:'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT2),' 1.后三日价升量缩:转化为黄金柱;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT3),' 2.后三日量柱先阴后阳:该量柱官升一级;'),COLORFF00FF ;TT4:=TT3+0.03;TT5:=TT4+0.03;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT4),' 3.后三日量柱阴阳相间:量柱退化,走势面临调整;'),COLORFF00FF ;DRAWTEXT(CURRBARSCOUNT=300,BBB-(BBB*TT5),' 4.后三日量柱实体逐步缩小:力量将衰退,面临调整.'),COLORFF00FF ;{底部趋势拐点}VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);VOLUME:=VOL;AAG:=VOL>=REF(V,1)*1.91 AND C>REF(C,1);AA1G:=VOL<REF(LLV(VOL,21),1);AA2G:=VOL<REF(LLV(VOL,55),1);AA3G:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05;MAVOL5:=MA(VOLUME,5);MAVOL35:=MA(VOLUME,35);MAVOL135:=MA(VOLUME,135);VOLUME5:=MA(VOLUME,5);VOLUME35:=MA(VOLUME,35);VOLUME135:=MA(VOLUME,135);买入:=CROSS(VOLUME5,VOLUME135);DRAWICON(买入,L,9);买入1:=CROSS(VOLUME35,VOLUME135);DRAWICON(买入1,L,5);买入2:=CROSS(VOLUME5,VOLUME35);DRAWICON(买入2,L,1);{非常棒}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 散户<30,L-0.05,'←低吸'),COLORLIRED;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;A1B:EMA(A0,14),COLORBLUE,LINETHICK2;A2B:=EMA(A0,25),COLORLIBLUE,LINETHICK2;A1X:=(A1B-REF(A1B,1))/REF(A1B,1)*100,NODRAW;A2X:=(A2B-REF(A2B,1))/REF(A2B,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,A1B,DRAWNULL)COLORRED,LINETHICK3;卖出空仓:IF(A1X<0 AND A2X<0,A1B,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;};。

比较稳定的通达信指标公式

比较稳定的通达信指标公式

比较稳定的通达信指标公式通达信是一种广泛使用的股票分析软件,它提供了丰富的技术指标和图表工具,以帮助投资者更好地分析市场趋势和研究股票走势。

在使用通达信时,选择正确的指标公式是至关重要的,因为它们可以帮助您更好地了解市场和股票的情况。

在本文中,我们将介绍一些比较稳定的通达信指标公式,以帮助您更好地进行股票分析和交易。

1. MA指标公式MA指标是一种非常基本的技术指标,它可以帮助您了解股票的趋势。

MA指标的公式为:MA(CLOSE,N),其中CLOSE是收盘价,N是计算周期。

例如,如果您想计算某只股票在5天内的MA指标,您可以使用以下公式:MA(CLOSE,5)如果您想计算某只股票在10天内的MA指标,您可以使用以下公式:MA(CLOSE,10)MA指标可以帮助您了解股票的趋势,并作为交易决策的参考。

2. MACD指标公式MACD指标是一种非常流行的技术指标,它可以帮助您了解股票的趋势和动量。

MACD指标的公式为:MACD(CLOSE,SHORT, LONG, M),其中CLOSE是收盘价,SHORT是短期EMA的周期,LONG是长期EMA的周期,M是MACD的周期。

例如,如果您想计算某只股票的MACD指标,您可以使用以下公式:MACD(CLOSE,12,26,9)MACD指标可以帮助您了解股票的趋势和动量,并作为交易决策的参考。

3. KDJ指标公式KDJ指标是一种非常流行的技术指标,它可以帮助您了解股票的趋势和超买超卖情况。

KDJ指标的公式为:KDJ(HIGH, LOW, CLOSE, N, M),其中HIGH是最高价,LOW是最低价,CLOSE是收盘价,N是计算周期,M是平滑周期。

例如,如果您想计算某只股票的KDJ指标,您可以使用以下公式: KDJ(HIGH, LOW, CLOSE, 9, 3)KDJ指标可以帮助您了解股票的趋势和超买超卖情况,并作为交易决策的参考。

4. RSI指标公式RSI指标是一种非常流行的技术指标,它可以帮助您了解股票的强弱和超买超卖情况。

准确率比较高的指标通达信指标公式源码

准确率比较高的指标通达信指标公式源码

准确率比较高的指标通达信指标公式源码文章已经被编辑,以下是修改后的文章:在股票交易中,准确率是一个非常重要的指标。

但是,有一种指标在自用很久之后可能会失效,因为市场总是在变化。

因此,我们需要不断地更新自己的指标,以适应市场的变化。

在股票交易中,我们可以使用一些技术指标来辅助我们的决策。

例如,我们可以使用KDJ指标来判断股票的买卖点。

如果KDJ.J(27,3,3)小于0,我们就可以考虑买入股票。

具体操作可以使用以下公式:IF("KDJ.J"(27,3,3)<0,10,0)。

除了KDJ指标,我们还可以使用其他指标来辅助我们的交易决策。

例如,我们可以使用MA指标来判断股票的趋势。

具体操作可以使用以下公式:MA(VAR4,2)。

当我们使用指标来判断股票的买卖点时,我们还需要考虑一些其他因素。

例如,我们可以使用CROSS函数来判断是否满足一定的条件。

具体操作可以使用以下公式:CROSS(9.9,买)。

在股票交易中,我们还可以使用一些图形来辅助我们的交易决策。

例如,我们可以使用STICKLINE函数来绘制K线图。

具体操作可以使用以下公式:STICKLINE(VAR4>MA1,VAR4,MA1,3,1),COLORRED。

除了图形,我们还可以使用一些其他的方式来辅助我们的交易决策。

例如,我们可以使用FILTER函数来过滤一些不必要的数据。

具体操作可以使用以下公式:FILTER(XXX。

5)。

在进行股票交易时,我们需要时刻关注市场的变化,并及时更新自己的交易策略。

只有这样,我们才能在股票市场中获得更好的收益。

通达信精准组合买卖指标公式

通达信精准组合买卖指标公式

通达信精准组合买卖指标公式VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3);VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;VARA:=BARSCOUNT(CLOSE);VARB:=VAR8<20 AND VAR9<23 AND VARA>35;VARC:=VARB AND COUNT(VARB,1)=1;VARD:=EMA(CLOSE,21)-EMA(CLOSE,8);VARE:=EMA(VARD,5);VARF:=TROUGHBARS(3,6,1)<4 AND CROSS(VARD,VARE);VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR1A:=EMA(VAR19,100);VAR1B:=2*(VAR19-VAR1A);VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1);VAR1D:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VAR1E:=EMA(VAR1D*0.97,3);VAR1F:=(HIGH+LOW+CLOSE)/3;VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14));VAR21:=CROSS(VAR1E,LOW);组合买: (VAR11+VAR13+VAR15+VAR17), COLORWHITE;VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;VAR2:=EMA(EMA(EMA(VAR1,4),4),4);VAR03:=CROSS(MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1), MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,2)) AND MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1)<0;VAR04:=CROSS(MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1),0);VAR05:=CROSS(MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1), MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,2)) AND MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1)>0;买一: VAR03, STICK,COLORRED;买二: VAR04 OR VAR05, STICK,COLORWHITE;AA1:=IF((BARSCOUNT(C) > 7),(100)*((MA(C,7))/(LLV(MA(C,7),7)) - 1),1);N:=IF((AA1 > 0.35),6,65);B:=((-((100)*(HHV(H,N) - C))/(HHV(HIGH,N) - LLV(L,N))));YCZT:=CROSS(B,-2); LX1:=(EMA((AMOUNT/10000000),1) /3);LX2:=(WINNER(C)/0.3); LX3:=IF(C<0,LX1,V); LX4:=IF(C<0,LX2,V);LX5:=IF((BARSCOUNT(C)>100),LX3,LX4);量:=LX5/1000;动量:=(EMA(量,13)*1.5);A01:=IF((量>动量),量,0);A02:=BARSLAST((A01>0)); A03:=REF(量,A02);趋势:=IF((量<=A01),量,A03);突破:=IF(((((量=趋势) AND (C>REF(C,1))) AND (量>REF(量,1))) AND (REF(A02,2)>0)),888,0);涨停:YCZT AND FILTER(突破 ,5 ),COLORRED;DRAWTEXT(涨停>0,4.5,'★涨停'),COLORYELLOW;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA60:=MA(C,60);MA120:=MA(C,120);MA250:=MA(C,250);角度5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;角度10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;角度20:=ATAN((MA20/REF(MA20,1)-1)*100)*180/3.1416;起爆:角度5>角度10 AND 角度10>角度20 AND 角度20>30,COLORWHITE;黑龙: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.5,100,0),LINETHICK3,COLORRED;组合卖: (VAR12+VAR14+VAR16+VAR18), COLORYELLOW;DRAWTEXT(VAR13,0.6,'●'), COLORRED;DRAWICON(组合买,组合买,5);DRAWICON(组合卖,组合卖,9);DRAWICON(VAR10>0,4.2,3);DRAWTEXT(VAR10 AND VARF AND VARC,2.8,' 30%下单莫错过!'), COLORMAGENTA;DRAWTEXT(VAR18,3,'空仓'), COLORGREEN;备买: IF(DRAWICON(VAR10>0,4.2,3)<=3,1,0),COLORWHITE,LINETHICK 1;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;RSV0:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;{黑马狂奔}A2:=((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5))-REF((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),1))/REF((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),1)*100;A3:=EMA(C,5);A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;DRAWTEXT(FILTER(REF((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),1)>90 AND A2<0,7),(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),'跑'),COLOR00FF00;DRAWTEXT(CROSS((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)))AND (EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5))<A5,(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),'黑马');DRAWTEXT(CROSS((EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),A5)AND ((MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)))<80,(EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5)),'追涨');DRAWTEXT(CROSS(((MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2))),0)AND (EMA((3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)),5))<40,5,'大黑马');机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0,LINETHICK2;DEA :=EMA( EMA(CLOSE,12) - EMA(CLOSE,26),9);基础:=( EMA(CLOSE,12) - EMA(CLOSE,26)<-0.1 AND EMA(CLOSE,12) - EMA(CLOSE,26)>DEA);开仓区: IF(STICKLINE( 基础,LLV(L,30),LLV(L,30)*1.1,4,0)<=3,1,0),COLORWHITE,LINETHICK1;LCA:=REF(CLOSE,1);RSII:=((SMA(MAX((CLOSE - LCA),0),3,1) / SMA(ABS((CLOSE - LCA)),3,1)) * 100);MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);准备:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(准备=1,5),LOW-1.97,'★拉升'),COLORLIMAGENTA;拉升: IF(DRAWTEXT(FILTER(准备=1,5),LOW-1.17,'★拉升')<=3,1,0),COLORLIMAGENTA;下单: IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),38,0),STICK ,COLORYELLOW, LINETHICK4;DRAWTEXT(下单,38,'下单!'),COLORGREEN;K:SMA(RSV0,M1,1),COLORYELLOW,LINETHICK1;D:SMA(K,M2,1),COLORWHITE,LINETHICK1;J:3*K-2*D,COLORFF00FF,LINETHICK1;IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK2;IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK2;IF(D>85,D,DRAWNULL),COLORFFFF11,LINETHICK2;DRAWICON(CROSS(J,1),J,1);DRAWICON(K>80 AND D>80 AND CROSS(D,K),D,2);金叉股: IF(DRAWICON(CROSS(J,1),J,1)<=3,1,0),COLORYELLOW;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;ZKK:="KD.K#WEEK"(9,3,3);ZKD:="KD.D#WEEK"(9,3,3);KCD:=FILTER(CROSS(ZKK,ZKD) AND REF(ZKD,1)<30,13);KCD1:=FILTER(CROSS(ZKK,ZKD) AND REF(ZKD,1)>30,13);XG1:=KCD;DIFW:="MACD.DIF#WEEK"(12,26,9);DEAW:="MACD.DEA#WEEK"(12,26,9);P:=10;A:=5;FCA:=FILTER(CROSS(DIFW,DEAW) AND REF(DEAW,1)<0,13);XG2:=FCA;建仓区: IF((VARO7<10),80,100) ,COLORYELLOW,LINETHICK1;。

通达信很准主图指标公式

通达信很准主图指标公式

通达信很准主图指标公式通达信很准主图指标公式上线:=SMA(C,6.5,1);下线:=SMA(C,13.5,1);上线1:=SMA(C,3,1);下线1:=SMA(C,8,1);{STICKLINE(上线>下线, 上线,下线,0.1, 0),COLORRED,LINETHICK1;STICKLINE(下线>上线,上线,下线,0.1,0),COLORYELLOW,LINETHICK1;}DRAWTEXT( CROSS(上线,下线),LOW *0.98,'.全仓买'),COLOR00FF00;DRAWTEXT(CROSS(下线1,上线1),H*1.02,'.清仓'),COLORYELLOW;BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLO SE,24))/4;UPR:=BBI+3*STD(BBI,13),LINETHICK2;DWN:=BBI-3*STD(BBI,13);安全:=MA(CLOSE,60),LINETHICK2;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT( CROSS(82,RSI) , HIGH*1.02,'减仓') ,COLORFF9966,LINETHICK2;A7:=(2*C+H+L)/4;操作:MA(A7,5),LINETHICK2;操作1:=MA(A7,5)*1.03,LINETHICK2;操作2:=MA(A7,5)*0.97,LINETHICK2;VAR1:=LLV(A7,21);VAR2:=HHV(A7,21);SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) ANDCOUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW*0.98,'.买进') ,COLOR0099FF;DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 ANDCOUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) ANDREF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) ANDOPEN>REF(CLOSE,1),1,0),LOW*0.98,'.买进') ,COLORYELLOW;D:=MA(CLOSE,80)-MA(CLOSE,10)/3;DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.98,'.抄底'),COLORYELLOW;STICKLINE( MA(CLOSE,8)>MA(CLOSE,30),MA(CLOSE,8),MA( CLOSE,30),8,0),COLOR000088;STICKLINE( MA(CLOSE,8)<MA(CLOSE,30),MA(CLOSE,8),MA( CLOSE,30),8,0),COLOR008800;DRAWKLINE(H,O,L,C);MA5:MA(CLOSE,5),COLORWHITE,LINETHICK2;MA8:MA(CLOSE,8),COLORFF9966,LINETHICK2;MA30:MA(CLOSE,30),COLORGREEN,LINETHICK2;。

通达信选股最全公式

通达信选股最全公式

1、通达信选股公式{MACD、KDJ、RSI底背离}DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));底背离:B1>0 OR B2>0 OR B3>0;{集成了MACD、KDJ、RSI三个指标的底背离};2、老鼠仓AA1:=AMOUNT/VOL;BB1:=L< AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100> 1.2;DD1:=L< MA(C,5)*0.921;EE1:=VOL< MA(V,5)*1.5;老鼠仓:BB1 AND CC1 AND DD1 AND EE1;3、抄底高手{M 15 35 30N 12 32 27D 18 50 42}VAR1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100+M<0;VAR2:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+N<0;VAR3:=VAR1 AND VAR2;VAR4:=VAR1 AND VAR2 AND COUNT(VAR3,2)=1 AND DATE>940101 AND (CLOSE>OPEN OR CLOSE<OPEN) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)<REF(CLOSE,1)) AND(REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF (OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5));VAR5:=DMA(EMA(CLOSE,8),SUM(VOL,9)/2.8/CAPITAL);VAR6:=(CLOSE-VAR5)/VAR5*100;VAR7:=REF(VAR6,1)+D<0 AND VAR6>REF(VAR6,1) AND REF(VAR6,1)<REF(VAR6,2) AND VAR6-REF(VAR6,1)>1.8 AND (HIGH>LOW) AND (REF(HIGH,1)>REF(LOW,1)) AND (REF(HIGH,2)>REF(LOW,2)) AND(REF(HIGH,3)>REF(LOW,3)) AND (REF(HIGH,4)>REF(LOW,4)) AND (REF(HIGH,5)>REF(LOW,5));VAR4 OR VAR7;3、短线黑马{K 100 140 100}VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);VAR2:=DMA(CLOSE,VOL/MA(VOL,33)/33);VAR3:=(CLOSE-VAR1)/VAR1*100<-11/K*100;VAR4:=(VAR1-VAR2)/VAR2*100<-22.3/K*100;VAR5:=VAR3 AND VAR4 AND (OPEN>CLOSE OR OPEN<CLOSE) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 AND(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND(REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF (OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5) <REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF (CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));VAR6:=DMA(CLOSE,VOL/MA(VOL,3)/3);VAR7:=DMA(CLOSE,VOL/MA(VOL,33)/33);VAR8:=(CLOSE-VAR6)/VAR6*100<-5;VAR9:=(VAR6-VAR7)/VAR7*100<-18;VARA:=(INDEXC-LLV(INDEXL,250))/(HHV(INDEXH,250)-LLV(INDEXL,250))*100;VARB:=SMA(VARA,30,1);VARC:=SMA(VARB,50,1);VARD:=VAR8 AND VAR9 AND (OPEN>CLOSE OR OPEN<CLOSE) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1));VARE:=VARD AND COUNT(VARD,2)=1 ;VAR5 OR VARE;4、逆势操作VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);VAR2:=DMA(CLOSE,VOL/MA(VOL,32)/32);VAR3:=(CLOSE-VAR1)/VAR1*100<-8;VAR4:=(VAR1-VAR2)/VAR2*100<-21;VAR5:=VAR3 AND VAR4 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));VAR6:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-23;VAR7:=(INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100;VAR8:=SMA(VAR7,50,1);VAR9:=SMA(VAR8,40,1);VARA:=VAR6 AND VAR9<23 AND COUNT(VAR6,2)=1 AND (OPEN>CLOSE OR OPEN<CLOSE) AND OPEN/REF(CLOSE,1)>0.96 ;(VAR5 OR VARA) ;5、成交量变异率VR买入WVR := SUM((IF(CLOSE>OPEN,VOL,0)+IF(CLOSE=OPEN,VOL/2,0)),N)/SUM((IF(CLOSE<OPEN,VOL,0)+IF(CLOSE=OPEN ,VOL/2,0)),26)*100;VOL变异率VR买入:CROSS(LL,WVR);{N 5 100 26 5}{LL 0 80 70 5};MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);MA120:=SMA(C,120,1);ZH520:=ABS(MA5-MA20)/MA20*100<=10;ZH530:=ABS(MA5-MA30)/MA30*100<=10;QSXS1:=MA5>REF(MA5,1);QSXS2:=MA20>REF(MA20,1);QSXS3:=MA30>REF(MA30,1);DTPL:=MA20>MA30 AND MA30>MA120;LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNT(QSXS1,4)<=1;GJHS:=C>MA5 AND ((QSXS1 AND NOT(REF(QSXS1,1))) OR C>REF(C,3));LYKK:=GJHS AND (ZH520 OR ZH530) AND LYT;买:LYKK AND NOT(REF(LYKK,1));虚拟成交量>昨日VOL的2倍的股VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);昨日VOL:=REF(VOL,1)*2.0;ABS(VVOL)-昨日VOL>=0;{大于昨日的2.0倍};成交量是昨日的1.8倍VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);昨日VOL:=REF(VOL,1)*1.8;ABS(VVOL)-昨日VOL>=0;{大于昨日的1.8倍};6、PDI上穿三线选股公式源码:TR0:= SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);HD := HIGH-REF(HIGH,1);LD := REF(LOW,1)-LOW;DMP:= SUM(IF(HD>0 AND HD>LD,HD,0),14);DMM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);PDI:=DMP*100/TR0,colorred;MDI:=DMM*100/TR0;ADX:=MA(ABS(MDI-PDI)/(MDI+PDI)*100,6);ADXR:=(ADX+REF(ADX,6))/2;CROSS(PDI,MDI) AND CROSS(PDI,ADX) AND CROSS(PDI,ADXR)今日量比昨放大1倍后三日股价不跌回当日收盘价的选股公式选股公式:{成交量比前一天放大1倍,后3天,股价没有跌破放量那天的收盘价}var1:=v>ref(v,1)*2;ref(var1,3) and count(c>ref(c,3),3)=3;7、倍量柱加三天量减价升喇叭形的真黄金柱公式倍数:=1.9;倍量1:=REF(VOL,3)>倍数*REF(VOL,4) AND REF(C,3)>=REF(O,3);价升量缩:= LLV(C,3)>=REF(L,3) AND HHV(VOL,3)<=REF(VOL,3);连阳:= COUNT(C>=O,4)=4;选股:倍量1 AND 价升量缩 AND 连阳;8、“凹口起柱”理论编写的凹口指标王子老师的平台起柱、过顶起柱、凹口起柱理论真是了不得,十分佩服,这里我冒昧的加一个,那就是顶部起柱,经观察,股票起柱时是主力行为的表现,是主力意图的表现!是主力留下的痕迹!是量柱开口说话的语言!这个指标或许可以帮助朋友们看懂主力的行为意图,看出量柱的语言!T7:=REF(VOL,6)/REF(VOL,7)>=2;T6:=REF(VOL,5)/REF(VOL,6)>=2;T5:=REF(VOL,5)/REF(VOL,4)>=1.5;T4:=REF(VOL,4)/REF(VOL,3)>=1.5;T3:=REF(VOL,2)/REF(VOL,3)>=1.5;T1:=V/REF(VOL,1)>2;T0:=C>O AND C>REF(C,1);选股:T7 AND T1 AND T0 OR T6 AND T1 AND T0 OR T5 AND T1 AND T0 OR T4 AND T1 AND T0 OR T3 AND T1 AND T0 ;下载 (53.76 KB)2010-1-12 21:299、倍量过左峰选股源码--通达信SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1);SR2:=FILTER(SR1,10);SR3:=BACKSET(SR2,10+1);HD:=FILTER(SR3,10);前高:=REF(H,BARSLAST(HD));倍量:=VOL/REF(VOL,1)>=2 AND COUNT(CLOSE>OPEN,1) OR LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>=2;突破前高:=CROSS(C,前高);XG:突破前高 AND 倍量;10、{MACD、KDJ、RSI底背离}DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));底背离:B1>0 OR B2>0 OR B3>0;{集成了MACD、KDJ、RSI三个指标的底背离};11、老鼠仓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;12、主力进场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),3);XG:(VAR5>REF(VAR5,1) AND VAR5>0 ) OR (VAR5<REF(VAR5,1) AND NOT(VAR5=0)=1);13、60日天量T1:=V=HHV(V,100);T2:=V/REF(VOL,1)>=3;选股:T1 AND T2;14、135均量线选股VOLUME:=VOL;MAVOL1:=MA(VOLUME,5);MAVOL2:=MA(VOLUME,35);MAVOL3:=MA(VOLUME,135);选股:CROSS(MAVOL1,MAVOL2)OR CROSS(MAVOL1,MAVOL3) OR CROSS(MAVOL2,MAVOL3);15、二次翻红DIF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA);FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4); FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1;FH3:=FH1 AND FH2 AND EMA(C,13)>REF(EMA(C,13),1);FH4:=FH1 AND FH2 AND ABS((DIF-DEA)/C)<0.018;FH5:=FH1 AND FH2 AND MACD<0.10;二次翻红:=(FH3 OR FH4 OR FH5);低买:=CROSS(DIF,DEA) AND DIF<0;加油:=CROSS(DIF,DEA) AND DIF>0;XG:二次翻红 OR 低买 OR 加油;16、均量互换VOLUME:=VOL;MAVOL1:=MA(VOLUME,5);MAVOL2:=MA(VOLUME,35);MAVOL3:=MA(VOLUME,135);选股:CROSS(MAVOL2,MAVOL3);17、成交额均量互换AMO:=AMOUNT;MAAMO1:=MA(AMO,5);MAAMO2:=MA(AMO,10);MAAMO3:=MA(AMO,40);XG:CROSS(TJ1,TJ2)AND CROSS(TJ1,TJ3)OR CROSS(MAAMO1,MAAMO2)AND CROSS(MAAMO1,MAAMO3);18、凹口起柱T7:=REF(VOL,6)/REF(VOL,7)>=2;T6:=REF(VOL,5)/REF(VOL,6)>=2;T5:=REF(VOL,5)/REF(VOL,4)>=1.5;T4:=REF(VOL,4)/REF(VOL,3)>=1.5;T3:=REF(VOL,2)/REF(VOL,3)>=1.5;T1:=V/REF(VOL,1)>2;T0:=C>O AND C>REF(C,1);选股:T7 AND T1 AND T0 OR T6 AND T1 AND T0 OR T5 AND T1 AND T0 OR T4 AND T1 AND T0OR T3 AND T1 AND T0;19、黄金柱选股VAR1:=V>REF(V,1)*2;REF(VAR1,3) AND COUNT(C>REF(C,3),3)=3;20、日成交量触及5日均量线M1:=MA(V,5);M2:V > M1;21、早盘量满--一个很管用的预警指标本指标描述的是上午10点前个股成交量与昨天基本相等(指标在上午10点以后就不工作了);这类股票往往是比较强势,只有在10点前成交量达到昨天水平才会预警;其中下跌的股票必须用肉眼给过滤掉。

通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标

通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标

通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标1 超级指标指标公式:买卖提示非常明显(适合通达信)指标源码如下:M:3 100 60N 3 100 30散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5,1);D:=SMA(K,3,1);J:=3*K-2*D;主力线:EMA(J,6),COLORYELLOW;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VA R7;VAR9:=IF(VAR8>100,100,VAR8);吸筹:STICKLINE(VAR9>-120,0,VAR9,2,5),COLORMAGENTA;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;AA6:=SMA(AA3,21,8);买观注: STICKLINE(走势-AA6<-65,0,7,15,1);DRAWICON(FILTER(J>REF(J,1)AND 走势>=REF(走势,1)AND 走势<25 ,5),走势,4);卖观注: STICKLINE(走势-AA6>85,98,90,15,1),COLORFFFF00;DRAWICON(FILTER(J<REF(J,1)AND 走势<=REF(走势,1)AND J>85 ,5),J,5);DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;DEA1:=EMA(DIF1,9);MACD1:=(DIF1-DEA1)*100,COLORSTICK;STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K日:SMA(RSV1,3,1),COLORWHITE;D日:SMA(K日,3,1),COLORYELLOW;J日:3*K日-2*D日,COLORFF00FF;底部:0,COLORF00FF0,LINETHICK2;DRAWICON(CROSS(J日,底部),底部,1);2 精准买卖支撑价:LLV(LOW,19),LINETHICK2 , COLOR00FF00;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK2;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3);VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100;VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*100;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 ORCLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND VOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'别贪'), COLOR00FF00;DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'万元'),COLORYELLOW;STICKLINE(VAR2D>0,O,C,10,0), COLORRED;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 AND VAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)ANDCROSS(VAR6,0)AND VARF>REF(VARF,1)AND C>O,3),L,1);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)ANDVAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,2);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)AND C<O,H*1.02,15);DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;DEA1:=EMA(DIF1,9);MACD1:=(DIF1-DEA1)*100,COLORSTICK;STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;STICKLINE(MACD1>=REF(MACD1,1) ANDMACD1<0,0,MACD1,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K日:SMA(RSV1,3,1),COLORWHITE;D日:SMA(K日,3,1),COLORYELLOW;J日:3*K日-2*D日,COLORFF00FF;底部:0,COLORF00FF0,LINETHICK2;DRAWICON(CROSS(J日,底部),底部,1);3 绝世指标GLL:-4;顶:80,COLORFFA500;大顶:100,COLORBLUE;VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;VAR2:=SMA(VAR1,10,1);慢速:SMA(VAR2,5,1),COLORRED;RSV:= ((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FATK:=SMA(RSV1,3,1);形态:SMA(FATK,3,1),COLORBB24DB;VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VARB:=SMA(VARA,3,1);VARC:=SMA(VARB,3,1);加速: EMA(3*VARB-2*VARC,3),COLORYELLOW;底:6,COLOR00BF00;大底:-6,COLOR007300;VAR11:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;买入:=VAR11 AND VAR22,STICK,LINETHICK2,COLORRED;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;卖出:=CROSS(80,VAR4),STICK,LINETHICK2,COLORGREEN;{波段介入点}A1:=REF(CLOSE,2);A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;波段介入点:IF(A2<19,19,0)COLORWHITE;。

通达信最实用的五大指标公式

通达信最实用的五大指标公式

通达信最实用的五大指标公式LY:=10;BL:=40;CJQS:=XMA(CLOSE,LY);JBQS:=XMA(CLOSE,BL);N:=REF(JBQS,BL/2+1-CURRBARSCOUNT)/REF(JBQS,BL/2+2-CURRBARSCOUNT);M:=REF(CJQS,LY/2+1-CURRBARSCOUNT)/REF(CJQS,LY/2+2-CURRBARSCOUNT);JB上轨:IF(CURRBARSCOUNT>BL/2,JBQS*1.1,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*1.1);JB下轨:IF(CURRBARSCOUNT>BL/2,JBQS*0.9,REF(JBQS,BL/2+1-CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*0.9);CJ上轨:IF(CURRBARSCOUNT>LY/2,CJQS*1.05,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*1.05);CJ下轨:IF(CURRBARSCOUNT>LY/2,CJQS*0.95,REF(CJQS,LY/2+1-CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*0.95);DRAWTEXT(O<=CJ下轨,(L * 0.98),'抢'),COLORYELLOW;DRAWTEXT(CROSS(H,CJ上轨),(H * 1.01),'逃'),COLORYELLOW;{立桩量}TJ:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;STICKLINE(TJ,C,O+(C-O)/2,1,0),COLOR00FFFF;{一穿三:5、10、20}MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;STICKLINE(一穿三,O,O+(C-O)/2,1,0),COLORFF00FF;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;Y:=CLOSE/REF(CLOSE,1)>1.07;X:=VOL>MA(VOL,5);A1:=Y AND X;DRAWTEXT(A1,MA(CLOSE,5),'攻涨停'),COLORMAGENTA;二:GS控盘程度副图Q_1:=C-REF(C,1);Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);Q_3:=CROSS(EMA(C,19),EMA(C,7));Q_4:=CROSS(EMA(C,7),EMA(C,19));Z1:=L=LLV(L,BARSLAST(Q_3)+1);Z2:=LLV(L,BARSLAST(Q_3)+1);Z3:=H=HHV(H,BARSLAST(Q_4)+1);Z4:=HHV(H,BARSLAST(Q_4)+1);Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);Y1:=H=HHV(H,BARSLAST(Q_4)+1);Y2:=HHV(H,BARSLAST(Q_4)+1);Y3:=L=LLV(L,BARSLAST(Q_3)+1);Y4:=LLV(L,BARSLAST(Q_3)+1);Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0);X1:=LLV(Q_2,2)=LLV(Q_2,7) ;X2:=COUNT(Q_2<0,2);X3:=CROSS(Q_2,MA(Q_2,2));X4:=REF(Q_B,1)<REF(Q_B,2);X5:=Q_A>REF(Q_B,1);买进:=(X1 AND X2 AND X3) AND X4 AND X5;TJ:=IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,1,0);堪称一绝:IF(REF(TJ,1)=0 AND TJ>=1,80,10),STICK,COLORRED;持币:IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,0,10),STICK,COLORGREEN;地狱底:0,COLORGRAY;地狱线:10,COLORGRAY;地平线:20,COLORLIMAGENTA;天际线:80,COLORGRAY;RSV:=(((CLOSE - LLV(LOW,33)) / (HHV(HIGH,33) - LLV(LOW,33))) * 100);神仙:SMA(RSV,7,1),COLORWHITE;魔鬼:SMA(SMA(RSV,7,1),3,1),COLORYELLOW;轨迹:SMA(SMA(SMA(RSV,6,1),5,1),3,1),COLORMAGENTA;财神到:IF(CROSS(神仙,20),20,0),POINTDOT;DRAWICON((CROSS(神仙,20)),5,1);三:GS大机构副图VAR1C:=(HIGH - MIN(OPEN,CLOSE));VAR2C:=(CLOSE - OPEN);VAR3C:=(MIN(OPEN,CLOSE) - LOW);VAR4C:=(HIGH - LOW);VAR5C:=((VOL * VAR1C) / VAR4C);VAR6C:=((VOL * VAR2C) / VAR4C);VAR7C:=((VOL * VAR3C) / VAR4C);VAR8C:=((VAR5C - VAR6C) - VAR7C);VAR4:=MA(CLOSE,5);VAR5:=MA(CLOSE,10);VAR6:=MA(CLOSE,30);VAR7:=MA(CLOSE,60);VAR8:=EMA(COST(85),7);VAR9:=EMA(COST(15),7);VARA:=(SUM(((CLOSE * VOL) * 100),4) / SUM((VOL * 100),4));VARB:=(INTPART((VARA * 100)) / 100);VARC:=(SUM(((CLOSE * VOL) * 100),7) / SUM((VOL * 100),7));VARD:=(INTPART((VARC * 100)) / 100);VARE:=(SUM(((CLOSE * VOL) * 100),28) / SUM((VOL *100),28));VARF:=(INTPART((VARE * 100)) / 100);短线趋势:(EMA(CLOSE,5) - EMA(CLOSE,10));中线趋势:EMA(短线趋势,9);VAR10:=((0 - ((100 * (HHV(CLOSE,5) - CLOSE)) / (HHV(CLOSE,5) - LLV(LOW,5)))) + 100);VAR11:=((0 - ((100 * (HHV(CLOSE,10) - CLOSE)) / (HHV(CLOSE,10) - LLV(LOW,10)))) + 100);VAR12:=((0 - ((100 * (HHV(CLOSE,20) - CLOSE)) / (HHV(CLOSE,20) - LLV(LOW,20)))) + 100);VAR13:=((0 - ((100 * (HHV(CLOSE,30) - CLOSE)) / (HHV(CLOSE,30) - LLV(LOW,30)))) + 100);VAR14:=REF(中线趋势,1);VAR15:=中线趋势;VAR16:=(VAR15 - VAR14);VAR17:=REF(短线趋势,1);VAR18:=短线趋势;VAR19:=(VAR18 - VAR17);VAR1A:=OPEN;VAR1B:=CLOSE;大机构:SUM(VAR8C,13) / MA(VOL,13) / 13,LINETHICK1,COLOR0000FF;小机构:SUM(VAR8C,21) / MA(VOL,21) / 21,LINETHICK1,COLORFFFF00;散户:SUM(VAR8C,30) / MA(VOL,30) / 30,COLORFF00FF;股票:((SUM(VAR8C,125) / MA(VOL,125)) / 125),LINETHICK2,COLOR00FFFF;四:警戒线副图VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);警戒线: 2.8;减仓线: 3.2 ;卖出线: 3.5;动力线: EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);DRAWTEXT(CROSS(动力线,警戒线),2,'警惕!!'),COLORWHITE;DRAWTEXT(CROSS(动力线,减仓线),2.8,'减仓');DRAWTEXT(CROSS(动力线,卖出线),3.5,'卖出');DRAWICON(CROSS(动力线,警戒线),3,2);DRAWICON(CROSS(动力线,减仓线),3.4,2);DRAWICON(CROSS(动力线,卖出线),3.9,2);五:老师帮我改好的选股公式一:GS警戒动力选股公式VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);动力线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);XG:动力线<0.2;二:大机构选股公式VAR1C:=(HIGH - MIN(OPEN,CLOSE));VAR2C:=(CLOSE - OPEN);VAR3C:=(MIN(OPEN,CLOSE) - LOW);VAR4C:=(HIGH - LOW);VAR5C:=((VOL * VAR1C) / VAR4C);VAR6C:=((VOL * VAR2C) / VAR4C);VAR7C:=((VOL * VAR3C) / VAR4C);VAR8C:=((VAR5C - VAR6C) - VAR7C);大机构:=SUM(VAR8C,13)/MA(VOL,13)/13; 大机构>1;。

通达信指标公式——至今为止最全的

通达信指标公式——至今为止最全的

通达信指标公式——至今为止最全的通达信指标公式——至今为止最全的{优秀买卖主}{无未来函数,可放心使用}多头线:EMA(C,3),COLORYELLOW;空头线:EMA(C,5),COLOR00FF00;均衡线:EMA(空头线,5),COLORWHITE,;IF(多头线&gt;=REF(多头线,1) AND 多头线&gt;=空头线,多头线,DRAWNULL),COLORRED,LINETHICK3;V AR1:=IF(CLOSE/REF(CLOSE,1)&gt;1.050 ANDHIGH/CLOSE&lt;1.010 ANDIF(CLOSE&gt;REF(CLOSE,1),88,0)&gt;0, 91, 0); STICKLINE(VAR1&gt;90,L,L*0.92,0.1,0),COLORFF00FF; DRAWTEXT(V AR1&gt;90,LOW*0.92,'买'),COLORFF00FF; V AR2:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.09),0.9),3),1);DRAWTEXT(CROSS(CLOSE,V AR2),LOW,'S'),COLORYELL OW;STICKLINE(CROSS(V AR2,CLOSE),H*1.05,H,0.1,0),COLOR WHITE;DRAWTEXT(CROSS(V AR2,CLOSE),HIGH*1.05,'卖'),COLORWHITE;V AR3:=REF(CLOSE,1);V AR4:=SMA(MAX(CLOSE-V AR3,0),6,1)/SMA(ABS(CLOSE-V AR3),6,1)*100;DRAWTEXT(CROSS(84,V AR4),H*1.03,'逃顶'),COLORYELLOW ;V AR5:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);V AR6:=SMA(ABS(LOW-VAR5),13,1)/SMA(MAX(LOW-VAR 5,0),10,1);V AR7:=EMA(V AR6,10);V AR8:=LLV(LOW,33);V AR9:=EMA(IF(LOW&lt;=V AR8,V AR7,0),5);主力进场:=FILTER(V AR9&gt;REF(V AR9,1),5); DRAWTEXT(FILTER(VAR9&gt;REF(V AR9,1),5),LOW*0.995 ,'☆↑'),COLOR0000FF;DRAWTEXT(FILTER(VAR9&gt;REF(V AR9,1),5),LOW*0.96,'主力进场'),COLOR0000FF;STICKLINE(FILTER(V AR9&gt;REF(V AR9,1),5),CLOSE,OPE N,1,0),COLOR0000FF;STICKLINE(FILTER(V AR9&gt;REF(V AR9,1),5),LOW,HIGH, 1,0),COLOR0000FF;DRAWTEXT(FILTER(V AR5&gt;REF(V AR5,1),5),LOW*1.08,'主力出场'),COLOR70DB93;STICKLINE(FILTER(V AR5&gt;REF(V AR5,1),5),LOW,HIGH, 1,0),COLOR70DB93;{----------------------------------------------------------}{BIAS18}N1 :=6;N2:=18;N3:=36;BIAS1 :(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*100; BIAS2 :(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*100,COL ORRED,LINETHICK2;BIAS3 :(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*100,COL ORBLUE;{----------------------------------------------------------}{买卖准推荐}N1:=6;N2:=18;N3:=36;BIAS6 :(CLOSE-MA(CLOSE,N1))/MA(CLOSE,N1)*600+300; BIAS18:(CLOSE-MA(CLOSE,N2))/MA(CLOSE,N2)*600+300 ,COLORMAGENTA,LINETHICK1;BIAS36 :(CLOSE-MA(CLOSE,N3))/MA(CLOSE,N3)*600+30 0,COLORBLUE;{上面增加BIAS}V AR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);V AR2:=HIGH-REF(HIGH,1);V AR3:=REF(LOW,1)-LOW;V AR4:=SUM(IF(V AR2&gt;0 ANDV AR2&gt;V AR3,V AR2,0),25);V AR5:=SUM(IF(V AR3&gt;0 ANDV AR3&gt;V AR2,V AR3,0),25);V AR6:=V AR4*100/V AR1;V AR7:=V AR5*100/V AR1;V AR8:=MA(ABS(V AR7-V AR6)/(V AR7+V AR6)*100,15);V AR9:=(V AR8+REF(V AR8,15))/2;A:=(V AR7&gt;V AR6 AND V AR7&gt;25 AND V AR6&lt;25); B:ZIG(3,50/5)*100,COLORRED;G:MA(B,2),COLORYELLOW;D:=CROSS(B,G)*1000,COLORRED;W:=CROSS(G,B)*1000,COLORBLUE;操盘:IF(B&gt;G,(B-G)*18,0),LINESTICK,COLORRED;观望:IF(B&lt;G,(G-B)*18,0),LINESTICK,COLORGREEN; E:=REF(INDEXC,1);F:=SMA(MAX(INDEXC-E,0),3,1)/SMA(ABS(INDEXC-E),3,1 );V AR10:=F AND F&lt;8;V AR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9) )*100;V AR12:=SMA(VAR11,3,1);V AR13:=SMA(VAR12,3,1);V AR14:=V AR13 AND V AR13&lt;20;MM:=A AND D AND V AR10 AND V AR14 ;DRAWTEXT(W=1000,B*1.05,'★卖' ),COLOR00FF00; DRAWTEXT(D=1000,B*1.05,'★买'),COLORRED;{-------------------------------------------------------------}{直效主图}{INPUT:N(10,1,150),CX(1,1,2);}MA06:MA(C,6),COLORMAGENTA,POINTDOT;MA18:MA(C,18),LINESTICK,COLOR880000,,LINETHICK2; IF(MA06&gt;=REF(MA06,1),MA06,DRAWNULL),COLOR00 00CC,LINETHICK2;IF(MA06&lt;REF(MA06,1) ANDCX=1,MA06,DRAWNULL),COLOR009900,LINETHICK2; IF(MA18&gt;=REF(MA18,1) ANDCX=2,MA18,DRAWNULL),COLOR0000CC,LINETHICK2; IF(MA18&lt;REF(MA18,1) ANDCX=2,MA18,DRAWNULL),COLOR009900,LINETHICK2; BZA06:=BARSLAST(C&lt;MA06);BZB06:=BARSLAST(MA06&lt;REF(MA06,1));BZA18:=BARSLAST(C&lt;MA18);BZB18:=BARSLAST(MA18&lt;REF(MA18,1));BDA06:=BARSLAST(C&gt;MA06);BDB06:=BARSLAST(MA06&gt;REF(MA06,1));BDA18:=BARSLAST(C&gt;MA18);BDB18:=BARSLAST(MA18&gt;REF(MA18,1));V06:MA(VOL,6),COLOR6666CC,NODRAW;V36:MA(VOL,36),COLORFFCC00,NODRAW;VVOL:V,COLORFF00FF,NODRAW;A1:=REF(C,N)=HHV(C,2*N+1);B1:=FILTER(A1,N);C1:=BACKSET(B1,N+1);HD:=FILTER(C1,N);A2:=REF(C,N)=LLV(C,2*N+1);B2:=FILTER(A2,N);C2:=BACKSET(B2,N+1);LD:=FILTER(C2,N);A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD)); T1:=BARSLAST(HD)&lt;BARSLAST(LD) AND NOT(HD) ; T2:=BARSLAST(HD)&gt;BARSLAST(LD) ANDNOT(LD);IF(T1,A,DRAWNULL),COLORCC6600,LINETHIC K2;IF(T2,B,DRAWNULL),COLORDDDDDD,LINETHICK2;IF(T1,A*0.9,DRAWNULL),COLORCC6600,LINETHICK1;IF(T2,B*1.1,DRAWNULL),COLORDDDDDD,LINETHICK1; YIN1:=BDA06&gt;=2 AND BDB06=1 AND CX=1;YIN2:=BDA18&gt;=2 AND BDB18=1 AND CX=2;YIN3:=BZA06&gt;=2 AND BZB06=1 AND V06&gt;V36 AND CX=1;YIN4:=BZA06&gt;=2 AND BZB06=1 AND V06&gt;V36 AND CX=2;DRAWTEXT(YIN1 OR YIN2,H*1.05,'卖出'),COLOR00FFFF; DRAWTEXT(YIN3 OR YIN4,L*0.95,'买入'),COLOR00FF00; {-----------------------------------------------------------------}{成交天机--通达信}A股:CAPITAL/1000000,LINETHICK0,COLORWHITE;实际量:VOL,LINETHICK0;{V AR1:=DYNAINFO(17)*REF(MA(VOL,5),1);V AR2:=DYNAINFO(7)=CLOSE ANDDYNAINFO(10)=AMOUNT;预测:=IF(DYNAINFO(7)=CLOSE ANDDYNAINFO(10)=AMOUNT,V AR1,V AR2)/10000;预测量:STICKLINE(IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,V AR1,V AR2),V AR1,0,7,1),COLORGRAY;}AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主买:IF(CLOSE&gt;OPEN,AA*(HIGH-LOW),IF(CLOSE&lt;OP EN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),POINTDO T,COLORRED;主卖:IF(CLOSE&gt;OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LO W)),IF(CLOSE&lt;OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LIN ETHICK0,COLORGREEN;换手率%:VOL/CAPITAL*100,POINTDOT,COLORWHITE; STICKLINE(C&gt;=REF(C,1) ,0,VOL,2.5,1),COLORRED; STICKLINE(C&lt;REF(C,1),0,VOL,2.5,1),COLORGREEN; STICKLINE(主买&gt;0,0,主买,2.5,0),COLORRED; STICKLINE(主卖&lt;0 ,0,主卖,2.5,0),COLORGREEN;资金异动:VOL/MA(VOL,55)*100,COLORYELLOW; STICKLINE(资金异动&gt;100 ,0,VOL,0.6,0),COLORYELLOW;MA5:MA(V,5),COLORWHITE;MA13:MA(V,13),COLORRED;DRAWTEXT(CROSS(MA5,MA13),(V *1.05),'★'),COLORYELLOW;MA6:MA(V,6),COLORMAGENTA,LINETHICK2;MA36:MA(V,36),COLORBLUE,LINETHICK2;{---------------------------------------------------------------------} {买卖决策}{强烈推荐,超准好指标}来势线:EMA(CLOSE,7)-EMA(CLOSE,21),COLORYELLOW;福星: EMA(来势线,7), COLORSTICK,COLORRED;V AR00:=CLOSE/REF(LLV(LOW,35),5)&lt; 1;决策: IF(V AR00,0.5,0), STICK,COLORBLUE;必买: IF(TROUGHBARS(3,15,1)=0 ANDHIGH&gt;LOW+0.01,1,-1),COLORYELLOW ,LINETHICK1 ; 必卖:IF(PEAKBARS(3,15,1)=1,1,2),COLORWHITE,LINETHICK1; 趋势线:(EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5, COLORRED;逃顶线:EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR00FF00 ,LI NETHICK1 ;{---------------------------------------------------------------------}[今日操盘必读四大热点] [天天热点周周劲暴] [聚焦国有金融企业高管限薪令]<span id="HTML_quotebody40754540" value="[B]以下是引用md20090615在2009-9-9 7:50:14的发言:[/B]通达信软件在股民当中使用率还是比较高得,从这些指标公式中就能看出,股民对通达信的操作及解读相当透彻的,这一系列指标公式也是相当的精准实用,股民在解读通达信指标公式专题时,不但能认识到自己在操作上的不足,也能很好的学习到了前辈的经验及技巧。

通达信指标公式大全

通达信指标公式大全

通达信指标公式大全:1.主力大单指标公式ZZ:=(HHV(H,3)+LLV(L,3))/2;A:=IF(C>ZZ,VOL,0);B:=IF(C<ZZ,VOL,0);总0:=(A-B);BBD:EMA(总0,3)/SUM(VOL,5)*100,LINETHICK;STICKLINE(BBD>=0,0,BBD,3,0),COLOR000088;STICKLINE(BBD>=0,0,BBD,1.5,0),COLOR0000AA;STICKLINE(BBD>=0,0,BBD,1,0),COLOR0000CC;STICKLINE(BBD>=0,0,BBD,0.5,0),COLOR0000FF;STICKLINE(BBD<0,0,BBD,3,0),COLOR888800;STICKLINE(BBD<0,0,BBD,1.5,0),COLORAAAA00;STICKLINE(BBD<0,0,BBD,1,0),COLORCCCC00;STICKLINE(BBD<0,0,BBD,0.5,0),COLORFFFF00;XH1:=REF(BBD,1)<REF(BBD,2) AND REF(BBD,1)<-10 AND BBD>REF(BBD,1) AND BBD>0;XH2:=REF(BBD,1)>=REF(BBD,2) AND REF(BBD,1)>8 AND BBD<REF(BBD,1) AND BBD<0;DRAWICON(XH1,-20,1);DRAWICON(XH2,20,2);2.主力控盘指标公式V AR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);V AR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);V AR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);V AR5:=(((V AR2 + (2 * V AR3)) + (3 * V AR4)) / 6);V AR6:=MA(V AR5,3);开始控盘:STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR00AAFF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),3.5,0),COLOR0044FF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),2.5,0),COLOR0088FF;STICKLINE((V AR6 <= (0 - 10)),0,(0 - 20),3,0),COLOR00AAFF;V AR1:=EMA(EMA(CLOSE,3),1);控盘:=(V AR1-REF(V AR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,3.5,0),COLORFFAA00;STICKLINE(控盘<0,控盘,0,3.5.2,0),COLORFF4400;STICKLINE(控盘<0,控盘,0,2.5,0),COLORFF8800;STICKLINE(控盘<0,控盘,0,0,0),COLORFFAA00;无控盘:0,COLORFFAA00;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR000088;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR0000AA;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR0000CC;STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR0000EE;高度控盘:0,COLOR0000FF;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3.5,0),COLOR008800;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,2.5,0),COLOR00AA00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1.5,0),COLOR00CC00;STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,1,0),COLOR00EE00;STICKLINE(DDX<0,0,DDX,3.5,0),COLOR008800;STICKLINE(DDX<0,0,DDX,2.5,0),COLOR00AA00;STICKLINE(DDX<0,0,DDX,1.5,0),COLOR00CC00;STICKLINE(DDX<0,0,DDX,1,0),COLOR00EE00;对倒出货:0,COLOR00FF00;3.通达信资金进出分时指标公式(C,1),C*V,0),FROMOPEN),STICK,COLORRED;资金流出:-SUM(IF(C<REF(C,1),C*V,0),FROMOPEN),STICK,COLOR00FF00;资金差:资金流入+资金流出,COLORYELLOW;4.通达信做T+0的分时公式MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸} DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};5.通达信超准分时图指标公式BGTYU:=IF(DATE<=1150530,1,0);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(VOL*1 00,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,MA((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARS COUNT((DCLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BGTYU)))));底线:1.003,COLORRED,LINETHICK2;高线:1.03,COLORRED,LINETHICK3;黄色起动线:EXPMA((DCLOSE/VBNH),20),COLORYELLOW,POINTDOT;绿色散户线:EXPMA((DCLOSE/VBNH),120),COLORGREEN,LINETHICK2;DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),60),EXPMA((DCLOSE/VBNH),120)),EXPMA((DCLOSE/ VBNH),60)*1,1);DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),EXPMA((DCLOSE/VBNH),60)),EXPMA((DCLOSE/ VBNH),120)*1,2);DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02+0.005,18);STICKLINE(CROSS(EXPMA((DCLOSE/VBNH),20),1.02),1.02,1.025,4,0), , COLORMAGENTA; STICKLINE(EXPMA(C,10)>EXPMA(C,60) ,1.03,1.034,1.0,0),COLORRED;STICKLINE(EXPMA(C,10)<EXPMA(C,60) ,1.03,1.025,1.0,0),COLORGREEN;DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),20),1.04),1.04,'可能涨停'),COLORWHITE; STICKLINE(EXPMA((DCLOSE/VBNH),120)>1.003 ,1.03,1.039,1.0,0),COLORMAGENTA; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.028,'买进'),COLORWHITE; DRAWTEXT(CROSS(EXPMA((DCLOSE/VBNH),120),1.0029),1.036,'观察分时量 '),COLORWHITE; DRAWICON(CROSS(EXPMA((DCLOSE/VBNH),120),1.004),1.003*1,13);6.通达信观察分时指标公式BG:=IF(DATE<=1150530,1,0);GH:=BETWEEN((DCLOSE*BG)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BG)))/SUM(VOL*100,BARSCOU NT((DCLOSE*BG)))),1.05,0.95);VB:=IF(GH=0,MA((DCLOSE*BG),BARSCOUNT((DCLOSE*BG))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BG)))/SUM(VOL*100,BARSCOUNT((DCLOSE*BG)))));中线:1,COLORBLUE,LINETHICK2;快趋势线:EXPMA((DCLOSE/VB),21),COLORYELLOW,,LINETHICK1;慢趋势线:EXPMA((DCLOSE/VB),54),COLORGREEN,LINETHICK1;DRAWICON(CROSS(快趋势线,中线),快趋势线,1);DRAWICON(CROSS(慢趋势线,中线) AND (快趋势线>中线),中线-0.002,15);DRAWTEXT(CROSS(EXPMA((DCLOSE/VB),20),1),快趋势线-0.0025,'涨'),COLORRED; DRAWTEXT(CROSS(快趋势线,中线),快趋势线-0.0055,'买进'),COLORYELLOW;DRAWICON(CROSS(快趋势线,慢趋势线),慢趋势线,13);STICKLINE(快趋势线>中线 AND 快趋势线>REF(快趋势线,1) AND 快趋势线>慢趋势线,快趋势线,快趋势线+0.0015,1,0),COLORMAGENTA;DRAWTEXT(CROSS(中线,快趋势线),中线,'注意'),COLORWHITE;DRAWICON(CROSS(慢趋势线,快趋势线),慢趋势线,2);V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:= EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10);CCC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);见顶清仓:= STICKLINE(趋势线>=90 AND V12,中线,快趋势线,2,0),COLORCYAN; DRAWICON(CCC,快趋势线,12);DRAWICON(BB,快趋势线,23);DRAWTEXT (BB,快趋势线,'补仓'),COLORLIRED;7.通达信分时买卖力道指标公式A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1>0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1<0.29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A5:=SUM((IF(((A1<0.29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((ISLASTBAR=1),((100*A2)/A6),0);A8:=((IF((ISLASTBAR=1),((100*A3)/A6),0)));A9:=((IF((ISLASTBAR=1),((100*A4)/A6),0)));A10:=((IF((ISLASTBAR=1),((100*A5)/A6),0)));机构买盘:(A2),LINETHICK0;机构卖盘:(A3),LINETHICK0;散户买盘:(A4),LINETHICK0;散户卖盘:(A5),LINETHICK0;STICKLINE(机构买盘>0 AND 机构买盘>=机构卖盘 AND 机构买盘>=REF(机构买盘,1),20,20+100,1,0),COLORRED;STICKLINE(机构卖盘>0 AND 机构卖盘>=机构买盘 AND 机构卖盘>=REF(机构卖盘,1),20,20+100,1,0),COLORWHITE;STICKLINE(散户买盘>0 AND 散户买盘>=散户卖盘 AND 散户买盘>=REF(散户买盘,1),-20,-20-100,1,0),COLORLIMAGENTA;STICKLINE(散户卖盘>0 AND 散户卖盘>=散户买盘 AND 散户卖盘>=REF(散户卖盘,1),-20,-20-100,1,0),COLORCYAN;VAR2:=(CLOSE-LLV(LOW,24))/(HHV(HIGH,24)-LLV(LOW,24))*2000;买卖力道: SMA(VAR2,3,1),COLORLIGRAY;VAR3:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));VAR4:=(IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3*(HIGH-OPEN+CLOSE-LOW),V OL/2))/(IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-L OW),0-VOL/2))*(-1))-IF(CLOSE>OPEN,0-VAR3*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-VAR3*(HIGH-LOW),0-VOL/2))*(-1)/IF(CLOSE>OPEN,VAR3*(HIGH-LOW),IF(CLOSE<OPEN,VAR3 *(HIGH-OPEN+CLOSE-LOW),VOL/2)));VAR5:=AMOUNT/(100*VOL);VAR6:=MA(VAR5,40);VAR7:=100*(CLOSE-VAR6)/VAR6;底部追击:= IF(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,300,200),COLORGREEN; STICKLINE(VAR4>0 AND VAR7<-12 AND CLOSE/OPEN>1.08,1200,200,10,0) , COLORGREEN; VAR8:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;VAR9:=SMA(VAR8,3,1);VARA:=SMA(VAR9,3,1);D: SMA(VARA,5,1)*20, COLORCYAN;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55)) /(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线:= EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;BB:(趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10);买入股票:= (趋势线<=13 AND V12>13),COLORRED;CCC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);清仓:=FILTER(趋势线>=90 AND V12 AND CROSS(D,买卖力道),5),COLORYELLOW;卖出区: 清仓+1800,COLORYELLOW;中:(0+卖出区)/2, COLORGREEN;{股旁网-股票公式网站 }STICKLINE(买卖力道>=中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORMAGENTA;STICKLINE(买卖力道>=中 AND 买卖力道< REF(买卖力道,1),中,买卖力道+中/10,0,0),COLORBROWN;STICKLINE(买卖力道<中 AND 买卖力道>=REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORGREEN;STICKLINE(买卖力道<中 AND 买卖力道< REF(买卖力道,1),中,买卖力道-中/10,0,0),COLORBLUE;DRAWICON(买入股票,中,15);DRAWTEXT (BB,0,'买股'),COLORYELLOW;DRAWTEXT(清仓,买卖力道,'顶'),COLORYELLOW;STICKLINE(清仓,买卖力道,买卖力道+0.01,2,0),COLORBLUE; DRAWICON(CROSS(D,中),中,13);DRAWICON(CROSS(中,买卖力道),买卖力道,2);DIF:=(EMA(CLOSE,13) - EMA(CLOSE,24));DEA:=(EMA(DIF,6));MACD:=(DIF-DEA)*3;红线:=IF(MACD>=0 AND MACD>REF(MACD,1),中,DRAWNULL);青线:=IF(MACD>=0 AND MACD< REF(MACD,1),中,DRAWNULL);粉线:=IF(MACD<0 AND MACD>=REF(MACD,1),中,DRAWNULL);蓝线:=IF(MACD<0 AND MACD< REF(MACD,1),中,DRAWNULL); STICKLINE(红线,200,250,1,0),COLORRED,LINETHICK1;STICKLINE(青线,200,250,1,0),COLORCYAN,LINETHICK1;STICKLINE(粉线,200,250,1,0),COLORMAGENTA,LINETHICK1; STICKLINE(蓝线,200,250,1,0),COLORBLUE,LINETHICK1;DRAWICON(CROSS((A2),(A3)),200,23);通达信如何使用分时指标的教程找到通达信软件的安装位置,打开“T0002”文件夹,找到“user.ini”文件,用记事本打开,把里面“Zstzb=MACD”这一句中的MACD修改为自己要用的指标名称就OK啦。

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

比较稳定的通达信指标公式
一、STOCH:
STOCH指标是KDJ系列指标中的一种,它可以直观表示股票市场的快速
和慢速行情趋势,其值越高说明股票的价格越快,越低说明价格越慢,K线图中STOCH指标的公式形式如下:
STOCH(N,M)=(C-Ln)/(Hn-Ln)*100
其中,N是指Fast STOCH中的“K”,M是指Slow STOCH中的“D”;C是收盘价;Ln是N日内最低价;Hn是N日内最高价。

比较稳定的STOCH指标公式可简化为:
STOCH(5,3)=(C-L5)/(H5-L5)*100
二、MACD:
MACD指标是股市行情分析中使用最广泛的一种指标,也叫指数平滑异
同平均线指标,它能够直观反映价格的上涨和下跌趋势,及行情的快
慢程度,它的公式形式如下:
MACD(N,M)=[12*EMA(C,N)-26*EMA(C,M)]/9
其中,N代表EMA1的周期,M代表EMA2的周期;C是收盘价;EMA
是指数平滑移动平均值。

比较稳定的MACD指标公式可简化为:
MACD(12,26)=[12*EMA(C,12)-26*EMA(C,26)]/9
三、RSI:
RSI指标,也称相对强弱指数,是一种常用的股市技术分析指标,它能
够直观反映股市的强弱,以及股价波动的大小,其公式形式如下:
RSI(N)=100-[100/(1+RSV)]
其中,N代表周期;RSV代表相对强弱指标值,即上涨天数的比率。

比较稳定的RSI指标公式可简化为:
RSI(14)=100-[100/(1+RSV)]
四、BOLL:
BOLL指标是股市行情分析中使用的一种较重要的技术指标,它可以反
映股价的快慢变化,以及股价上下波动的范围,其公式形式如下:
BOLL(N,M)=(MA(C,N) +up*sigma(C,N))/ (MA(C,N) -
dn*sigma(C,N))
其中,N表示均线的周期,M表示上下界扭转设定值;C是收盘价;MA是简单移动平均价;SIGMA是标准差;UP是倍数上轨;DN是倍数下轨。

比较稳定的BOLL指标公式可简化为:
BOLL(20,2)=(MA(C,20) +2*sigma(C,20))/ (MA(C,20) -
2*sigma(C,20))。

相关文档
最新文档