Introduction I already made an indicator (simple line) that tried to make lines on price such that the results would not repaint and give a good fit to the price, today i publish a channels indicator based on the simple line indicator. The indicator aim to show possible support and resistance levels when the central line posses a low sum of squares with the...
Combo of many useful indicators, contains 1)Regular and Hidden Divergence Buy and Sell signals by scarf 2)Time and Money channels by Lazybear 3)Fibonacci Bollinger Bands by Rashad 4)Linear Regression Curve by ucsgears Thanks for all the creators for the source codes!
I used MACD to find peak and trough points in the Linear Regression Slope
The worst way of the using Linear Regression
Linear 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.
The 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.
Linear 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.
Linear 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
experimental: 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.
EXPERIMENTAL: 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)
In 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. ...
EXPERIMENTAL: Experiment using Linear Regression based on %atr for decay(decay option is a mutiplier for the atr).
experiment 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
Method to draw linear regression lines from average price advance&decline range
Version 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...
Corrected Version, for VERSION - 2 () updated for Custom Length, and fixed some formula glitches.
This 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...