X_1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
X_2:=HIGH-REF(HIGH,1);
X_3:=REF(LOW,1)-LOW;
X_4:=SUM(IF(X_2>0 AND X_2>X_3,X_2,0),14);
X_5:=SUM(IF(X_3>0 AND X_3>X_2,X_3,0),14);
X_6:=X_4*100/X_1;
X_7:=X_5*100/X_1;
X_8:=MA(ABS(X_7-X_6)/(X_7+X_6)*100,6);
X_9:=(X_8+REF(X_8,6))/2;
X_10:=COUNT(X_6<X_7 AND X_6<X_8 AND X_6<X_9,6)=5 AND CROSS(X_6,X_7) AND CROSS(X_6,X_8) AND CROSS(X_6,X_9);
X_11:=CLOSE/REF(CLOSE,1)>1.05 OR CLOSE/OPEN>1.05;
X_12:=VOL>MA(VOL,5)*2;
X_13:=HIGH-CLOSE<(CLOSE-OPEN)*0.25;
选股:X_10 AND X_11 AND X_12 AND X_13;
九毛八公式解读
X_1赋值:最高价-最低价和最高价-1日前的收盘价的绝对值的较大值和最低价-1日前的收盘价的绝对值的较大值的14日累和 X_2赋值:最高价-1日前的最高价 X_3赋值:1日前的最低价-最低价 X_4赋值:如果X_2>0ANDX_2>X_3,返回X_2,否则返回0的14日累和 X_5赋值:如果X_3>0ANDX_3>X_2,返回X_3,否则返回0的14日累和 X_6赋值:X_4*100/X_1 X_7赋值:X_5*100/X_1 X_8赋值:X_7-X_6的绝对值/(X_7+X_6)*100的6日简单移动平均 X_9赋值:(X_8+6日前的X_8)/2 X_10赋值:统计6日中满足X_61.05 OR 收盘价/开盘价>1.05 X_12赋值:成交量(手)>成交量(手)的5日简单移动平均*2 X_13赋值:最高价-收盘价<(收盘价-开盘价)*0.25 输出选股:X_10 AND X_11 AND X_12 AND X_13