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

Cycle Length



PureBytes Links

Trading Reference Links

I thought I'd try to use the ehlers cycle length idea to create a varying
term oscillator .. so the idea is to find the number of periods you have to
go back in time until you reach the condition where the sum of the closes or
the sum of (high+low)/2 =0 ..

firstly I figure that + or - 1% will do since it will never sum to exactly=0
.. so I wrote

If Summation(Price, Len) <.01*Price and Summation(Price, Len) >-.01*Price
then
  Cyclelen=len else len=len+1;

which doesn't work   .. clearly I need a loop  .. any ideas?

CJE