TYP := (HIGH + LOW + CLOSE)/3; cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); aa:ref(hhv(h,20),1); bb:ref(llv(l,20),1); dd:=aa<=ref(aa,25); ee:=h>aa; ff:=cci<-180; TT:=CROSS(d,k) and dd and hhv(cci,10)>85; if tt then begin tbuyshort( tt,1 , lmt,o); end if ee then begin tsellshort(ee,1, lmt,o); end if ff then begin tsellshort(ff,1,mkt,o); end