DIF55:=(EMA(CLOSE,48)-EMA(CLOSE,104));
DEA55:=(EMA(DIF55,36)); DRAWBAND(DEA55,RGB(50,150,50),DIF55,RGB(255,50,50)); DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK1; DEA:EMA(DIFF,9),LINETHICK1; MACD:=(DIFF-DEA)*2, COLORSTICK; DRAWTEXT(REF(MACD,1)>0 AND MACD<0,MACD-0.01,'1'),COLOR0000FF; DRAWTEXT(REF(MACD,2)>0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'2'),COLOR0000FF; DRAWTEXT(REF(MACD,3)>0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'3'),COLOR0000FF; DRAWTEXT(REF(MACD,4)>0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'4'),COLOR0000FF; DRAWTEXT(REF(MACD,5)>0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'5'),COLOR0000FF; DRAWTEXT(REF(MACD,6)>0 AND REF(MACD,5)<0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'6'),COLOR0000FF; DRAWBAND(DIFF,RGB(244,224,244),DEA,RGB(0,255,255));{60F} DRAWTEXT(REF(MACD,1)>0 AND MACD<0,MACD-0.01,'1'); DRAWTEXT(REF(MACD,2)>0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'2'); DRAWTEXT(REF(MACD,3)>0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'3'); DRAWTEXT(REF(MACD,4)>0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'4'); DRAWTEXT(REF(MACD,5)>0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'5'); DRAWTEXT(REF(MACD,6)>0 AND REF(MACD,5)<0 AND REF(MACD,4)<0 AND REF(MACD,3)<0 AND REF(MACD,2)<0 AND REF(MACD,1)<0 AND MACD<0,MACD-0.01,'6'); MACD1:(DIFF-DEA)*2, COLORSTICK; |
|