N:=14;
LC:=REF(CLOSE,1);
rsi:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(Abs(CLOSE-LC),N,1)*100;
压:=DRAWLINE(RSI>=HHV(RSI,10),RSI,RSI<=LLV(RSI,3),HHV(RSI,3),1);
Q:=5;
AA:=REF(RSI,Q)=HHV(RSI,2*Q+1);
BB:=FILTER(AA,Q);
CC:=BacKSET(BB,Q+1);
DD:=FILTER(CC,Q);
AAA:=REF(RSI,Q)=LLV(RSI,2*Q+1);
BBB:=FILTER(AAA,Q);
CCC:=BACKSET(BBB,Q+1);
DDD:=FILTER(CCC,Q);
R11:=BACKSET(ISLASTBAR,BArslAST(DD)+1);
S11:=R11>REF(R11,1);
压力:=DRAWLINE(DD,RSI,S11,RSI,1);
RSI突破:crOSS(RSI,压) AND CROSS(RSI,压力);