编写要求:
今日的最高价与上周周线的最高价相等或低于1%以内。今日K线是小阳线,今日收盘价与今日最低价(下影线)在百分之2%以内的选股公式。
www.gszx.com.cn网解答:
HWEEK:=REF(H#WEEK,BARSLAST(WEEKOFYEAR!=REF(WEEKOFYEAR,1))+1);
选股:H>HWEEK*0.99{如果不是你想表达的意思就改去掉*0.99} AND
H<=HWEEK*1.1 AND C/REF(C,1)<1.03 AND C>O AND (C-L)/REF(C,1)*100<2;