N:=20; M1:=((EMA(C,12)-EMA(C,26))/EMA(C,12)+1)*N,NODRAW; DIF:=MA(((EMA(C,12)-EMA(C,26))/EMA(C,12)+1)*C,M1); M:EMA("kdj.K"(9,3,3)/100+"kdJ.D"(9,3,3)/100,N)*N,NODRAW; M_A:=SUM(C,M)/SUM(1,M);{www.gszb.com此式有利看新股} {www.gszb.comM_A:=MA(C,N);备用,当上市交易日数>=N时与上式等值}; CQ:=Abs(C); SD1:=SQRT(SUM((C-M_A)*(C-M_A)*CQ/SUM(CQ,M),M)); SD2:=SQRT(SUM((C-M_A)*(C-M_A)*CQ,M)/SUM(CQ,M)); SD:=(SD1+SD2)/2;{www.gszb.com其实SD1、SD2无原理性区别,但有个截尾误差} 顶线:M_A+2*SD; 强线:M_A+SD; 中线:M_A,LINETHICK1; 弱线:M_A-SD; 底线:M_A-2*SD;
移动端首页 | PC端
© by gszx.com.cn Mobile Web
N:=20;
M1:=((EMA(C,12)-EMA(C,26))/EMA(C,12)+1)*N,NODRAW;
DIF:=MA(((EMA(C,12)-EMA(C,26))/EMA(C,12)+1)*C,M1);
M:EMA("kdj.K"(9,3,3)/100+"kdJ.D"(9,3,3)/100,N)*N,NODRAW;
M_A:=SUM(C,M)/SUM(1,M);{www.gszb.com此式有利看新股}
{www.gszb.comM_A:=MA(C,N);备用,当上市交易日数>=N时与上式等值};
CQ:=Abs(C);
SD1:=SQRT(SUM((C-M_A)*(C-M_A)*CQ/SUM(CQ,M),M));
SD2:=SQRT(SUM((C-M_A)*(C-M_A)*CQ,M)/SUM(CQ,M));
SD:=(SD1+SD2)/2;{www.gszb.com其实SD1、SD2无原理性区别,但有个截尾误差}
顶线:M_A+2*SD;
强线:M_A+SD;
中线:M_A,LINETHICK1;
弱线:M_A-SD;
底线:M_A-2*SD;