M5:=MA(C,5);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
QFA:=macd>REF(MACD,1)AND MACD< 0;
QFB:=MACD< REF(MACD,1)AND MACD< 0;
QFC:=BArslASTCOUNT(MACD< REF(MACD,1));
TJ:=DIFF>0 AND DEA>0 AND REF(QFB,1) AND QFA AND REF(QFC,1)>4 AND C>M5;
脚底抹油:TJ;
九毛八公式解读
M5赋值:收盘价的5日简单移动平均 DIFF赋值:收盘价的12日指数移动平均 - 收盘价的26日指数移动平均 DEA赋值:DIFF的9日指数移动平均 MACD赋值:2*(DIFF-DEA) QFA赋值:MACD>1日前的MACDAND MACD< 0 QFB赋值:MACD< 1日前的MACDAND MACD< 0 QFC赋值:条件连续成立次数 TJ赋值:DIFF>0 AND DEA>0 AND 1日前的QFB AND QFA AND 1日前的QFC>4 AND 收盘价>M5 输出脚底抹油:TJ