爱约股解答:
N:=20;
MID:=MA(C,N);
VART1:=POW((C-MID),2);
VART2:=MA(VART1,N);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
LOWER:=MID-2*VART3;
BOLL:REF(MID,1),COLORFFFFFF;
UB:REF(UPPER,1),COLOR00FFFF;
LB:REF(LOWER,1),COLORFF00FF;
AA:=(UB-LLV(UB,20))/(HHV(UB,20)-LLV(UB,20));
CC:=(LB-LLV(LB,20))/(HHV(LB,20)-LLV(LB,20));
DD:=CROSS(MA(UB,5),UB) AND HHV(AA,3)>=0.98;
EE:=CROSS(MA(LB,5),REF(MA(LB,5),1)) AND LLV(CC,3)<=0.1 AND HHV(C,3)>BOLL;