I would give the same answer as Dalla. Use no static var for skipped bars, but an algovar. Then it's individual per algo.

Alternatively, you can use a static series for storing those variables.