Posts: 2,230 since Apr 2013
Thanks: 409 given,
1,471
received
|
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
|