MMM:=1;
Svol:=INTPART(SUM(V,0)/CAPITAL);
TJ0:=SVOL>REF(SVOL,1) OR BARSSINCE(CLOSE)=0;
SF1:=BArslAST(TJ0)+1;
TJJ2:=SF1S2:=IF(TJJ2,REF(SF1,1)+1,SF1);
S3:=SUM(TJJ2,0);
ZK1:="kd.K#WEEK"(9,3,3);
ZD2:="KD.D#WEEK"(9,3,3);
ZF1:="macd.DIF#WEEK"(5,34,5);
ZA2:="MacD.DEA#WEEK"(5,34,5);
换手:=V/CAPITAL*100,LINETHICK0;
JCD:=crOSS(ZK1,ZD2) AND REF(ZD2,1)<60;
波段低点:=EXIST(JCD,MMM),COLORYELLOW,NODRAW;
XG:STICKLINE(IF(波段低点,20,0),-4,0,2,0),COLORRED;
DRAWTEXT(波段低点,-4,'▲神机妙算'),COLORWHITE;