M:=20;
BOLL:=MA(CLOSE,M);
UB:=BOLL+2*STD(CLOSE,M);
LB:=BOLL-2*STD(CLOSE,M);
XG:=UB>REF(UB,1) AND REF(UB,1)>REF(UB,2) AND LB<REF(LB,1) AND
REF(LB,1)<REF(LB,2) AND CROSS(C,UB);
XGG:FILTER(XG,10);
本帖最后由 永恒2014 于 2022-12-13 21:40 编辑
N:=20;
MID:=MA(C,N);
UP:=MID+2*STD(C,N);
LO:=MID-2*STD(C,N);
A1:=UP>REF(UP,1);
A2:=LO<REF(LO,1);
A3:=(UP-REF(UP,1))/REF(UP,1)*100>3;
XG:=A1 AND A2 AND A3;
FILTER(XG,10);