DIFF := EMA(CLOSE,12) – EMA(CLOSE,26);
DEA := EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK;
DRAWCOLORKLINE(DIFF>DEA&&C>=O,COLORRED,1);
DRAWCOLORKLINE(DIFF>DEA&&C<O,COLORRED,0);
DRAWCOLORKLINE(DIFF<DEA&&C>=O,COLORGREEN,1);
DRAWCOLORKLINE(DIFF<DEA&&C<O,COLORGREEN,0);
J:CROSS(DIFF,DEA),NODRAW;
S:CROSSDOWN(DIFF,DEA),NODRAW;
LL:=CROSS(BACKSET(ISLASTBAR&&MACD<0||REFX(J,1),LLVBARS(L,BARSLAST(S)+1)+1),0.5);
HH:=CROSS(BACKSET(ISLASTBAR&&MACD>0||REFX(S,1),HHVBARS(H,BARSLAST(J)+1)+1),0.5);
DRAWLINE1(HH,H,LL,L,0);
DRAWLINE1(LL,L,HH,H,0);
我的意思是用以上指标加上波浪尺同时适用于每周期。
(来源:文华财经)