相关简介: 通达信最全指标公式源码,给大家分享实用的技术指标
通达信指标公式源码概况:
指标类别:通达信指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:副图
通达信最全指标公式源码:
{通达信公式底部乖离率副图无未来}
VAR2:=(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1))*100);
VAR3:=(((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18)))*100);
VAR4:=SMA(VAR3,9,1);
VAR5:=SMA(VAR4,3,1);
乖离率:((3*VAR4)-(2*VAR5)),LINETHICK2,COLORRED;
VAR6:=(乖离率>(1*REF(乖离率,1)));
VAR7:=LLVBARS(LOW,50);
VAR8:=SUM(VOL,VAR7);
VAR9:=HHVBARS(HIGH,50);
VAR10:=SUM(VOL,VAR9);
VAR11:=(((CLOSE-REF(OPEN,VAR9))/REF(OPEN,VAR9))*100);
VAR12:=((VAR10/CAPITAL)*100);
VAR13:=(((CLOSE-REF(OPEN,VAR7))/REF(OPEN,VAR7))*100);
VAR14:=((VAR8/CAPITAL)*100);
VAR15:=(MA(WINNER(CLOSE),3)*100);
VAR16:=EMA(VAR4,3);
VAR200:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR300:=SMA(SMA(VAR200,3,1),3,1)/28.57;
VAR400:=EMA(VAR300,5);
操盘:=3*VAR300-2*VAR400;
A1:=CROSS(操盘,VAR300)ANDVAR300<2.1ANDC>O;
STICKLINE(A1,30,0,1,0);
DRAWTEXT(A1,36,'★★★'),COLORRED;
{通达信参考底副图指标公式}
R0:=CLOSE;M:=5;
MA5:=MA(R0,5);
MA10:=MA(R0,10);
MA20:=MA(R0,20);
VD1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
底:ABS(VD1);
VRD1:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
VRD2:=SMA(VRD1,3,1);
VRD3:=SMA(VRD2,3,1);
VRD4:=SMA(VRD3,3,1);
VRD5:=CROSS(VRD3,VRD4)ANDVRD3<20;
VARF1:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VARF21:=SMA(VARF1,3,1);
趋势:=SMA(VARF21,3,1);
人气:=SMA(趋势,3,1);
出击:=IF(CROSS(趋势,人气)AND(趋势<30),20,0);
底参考:出击=20;
CS:=(CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*100;
YJD:=(EMA(CS,3)-50)*2;
底1:=IF(YJD<=-60,30,0);
顶1:=IF(YJD>=80,35,0);
起点:COUNT(底参考OR底1=30,M)>0;
{通达信猛龙过江副图公式源码}
均价:=(HIGH+LOW+CLOSE)/3;
VARN1:=LLV(LOW,13);
VARN2:=HHV(HIGH,5);
快线:=EMA((均价-VARN1)/(VARN2-VARN1)*100,4);
慢线:=EMA(0.618*REF(快线,1)+0.382*快线,2);
转点:=IF(快线>慢线,1,0);
顶部:=75;
底部:=25;
大盘均价:=(INDEXH+INDEXL+INDEXC)/3;
个股LC:=REF(均价,1);
个股牛熊:=SMA(MAX(均价-个股LC,0),30,1.92)/SMA(ABS(均价-个股LC),30,1.92)*100,;
大盘LC:=REF(大盘均价,1);
大盘牛熊:=SMA(MAX(大盘均价-大盘LC,0),30,1.92)/SMA(ABS(大盘均价-大盘LC),30,1.92)*100;
大牛:=IF(大盘牛熊>50AND大盘牛熊>=SMA(大盘牛熊,3,1),55,0);
大熊:=IF(大盘牛熊<50AND大盘牛熊<=SMA(大盘牛熊,3,1),35,0);
牛个:=IF(个股牛熊>50AND个股牛熊>=SMA(个股牛熊,3,1),15,0);
熊个:=IF(个股牛熊<50AND个股牛熊<=SMA(个股牛熊,3,1),45,0);
VAR1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;
牛:SMA(VAR1,7,1.96);
VAR2:=SMA(牛,5,1.96);
熊:IF(CROSS(牛,VAR2)ANDCROSS(MA(C,5),MA(C,13)AND牛>50),VAR2*2,VAR2);
NXC:=牛-熊;
VA1:=SMA(NXC,5,1);
VA2:=SMA(NXC,13,1);
牛熊差:=IF(NXC>0,NXC/熊-NXC/牛,NXC/牛-NXC/熊);
VA3:=SMA(牛熊差,3,1);
VA4:=SMA(牛熊差,2,1);
VAR3:=EMA(C,8);
VAR4:=EMA(C,20);
STICKLINE(牛>VAR2,牛,熊,0,0);
STICKLINE(牛<VAR2,牛,VAR2,0,0);
短线进出:3*SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1)-2*SMA(SMA((C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100,5,1.96),3,1);
VAR5:=10;
低吸区:IF(短线进出<=70.1AND牛熊差>=VA3,30,0);
买入:IF(短线进出<=70.1AND牛熊差>=VA3AND牛熊差>=-0.004AND牛熊差>=VA4AND牛熊差>=REF(牛熊差,1),35,0);
VAR6:=(2*C+H+L+O)/5;VAR7:=LLV(L,33);VAR8:=HHV(H,33);
目前位置:EMA((VAR6-VAR7)/(VAR8-VAR7)*100,5);
生命线:EMA(0.667*REF(目前位置,1)+0.333*目前位置,4),CIRCLEDOT;VAR9:=IF(CROSS(生命线,目前位置)AND目前位置>=77,77,89);VARA:=IF(CROSS(目前位置,20)ORCROSS(目前位置,生命线)AND目前位置>20,20,5);
卖出区:VAR9;VARB:=LLV(L,55);VARC:=HHV(H,34);VARD:=EMA((VAR6-VARB)/(VARC-VARB)*100,3);
{通达信波段起涨指标公式}
X_2:=(X_1-MA(X_1,25))/(0.015*AVEDEV(X_1,25));
X_3:=X_2<=LLV(X_2,120);
X_4:=CROSS(X_2,(-100));
波段起涨:(X_4 AND EXIST(X_3,5) AND EXIST(X_2<(-180),3))*100,COLORRED,LINETHICK2;
DRAWTEXT(X_4 AND EXIST(X_3,5) AND EXIST(X_2<(-180),3),96,'波段起涨'),COLORYELLOW;
{通达信主力照妖镜2指标公式}
VAR1:=AMOUNT/VOL/100;
VAR2:=(VAR1-REF(VAR1,1))/REF(VAR1,1);
VAR3:=100*VOL/CAPITAL;
VAR4:=VAR2/VAR3;
0;
VAR5:=SUM(VAR4,10);
VAR6:=(VAR5-REF(VAR5,10))/REF(VAR5,10);
VAR7:=VOL/(HIGH-LOW);
VAR8:=VAR7>REF(VAR7,1);
VAR9:=REF(VAR7,1)>REF(VAR7,2);
ZYJ: IF(WINNER(CLOSE)<5/100 AND VAR3>0.1 AND VAR8 AND VAR9,VAR6,0);
{通达信周期共振指标公式}
DIFM:=(EMA(C,240)-EMA(C,520));
DEAM:=EMA(DIFM,180);
MACD(月):(DIFM-DEAM)/2,NODRAW,COLORFFFF00;
DIFW:=(EMA(CLOSE,60)-EMA(CLOSE,130));
DEAW:=EMA(DIFW,45);
MACD(周):(DIFW-DEAW)*2,NODRAW,COLORYELLOW;
DIFD:=(EMA(C,12)-EMA(C,26)),LINETHICK3,COLORMAGENTA;
DEAD:=EMA(DIFD,9),LINETHICK3,COLORBLUE;
MACD(日):(DIFD-DEAD)*2,NODRAW,COLORRED;
STICKLINE(1,0,MACD(月),5.50,0),COLORFFFF00;
STICKLINE(1,0,MACD(周),3.50,0),COLORYELLOW;
STICKLINE(1,0,MACD(日),2.25,0),COLORRED;
短期安全:MACD(日)>REF(MACD(日),1) AND MACD(周)>REF(MACD(周),1),NODRAW,COLORFF0000;
短期风险:(短期安全!=1),NODRAW,COLORFFFFFF;
中期安全:MACD(周)>REF(MACD(周),1) AND MACD(月)>REF(MACD(月),1),NODRAW,COLOR9900FF;
中期风险:(中期安全!=1),NODRAW,COLORGREEN;
DIF2:DIFD,LINETHICK2,COLORFFFFFF;
DIF1:IFF(短期安全,DIFD,DRAWNULL),LINETHICK2,COLORFF0000;
DEA1:DEAD,LINETHICK3,COLORGREEN;
DEA2:IFF(中期安全,DEAD,DRAWNULL),LINETHICK3,COLOR9900FF;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)