说明:macd指标参数设的比较大,看趋势不容易被骗。'MID共振'是坛里的(非常感谢原创者!谢谢!),我小改了一下,非常灵敏。二者结合找转折点很容易!
指标一目了然无需多说。买卖点我就不设了,大家自己动动手提高的更快!
补充一点:本指标适应各种时间周期;
源码:{红股绿币}
DIF:=EMA(C,78)-EMA(C,2);
DEA:=EMA(DIF,78);
MACD:(DIF-DEA)*2,COLOR00AAAA;
DRAWBAND(MACD,RGB(90,90,255),0,RGB(160,160,0));
{MID共振}
P:=3;
MIDA:=(3*C+L+O+H)/6;
NA:=(20*MIDA+19*REF(MIDA,1)+18*REF(MIDA,2)+17*REF(MIDA,3)+16*REF(MIDA,4)+15*REF(MIDA,5)
+14*REF(MIDA,6)+13*REF(MIDA,7)+12*REF(MIDA,8)+11*REF(MIDA,9)+10*REF(MIDA,10)+9*REF(MIDA,11)
+8*REF(MIDA,12)+7*REF(MIDA,13)+6*REF(MIDA,14)+5*REF(MIDA,15)+4*REF(MIDA,16)+3*REF(MIDA,17)
+2*REF(MIDA,18)+REF(MIDA,20))/210,COLOR8000FF;
M:=MA(NA,P),COLOR00FFFF;
NN:=(NA-C),COLOR00FF00;
MM:(M-C)*2,COLOR0000FF;
AA:=SMA(MM,5,4);
DRAWBAND(MM,RGB(0,222,0),AA,RGB(255,0,0));