EMA1:=EMA(C,1);
EMA5:=EMA(C,5);
EMA10:=EMA(C,10);
EMA20:=EMA(C,20);
EMA30:=EMA(C,30);
EMA60:=EMA(C,60);
EMA120:=EMA(C,120);
均價(jià)線:=(EMA1+EMA5+EMA10+EMA20+EMA30+EMA60+EMA120)/7;
R:=(2*L+3*均價(jià))/5;{最低價(jià)和均價(jià)的均值}
R1:=(2*H+3*均價(jià))/5;
M3:=EMA((R+R1)/2,3);{指數(shù)的平均移動(dòng)}
M5:=EMA((R+R1)/2,5);
M8:=EMA((R+R1)/2,8),COLORWHITE;
M13:=EMA((R+R1)/2,13);
M21:=EMA((R+R1)/2,21),COLORYELLOW;
M34:=EMA((R+R1)/2,34);
M55:=EMA((R+R1)/2,55);
黃金線:=EMA((M3+M5+M8+M13+M21+M34+M55)/7,(3+5+8+13+21+34+55)/7);{各指數(shù)
的平均移動(dòng)的均值}
跟莊線:=EMA(LLV((R+R1)/2,2),3),COLORWHITE,LINETHICK1;
籌碼:=(跟莊線-黃金線)/(COST(90)-COST(10))*100,COLOR00FFFF;
DIFF:EMA(籌碼,9)-EMA(籌碼,26);
DEA:EMA(DIFF,9);
MACD:=2*DIFF-2*DEA;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,2,0),COLORLIRED;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),0,MACD,2,0),COLORRED;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),COLORBLUE;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),COLORLIBLUE;
聯(lián)系客服