核心拉力指标 (源码)
2012-08-30 09:05:00来源:本站整理浏览:310
大智慧核心拉力指标公式股票软件源码如下:
v1:=BARSLAST(ref(cross("macd.diff","macd.dea"),1));
MACD底背离:ref(c,v1+1)>c and ref("macd.diff",v1+1)<"macd.diff" and cross("macd.diff","macd.dea");
v2:=BARSLAST(ref(cross("macd.dea","macd.diff"),1));
MACD顶背离:ref(c,v2+1)>c and ref("macd.diff",v2+1)<"macd.diff" and cross("macd.dea","macd.diff");DP:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
GG:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
Var1:=IF(DP>0.01,0.9,IF(DP<-0.05,1,1.2));
Var2:=Var1*(GG-DP)*100;
核心拉力:SUM(Var2,5),colorff6666,linethick2;
-5,colorff33ff,pointdot;0,pointdot;6,pointdot;
r5:if(核心拉力>REF(核心拉力,1) and ref(核心拉力,1)<ref(核心拉力,2) and ref(核心拉力,1)<-6,5,0),colorred;
- 上一篇公式:量能饱合度指标 (源码)
- 下一篇公式:振幅高低主图指标 (源码)