n:=9; m1:=3; m2:=3;rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;k:=sma(rsv,m1,1);d:=sma(k,m2,1);j:=3*k-2*d;xg:k>ref(k,1) and ref(k,1)<ref(k,2);{已经测试,复制可直接使用,满意请给予采纳}
试这个: a1:=ma(c,5);a2:=ma(c,10);ab:=c>a1 and c>a2;长上影:=(h-max(c,o))>=(max(c,o)-l)and c>o;实体1:=(max(c,o)-min(c,o))/min(c,o)*100;长上影选:ab and 长上影 and 实体1>1.5;