|
DIFIF1:=EMA(CLOSE,5) - EMA(CLOSE,390);
DEAEA1:=EMA(DIFIF1,5);
MACD1:=4*(DIFIF1-DEAEA1);
MACD2:=EMA(MACD1,5);
STICKLINE(MACD1>MACD2 AND MACD1>=0,H,L,4,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1>=0,O,C,10,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,H,L,4,0),COLORWHITE;
STICKLINE(MACD1>MACD2 AND MACD1<0,O,C,10,0),COLORWHITE;
STICKLINE(MACD1<MACD2 AND MACD1<0,H,L,4,0),COLOR00D900;
STICKLINE(MACD1<MACD2 AND MACD1<0,O,C,10,0),COLOR00D900;
STICKLINE(MACD1<MACD2 AND MACD1>=0,H,L,4,0),COLORFF00FF;
STICKLINE(MACD1<MACD2 AND MACD1>=0,O,C,10,0),COLORFF00FF;
MA(C,5),COLOR00FFFF;
MA(C,13),COLORFFFF00;
DIFF:=(EMA(CLOSE,5) - EMA(CLOSE,390));
DEA:= EMA(DIFF,5);
MACD :4*(DIFF-DEA), COLORSTICK;
STICKLINE(DIFF>DEA,0,MACD,8,1),COLORRED;
STICKLINE(DIFF<DEA,0,MACD,8,1),COLORFFFF00;
|
|