bronko791

MeanReversion by Logarithmic Returns

bronko791 Updated   
Mean reversion is a financial term for the assumption that an asset will return to its mean value.
This indicator calculate the logarithmic returns (logReturn) of an asset over a period of time and show the values of logRerturn, mean and standart deviations.

The default time period for logReturn calculation is 252 bars at a "Daily" chart. At a "Daily" chart 252 bar means one trading-year.

See also:

MeanReversion by Volatility
Release Notes:
fixed color
Release Notes:
refactoring
Release Notes:
refactoring
Release Notes:
refactoring
Release Notes:
refactoring
Release Notes:
- removed plot offset for better visualization
Release Notes:
- removed unused code
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?