该指标对新高新低进行浪型处理。得到涨跌的衰竭信号,可根据衰竭情况择机买卖。
短线波浪我设置为10天。感觉效果还可以。
A:=HHVBARS(H,10);
B:=LLVBARS(L,10);
D:MA(B-A,7);
E:MA(D,10);
DRAWTEXT(CROSS(D,E),D*0.5,'Y'), colormagenta;
DRAWTEXT(CROSS(E,D),E*0.5,'N'), colorblue;
F:=IF(E-REF(E,1) 0,E-REF(E,1),0);
G:=IF(E-REF(E,1) 0,E-REF(E,1),0);
DRAWTEXT(F REF(F,1),E*0.8,'-'),colorgreen;
DRAWTEXT(F REF(F,1),E*0.8,'+'),colorred;
DRAWTEXT(G REF(G,1),E*0.8,'|'),colorwhite;
DRAWTEXT(G REF(G,1),E*0.8,''),colormagenta;