The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets.
The following indicator was made for NON LUCRATIVE ACTIVITIES and must remain as is following TradingView's regulations. Use of indicator and their code are published by Invitation Only for work and knowledge sharing. All access granted over it, their use, copy or re-use should mention authorship(s) and origin(s).
WARNING NOTICE!
THE INCLUDED FUNCTION MUST BE CONSIDERED AS TESTING. The models included in the indicator have been taken from openly sources on the web, problems could occur at diverse data sceneries.
WHAT'S THIS...?
Work derived by previous own research for study:
The given indicator is another VWAP analysis tool that contains openly procedures for rolling out time sessions as in other TradingView scripts.
Some novelties are introduced in this version:
INCREMENTAL WEIGHTED STANDARD DEVIATION BANDS: The calculation on this script are strictly based in regard of University of Cambridge Computing Service, February 2009 paper by Tony Finch publicly found at http://people.ds.cam.ac.uk/fanf2/hermes/doc/antiforgery/stats.pdf. From the Abstract, he explain how to derive formulae for numerically stable calculation of the mean and standard deviation, which are also suitable for incremental on-line calculation. Then he generalize these formulae to weighted means and standard deviations. He unpick the difficulties that arise when generalizing further to normalized weights. Finally he shown that the exponentially weighted moving average is a special case of the incremental normalized weighted mean formula, and derive a formula for the exponentially weighted moving standard deviation.