This script calculates 3 MAs and forecasts where these MAs will be in the next 5 future periods.
Automatic mode - price will be based on current price ("flat") or an X-period linear regression ("linreg").
Manual mode - enter your own value('s): let's see where the MA's will be when your favourite equity all of a sudden hits 1 million tomorrow!
The script is written for Constance Brown-like anayis with divergence signals between price and indicator (i.e. stock close / RSI divergence)
Note: Though the example here with NVDA shows good reversal predictions, best results generally are optained with un-normalized indicators and oscilators like CB#s comosite index.
(For Trading view written by LazyBear.) I...
I have been working on this script the lasts days, it's a collaboration with an uruguayan mate.
* It has been optimized for 4h charts, use it on other at your own risk.
* Always use Stop Loss, since it might give false signals after a long trend.
* I'm still working on it, I'm going to add candlestick pattern filtering.
Thanks for your...
Basic extrapolator for forecast a time-series, all forecasts are mades length periods ahead.
This is not a estimation of the exact price
This should only be used for forecasting direction, dont expect the price to be at the same value of its forecast.
Bias, Mean absolute...
Holt's method (see: otexts.com)
Holt (1957) extended simple exponential smoothing to allow the forecasting of data with a trend.
This method involves a forecast equation and two smoothing equations (one for the level and one for the trend):
Forecast equation: ŷ = l + h * b
Level equation: l = alpha * y + (1 - alpha) * (l + b )
I have already posted a classic indicator using recursion, it was the stochastic oscillator and recursion helped to get a more predictive and smooth result. Here i will do the same thing with the rsi oscillator but with a different approach. As reminder when using recursion you just use a fraction of the output of a function as input of the same...