just used Max(High(t)/Close(t-1),Close(t-1)/Low(t))
Daily data
with those nubers into an array
The average-1= a number >0
since change/ day as in the above... % change/day
then days/change = inverse
so u take the 1/(average-1) as your estimated half cycle
the more the volitility...