通信达指标公式20150512

合集下载

通达信公式大全

通达信公式大全

通达信公式大全永恒的朋人上传于2015-11-09 分(高于99%的文档)5428142 举报手机打开然不亏线MA17:=EXPMA(CLOSE,17);VAR1:=MA17>REF(MA17,1);COUNT(CROSS(C,MA17),3)=1AND VAR1>0AND DYNAINFO(7)AND DYNAINFO(7)=MA17AND DYNAINFO(7)>1;注:(1)用于盘中选股预警;(2)COUNT(CROSS(C,MA17),3)=1 中“3”可改为“5”;(3)如果要在不亏线发出信号,倒数第二句可改为AND DYNAINFO(7)=MA17;(4)下列指标可单独安装,同上述指标参考使用。

命名为:超然不亏线2(修改版)MA17:=EXPMA(CLOSE,17);VAR1:=MA17>REF(MA17,1);COUNT(CROSS(C,MA17),5)=1AND VAR1>0AND DYNAINFO(7)AND DYNAINFO(7)=MA17 AND DYNAINFO(7)>1;如果规定必须连涨3天,可改为:超然不亏线3(修改版)MA17:=EXPMA(CLOSE,17);VAR1:=MA17>REF(MA17,1)ANDREF(MA17,1)>REF(MA17,2) ANDREF(MA17,2)>REF(MA17,3);COUNT(CROSS(C,MA17),5)=1AND VAR1>0AND DYNAINFO(7)AND DYNAINFO(7)=MA17 AND DYNAINFO(7)>1;恭喜发财通达信预警选股注:两个预警公式,在前一天用通达信先把当天换手率大于5%,小于15%的股选出后放到要预警的股里,然后把下边两个公式加到条件选股里边,第二天盘中只要发出报警的股都可,什么时候发出什么时候买入,能同时两个信号都报警的股更好。

通达信技术指标公式大全

通达信技术指标公式大全

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

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计算高低价指标。

通达信量能力度指标公式附图

通达信量能力度指标公式附图

通达信量能力度指标公式附图
超短力度:Ema(vol,8)/MA(VOL,8)-1;
短线力度:EMA(VOL,22)/MA(VOL,22)-1;
中线力度:EMA(VOL,64)/MA(VOL,64)-1;
长线力度:EMA(VOL,121)/MA(VOL,121)-1;
量能平衡轴:0;
强:0.2;
指标介绍:
这是与抵扣理论相配合的抵扣双均量理论配套的量能力度。

至于用法后续详细更新因为使用技巧很多。

特别运用在龙头身上有奇效。

什么是双均量,按正常情况ema会比ma更快追随成交量,成交量在双均量上方为常态上涨,成交量在双均量下方为常态下跌。

当ma比ema更快追随成交量是,是为异常(通常产生在背驰段),也就是ema在ma上方是成交量却在ma下方(为底背驰量堆),顶背驰量堆是相反的过程。

成交量介于双均量之间的为整理量能。

可以运用在箱体突破,锅底突破,2B结构突破,通过当下成交量的力度和箱体或底部结构上沿的成交量力度对比,来提高突破的成功率。

}。

通达信量学分析指标公式

通达信量学分析指标公式

