Linear Tendency FollowerLinear Trend Follower follows 'source' trend using lines within a number of periods ('length') using the last n periods source variation divided by 'length' as line slope. It is delayed by 'length' periods.
Linear
Momentum Linear RegressionThe original script was posted on ProRealCode by user Nicolas.
This is an indicator made of the linear regression applied to the rate of change of price (or momentum). I made a simple signal line just by duplicating the first one within a period decay in the past, to make those 2 lines cross. You can add more periods decay to made signal smoother with less false entry.
LWMA w/ Color ChangeLinear Weighted MA that changes colors based on slope.
Green = slope up from last bar
Yellow = slope is 0 from last bar
Red = slope down from last bar
This time with the ability to change the period.
LWMA w/ Color ChangeLinear Weighted MA that changes colors based on slope.
Green = slope up from last bar
Yellow = slope is 0 from last bar
Red = slope down from last bar
Function 2 Point Line using UNIX TIMESTAMP V1experimental:
draws a line from 2 vectors(price, time)
update:
reformatted the function,
added automatic detection of the period multiplier by approximation(gets a bit goofy with stocks/week time),
example using timestamp() function.
offsetting is still bugged, i cant find a way around it atm.
Function Linear Decay V2EXPERIMENTAL:
improved range detection (it now locks range when its last formed on the appropriate side improving readability as it doesnt auto adjust when opposite extreme moves)
[STRATEGY] Follow the Janet YellenIn the era of central bank's helicopter money, the market will always be skyrocketing up and up given enough time.
What's the strategy to profit from indices?
Only short the market when its in a state of euphoria /irrational exuberance bubble, or sell when it is confirmed (20% drawdown). Otherwise, you really have no reason not to long at every chance.
Conclusion:
Follow the printing press like a sheep.
[RS]Decay Channel Candles V0EXPERIMENTAL: Experiment using Linear Regression based on %atr for decay(decay option is a mutiplier for the atr).
[RS]Linear Regression Bands V1experiment with linear regression, the purpose was to catch break outs early, but it creates to much visual noise
same as version 0 but with added margin filter and signal to mark entrys
[RS]Average Advance and Decline Lines V0Method to draw linear regression lines from average price advance&decline range
Linear Regression Slope - Version 2Version 2 - Linear Regression Slope. This version will have more freedom on picking your own length for all the Inputs.
One of the main reason I changed it is because, Slope calculation on transition period was not being computed properly. Because the Version 1, looks back the length assigned, and compute the slope based on two candle readings, could be 10 days apart or 50. That was misleading.
Therefore, I changed it to plot daily slope and Smooth it with an EMA.
Linear Regression Curve -
List of All my Indicators - www.tradingview.com
Linear Regression SlopeCorrected Version, for
VERSION - 2 () updated for Custom Length, and fixed some formula glitches.
UCSgears_Linear Regression SlopeThis is version 1 of the Linear Regression Slope. In ideal world the Linear regression slope values will remain same for any time period length. because the equation is y = mx+b, where m is the slope. All I did here is m = y/x
The Main Purpose of this indicator is to see, if the Trend is accelerating or decelerating.
The first Blue bar will caution when a strong trend is losing strength. I will leave the rest for you to explore.
I picked AAPL again, because it does have both up and down trend, in the recent time.
Mistake in the code
Corrected Version -