重新设定了MACD的步长,解决了传统MACD指标反映滞后的问题,使其更适合短线操作,同时对MACD的外观做了美化,短线MACD在出现第一根红柱时就表示一波行情开始了,挑选那些之前有一段较长时间MACD为绿柱的股票,出现第一根红柱时买入,股票,这比系统默认的MACD能提前两三天。
DIFF : EMA(CLOSE,6) - EMA(CLOSE,13);
DEA : EMA(DIFF,4);
MACD : 2*(DIFF-DEA);
Zero : 0;
STICKLINE((MACD > 0),0,MACD,5,0),COLOR0000CC;
STICKLINE((MACD > 0),0,MACD*0.9,1,0),COLOR0000EE;
STICKLINE((MACD > 0),0,MACD*0.8,1,0),COLOR0011FF;
STICKLINE((MACD > 0),0,MACD*0.7,1,0),COLOR0033FF;
STICKLINE((MACD > 0),0,MACD*0.6,1,0),COLOR0055FF;
STICKLINE((MACD > 0),0,MACD*0.5,1,0),COLOR0077FF;
STICKLINE((MACD > 0),0,MACD*0.4,1,0),COLOR0099FF;
STICKLINE((MACD > 0),0,MACD*0.3,1,0),COLOR00BBFF;
STICKLINE((MACD > 0),0,MACD*0.2,1,0),COLOR00DDFF;
STICKLINE((MACD > 0),0,MACD*0.1,1,0),COLOR00FFFF;
STICKLINE((MACD < 0),0,MACD,5,0),COLORCC0033;
STICKLINE((MACD < 0),0,MACD*0.9,1,0),COLOREE0033;
STICKLINE((MACD < 0),0,MACD*0.8,1,0),COLORFF1133;
STICKLINE((MACD < 0),0,MACD*0.7,1,0),COLORFF3333;
STICKLINE((MACD < 0),0,MACD*0.6,1,0),COLORFF5533;
STICKLINE((MACD < 0),0,MACD*0.5,1,0),COLORFF7733;
STICKLINE((MACD < 0),0,MACD*0.4,1,0),COLORFF9933;
STICKLINE((MACD < 0),0,MACD*0.3,1,0),COLORFFBB33;
STICKLINE((MACD < 0),0,MACD*0.2,1,0),COLORFFDD33;
STICKLINE((MACD < 0),0,MACD*0.1,1,0),COLORFFFF33;