通达信量学分析指标公式阴短:C<REF(C,1) AND REF(C,1)*0.955>C AND V*2<REF(V,1),COLOR0066FF ;{小倍阳}N:=1;AA1:=REF(CLOSE,2)<REF(OPEN,2);AA21:=REF(CLOSE,1)<REF(OPEN,1);AA22:=REF(CLOSE,1)>REF(OPEN,1);AA2:=AA21 OR AA22;AA3:=REF(VOL,1)<REF(VOL,2);AA4:=VOL>REF(VOL,2);AA:=AA1 AND AA2 AND AA3 AND AA4;BB1:=VOL/REF(VOL,1)>1.8;BB2:=VOL/REF(VOL,1)<2.5;BB:=BB1 AND BB2;CC:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.02;DD:=AA AND BB AND CC;小倍阳:EXIST(DD,N),COLORBLUE;{长阳矮柱}CY:=(C-REF(C,1))/REF(C,1)>=0.04;AZ:=V/MA(V,60)<=0.5;阳矮:CY AND AZ AND H>L,COLORLIRED;{低位阳胜}低位:=REF({C<O AND} KDJ.J<=20,1);{凹底}价胜:=C>REF(MAX(C,O),1)*1.00;量胜:=V>REF(V,1); { WEN98编制}低阳胜: 低位 AND 价胜 AND 量胜;{凹口平量}XGX7:=ABS((VOL-REF(VOL,7))/REF(VOL,7))<0.04 ANDVOL>1.8*REF(VOL,2) ANDREF(VOL,1)<REF(VOL,7) ANDREF(VOL,2)<REF(VOL,7) ANDREF(VOL,3)<REF(VOL,7) ANDREF(VOL,(7-3))<REF(VOL,7) ANDREF(VOL,(7-2))<REF(VOL,7) ANDREF(VOL,(7-1))<REF(VOL,7);XGX8:=ABS((VOL-REF(VOL,8))/REF(VOL,8))<0.04 AND VOL>1.8*REF(VOL,2) ANDREF(VOL,1)<REF(VOL,8) ANDREF(VOL,2)<REF(VOL,8) ANDREF(VOL,3)<REF(VOL,8) ANDREF(VOL,(8-3))<REF(VOL,8) ANDREF(VOL,(8-2))<REF(VOL,8) ANDREF(VOL,(8-1))<REF(VOL,8);XGX9:=ABS((VOL-REF(VOL,9))/REF(VOL,9))<0.04 AND VOL>1.8*REF(VOL,2) ANDREF(VOL,1)<REF(VOL,9) ANDREF(VOL,2)<REF(VOL,9) ANDREF(VOL,3)<REF(VOL,9) ANDREF(VOL,(9-3))<REF(VOL,9) ANDREF(VOL,(9-2))<REF(VOL,9) ANDREF(VOL,(9-1))<REF(VOL,9);XGX10:=ABS((VOL-REF(VOL,10))/REF(VOL,10))<0.04 AND VOL>1.8*REF(VOL,2) ANDREF(VOL,1)<REF(VOL,10) ANDREF(VOL,2)<REF(VOL,10) ANDREF(VOL,3)<REF(VOL,10) ANDREF(VOL,(10-3))<REF(VOL,10) ANDREF(VOL,(10-2))<REF(VOL,10) ANDREF(VOL,(10-1))<REF(VOL,10);XGX11:=ABS((VOL-REF(VOL,11))/REF(VOL,11))<0.04 ANDVOL>1.8*REF(VOL,2) ANDREF(VOL,1)<REF(VOL,11) ANDREF(VOL,2)<REF(VOL,11) ANDREF(VOL,3)<REF(VOL,11) ANDREF(VOL,(11-3))<REF(VOL,11) ANDREF(VOL,(11-2))<REF(VOL,11) ANDREF(VOL,(11-1))<REF(VOL,11);XGX12:=ABS((VOL-REF(VOL,12))/REF(VOL,12))<0.04 ANDVOL>1.8*REF(VOL,2) ANDREF(VOL,1)<REF(VOL,12) ANDREF(VOL,2)<REF(VOL,12) ANDREF(VOL,3)<REF(VOL,12) ANDREF(VOL,(12-3))<REF(VOL,12) ANDREF(VOL,(12-2))<REF(VOL,12) ANDREF(VOL,(12-1))<REF(VOL,12);XGX30:=(C-REF(C,1))>0 AND C>O;XGX31:=XGX7=1 OR XGX8=1 OR XGX9=1 OR XGX10=1 OR XGX11=1 OR XGX12=1;凹平: XGX31=1 AND XGX30=1,COLORCYAN;{地量群}V100:= V<=LLV(V,100)*1.2 AND V>0 AND BARSCOUNT(V)>=100;百日地量群:=COUNT(V100,5)>=3;地群:FILTER(百日地量群,4),COLORWHITE;{回踩黄金线}{1.黄金柱}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,3);黄金线:=REF(LOW,BARSLAST(LJL));黄金柱:=FILTER(TJ1,3);金柱:FILTER(TJ1,3),COLORRED;{2.倍量过左峰}前高:=REF(HHV(C,30),1);倍量:=VOL/REF(VOL,1)>=2.0;倍量过左峰:=C>前高 AND 倍量;倍过左:C>前高 AND 倍量;{3.凹口起柱}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 ;{凹口起柱}AKQZ:= 黄金柱 AND 凹口起柱;{4.前高低位}X:=21;TTY:=H;AAT:=REF(TTY,X)=HHV(TTY,2*X+1);BBT:=FILTER(AAT,X);CCT:=BACKSET(BBT,X+1);HD10T:=FILTER(CCT,X);AA1T:=REF(TTY,X)=LLV(TTY,2*X+1);BB1T:=FILTER(AA1T,X);CC1T:=BACKSET(BB1T,X+1);LD10T:=FILTER(CC1T,X);前期高位:=REF(H,BARSLAST(HD10T));前期低位:=REF(L,BARSLAST(LD10T));{突破前高}TPQG:= 黄金柱 AND 倍量过左峰 AND C>前期高位;{选股}踩金线: (COUNT(TPQG,10) OR COUNT(AKQZ,10)) AND COUNT(CROSS(黄金线*1.01,L),3)>0 AND L>=黄金线AND C>REF(C,1) AND REF(C,2)>REF(C,1) AND COUNT(LJL,3)=0;。

通达信指标公式大全

通达信指标公式大全

通达信指标公式大全: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. 移动平均线(MA):C := CLOSE;MA(C, n)2. 相对强弱指标(RSI):LC := REF(C, 1);R := SMA(MAX(C-LC, 0), n, 1) / SMA(ABS(C-LC), n, 1) * 100;RSI := SMA(R, m, 1);3. 布林线(BOLL):MA(C, n);BOLLUP := MA(C, n) + k * STD(C, n);BOLLDOWN := MA(C, n) - k * STD(C, n);4. 动量指标(MOM):MOM := C - REF(C, n);5. 成交量指标(VOL):VOL := V;6. 相对强弱指数(RSI):RSV:=(CLOSE-LLV(LOW,M))/((HHV(HIGH,M)-LLV(LOW, M))*100);;7. 平均成交量(AVP):AVP:=(C+M+O+L)/4*V*T/F;三、使用指南使用以上的技术指标公式源码,可以在通达信软件中进行相关指标的计算和显示。

用户可以根据自己的需要,调整指标参数和相关代码,以获得所需的分析结果。

请注意,以上源码仅供参考,具体使用时需要根据实际情况进行修改和优化。

结论本文档提供了通达信技术指标公式源码的大全,希望能对用户在通达信软件中应用技术指标提供帮助。

用户可以根据实际需求,选择合适的指标公式源码进行使用。

通达信专用指标公式

通达信专用指标公式

