编写要求:
选股条件: 1、前天收阳线(涨幅5%-10%左右); 2、昨天收缩量十字星或跌幅不超过2%; 3、今天的涨跌幅可不写,只要求写1/2条件。
www.gszx.com.cn网解答:
SY:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,2)>REF(CLOSE,3)*1.05;
T1:=ABS(C-O)/O>0.001 AND ABS(C-O)/O<0.005 AND H>MAX(C,O) AND L<MIN(C,O);
XG1:=BARSLAST(T1)=1 AND REF(VOL,1)<REF(VOL,2)*0.8;
XG2:=REF(CLOSE,1)>REF(CLOSE,2)*0.98 AND REF(CLOSE,1)<REF(OPEN,1);
XG:(SY AND XG1) OR (SY AND XG2);