以下是通达信精准背离源码附图
DRAWGBK(C>0, RGB(1,1,1),RGB(1,1,1),0,'0',0); STICKLINE(C>0,120,120,28,-1)COLORBLACK; STICKLINE(C>0,100,100,28,-1)COLOR000080; STICKLINE(C>0,80,80,28,-1)COLOR000080; STICKLINE(C>0,50,50,28,-1)COLOR000080; STICKLINE(C>0,20,20,28,-1)COLOR000080; STICKLINE(C>0,0,0,28,-1)COLOR000080; STICKLINE(C>0,-20,-20,28,-1)COLORBLACK; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:SMA(RSV,3,1)COLORCYAN; D:SMA(K,3,1)COLORYELLOW; J:3*K-2*D,COLORMAGENTA; {K值,D值,J值的背离} {------------------------------------------------------------------------------} N:=5; J底背:REF(C,BARSLAST(REF(FILTER(BACKSET(REF(KDJ.J,N)=LLV(KDJ.J,2*N+1),N+1),N) AND KDJ.J=LLV(KDJ.J,N+1),1))+1)>C AND REF(KDJ.J,BARSLAST(REF(FILTER(BACKSET(REF(KDJ.J,N)=LLV(KDJ.J,2*N+1),N+1),N) AND KDJ.J=LLV(KDJ.J,N+1),1))+1)FILTER(BACKSET(REF(KDJ.J,N)=LLV(KDJ.J,2*N+1),N+1),N) AND KDJ.J=LLV(KDJ.J,N+1),COLORWHITE,NODRAW; DRAWLINE(FILTER(BACKSET(REF(KDJ.J,N)=LLV(KDJ.J,2*N+1),N+1),N) AND KDJ.J=LLV(KDJ.J,N+1),KDJ.J,FILTER(J底背>0,5),KDJ.J,0), COLORWHITE,DOTLINE; DRAWTEXT(J底背,KDJ.J,'J底背'),COLORLIMAGENTA; J顶背:REF(C,BARSLAST(REF(FILTER(BACKSET(REF(KDJ.J,N)= |