DH-1N:=20;N1:=7;N2:=69;T1:=IF((DATE<=1341231),1,0);M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),COLOR008000;M13:EMA(M8,13),COLOR0000FF;M34:EMA(M8,34),COLORF0F000;VAR1:=EMA(M13,34);M55:EMA(M34,55),COLOR00FFFF;M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;VAR2:=(CLOSE+HIGH+LOW)/(3);VAR3:=(EMA(VAR2,10))*(T1);VAR4:=(REF(VAR3,1))*(T1);STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★'),COLOR00FFFF;DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),'↓卖'),COLOR008000;VAR7:=REF(CLOSE,1);VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);VAR9:=CROSS(N2,VAR8);VARA:=(FILTER(VAR9,4))*(T1);DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);VARC:=LLV(LOW,34);VARD:=HHV(HIGH,34);VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF; DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);DRAWTEXT(IF((CLOSE<VAR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,2.8,0),COLORMAGENTA;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,2.8,0),COLORGREEN;DH-2VOLUME:VOL,VOLSTICK;MAVOL1:MA(VOLUME,M1);MAVOL2:MA(VOLUME,M2);降:COUNT(CLOSE>REF(CLOSE,1),2)=2 AND COUNT(VOL<REF(VOL,1),2)=2;STICKLINE(降,0,V,1,0),COLORGREEN;DRAWTEXT(降,VOL+3000,'降'),COLORGREEN;T:=DYNAINFO(8)>0;VO:VOL=LLV(VOL,180) AND T;地:T AND VO,COLORBLUE;STICKLINE(地,0,V,1,0),COLORBLUE;DRAWTEXT(地,VOL+3000,'地'),COLORBLUE;BLZ:=VOL>REF(V,1)*1.9;BLZ1:=VOL<REF(LLV(VOL,13),1);BLZ2:=VOL<REF(LLV(VOL,55),1);STICKLINE(BLZ,0,V,1,0),COLORYELLOW;倍:BLZ,COLORYELLOW;DRAWTEXT(倍,VOL+3000,'倍'),COLORYELLOW;HJZ:=(3*C+H+L+O)/6;HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/ 36;HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;金:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4;STICKLINE(金,0,V,1,0),COLORRED;DRAWTEXT(金,VOL+10000,'黄'),COLORRED;价涨量缩:降,COLORGREEN;FLZ:=V>REF(V,1)*0.98 AND V<REF(V,1)*1.02,LINETHICK0;STICKLINE(FLZ,0,V,1,0),COLORMAGENTA;DRAWTEXT(FLZ,VOL+3000,'平'),COLORMAGENTA;平:FLZ,COLORMAGENTA;DH-3轴:0,COLOR4B4B4B;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;STICKLINE(流量> 0,流量,0,2.3,0)COLOR0000FF;STICKLINE(流量< 0,流量,0,2.3,0),COLORFF4242;流量基线:GJJ,COLOR00BBBB;STICKLINE(HSL * 0.4 >= 0,HSL * 0.4 * 1.5,0,0,1)COLORYELLOW;STICKLINE(HSL * 0.4 < 0,HSL * 0.4 * 1.5,0,0,1)COLORGREEN;ZJLL:=REF(LLJX,1);QZJJ:=(((LLJX - ZJLL) / ZJLL) * 100);力度: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;N:=20;KK:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(KK-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))); QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(KK-MIN(CLOSE,OPEN)))); QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE ))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-KK),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-KK))); DDX:((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHICK;DX:=MA(DDX,5)*N;STICKLINE(DDX>0,0,DDX,3,0),COLOR000088;STICKLINE(DDX>0,0,DDX,2.5,0),COLOR0000AA;STICKLINE(DDX>0,0,DDX,1.5,0),COLOR0000CC;STICKLINE(DDX>0,0,DDX,1,0),COLOR0000EE;STICKLINE(DDX<0,0,DDX,3,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),COLORFFFF00;万:AMOUNT/10000,COLORFF00FF,NODRAW;VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));流入万:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMO UNT/2))/10000,COLORRED,NODRAW;流出万:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0 -AMOUNT/2))/10000,COLOR00FF00,NODRAW;净额万:流入万+流出万,COLORFFFF00,NODRAW;{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;DDX:N:=20;KK:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);QJ1:=IF(CAPITAL=0,QJ0*(KK-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW))); QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(KK-MIN(CLOSE,OPEN)))); QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE ))));QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-KK),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-KK))); DDX:((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHICK;DX:=MA(DDX,5)*N;STICKLINE(DDX>0,0,DDX,3,0),COLOR000088;STICKLINE(DDX>0,0,DDX,2.5,0),COLOR0000AA;STICKLINE(DDX>0,0,DDX,1.5,0),COLOR0000CC;STICKLINE(DDX>0,0,DDX,1,0),COLOR0000EE;STICKLINE(DDX<0,0,DDX,3,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),COLORFFFF00;万:AMOUNT/10000,COLORFF00FF,NODRAW;VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));流入万:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMO UNT/2))/10000,COLORRED,NODRAW;流出万:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0 -AMOUNT/2))/10000,COLOR00FF00,NODRAW;额万:流入万+流出万,COLORFFFF00,NODRAW;{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;{量:(线),VOLSTICK;};。

通达信量价背离副图指标公式

通达信量价背离副图指标公式

通达信量价背离副图指标公式安装后如下图,友情提示(指标只是辅助,不作建议)所有程序均为免费分享。

不会安装点击安装指南步骤操作。

