Kawabunga Swing Failure Points Candles (SFP) by RRBKawabunga Swing Failure Points Candles (SFP) by RagingRocketBull 2019
Version 1.0
This indicator shows Swing Failure Points (SFP) and Swing Confirmation Points (SCP) as candles on a chart.
SFP/SCP candles are used by traders as signals for trend confirmation/possible reversal.
The signal is stronger on a higher volume/larger candle size.
A Swing Failure Point (SFP) candle is used to spot a reversal:
- up trend SFP is a failure to close above prev high after making a new higher high => implies reversal down
- down trend SFP is a failure to close below prev low after making a new lower low => implies reversal up
A Swing Confirmation Point (SCP) candle is just the opposite and is used to confirm the current trend:
- up trend SCP is a successful close above prev high after making a new higher high => confirms the trend and implies continuation up
- down trend SCP is a successful close below prev low after making a new lower low => confirms the trend and implies continuation down
Features:
- uses fractal pivots with optional filter
- show/hide SFP/SCP candles, pivots, zigzag, last min/max pivot bands
- dim lag zones/hide false signals introduced by lagging fractals or
- use unconfirmed pivots to eliminate fractal lag/false signals. 2 modes: fractals 1,1 and highest/lowest
- filter only SFP/SCP candles confirmed with volume/candle size
- SFP/SCP candles color highlighting, dim non-important bars
Usage:
- adjust fractal settings to get pivots that best match your data (lower values => more frequent pivots. 0,0 - each candle is a pivot)
- use one of the unconfirmed pivot modes to eliminate false signals or just ignore all signals in the gray lag zones
- optionally filter only SFP/SCP candles with large volume/candle size (volume % change relative to prev bar, abs candle body size value)
- up/down trend SCP (lime/fuchsia) => continuation up/down; up/down trend SFP (orange/aqua) => possible reversal down/up. lime/aqua => up; fuchsia/orange => down.
- when in doubt use show/hide pivots/unconfirmed pivots, min/max pivot bands to see which prev pivot and min/max value were used in comparisons to generate a signal on the following candle.
- disable offset to check on which bar the signal was generated
Notes:
Fractal Pivots:
- SFP/SCP candles depend on fractal pivots, you will get different signals with different pivot settings. Usually 4,4 or 2,2 settings are used to produce fractal pivots, but you can try custom values that fit your data best.
- fractal pivots are a mixed series of highs and lows in no particular order. Pivots must be filtered to produce a proper zigzag where ideally a high is followed by a low and another high in orderly fashion.
Fractal Lag/False Signals:
- only past fractal pivots can be processed on the current bar introducing a lag, therefore, pivots and min/max pivot bands are shown with offset=-rightBars to match their target bars. For unconfirmed pivots an offset=-1 is used with a lag of just 1 bar.
- new pivot is not a confirmed fractal and "does not exist yet" while the distance between it and the current bar is < rightBars => prev old fractal pivot in the same dir is used for comparisons => gives a false signal for that dir
- to show false signals enable lag zones. SFP/SCP candles in lag zones are false. New pivots will be eventually confirmed, but meanwhile you get a false signal because prev pivot in the same dir was used instead.
- to solve this problem you can either temporary hide false signals or completely eliminate them by using unconfirmed pivots of a smaller degree/lag.
- hiding false signals only works for history and should be used only temporary (left disabled). In realtime/replay mode it disables all signals altogether due to TradingView's bug (barcolor doesn't support negative offsets)
Unconfirmed Pivots:
- you have 2 methods to check for unconfirmed pivots: highest/lowest(rightBars) or fractals(1,1) with a min possible step. The first is essentially fractals(0,0) where each candle is a pivot. Both produce more frequent pivots (weaker signals).
- an unconfirmed pivot is used in comparisons to generate a valid signal only when it is a higher high (> max high) or a lower low (< min low) in the dir of a trend. Confirmed pivots of a higher degree are not affected. Zigzag is not affected.
- you can also manually disable the offset to check on which bar the pivot was confirmed. If the pivot just before an SCP/SFP suddenly jumps ahead of it - prev pivot was used, generating a false signal.
- last max high/min low bands can be used to check which value was used in candle comparison to generate a signal: min(pivot min_low, upivot min_low) and max(pivot max_high, upivot max_high) are used
- in the unconfirmed pivots mode the max high/min low pivot bands partially break because you can't have a variable offset to match the random pos of an unconfirmed pivot (anywhere in 0..rightBars from the current bar) to its target bar.
- in the unconfirmed pivots mode h (green) and l (red) pivots become H and L, and h (lime) and l (fuchsia) are used to show unconfirmed pivots of a smaller degree. Some of them will be confirmed later as H and L pivots of a higher degree.
Pivot Filter:
- pivot filter is used to produce a better looking zigzag. Essentially it keeps only higher highs/lower lows in the trend direction until it changes, skipping:
- after a new high: all subsequent lower highs until a new low
- after a new low: all subsequent higher lows until a new high
- you can't filter out all prev highs/lows to keep just the last min/max pivots of the current swing because they were already confirmed as pivots and you can't delete/change history
- alternatively you could just pick the first high following a low and the first low following a high in a sequence and ignore the rest of the pivots in the same dir, producing a crude looking zigzag where obvious max high/min lows are ignored.
- pivot filter affects SCP/SFP signals because it skips some pivots
- pivot filter is not applied to/not affected by the unconfirmed pivots
- zigzag is affected by pivot filter, but not by the unconfirmed pivots. You can't have both high/low on the same bar in a zigzag. High has priority over Low.
- keep same bar pivots option lets you choose which pivots to keep when there are both high/low pivots on the same bar (both kept by default)
SCP/SFP Filters:
- you can confirm/filter only SCP/SFP signals with volume % change/candle size larger than delta. Higher volume/larger candle means stronger signal.
- technically SCP/SFP is always the first matching candle, but it can be invalidated by the following signal in the opposite dir which in turn can be negated by the next signal.
- show first matching SCP/SFP = true - shows only the first signal candle (and any invalidations that follow) and hides further duplicate signals in the same dir, does not highlight the trend.
- show first matching SCP/SFP = false - produces a sequence of candles with duplicate signals, highlights the whole trend until its dir changes (new pivot).
Good Luck! Feel free to learn from/reuse the code to build your own indicators!
Reversal
TBCRI - Trend Bar Color Reversal IndicatorAn idea I had today morning so I had to write. It seems to detect trends well. It has three phases like a semaphor, painting the chart bars of green, yellow or red.
=== Bar Color Meaning ===
Green: uptrend
Yellow: don't care
Red: downtrend
I think it can be useful!
Thanks!
Bull Bear Divergence IndicatorFor Constance Brown-like analysis with divergence signals between price and indicator (i.e. stock close / RSI divergence)
Using two different lines: an indicator high line for bearish, and an indi low line for bullish divergences
For your individual studies, choose your indicator and replace rsi in line 10 with it, any thing else is auto. Script bottom: optional comparison linse addable
Note1: The script only shows divergences to recent pivots, not between actual pivot and one "a few pivots ago"
Note2: Though reversal predictions with the example of SPLK here are quite good, in general better results are obtained with un-normalized indicators.
Indicator "Preço de Fechamento de Reversão"
IMPORTANT: Filter entries with Stochastic. Oversold for long and Overbought for short
Marks candles following setup created by Analyst "Stormer" from Brazil.
This setup was not created or modified in any way by me.
Input configuration toggles marking by triangles above or below candles or change of candle color as following:
For Long Entry - Gray Candle or Green Triangle Above Candle:
Lower low than previous low and higher close than previous close
For Short Entry - Black Candle or Red Triangle Below Candle:
Higher high than previous high and lower close than previous close
Mass IndexThis indicator was originally developed by Donald Dorsey (Stocks & Commodities, V.10:6 (June, 1992): "The Mass Index").
Specially for @AlexMayorov :
If indicator reaches 27 and then falls to below 26.5 then it could be a signal of potential trend reversal.
Trend-Reverse Strategy
Trend-Reverse Strategy is a combination of these 2 scripts to use 5 min candle.
Trend Reversal Alerts Strategy [4H/3M]This is advanced version of T-R.A.S with better logic adapted for 4hour / 3month timeframes
Trend Reversal Alerts Strategy [Advanced]This is a hourly version of T-R.A.S
It's better for houry timeframes : 2h, 3h, 4h, 6h, 12h, 1d, 4d ; otherwise use version for weekly
Reversal Closing Pricelong = (low < low and close > close )
short = (high > high and close < close )
Trading ComboThis is a combo of many indicators including :
Ichimoku Cloud(With Buy and Sell Signals)
EMA
MA
HULL MA
Fibonacci Lines
Bitcoin Kill Zones(Turned off by Default)
MA Turning Points
Reversal(Pin) Bars and Upshaved and Downshaved Bars(Inside and Outside Bars Disabled By default)
Credits to for the source code:
Lazybear
ChrisMoody
100kiwi
Gesundheit
Difusor de Fluxo [André Moraes] - Flow DiffuserPORTUGUÊS
Difusor de Fluxo de André Moraes. É um MACD com mais uma média de longo prazo. Explicação do próprio André Moraes em www.youtube.com
ENGLISH
Flow Diffuser created by André Moraes. It's a MACD with an extra long length average. The author's explanation can be viewed at www.youtube.com
CCI AnalysesThis script analyses the CCI indicator values, showing when a fall in price or a rise in price may happen, or when the CCI is confirming the trend.
The user can personalize:
The period to be used and the range of the CCI bands ( by default)
The slow SMA period to be used and the price percentage variation to react for bullish/bearish
Consecutive number of bullish/bearish in order to consider the CCI as a trend confirmation rather than a price reversal
EMA Reversal PointEMA Reversal Point
The script calculates the "likely" reversal point of 2 EMAs (3 and 5 for example) and plots as a line. The points there the EMA cross are highlighted with a Purple circle.
The way I use this indicator is by visually confirming that the reversal line is diverting away from price in case of strong trends.
Divergences between reversal line and price line are good entry points.
Wait for the price bar to clear the reversal line completely before initiating trades. (No overlaps!)
This is my first indicator script so please be kind on the comments!!
Contra Tendência da SMA(21)Em uma tendência de baixa quando o preço estiver muito afasto (muito abaixo) da SMA (21) efetuar compra na primeira barra verde com take até a SMA (21) ou aparecimento da primeira barra vermelha.
Em uma tendência de alta quando o preço estiver muito afasto (muito acima) da SMA (21) efetuar venda na primeira barra vermelha com take até a SMA (21) ou aparecimento da primeira barra verde.
Obs. Muitas vezes será possível pegar uma reversão de tendência.
RSI+ with Bollinger BandsRelative Strenght Index + SMA on RSI + Bollinger Bands on it - very good solution to see reversals and see lows and highs.
Use different timeframe.
StdDev is 2.17 by default to get 97% probability.
RSI + SMA с наложенными Bollinger Bands - прекрасное решение для поиска разворотных точек и аномального поведения цены.
Используйте разные таймфреймы одновременно.
StdDev = 2.17 по умолчанию для обеспечения попадания в диапазон в 97% случаев.
Fractal Breakout V2Version 2 of my fractal pattern aid ( Version 1 ).
I added a bouncing line between the high and low trend lines, connecting consecutive extreme points. I also chased down a pesky bug in the slope calculation...and for now I have disabled the ability to change resolution basis for extreme detection (e.g. 30m on a 1hr chart).
For fun, I added some shading to make it more apparent at a glance what is happening, but if you find it gimmicky, there's an option to turn that off.
I am inexperienced with pattern recognition, so please send feedback if you have any ideas that would make this more useful.
Thanks!
Lemrin
Fractal BreakoutFirst of all, huge credit to synapticEx , whose brilliant use of the security function inspired me to figure out a way to get quasi-shape boundaries automatically drawn on a chart.
This study draws upper and lower trend lines, based on configurable fractal*** reversal detection, calculates slope from the last two upper or lower reversal points, and then extends a dotted line along the same slope...until the next upper (or lower) reversal occurs. If the high (or low) breaks this extension, the dotted line becomes solid to aid visibility. Reversal detection is configurable to use any number of ticks, but probably four to eight will work best.
I made the inclusion of volume in the reversal logic optional (off by default) and left the existing SMA input found in synapticEx's code intact, albeit with a lower default. With the addition of trend lines, I found volume hindered identification of reversals, although I could try various other filters than the SMA included originally.
I have also left intact the very nice ability to change the period and use the requested period identify reversals, courtesy of synapticEx.
This could be used in a strategy, as the values plotted are actual values that are available to include in logic and do not include knowledge of the future. However , information is not available until the floor of half the number of ticks used in reversal detection (I then offset by that number to line things up visually). Having never heard of it until now, I just Googled the Bill Williams Alligator strategy, which looks interesting, so maybe I could see how this could be ported to that.
***As I typed this, I remembered that while making reversal detection configurable, I changed the detection logic simply to look for highest (or lowest) of the desired length of ticks. I don't know whether this is not strictly fractal anymore, but if desired, with a little work, I could make it require consecutive, consistent changes before and after each reversal again.
Here are a few screenshots from hourly ticks, using the "current" (hourly) period, with and without volume, and playing with the number of points used to identify reversals.
Not using volume
Using volume
CMYK VRMI RAYS ◊ Introduction
Introducing VRMI in this script, an RMI based on price movement and volume, to indicate bullish and bearish trends.
This script marks the background depending on RMI <> VRMI , VRMI polarity and large buy/sell sprees.
◊ Origin
Based on 'The Relative Momentum Index' by Roger Altman : February, 1993 issue of Technical Analysis of Stocks & Commodities magazine.
While RSI counts up and down days from close to close, the Relative Momentum Index counts up and down days from the close relative to a close x number of days ago.
This results in an RSI that is smoother.
In addition VRMI reacts quick, it is used to cut off latency from RMI, and it's polarity indicates the beginning and end of a trend.
Large buy sell sprees and detected in their proportion with an sma on the volume
◊ Adjustments
CMYK color theme applied.
◊ Usage
This indicator can be used to detect trends and mark reversals.
◊ Prospects
◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊ ◊
Stefan Krecher: Jeddingen Divergence v2This is an update to my script:
Stefan-Krecher-Jeddingen-Divergence/
The behaviour is exactly the same, I just added the option to create alerts based on this indicator
Parabolic GlitterThis indicator overlays a series of Parabolic Stop And Reverses (SARs) to continuously illustrate trends as they form in addition to a range of good possible levels at which to place stop orders.
The Initial Start argument gives the minimum value for the SAR function's "Start" argument. The Increment/Start Ratio argument gives the ratio of the SAR function's "Increment" and "Start" arguments (i.e. SAR default is Start = 0.02, Increment = 0.02, therefore Increment/Start Ratio = 1). The same logic applies to the Max/Start Ratio Argument (i.e. SAR default is Start = 0.02, Max = 0.2, therefore Max/Start Ratio = 10).
The Adaptive Coloring argument determines whether the plotting points are red in downtrends and green in uptrends, or if all the plotted points are given the same color (defaults to silver).
Phi35 - Candlestick Reversal Patterns V1 ©Candlestick Reversal Pattern V1 by Phi35 - 9rd September 2016 ©
Check also my " Candlestick Continuation Pattern " indicator which will follow soon!
Do not modify the code without my permission!
If there is an issue or any suggestions, feel free to contact me on the link below
www.tradingview.com
www.tradingview.com
It seems to work well but still no guarantee on completeness!
RISK WARNING! PAST PERFORMANCE IS NOT NECESSARILY INDICATIVE OF FUTURE RESULTS. IN MAKING AN INVESTMENT DECISION, TRADERS MUST RELY ON THEIR OWN EXAMINATION OF THE ENTITY MAKING THE TRADING DECISIONS!
Wait always for confirmation (next opening price or closing price)!!
RECOGNIZABLE REVERSAL PATTERNS
01.Engulfing
02.Harami
03.Piercing Line
04.Morning Star
05.Evening Star
06.Belt Hold
07.Three White Soldiers
08.Three Black Crows
09.Three Stars in the South
10.Stick Sandwich
11.Meeting Line
12.Kicking
13.Ladder Bottom
Although the Engulfing and Harami Patterns are important but can occur too often and give false signals, I give you the option to turn them completely off.
Bollinger Band and Moving Average v0.1 by JustUncleLThis is another Bollinger Band strategy+indicator in my series of Bollinger based setups. This one is seems to work best with 5min charts and 20 to 30min expiry. The strategy follows variation of a Bollinger band + Moving Averages
reversal strategy, it uses the 2 moving averages mainly to determine market direction.