手机端
当前位置:爱约股 > 公式技巧 > 大智慧月线MACD选股公式改为通达信的

大智慧月线MACD选股公式改为通达信的

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;

TAG:
分享至:

相关推荐