DIFF:=EMA(CLOSE,26)-EMA(CLOSE,12);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2.8;
macd2:=2*(DEA-DIFF);
优化:=MACD2>DEA AND DEA>DIFF;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,24)*20+C,42);
BU:=CROSS(买线,REF(买线,1)*1.017);
DI:=EMA(C,12)-EMA(C,13);
DE:=EMA(DI,3);
买点:=CROSS(DI,DE);
擒牛明涨停:BU AND 买点 AND 优化,COLORRED ;
九毛八公式解读
DIFF赋值:收盘价的26日指数移动平均-收盘价的12日指数移动平均 DEA赋值:DIFF的9日指数移动平均 MACD赋值:(DIFF-DEA)*2.8 MACD2赋值:2*(DEA-DIFF) 优化赋值:MACD2>DEA AND DEA>DIFF 买线赋值:收盘价的2日指数移动平均 卖线赋值:收盘价的24日线性回归斜率*20+收盘价的42日指数移动平均 BU赋值:买线上穿1日前的买线*1.017 DI赋值:收盘价的12日指数移动平均-收盘价的13日指数移动平均 DE赋值:DI的3日指数移动平均 买点赋值:DI上穿DE 输出擒牛明涨停:BU AND 买点 AND 优化,画红色