PROTECTED SOURCE SCRIPT

MeanReversion by Logarithmic Returns

By 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
LOGARITHMICreturnreversalStandard DeviationstatisticsStandard Deviation (Volatility)

Protected script

This script is published closed-source and you may privately use it freely.

Want to use this script on a chart?

Disclaimer