How to work with 4 sets of data and 2 variables?

vaj4088:
The array approaches need a loop to move data to get rid of the oldest.

no - just an index that you move to the current start in the array and doing math with modulo the size of the array.