m:=60;n:=30;
散户线: 100*(hhv(high,m)-close)/(hhv(high,m)-llv(low,m));
rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;
k:=sma(rsv,5,1);
d:=sma(k,3,1);
j:=3*k-2*d;
主力线:ema(j,6),coloryellow;
var2:=ref(low,1);
var3:=sma(abs(low-var2),3,1)/sma(max(low-var2,0),3,1)*100;
var4:=ema(if(close*1.3,var3*10,var3/10),3);
var5:=llv(low,30);
var6:=hhv(var4,30);
var7:=if(ma(close,58),1,0);
var8:=ema(if(low<=var5,(var4+var6*2)/2,0),3)/618*var7;
var9:=if(var8>100,100,var8);
吸筹:stickline(var9>-120,0,var9,6,1),colormagenta;
aa3:=(hhv(high,21)-close)/(hhv(high,21)-llv(low,21))*100-10;
aa4:=(close-llv(low,21))/(hhv(high,21)-llv(low,21))*100;
aa5:=sma(aa4,13,8);
走势:ceiling(sma(aa5,13,8)),colorred,linethick2;
aa6:=sma(aa3,21,8);
买观注: stickline(走势-aa6<-65,0,7,15,1);
drawicon(filter(j>ref(j,1)and 走势>=ref(走势,1)and 走势<25 ,5),走势,1);
卖观注: stickline(走势-aa6>85,98,90,15,1),colorffff00;
drawicon(filter(j<ref(j,1)and 走势<=ref(走势,1)and j>85 ,5),j,2);