N:=5;N1:=10;
LC:=REF(CLOSE,1);
rsi5:=SMA(MAX(CLOSE-LC,0),N,1)/SMA(Abs(CLOSE-LC),N,1)*100;
0,COLORGREEN;
wr10:=100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1));
NEWvol:=RSI5-WR10;
NV:NEWVOL,COLORRED;
{- }
STICKLINE(NEWVOL>0,0,NEWVOL,0.8,1),COLORYELLOW;
STICKLINE(NEWVOL<0,0,NEWVOL,0.8,1),COLORYELLOW;
MA(NEWVOL,6),COLORWHITE;
DRAWTEXT(FILTER((NEWVOL>REF(NEWVOL,2)) AND ( REF(NEWVOL,1)<REF(NEWVOL,3) AND NEWVOL<0 ),5),NEWVOL*0.995,'买'),COLORWHITE;
DRAWTEXT(FILTER((NEWVOL<REF(NEWVOL,3)) AND ( REF(NEWVOL,1)>REF(NEWVOL,4) AND NEWVOL>0 ),5),NEWVOL*0.995,'卖'),COLORFF00FF;