ST:=STRFIND(stkname,'ST',1)>0; S:=STRFIND(stkname,'S',1)>0; A:=CROSS(C,MA(C,60)) AND "MACD.MACD">REF("MACD.MACD",1) AND REF("MACD.MACD",1)>REF("MACD.MACD",2) AND BETWEEN("MACD.MACD",0,8); B:=BETWEEN((MA(C,60)-C)/C*100,0,8) AND "MACD.MACD">REF("MACD.MACD",1) AND REF("MACD.MACD",1)>REF("MACD.MACD",2) AND BETWEEN("MACD.MACD",0,8); XG:A AND not(ST) and not(S) OR B AND not(ST) and not(S);
爱约股解答:
ST:=IF(NAMELIKE('ST'),1,0);
ȥST:=ST=0;
S:=IF(NAMELIKE('S'),1,0);
ȥS:=S=0;
A:=CROSS(C,MA(C,60)) AND "MACD.MACD">REF("MACD.MACD",1) AND REF("MACD.MACD",1)>REF("MACD.MACD",2) AND BETWEEN("MACD.MACD",0,8);
B:=BETWEEN((MA(C,60)-C)/C*100,0,8) AND "MACD.MACD">REF("MACD.MACD",1) AND REF("MACD.MACD",1)>REF("MACD.MACD",2) AND BETWEEN("MACD.MACD",0,8);
XG:A AND ȥST AND ȥS OR B AND ȥST AND ȥS;