DIF:=CLOSE-REF(CLOSE,1);
VU:=IF(DIF>=0,DIF,0);
VD:=IF(DIF<0,-DIF,0);
MEMAU1:=EMA(VU,7);
MEMAD1:=EMA(VD,7);
MEMAU2:=EMA(VU,10);
MEMAD2:=EMA(VD,10);
rsi1:=100*MEMAU1/(MEMAU1+MEMAD1);
{- }
RSI2:100*MEMAU2/(MEMAU2+MEMAD2),COLORFF00FF;
换手:MA(vol/FINANCE(7),5)*3,STICK,LINETHICK2,COLOR00FF00;
买入:IF(RSI1<RSI2 AND RSI2<20 ,30,0),COLORYELLOW,LINETHICK1;
卖出:IF(RSI2<RSI1 AND RSI1>83 ,70,100),LINETHICK1,COLORRED ;