将该大智慧MACD月线选股公式改为通达信
2019/12/16 18:02:55
公式编写说明:
月线选股,源码如下: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);
公式源码示例:
XX:=IF(NAMELIKE('S'),1,0);
YY:=IF(NAMELIKE('ST'),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 XX=0 and YY=0 OR B AND XX=0 and YY=0;
看 股吧公式 www. kanguba.com
其它股票公式列表