DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
MACD底背:IF(B1>0,50,0) AND L-0.1;
九毛八公式解读
DIFF赋值:收盘价的12日指数移动平均 - 收盘价的26日指数移动平均 DEA赋值:DIFF的8日指数移动平均 A1赋值:上次1日前的DIFF上穿DEA距今天数 B1赋值:A1+1日前的收盘价>收盘价 AND A1+1日前的DIFF0,返回50,否则返回0 AND 最低价-0.1