A:=EMA(EMA(AMOUNT/10000000,5),10);N1:=A;最高:N1,LINETHICK1;最低:N1,LINETHICK1;收盘:N1,LINETHICK1;开盘:REF(收盘,1),LINETHICK1;均量10:=MA(A,10);B:=收盘>开盘;D:=收盘<开盘;F:=EMA(EMA(C,5),10);N2:=F;收盘1:=N2;开盘1:=REF(收盘1,1);G:=收盘1>开盘1;I:=收盘1<开盘1;{程序化指标官方网址 }DRAWTEXT_FIX(1,0.9,0.42,0,'【量价趋势】'),COLORYELLOW;DRAWTEXT_FIX(收盘1>开盘1 AND ISLASTBAR,0.94,0.58,0 ,'价涨'),COLORRED;DRAWTEXT_FIX(收盘1<开盘1 AND ISLASTBAR,0.94,0.58,0 ,'价跌'),COLORGREEN;DRAWTEXT_FIX(收盘>开盘 AND ISLASTBAR,0.91,0.58,0 ,'量增'),COLORMAGENTA;DRAWTEXT_FIX(收盘<开盘 AND ISLASTBAR,0.91,0.58,0 ,'量缩'),COLORLIRED;K:=B AND G;P:=D AND G;高:=REF(HHV(N1,130),3);上部:REFDATE(高,DATE),COLORWHITE,LINETHICK1;STICKLINE(K,上部,上部*1.05,4,0),COLOR3333FF;STICKLINE(P,上部,上部*1.05,4,0),COLOR3CFFFF;DRAWBAND(开盘,RGB(0,255,100),最高,RGB(255,00,100));DRAWTEXT_FIX(1,0.29,0.1,0,'上部红色为价涨量升,上升趋势;'),COLOR3333FF;DRAWTEXT_FIX(1,0.485,0.1,0,'黄色为价跌量减,量价背离,注意顶部!'),COLOR3CFFFF;DRAWTEXT_FIX(1,0.35,0.25,0,'没有标记的区域包括放量下跌和无量阴跌,都不参与'),COLOR66FF33;指标先生有话说:用完记得多多分享文章哦!感谢您的支持!需要把上面公式改写成选股公式大声呼唤我!。

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

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

比较稳定的通达信指标公式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日前的收盘价。

通达信精准的背离主图指标公式Word版

通达信精准的背离主图指标公式Word版

