{大智慧版} MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA60:MA(C,60);
{MA120:MA(C,120);
MA240:MA(C,240);}
N:=barslast(DISPSTATUS=1)+1;
AAA:=HHV(H,N);
BBB:=LLV(L,N);
CCC:=AAA-BBB;
中轨:(AAA+BBB)/2;
DIF12:=(EMA(CLOSE,12)-EMA(CLOSE,26))/((EMA(CLOSE,12)+EMA(CLOSE,26))/2)*10;
DEA12:=EMA(DIF12,9);
KDIF12:=3*(DIF12-DEA12);
KDEA12:=SMA(KDIF12,5,2);
微分DIF:=KDIF12*5;
微分DEA:=KDEA12*5;
{www.fxjgsw.com}
MACD2:=2*(微分DIF-微分DEA);
MACD:2*(微分DIF-微分DEA)+中轨;
STICKLINE(MACD2>=REF(MACD2,1)AND MACD2<=0,中轨,中轨+MACD2,1,0),COLORMAGENTA;
STICKLINE(MACD2>REF(MACD2,1)AND MACD2>=0,中轨,中轨+MACD2,1,0),COLORRED;
STICKLINE(MACD2<REF(MACD2,1)AND MACD2<0,中轨,中轨+MACD2,1,0),COLORCYAN;
STICKLINE(MACD2<REF(MACD2,1)AND MACD2>0,中轨,中轨+MACD2,1,0),COLORYELLOW;
![]() ![]() ![]() |
