简单MACD(强弱)介绍
简单MACD(强弱)
【大智慧】简单MACD(强弱)-指标公式源码
VAR1:=(eMA(CLOSE,80)-eMA(CLOSE,10)/3);
VAR2:=( eMA((CLOSE-VAR1)/VAR1,1));
MMA:=EMA(VAR2,10)*0.7;
MMB:=EMA(VAR2,5);
快:( EMA(CLOSE,10) - EMA(CLOSE,20))*100,COLORRED,LINETHICK1;
慢: EMA(快,5),COLORYELLOW,LINETHICK2;
MACD:= 2*(快-慢);
{PARTLINE(快,快>=REF(快,1),RGB(255,0,0),
快<REF(快,1),RGB(0,255,0)),LINETHICK2;}
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),COLORGREEN,LINETHICK3;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),COLORFFCC33,LINETHICK3;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,2,0),COLORYELLOW,LINETHICK3;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,3,0),COLORMAGENTA,LINETHICK3;
强弱:0,COLORGREEN,LINETHICK1;
gd14939