Log in to see Cloud of Tags

Wealth-Lab Wiki

Page History: LNRet - logarithmic returns

Compare Page Revisions



« Older Revision - Back to Page History - Current Revision


Page Revision: 2017/10/11 08:16


LNRet: Indicator Documentation

Syntax


public LNRet(Bars bars, DataSeries ds, int period)
public LNRet(Bars bars, DataSeries ds, int period, string description)

Parameter Description

barsA Bars object
dsData series
periodLookback period

Description

The LNRet function is used for computing logarithms of daily returns. Translated to C# from legacy version by Dr. Rene Koch.

logarithm of daily returns.

Z(t) := ln(Y(t)) - ln(Y(t - lookback))

or equivalently:

Z(t) := ln(Y(t) / Y(t - lookback))


Remarks

Logarithmic returns are the "base currency" in quantitative analysis. The time series of logarithmic returns is stationary. Logarithimic returns sum in a correct way: the sum of five logarithmic daily returns is the same as a weekly return.

Logarithmic returns are the base of most further calculations:

  • CAGR - Compund Anualized Geometrig Return
  • HV - Historical Volatility
  • Variance Ratios

See also

  • ROC - absolute returns as percentages
  • MomentumPct - relative returns as percentages
  • Momentum - Difference of Prices. Depends on absolute price level.

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.


ScrewTurn Wiki. Some of the icons created by FamFamFam.