这样改更好一点,说实话,真不知道有什么有点。
{short 2 200 12
long 2 200 26
mid 2 200 9 }
DIFF:=EMA(C,SHORT)-EMA(C,LONG);
DEAA:=EMA(DIFF,MID);
MACD:2*(DIFF-DEAA),NODRAW;
R:=(HHV(DEAA,100)+ABS(LLV(DEAA ,100)))/2;
R/4,POINTDOT,COLORLIGRAY;
R/2,POINTDOT,COLORLIGRAY;
R/4*3,POINTDOT,COLORLIGRAY;
-R/4,POINTDOT,COLORLIGRAY;
-R/2,POINTDOT,COLORLIGRAY;
-R/4*3,POINTDOT,COLORLIGRAY;
STICKLINE(MACD<=REF(MACD,1)AND MACD>0,0,MACD,3,1 ),COLOR00AAFF;
STICKLINE(MACD>=REF(MACD,1)AND MACD<=0,0,MACD,3.4,1),COLORAA00BB;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3.4,1),COLORRED;
STICKLINE(MACD<=REF(MACD,1)AND MACD<=0,0,MACD,3,1 ),COLORFF7700;
DIF:EMA(C,SHORT)-EMA(C,LONG),COLORLIRED;
DEA:EMA(DIF,MID),COLORLIBLUE; |