A:33;
N:=9;
P1:=3;
P2:=3;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),coloryellow;
D:SMA(K,3,1),COLOR00DD00;
日金:=FILTER(crOSS(K,D) AND K<20,4);
DRAWICON(日金,K,1);
kdB:=BArslAST(REF(CROSS(K,D),1));
KDDB:=REF(CLOSE,KDB+1)>CLOSE AND REF(K,KDB+1)
DRAWTEXT(K底背=1,D*0.98,'底背'),colorred;
KDD:=BARSLAST(REF(CROSS(D,K),1));
K顶背:=REF(CLOSE,KDD+1)
DRAWTEXT(FILTER(K顶背>0,5),D+8,'顶背'),COLORFFAA22;
DIF:=EMA(CLOSE,9)-EMA(CLOSE,17);
DEA:=EMA(DIF,8);
CROSS(DIF,DEA) AND CROSS(K,D);