[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Cycle Length



PureBytes Links

Trading Reference Links



> From: Chris Evans
> Sent: Thursday, January 08, 2004 10:42 AM
> 
> works .. thanks .. 

OK, look forward to hearing how well this works out for you.
  - Gary


> >
> > Vars:Len(0),Sum_Price_Chg(0.0),Min(0.0);
> >
> > For Len = 5 to Max begin
> >   Sum_Price_Chg = AbsValue(Summation(Price-Price[1],len));
> >   If Len = 5 or Sum_Price_Chg < Min then begin
> >     Cyclelength = len;
> >     Min = Sum_Price_Chg;
> >   end;
> > end;
> >
> > This way, we know for sure that Cyclelength is set to some 
> explicit value.
>