Light LSMAEstimating the LSMA Without Classics Parameters
I already mentioned various methods in order to estimate the LSMA in the idea i published. The parameter who still appeared on both the previous estimation and the classic LSMA was the sample correlation coefficient. This indicator will use an estimate of the correlation coefficient using the standard score thus providing a totally different approach in the estimation of the LSMA. My motivation for such indicator was to provide a different way to estimate a LSMA.
Standardization
The standard score is a statistical tool used to measure at how many standard deviations o a data point is bellow or above its mean. It can also be used to rescale variables, this conversion process is called standardizing or normalizing and it will be the basis of our estimation.
Calculation : (x - x̄)/o where x̄ is the moving average of x and o the standard deviation.
Estimating the Correlation Coefficient
We will use standardization to estimate the correlation coefficient r . 1 > r > -1 so in (y - x̄)/o we want to find y such that y is always above or below 1 standard deviation of x̄ , i had for first idea to pass the price through a band-stop filter but i found it was better to just use a moving average of period/2 .
Estimating the LSMA
We finally rescale a line through the price like mentioned in my previous idea, for that we standardize a line and we multiply the result by our correlation estimation, next we multiply the previous calculation by the price standard deviation, then we sum this calculation to the price moving average.
Comparison of our estimate in white with a LSMA in red with both period 50 :
Working With Different Independents Variables
Here the independent variable is a line n (which represent the number of data point and thus create a straight line) but a classic LSMA can work with other independent variables, for exemple if a LSMA use the volume as independent variable we need to change our correlation estimate with (ȳ - x̄)/ô where ȳ is the moving average of period length/2 of y, y is equal to : change(close,length)*change(volume,length) , x̄ is the moving average of y of period length , and ô is the standard deviation of y. This is quite rudimentary and if our goal is to provide a easier way to calculate correlation then the product-moment correlation coefficient would be more adapted (but less reactive than the sample correlation) .
Conclusion
I showed a way to estimate the correlation coefficient, of course some tweaking could provide a better estimate but i find the result still quite close to the LSMA.
Lag
Zero Lag Exponential Moving AverageZero Lag Exponential Moving Average indicator script based on the original version by John Ehlers and Ric Way
Zero-Lag 4-Exponential Moving Average TrendingThe idea is using a 4 exponential moving average to get scalping positions. The indicator will allow you to change between EMA, Zero Lag EMA and Zero Lag Aggressive EMA.
Dürschner Moving Average - NMA (Zero Lag)The Dürschner Moving Average was published at the IFTA 2012 (International Federation of Technical Analysts) Journal, page 27.
This moving average follows the Nyquist Sampling Criterion making showing even better behavior on high volatility environments than the Ehlers & Ric's "Zero Lag Moving Average".
From the paper abstract: "The well-known Moving Averages (MA), namely the Simple Moving Average (SMA), the Exponential Moving Average (EMA) and the Weighted Moving Average (WMA), are modified in this paper with the help of the Nyquist Criterion. These modified Moving Averages 3.0 show good smoothing characteristics, illustrate relevant trends and trend reversals in price series without a time lag as far as calculated. With regard to smoothing, trend patterns and time lag bring about a significant improvement on conventional SMA (Moving Averages 1.0: SMA, EMA and WMA). In addition to this, the efficiency of the Moving Averages 3.0 is demonstrated by applying several tests and a
simple trading system."
Triangular Moving AverageThe TRIMA is simply the SMA of the SMA -- a double-smoothed simple moving average . The end effect of the double smoothing is that greater weight is placed on values near the middle of the lookback period. It therefore reacts relatively slowly to price changes compared to most moving averages .
But why would I want more lag?
One potential use of this moving average that I've found is that it can allow price to run for a bit after crossing the TRIMA before catching up and creating an opposing signal. It therefore creates the chance for the price to "run its course" so to speak, which can make whipsaw signals less common.
GreenMood inchart MACD Zero LagMACD Zero lag Visual inchart view.
Threshold / Settings can be changed in Format view.
Threshold to be adapted depending on timeframe.