通达信指标:短线买卖(副)通达信公式


短线买卖(副)

rsv:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
rsv1:=(hhv(h,9.8)-c)/(hhv(h,9.8)-llv(l,9.8))*101;
kk:=sma(rsv1,3,1);
dd:=sma(kk,3,1);
jj:=3*kk-2*dd;
j:=if(jj>=100,100,if(jj<=0,0,jj));
短线买:if((j=100),1,0),LINETHICK2,colorred;
短线卖:if((j=0),2,3),LINETHICK2,colorgreen;