RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,3,1),COLORRED,LINETHICK2;
D:SMA(K,3,1),COLORYELLOW,LINETHICK2;
20;
80;
A1:=BArslAST(REF(crOSS(K,D),1));
底背:=REF(CLOSE,A1+1)>CLOSE AND K>REF(K,A1+1) AND CROSS(K,D);
底:DRAWLINE(A1=0,D,底背,D,0),,COLORMAGENTA,LINETHICK2;
DRAWTEXT(底背,D,'底B'),COLORMAGENTA;
A2:=BARSLAST(REF(CROSS(D,K),1));
顶背:=REF(CLOSE,A2+1)
顶:DRAWLINE(A2=0,D,顶背,D,0),COLORGREEN;
DRAWTEXT(顶背,D,'顶B'),COLORGREEN;
双金叉:IF(SUM(CROSS(K,D)AND D<20,15)>=2 AND CROSS(K,D)AND C>O,100,0),COLORRED;