大智慧月线MACD选股公式改为通达信的
2019/12/16 18:31:23
公式编写说明:
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 .kanguba.com
其它股票公式列表