通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
通达信主图指标公式
N1:=6;N2:=12;
Aa:=(H+L+O+2*C)/5;
bb1:=MA(Aa,n1);
bb2:=MA(Aa,n2);
V1:=bb1/REF(bb1,1);
V2:=bb2/REF(bb2,1);
Hsl:=VOL/SHGZG*100;
m1:=MA(VOL,n1)*bb1/MA(Hsl,n1);
m2:=MA(VOL,n2)*bb2/MA(Hsl,n2);
始动能:=1/2*m2*V2*V2;
末动能:=1/2*m1*V1*V1;
动能:(末动能-始动能)/10000,coloryellow,LINETHICK2;
FILLRGN(动能,0,动能0,RGB(255,0,0),动能0,RGB(0,255,0));
A:=EMA(CLOSE,13);
多空力道:=((H-A+L-A)*64);
STICKLINE(多空力道0,0,多空力道,8,0),colorred;
STICKLINE(多空力道0,多空力道,0,8,0),colorgreen;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
卖点雷达:CROSS(85,RSI1)*30;
DRAWTEXT(CROSS(85,RSI1),80, #39;顶 #39;);
Varb:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
Varc:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
Vard:=BARSCOUNT(CLOSE);
买点雷达:(Varb 20 AND Varc 25 AND Vard 50 AND AR70 AND VOLVOL[1] AND VOL[1]VOL[2] AND VOL[2]VOL[3])*30;
DRAWTEXT(CROSS(RSI1,25),-100, #39;底 #39;);
主力:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2)*5,colorred;
:EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7)*5,colorgreen;
DRAWTEXT(CROSS(主力,散户) AND 主力-10,-60, #39;升 #39;);
DRAWICON(CROSS(主力,散户) AND 主力-10 AND 散户REF(散户,1) OR CROSS(主力,散户) AND 散户-35 ,-15,2);
DRAWTEXT(CROSS(RSI1,20)AND 散户-20 AND 买点雷达 ,-60, #39;底 #39;);
DIF:=(EMA(CLOSE,12) - EMA(CLOSE,26))*3;
DEA:=EMA(DIF,27);
牛熊线:0;
FILLRGN((DIF*64),(DEA*64),DIFDEA,RGB(105,20,80),DIFDEA,RGB(0,155,150));
公式解读:
BBI:(MA(CLOSE,20)+MA(CLOSE,30)+MA(CLOSE,40)+MA(CLOSE,55))/4,colorred,LINETHICK2;
BBI3:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,LINETHICK2;
紫风:=MA(C,1),color2FFFFF,LINETHICK1;
紫风5:MA(C,5),colorred,LINETHICK1;
紫风6:MA(MA(C,5),2),COLOR555555;
紫风7:MA(MA(MA(C,5),2),2),COLOR555555;
紫风8:MA(MA(MA(MA(C,5),2),2),2),COLOR555555;
紫风9:MA(MA(MA(MA(MA(C,5),2),2),2),2),COLOR555555;
FILLRGN(紫风5,紫风9,紫风5紫风9 AND 紫风紫风5,color0999ff,紫风5紫风9 AND 紫风紫风5 AND 紫风5=REF(紫风5,1),COLOR0666CC,紫风5紫风9 AND 紫风紫风5 AND 紫风5REF(紫风5,1),color222222);
FILLRGN(紫风5,紫风9,紫风5紫风9 AND 紫风紫风5,color009000,紫风5紫风9 AND 紫风紫风5,color222222,紫风5紫风9,COLOR222222);
紫风20:MA(C,20),color111111,POINTDOT,LINETHICK1;
紫风21:MA(MA(C,20),2),color111111,POINTDOT,LINETHICK1;
紫风60:MA(C,60),color111111,POINTDOT,LINETHICK1;
紫风61:MA(MA(C,60),2),color111111,POINTDOT,LINETHICK1;
紫风62:MA(MA(MA(C,60),2),2),color111111,POINTDOT,LINETHICK1;
PARTLINE(紫风20,紫风5=REF(紫风5,1),colorff9909,紫风5REF(紫风5,1),colorff1101),LINETHICK1;
PARTLINE(紫风21,紫风5=REF(紫风5,1),colorff9909,紫风5REF(紫风5,1),colorff1101),LINETHICK1;
PARTLINE(紫风60,紫风60=REF(紫风60,1),colorbrown,紫风60REF(紫风60,1),color006000),LINETHICK1;
PARTLINE(紫风61,紫风60=REF(紫风60,1),colorbrown,紫风60REF(紫风60,1),color006000),LINETHICK1;
PARTLINE(紫风62,紫风60=REF(紫风60,1),colorbrown,紫风60REF(紫风60,1),color006000),LINETHICK1;
交易:=紫风5;
拉升:HHV(交易,13),color2fffff;
压力:=HHV(交易,60),color009000;
支撑:LLV(交易,13),COLOR00f000,LINETHICK1;
STICKLINE(拉升交易 AND 紫风紫风5,拉升,紫风5,1,0),coloryellow;
STICKLINE(拉升交易 AND 紫风=紫风5,拉升,紫风5,1,0),color00c000;
底:LLV(LOW,60)*1.02,COLOR999999;
顶:=HHV(HIGH,60)*0.98,COLOR999999;
//STICKLINE(底,底,底,10,0),COLOR999999;
STICKLINE(顶,顶,顶,10,0),COLOR999999;
DEA:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),COLORFF8808,LINETHICK1;
PARTLINE(DEA,紫风DEA AND DEA=REF(DEA,1),color7111ff,紫风DEA AND DEA=REF(DEA,1),COLORFFFFFF,紫风DEA AND DEAREF(DEA,1),colorFF9909,紫风DEA AND DEAREF(DEA,1),colorFF1101),LINETHICK2;
MID:=MA(CLOSE,20),color111111,POINTDOT,LINETHICK1;
UPPER:MID +2*STD(CLOSE,20),colorFF3303;
LOWER:MID - 2*STD(CLOSE,20),colorFF3303;
紫风120:MA(C,120),color111111,POINTDOT,LINETHICK1;
紫风121:MA(MA(C,120),2),color111111,POINTDOT,LINETHICK1;
紫风122:MA(MA(MA(C,120),2),2),color111111,POINTDOT,LINETHICK1;
紫风250:MA(C,250),color111111,POINTDOT,LINETHICK1;
紫风251:MA(MA(C,250),2),color111111,POINTDOT,LINETHICK1;
紫风252:MA(MA(MA(C,250),2),2),color111111,POINTDOT,LINETHICK1;
PARTLINE(紫风120,紫风120=REF(紫风120,1),color7111cc,紫风120REF(紫风120,1),color006000),LINETHICK1;
PARTLINE(紫风121,紫风120=REF(紫风120,1),color7111cc,紫风120REF(紫风120,1),color006000),LINETHICK1;
PARTLINE(紫风122,紫风120=REF(紫风120,1),color7111cc,紫风120REF(紫风120,1),color006000),LINETHICK1;
PARTLINE(紫风250,紫风250=REF(紫风250,1),colorcc111c,紫风250REF(紫风250,1),color006000),LINETHICK1;
PARTLINE(紫风251,紫风250=REF(紫风250,1),colorcc111c,紫风250REF(紫风250,1),color006000),LINETHICK1;
PARTLINE(紫风252,紫风250=REF(紫风250,1),colorcc111c,紫风250REF(紫风250,1),color006000),LINETHICK1;
N:=20;
N1:=7;
N2:=69;
M3:=EMA(CLOSE,3);
M8:EMA(CLOSE,8),CoLor008000;
M13:EMA(M8,13),CoLor0000FF;
M62:EMA(M8,55),CoLorF0F000;
VAR1:=EMA(M13,62);
M81:EMA(M62,81),CoLor00FFFF;
M144:EMA(VAR1,144),Linethick2,CoLor0000FF;
M250:EMA(VAR1,250),POINTDOT,Linethick2,CoLorF00FF0;
VAR2:=(CLOSE+HIGH+LOW)/(3);
VAR3:=(EMA(VAR2,10));
VAR4:=(REF(VAR3,1));
STICKLINE((VAR3VAR4),VAR3,VAR4,4,0),CoLor00FFFF;
STICKLINE((VAR3VAR4),VAR3,VAR4,4,0),CoLorFF0000;
VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2));
VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));
DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98), #39;★ #39;),CoLor00FFFF;
DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04), #39;卖 #39;),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));
DRAWTEXT(VARA,(HIGH)*(1.04), #39;卖 #39;),CoLorFFFFFF;
VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7));
VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5));
DRAWTEXT(IF(((COUNT((CLOSEREF(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, #39;●买进 #39;),CoLorFF00FF;
DRAWTEXT(IF(((COUNT((CLOSEREF(CLOSE,1)),13))/(13)0.6) AND COUNT((VAREVARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE=OPEN),4) AND REF((CLOSEOPEN),3) AND REF((CLOSEOPEN),2) AND REF((OPENCLOSE),1) AND (OPENREF(CLOSE,1)),1,0),LOW, #39;●买进 #39;),CoLor00FFFF;
VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3));
DRAWTEXT(IF((CLOSEVAR10) AND ((VOL)/(240)(MA(VOL,5))/(240)) AND (CLOSE(REF(CLOSE,1))*(1.08)) AND (CLOSE(MA(CLOSE,13))*(1.3)),1,0),LOW, #39;● #39;),CoLor0000FF;