通达信主图指标公式 通达信MA和MA2均线系统主图指标公式
2015-2-7 9:34:59 股票入门 http://rumen.southmoney.com
南方财富网带来通达信主图指标公式 通达信MA和MA2均线系统主图指标公式:
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA250:=MA(CLOSE,250);
STICKLINE(C》=O,H,C,0,0),COLOR000080;
STICKLINE(C》=O,H,C,0,0),COLOR0000EE;
STICKLINE(C》=O,O,L,0,0),COLOR000080;
STICKLINE(C》=O,O,L,0,0),COLOR0000EE;
STICKLINE(C》O,C,O,2.4,0),COLOR0000FF;
STICKLINE(C》O,C,O,3.0,0),COLOR1313FF;
STICKLINE(C》O,C,O,2.4,0),COLOR2424FF;
STICKLINE(C》O,C,O,2.0,0),COLOR2D2DFF;
STICKLINE(C》O,C,O,1.6,0),COLOR4444FF;
STICKLINE(C》O,C,O,1.2,0),COLOR5757FF;
STICKLINE(C》O,C,O,0.6,0),COLOR6666FF;
STICKLINE(C》O,C,O,0.1,0),COLOR7D7DFF;
STICKLINE(C《=O,H,C,0,0),COLOR808000;
STICKLINE(C《O,H,C,0,0),COLOR808000;
STICKLINE(C=O,H,C,0,0),COLORFFFFFF;
STICKLINE(C《O,O,L,0,0),COLOR808000;
STICKLINE(C=O,O,L,0,0),COLORFFFFFF;
STICKLINE(C《O,C,O,2.4,0),COLOR808000;
STICKLINE(C《O,C,O,3.0,0),COLOR8C8C00;
STICKLINE(C《O,C,O,2.4,0),COLOR959500;
STICKLINE(C《O,C,O,2.0,0),COLOR9F9F00;
STICKLINE(C《O,C,O,1.6,0),COLORAAAA00;
STICKLINE(C《O,C,O,1.2,0),COLORB5B500;
STICKLINE(C《O,C,O,0.6,0),COLORBFBF00;
STICKLINE(C《O,C,O,0.1,0),COLORD0D000;
STICKLINE(C=O,C,O,0.1,0),COLORFFFFFF;
N:=10;
T1:=CONST(HHVBARS(V,N));
T0:IF(CURRBARSCOUNT《=N+3,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL),COLORFF00FF;
IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT,COLORFF00FF;
DRAWTEXT(ISLASTBAR,T0,‘ 量能平台’),COLORRED;
W:=20;
W1:=CONST(REF(HHVBARS(V,W),T1+1)+T1+1);
W0:IF(CURRBARSCOUNT《=T1+W+3 AND CURRBARSCOUNT》=T1+1,CONST(REF(C,W1)),DRAWNULL),COLOR009999;
IF(CURRBARSCOUNT=W1+1,W0,DRAWNULL),CIRCLEDOT,COLOR00CCCC;
M:=10;
Q1:=CONST(REF(HHVBARS(V,M),T1+1)+T1+1);
Q0:IF(CURRBARSCOUNT《=T1+M+3 AND CURRBARSCOUNT》=T1+1,CONST(REF(C,Q1)),DRAWNULL),COLOR009900;
IF(CURRBARSCOUNT=Q1+1,Q0,DRAWNULL),CIRCLEDOT,COLOR00CC00;
DRAWTEXT_FIX(1,0.42,0.97,0,EXTERNSTR(0,1))COLORYELLOW;
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
主力成本:EMA(X,13),COLORFF00FF,DOTLINE,LINETHICK1;
HKLNPT: COUNT(C/O》=1,5)》=5 AND ( C/O》REF(C/O,1) OR REF(C/O,1)》 REF(C/O,2) ) AND C/O》1 AND (REF(V,3)《REF(V,4) OR REF(V,2)《REF(V,3)) AND REF(V,1)》REF(V,2) AND V》REF(V,1) AND COUNT(H/L》1.062 OR C/REF(C,1)》1.062,2)》=1,NODRAW ;
DRAWTEXT(HKLNPT,(H*1.2),‘红K量能平台’),COLORRED;
【0】:=MA(L+(H-L)/2,5),CIRCLEDOT,COLORMAGENTA;
【1】:DRAWLINE(CURRBARSCOUNT=10,【0】,CURRBARSCOUNT=2,【0】,0),COLORYELLOW,LINETHICK2;
【2】:DRAWLINE(CURRBARSCOUNT=5,【0】,CURRBARSCOUNT=1,【0】,0),COLORRED,LINETHICK2;
【3】:DRAWLINE(CURRBARSCOUNT=10,【0】,CURRBARSCOUNT=1,【0】,0),COLORRED,LINETHICK2;
DRAWBAND(【1】,RGB(155,50,50),【3】,RGB(250,250,0));
DRAWBAND(【2】,RGB(100,50,50),【3】,RGB(250,100,0));
DRAWBAND(【2】,RGB(34,139,34),【3】,RGB(250,100,0));
【4】:=REF(【0】,1);
DRAWTEXT(【0】《【4】 AND 【2】《【3】,【2】,‘转强’),COLOR33FFCC;
DRAWTEXT(【0】《【4】 AND 【1】》【3】,【2】,‘转弱’),COLOR33FFCC;
K:=30;
AA:DRAWLINE(H》=HHV(H,K),H,REF(C》=REF(HHV(H,K),1),1),REF(H,1),1)COLOR00FF00,DOTLINE;
DRAWICON(CROSS(C,HHV(AA,K)),L,29);
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。