主力持仓:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
主筹:=WINNER(C)*100;
散筹:=(WINNER(C*1.1)-WINNER(C*0.9))*100;
{ _通达信股票指标公式}
XD1:=主力持仓>散筹;
XD2:=主筹>散筹;
XD3:=主力持仓>50;
XD4:=主筹>80 AND 散筹
XG:=XD1 AND XD2 AND XD3 AND XD4;
主力选股:XG AND "macd.DIF">="MacD.DEA" AND "MACD.MACD">= REF("MACD.MACD",1);