大智慧月线MACD选股公式改为通达信的
2019/12/16 19:02:39
公式编写说明:
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;
投 股票网 www. tou18.cn
股市公式下载推荐