How to calculate standard deviation (σ) for a real time (live) data?

29 Views Asked by At

This is a graph of live data. The red band is a 'VWAP' Volume weighted moving average. I want to calculate standard deviation (1σ) of that red line. I have used the formula (image attached), where 'M' is that red line. 'SD' is for standard deviation. Which is providing wrong output.(I compared it to other software indicator) imo main problem area is the 'N', that we take in standard deviation formula. Here, I have considered it as 'cumulative(1)'. I don't know if that's correct.formula is in dialog box