超牛KDJ 参数: RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:SMA(RSV,P1,1),coloryellow; D:SMA(K,P2,1),COLOR00DD00; J:3*K-2*D,colorred; 日金叉:=FILTER(CROSS(K,D) AND K<40,4); DRAWICON(日金叉,K,1); DRAWICON(CROSS(d,k),k,2); DRAWTEXT(日金叉,D,'低位金叉'),COLOR00CCCC; KDB:=BARSLAST(REF(CROSS(K,D),1)); KDDB:=REF(CLOSE,KDB+1)>CLOSE AND REF(K,KDB+1)<K AND CROSS(K,D); K底背:=IF(FILTER(KDDB>0,5),1,0); DRAWTEXT(K底背=1,D*0.98,'底背离'),colorred; KDD:=BARSLAST(REF(CROSS(D,K),1)); K顶背:=REF(CLOSE,KDD+1)<CLOSE AND REF(K,KDD+1)>K AND CROSS(D,K); DRAWTEXT(FILTER(K顶背>0,5),D+8,'顶背离'),COLORFFAA22; HORLINE(1=1,0,2,1),colorred; HORLINE(1=1,20,2,1),coloryellow; HORLINE(1=1,50,2,1),colorwhite; HORLINE(1=1,90,2,1),colorgreen; |
