通达信动态布林主图指标(源码)
2015-10-07 20:19:00来源:本站整理浏览:216
N:=20;
CC:=(3*CLOSE+HIGH+LOW+OPEN)/6;
KS:=BARSCOUNT(CLOSE)+2;
M:=IF(KS<=N,KS,N);
绝对乖离:=ABS((M*CC-SUM(CC,M))/SUM(CC,M));
动态周期:2*(1/绝对乖离+2.70),NODRAW;
JIP:=IF(KS<3,(HIGH+LOW)/2,DMA(CLOSE,2/动态周期));
JFC:=SQRT(SUM((CLOSE-JIP)*(CLOSE-JIP),M)/(M-1));
上界:IF(KS<3,HIGH,JIP+2*JFC);
强势核心:IF(KS<3,(2*HIGH+LOW)/3,JIP+1*JFC);
趋势中心:JIP;
弱势核心:IF(KS<3,(2*LOW+HIGH)/3,JIP-1*JFC);
下界:IF(KS<3,LOW,JIP-2*JFC);
- 上一篇公式:通达信有鱼在渊主图及选股指标(源码)
- 下一篇公式:通达信买卖指示指标(源码)