参数 N=5,M1=3,M2=3
RSV=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
a=SMA(RSV,M1,1);
b=SMA(a,M2,1);
e=3*a-2*b;
涨跌:(C-REF(C,1))/REF(C,1)*100,COLORSTICK;
红:IF(INVOL/OUTVOL>=1.02 AND INDEXC/REF(INDEXC,1)>=1.000 AND 涨跌>=0 AND 涨跌<=3 AND e<99 AND REF(VOL,1)/VOL>0.7 AND CLOSE/OPEN>=1.000,INVOL/OUTVOL,0),colorred,STICK,linethick4;
洋:IF(INVOL/OUTVOL>=1.10 AND 涨跌>=-2 AND 涨跌<0 AND e<3 AND REF(VOL,1)/VOL>0.7 AND CLOSE/OPEN>=1.000,INVOL/OUTVOL,0),colormagenta,STICK,linethick4;
黄:IF(INVOL/OUTVOL>=1.05 AND INDEXC/REF(INDEXC,1)<1.000 AND 涨跌<3 AND 涨跌>=0 AND e<99 AND REF(VOL,1)/VOL>0.7 AND CLOSE/OPEN>=1.000,INVOL/OUTVOL,0),coloryellow,STICK,linethick4;
粉:IF(OUTVOL/INVOL>=1.20 AND 涨跌>=-1 AND 涨跌<=3 AND e<10 AND CLOSE/OPEN>=1.000,OUTVOL/INVOL,0),colorlired,STICK,linethick4;
绿:IF(OUTVOL/INVOL>=1.02 AND INDEXC/REF(INDEXC,1)<=1.000 AND 涨跌<=0 AND e>80 AND OPEN/CLOSE>=1.000,-OUTVOL/INVOL,0),colorgreen,STICK,linethick4;
灰:IF(OUTVOL/INVOL>=1.10 AND 涨跌<0 AND e>95 AND OPEN/CLOSE>=1.000,-OUTVOL/INVOL,0),colorgray,STICK,linethick4;
蓝:IF(OUTVOL/INVOL>=1.05 AND INDEXC/REF(INDEXC,1)>1.000 AND 涨跌<=0 AND e>80 AND OPEN/CLOSE>=1.000,-OUTVOL/INVOL,0),colorblue,STICK,linethick4;
青:IF(INVOL/OUTVOL>=1.50 AND 涨跌<0 AND e>90 AND OPEN/CLOSE>=1.000,-OUTVOL/INVOL,0),colorcyan,STICK,linethick4;
底:0,colorgray,LINETHICK1;
内盘率:INVOL/OUTVOL,colorred;
外盘率:OUTVOL/INVOL,colorgreen;