///参数:short=12,long=26,m=9
DIFF : =EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : =EMA(DIFF,9);
MACD : 2*(DIFF-DEA),nodraw;
z:0,colorblack;
STICKLINE(MACD 0 AND MACD =REF(MACD,1),0,MACD,6,0),color0000ff;
STICKLINE(MACD 0 AND MACD REF(MACD,1),0,MACD,6,1),color333333;
STICKLINE(MACD 0 AND MACD =REF(MACD,1),0,MACD,6,1),colorff00ff;
STICKLINE(MACD 0 AND MACD REF(MACD,1),0,MACD,6,1),color00ff00;
STICKLINE(MACD 0 AND MACD =REF(MACD,1) AND O REF(C,1) AND REF(C,1) REF(O,1) AND REF(C,1) =C AND REF(C,1)*0.91 REF(C,2),MACD*0.5,MACD,6,0),colorcyan;
STICKLINE(MACD 0 AND MACD =REF(MACD,1) AND O REF(C,1) AND REF(C,1) REF(O,1) AND REF(C,1)*1.03 REF(H,1) AND C O,MACD*0.5,MACD,6,0),colorcyan;
STICKLINE(MACD 0 AND MACD =REF(MACD,1) AND O REF(C,1) AND REF(C,1) REF(O,1) AND C O,MACD*0.5,MACD,6,0),colorcyan;
STICKLINE(MACD 0 AND MACD =REF(MACD,1) AND O REF(C,1) AND REF(C,1) REF(O,1) AND H REF(H,1) AND C O,MACD*0.5,MACD,6,0),colorcyan;