分时DDX抓涨停板副图公式
{分时主力}
zf:=(C-REF(C,1))/REF(C,1)*100;
均:=SUM(AMOUNT,0)/SUM(V,0)/100;ma均:=ma(均,2);
rr1:=last(zf<0);rr2:=last(zf>0);rr3:=zf-ref(zf,1);
rr4:=if(zf>0 and ma均>ref(ma均,1),0.97*vol,0);
rr5:=if(ref(rr1,2)>=1 and ref(rr3,2)>0 and ref(zf,1)>=0 and zf>0,0.03*ref(v,2) and ma均>ref(ma均,1),if(ref(zf,1)=0 and 均>ref(均,1),0.55*ref(v,1),0));
rr6:=if(ref(rr1,2)>=1 and ref(rr3,2)>0 and ref(zf,1)>=0 and zf>0,0.03*ref(v,2) and ma均>ref(ma均,1),if(ref(zf,1)=0 and 均>ref(均,1),0.55*ref(v,1),0));
主力:=sum(rr4,0)+sum(rr5,0)+sum(rr6,0);
ddx:主力/capital*100;