setbars:=3;
ff:= Stoch(7,1);
ss:=Stoch(16,1)
cbuy:=If(ff<=Ref(ff,-1) AND ss>=Ref(ss,-1),Cum(1),0);
bbuy:=If(cbuy>=setbars,H, 99999);
This is some sample code, but I'm not sure exactly what the Cum() function is doing here?
The Metastock primer says it just adds time but when does that happen...