I am trying to recreate the BandWidth indicator for the Bollinger Envelope (not BBands, but Envelope). I am still struggling with the not normalized version. See code below. My issue: when trying to draw the line, no line is to be seen. The formula
Thanks for reading this. My goal is to have the code run in the background unaffected by me changing the time period (M1, M5 etc.). Right now, once the time period is changed, the code gets restarted from the top and my whole "Counter"-logic (see