通达信精准的背离主图指标公式高:=CONST(REF(HHV(H,150),3));低:=CONST(REF(LLV(L,150),3));NN:=100;N:=9;LC:=REF(C,1);QC:=REF(C,2);AA:=REF(H,N)=HHV(H,2*N+1);AA1:=REF(L,N)=LLV(L,2*N+1);QY:=BACKSET(AA,N+1);QY1:=BACKSET(AA1,N+1);CC:=FILTER(QY,N) AND H=HHV(H,N+1);CC1:=FILTER(QY1,N) AND L=LLV(L,N+1); DDD:=BARSLAST(CC); DD1:=BARSLAST(CC1); GDTS:=IF(CC,CURRBARSCOUNT,0);DDTS:=IF(CC1,CURRBARSCOUNT,0);UTS:=IF(DDD,REF(GDTS,DDD),GDTS);DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); GDCS1:=CONST(UTS);DDCS1:=CONST(DDTS1);GDCS13:=CONST(REF(H,GDCS1-1));DDCS13:=CONST(REF(L,DDCS1-1));SS1:=REF(UTS,DDD+1);TS2:=REF(DDTS1,DD1+1);GDCS2:=CONST(SS1);DDCS2:=CONST(TS2);M:=INTPART(3*N/5);AAA:=REF(H,M)=HHV(H,2*M+1);QYY:=BACKSET(AAA,M+1);CCC:=FILTER(QYY,M) AND H=HHV(H,M+1); DDDD:=BARSLAST(CCC),NODRAW; GDTSS:=IF(CCC,CURRBARSCOUNT,0); TSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS); GDCS11:=CONST(TSS);TS11:=REF(TSS,DDDD+1);GDCS22:=CONST(TS11);AA11:=REF(L,M)=LLV(L,2*M+1);QY11:=BACKSET(AA11,M+1);CC11:=FILTER(QY11,M) AND L=LLV(L,M+1); DD11:=BARSLAST(CC11);DDTSS:=IF(CC11,CURRBARSCOUNT,0); DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS); DDCS11:=CONST(DDTS11);DDTS22:=REF(DDTS11,DD11+1);DDCS22:=CONST(DDTS22);ZGD:=HHV(H,60)*1.01.00;ZGD2:=CONST(ZGD);高压M:=DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBA RSCOUNT=GDCS11,H,1),COLORRED,LINETHICK1;低撑M:=DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBA RSCOUNT=DDCS11,L,1) COLORRED,LINETHICK1;高压1:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBAR SCOUNT=GDCS1,H,1) ,COLORBLUE,LINETHICK1;低撑1:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARS COUNT=DDCS1,L,1),COLORBLUE,LINETHICK1;高点:=CONST(HHV(H,NN));低点:=CONST(LLV(L,NN));{背景变色}R1:=C>LC AND C>QC;R2:=REF(R1,1) AND C=QC;R3:=REF(R2,1) AND C>=LC AND CR4:=REF(R3,1) AND C=QC;R5:=REF(R4,1) AND C>=LC AND CR6:=REF(R5,1) AND C=QC;R7:=REF(R6,1) AND C>=LC AND CR8:=REF(R7,1) AND C=QC;R9:=REF(R8,1) AND C>=LC AND CRA:=REF(R9,1) AND C=QC;RB:=REF(RA,1) AND C>=LC AND CRC:=REF(RB,1) AND C=QC;RD:=CRE:=REF(RD,1) AND C>=LC AND CRF:=REF(RE,1) AND C=QC;R10:=REF(RF,1) AND C>=LC AND CR11:=REF(R10,1) AND C=QC;R12:=REF(R11,1) AND C>=LC AND CR13:=REF(R12,1) AND C=QC;R14:=REF(R13,1) AND C>=LC AND CR15:=REF(R14,1) AND C=QC;R16:=REF(R15,1) AND C>=LC AND CR17:=REF(R16,1) AND C=QC;R18:=REF(R17,1) AND C>=LC AND CR19:=REF(RD OR RE OR RF OR R10 OR R11 OR R12 ORR13 OR R14 OR R15 OR R16 OR R17 OR R18,1) AND R1;R1A:=((REF(R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,1)) AND RD);V AR3:=IF(CV AR4:=(H+LC)/3;V AR5:=EMA((O+H+L+C)/4,2330);V AR6:=(V AR5 + ((V AR5 * 6) / 100));短买:R19,NODRAW,COLOR00AAAA;离场:R1A,NODRAW,COLORFF7700;持股:R1 OR R2 OR R3 OR R4 OR R5 OR R6 OR R7 OR R8 OR R9 OR RA OR RB OR RC,NODRAW,COLOR8000FF;观望:RD OR RE OR RF OR R10 OR R11 OR R12 OR R13 OR R14 OR R15 OR R16 OR R17 ORR18,NODRAW,COLOR767628;超跌:=(C-MA(C,34))/MA(C,34)*100Q1:=CONST(IF(短买,100,IF(离场,0,IF(持股,100,IF(超跌,150,40))))),NODRAW;Q2:=CONST(IF(短买,100,IF(离场,66,IF(持股,0,IF(超跌,150,118))))),NODRAW;Q3:=CONST(IF(短买,0,IF(离场,132,IF(持股,50,IF(超跌,150,118))))),NODRAW;DRAWBAND(高点,RGB(Q1,Q2,Q3),低点,DRAWNULL);C1:=IF(短买,短买,DRAWNULL),;C2:=IF(离场,离场,DRAWNULL),;{DDE金指N: 1, 999, 13;}JH:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)), 6,1)*100;SZ:=FILTER(CROSS(JH,35),13);SX:=FILTER(CROSS(JH,30),7);SQ:=FILTER(CROSS(71,JH),74);SD:=FILTER(CROSS(80,JH),74);CCL:=REF(HHV(C,120),1);DD:=REF(LLV(C,120),1);WW:=100*(C-DD)/(CCL-DD);EE:=AMOUNT;FF:=(EMA(EE,5)/REF(EMA(EE,5),5));低买:IF(CAPITAL变盘:FILTER(OO ANDV>REF(V,1),13),COLORFF88FF,NODRAW;霸占:=FILTER((FF>=2 AND WW30 OR (FF>=2 AND WW 顶部:=IF(CAPITAL持股K:C>REF(C,1),COLOR0099FF,NODRAW;持币K:C平盘:=C=REF(C,1),COLOR999999,NODRAW;STICKLINE(持股K,H,L,3,1),COLOR0099FF;STICKLINE(持股K,C,O,1.5,0),COLOR0099FF; STICKLINE(持币K,H,L,3,1),COLORFF9900;STICKLINE(持币K,C,O,1.5,0),COLORFF9900; STICKLINE(平盘,H,L,3,1),COLOR999999;STICKLINE(平盘,C,O,1.5,0),COLOR999999;STICKLINE(霸占,H,L,3,1),COLOR0000CC;STICKLINE(霸占,C,O,1.5,0),COLOR0000CC; STICKLINE(变盘,H,L,3,1), COLORFF88FF;STICKLINE(变盘,C,O,1.5,0),COLORFF88FF;STICKLINE(低买,H,L,3,1),COLOR22FFFF;STICKLINE(低买,C,O,1.5,0),COLOR22FFFF;STICKLINE(顶部,H,L,3,1),COLOR00CC00;STICKLINE(顶部,C,O,1.5,0),COLOR00CC00;趋势线:=3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1) -2*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),COLORBCBC00,NOD RAW;ZZ:=趋势线>REF(趋势线,1);{阻力支撑}QWX1:=HHV(C,30);QWX2:=LLV(C,30);QWX3:=CONST((QWX1+QWX2)/2);QWX4:=ABS((2*C+H+L)/4-MA(C,20))/MA(C,20);QWX5:=CONST((1-7/100)*(DMA(C,QWX4)));QWX6:=CONST((1+7/100)*(DMA(C,QWX4)));阻力:IF(BARSLAST(CURRBARSCOUNT=12),QWX6,DRAWN ULL),COLORFF9D3C,LINETHICK1,CIRCLEDOT;支撑:IF(BARSLAST(CURRBARSCOUNT=12),QWX5,DRAWN ULL),COLORFF00FF,LINETHICK1,CIRCLEDOT;{最佳买入选股}RSI5:=(SMA(MAX((C-LC),0),5,1)/SMA(ABS((C-LC)),5,1))*1 00;TR1:=SUM(MAX(MAX((H-L),ABS(H-REF(C,1))),ABS(L-RE F(C,1))),10);HD:=H-REF(H,1);LD:=REF(L,1)-L;DMP:=SUM(IF((HD>0 AND HD>LD),HD,0),10);DMM:=SUM(IF((LD>0 AND LD>HD),LD,0),10);PDI:=DMP*100/TR1;MDI:=DMM*100/TR1;ADX:=MA((ABS((MDI-PDI)/(MDI+PDI))*100),5);A V:=RSI5+ADX;DXR:=(ADX+REF(ADX,5)/2)+RSI5;WR10:=(100*(HHV(H,10)-C))/(HHV(H,10)-LLV(L,10)); NEWVOL:=RSI5-WR10;最佳买入:=A V+NEWVOL;J:="KDJ.J";X:=LLV(J,2)=LLV(J,8);买入时机:=(CROSS(J,3));佳选A:=CROSS(最佳买入,0);{DIF综合抓牛}RSIA:=(SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*100)/ 100;WR:=-100*(HHV(H,14)-C)/(HHV(H,14)-LLV(L,14));反向:=((0-WR)-100)/100,;角度差:=1-(反向/RSI);角度2:=MA(角度差,2);角度4:=MA(角度差,4);角度差A:=角度差>MA(角度差,3)*1.3;转向:=REF(角度差,1)REF(角度差,1) AND REF(角度差,1) SS:=COUNT(转向,4)>0 OR COUNT(角度差A,4)>0;DIF买:=CROSS(角度2,角度4) AND SS,COLOR0088FF; {精准买点}CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(V,13); CYS:=(C-CYC13)/CYC13*100;逢低买入:=IF("ZXNH.ZXNH"=1 AND CYS抓牛A:=DIF买&&逢低买入;到:=(HHV(H,21)-C)/(HHV(H,21)-LLV(L,21))*100-10;底:=(C-LLV(L,21))/(HHV(H,21)-LLV(L,21))*100;啦:=SMA(底,13,8);哈:=CEILING(SMA(啦,13,8));哈哈:=SMA(到,21,8);差:=哈-哈哈,COLORFFFFFF;RC1:=REF((L+O+C+H)/4,1);RC2:=SMA(ABS(L-RC1),13,1)/SMA(MAX(LOW-RC1,0),10,1 );RC3:=EMA(RC2,10);RC4:=LLV(L,33);RC5:=EMA(IF(L建仓:=IF(RC5>REF(RC5,1),RC5,0);洗:=IF(RC5启动A:=FILTER(REF(差,1)REF(差,1) AND (建仓OR 洗),3); {乖离破底}X3:=(2*C+L+H)/4;地:=EMA(X3,55)*0.84,;乖离5:=(C-MA(C,5))/MA(C,5)*100,NODRAW;乖离A:=FILTER(LREF(乖离5,1),3);趋势:=7*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*30,4,1) -3*SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*30,4,1 ),3,1)-SMA(SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*30 ,4,1),3,1),2,1);天线:=78.89;逃顶:=CROSS(天线,趋势);低吸A:=CROSS(趋势,5);{内能线}ZF:=((C-REF(C,1))/REF(C,1))*100;HSL:=(V/CAPITAL)*100;KK:=ZF/HSL,COLOR6000FF;KK5:=MA(KK,5),COLORFFAA00;LL:=LLV(KK,34);内能买A:=CROSS(KK,KK5)&&REF(KK,1){包赚不赔}止跌:=(REF(EVERY(CO);V AR1N:=MA(C,5),;V AR2N:=MA(C,10);V AR3N:=(V AR1N-C)/C>3/100;V AR4N:=(V AR2N-V AR1N)/V AR1N>0.03;V AR5N:=LLV(C,30)=LLV(C,120);底部:=V AR3N AND V AR4N AND V AR5N;包赚A:=BARSLAST(底部){深坑挖金}A:=REF(C,1);RSIK:=SMA(MAX(C-A,0),6,1)/SMA(ABS(C-A),6,1)*100;A4:=RSIAZZF:=(C/REF(C,1)-1)*100;深坑1:=IF(BETWEEN(A4,0,5) AND LCD:= C>=O AND REF(深坑1 ,1)=20 AND REF(RSI,1)深坑A:=C>O AND REF(深坑1 ,1)=20 AND REF(RSI,1)深坑★:IF(深坑A,L*1.005,DRAWNULL)COLOR55FF55,CIRCLEDOT,LINE THICK5;佳选★:IF(佳选A,L*0.995,DRAWNULL)COLORFF88FF,CIRCLEDOT,LINE THICK4;启动★:IF(启动A,L*0.99,DRAWNULL)COLORFFFF00,CIRCLEDOT,LINETHICK4;抓牛★:IF(抓牛A,L*0.985,DRAWNULL)COLOR0088FF,CIRCLEDOT,LINET HICK4;乖离底★:IF(乖离A,L*0.98,DRAWNULL)COLORFFFFFF,CIRCLEDOT,LINET HICK4;内能买★:IF(内能买A,L*0.975,DRAWNULL)COLOR0000FF,CIRCLEDOT,LINET HICK4;低吸★:IF(低吸A,L*0.97,DRAWNULL)COLOR00FFFF,CIRCLEDOT,LINET HICK4;包赚★:IF(包赚A,L*0.965,DRAWNULL)COLORFF00FF,CIRCLEDOT,LINE THICK4;B01:=IF(佳选A,1,0);B02:=IF(启动A,1,0);B03:=IF(抓牛A,1,0);B04:=IF(乖离A,1,0);B05:=IF(内能买A,1,0);B06:=IF(低吸A,1,0);B07:=IF(包赚A,1,0);B08:=IF(深坑A,1,0);【共振】:B01+B02+B03+B04+B05+B06+B07+B08,COLOR00FFF F,NODRAW;DRAWICON(【共振】>=4,H*1.008,34);持币线:EMA(C,13),COLOR32E01F,LINETHICK3;持股线:IF(持币线>REF(持币线,1),持币线,DRAWNULL),COLOR460CF3,LINETHICK3;{画线}IF(BETWEEN(高压M,高点,低点),高压M,DRAWNULL),COLOR00CCFF,LINETHICK1;IF(BETWEEN(低撑M,高点,低点),低撑M,DRAWNULL),COLOR00CCFF,LINETHICK1;IF(BETWEEN(高压1,高点,低点),高压1,DRAWNULL),COLORCCCCCC,LINETHICK1;IF(BETWEEN(低撑1,高点,低点),低撑1,DRAWNULL),COLORCCCCCC,LINETHICK1;中:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORFF FFFF;V AR326:=IF(C AND MA(VOL,5)/240 AND C>LC*1.0 AND C,88,0);V AR327:=IF(C/LC>1.050 AND VOL/CAPITAL*1000, 91, 0); DRAWTEXT(V AR327>90,L*0.993,'↖杀庄'),COLOR00FFFF; {背离}RSI:=(SMA(MAX((C-LC),0),3,1)/SMA(ABS((C-LC)),3,1))*10 0;FFF:=EMA(C,3);MA15:=EMA(C,21);顶背:=CROSS(88,RSI);DRAWTEXT(CROSS(FFF,MA15),L,'←底背'),COLORFF88FF;CCI:="CCI";CCI3:=MA(CCI,3);CCI7:=MA(CCI,7);头:=CROSS(CCI3,CCI) AND (CCI>130);STICKLINE(头,H*1.005,H*1.01,4,0),COLOR00CC00; DRAWTEXT(头,H*1.01,'头'),COLORFFFFFF;STICKLINE(逃顶,H*1.01,H*1.015,4,0),COLORFFFFFF;卖出警报:=(头AND 顶背),COLOR0000FF;STICKLINE(卖出警报,H*1.016,H*1.025,4,0),COLOR0000FF; DRAWTEXT(卖出警报,H*1.028,'空仓'),COLORFFFFFF; DRAWICON(顶背,H*1.016,8);DRAWTEXT(顶背,H*1.02,'←顶背'),COLOR98FF75;DRAWTEXT_FIX(1,0.92,0.01,0,STRCAT(STRCAT('【共振】',CON2STR(【共振】,1)),' ')),COLOR00FFFF;。

通达信公式教程大全(公式+指标+实例)

通达信公式教程大全(公式+指标+实例)

通达信公式教程大全(公式+指标+实例)本文介绍了通达信中常用的公式和指标,并给出了相应的实例说明。

希望能帮助读者更好地使用通达信软件。

一、公式1. 移动平均线 (Moving Average, MA)移动平均线是分析股票价格走势的常用工具之一,用于平滑价格曲线,使趋势更加明显。

通达信中的移动平均线公式为:MA(n) = (C + C1 + C2 + ... + C(n-1) + C(n)) / n其中,MA(n) 表示第 n 日的移动平均线值,C 表示当日的收盘价。

2. 相对强弱指数 (Relative Strength Index, RSI)相对强弱指数是用来测量股票价格走势强度的指标,其数值介于0和100之间。

通达信中的相对强弱指数公式为:RSI(n) = 100 - [100 / (1 + RS)]RS = GainAverage(n) / LossAverage(n)其中,RSI(n) 表示第n 日的相对强弱指数,RS表示相对强度,GainAverage(n) 表示涨幅平均值,LossAverage(n) 表示跌幅平均值。

3. 布林带指标 (Bollinger Bands, BOLL)布林带指标用于判断股票价格的波动情况,由上、中、下三条线组成。

通达信中的布林带指标公式为:UP(n) = MA(n) + 2 * Std(n)DN(n) = MA(n) - 2 * Std(n)其中,UP(n) 表示上轨线,DN(n) 表示下轨线,Std(n) 表示标准差。

二、指标1. 成交量 (Volume)成交量指标用于衡量股票交易的活跃度。

通达信中可以通过画柱状图的方式显示成交量。

2. 相对强弱指数 (Relative Strength Index, RSI)相对强弱指数在公式部分已经进行了介绍,这里重点说明其在通达信中的显示形式。

通达信以0和100作为区间,通过画线的方式显示相对强弱指数。

3. 动量指标 (Momentum)动量指标用来测量股票价格的变动速度,可以判断价格的超买超卖情况。

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

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

通达信最实用的五大指标公式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. RPS技术指标公式点击通达信软件最上⾯的功能,选中公式管理器,选择技术指标公式,选择其他类型,然后点击右侧新建,复制如下公式:X:=EXTDATA_USER(1,0);{120天的}RPS120:X/10,LINETHICK2,COLORGREEN;IF(RPS120>=M,RPS120,DRAWNULL),LINETHICK2,COLORRED;87;Y:=EXTDATA_USER(2,0);{250天的}RPS250:Y/10,LINETHICK2,COLORWHITE;IF(RPS250>=M,RPS250,DRAWNULL),LINETHICK2,COLORRED;Z:=EXTDATA_USER(3,0);{50天的}RPS50:=Z/10;D:=IF(RPS50>=87,1,0);{RPS50⼤于87}A:=C/MA(C,250)>1;{站上年线}NH:=IF(H<HHV(H,50),0,1);B:=COUNT(NH,30);{⼀⽉内曾创50⽇新⾼}NN:=IF(C>MA(C,250),1,0);AA:=COUNT(NN,30);AB:=CLOSE/HHV(HIGH,120)>0.9;{收盘价距离120⽇内的最⾼价不到10%}⽉线反转:100*(A AND B AND D AND AA>3 AND AA<30 ANDAB),LINETHICK2,COLORYELLOW;{选出刚刚站上年线⼩于30天,⼤于3天的};不要忘记设置参数M,如上图的红⾊椭圆框公式⾥⾯⽤到了三个拓展数据,⼀定要按照120,250,50顺序设置,当然你也可以设置⾃⼰想要的顺序,但是⼀定要和公式⾥⾯的对应上然后个股选择主图技术指标,替换成刚刚的即可技术指标公式的效果如下2. ⽉线反转3.0MA10:MA(CLOSE,10);MA20:MA(CLOSE,20);MA50:MA(CLOSE,50);MA120:MA(CLOSE,120);MA250:MA(CLOSE,250);Z:=EXTDATA_USER(3,0);{50天的}RPS50:=Z/10;D:=IF(RPS50>=85,1,0);{RPS50⼤于85}A:=C/MA(C,250)>1;{站上年线}NH:=IF(H<HHV(H,50),0,1);B:=COUNT(NH,30);{⼀⽉内曾创50⽇新⾼}NN:=IF(C>MA(C,250),1,0);AA:=COUNT(NN,30);AB:=HIGH/HHV(HIGH,120)>0.9;{最⾼价距离120⽇内的最⾼价不到10%}DRAWICON(BARSSINCEN((A AND B AND D AND AA>3 AND AA<30 ANDAB),30)=0,LOW,34);⽉线反转3.0版本的技术指标公式的⼏个条件是:(1)⽇线收盘价站上年线;(2)⼀⽉内曾创50⽇新⾼;(3)50⽇的RPS⼤于85;(4)收盘价站上年线的天数⼤于3,⼩于30;(5)最⾼价距离120⽇内的最⾼价不到10%;公式中最后⼀句话的意思是指30天内第⼀次满⾜⽉线反转的信号时,将在该⽇k线下⽅画表情34(⼀个黄⾊图标)。

通达信衰减系数指标公式

通达信衰减系数指标公式

通达信衰减系数指标公式
首先,计算每日价格波动的平均值(Mean Deviation):
MD=(P1-P0)+0.6*(P2-P1)+0.2*(P3-P2)
其中,P0为当前日期的结束价,P1为前一交易日的结束价,P2为前2个交易日的结束价,P3为前3个交易日的结束价。

然后,计算每日价格波动的平方差(Squared Deviation):
SD=[(P1-P0)-MD]^2+0.36*[(P2-P1)-MD]^2+0.04*[(P3-P2)-MD]^2
接下来,计算波动方差的平均值(Average Deviation):
AD=(SD1+SD2+...+SDn)/n
其中,n为计算平方差的天数。

最后,计算衰减系数(Decay Coefficient):
DC = sqrt((AD / MD) * 100)
以上就是通达信衰减系数指标的计算过程和公式。

通达信衰减系数指标的应用主要体现在判断股票价格波动是否畸形。

当衰减系数较高时,可以认为股票价格波动畸形,市场可能处于过度乐观或过度悲观状态,投资者可以关注股票的高抛低吸机会。

当衰减系数较低时,可以认为股票价格波动相对平稳,市场可能处于相对平静的状态,投资者可以选择稳健的投资策略。

需要注意的是,衰减系数指标并非预测价格走势的准确工具,它只是一个衡量股票价格波动幅度的指标,投资者在使用衰减系数指标时应综合考虑其他技术指标和基本面分析,以进行全面的投资决策。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
获利了结线: 多空平衡线*1.0723379625,COLORWHITE,LINETHICK1;
超涨出货线: 多空平衡线*1.1694444444,COLORWHITE,LINETHICK1;
LS: MA(EMA(CLOSE,34)*0.82,5),COLORFFC387,LINETHICK3;
X1,DRAWNULL));
LYA:=IF(LYA1=DRAWNULL,REF(LYA1,1),LYA1);
SNX2:=IF(LYA<H AND LYA>L,REF(LYA,1),LYA);
PLOYLINE(C>0,SNX2),COLORGREEN,LINETHICK1;
多空平衡线: EMA(EMA(EMA(HIGH,7.23379625),7.23379625),1),COLORRED,LINETHICK1;
持股区域:IF(VAR1>0,VAR1,0),COLORRED;
短顶:STICKLINE(VAR1>9 AND FILTER(VAR1< REF(VAR1,1),5),VAR1+2,0,3,0),COLORGREEN;
大顶:STICKLINE(VAR1>20 AND FILTER(VAR1< REF(VAR1,1),5),VAR1+5,0,7,0),COLOR00FF00;
VAR2:=HHV(VAR1>20,10);
危险: STICKLINE(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10,0,4,0);
注意止损:STICKLINE(VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,0,3,0);
D: SMA(K,3,1), , COLORGREEN;
J: 3*K-2*D, , COLORWHITE;
底部: 20,LINETHICK2 ,POINTDOT COLOR77AA1A;
预警: 80,LINETHICK2 ,POINTDOT COLORCYAN;
顶部: 100,LINETHICK2 ,POINTDOT COLOR22A6E6;
先知: STICKLINE(VAR6<=-8,68,0,2,0), , COLORYELLOW;
逢低介入: IF(VAR6<-8,38,0),LINETHICK1,COLORYELLOW;
消失后买: IF(VAR6<-8,18,0),LINETHICK6,POINTDOT COLORYELLOW;
买入准备:VAR1<-9 AND VAR1> REF(VAR1,1) ,COLORWHITE;
短底:STICKLINE(VAR1<-9 AND VAR1> REF(VAR1,1),VAR1-2,0,3,0),COLORRED;
大底:STICKLINE(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),VAR1-5,0,7,0),COLORYELLOW;
强势回挡线: 多空平衡线*0.9276620375,COLORGREEN,LINETHICK1;
弱势反弹线: 多空平衡线*0.868055,COLORD89837,LINETHICK1; {0.9}
最低安全线:多空平衡线*0.8263889,COLORGRAY,LINETHICK1;
高位止赢线: 多空平衡线*1.12170138,COLOR0089BB,LINETHICK1;
指标:短线精灵 1买入准备70
VAR1:=((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;
持币区域:VAR1,COLORFEDCBA;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(VAR2+2*VAR3+3*VAR4)/7;
VAR6:=MA(VAR5,1);
MACD: VAR3*8,COLORSTICK ,LINETHICK6 ;
K: SMA(VAR1,3,1), , COLORRED;
DS: MA(EMA(CLOSE,34)*0.75,5)COLORBLUE,LINETHICK3;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100 ;
STICKLINE(BIAS2<,H,L,0,0),COLORGREEN;
STICKLINE(BIAS2<-6,C,O,1,1),COLORGREEN;
指标:小保专用 38逢低介入70 18消失后买70
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
指标:多空平衡线
X1:=HHV(H,3);
X2:=LLV(L,3);
XX:=(X1+X2)/2;
XC:=C;
XH:=H;
XL:=L;
LYA1:=IF (XH>REF(X1,1) AND XC>REF(XC,1),X2,IF (XL<REF(X2,1) AND XC<REF(XC,1),
指标:[龙行MACD]
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
STICKLINE(DIFF>DEA,DIFF,DEA,6,0),COLORRED;
STICKLINE(DIFF<DEA,DIFF,DEA,6,0),COLORGREEN;
相关文档
最新文档