判断趋势有多种方法,其中利用多周期macd判断,不失为一种好方法
DIFF20:=EMA(C,12*20)-EMA(C,26*20);
DEA20:=EMA(DIFF20,9*20);
FILLRGN(DIFF20,DEA20,DIFF20>=DEA20,RGB(0,205,127));
FILLRGN(DIFF20,DEA20,DIFF20<DEA20,RGB(0,255,255));
0,colorwhite;
DIFF5: EMA(C,12*5) - EMA(C,26*5),colorwhite;
DEA5:EMA(DIFF5,9*5),coloryellow,LINETHICK2;
FILLRGN(DIFF5,DEA5,DIFF5>=DEA5,RGB(255,255,0));
DIFF: EMA(c,12) - EMA(c,26);
DEA:EMA(DIFF,9);
MACD5:(DIfF5-DEA5)*2,COLORSTICK;
FILLRGN(DIFF,DEA,DIFF>DEA,RGB(255,0,255));
140388223.bmp
|