Trend
TrendFlex Oscillator - Dr. John EhlersHot off the press, I present this NEW "TrendFlex Oscillator" employing PSv4.0, originally formulated by Dr. John Ehlers for TASC - February 2020 Traders Tips. John Ehlers might describe it's novel characteristics as being a reversal sensitive near zero-lag averaging indicator retaining the TREND component. Also, I would add that irregardless of the sampling interval, this indicator has a bound range between +/-2.0 on "1 second" candles all the way up to "1 month" candle durations. This indicator also has a companion indicator entitled "Reflex Oscillator". I have published it in tandem with this one in my scripts profile.
One notable difference between this and the original formulation is that I have added an independent control for the Super Smoother. This "tweak" is enabled by applying the override and adjusting it's period. There is a "Post Smooth" input() that "tweaks" the internal TrendFlex EMA too. Keep in mind that my intention of adding tweaks is solely for experimentation with the original formulation.
I also added adjustable levels for those of you that may wish to employ alertcondition()s to this indicator somehow. Providing a more utilitarian approach, I created this with an easy to use reusable function named trendflex(). As always, I have included advanced Pine programming techniques that conform to proper "Pine Ettiquette". Being this is one of John Ehlers' first two simultaneously released indicators for 2020, I felt a few more bells and whistles were appropriate as a proper contribution to the Tradingview community.
Features List Includes:
Dark Background - Easily disabled in indicator Settings->Style for "Light" charts or with Pine commenting
AND much, much more... You have the source!
The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members, I may implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
PVT Osc - Price Volume Trend Oscillator [UTS]The oscillator version of the Price Volume Trend indicator (PVT) can be considered as a leading indicator of future price movements. The PVT Indicator is similar to the On Balance Volume indicator as it is also used to measure the strength of a trend.
The difference between the OBV and the PVT is that where the OBV adds all volumes when price achieves higher daily closes and subtracts them when price registers a lower daily close, the PVT adds or subtracts only a portion of the volume from the cumulative total in relation to a percentage change in price.
The general market consensus is that this difference enables the PVT to more accurately represent money flow volumes in and out of a stock or commodity.
The PVT has been designed so that it is capable of forecasting directional changes in price. For instance, if the price of a stock is rising and the PVT begins to fall, then this is indicative that a price reversal could occur very soon.
The general consensus is that the PVT is more accurate at detecting new trading opportunities than the OBV because of the differences in their construction. The OBV is designed so that it adds the same amount of volume whether the price closes upwards by just a small fraction or by multiples of its day opening value. On the other hand, the PVT adds volume proportional to the amount the price closed higher.
General Usage
Plain old PVT can be used to confirm trends, as well as spot possible trading signals due to divergences.
A benefit of the oscillator version is that it can produce LONG or SHORT signals on zero line cross.
Or controversy, disallow LONG trades in bearish territory and disallow SHORT trades in bullish territory.
Moving Averages
4 different Moving Averages are available:
EMA (Exponential Moving Average)
SMA (Simple Moving Average)
VWMA (Volume Weighted Moving Average)
WMA (Weighted Moving Average)
OBV Osc - On Balance Volume Oscillator [UTS]The oscillator version of the well known On Balance Volume Indicator (OBV).
General Usage
Plain old OBV can be used to confirm trends, as well as spot possible trading signals due to divergences.
A benefit of the oscillator version is that it can produce LONG or SHORT signals on zero line cross.
Moving Averages
4 different Moving Averages are available:
EMA (Exponential Moving Average)
SMA (Simple Moving Average)
VWMA (Volume Weighted Moving Average)
WMA (Weighted Moving Average)
[PX] ADX and DI v4Hey guys,
I recently used the "ADX and DI" indicator in a variety of my own scripts. Because I keep on developing version 4 scripts and the "ADX and DI" indicator is developed in one of the previous PineScript versions, I had to update the old script every time I wanted to use it. I decided to publish the updated version and also changed a few things:
- ADX color is now orange
- Instead of plotting the DI+ and DI- lines, it's filling the space between the two (can be changed in the "style"-section)
Maybe some of you find it useful. If so, leave a like or follow :)
Happy trading,
paaax
P.S: The original indicator was developed by the user @MasaNakamura. Thanks for your great work!
Trend WaveHello Traders!
You know, I can sill remember the first time I started tinkering with Pinescript. As I had no prior programming experience, I learned by experimenting with other open-source scripts on TradingViews Marketplace. Tearing apart and combining interesting scripts to see what the output would be. @ChrisMoody was a huge source of inspiration for learning, and I wanted to thank him, as well as @TheLark for the concept behind this script.
The Trend Wave is based on @ChrisMoody's PPO-PercentileRank-Mkt-Tops-Bottoms , which also happens to be based on @TheLark's TheLark-Laguerre-PPO/ .
Within my experimentation, I found that if I isolate the ppoT & ppoB variables and plot them calculated from extremely small decimals, you can get an extremely fast reacting, mirroring trend detector.
Within the script, you have the ability to plot the background colors based on trend to make it easier to see where crossovers occured, as well as a Mirror Input to view the mirrored version of the script.
-@DayTradingOil
Bollinger Bands Trend Model-BuschiEnglish
In general, Bollinger Bands are used as an indicator to visualize the "reversion to the mean". However, in this model, by using smaller variable values (default: 10 time intervals instead of 20, 1 standard deviation instead of 2), they are used as an trend following indicator. Two consecutive closes above the upper band form a buy signal (symbol 'B' above bar) which is reversed by two consecutive closes below the lower band (symbol 'S' under bar) and vice versa. The corresponding buying (green) and selling (red) zones are coloured between the bands.
Deutsch
Im Allgemeinen werden Bollinger-Bänder als ein Indikator verwendet, um die "Rückkehr zum Mittelwert" zu visualisieren. In diesem Modell werden sie durch kleine Variablen-Werte (Standardwert: 10 Zeitintervalle anstatt 20, 1 Standardabweichung anstatt 2) jedoch als Trendfolge-Indikator verwendet. Zwei aufeinanderfolgende Schlusskurse über dem oberen Band (Symbol 'B' über dem Balken) bilden ein Kaufsignal, das durch zwei aufeinanderfolgende Schlusskurse unter dem unteren Band (Symbol 'S' unter Balken) umgekehrt wird. Gleiches gilt umgekehrt. Die entsprechenden Kauf-Zonen (grün) und Verkauf-Zonen (rot) werden zwischen den Bändern eingefärbt.
Pivot trend indicatorThis is a LAGGING indicator which can provide a good indication of trend. It require a certain (configurable) number of candles to have closed before it can determine whether a pivot has formed.
It provides a 20 period SMA for the timeframe of your choice which is color coded to show the trend according to confirmed pivots.
Anticipated usage:
Long / Short bias is determined by pivot trend
Trader seeks entries according to their strategy
Black consolidation areas may trigger a re-evaluation of the trade and can serve as good profit taking areas
The SMA colors:
Green -> Higher highs & Higher lows
Red -> Lower highs & Lowers lows
Black -> No clear trend from the pivots
Why the 20 SMA?
Feel free to adjust it for your purposes. I personally find that using a higher time frame 20 SMA is a better indication of trend than longer period MAs on shorter time frames. This can be seen from comparing the 20 daily SMA and 200 hourly SMA.
Pivot adjustment
The pivots use the selected time frame (not) the MA trend time frame. You can specify the left and right candles required to confirm a pivot
Wave Trend With Signals [ChuckBanger]A wave trend script based on LazyBears script but with added signals and a histogram...
Mirror TSI-MACD by Trader JayI was playing around with the TSI-MACD and surprisingly it works quite well as a mirror.
There are 2 ways this can be used
1. Enter long when Blue line crosses up the Red
2. Exit long when Green line crosses the blue
or
1. Enter long when Blue line crosses up the Red
2. Exit long when Blue line crosses back down below the Red
Volume Effectiveness [BigBitsIO]This Volume Effectiveness indicator is designed to allow users to try and identify how effective volume is on each candle, and smoothing those values over time to try to find trends.
Volume Effectiveness is the % change in price for each single unit of volume on the associated candle. The value can be positive or negative, but there is an option to just monitor an absolute value.
Features:
- Volume Effectiveness
- Toggle if Volume Effectiveness should be an absolute value
- Toggle visibility of bars
- Smoothed moving average of Volume Effectiveness
- Adjustable period on the smoothed moving average
- Several moving average types available to use for the smoothed moving average
- Toggle visibility of smoothed moving average
Trend MeterUse as a supplementary Indicator to confirm your entries, but it is as good on it's own.
When you first apply the indicator to your chart make sure you shrink it down It looks a lot better that way
The indicator consists of 3 different Trend Meters and a Trend Bar which are used to confirm trend
As a bonus Possible Momentum Setup entries based on Stochastics are marked as well, these are very Powerful however please use with caution
How to Use
The more Trend meters are lit up the better
Look for Support or Resistance Levels for price to be attracted to
Find confluence with other indicators
Enter Long above the Setup Bar
Enter Short Below the Setup Bar
Centerline SupertrendA centerline/non-chart indicator version of Everget's Supertrend script for use in NNFX-style indicator setups, with the emphasis on this indicator NOT adding visual clutter to the main charting area with a baseline indicator already present.
This is literally the EXACT same script as Everget's Supertrend, but not drawn on the chart and with the fill/stop and fill/state level removed.
Adjust to your timeframe/asset and backtest/forward-test accordingly.
Source script by Everget (Supertrend):
RSI with Moving Averages[UO]This RSI indicator is one of my favorite indicators. This powerful indicator is implemented by Phi-Deltalytics. I modified the drawing so that it is easier (at least for me) to see the signals and trends (it would not matter if you're doing algorithmic trading).
Trends and signals. For detailed instructions and tutorial see Phi-Deltalytics page
EMA Cloud 150/250The trend is your friend.
MA's are a simple and an easy way to find the trend on anytime frame.
A lot of people use the 200 MA to define trend but I've always preferred EMA's.
This is a 150 ema and 250 ema cloud. Ema's can act as support and resistance. Instead S/R being a single line on the chart S/R is seen more as an area on support and therefore a cloud is more suitable in defining the area around the 200 ema.
Rules
1. Above the cloud the assumption is bullish
2 .Below the cloud the assumption is bearish
3 . Change in color is confirmation of a trend change
Note that all MA's lag so use with confluence of other technical indicators.
*better on higher time frames
iTrends | jhMT4 iTrends ported over.
Adapted Bulls/Bears Power from HPotter indicator. I can't confirm if that represents the iBullsPower/iBearsPower function from MT4.
Do try and provide your feedback !
ACTION LocatorThe indicator is based on the RSI and the Absolute Strength Histogram (more specifically the modification by Jie).
It is meant to be used to filter out periods of consolidation, and determine if the bulls or bears are in control when there is enough action to possibly start a trend.
The RSI is not used to find overbought or oversold conditions, but to find momentum and filter out sideways movement.
The ASH is used to filter out sideways movement by looking at the difference between the bulls and the bears and when the difference is below either the bulls or the bears, the market is considered to be consolidating. Otherwise, direction for possible trends are determined by which line is above the other.
Blue background = Bulls are in control of the ACTION
Orange background = Bears are in control of the ACTION
Gray background = No ACTION - DO NOT TRADE
Extended Recursive Bands - Maximum Efficiency With Extra OptionsIntroducing A New Calculation For Efficient Bands Calculation !
Here it is ! The Recursive Bands Indicator, an indicator specially created to be extremely efficient, i think you already know that calculation time is extra important in algorithmic trading, and this is the principal motivation for the creation of the proposed indicator. Originally described in my paper "Pierrefeu, Alex (2019): Recursive Bands - A New Indicator For Technical Analysis" , the indicator framework has been widely used in my previous uploaded indicators, however it would have been a shame to not upload it, however user experience being a major concern for me, i decided to add extra options, which explain the term "extended".
On The Indicator Calculation
You can skip this part if it doesn't interest you. The calculation of the indicator is based on recursion, but i want to explain the mathematical formula described in the paper.
I've seen some users trying to remake it from the calculations, however there was always something weird, and i understand, mathematical notations are always a bit weird, even myself don't always write them correctly/understand them, however this one is relatively simple to understand.
First lets explain each elements of the calculation :
α = smoothing constant, or 2/(length+1)
max/min = maximum and minimum function, max return the greatest input value while min return the lowest one, for example :
max(4,2) = 4 while min(4,2) = 2
the "||" notation mean taking the absolute value, for example : |-1| = abs(-1) = 1
The calculation after the max/min function is called the correction factor, and is the core of the indicator. The last two variables are just here to provide an initial value for upper and lower, basically when we start our calculations we will assign the value of the closing price for upper and lower.
The motivation behind using a smoothing constant in range of (0,1) was to tell the reader that the indicator is easily made adaptive, this is what i did on my adaptive trailing stop indicator by using the efficiency ratio as smoothing variable, the user can use 1/length instead of the provided calculation for alpha.
If you interested on the indicator main logic, it is actually really simple, by using upper = max(price,upper) and lower = min(price,lower) we would get the maximum/minimum price value at time t , therefore upper can only be greater or equal than its precedent value, while lower can only be lower or equal than its precedent value, in order to fix that we subtract/sum upper/lower with a value, this allow the upper band to be lower than its precedent value and lower to be greater than its precedent value, this is the role of the correction factor.
The Indicator
The indicator display one upper and one lower band, every common usages applied to bands indicators such as support/resistance, breakout, trailing stop...etc, can also be applied to this one. length control how reactive the bands are, higher values of length will make the bands cross the price less often.
In order to provide more flexibility for the user i added the option to use various methods for the calculation of the indicator, therefore the indicator can use the average true range, standard deviation, average high-low range, and one totally exclusive method specially designed for this indicator.
Classic Method
This option make the indicator use its classical calculation, this is the most efficient method of all.
Atr Method (atr)
This method use the average true range as correction factor, notice that lower values of length can still produce wide band.
Standard Deviation Method (stdev)
This method use a biased estimate of the standard deviation as correction factor.
The method produce smoother bands that converge more slowly toward the price in comparison with the classic correction factor.
Average High-Low Range Method (ahlr)
This method use the average of the high-low range as correction factor, extremely similar to the average true range.
Rising Falling Volatility (rfv) Method
A new method created for this indicator, this correction factor use the absolute prices changes when price value is greater/lower than any length past values of the price, this allow to have more boxy shaped bands, work best with greater values of length.
The bands can be in contact with this method, a possible fix in the future.
Conclusion
The recursive band indicator is one of my greatest indicators in my opinion (i would love to have yours), as you can see the idea behind it is extremely simple and allow for a super efficient band indicator, which was the original motivation behind it, in order to provide more fun for the users i also added more option for the correction factor, this allow the user to be creative and not get stuck with the original calculation.
Like the trend step indicator family we have almost ended our series on the recursive band framework, 1 more trailing stop will be added in the future, and then we'll have more "boring" stuff until i find something cool again, it shouldn't be long ;)
Thanks for reading !
CryptoJJ - SSL indicatorThe SSL indicator with colour change. Tool for spotting trends and finding good entry points. I recommend using it for higher timeframes, from 4h to 1D.
Play with the settings, you can change the moving avarage type, its length, if you prefer having the default
bar colours in your chart, disable the colouring function in the script.
Good luck crypto traders!
CryptoJJ
Range Force Impulse The "Range Force Impulse" indicator combines 4 useful indicators into one, freeing up chart real-estate and giving the trader insight into trend health, bull/bear commitment, range and volatility all at a glance.
The indicator consists of the following:
Direction - True Range and Average True Range columns shown above and below 0 depending on direction of the period's price
-- TR (gray) shows the current period's trading volatility
-- ATR (Impulse colors, see below) shows an EMA of TR over a specified length
-- Can be used to determine stops and targets (Example: Stop loss at prev close - ATR, Target at 2x ATR)
Index - Alexander Elder's EMA of (change(close) * volume), shows crosses above 0 (green) and below 0 (red), and intermediate signals
-- Shows bull vs. bear interest/commitment/dominance
-- Elder recommends EMA length of 2 for daily chart buy/sell signals, and 13 for weekly chart bull/bear dominance & trend direction signals
-- Intermediate signals are shown above 0 when falling (salmon), or below 0 when rising (pale yellow)
System - Range columns are colored using Alexander Elder's censorship system (green: do not short, red: do not long, blue: is up to you)
-- Shows overall trend health (Macd histogram and EMA up/down changes)
Schaff Trend Cycle [ChuckBanger]The Schaff Trend Cycle is a method, developed by Doug Schaff and based on the concept that trends also have repeating high and low patterns, or cycles. This is a modified MACD line, run through a modified stochastic algorithm and smoothed with Wilders’ smoothing in order to estimate the final Schaff Trend Cycle (STC) indicator. Its purpose is to identify the direction, in which a trend cycle is moving and possible peaks and bottoms within this cycle.
If this is interesting you should also take a look at MACD Leader:
For more info about Schaff Trend Cycle Indicator:
www.investopedia.com