逾越布林(源码,起首是股指股价尺度差算法的逾越,其次是动态周期,三看次新股
- L, @9 {. y+ j: T1 t6 y: v, ] V 5 V0 n" _3 }, g$ m* Y: W) O
{参数设置:N(2,300;20)};
: n( O7 Y: U# \3 x3 X5 j{公式特点:用【一阶原点矩】构造【股价(股指)尺度差】,}
$ u! ^0 o, E6 c* v) O0 L7 I- F" v{公式性能因而远超“经典布林带”和体系自带的“BOLL_M”};
8 n) L* ~8 w R* c2 |& X! c& n2 MM1:=((EMA(C,12)-EMA(C,26))/EMA(C,12)+1)*N,NODRAW;
! h7 n5 l& X3 c4 B9 Z/ z3 C: ]DIF:=MA(((EMA(C,12)-EMA(C,26))/EMA(C,12)+1)*C,M1);0 h- [2 q$ |* }1 }2 K! R
9 v" x& G4 V- w9 ~$ \8 A3 _: SM:EMA("KDJ.K"(9,3,3)/100+"KDJ.D"(9,3,3)/100,N)*N,NODRAW;5 v" B* {$ j9 N4 x+ Y
M_A:=SUM(C,M)/SUM(1,M);{此式有利看新股}9 I( ~# } s# v: x. {; F# Y+ W) ?
{M_A:=MA(C,N);备用,当上市买卖业务日数>=N时与上式等值};
: d- R% V+ A1 e( zCQ:=ABS(C);9 O& k- K e+ C; M) Z3 j4 m5 ]
SD1:=SQRT(SUM((C-M_A)*(C-M_A)*CQ/SUM(CQ,M),M));2 g( n* ~- W6 N5 q& d7 K/ I$ x
SD2:=SQRT(SUM((C-M_A)*(C-M_A)*CQ,M)/SUM(CQ,M));
9 J+ ?# n* F) NSD:=(SD1+SD2)/2;{实在SD1、SD2无原理性区别,但有个截尾偏差}0 V) J& Q0 M, G; G
顶线:M_A+2*SD;
; [; Y+ k3 Q- R强线:M_A+SD;: b* v% T* W" d
中线:M_A,LINETHICK1;: f6 ?# ]$ P [1 k( X8 ^
弱线:M_A-SD;
$ g9 }" b1 J1 j' r( j/ `底线:M_A-2*SD; |