Trend Retracement IndicatorTrend Retracement Indicator
Cet indicateur identifie les opportunités d'achat en trois étapes :
Détection de la tendance : Utilise une moyenne mobile simple (SMA) pour déterminer si le marché est en tendance haussière.
Zone de retracement : Calcule une zone discount basée sur les plus hauts et les plus bas des 100 dernières périodes (paramétrable) et un niveau de retracement ajustable (par défaut à 50 %).
Confirmation du retournement : Vérifie un retournement dans la zone de retracement avec un volume supérieur à 1.5 fois la moyenne sur les 10 dernières périodes.
Affichage sur le graphique
Zones clés :
Plus haut : Ligne rouge.
Plus bas : Ligne verte.
Zone de retracement : Ligne bleue.
Signal d'achat : Flèche orientée vers le haut sous les bougies.
Personnalisation
Les paramètres sont ajustables pour s'adapter à votre stratégie :
Période pour les calculs des plus hauts et bas.
Niveau de retracement (exprimé en pourcentage).
Seuil de volume pour confirmer un retournement.
Cet indicateur est idéal pour les traders utilisant des zones de discount/premium et souhaitant intégrer le volume comme critère de validation.
PARAMETRE IDEAL
Période 120
Retracement 0,5
Seuil de volume 1.8
Frattale
Trend-Based Tops and BottomsTrend-Based Tops and Bottoms - Description Détaillée
Cet indicateur, souvent utilisé pour repérer des configurations importantes de tendance sur le graphique, est conçu pour identifier les points hauts et bas de tendance. Contrairement à un simple suivi des plus hauts et bas locaux (comme avec les retracements de Fibonacci), cet indicateur se base sur des règles spécifiques de confirmation de tendance pour déceler des sommets et creux pertinents. Voici les détails :
Fonctionnalités Principales
Détection des Sommets et Creux Basés sur la Tendance :
Identifie automatiquement les tournants significatifs de la tendance selon une logique de confirmation :
Un sommet est confirmé lorsque le prix baisse après un point haut, atteignant un niveau inférieur.
Un creux est confirmé lorsque le prix monte après un point bas, atteignant un niveau supérieur.
Flexibilité des Paramètres :
L’utilisateur peut définir des seuils spécifiques pour identifier un sommet ou un creux, comme :
Le nombre de bougies avant de confirmer une cassure.
L’amplitude minimale du mouvement en pourcentage ou en points.
Affichage Visuel Direct sur le Graphique :
Trace des icônes distinctes (comme des triangles ou des cercles) pour marquer les sommets (hauts) et les creux (bas).
Adaptation Multi-Temporalité :
Convient à toutes les unités de temps (Daily, 15H, 4H, etc.) et s’ajuste automatiquement à la période choisie.
Signalisation des Points Importants :
Fournit des alertes ou marqueurs visuels pour les sommets ou creux de tendance confirmés.
Utilisation Pratique
Détection des Points de Retournement :
Les sommets et creux identifiés peuvent être utilisés pour prévoir des retournements potentiels de tendance.
Planification de Stratégies :
Sert de base pour des stratégies comme les cassures de ligne de tendance ou les retracements.
Support à l’Analyse Technique :
Complète d’autres outils comme les supports/résistances, les bandes de Bollinger, ou les oscillateurs.
Explications Techniques
L’indicateur fonctionne selon les principes suivants :
Sommets de Tendance (Tops) :
Un sommet est confirmé lorsque :
Le prix atteint un point haut local.
Le prix baisse ensuite en cassant une structure ascendante.
L’amplitude de la baisse est supérieure à un seuil configurable.
Creux de Tendance (Bottoms) :
Un creux est confirmé lorsque :
Le prix atteint un point bas local.
Le prix monte ensuite en cassant une structure descendante.
L’amplitude de la hausse est supérieure à un seuil configurable.
Paramètres Personnalisables :
L’utilisateur peut ajuster les paramètres suivants :
Lookback Periods : Nombre de bougies analysées pour repérer les sommets/creux.
Thresholds : Niveau minimal de changement de prix (en pourcentage ou points).
Bougies de Confirmation : Nombre de bougies nécessaires pour confirmer un sommet ou un creux.
Visualisation sur le Graphique :
Les sommets sont marqués par des icônes (par exemple, des triangles rouges).
Les creux sont marqués par d’autres icônes (par exemple, des triangles verts).
NAS Strategie [tradbie]Dieser Indikator soll dir das Trading erleichtern. Hiermit lassen sich alle erforderlichen Einstellungen tätigen, wie Sessions, BoS etc.
Keine Gewähr, Trading ist mit hohem Risiko verbunden, daher soll dieser Indikator nur auf Demo-Accounts genutzt werden!
ChronosStratégie de scalping basée sur le RSI ...........................................................................................................................................................................................................
DolphinTradeBot FibonacciThe "DolphinTradeBot Fibonacci" indicator is a Pine Script-based tool for TradingView that dynamically identifies key Fibonacci retracement levels using ZigZag price movements. It calculates Fibonacci levels based on directional price changes, marking critical retracement zones such as 0, 0.236, 0.382, 0.5, 0.618, 0.786, and 1.0 on the chart. These levels are visualized using lines and labels, providing traders with precise areas of potential price reversals or trend continuation.
CandelaCharts - Volume Imbalance (VI) 📝 Overview
Volume Imbalance occurs when there’s a noticeable gap between the bodies of two consecutive candlesticks, with no overlap between them. While the wicks of the candles might intersect, the candle bodies remain entirely separate. This phenomenon often signifies that the algorithm driving market activity did not evenly distribute prices between these two levels, leaving behind a small Volume Imbalance (VI).
A Bullish Volume Imbalance forms when the body of a green candlestick gaps above the previous candle’s body, with no overlap, indicating strong upward momentum and insufficient sell-side liquidity.
A Bearish Volume Imbalance forms when the body of a red candlestick gaps below the previous candle’s body, with no overlap, signaling intense downward pressure and a lack of buy-side liquidity.
This indicator can automatically identify volume imbalances by scanning candlestick patterns and detecting gaps between consecutive candle bodies. These volume imbalances act as price magnets, often attracting the market back to fill the gap before resuming its original direction. Recognizing and leveraging these gaps can be a powerful tool in technical analysis for predicting price movements.
📦 Features
MTF
Mitigation
Consequent Encroachment
Threshold
Hide Overlap
Advanced Styling
⚙️ Settings
Show: Controls whether VIs are displayed on the chart.
Show Last: Sets the number of VIs you want to display.
Length: Determines the length of each VI.
Mitigation: Highlights when a VI has been touched, using a different color without marking it as invalid.
Timeframe: Specifies the timeframe used to detect VIs.
Threshold: Sets the minimum gap size required for VI detection on the chart.
Show Mid-Line: Configures the midpoint line's width and style within the VI. (Consequent Encroachment - CE)
Show Border: Defines the border width and line style of the VI.
Hide Overlap: Removes overlapping VIs from view.
Extend: Extends the VI length to the current candle.
Elongate: Fully extends the VI length to the right side of the chart.
⚡️ Showcase
Simple
Mitigated
Bordered
Consequent Encroachment
Extended
🚨 Alerts
This script provides alert options for all signals.
Bearish Signal
A bearish alert triggers when a red candlestick gaps below the previous body, signaling downward pressure.
Bullish Signal
A bullish alert triggers when a green candlestick gaps above the previous body, indicating upward momentum.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
CandelaCharts - Opening Gap (OG) 📝 Overview
The ICT (Inner Circle Trader) Opening Gap represents the price difference between the previous trading session's closing price and the current session's opening price. This gap serves as a key indicator of market sentiment and can offer valuable clues about the market's potential direction throughout the trading day.
A bullish Opening Gap forms when the market opens higher than the previous session's close, signaling strong buying interest or positive sentiment heading into the new session
A bearish Opening Gap occurs when the market opens lower than the previous session's close, reflecting heightened selling pressure or negative sentiment among market participants
The Opening Gap is significant as it often establishes the market's tone for the trading session. Accurately interpreting this gap enables traders to make informed decisions about when to enter or exit positions. Serving as a gauge of market strength or weakness, the gap provides a clear signal of whether the market is likely to trend upward or downward during the day.
📦 Features
MTF
Mitigation
Consequent Encroachment
Threshold
Hide Overlap
Advanced Styling
⚙️ Settings
Show: Controls whether OGs are displayed on the chart.
Show Last: Sets the number of OGs you want to display.
Length: Determines the length of each OG.
Mitigation: Highlights when an OG has been touched, using a different color without marking it as invalid.
Timeframe: Specifies the timeframe used to detect OGs.
Threshold: Sets the minimum gap size required for OG detection on the chart.
Show Mid-Line: Configures the midpoint line's width and style within the OG. (Consequent Encroachment - CE)
Show Border: Defines the border width and line style of the OG.
Hide Overlap: Removes overlapping OGs from view.
Extend: Extends the OG length to the current candle.
Elongate: Fully extends the OG length to the right side of the chart.
⚡️ Showcase
Simple
Mitigated
Bordered
Consequent Encroachment
Extended
🚨 Alerts
This script provides alert options for all signals.
Bearish Signal
A bearish signal is triggered when the price opens lower than the previous session's close.
Bullish Signal
A bullish signal is triggered when the price opens higher than the previous session's close.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
CandelaCharts - Inversion Fair Value Gap (IFVG) 📝 Overview
An ICT Inversion Fair Value Gap, often called an Inverse FVG, occurs when a Fair Value Gap (FVG) fails to maintain price support or resistance, resulting in a price breach beyond the FVG. This phenomenon highlights an initial shift in price momentum, signaling potential reversals or retracements.
A Bullish IFVG forms when the price breaks above a bearish fair value gap, signaling a potential shift to bullish momentum.
A Bearish IFVG forms when the price breaks below a bullish fair value gap, signaling a potential shift to bearish momentum.
The IFVG Indicator is a powerful tool designed to automatically detect Inversion Fair Value Gaps (IFVGs) on your charts. It highlights key zones where price breaches fair value gaps, signaling potential momentum shifts or trend reversals. Whether you're tracking bullish or bearish IFVGs, this indicator provides clear visual cues, helping you make informed trading decisions with precision and confidence. Perfect for traders seeking to anticipate market structure changes effortlessly.
📦 Features
MTF
Mitigation
Consequent Encroachment
Threshold
Hide Overlap
Advanced Styling
⚙️ Settings
Show: Controls whether FVGs are displayed on the chart.
Show Last: Sets the number of FVGs you want to display.
Length: Determines the length of each IFVG.
Mitigation: Highlights when an IFVG has been touched, using a different color without marking it as invalid.
Timeframe: Specifies the timeframe used to detect IFVGs.
Threshold: Sets the minimum gap size required for IFVG detection on the chart.
Show Mid-Line: Configures the midpoint line's width and style within the IFVG. (Consequent Encroachment - CE)
Show Border: Defines the border width and line style of the IFVG.
Hide Overlap: Removes overlapping IFVGs from view.
Extend: Extends the IFVG length to the current candle.
Elongate: Fully extends the IFVG length to the right side of the chart.
⚡️ Showcase
Simple
Mitigated
Bordered
Consequent Encroachment
Extended
🚨 Alerts
This script provides alert options for all signals.
Bearish Signal
A bearish signal is invalidated if the price re-enters a bearish inversion zone but fails to reverse downward.
Bullish Signal
A bullish signal is invalidated if the price re-enters a bullish inversion zone but fails to reverse upward.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
CandelaCharts - Fair Value Gap (FVG) 📝 Overview
A Fair Value Gap is a three-candle pattern where an unfilled area exists between the high of the first candle and the low of the third candle. This Fair Value Gap represents a price imbalance and often serves as a level of support or resistance on the price chart.
A Bullish FVG occurs when the high of the first candle is below the low of the third candle, creating a gap in price between them.
A Bearish FVG happens when the low of the first candle is above the high of the third candle, also resulting in a price gap.
The indicator is designed to allow traders to precisely and accurately identify Fair Value Gaps (FVGs) across any chosen time frame. Automatically detecting these price imbalances, highlights potential areas where prices may retrace, providing valuable insights into market support and resistance levels. This capability enables traders to make informed decisions based on the presence of FVGs, enhancing their strategies for entry and exit points across different market conditions and time frames.
📦 Features
MTF
Mitigation
Consequent Encroachment
Threshold
Hide Overlap
Advanced Styling
⚙️ Settings
Show: Controls whether FVGs are displayed on the chart.
Show Last: Sets the number of FVGs you want to display.
Length: Determines the length of each FVG.
Mitigation: Highlights when an FVG has been touched, using a different color without marking it as invalid.
Timeframe: Specifies the timeframe used to detect FVGs.
Threshold: Sets the minimum gap size required for FVG detection on the chart.
Show Mid-Line: Configures the midpoint line's width and style within the FVG. (Consequent Encroachment - CE)
Show Border: Defines the border width and line style of the FVG.
Hide Overlap: Removes overlapping FVGs from view.
Extend: Extends the FVG length to the current candle.
Elongate: Fully extends the FVG length to the right side of the chart.
⚡️ Showcase
Simple
Mitigated
Bordered
Consequent Encroachment
Extended
🚨 Alerts
This script provides alert options for all signals.
Bearish Signal
A bearish signal is triggered when the price moves back into a bearish inversion zone and then reverses downward.
Bullish Signal
A bullish signal is triggered when the price returns to a bullish inversion zone and then breaks upward out of the top.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
CandelaCharts - Balanced Price Range (BPR) 📝 Overview
ICT Balanced Price Range (BPR) is the area on the price chart where two opposite Fair Value Gaps overlap.
To identify a Balanced Price Range (BPR), mark a fair value gap (FVG) on the sell side of the price and another on the buy side. These FVGs should be directly opposite each other horizontally. The overlapping area between the two is the Balanced Price Range.
The significance of the ICT Balanced Price Range lies in its sensitivity to price movements. When the market approaches a BPR, it often triggers a rapid and notable price reaction.
This reaction occurs because the two opposing FVGs attract the attention of smart money traders—those with substantial capital capable of influencing market trends. As a key concept in the Inner Circle Trader (ICT) methodology, the BPR serves as an ideal entry point, frequently driving considerable market activity.
📦 Features
MTF
Mitigation
Consequent Encroachment (CE)
Threshold
Hide Overlap
Advanced Styling
⚙️ Settings
Show: Controls whether BPRs are displayed on the chart.
Show Last: Sets the number of BPRs you want to display.
Length: Determines the length of each BPR.
Mitigation: Highlights when an BPR has been touched, using a different color without marking it as invalid.
Timeframe: Specifies the timeframe used to detect BPRs.
Threshold: Sets the minimum gap size required for BPR detection on the chart.
Show Mid-Line: Configures the midpoint line's width and style within the BPR. (Consequent Encroachment - CE)
Show Border: Defines the border width and line style of the BPR.
Hide Overlap: Removes overlapping BPRs from view.
Extend: Extends the BPR length to the current candle.
Elongate: Fully extends the BPR length to the right side of the chart.
⚡️ Showcase
Simple
Mitigated
Bordered
Consequent Encroachment
Extended
🚨 Alerts
This script offers alert options for all signal types.
Bearish Signal
A bearish signal is generated when the price re-enters a bearish inversion zone and then reverses downward.
Bullish Signal
A bullish signal is generated when the price revisits a bullish inversion zone and then breaks upward through the top.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
PIP Algorithm
# **Script Overview (For Non-Coders)**
1. **Purpose**
- The script tries to capture the essential “shape” of price movement by selecting a limited number of “key points” (anchors) from the latest bars.
- After selecting these anchors, it draws straight lines between them, effectively simplifying the price chart into a smaller set of points without losing major swings.
2. **How It Works, Step by Step**
1. We look back a certain number of bars (e.g., 50).
2. We start by drawing a straight line from the **oldest** bar in that range to the **newest** bar—just two points.
3. Next, we find the bar whose price is *farthest away* from that straight line. That becomes a new anchor point.
4. We “snap” (pin) the line to go exactly through that new anchor. Then we re-draw (re-interpolate) the entire line from the first anchor to the last, in segments.
5. We repeat the process (adding more anchors) until we reach the desired number of points. Each time, we choose the biggest gap between our line and the actual price, then re-draw the entire shape.
6. Finally, we connect these anchors on the chart with red lines, visually simplifying the price curve.
3. **Why It’s Useful**
- It highlights the most *important* bends or swings in the price over the chosen window.
- Instead of plotting every single bar, it condenses the information down to the “key turning points.”
4. **Key Takeaway**
- You’ll see a small number of red line segments connecting the **most significant** points in the price data.
- This is especially helpful if you want a simplified view of recent price action without minor fluctuations.
## **Detailed Logic Explanation**
# **Script Breakdown (For Coders)**
//@version=5
indicator(title="PIP Algorithm", overlay=true)
// 1. Inputs
length = input.int(50, title="Lookback Length")
num_points = input.int(5, title="Number of PIP Points (≥ 3)")
// 2. Helper Functions
// ---------------------------------------------------------------------
// reInterpSubrange(...):
// Given two “anchor” indices in `linesArr`, linearly interpolate
// the array values in between so that the subrange forms a straight line
// from linesArr to linesArr .
reInterpSubrange(linesArr, segmentLeft, segmentRight) =>
float leftVal = array.get(linesArr, segmentLeft)
float rightVal = array.get(linesArr, segmentRight)
int segmentLen = segmentRight - segmentLeft
if segmentLen > 1
for i = segmentLeft + 1 to segmentRight - 1
float ratio = (i - segmentLeft) / segmentLen
float interpVal = leftVal + (rightVal - leftVal) * ratio
array.set(linesArr, i, interpVal)
// reInterpolateAllSegments(...):
// For the entire “linesArr,” re-interpolate each subrange between
// consecutive breakpoints in `lineBreaksArr`.
// This ensures the line is globally correct after each new anchor insertion.
reInterpolateAllSegments(linesArr, lineBreaksArr) =>
array.sort(lineBreaksArr, order.asc)
for i = 0 to array.size(lineBreaksArr) - 2
int leftEdge = array.get(lineBreaksArr, i)
int rightEdge = array.get(lineBreaksArr, i + 1)
reInterpSubrange(linesArr, leftEdge, rightEdge)
// getMaxDistanceIndex(...):
// Return the index (bar) that is farthest from the current “linesArr.”
// We skip any indices already in `lineBreaksArr`.
getMaxDistanceIndex(linesArr, closeArr, lineBreaksArr) =>
float maxDist = -1.0
int maxIdx = -1
int sizeData = array.size(linesArr)
for i = 1 to sizeData - 2
bool isBreak = false
for b = 0 to array.size(lineBreaksArr) - 1
if i == array.get(lineBreaksArr, b)
isBreak := true
break
if not isBreak
float dist = math.abs(array.get(linesArr, i) - array.get(closeArr, i))
if dist > maxDist
maxDist := dist
maxIdx := i
maxIdx
// snapAndReinterpolate(...):
// "Snap" a chosen index to its actual close price, then re-interpolate the entire line again.
snapAndReinterpolate(linesArr, closeArr, lineBreaksArr, idxToSnap) =>
if idxToSnap >= 0
float snapVal = array.get(closeArr, idxToSnap)
array.set(linesArr, idxToSnap, snapVal)
reInterpolateAllSegments(linesArr, lineBreaksArr)
// 3. Global Arrays and Flags
// ---------------------------------------------------------------------
// We store final data globally, then use them outside the barstate.islast scope to draw lines.
var float finalCloseData = array.new_float()
var float finalLines = array.new_float()
var int finalLineBreaks = array.new_int()
var bool didCompute = false
var line pipLines = array.new_line()
// 4. Main Logic (Runs Once at the End of the Current Bar)
// ---------------------------------------------------------------------
if barstate.islast
// A) Prepare closeData in forward order (index 0 = oldest bar, index length-1 = newest)
float closeData = array.new_float()
for i = 0 to length - 1
array.push(closeData, close )
// B) Initialize linesArr with a simple linear interpolation from the first to the last point
float linesArr = array.new_float()
float firstClose = array.get(closeData, 0)
float lastClose = array.get(closeData, length - 1)
for i = 0 to length - 1
float ratio = (length > 1) ? (i / float(length - 1)) : 0.0
float val = firstClose + (lastClose - firstClose) * ratio
array.push(linesArr, val)
// C) Initialize lineBreaks with two anchors: 0 (oldest) and length-1 (newest)
int lineBreaks = array.new_int()
array.push(lineBreaks, 0)
array.push(lineBreaks, length - 1)
// D) Iteratively insert new breakpoints, always re-interpolating globally
int iterationsNeeded = math.max(num_points - 2, 0)
for _iteration = 1 to iterationsNeeded
// 1) Re-interpolate entire shape, so it's globally up to date
reInterpolateAllSegments(linesArr, lineBreaks)
// 2) Find the bar with the largest vertical distance to this line
int maxDistIdx = getMaxDistanceIndex(linesArr, closeData, lineBreaks)
if maxDistIdx == -1
break
// 3) Insert that bar index into lineBreaks and snap it
array.push(lineBreaks, maxDistIdx)
array.sort(lineBreaks, order.asc)
snapAndReinterpolate(linesArr, closeData, lineBreaks, maxDistIdx)
// E) Save results into global arrays for line drawing outside barstate.islast
array.clear(finalCloseData)
array.clear(finalLines)
array.clear(finalLineBreaks)
for i = 0 to array.size(closeData) - 1
array.push(finalCloseData, array.get(closeData, i))
array.push(finalLines, array.get(linesArr, i))
for b = 0 to array.size(lineBreaks) - 1
array.push(finalLineBreaks, array.get(lineBreaks, b))
didCompute := true
// 5. Drawing the Lines in Global Scope
// ---------------------------------------------------------------------
// We cannot create lines inside barstate.islast, so we do it outside.
array.clear(pipLines)
if didCompute
// Connect each pair of anchors with red lines
if array.size(finalLineBreaks) > 1
for i = 0 to array.size(finalLineBreaks) - 2
int idxLeft = array.get(finalLineBreaks, i)
int idxRight = array.get(finalLineBreaks, i + 1)
float x1 = bar_index - (length - 1) + idxLeft
float x2 = bar_index - (length - 1) + idxRight
float y1 = array.get(finalCloseData, idxLeft)
float y2 = array.get(finalCloseData, idxRight)
line ln = line.new(x1, y1, x2, y2, extend=extend.none)
line.set_color(ln, color.red)
line.set_width(ln, 2)
array.push(pipLines, ln)
1. **Data Collection**
- We collect the **most recent** `length` bars in `closeData`. Index 0 is the oldest bar in that window, index `length-1` is the newest bar.
2. **Initial Straight Line**
- We create an array called `linesArr` that starts as a simple linear interpolation from `closeData ` (the oldest bar’s close) to `closeData ` (the newest bar’s close).
3. **Line Breaks**
- We store “anchor points” in `lineBreaks`, initially ` `. These are the start and end of our segment.
4. **Global Re-Interpolation**
- Each time we want to add a new anchor, we **re-draw** (linear interpolation) for *every* subrange ` [lineBreaks , lineBreaks ]`, ensuring we have a globally consistent line.
- This avoids the “local subrange only” approach, which can cause clustering near existing anchors.
5. **Finding the Largest Distance**
- After re-drawing, we compute the vertical distance for each bar `i` that isn’t already a line break. The bar with the biggest distance from the line is chosen as the next anchor (`maxDistIdx`).
6. **Snapping and Re-Interpolate**
- We “snap” that bar’s line value to the actual close, i.e. `linesArr = closeData `. Then we globally re-draw all segments again.
7. **Repeat**
- We repeat these insertions until we have the desired number of points (`num_points`).
8. **Drawing**
- Finally, we connect each consecutive pair of anchor points (`lineBreaks`) with a `line.new(...)` call, coloring them red.
- We offset the line’s `x` coordinate so that the anchor at index 0 lines up with `bar_index - (length - 1)`, and the anchor at index `length-1` lines up with `bar_index` (the current bar).
**Result**:
You get a simplified representation of the price with a small set of line segments capturing the largest “jumps” or swings. By re-drawing the entire line after each insertion, the anchors tend to distribute more *evenly* across the data, mitigating the issue where anchors bunch up near each other.
Enjoy experimenting with different `length` and `num_points` to see how the simplified lines change!
Dynamic Signal EngineDynamic Signal Engine
The Dynamic Signal Engine is a powerful and versatile indicator, designed to help traders make informed decisions by combining trend analysis with key support and resistance levels. This tool is inspired by the Linear Regression Oscillator , which laid the foundation for this enhanced implementation. By building on the original concept, this script introduces additional features, customization, and integration with dynamic trading strategies to suit diverse trading styles.
Key Features
Inspiration and Foundation
This indicator draws inspiration from the Linear Regression Oscillator , leveraging its robust trend detection capabilities while adding custom enhancements for broader functionality and user adaptability.
Trading Style Customization
Adaptable for Scalping, Intraday, and Swing Trading with dynamic parameter adjustments for each style.
User-defined inputs for thresholds, lookback periods, and visualization options provide further control.
Enhanced Linear Regression Oscillator (LRO)
A refined implementation of the LRO calculates deviations from a regression line, normalized for improved trend detection.
Identifies bullish and bearish crossovers with added alerts and visual markers.
Includes proximity alerts for critical thresholds to help traders anticipate key market movements.
Dynamic Support and Resistance Integration
Incorporates ENIGMA Signal Logic to identify swing highs and lows, dynamically marking them as fractal support and resistance levels.
When a sell signal from ENIGMA is generated, traders can choose to sell immediately or use the low of the previous candle as the entry point. Similarly, for a buy signal, traders can buy immediately or use the high of the previous candle for entry. These signals are visually indicated by a green triangle for buy signals, ensuring clear and actionable insights.
Advanced Visualization
Displays key levels with customizable horizontal lines (solid, dashed, or dotted) and labels for clarity.
Candle colours and mini arrows highlight trends and potential trading opportunities.
Real-Time Alerts
Alerts for LRO threshold crossings and swing-level breaches keep you updated without the need for constant monitoring.
Optimized for Usability
Designed to keep charts clean by limiting displayed trades and signals to recent activity.
Adjustable parameters ensure flexibility and a user-friendly experience.
How It Works
Trend Detection with Enhanced LRO
The indicator builds on the Linear Regression Oscillator , calculating oscillations of price movements and normalizing them for trend analysis. Crossovers and threshold proximity are visualized on the chart and trigger alerts for potential market shifts.
Dynamic Support and Resistance Levels
The ENIGMA Signal Logic identifies recent swing highs and lows, marking them as key levels. These levels are dynamically updated as new swing points are detected, providing actionable support and resistance zones.
Signal Confirmation
Buy or sell signals are confirmed when:
Price breaches the swing levels.
The LRO aligns with directional bias (e.g., bearish crossover for sell signals).
Signals are further clarified by ENIGMA's green triangle indicators, showing key buy and sell opportunities.
Visualization and Alerts
Signals are displayed using arrows, labelled horizontal lines, and optional candle colours. Alerts notify traders of key events, such as LRO threshold crossings or swing-level breaches.
How to Use
Choose your Trading Style: Scalping, Intraday, or Swing Trading. The indicator adjusts its default settings automatically.
Fine-tune parameters like LRO thresholds, line lengths, and the number of visible trades to suit your preferences.
Observe the chart for signals:
Green arrows and lines indicate buy opportunities.
Red arrows and lines signal sell opportunities.
Use the alert system to stay informed about LRO thresholds and signal confirmations.
Integrate the indicator with your existing trading strategy for better decision-making.
Acknowledgement
This script was inspired by the Linear Regression Oscillator . While it builds on the core concept, this implementation introduces unique enhancements, such as dynamic signal integration, trading style adaptability, and advanced visualization tools, making it a highly customizable and versatile tool for traders.
Disclaimer
This indicator is intended for educational purposes only and should not be considered financial advice. Always perform due diligence and apply appropriate risk management when trading.
RSI Divergence + Sweep + Signal + Alerts Toolkit [TrendX_]The RSI Toolkit is a powerful set of tools designed to enhance the functionality of the traditional Relative Strength Index (RSI) indicator. By integrating advanced features such as Moving Averages, Divergences, and Sweeps, it helps traders identify key market dynamics, potential reversals, and newly-approach trading stragies.
The toolkit expands on standard RSI usage by incorporating features from smart money concepts (Just try to be creative 🤣 Hope you like it), providing a deeper understanding of momentum, liquidity sweeps, and trend reversals. It is suitable for RSI traders who want to make more informed and effective trading decisions.
💎 FEATURES
RSI Moving Average
The RSI Moving Average (RSI MA) is the moving average of the RSI itself. It can be customized to use various types of moving averages, including Simple Moving Average (SMA), Exponential Moving Average (EMA), Relative Moving Average (RMA), and Volume-Weighted Moving Average (VWMA).
The RSI MA smooths out the RSI fluctuations, making it easier to identify trends and crossovers. It helps traders spot momentum shifts and potential entry/exit points by observing when the RSI crosses above or below its moving average.
RSI Divergence
RSI Divergence identifies discrepancies between price action and RSI momentum. There are two types of divergences: Regular Divergence - Indicates a potential trend reversal; Hidden Divergence - Suggests the continuation of the current trend.
Divergence is a critical signal for spotting weakness or strength in a trend. Regular divergence highlights potential trend reversals, while hidden divergence confirms trend continuation, offering traders valuable insights into market momentum and possible trade setups.
RSI Sweep
RSI Sweep detects moments when the RSI removes liquidity from a trend structure by sweeping above or below the price at key momentum level crossing. These sweeps are overlaid on the RSI chart for easier visualized.
RSI Sweeps are significant because they indicate potential turning points in the market. When RSI sweeps occur: In an uptrend - they suggest buyers' momentum has peaked, possibly leading to a reversal; In a downtrend - they indicate sellers’ momentum has peaked, also hinting at a reversal.
(Note: This feature incorporates Liquidity Sweep concepts from Smart Money Concepts into RSI analysis, helping RSI traders identify areas where liquidity has been removed, which often precedes a trend reversal)
🔎 BREAKDOWN
RSI Moving Average
How MA created: The RSI value is calculated first using the standard RSI formula. The MA is then applied to the RSI values using the trader’s chosen type of MA (SMA, EMA, RMA, or VWMA). The flexibility to choose the type of MA allows traders to adjust the smoothing effect based on their trading style.
Why use MA: RSI by itself can be noisy and difficult to interpret in volatile markets. Applying moving average would provide a smoother, more reliable view of RSI trends.
RSI Divergence
How Regular Divergence created: Regular Divergence is detected when price forms HIGHER highs while RSI forms LOWER highs (bearish divergence) or when price forms LOWER lows while RSI forms HIGHER lows (bullish divergence).
How Hidden Divergence created: Hidden Divergence is identified when price forms HIGHER lows while RSI forms LOWER lows (bullish hidden divergence) or when price forms LOWER highs while RSI forms HIGHER highs (bearish hidden divergence).
Why use Divergence: Divergences provide early warning signals of a potential trend change. Regular divergence helps traders anticipate reversals, while hidden divergence supports trend continuation, enabling traders to align their trades with market momentum.
RSI Sweep
How Sweep created: Trend Structure Shift are identified based on the RSI crossing key momentum level of 50. To track these sweeps, the indicator pinpoints moments when liquidity is removed from the Trend Structure Shift. This is a direct application of Liquidity Sweep concepts used in Smart Money theories, adapted to RSI.
Why use Sweep: RSI Sweeps are created to help traders detect potential trend reversals. By identifying areas where momentum has exhausted during a certain trend direction, the indicator highlights opportunities for traders to enter trades early in a reversal or continuation phase.
⚙️ USAGES
Divergence + Sweep
This is an example of combining Devergence & Sweep in BTCUSDT (1 hour)
Wait for a divergence (regular or hidden) to form on the RSI. After the divergence is complete, look for a sweep to occur. A potential entry might be formed at the end of the sweep.
Divergences indicate a potential trend change, but confirmation is required to ensure the setup is valid. The RSI Sweep provides that confirmation by signaling a liquidity event, increasing the likelihood of a successful trade.
Sweep + MA Cross
This is an example of combining Devergence & Sweep in BTCUSDT (1 hour)
Wait for an RSI Sweep to form then a potential entry might be formed when the RSI crosses its MA.
The RSI Sweep highlights a potential turning point in the market. The MA cross serves as additional confirmation that momentum has shifted, providing a more reliable and more potential entry signal for trend continuations.
DISCLAIMER
This indicator is not financial advice, it can only help traders make better decisions. There are many factors and uncertainties that can affect the outcome of any endeavor, and no one can guarantee or predict with certainty what will occur. Therefore, one should always exercise caution and judgment when making decisions based on past performance.
Fractal levels Gold [AstroHub]This indicator detects key fractal points on a price chart and visually marks them with shapes and levels. It helps traders identify potential reversal zones and dynamic support/resistance levels, enhancing market analysis.
Key Features:
Fractal Detection:
The indicator identifies top and bottom fractals using a 5-bar pattern.
A top fractal forms when the middle bar has a higher high compared to the two bars on either side.
A bottom fractal forms when the middle bar has a lower low compared to the two bars on either side.
Fractal Filtering:
The indicator can filter out "pristine" fractals (uninterrupted fractal patterns) based on custom conditions, making it more selective and reducing false signals.
Fractal Plotting:
are plotted as downward triangles.
are plotted as upward triangles.
Users can choose to display or hide fractal points and their corresponding labels.
Fractal Levels:
The indicator automatically plots fractals' levels on the chart, marking potential resistance and support zones.
Fractal levels change dynamically as new fractals are identified.
Customizable Display Options:
Show or hide fractals and levels with adjustable settings.
Choose whether to apply filtering for pristine fractals.
Display the pivot labels to easily track fractal positions.
How It Works:
The indicator uses a simple approach to recognize top and bottom fractals . When a valid fractal is detected, it highlights it on the chart and plots the corresponding price level.
By default, top fractals are shown above the bars (red color), and bottom fractals are shown below the bars (green color).
Fractal levels represent potential reversal points and can act as dynamic support and resistance zones.
Best Use:
The indicator is particularly useful in identifying reversal points and trend changes, helping traders to spot key price levels.
It can be used across various timeframes and markets, particularly for trend-following or reversal strategies.
Customizable Settings:
Show Pivots: Toggle the display of pivot points.
Show Pivot Labels: Display labels for pivot levels.
Show Fractals: Toggle fractal points on the chart.
Show Fractal Levels: Show or hide the levels corresponding to the detected fractals.
Filter for Pristine Fractals: Enable this option to filter out non-pristine fractals for higher accuracy.
Conclusion:
This indicator provides clear, actionable fractal signals, helping traders easily identify critical levels for entry and exit. With customizable settings and visual cues, it's suitable for both novice and expe
Bitcoin Exponential Profit Strategy### Strategy Description:
The **Bitcoin Trading Strategy** is an **Exponential Moving Average (EMA) crossover strategy** designed to identify bullish trends for Bitcoin.
1. **Indicators**:
- **Fast EMA (default 9 periods)**: Represents the short-term trend.
- **Slow EMA (default 21 periods)**: Represents the longer-term trend.
2. **Entry Condition**:
- A **bullish crossover** occurs when the Fast EMA crosses above the Slow EMA.
- The strategy enters a **long position** with a user-defined order size (default 0.01 BTC).
3. **Exit Conditions**:
- **Take Profit**: Closes the position when the profit target is reached (default $100).
- **Stop Loss**: Closes the position when the price drops below the stop loss level (default $50).
- **Bearish Crossunder**: Closes the position when the Fast EMA crosses below the Slow EMA.
4. **Visual Signals**:
- **BUY signals**: Displayed when a bullish crossover occurs.
- **SELL signals**: Displayed when a bearish crossunder occurs.
This strategy is optimized for trend-following behavior, ensuring positions are aligned with upward-moving trends while managing risk through clear stop-loss and take-profit levels.
IU EMA Channel StrategyIU EMA Channel Strategy
Overview:
The IU EMA Channel Strategy is a simple yet effective trend-following strategy that uses two Exponential Moving Averages (EMAs) based on the high and low prices. It provides clear entry and exit signals by identifying price crossovers relative to the EMAs while incorporating a built-in Risk-to-Reward Ratio (RTR) for effective risk management.
Inputs ( Settings ):
- RTR (Risk-to-Reward Ratio): Define the ratio for risk-to-reward (default = 2).
- EMA Length: Adjust the length of the EMA channels (default = 100).
How the Strategy Works
1. EMA Channels:
- High-based EMA: EMA calculated on the high price.
- Low-based EMA: EMA calculated on the low price.
The area between these two EMAs creates a "channel" that visually highlights potential support and resistance zones.
2. Entry Rules:
- Long Entry: When the price closes above the high-based EMA (crossover).
- Short Entry: When the price closes below the low-based EMA (crossunder).
These entries ensure trades are taken in the direction of momentum.
3. Stop Loss (SL) and Take Profit (TP):
- Stop Loss:
- For long positions, the SL is set at the previous bar's low.
- For short positions, the SL is set at the previous bar's high.
- Take Profit:
- TP is automatically calculated using the Risk-to-Reward Ratio (RTR) you define.
- Example: If RTR = 2, the TP will be 2x the risk distance.
4. Exit Rules:
- Positions are closed at either the stop loss or the take profit level.
- The strategy manages exits automatically to enforce disciplined risk management.
Visual Features
1. EMA Channels:
- The high and low EMAs are dynamically color-coded:
- Green: Price is above the EMA (bullish condition).
- Red: Price is below the EMA (bearish condition).
- The area between the EMAs is shaded for better visual clarity.
2. Stop Loss and Take Profit Zones:
- SL and TP levels are plotted for both long and short positions.
- Zones are filled with:
- Red: Stop Loss area.
- Green: Take Profit area.
Be sure to manage your risk and position size properly.
Max/Min LevelsHighlights highs and lows that match the search criteria. A high is considered to be broken if the candlestick breaks through its shadow
A three-candlestick pattern will match the parameters:
Candle before - 1
Candle after - 1
A five-candlestick pattern will match the parameters:
Candle before - 2
Candle after - 2
Hidden SMT Divergence ICT 01 [TradingFinder] HSMT SMC Technique🔵 Introduction
Hidden SMT Divergence, an advanced concept within the Smart Money Technique (SMT), identifies discrepancies between correlated assets by focusing on their closing prices.
Unlike the standard SMT Divergence, which uses high and low prices for analysis, Hidden SMT Divergence uncovers subtle signals by examining divergences based on the assets' closing values.
These divergences often highlight potential reversals or trend continuations, making this technique a valuable tool for traders aiming to anticipate market movements.
This approach applies across various markets and asset classes, including :
Commodities : CAPITALCOM:GOLD vs. CAPITALCOM:SILVER or BLACKBULL:BRENT vs. BLACKBULL:WTI .
Indices : NASDAQ:NDX vs. TVC:SPX vs. FX:US30 .
FOREX : FX:EURUSD vs. OANDA:GBPUSD vs. TVC:DXY (US Dollar Index).
Cryptocurrencies : BITSTAMP:BTCUSD vs. COINBASE:ETHUSD vs. KUCOIN:SOLUSDT vs. CRYPTOCAP:TOTAL3 .
Volatility Measures : FOREXCOM:XAUUSD vs. TVC:VIX (Volatility Index).
By identifying divergences within these asset groups, traders can gain actionable insights into potential market reversals or shifts in trend direction. Hidden SMT Divergence is particularly effective for pinpointing subtle market signals that traditional methods may overlook.
Bullish Hidden SMT Divergence : This divergence emerges when one asset forms a higher low, while the correlated asset creates a lower low in terms of their closing prices. It often signals weakening downward momentum and a potential reversal to the upside.
Bearish Hidden SMT Divergence : This occurs when one asset establishes a higher high, while the correlated asset forms a lower high based on their closing prices. It typically reflects declining upward momentum and a probable shift to the downside.
🔵 How to Use
The Hidden SMT Divergence indicator provides traders with a systematic approach to identify market reversals or trend continuations through divergences in closing prices between two correlated assets.
🟣 Bullish Hidden SMT Divergence
Bullish Hidden SMT Divergence occurs when the closing price of the primary asset forms a higher low, while the correlated asset creates a lower low. This pattern indicates weakening downward momentum and signals a potential reversal to the upside.
After identifying the divergence, confirm it using additional tools like support levels, volume trends, or indicators such as RSI and MACD. Enter a buy position as the price shows signs of reversal near support zones, ensuring proper risk management by placing a stop-loss below the support level.
Bearish Hidden SMT Divergence
Bearish Hidden SMT Divergence is identified when the closing price of the primary asset forms a higher high, while the correlated asset creates a lower high. This divergence suggests a weakening uptrend and a likely reversal to the downside.
Validate the signal by examining resistance levels, declining volume, or complementary indicators. Consider entering a sell position as the price starts declining from resistance levels, and set a stop-loss above the resistance zone to limit potential losses.
🔵 Setting
Second Symbol : Select the secondary asset to compare with the primary asset. By default, "XAUUSD" (Gold) is used, but it can be customized to any stock, cryptocurrency, or currency pair.
Divergence Fractal Periods : Defines the number of past candles considered for identifying divergences. The default value is 2, but traders can adjust it for greater precision.
Bullish Divergence Line : Displays a dashed line connecting the points of bullish divergence.
Bearish Divergence Line : Shows a similar line for bearish divergence points.
Bullish Divergence Label : Marks areas of bullish divergence with a "+SMT" label.
Bearish Divergence Label : Highlights bearish divergences with a "-SMT" label.
Chart Type : Choose between Line or Candle charts for enhanced visualization.
🔵 Conclusion
Hidden SMT Divergence offers traders a refined method for identifying market reversals by analyzing closing price discrepancies between correlated assets. Its ability to uncover subtle divergences makes it an essential tool for traders who aim to stay ahead of market trends.
By integrating this technique with other technical analysis tools and sound risk management, traders can enhance their decision-making process and capitalize on market opportunities with greater confidence.
Hidden SMT Divergence’s focus on closing prices ensures more precise signals, helping traders refine their strategies across various markets, including Forex, commodities, indices, and cryptocurrencies.
Its open-source nature allows for customization and verification, providing transparency and flexibility to suit diverse trading needs. Hidden SMT Divergence stands as a powerful addition to the arsenal of any trader seeking to unlock hidden opportunities in dynamic financial markets.
Fractal Trail [UAlgo]The Fractal Trail is designed to identify and utilize Williams fractals as dynamic trailing stops. This tool serves traders by marking key fractal points on the chart and leveraging them to create adaptive stop-loss trails, enhancing risk management and trade decision-making.
Williams fractals are pivotal in identifying potential reversals and critical support/resistance levels. By plotting fractals dynamically and providing configurable options, this indicator allows for personalized adjustments based on the trader's strategy.
This script integrates both visual fractal markers and adjustable trailing stops, offering insights into market trends while catering to a wide variety of trading styles and timeframes.
🔶 Key Features
Williams Fractals Identification: The indicator marks Williams Fractals on the chart, which are significant highs and lows within a specified range. These fractals are crucial for identifying potential reversal points in the market.
Dynamic Trailing Stops: The indicator generates dynamic trailing stops based on the identified fractals. These stops adjust automatically as new fractals are formed, providing a responsive and adaptive approach to risk management.
Fractal Range: Users can specify the number of bars to the left and right for analyzing fractals, allowing for flexibility in identifying significant price points.
Trail Buffer Percentage: A percentage-based safety margin can be added between the fractal price and the trailing stop, providing additional control over risk management.
Trail Invalidation Source: Users can choose whether the trailing stop flips based on candle closing prices or the extreme points (high/low) of the candles.
Alerts and Notifications: The indicator provides alerts for when the price crosses the trailing stops, as well as when new Williams Fractals are confirmed. These alerts can be customized to fit the trader's notification preferences.
🔶 Interpreting the Indicator
Fractal Markers: The triangles above and below the bars indicate Williams Fractals. These markers help traders identify potential reversal points in the market.
Trailing Stops: The dynamic trailing stops are plotted as lines on the chart. These lines adjust based on the latest identified fractals, providing a visual representation of potential support and resistance levels.
Fill Colors: The optional fill colors between the trailing stops and the price action help traders quickly identify the current trend and potential pullback zones.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Double Top/Bottom [AlgoAlpha]Introducing the Double Top/Bottom Indicator by AlgoAlpha, a powerful tool designed to identify key reversal patterns in the market with precision. This indicator meticulously detects double tops and double bottoms, helping traders recognize potential trend reversals and make informed trading decisions.
Key Features:
🔍 Pattern Detection : Accurately identifies double top and double bottom formations based on customizable time horizons.
🎨 Customizable Appearance : Choose your preferred colors for bullish and bearish trends to match your trading style.
📊 Signal Labels : Option to display only the second pivot of the double top/bottom for a cleaner chart view.
🔧 Flexible Settings : Adjust the time horizon to control the look-back period, allowing for detection of both short-term and long-term patterns.
📈 Visual Enhancements : Draws trend lines and fills between pivotal points to visually highlight potential reversal zones.
🔔 Alerts : Set up alerts for potential double top and double bottom formations to stay informed of key market movements.
How to Use the Double Top/Bottom Indicator :
🛠 Add the Indicator : Simply add the Double Top/Bottom Indicator to your TradingView chart from your favorites. Customize the time horizon and appearance settings to fit your trading preferences.
📊 Analyze Patterns : Watch for the identified double top and double bottom patterns along with the corresponding trend lines and filled areas to anticipate potential market reversals.
🔔 Set Alerts : Enable alerts to receive notifications when double top or double bottom patterns are detected, ensuring you never miss a critical trading opportunity.
How It Works : The indicator scans the price action for pivot highs and lows within a specified time horizon, identifying potential double top and double bottom patterns. It maintains a sequence of these pivots and verifies the formation of these patterns based on the relationship between consecutive pivots and the proximity to a defined limit. When a double top or double bottom is confirmed, the indicator marks the second pivot point with a label and draws trend lines to visualize the reversal pattern. Additionally, it provides alert conditions to notify traders of potential confirmations, enhancing decision-making without cluttering the chart.
⚠️ Important Reminder : The labels indicating double tops and bottoms appear with a delay and are intended to mark the formations after they have already formed. They are not meant to be used as real-time trading signals. While they align perfectly with pivot points in hindsight, please use them as markers for analysis rather than immediate trading triggers.