想写个选股公式,求帮助.通达信,选股条件是macd的diff<dea,并且diff>0

2024-10-30 15:20:49
推荐回答(3个)
回答(1):

{MACD}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:DIF>0 AND DIF

回答(2):

CONDTION_A:="MACD.DIFF";
CONDTION_B:="MACD.DEA";
CONDTION:CONDTION_A=MIN(CONDTION_A,CONDTION_B) AND CONDTION_A>0;

回答(3):

XG: MACD.DIF