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?
ie is the Cum(1) in this example just doing this: cbuy = cbuy + 1 if that condition is true?
Thanks
David
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?
ie is the Cum(1) in this example just doing this: cbuy = cbuy + 1 if that condition is true?
Thanks
David