Overview:
This script is a type of mean reversion indicator, it uses a short period EMA, the EMA5 to be exact, as its basis for a mean. From here, we run a modified version of ATR over a longer period of time to find an average range value for price movement. Finally, we calculate the cloud/band/wave by multiplying this range value by our deviation values to produce areas where the price could be considered too far from the mean (similar to an oversold or overbought scenario).
Additionally, we wrote this script with a goal to reduce or eliminate repainting. In the code, we have utilized OPEN values (instead of CLOSE) and previous candle values (not the current candle) to build all the data for the algorithm here to avoid the waves constantly moving and changing their values on real time candles. That said, this is NOT a guarantee that it will never repaint.
What you see:
Visually, the waves are always on the chart. Optionally, we provide a custom standard deviation channel based off the EMA5 (represented with a blue shading) and/or a simple ema5/21 crossover cloud. These can be used for additional confluence if desired, but are not necessary for the core function of the indicator which would be the upper and lower wave.
Intended use:
To provide educational content about the short term movement of an asset. Designed to be run on any time frame.
Disclaimer:
NOT intended to be a sole source of Technical Analysis or anything more than an educational tool!