X_1:=CLOSE>REF(OPEN,1) AND CLOSE>MA(CLOSE,60) AND OPEN<REF(CLOSE,1) AND REF(OPEN,1)>REF(CLOSE,1) AND (REF(CLOSE,2)-REF(CLOSE,1))*100/REF(CLOSE,2)>0.5;
X_2:=CLOSE>REF(OPEN,1) AND CLOSE<MA(CLOSE,60) AND OPEN<REF(CLOSE,1) AND REF(OPEN,1)>REF(CLOSE,1) AND (REF(CLOSE,2)-REF(CLOSE,1))*100/REF(CLOSE,2)>0.5;
X_3:=REF(OPEN,1)>REF(CLOSE,1) AND (REF(CLOSE,2)-REF(CLOSE,1))*100/REF(CLOSE,2)>1.5 AND CLOSE>OPEN AND CLOSE>REF(CLOSE,1)+(REF(CLOSE,2)-REF(CLOSE,1))*0.5;
X_4:=CLOSE>=REF(OPEN,1);
X_5:=X_3 AND X_4;
X_6:=CLOSE/REF(OPEN,1)<1.03 AND REF(OPEN,1)/CLOSE<1.01;
X_7:=REF(CLOSE,1)<REF(CLOSE,2)*0.94;
X_8:=X_1 OR X_5 OR X_2 AND X_6 AND X_7;
X_9:=X_1 OR X_3 OR X_2 AND X_6 AND X_7;
X_10:=X_1 OR X_5 OR X_2 AND X_7;
X_11:=X_6 AND X_7;
XG:=X_8 OR X_9 OR X_10 OR X_11;
A:=REF(OPEN>CLOSE,1);
涨幅:=C/REF(C,1);
XG1:=COUNT(涨幅>1.092,3)=0;
回调买入:XG AND A AND 涨幅<1.06 AND XG1,COLORRED;
九毛八公式解读
X_1赋值:收盘价>1日前的开盘价 AND 收盘价>收盘价的60日简单移动平均 AND 开盘价<1日前的收盘价 AND 1日前的开盘价>1日前的收盘价 AND (2日前的收盘价-1日前的收盘价)*100/2日前的收盘价>0.5 X_2赋值:收盘价>1日前的开盘价 AND 收盘价<收盘价的60日简单移动平均 AND 开盘价<1日前的收盘价 AND 1日前的开盘价>1日前的收盘价 AND (2日前的收盘价-1日前的收盘价)*100/2日前的收盘价>0.5 X_3赋值:1日前的开盘价>1日前的收盘价 AND (2日前的收盘价-1日前的收盘价)*100/2日前的收盘价>1.5 AND 收阳线ANDSE 收盘价>1日前的收盘价+(2日前的收盘价-1日前的收盘价)*0.5 X_4赋值:收盘价>=1日前的开盘价 X_5赋值:X_3 AND X_4 X_6赋值:收盘价/1日前的开盘价<1.03 AND 1日前的开盘价/收盘价<1.01 X_7赋值:1日前的收盘价<2日前的收盘价*0.94 X_8赋值:X_1 OR X_5 OR X_2 AND X_6 AND X_7 X_9赋值:X_1 OR X_3 OR X_2 AND X_6 AND X_7 X_10赋值:X_1 OR X_5 OR X_2 AND X_7 X_11赋值:X_6 AND X_7 XG赋值:X_8 OR X_9 OR X_10 OR X_11 A赋值:1日前的收阴线 涨幅赋值:收盘价/1日前的收盘价 XG1赋值:统计3日中满足涨幅>1.092的天数=0 输出回调买入:XG AND A AND 涨幅<1.06 AND XG1,画红色