飞狐用的:{8,34,5) DIFF : Tma(EMA(VOL/100,SHORT) - EMA(VOL/100,LONG),0.85,0.15); DEA : eMA(DIFF,M); MACD : 3*(DIFF-DEA),linethick0,coloryellow; STICKLINE(MACD>ref(MACD,1) and MACD>0,0,MACD,5,0),COLORred; STICKLINE(MACD<=ref(MACD,1) and MACD>0,0,MACD,5,0),COLORgray; STICKLINE(MACD>ref(MACD,1) and MACD<0,0,MACD,5,0),COLORMAGENTA; STICKLINE(MACD<=ref(MACD,1) and MACD<0,0,MACD,5,0),COLOR10c110; dd1:=ref(macd,1);dd2:=ref(macd,2); xf:=macd>dd1 and dd1<dd2 and dd1<0; p1:=barslast(ref(xf,1))+2; drawicon(every(macd<0,p1) and dd1>ref(macd,p1) and macd>dd1 and dd1<dd2,macd-3,12); drawicon(every(macd<0,p1) and dd1>ref(macd,p1) and macd>dd1 and dd1<dd2 and c<ref(c,p1),macd-7,11);股票论坛 www.55188.com |
|