@lemon1688:INPUT: N(10,1,9999),M(4,1,9999); //涨停板 Begin 科创板:=STRFIND(STKLABEL,'688',1); 创业板:=STRFIND(STKLABEL,'30',1); IF 科创板 Then BEGIN ZT1:=CLOSE/REF(CLOSE,1)>=1.193; ZT2:=High=CLOSE;; ZT:=ZT1 AND ZT2; END;
@lemon1688:CISHU1:=Count(ZTB,N); CISHU2:=Count(ZTB,M); PD1:=CISHU1>0; PD2:=CISHU1=CISHU2; XG:PD1 AND PD2;
@lemon1688:ELSE IF 创业板 Then BEGIN ZT1:=CLOSE/REF(CLOSE,1)>=1.193; ZT2:=High=CLOSE;; ZT:=ZT1 AND ZT2; END; ELSE Begin ZT1:=CLOSE/REF(CLOSE,1)>=1.093; ZT2:=High=CLOSE;; ZT:=ZT1 AND ZT2; END; ZTB:=ZT; //涨停板 End
@lemon1688:ELSE IF 创业板 Then BEGIN ZT1:=CLOSE/REF(CLOSE,1)>=1.193; ZT2:=High=CLOSE;; ZT:=ZT1 AND ZT2; END; ELSE Begin ZT1:=CLOSE/REF(CLOSE,1)>=1.093; ZT2:=High=CLOSE;; ZT:=ZT1 AND ZT2; END; ZTB:=ZT; //涨停板 End
@lemon1688:修改,创业板:=STRFIND(STKLABEL,'30',1)=1; 科创板也加上=1就行,是个判断语句