指标不是万能的,但是可以给我们一些帮助,使我们看清趋势,尽量避免错误的买卖
TY:=H;
TY2:=L;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY2,10)=LLV(TY2,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT;
STICKLINE(H,前期高位,前期高位,8,0),COLORRED;
前期低位:REF(L,BARSLAST(LD)),COLOR00FF00,POINTDOT;
STICKLINE(L,前期低位,前期低位,8,0),COLORBLUE;
DRAWNUMBER(FILTER(C1,10),HIGH,H),DRAWABOVE;
{DRAWNUMBER(FILTER(C2,20),LOW,L),DRAWABOVE;}
{DRAWNUMBER(FILTER(C1,10),H,H);}
DRAWNUMBER(FILTER(C2,10),L,L);
选股:CROSS(C,前期高位),NODRAW;
STICKLINE(选股,OPEN,CLOSE,1,0),COLORYELLOW;
STICKLINE(选股,H,L,0,1),COLORYELLOW;
现价:CONST(C)DOTLINE,COLORGREEN;
{昨日半分位}
半分位:=(O+C)/2;
昨半分位:=REF(半分位,1);
STICKLINE(ISLASTBAR,昨半分位,昨半分位,10,0),COLORWHITE;
DRAWNUMBER(ISLASTBAR,昨半分位,昨半分位);
{涨停跌停}
C2A:=REF(C,1),NODRAW;
涨停:=REF(C,1)*1.1-C<0.01 AND H=C,NODRAW;
STICKLINE(涨停,OPEN,CLOSE,1,0),COLORRED;
STICKLINE(涨停,H,L,0,0),COLORRED;{www.ttchagu.com}
跌停:=IF((C2A-C)*100/C2A>=(10-0.01*100/C2A) AND L=C,1,0),NODRAW;
STICKLINE(跌停,OPEN,CLOSE,1,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;