至尊拐点(通达信公式 主图 源码 测试图)
至尊拐点
CKSET(B1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C02:=BACKSET(B2,10+1); LD:=FILTER(C02,10); 前期高位:REF(H,BARSLAST(HD)), COLORFF00FF,POINTDOT;前期低位:REF(L,BARSLAST(LD)), COLORGREEN,POINTDOT; {前期高位:REF(C,BARSLAST(HD)),COLOR8000FF,POINTDOT;} STICKLINE(C,前期高位,前期高位,8,0),COLOR8000FF; STICKLINE(C,前期低位,前期低位,8,0), COLORGREEN;C2:=REF(C,1),NODRAW;涨停:=REF(C,1)*1.1-C<0.01 AND H=C,NODRAW; STICKLINE(涨停,OPEN,CLOSE,0001,0),COLORYELLOW; STICKLINE(涨停,H,L,0,0),COLORRED;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2) AND L=C,1,0),NODRAW; STICKLINE(跌停,OPEN,CLOSE,1,0),COLORBLUE; DRAWTEXT(涨停,L-0.1,'涨停'),COLORRED; DRAWTEXT(跌停,H+0.3,'跌停'),COLORGREEN;