LinearRegAdjEMA

Description

The Linear Regression-Adjusted EMA is an EMA-based technical indicator created by Vitali Apirine. Its calculation is similar to that of the original EMA, however, the multiplier used in the formula is adjusted for linear regression. 

In LinearRegAdjEMA, the smoothing coefficient is calculated using the following formula:

where:

  • Multiplier: A user-defined multiplier.
  • Dist: The distance between the linear regression and the current close.
  • Distmin: The minimum distance between the close and the linear regression, as found on the user-defined lookup period.
  • Distmax: The maximum distance between the close and the linear regression, as found on the user-defined lookup period.

Input Parameters

Parameter Description
price The type of price used in the calculation of LinearRegAdjEMA.
length The length of the period for which LinearRegAdjEMA is calculated.
lr length The length of the period for which the linear regression is calculated.
high low length The length of the period for which the maximum and the minimum distances between the price and the linear regression are found.
multiplier The multiplier used in the calculation of the smoothing coefficient.

Plots

Plot Description
LRAdjEMA The Linear Regression-Adjusted EMA plot.

Further Reading

1. "The Linear Regression-Adjusted Exponential Moving Average" by Vitali Apirine. Technical Analysis of Stocks & Commodities, August 2022.

Example*

*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.

 Past performance is no guarantee of future performance.