编写要求:
选股日期内股价涨幅±2%范围内,股价开盘价与收盘价相差±M元范围内,日线MACD值±N范围内,选股日期P日内有涨停。
www.gszx.com.cn网解答:
P:=9; M:=0.01; N:=0.01; XG:ABS((C/REF(C,P)-1)*100)<2 AND ABS(C-O)<M AND ABS(MACD.MACD)<N AND COUNT(C/REF(C,1)>1.095 AND C=H,P);