Hey everyone!

I'm trying to create a Bollinger Band based on 5 minute candles, but I've only been able to get the values to update every 5 minutes, but not be calculated based on 5 minute candles. For example, the standard deviation bands should be much farther apart if based on 5 minute candles than 1 minute candles, but I cannot get them to be. Please see attached backtest. I've tried several methods listed both in the documentation and here in the community, but nothing seems to be working. I'm sure it's due to my inexperience. Thank you in advance for any help!

Edit also to add that I am also having trouble getting the warmup period for the indicator to work. Every morning the band values are way off as it doesn't seem to be warming up correctly.