N1:=14;N:=8;
AAQ:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,AAQ*(HIGH-LOW),IF(CLOSE
N日内净流入:SUM(进出量,5),LINETHICK2,COLORFF55BB;
流入:=IF(N日内净流入>REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORYELLOW,LINETHICK2;
rsi1:=N日内净流入;
AA:=REF(RSI1,N)=HHV(RSI1,2*N+1);
BB:=BacKSET(AA,N+1);
CC:=FILTER(BB,N) AND RSI1=HHV(RSI1,N+1);
A1:=BArslAST(REF(CC,1));
顶背离:=REF(CLOSE,A1+1)
STICKLINE(FILTER(顶背离>0,5),100,RSI1,1,0),COLORRED;
DRAWLINE(CC,RSI1,FILTER(顶背离>0,5),RSI1,0),COLORRED;
AA2:=REF(RSI1,N)=LLV(RSI1,2*N+1);
BB2:=BACKSET(AA2,N+1);
CC2:=FILTER(BB2,N) AND RSI1=LLV(RSI1,N+1);
A2:=BARSLAST(REF(CC2,1));
底背离:=REF(CLOSE,A2+1)>CLOSE AND REF(RSI1,A2+1)
DRAWLINE(CC2,RSI1,FILTER(底背离>0,5),RSI1,0),COLORCYAN;
0,LINETHICK2,COLORGREEN ;