红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;
轨道:MA(MA(CLOSE,3),2),COLORBLUE,LINETHICK2;
升:IF(红轨道 =轨道,轨道,DRAWNULL),COLORMAGENTA,LINETHICK3;
{大牛启动}{九毛八公式指标网www.9m8.cn}
DIF:=EMA(CLOSE,5)-EMA(CLOSE,10);
DEA:=EMA(DIF,5);
MACD:=(DIF-DEA)*2;
MACD12:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,12)));
MACD50:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,50)));
大行情:=NOT(REF(MACD12,1)=REF(MACD50,1)) AND MACD12=MACD50;
STICKLINE(大行情,O,CLOSE,4.5,0),COLORLIMAGENTA;
STICKLINE(大行情,O,CLOSE,1.5,0), COLORCYAN;
DRAWTEXT(大行情,LOW-0.022*LOW,'亮剑'), COLORYELLOW;
DRAWICON(大行情,L,28);
DRAWICON(大行情,L*0.98,34);
DRAWICON(大行情,L*0.96,30);
DRAWICON(大行情,L*0.94,25);
DRAWICON(大行情,L*0.92,21);