X_1:=MACD.DIF#DAY;
X_2:=macd.DEA#DAY;
X_3:=CROSS(X_1,X_2);
X_4:=MACD.DIF#WEEK;
X_5:=MACD.DEA#WEEK;
X_6:=CROSS(X_4,X_5);
X_7:=MACD.DIF#MONTH;
X_8:=MACD.DEA#MONTH;
X_9:=CROSS(X_7,X_8);
X_10:=IF(CROSS(X_4,X_5),MACD.DIF+0.1,0);
X_11:=IF(X_1>X_2 AND X_4>X_5 AND X_9 OR (X_4>X_5 AND X_7>X_8 AND X_3) AND CLOSE/REF(CLOSE,1)>1.08 OR (X_7>X_8 AND X_1>X_2 AND X_6) OR (X_3 AND X_6 AND X_9),MACD.DIF+0.2,0);
妖股成型:X_11 AND CLOSE/REF(CLOSE,1)>1.08;
九毛八公式解读
X_1赋值:平滑异同平均线的DIF[取日线数据] X_2赋值:平滑异同平均线的DEA[取日线数据] X_3赋值:X_1上穿X_2 X_4赋值:平滑异同平均线的DIF[取周线数据] X_5赋值:平滑异同平均线的DEA[取周线数据] X_6赋值:X_4上穿X_5 X_7赋值:平滑异同平均线的DIF[取月线数据] X_8赋值:平滑异同平均线的DEA[取月线数据] X_9赋值:X_7上穿X_8 X_10赋值:如果X_4上穿X_5,返回平滑异同平均线的DIF+0.1,否则返回0 X_11赋值:如果X_1>X_2ANDX_4>X_5ANDX_9OR(X_4>X_5ANDX_7>X_8ANDX_3)ANDCLOSE/1日前的收盘价>1.08OR(X_7>X_8ANDX_1>X_2ANDX_6)OR(X_3ANDX_6ANDX_9),返回平滑异同平均线的DIF+0.2,否则返回0 输出妖股成型:X_11 AND 收盘价/1日前的收盘价>1.08