Not quite sure what
@Joe Bruce is trying to accomplish. It seems like any solution would involve adding a constant for one windowY and subtracting a constant for another windowY. Using the bollingerBand seems a principled way of doing that and provides some useful statistical info. If you add and subtract the same constant, you can get two series, but you could accomplish the same thing just by increasing the strokeWidth. My quick experiments at
https://observablehq.com/d/1b8cb8fba5a4f6d5