{N(2,300;9);M1(2,100;3);M2(2,100;3)};
{用法提示:与KDJ副图对照结合使用,参数按KDJ的习惯设置};
BG:=BARSCOUNT(O)+1;
T:=BG
P:=N+M1+M2;
Q:=IF(BG P,BG,P);
JD:=P*( KDJ.K (N,M1,M2)/100+ KDJ.J (N,M1,M2)/100+0.8);
MA_S:=SMA(C,JD,2);
SD:=SQRT(SUM((C-MA_S)*(C-MA_S),Q)/(Q-1));{STD的无偏估计};
顶线:IF(T,H*1.03,MA_S+2*SD);
强线:IF(T,(3*H+L)/4,MA_S+SD);
中线:MA_S,LINETHICK1;
弱线:IF(T,(3*L+H)/4,MA_S-SD);
底线:IF(T,L*0.98,MA_S-2*SD);
;动态周期:JD,NODRAW;