通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
扫盘指标公式
STICKLINE(VOL0 AND CO,VOL,0,2.9,0),COLOR1472FF;
STICKLINE(VOL0 AND CO,VOL,0,2.9,0),COLOR148A14;
MA18:=EMA(CLOSE,18);
加码价:=((C-REF(MA18,1))/18+MA18)*1;
加码条件:=CROSS(C,加码价) AND 加码价REF(加码价,1);
STICKLINE(VOL0 AND 加码条件,VOL,0,2.9,0),COLORYELLOW;
F:=100*(C-REF(C,1))/REF(C,1);
今小昨:=IF(CREF(O,1) AND F0,1,0);
S1:=今小昨;
今小前:IF(CREF(O,2) AND F0,1,0),LINETHICK0;
S2:=今小前;
今量:VOL/10000,LINETHICK0;
STICKLINE(VOL0 AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)),VOL,0,2.9,1),COLORMAGENTA;
STICKLINE(VOL0 AND TROUGHBARS(3,3,1)=0 AND HIGHLOW+0.01,VOL,0,2.9,1),COLORBLUE;
YE:=(HIGH+LOW+CLOSE)/3;
YE1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
YE2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-YE);
YE3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
YE4:=IF(HIGH=LOW,1,YE-MIN(CLOSE,OPEN));
YE5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
YE6:=SUM((YE1*YE5),1);{卖出}
YE7:=SUM((YE2*YE5),1);{主力卖出}
YE8:=SUM((YE3*YE5),1);{散户买入}
YE9:=SUM((YE4*YE5),1);{主力买入}
买:(YE9+YE8)/10000,LINETHICK0,COLORWHITE;
STICKLINE((YE9+YE8)0,(YE9+YE8),0,2.9,0),COLOR0000AA;
STICKLINE((YE6+YE7)0,(YE6+YE7),0,0.2,0),COLORCYAN;
STICKLINE((YE6+YE7)0 AND TROUGHBARS(3,3,1)=0 AND HIGHLOW+0.01,(YE6+YE7),0,0.2,0),COLORBLUE;
STICKLINE((YE6+YE7)0 AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)), (YE6+YE7),0,0.2,0),COLORMAGENTA;
卖:(YE6+YE7)/10000,LINETHICK0,COLORGREEN;
STICKLINE((YE6+YE7)0 AND TROUGHBARS(3,3,1)=0 AND HIGHLOW+0.01,(YE6+YE7),0,0.1,0),COLORBLUE;
STICKLINE((YE6+YE7)0 AND S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1)), (YE6+YE7),0,0.1,0),COLORGREEN;
WMA13:EMA(C,13),COLORWHITE;
WMA21:EMA(C,21),COLORYELLOW;
WMA34:EMA(C,34),COLORFF00FF;
WMA120:EMA(C,120),COLORFFCCCC;
WMA250:EMA(C,250),COLORFFCC66;
MJJ:=((C-REF(WMA13,1))/13+WMA13)*1.004;
STICKLINE(MJJREF(MJJ,1) AND CMJJ,H,L,0,0),COLORRED;
STICKLINE(MJJREF(MJJ,1) AND CMJJ,O,C,1,1),COLORRED;
MAFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
MAA:=EMA(MAFF,50);
MAFA:=2*(MAFF-MAA);
STICKLINE(MAFA=REF(MAFA,1)AND MAFA0,L,H,0,0),COLORRED;
STICKLINE(MAFA=REF(MAFA,1)AND MAFA0,O,C,1,1),COLORRED;
STICKLINE(MAFAREF(MAFA,1) AND MAFA0,H,L,0,0),COLORFFFF55;
STICKLINE(MAFAREF(MAFA,1) AND MAFA0,O,C,1,0),COLORFFFF55;
STICKLINE(MAFA=REF(MAFA,1) AND MAFA0,H,L,0,0),COLORFFFF55;
STICKLINE(MAFA=REF(MAFA,1) AND MAFA0,O,C,1,0),COLORFFFF55;
STICKLINE(CEMA(C,21),L,H,0,0),COLORFFFF55;
STICKLINE(CEMA(C,21),O,C,1,0),COLORFFFF55;
MA5:MA(C,5);
MA13:MA(C,13);
MA24:MA(C,24),COLORBLUE,LINETHICK3;
MA72:MA(C,72)LINETHICK2;
MA133:MA(C,133)LINETHICK2;
MA200:MA(C,200)LINETHICK2;
MA250:MA(C,250)COLORLICYAN,LINETHICK2;
MA480:MA(C,480)COLORRED,LINETHICK2;
X1:=EMA(C,24);
X2:=REF(X1,1);
廿四日斜率:(X1-X2)/X2*100,NODRAW;
活跃度:IF(DATE1000101,(MA(VOL,11)+MA(VOL,11*2)+MA(VOL,11*3)+MA(VOL,11*4))/4/CAPITAL*1000,1),NODRAW;
买:IF(MA24REF(MA24,1),MA24,DRAWNULL),COLORMAGENTA,LINETHICK3;
卖:IF(MA24REF(MA24,1),MA24,DRAWNULL),COLORFFA042,LINETHICK3;
买1:IF(MA72REF(MA72,1),MA72,DRAWNULL),COLORGREEN,LINETHICK2;
卖2:IF(MA72REF(MA72,1),MA72,DRAWNULL),COLOR00DDFF,LINETHICK2;
N:=10;
T1:=CONST(HHVBARS(V,N));
T0:IF(CURRBARSCOUNT=N+7,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL);
IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT;
DRAWTEXT(ISLASTBAR,T0, #39; 平台 #39;);
涨家数:INDEXADV,COLOR0066FF,NODRAW;
跌家数:INDEXDEC,COLOR99FF99,NODRAW;
量能饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),NODRAW;
DK:=MA24;
STICKLINE(DK=C AND CLOSE=OPEN,HIGH,LOW,0,1),COLORRED;
STICKLINE(DK=C AND CLOSE=OPEN,CLOSE,OPEN,3.2,0),COLOR000044;
STICKLINE(DK=C AND CLOSE=OPEN,CLOSE,OPEN,2.7,0),COLOR000033;
STICKLINE(DK=C AND CLOSE=OPEN,CLOSE,OPEN,2.1,0),COLOR000055;
STICKLINE(DK=C AND CLOSE=OPEN,CLOSE,OPEN,1.5,0),COLOR000077;
STICKLINE(DK=C AND CLOSE=OPEN,CLOSE,OPEN,0.9,0),COLOR000099;
STICKLINE(DK=C AND CLOSE=OPEN,CLOSE,OPEN,0.3,0),COLORLIMAGENTA;
STICKLINE(DK=C AND CLOSEOPEN,HIGH,LOW,0,1),COLORGREEN;
STICKLINE(DK=C AND CLOSEOPEN,CLOSE,OPEN,3.2,0),COLOR003300;
STICKLINE(DK=C AND CLOSEOPEN,CLOSE,OPEN,2.7,0),COLOR005500;
STICKLINE(DK=C AND CLOSEOPEN,CLOSE,OPEN,2.1,0),COLOR007700;
STICKLINE(DK=C AND CLOSEOPEN,CLOSE,OPEN,1.5,0),COLOR009900;
STICKLINE(DK=C AND CLOSEOPEN,CLOSE,OPEN,0.9,0),COLOR00CC00;
STICKLINE(DK=C AND CLOSEOPEN,CLOSE,OPEN,0.3,0),COLOR00CC00;
STICKLINE(DKC AND CLOSE=OPEN,HIGH,LOW,0,1),COLORGREEN;
STICKLINE(DKC AND CLOSE=OPEN,CLOSE,OPEN,3.2,0 ),COLORA200A2;
STICKLINE(DKC AND CLOSE=OPEN,CLOSE,OPEN,2.7,0 ),COLORCE00CE;
STICKLINE(DKC AND CLOSE=OPEN,CLOSE,OPEN,2.1,0),COLORE800E8;
STICKLINE(DKC AND CLOSE=OPEN,CLOSE,OPEN,1.5,0 ),COLORFF00FF;
STICKLINE(DKC AND CLOSE=OPEN,CLOSE,OPEN,0.9,0 ),COLORFF60FF;
STICKLINE(DKC AND CLOSE=OPEN,CLOSE,OPEN,0.3,0 ),COLORFFD2FF;
STICKLINE(DKC AND CLOSEOPEN,HIGH,LOW,0,1),COLORCYAN;
STICKLINE(DKC AND CLOSEOPEN,CLOSE,OPEN,3.2,0 ),COLOR555555;
STICKLINE(DKC AND CLOSEOPEN,CLOSE,OPEN,2.7,0 ),COLOR777777;
STICKLINE(DKC AND CLOSEOPEN,CLOSE,OPEN,2.1,0 ),COLOR999999;
STICKLINE(DKC AND CLOSEOPEN,CLOSE,OPEN,1.5,0 ),COLOR999999;
STICKLINE(DKC AND CLOSEOPEN,CLOSE,OPEN,0.9,0 ),COLORDDDDDD;
STICKLINE(DKC AND CLOSEOPEN,CLOSE,OPEN,0.3,0 ),COLORFFFFFF;
MA3:MA(C,3),COLORWHITE;
MA5:MA(C,5),COLORGREEN;
MA10:MA(C,10),COLORRED;
MA20:MA(C,20),COLORBLUE;
MA30:MA(C,30),COLORYELLOW;
VAR1:=EMA(C,3);
VAR2:=EMA(C,5);
VAR3:=EMA(C,10);
VAR4:=EMA(C,20);
VAR5:=EMA(C,30);
VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;
VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100;
VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;
VAR9:=EMA(VAR7,8);
STICKLINE(VAR71*REF(VAR7,1),H,L,0.5,0),COLORBLUE;STICKLINE(VAR71*REF(VAR7,1),O,C,8, 0),COLORBLUE;
STICKLINE(VAR71*REF(VAR7,1),H,L,0.5,0),COLORRED;STICKLINE(VAR71*REF(VAR7,1),O,C,8, 0),COLORRED;
STICKLINE(VAR71*REF(VAR7,1) AND VAR91*REF(VAR9,1),H,L,0.5,0),COLORGREEN;STICKLINE(VAR71*REF(VAR7,1) AND VAR91*REF(VAR9,1),O,C,8, 0),COLORGREEN;
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买进条件:=CROSS(C,买进价) AND 买进价REF(买进价,1);
STICKLINE(买进条件,H,L,0.5,1),COLORWHITE,LINETHICK2;STICKLINE(买进条件,O,C,8,0),COLORWHITE,LINETHICK2;
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加码条件:=CROSS(C,加码价) AND 加码价REF(加码价,1);
STICKLINE(加码条件,H,L,0.5,1),COLORYELLOW,LINETHICK2;STICKLINE(加码条件,O,C,8,0),COLORYELLOW,LINETHICK2;