浪型指标修改1
2016-11-16 15:27:49点击:
该指标对新高新低进行浪型处理。得到涨跌的衰竭信号,可根据衰竭情况择机买卖。
设置了可调参数N。可以调短,可以调长。N默认为20天.
A:=HHVBARS(H,N);
B:=LLVBARS(L,N);
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;