# Custom Formula Collection

End Point Moving Average

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 exact formula for the End Point Moving average is as follows:

( 14 * Sum( Cum( 1 ) * C,14 ) - Sum( Cum( 1 ),14) * Sum( C,14) ) / (14 * Sum( Pwr( Cum( 1 ),2),14 ) - Pwr( Sum( Cum( 1 ),14 ),2 ) ) * Cum( 1 ) + (Mov(C,14,S) - Mov( Cum( 1 ),14,S) * (14 * Sum( Cum( 1 ) * C,14) - Sum( Cum( 1 ),14 ) * Sum( C,14) ) / (14 * Sum( Pwr( Cum( 1 ),2 ),14) - Pwr( Sum( Cum( 1 ),14 ),2 ) ) )

The above formula plots the last value of a linear regression line of the previous 14 periods. 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.

***Please note the above formula is using 14 regression periods. If you desire to use different time periods you must change all instances of the number 14 to the desired number of time periods.

For interpretation refer to Mr. Lafferty's article.

For additional help with formulas, please see the Formula Primer.

Can't find the custom formula you need? MetaStock can create formulas for you.

- Creating Custom Formulas
- Absolute Breadth Index
- Advance / Decline Line with Negative Volume
- ADX/ADXR Custom (without rounding)
- Alpha and Beta
- Arms Index (TRIN)
- Average-Modified Method
- Breadth Thrust
- CCI Moving Average Crossover System Test
- Chande's Momentum Oscillator
- Combining Trend and Oscillator Signals System Test
- Commodity Channel Index Buy and Sell Signals
- Comparative Relative Strength
- Comparative Relative Strength Exploration
- Coppock Curve
- Derivative Moving Average
- Detrended Price Oscillator
- Disparity Index
- Displaying the Price of a Security in 32nds and 64ths
- Divergence between the Close and an Indicator
- Dynamic Momentum Oscillator
- Elder Ray and The Force Index
- End Point Moving Average
- Genesis of a Simple Futures Trading System
- Historical Volatility Daily
- Historical Volatility System, Connors and Raschke's
- Historical Volatility Weekly
- InSync Index
- Investor Preference Index
- Keltner Channels
- Ken Roberts' Formulas
- Kurtosis Indicator
- MACD Histogram
- Market Facilitation Index
- Market Facilitation Index Expert Advisor
- Market Thrust Oscillator
- Martin Pring's KST Formulas
- Mass Index
- McClellan Oscillator
- McClellan Summation Index
- Modified VIX Indicator
- Money Flow Index
- Moving Average of Only One Day of a the Week
- Natenberg's Volatility
- New Advance Decline Line
- Pathfinder Trading System
- Polarized Fractal Efficiency
- Price Action Indicator (PAIN)
- Price Volume Rank
- Random Walk Index
- Rate of Change Since a Specific Date
- Regression Oscillator and the Slope/Close Indicator
- Relative Strength Index, Custom (RSI)
- Relative Volatility Index (RVI)
- Slope of a Line
- Slope of a Linear Regression Line
- Standard Error Bands
- STIX Oscillator
- Stochastic %D
- Stochastic Relative Strength Index
- Tick Line Momentum Oscillator
- Trading Channel Index
- Wilder's Volatility
- WillSpread by Larry Williams