逾越布林(源码,起首是股指股价尺度差算法的逾越,其次是动态周期,三看次新股. J- c. g/ n6 x G
) H/ n2 `: V) H' ~/ Q{参数设置:N(2,300;20)};
% y2 h( o* W* o; W/ K5 f% P5 S{公式特点:用【一阶原点矩】构造【股价(股指)尺度差】,}& \5 V+ K; m; i- U' I) S( \+ S$ g+ d3 S
{公式性能因而远超“经典布林带”和体系自带的“BOLL_M”};* h7 E; l- _/ L. M+ S5 V
M1:=((EMA(C,12)-EMA(C,26))/EMA(C,12)+1)*N,NODRAW;# k8 c$ C5 E \6 I ?7 d1 S- @
DIF:=MA(((EMA(C,12)-EMA(C,26))/EMA(C,12)+1)*C,M1);8 E7 G: ]' ^6 ~
. Q8 M: ?9 F& t& I' B! `4 A& HM:EMA("KDJ.K"(9,3,3)/100+"KDJ.D"(9,3,3)/100,N)*N,NODRAW;( J( a2 t* Z; y
M_A:=SUM(C,M)/SUM(1,M);{此式有利看新股}* \+ H. c, E) `$ [1 V
{M_A:=MA(C,N);备用,当上市买卖业务日数>=N时与上式等值};
( m6 F! Z/ \. j- I* s. k6 dCQ:=ABS(C);$ R3 O% T$ ~5 x; J
SD1:=SQRT(SUM((C-M_A)*(C-M_A)*CQ/SUM(CQ,M),M)); ?3 y% q. A S2 }( u9 ^, n1 X
SD2:=SQRT(SUM((C-M_A)*(C-M_A)*CQ,M)/SUM(CQ,M));
|' B6 O) m* _) GSD:=(SD1+SD2)/2;{实在SD1、SD2无原理性区别,但有个截尾偏差}
. T; U6 S+ @- k4 w" P/ O顶线:M_A+2*SD;
8 D# P2 m9 U( e; w5 O. H强线:M_A+SD;7 W+ w7 T1 h$ O3 M7 `; @
中线:M_A,LINETHICK1;
4 m1 W( u4 F; X) d" ^8 G弱线:M_A-SD;# t1 w& ]% R8 m3 }3 ]
底线:M_A-2*SD; |