红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;
轨道:MA(MA(CLOSE,3),2),COLORBLUE,LINETHICK2;
升:IF(红轨道>=轨道,轨道,DRAWNULL),COLORMAGENTA,LINETHICK3;
{大牛启动}
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);