This indicator tries to identify ranging and trending markets.
It measures the angle of a Moving Average in order to filter out ranging markets.
The idea is to only enter a trend following trade if the slope is steep enough.
In order to create this indicator, I used a strategy script from bennef called "Trend Angle BF" and slightly modified it to transform it...
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...
This is a EMA Delta Oscillator: An attempt to show ranging markets based on the slope of the EMA.
Green = Bullish Market
Blue = Ranging Market
Red = Bearish Market
The EMA Slope is normalized to make it work like an oscillator with values between 0 and 1.
Bar colors show the oscillator colors, bar borders show the actual candle colors.
Slope function for SMA in degrees. This slope function you can use or modify for your own strategies. Feel free to change source to calculate the slope of another indicator. In this case you can see that the indicator is above the zero line indicating a positive momentum.
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...
This is a study geared toward identifying price trends using Quadratic regression.
Quadratic regression is the process of finding the equation of a parabola that best fits the set of data being analyzed.
In this study, first a quadratic regression curve is calculated, then the slope of the curve is calculated and plotted.
Custom bar colors are included. The...
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.
A simple oscillator using a modified lowess architecture, good in term of smoothness and reactivity.
Lowess or local regression is a non-parametric (can be used with data not fitting a normal distribution) smoothing method. This method fit a curve to the data using least squares.
In order to have a lowess regression one must use...
This script was cannibalized by another member on here (Kudos given in Script). I trimmed down the script and created this to give a visual representation of the changing slope on exponential moving averages.
Using 4 smoothed Slopes (not lagging) and checking when they start to decrease (entering the orange zone) we can either get a general idea (although quite chaotic) view or general tendency of all together .
Use them trading the equity in 4 parts. one will be trading on faster movements (faster slope), second slightly slower and...
Thank you to alexgrover for putting me wide to this, after putting up with long conversations and stupid questions. Follow him and behold: www.tradingview.com
What is this?
This is simply the function for a Least Squares Moving Average. You can render this on the chart by using the linreg() function in Pine.
Personally I like to use the...