想写个选股公式,求帮助.通达信,选股条件是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