你的这个公式是大智慧中的公式。意思就是选出st股和s股。strfind在通达信里用findstr,stkname在通达信里用namelike。但用法略有不同。在通达信里选st股和s股你可以用以下公式代替你的公式:st:=if(namelike('st'),1,0) or if(namelike('s'),1,0) ;希望对你有帮助。大智慧里的函数部分与通达信不通用,...
根据题意,选股公式如下:dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;xg1:macd>0 and ref(macd,1)<0 and ref(macd,2)<0 and ref(macd,3)<0 and ref(macd,4)>0;