DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
A:=STICKLINE(macd>=0 AND MACD>=REF(MACD,1) AND REF(MACD,1)<0 AND MACD>=0.01,90,MACD,1,1) ;
飞天选股:A AND DYNAINFO(8)>0 AND NOT(NAMELIKE('ST') OR NAMELIKE('*ST') OR NAMELIKE('S'));
九毛八公式解读
DIFF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均 DEA赋值:DIFF的9日指数移动平均 MACD赋值:(DIFF-DEA)*2 A赋值:当满足条件MACD>=0ANDMACD>=1日前的MACDANDREF(MACD,1)<0ANDMACD>=0.01时,在90和MACD位置之间画柱状线,宽度为1,1不为0则画空心柱. 输出飞天选股:A AND 总量>0 AND 取反