OPEN-SOURCE SCRIPT

End Point Moving Average [EPMA]

Updated
The End Point Moving Average was introduced in the October 95 issue of Technical Analysis of Stocks &
Commodities in the article "The End Point Moving Average", by Patrick E. Lafferty.

The Time Series Forecast takes this value and the slope of the regression line to forecast the next day and then plots this forecasted price as today's value.

For interpretation refer to Mr. Lafferty's article.

Please note
From line 10 starts my personal experemental modifications to this script, all above is original formula by Patrick E. Lafferty.
Release Notes
Update 1.0
[*1] - Added ability to use high/low sources in one indicator (will be useful for non paid members with limit indicator count)
[*2] - Code refactoring

https://www.tradingview.com/x/b9yAzIhG/
averageendpointepmamovingMoving Averagesregressions

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer