通达信最新指标公式 通达信成本箱体线主图公式源码
2016-08-19 11:11 股票知识 zhishi.southmoney.com
N:=21;
M:=13;
P:=2;
A:=(3*C+L+O+H)/6;
多:(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;
空:MA(多,M);
MID : MA(CLOSE,N);
UPPER: MID + P*STD(CLOSE,N);
LOWER: MID - P*STD(CLOSE,N);
AA:=IF(C>=O,(C-O)/4,0);
STICKLINE(C>=O,O,O+AA,7,0),COLORRED;
STICKLINE(C>=O,O+AA,O+2*AA,7,0),COLORRED;
STICKLINE(C>=O,O+2*AA,O+3*AA,7,0),COLORRED;
STICKLINE(C>=O,O+3*AA,C,7,0),COLORRED;
VARA:=IF(CLOSE>150,91.3,0.913);
箱体下沿:INTPART(CLOSE/VARA )*VARA,POINTDOT,LINETHICK2,COLORGREEN;
箱体上沿:箱体下沿+VARA,POINTDOT,LINETHICK2,COLORYELLOW ;
箱体中线:(箱体下沿+箱体上沿)/2,POINTDOT,COLORWHITE,LINETHICK2;
M:=13;
P:=2;
A:=(3*C+L+O+H)/6;
多:(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;
空:MA(多,M);
MID : MA(CLOSE,N);
UPPER: MID + P*STD(CLOSE,N);
LOWER: MID - P*STD(CLOSE,N);
AA:=IF(C>=O,(C-O)/4,0);
STICKLINE(C>=O,O,O+AA,7,0),COLORRED;
STICKLINE(C>=O,O+AA,O+2*AA,7,0),COLORRED;
STICKLINE(C>=O,O+2*AA,O+3*AA,7,0),COLORRED;
STICKLINE(C>=O,O+3*AA,C,7,0),COLORRED;
VARA:=IF(CLOSE>150,91.3,0.913);
箱体下沿:INTPART(CLOSE/VARA )*VARA,POINTDOT,LINETHICK2,COLORGREEN;
箱体上沿:箱体下沿+VARA,POINTDOT,LINETHICK2,COLORYELLOW ;
箱体中线:(箱体下沿+箱体上沿)/2,POINTDOT,COLORWHITE,LINETHICK2;
更多股票公式相关资讯请关注南方财富网
股票知识网声明:资讯来源于合作媒体及机构,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。