柱子伸长缩短提醒帮忙编写一下,谢谢老师
SHORT:=N1*倍数;
LONG:=N2*倍数;
MID:=M;
DIFF:EMA(CLOSE,SHORT) – EMA(CLOSE,LONG);
DEA:EMA(DIFF,MID);
MACD: (DIFF-DEA)*2,COLORSTICK;
STICKLINE(MACD>0,0,MACD,0.3,0),COLORRED;
STICKLINE(MACD<0,0,MACD,0.3,0),RGB(0,128,0);
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),0,MACD,0.3,0),RGB(255,128,128),LINETHICK2;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,0.3,0),RGB(0,255,0);
(来源:文华财经)