Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629
|
A bit more complex would be using an array holding the last 52 weeks. Whenever a new week begins, you'd replace the value from 52 weeks ago with the new value.
Then you can copy this array using Array_Copy and sort the copy with Array_Sort and get the highest high of the last 52 weeks.
Regards,
ABCTG
|