通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
主线:=(MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24)+MA(CLOSE,36))/4,COLORFF00FF,LINETHICK2;
股价重心:=DMA(AMOUNT/VOL/100,VOL/CAPITAL),COLORGREEN,LINETHICK2;
MA14:=EMA(CLOSE,14);
MA34:=EMA(CLOSE,26);
MA54:=EMA(CLOSE,54);
MA90:=EMA(CLOSE,90);
MA120:EMA(CLOSE,120),POINTDOT,LINETHICK2,COLORWHITE;
年线:EMA(C,250),COLORYELLOW,LINETHICK2;
{中短波}
HZ:=EMA(CLOSE,13);
短波:EMA(HZ,1),COLOR00DD00,LINETHICK1;
中波:EMA(HZ,26),COLORRED,LINETHICK1;
148天:=EMA(C,148),POINTDOT,LINETHICK1,COLORGREEN;
:=SUM(AMOUNT,0)/SUM(VOL,0)/100,COLORYELLOW ,LINETHICK2 ;
HZ2:EMA(HZ,8),COLORGREEN,LINETHICK2;
HZ4:EMA(HZ,39),COLORFF00FF,LINETHICK2;
A1:STICKLINE(HZ2HZ4,短波,HZ4,0.1,0),COLORBLUE ;
A2:STICKLINE(短波HZ2,短波,HZ2,0.1,0),COLORGREEN;
A3:STICKLINE(中波HZ4,中波,HZ4,0.1,0),COLORFF00FF;
{慢速KDJ}
RSV:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
FASTK:=SMA(RSV,12,1);
K:=SMA(FASTK,9,1),COLORYELLOW;
D:=SMA(K,3,1),LINETHICK2,COLORBLUE;
J:=3*K-2*D,LINETHICK1,COLORGREEN;
{中波}
VAR11:=3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)-2*SMA(SMA((CLOSE-LLV(LOW,75))
/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR22:=100-VAR11;
中势线:=(-1)*(EMA(VAR22,1)-50)+42,COLORYELLOW,LINETHICK2;
TZ:=(CLOSE-LLV(LOW,331))/(HHV(HIGH,331)-LLV(LOW,331))*100;
强势线:=SMA(TZ,5,1),LINETHICK2,COLORRED;
线:=70*(HHV(HIGH,39)-CLOSE)/(HHV(HIGH,39)-LLV(LOW,39)),COLOR009900,LINETHICK1;
{量选}
AA:=VOL/SUM(VOL,13);
BB:=DMA(C,AA);
CC:=VOL/SUM(VOL,34);
DD:=DMA(C,CC);
{}
VAR00:=WINNER(CLOSE);
VAR1:=FORCAST(VAR00,10);
VAR2:=MA(VAR1,3);
VAR3:=MA(VAR2,12);
VAR4:=MA(VAR3,16);
VAR5:=MA(VAR4,31);
VAR6:=MA(VAR5,55);
VAR7:=VAR5;
VAR8:=VAR4VAR2*1.11 AND VAR3VAR2*1.095;
A:=VAR4/VAR2;
B:=VAR3/VAR2;
VAR9:=VAR2VAR1*0.95;
TD:=VAR2/VAR1;
VAR1H:=INDEXC;
VAR2H:=MA(VAR1H,6);
VAR3H:=MA(VAR1H,24);
VAR4H:=MA(VAR1H,32);
VAR5H:=MA(VAR1H,62);
VAR6H:=MA(VAR1H,105);
VAR7H:=VAR5H;
VAR8H:=VAR4HVAR2H*1.11 AND VAR3HVAR2H*1.095;
VAR9H:=VAR2HVAR1H*0.95;
PT:=(IF(H=L AND C=O AND L=C AND C0 AND REF(H,1)=REF(L,1) AND REF(C,1)=REF(O,1)
AND REF(H,1)=REF(C,1) AND REF(C,1)0,0,1))0;
G:=(VAR7H AND VAR8H AND VAR9H AND CLOSE/COST(8)=0.7985
AND (COUNT(C=L,4)3 OR CREF(C,1)))AND PT OR
VAR7 AND VAR8 AND VAR9 AND CLOSE/COST(5)=0.8 AND
((VAR1OPEN OR VAR1REF(OPEN,1) OR
REF(VAR1,1)));
背离:=VAR2REF(VAR2,1) AND AREF(A,1);
买入信号1:=VAR1A AND VAR2B;
买入信号2:=BA AND 1B AND A1 AND H=HHV(H,21);
BUY2:=COUNT(背离,20)1 AND 买入信号2=1 AND CO OR CROSS(BB,DD);
DRAWICON(CROSS(短波,HZ2),中波-0.08,9);
DRAWTEXT(CROSS(短波,HZ2) AND CO AND JK AND JD AND 大盘线36 AND CHZ4,L*1.09, #39;● #39;),COLORYELLOW;
DRAWTEXT(CROSS(短波,HZ2) AND CO AND JK AND JD AND 大盘线36 AND CHZ4,L*1.12, #39;做 #39;), COLORYELLOW;
DRAWTEXT(CROSS(短波,HZ2),C, #39;♂ #39;);
DRAWTEXT(CROSS ( 中波,HZ4),C, #39;♂ #39;);
DRAWTEXT(CROSS ( 中波,MA120),C, #39;♂ #39;);
DRAWTEXT(CROSS (HZ4,MA120),C, #39;♂ #39;);
线: 5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA
((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA
((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK2,COLORRED;
M1:=EMA(MA(波段线,5),3);
STICKLINE(波段线108 AND 波段线=M1,波段线,108,2,0),COLORF0F000;
STICKLINE(波段线0 AND 波段线M1,波段线,0,2,0),COLORF00FF0;
底部线: 5,COLOR00FFFF;
风险线: 108,COLORFF9D00;
底部买:=LLV(波段线,2)=LLV(波段线,8);
买进:IF(CROSS(波段线,REF(波段线+0.01,1)) AND 底部买 AND 波段线0,30,5);
清仓:=1.66*MA(FORCAST(CLOSE,2),40),COLORRED;
出货:=1.36*MA(FORCAST(CLOSE,2),40),COLOR08FFFF;
高抛:=1.16*MA(FORCAST(CLOSE,2),40),COLORFF82FF;
低吸:=0.82*MA(FORCAST(CLOSE,2),40),COLORF7E300;
满仓:=0.72*MA(FORCAST(CLOSE,2),40),COLORGREEN;
强通1:=清仓REF(清仓,1),;
强通2:=出货REF(出货,1),;
强通3:=高抛REF(高抛,1),;
强通4:=低吸REF(低吸,1),;
强通5:=满仓REF(满仓,1),;
上升通道:=强通1AND强通2AND强通3AND强通4AND强通5,;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10),;
MA20:=MA(CLOSE,20);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
五强:=MA5REF(MA5,1),;
十强:=MA10REF(MA10,1),;
二十强:=MA20REF(MA20,1),;
三十强:=MA30REF(MA30,1),;
六十强:=MA60REF(MA60,1),;
小均强:=五强AND十强,;
均强:=十强AND二十强AND三十强,;
大均强:=十强AND二十强AND三十强AND六十强,;
JJD:=(H+L+C)/3;
强势线1:=HHV(MA((((LOW+HIGH)+CLOSE)/3),8),60),COLORRED,LINETHICK2;
强势线2:=HHV(MA((((LOW+HIGH)+CLOSE)/3.18),8),20),COLORWHITE,LINETHICK2;
强势线3:=HHV(MA((((LOW+HIGH)+CLOSE)/3.258),8),10),COLORYELLOW,LINETHICK2;
强势线4:=HHV(MA((((LOW+HIGH)+CLOSE)/3.08),80),13),COLORLIMAGENTA,LINETHICK2;
开始走强1:=强势线1REF(强势线1,1),;
开始走强2:=强势线2REF(强势线2,1),;
开始走强3:=强势线3REF(强势线3,1),;
开始走强4:=强势线4REF(强势线3,1),;
双强1:=开始走强1AND开始走强2,;
双强2:=开始走强2AND开始走强3,;
双强3:=开始走强2AND开始走强3,;
双强4:=开始走强3AND开始走强4,;
三强:=开始走强1AND开始走强2AND开始走强3,;
四强:=开始走强1AND开始走强2AND开始走强3AND开始走强4,;
强势为王:=双强1OR双强2OR双强3OR双强4OR三强OR四强,;
VV:=(C+L+H)/3;
DSA:=SMA(XMA(VV,15),2,1)LINETHICK3;
顶部1:=DSA*1.0888,COLORMAGENTA,LINETHICK1;
顶部2:=DSA*1.158,COLORBROWN,LINETHICK1;
顶部3:=DSA*1.218,COLORRED,LINETHICK1;
底部1:=DSA*0.9518,COLORLICYAN,LINETHICK1;
底部2:=DSA*0.888,COLORLIMAGENTA,LINETHICK1;
底部3:=DSA*0.8,COLORGREEN,LINETHICK1;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
MA4:=MA(CLOSE,60);
五日走强:=MA1REF(MA1,1),;
十日走强:=MA2REF(MA2,1),;
二十日走强:=MA3REF(MA3,1),;
六十日走强:=MA4REF(MA4,1),;
低位主升:=五日走强AND十日走强AND六十日走强,;
主升浪:=五日走强AND十日走强AND二十日走强,;
大主升浪:=十日走强AND二十日走强AND六十日走强,;
大主升浪2:=五日走强AND十日走强AND二十日走强AND六十日走强,;
总主升:=主升浪AND大主升浪AND大主升浪2,;
总主升浪:=低位主升OR主升浪OR大主升浪OR大主升浪2OR总主升,;
强势主升低买:L底部1AND总主升浪AND强势为王ANDCDSA,COLORYELLOW,LINETHICK2;
猎股小王:L底部1ANDCDSAAND强势为王,COLORMAGENTA,LINETHICK2,LINESTICK;
DRAWICON(猎股小王0,1.1,1);
猎股大王出击:=强势主升低买AND猎股小王ANDHDSA,COLORRED,;
;
A:=MA(C,30);
A1:=A*1.1;
A4:=A*0.9;
A2:=A1-(A1-A4)*0.191;
持仓:=IF(HIGH*1.01A2ORREF(HIGH,1)REF(A2,1),A1,A4),LINETHICK3,COLORRED;
生命线:=IF(HIGH*1.01A2ORREF(HIGH,1)REF(A2,1),A2,A4),LINETHICK3,COLORFFFFFF;
主升持仓:=持仓生命线,;
主升1:=持仓REF(持仓,1),;
主升2:=生命线REF(生命线,1),;
主升:=主升1AND主升2,;
主升猎股王:=(猎股大王出击AND主升持仓AND主升)OR(猎股小王AND主升持仓AND主升),;
绝对的主升:(主升猎股王AND小均强)OR(猎股小王AND小均强),COLORYELLOW,LINETHICK4,STICK;
DRAWICON(绝对的主升0,1.1,1);
DRAWICON(绝对的主升0,1.1,1);
DRAWICON(绝对的主升0,0.6,9);
DRAWICON(绝对的主升0,0.3,9);
多空平衡线:=EMA(EMA(EMA(HIGH,5),5),4);
强势回挡线:=多空平衡线*0.93;
C=强势回挡线;
AA05:=MA(C,5);
五日乖离率:=(C-AA05)/AA05*100;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3);
AA10:=MA(C,10);AA20:=MA(C,20);
BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;
AA30:=MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
VAR1:=(AA20-AA30)REF((AA20-AA30),1)ANDAA20REF(AA20,1)ANDAA30REF(AA30,1);
VAR2:=(AA30-AA20)REF((AA30-AA20),1)ANDAA20REF(AA20,1)ANDAA30REF(AA30,1);
BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;
强势狙击:FILTER(BB3030ANDBB1045ANDCROSS(BB05,60),10);
加仓:FILTER(COUNT(CROSS(BB05,30),5)=1ANDAA05REF(AA05,1)AND三拾日乖离率REF(三拾日乖离率,1)ANDAA10REF(AA10,1)
AND加速度5REF(加速度5,1)AND速度5REF(速度5,1),10);
MR:=COUNT(CROSS(五日乖离率,0),3)=1AND三拾日乖离率REF(三拾日乖离率,1)ANDAA05REF(AA05,1)AND(C/REF(C,1)-1)*1005ANDREF(C,1)AA30;
买入:FILTER(MR,10);