%>
IF(PERIODNAME<>"日线")
{
统计:"该指标 只在日线周期下有效。";
RETURN;
}
r:=((ZDMR[-1]+BDMR[-1])-(ZDMC[-1]+BDMC[-1]))/SHGZG*100;
DDX正:=IF(MA(C,18)<REF(MA(C,18),1) AND MA(C,60)<REF(MA(C,60),1)
AND C<0.45*HHV(C,900) AND C<1.25*LLV(C,250) AND r>0,r,0),linethick0;
DDX负:=IF(MA(C,18)>REF(MA(C,18),1) AND MA(C,60)>REF(MA(C,60),1)
AND C>0.15*HHV(C,900) AND C>1.25*LLV(C,250) AND r<0,r,0),linethick0;
补1:=IF(C>1.2*LLV(L,20) AND r<0,r,0),colorwhite,linethick0;
补2:=IF(H>1.12*LLV(L,3) AND r<0,r,0),colorwhite,linethick0;
补3:=IF(C>1.095*REF(C,1) AND H=C AND r>0,r,0),colorwhite,linethick0;
补4:=IF(C>(1+0.1*r)*REF(C,1) AND C<1.5*LLV(L,200) AND r>0,r,0),colorwhite,linethick0;
DDX:=MAX(ddx正,补3,补4)+MIN(ddx负,补1,补2);
DDXmini:=ddx正+ddx负;
持仓:SUM(DDX,0);
持仓mini:SUM(DDXmini,0);
兆日1:IF(持仓>(11+LLV(持仓,400)) AND 持仓mini>(11+LLV(持仓mini,400))
AND MA(C,3)<0.3*HHV(MA(C,3),400) AND C<1.15*LLV(C,100) AND C<0.18*HHV(H,900)
AND C<3*LLV(L,1200) ,-25,0),linethick1,colorff66ff;
全通1:IF(持仓>(15+LLV(持仓,400)) AND 持仓mini>(18+LLV(持仓mini,400))
AND MA(C,3)<0.25*HHV(MA(C,3),400) AND C<1.15*LLV(C,100) AND C<0.10*HHV(H,900)
AND C<3*LLV(L,1200), -20,0),linethick1,color89fd99;
全通2:=IF(持仓>(17+LLV(持仓,500)) AND 持仓mini>(21+LLV(持仓mini,500))
AND MA(C,3)<0.22*HHV(MA(C,3),500) AND C<1.1*LLV(C,100) AND C<0.10*HHV(H,700)
AND C<3*LLV(L,1200)AND C<0.70*HHV(H,30), -20,0),linethick1,color89fd99;
{股票教程网-http://91goo.com承接通达信软件和公式破解,普通加密破解,完全加密破解,导入密码破解,时间限制破解,公式编写,可按您的要求写公式指标,价格按难度不同报价,有需要可以找我们}