N1:1--100,默认值20,就是要求的“前期”
N2:1--50,默认值10
N3:1--20,默认值5,就是要求的“近期”
参数输入表格,可自己改变
MA60:=MA(CLOSE,60);
AA:=EXIST(MA60>=REF(MA60,1) AND REF(MA60,1)>=REF(MA60,2) AND REF(MA60,2)<=REF(MA60,3) AND REF(MA60,3)<=REF(MA60,4),N1);
BB:=EXIST(CROSS(C,MA60),N1);
MA5:=MA(C,5);
CC1:=MA5<=REF(MA5,1) AND REF(MA5,1)>=REF(MA5,2);
CC:=EXIST(CC1,N2);
DD:=EXIST(ABS(C/MA60-1)<0.06,N3);
AA AND BB AND CC AND DD;