N:=5;N1:=10;
LC:=REF(CLOSE,1);
rsi5:=SMA(maX(CLOSE-LC,0),N,1)/SMA(Abs(CLOSE-LC),N,1)*100;
wr10:=100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1));
NEWvol:=RSI5-WR10;
买:FILTER((NEWVOL>REF(NEWVOL,2)) AND ( REF(NEWVOL,1)<REF(NEWVOL,3) AND NEWVOL<0 ),5);