[RS][V4]ZigZag Percent Reversal - Helper - AntiSlopeEXPERIMENTAL:
A helper script to map the Anti derivative slopes.
Slope
EMA slopeA very simple script to get the slope of the EMA.
Can be used together with "Inverse Volatility" and "Support Resistance IV Finder" for optimal results
Moving Average Slope [aamonkey]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 from an entry/exit indicator to a filter.
The calculations are based on Evergrets "Jurik MA" and angle calculation by KyJ.
SMA_TKP_TREND SYSTEMI took the "EMA_TKP_TREND SYSTEM" and converted it to plot a simple moving average for the "slow moving average".
EMA_TKP_TREND_ SYSTEMThis 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.
Robust Weighting OscillatorIntroduction
A simple oscillator using a modified lowess architecture, good in term of smoothness and reactivity.
Lowess Regression
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 tricube kernel for the weightings w , the weightings are determined using a k-nearest-neighbor model.
lowess is then calculated like so :
Σ (wG(y-a-bx)^2)
Our indicator use G , a , b and remove the square as well as replacing x by y
Conclusion
The oscillator is simple and nothing revolutionary but its still interesting to have new indicators.
Lowess would be a great method to be made on pinescript, i have an estimate but its not that good. Some codes use a simple line equation in order to estimate a lowess smoother, i can describe it as ax + b where a is a smooth oscillator, b some kind of filter defined by lp + bp with lp a smooth low pass filter and bp a bandpass filter, x is a variable dependent of the smoothing span.
MACD SlopeShows slopes of macd line, signal line and histogram. A negative and rising slope shows improvement within a downtrend. A positive and falling slope shows deterioration within an uptrend.
Function for Least Squares Moving AverageThank 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 slope of the LSMA to help determine what direction to take a trade in, but I'm sure there are other, more exotic ways of using it and, if you know how to get your fingers dirty with Pine, you can create more exotic versions of it by modifying the function provided.
Want to learn?
If you'd like the opportunity to learn Pine but you have difficulty finding resources to guide you, take a look at this rudimentary list: docs.google.com
The list will be updated in the future as more people share the resources that have helped, or continue to help, them. Follow me on Twitter to keep up-to-date with the growing list of resources.
Suggestions or Questions?
Don't even kinda hesitate to forward them to me. My (metaphorical) door is always open.
SlopeA simple slope indicator of common moving average types with the slope represented in degrees aligned with the trend angle tool on TV after reset chart.
Quadratic Regression Slope [DW]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 color scheme is based on whether the slope is positive or negative, and whether it is increasing or decreasing.
IO_EMA_Delta_OscillatorThis 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.
- Invsto
(sarangab)
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.
SMA slopeSlope 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.
SMACDGraphs slope of ohlc4 MACD
When it =0, trend change
play with slow&fast lengths as well as the length used to calculate the slope.
-in progress(?)
Vertical lines in the image are as close as I could get them to SMACD=0.
ORDINARY LEAST SQUARES Slope by @XeL_ArjonaORDINARY LEAST SQUARES Slope by @XeL_Arjona
Ver. 1 by Ricardo M Arjona @XeL_Arjona
DISCLAIMER:
The Following indicator/code IS NOT intended to be a formal investment advice or recommendation by the author, nor should be construed as such. Users will be fully responsible by their use regarding their own trading vehicles/assets.
The embedded code and ideas within this work are FREELY AND PUBLICLY available on the Web for NON LUCRATIVE ACTIVITIES and must remain as is.
WHAT'S THIS?
This is a REAL mathematically approach of an ORDINARY LEAST SQUARES LINE FITTING SLOPE as TradingView currently don't have a native one embedded, neither as a pine function. Other "Sope" indicators from this linear regression model I found on public library are currently based on "momentum" rather tan slope.
Any modifications or additions are quite welcome!
Cheers!
@XeL_Arjona
[RS]Trend Slope Signal - 8bitMoving average slope and momentum Analysis, dark color its speeding up, light color slowing
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
UCSgears_Linear Regression CurveThe Linear Regression Slope is based on the 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 -