Swing Percentile Lines [QuantVue]The Swing High/Low Percentile Indicator is designed to help traders identify key price levels based on the most recent swing high and low. By anchoring to the most recent swing high and swing low, the indicator automatically generates percentile lines ( 25%, 50%, 75%) that act as dynamic support and resistance levels.
What Does the Indicator Do?
The Swing High/Low Percentile Indicator works by identifying the most recent significant price swings, whether it's a swing high or swing low. It then calculates the range between these points and divides the distance into percentage-based levels. These levels are plotted on the chart as clear, easy-to-read lines at 25%, 50%, and 75% of the range between the swing high and low.
These percentile lines serve as dynamic price zones where traders can anticipate potential reactions, whether the market is trending or consolidating.
How Can Traders Use the Indicator?
Support and Resistance: The percentile lines act as evolving support and resistance zones. Traders can anticipate price bounces or breaks at these levels, providing opportunities for trend-following or reversal trades.
Trend Identification: The indicator helps traders determine the strength of a trend. In a strong uptrend, price will likely stay above the 50% or 75% lines, while in a downtrend, it may remain below the 50% or 25% lines. This gives traders an edge in recognizing the overall market direction.
Entry and Exit Points: Traders can use the percentile lines to time their entries and exits. For example, entering a trade on a pullback to the 25% or 50% line offers a favorable risk-to-reward ratio. Similarly, the percentile lines serve as natural profit targets, allowing traders to plan exits as the price approaches the 50% or 75% levels.
Risk Management: The clear delineation of price levels makes it easy for traders to set stop-loss orders. For example, if price falls below the 25% line in an uptrend, it may signal weakness, prompting an exit or reduced position size.
Breakout and Breakdown Scenarios: When price breaks above a recent swing high or below a swing low, the percentile lines provide traders with pullback entry opportunities or key levels to watch for continuation of the move.
Swinghigh
Filter-Out Weak Pivot highs/lows, Swing highs/lows: MethodJust a simple indicator for refining the standard method of finding Pivot highs & Lows; Allowing user to filter-out weak/flat/rounded Pivot highs/lows
-Aim of this is to get pivot highs & pivot lows coded to print more in line with what the eye would naturally be drawn to as an obvious pivot high/low.
-This uses local moving average around the pivot high/low together with user-input ATR multiple, to create a condition for filtering out lacklustre pivot highs/lows.
-Thought i'd publish this separately as a tool that other coders might find useful.
//inputs//
~adjust looback/lookforward for Pivot highs/lows
~adjust 'spikiness' index to filter out less impressive pivot highs/lows (higher number = more selective)
Swing PointsEnglish:
The indicator shows the fractals where stop-losses may be located and can be used to trade from their taking.
You can adjust the length of the fractal (the number of bars with which it is surrounded on both sides, to confirm the validity).
You can also display lines from fractal points for clarity.
To keep the chart clean, you can enable deletion of already taken fractals.
Example of use with deleted fractals and without lines:
Русский:
Индикатор показывает фракталы где могут находиться стоп-лоссы и его можно использовать для торговли от их снятия.
Можно настраивать длину фрактала (количество баров, которыми он окружен с обеих сторон, для подтверждения валидности).
Так же можно выводить линии от фрактальных точек для наглядности.
Для сохранения чистоты графика можно включить удаление уже снятых фракталов.
Пример использования с удалением снятых фракталов и без линий:
Titans Trend LinesThis indicator will plot trend lines based on recent pivot highs and lows.
The pivot sensitivity level may be customised under the indicator settings. The pivot highs and lows are identified by 'H' and 'L' markers.
Through the indicator, a purple dotted line connects the last two pivot highs and another purple dotted line connects the last two pivot lows. These lines are extended to the left and right beyond the connected points.
If a new trend line has developed due to the formation of a new pivot high or low, the last trend line will be grayed to help with referencing.
The user is advised to use this indicator at his own risk.
'last red low / last green high' exitThis is a good alternative to pivot points and ma lines to find long and short exit points (stop loss prices) for a trade.
When you hear traders say "set the stop loss to the recent swing", this indicator seems to do a reasonable job of finding those.
This script marks
the low of the most recent red candle
the high of the most recent green candle
in order to help identify a reasonable stop loss exit point for long and short trades.
You can also specify a distance threshold to the stop loss point.
How to use it.
Decide how far from the current price the exit should be (default 1.5%)
Use your chosen trading strategy to identify a long or short entry position
Add a long/short drawing to the close of the trade candle
Set the stop loos of your drawing to the exit line of this indicator
Set the take profit of your drawing using the desired risk to reward ratio
Note: A good rule is that if this indicator does not show a valid exit line, do not enter the trade.
Note: If the change of a new "last Green High" or the "last Red Low" is below 0.5%, the indicator will keep the previous values
Swing Highs/Lows & Candle Patterns [LuxAlgo]This script labels swing highs and swing lows as well as the candle pattern that occurred at that precise point. The script can detect the following 6 candle patterns: hammer, inverse hammer, bullish engulfing, hanging man, shooting star, and bearish engulfing.
This indicator by its very nature backpaints by default, meaning that the displayed components are offset in the past.
🔶 USAGE
It can be interesting to see if a top or bottom is associated with a specific candle pattern, this allows us to study the potential of such a pattern to indicate a reversal. You can hover on a label with a specific pattern to see more details about it.
The notations HH, HL, LH, and LL you can see on the labels are defined as follows:
HH : Higher high
HL : Higher low
LH : Lower high
LL : Lower low
🔶 SETTING
Length: Sensitivity of the swing high/low detection, with lower values returning the maximum/minimum of shorter-term price variations.
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!
Fork Handles by @treypeng
Candle based indicator that shows swing highs and lows (pivots).
It draws an up or down arrow for simple three candle 'single' swings.
For stronger five candle 'double' swings, it colours the candle. Good for highlighting stronger reversals.
Both of these stylings can be toggled on/off individually.
Default colours
Swing HIGH on an UP candle: bright green
Swing HIGH on an DOWN candle: bright red
Swing LOW on an UP candle: blue
Swing LOW on an DOWN candle: brown
Double swings are grey or white.
Regular candles are just kept to your own default colours as specified in the chart settings.
👏 for anyone who gets the 'fork handles' joke reference.