DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26))*20;
DEA:=EMA(DIFF,9);
LS:=IF(DIFF>DEA AND DIFF>0,1,0);
加速上扬:IF(REF(LS=0,1) AND LS=1,0.1,0);
九毛八公式解读
DIFF赋值:(收盘价的12日指数移动平均 - 收盘价的26日指数移动平均)*20 DEA赋值:DIFF的9日指数移动平均 LS赋值:如果DIFF>DEAANDDIFF>0,返回1,否则返回0 输出加速上扬:如果1日前的LS=0ANDLS=1,返回0.1,否则返回0