n:=(2,120,14);
n1:=(2,360,36);
g:=(1,60,15);
p:=(high low close)/3;
cci1:=(p-ma(p,n))*1000/(g*avedev(p,n));
cci2:=(p-ma(p,n1))*1000/(g*avedev(p,n1));
aa:=if(cross(cci1,cci2) and ref(cci1,1)=llv(cci1,70),1,0);
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
kd:=cross(k,d);
白武士抄底:aa and kd;