Liquidity Sweep Reentry ToolkitHere’s a clear breakdown of what your Liquidity Sweep Reentry Toolkit script does, and how you can use it on your charts:
🔎 Script Breakdown
1. Visual Controls (Inputs)
• : Master toggle to turn all visuals on/off.
• : Show labels when a liquidity sweep + ChoCh condition occurs.
• : Plot green/red triangles for bullish/bearish reentry signals.
• : Prevent multiple signals within the same swing.
• : Show HH/HL/LL/LH market structure letters.
• : Slider to adjust how dim the background of HH/HL/LL/LH labels appear.
2. Core Conditions
• Defines simple bullish () and bearish () candles.
• is a placeholder for your Change of Character logic.
3. Sweep Detection
• : Detects when price makes a new high compared to the last 5 bars.
• : Detects when price makes a new low compared to the last 5 bars.
4. Restriction Flags
• Tracks whether a sweep signal has already triggered in the current swing.
• Resets when sweeps end, so new signals can appear.
5. Composite Triggers
• : Fires when bullish candle + buy-side sweep + ChoCh condition align.
• : Fires when bearish candle + sell-side sweep + ChoCh condition align.
6. Visual Labels
• Gold labels mark “BS Sweep + ChoCh” or “SS Sweep + ChoCh” events.
• Green triangle below bar = bullish reentry.
• Red triangle above bar = bearish reentry.
• Blue HH/HL/LL/LH labels narrate market structure pivots, with adjustable transparency.
7. Alerts
• Alerts can be set for bullish or bearish sweep reentry triggers, so you get notified when conditions align.
📘 How to Use It
1. Apply to Chart
Add the script to your TradingView chart (works best on intraday timeframes like 5‑minute).
2. Configure Visuals
• Use the Visual Controls panel to toggle features on/off.
• Adjust the Label Transparency slider to dim or brighten the HH/HL/LL/LH labels.
3. Interpret Signals
• Gold labels show when a sweep + ChoCh condition occurs.
• Triangles mark potential reentry points (green = bullish, red = bearish).
• HH/HL/LL/LH labels narrate market structure shifts for clarity.
4. Set Alerts
• Use the built‑in alert conditions to get notified when bullish or bearish sweep reentry triggers fire.
👉 In short: this toolkit helps you spot liquidity sweeps, confirm with ChoCh, and visualize reentry signals, while also narrating market structure pivots. It’s modular, so you can toggle features depending on how much visual clutter you want.
🛠 Workflow Example
1. Setup
• Apply the script to your chart (e.g., 5‑minute S&P futures).
• In the indicator settings, decide which visuals you want:
• Turn on Sweep + ChoCh labels if you want to see gold tags narrating liquidity events.
• Keep Entry triangles on to highlight actionable reentry points.
• Adjust the Label Transparency slider so HH/HL/LL/LH structure labels are dim enough not to clutter.
2. Watch for Sweeps
• As price pushes above recent highs → a Buy‑side Sweep is detected.
• As price dips below recent lows → a Sell‑side Sweep is detected.
• If ChoCh logic is true at the same time, you’ll see a gold label (“BS Sweep + ChoCh” or “SS Sweep + ChoCh”).
3. Confirm Reentry
• If conditions align (bullish candle + buy‑side sweep + ChoCh), you’ll see a green triangle below the bar.
• If bearish candle + sell‑side sweep + ChoCh, you’ll see a red triangle above the bar.
• These triangles are your potential reentry triggers.
4. Narrate Market Structure
• HH/HL/LL/LH labels appear at pivots, giving you a running commentary of structure shifts.
• Example: HH → HL → HH shows bullish continuation; LH → LL → LH shows bearish pressure.
• Use the transparency slider to keep these labels subtle but visible.
5. Alerts
• Set alerts for “Bullish Sweep Reentry” or “Bearish Sweep Reentry” so you don’t miss signals even if you’re away from the screen.
📘 How to Use in Practice
• Intraday trading: On a 5‑minute chart, use the toolkit to spot liquidity grabs and confirm reentry points.
• Narration: The HH/HL/LL/LH labels help you keep track of structure without manually marking pivots.
• Decision making: Gold labels + triangles = potential trade setups. Structure labels = context for trend bias.
• Customization: Dim labels when you want a cleaner chart, brighten them when you’re focused on structure.
👉 In short: this script gives you a modular toolkit — sweeps, ChoCh confirmation, reentry signals, and structure narration — all adjustable so you can tailor the visuals to your workflow.
📈 Bullish Scenario Walkthrough
1. Market Context
• You’re watching the 5‑minute chart.
• Price has been consolidating near recent highs, building liquidity above.
2. Liquidity Sweep
• Price spikes above the prior swing high → the script detects a buy‑side sweep.
• A gold label appears: “BS Sweep + ChoCh” (if your ChoCh condition is true).
3. Change of Character (ChoCh)
• The candle closes bullish ().
• Your ChoCh condition confirms a structural shift.
• Together, sweep + ChoCh = potential reentry setup.
4. Reentry Trigger
• The script plots a green triangle below the bar.
• This marks a bullish sweep reentry signal: price grabbed liquidity and is now showing strength.
5. Market Structure Narration
• At the same time, the HH/HL labels update:
• The sweep bar prints a new HH.
• The next pivot low prints an HL.
• This narrates bullish continuation: HH → HL → HH.
6. Trade Decision
• You can use the green triangle as your entry cue.
• The HH/HL narration gives you confidence that structure supports the trade.
• Alerts can be set so you don’t miss the trigger.
7. Risk Management
• Stop placement: below the HL pivot or sweep low.
• Target: next liquidity pool above, or measured move.
🧭 How to Use This in Practice
• Gold label = liquidity event + ChoCh confirmation.
• Green triangle = actionable bullish reentry trigger.
• HH/HL narration = context for trend bias and trade management.
• Transparency slider = keep structure labels subtle so the chart stays clean.
📉 Bearish Scenario Walkthrough
1. Market Context
• You’re watching the 5‑minute chart.
• Price has been consolidating near recent lows, building liquidity underneath.
2. Liquidity Sweep
• Price spikes below the prior swing low → the script detects a sell‑side sweep.
• A gold label appears: “SS Sweep + ChoCh” (if your ChoCh condition is true).
3. Change of Character (ChoCh)
• The candle closes bearish ().
• Your ChoCh condition confirms a structural shift.
• Together, sweep + ChoCh = potential bearish reentry setup.
4. Reentry Trigger
• The script plots a red triangle above the bar.
• This marks a bearish sweep reentry signal: price grabbed liquidity below and is now showing weakness.
5. Market Structure Narration
• At the same time, the LH/LL labels update:
• The sweep bar prints a new LL.
• The next pivot high prints a LH.
• This narrates bearish continuation: LH → LL → LH.
6. Trade Decision
• You can use the red triangle as your entry cue.
• The LH/LL narration gives you confidence that structure supports the short.
• Alerts can be set so you don’t miss the trigger.
7. Risk Management
• Stop placement: above the LH pivot or sweep high.
• Target: next liquidity pool below, or measured move.
🧭 How to Use This in Practice
• Gold label = liquidity event + ChoCh confirmation.
• Red triangle = actionable bearish reentry trigger.
• LH/LL narration = context for trend bias and trade management.
• Transparency slider = keep structure labels subtle so the chart stays clean.
نماذج فنيه
ETIQUETAS 5M.This is the best way to determinate interval from five minutes to 1 minute in that time range of 9:25 am to 4:15 pm. you can know how to enter or exit trading action.
DZDZ – Pivot Demand Zones + Trend Filter + Breadth Override + SL is a structured accumulation indicator built to identify high-probability demand areas after valid pullbacks.
The script creates **Demand Zones (DZ)** by pairing **pivot troughs (local lows)** with later **pivot peaks (local highs)**, requiring a minimum **ATR (Average True Range)** gap to confirm real price displacement. Zones are drawn only when market structure confirms strength through a **trend filter** (a required number of higher highs over a recent window) or a **breadth override**, which activates after unusually large expansion candles measured as a percentage move from the prior close.
In addition to pivots, the script detects **coiling price action**—tight trading ranges contained within an ATR band—and treats these as alternative demand bases.
Entries require price to penetrate a defined depth into the zone, preventing shallow reactions. After the first valid entry, a **DCA (Dollar-Cost Averaging)** system adds buys every 10 bars while trend or breadth conditions persist. A **ratcheting SL (Stop-Loss)** tightens upward only, using demand structure or ATR when zones are unavailable.
The focus is disciplined, volatility-aware accumulation aligned with structure.
NY LONDON LUNCH AUTO**NY London Lunch Auto** is a precision session-anchor indicator designed for traders who focus on institutional timing and liquidity behavior.
This script automatically marks the **high and low of three key 15-minute New York session candles**:
• **3:00 AM NY** — London session expansion
• **8:00 AM NY** — New York open / kill zone
• **2:00 PM NY** — NY lunch / power hour transition
Each time one of these candles prints on the **15-minute chart**, the script captures its exact high and low and extends them forward as horizontal levels.
The levels remain **locked and unchanged** until the next key session candle appears, ensuring clean, non-repainting reference zones.
### Key Features
• Works **exclusively on the 15-minute timeframe**
• Automatically updates at **3AM, 8AM, and 2PM NY time**
• Levels stay fixed — no drifting or recalculation
• Clean, minimal design with customizable colors
• Ideal for liquidity sweeps, displacement, and ICT-style execution models
This indicator is built for traders who want **clarity, patience, and structure**, not clutter. It pairs seamlessly with liquidity sweep, displacement, and fair value gap strategies.
Timeframe Overlay 24HrDaily High–Low Box (00:00–23:59)
This indicator highlights each trading day with a shaded box spanning from 00:00 to 23:59 (based on the selected timezone) and covering the day’s highest and lowest price.
• Green box when the day closes above its open
• Red box when the day closes below its open
• Historical days are fully drawn for easy comparison
• Current day box builds dynamically as new candles form
Useful for visualising daily range, market bias, and intraday structure across all timeframes.
MA20 ATR Trend Failure FilterA volatility-adaptive filter designed to identify early trend invalidation.
This indicator combines a 20-period Moving Average (MA20) with Average True Range (ATR) to dynamically define a lower volatility boundary.
When price closes below this boundary, it signals that the current trend is no longer valid and risk is increasing.
Core Concept(核心思想)
MA defines the trend baseline
ATR measures current market volatility
MA − k × ATR forms a dynamic risk threshold
A close below this threshold = trend failure
👉 中文补充:
这不是反转指标,而是趋势失效过滤器,用于避免在趋势已经被破坏后继续持仓或加仓。
How It Works
Calculate MA20 as the trend reference
Calculate ATR(14) as volatility proxy
Build adaptive bands:
Upper Band = MA20 + k × ATR
Lower Band = MA20 − k × ATR
If close < Lower Band, trend is considered failed
The ATR multiplier k automatically adjusts the tolerance based on volatility, avoiding rigid fixed-percentage rules.
Visual Elements
Yellow line: MA20
Green band: MA20 + k × ATR
Red band: MA20 − k × ATR (key risk boundary)
Red triangle + “FAIL” label: Trend failure signal
Optional background shading to highlight risk zones
Typical Use Cases
Trend-following strategies (exit / reduce exposure)
Breakout strategies (filter false continuation)
Risk management overlay (non-intrusive, no repaint)
Combine with HMA, SuperTrend, structure-based entries
👉 中文补充:
非常适合作为**“不该再拿”的客观判断条件**,而不是频繁交易信号。
Why This Indicator
Volatility-adaptive (ATR-based)
No future data, no repaint
Simple logic, strong risk control
Works across stocks, crypto, futures, indices
This tool is designed to answer one question only:
Is the current trend still valid?
Parameters
MA Length (default: 20)
ATR Length (default: 14)
ATR Multiplier k (default: 0.8)
Lower k → stricter risk control
Higher k → more tolerance, fewer false signals SSE:600595
ARVEXV1“Failed Reversal – Opposite Candle Only (No Doji/Hammer/Hanging Man)”:
This strategy captures failed reversal attempts where the current candle is opposite to the previous candle and volume is higher. It enters long if a bearish candle fails to break a previous bullish candle’s low, and short if a bullish candle fails to break a previous bearish candle’s high. Signals are canceled for Doji, Hammer, or Hanging Man candles. Entries only, fully backtestable.
Harmonic Patterns (Experimental) [Kodexius]Harmonic Patterns (Experimental) is a multi pattern harmonic geometry scanner that automatically detects, validates, and draws classic harmonic structures directly on your chart. The script continuously builds a pivot map (swing highs and swing lows), then evaluates the most recent pivot sequence against a library of harmonic ratio templates such as Gartley, Bat, Deep Bat, Butterfly, Crab, Deep Crab, Cypher, Shark, Alt Shark, 5-0, AB=CD, and 3 Drives.
Unlike simple “pattern exists / pattern doesn’t exist” indicators, this version scores candidates by accuracy . Each pattern includes “ideal” ratio targets, and the script computes a total error score by measuring how far the observed ratios deviate from the ideal. When multiple patterns could match the same pivot structure, the script selects the best match (lowest total error) and displays that one. This reduces clutter and makes the output more practical in real market conditions where many ratio ranges overlap.
The end result is a clean, information rich visualization of harmonic opportunities that is:
-Pivot based and swing aware
-Ratio validated with configurable tolerance
-Direction filtered (bullish, bearish, or both)
-Ranked by accuracy to prefer higher quality matches
Note: This is an experimental pattern engine intended for research, confluence and chart study. Harmonic patterns are probabilistic and can fail often. Always combine with your own risk management and confirmation tools.
🔹 Features
🔸Pivot Detection
The script uses pivot functions to detect structural turning points:
-Pivot Left Bars controls how many bars must exist on the left of the pivot
-Pivot Right Bars controls confirmation delay on the right (smaller value reacts faster)
Additionally, a Min Swing Distance (%) filter can ignore tiny swings to reduce noise. Pivots are stored separately for highs and lows and capped by Max Pivots to Store to keep the script efficient.
🔸Pattern Library (XABCD and Beyond)
Supported structures include:
-Gartley, Bat, Deep Bat, Butterfly, Crab, Deep Crab
-Cypher (uses XC extension and CD retracement logic)
-Shark and Alt Shark (0-X-A-B-C mapping)
-5-0 (AB and BC extensions with CD retracement)
-AB=CD (symmetry and proportionality checks)
-3 Drives (6 point structure, drive and retracement ratios)
Each pattern is defined by ratio ranges and also “ideal” ratio targets used for scoring.
🔸 Pattern Fibonacci Rules (Detailed Ratio Definitions)
This script validates each harmonic template by measuring a small set of Fibonacci relationships between the legs of the pattern. All measurements are computed using absolute price distance (so the ratios are direction independent), and then a directional sanity check ensures the geometry is positioned correctly for bullish or bearish cases.
How ratios are measured
Most patterns in this script use the standard X A B C D harmonic structure. Four ratios are evaluated:
1) XB retracement of XA
This measures how much price retraces from A back toward X when forming point B .
xbRatio = |B - A| / |A - X|
2) AC retracement of AB
This measures how much point C retraces the AB leg.
acRatio = |C - B| / |B - A|
3) BD extension of BC
This measures the “drive” from C into D relative to the BC leg.
bdRatio = |D - C| / |C - B|
4) XD retracement of XA
This is the most important “completion” ratio in many patterns. It measures where D lands relative to the original XA swing.
xdRatio = |D - A| / |A - X|
Important: the script applies a user defined Fibonacci Tolerance to each accepted range, meaning the pattern can still pass even if ratios are slightly off from the textbook values.
🔸 XABCD Pattern Ratio Templates
Below are the exact ratio rules used by the templates in this script.
Gartley
-XB must be ~0.618 of XA
-AC must be between 0.382 and 0.886 of AB
-BD must be between 1.272 and 1.618 extension of BC
-XD must be ~0.786 of XA
In practice, Gartley is a “non extension” structure, meaning D usually remains inside the X boundary .
Bat
-XB between 0.382 and 0.50 of XA
-AC between 0.382 and 0.886 of AB
-BD between 1.618 and 2.618 of BC
-XD ~0.886 of XA
Bat patterns typically complete deeper than Gartley and often create a sharper reaction at D.
Deep Bat
-XB ~0.886 of XA
-AC between 0.382 and 0.886 of AB
-BD between 1.618 and 2.618 of BC
-XD ~0.886 of XA
Deep Bat uses the same completion zone as Bat, but requires a much deeper B point.
Butterfly
-XB ~0.786 of XA
-AC between 0.382 and 0.886 of AB
-BD between 1.618 and 2.618 of BC
-XD between 1.272 and 1.618 of XA
Butterfly is an extension pattern . That means D is expected to break beyond X (in the completion direction).
Crab
-XB between 0.382 and 0.618 of XA
-AC between 0.382 and 0.886 of AB
-BD between 2.24 and 3.618 of BC
-XD ~1.618 of XA
Crab is also an extension pattern . It often produces a very deep D completion and a strong reaction zone.
Deep Crab
-XB ~0.886 of XA
-AC between 0.382 and 0.886 of AB
-BD between 2.0 and 3.618 of BC
-XD ~1.618 of XA
Deep Crab combines a deep B point with a strong XA extension completion.
🔸 Cypher Fibonacci Rules (XC Based)
Cypher is not validated with the same four ratios as XABCD patterns. Instead it uses an XC based completion model:
1) B as a retracement of XA
xb = |B - A| / |A - X| // AB/XA
Must be between 0.382 and 0.618 .
2) C as an extension from X relative to XA
xc = |C - X| / |A - X| // XC/XA
Must be between 1.272 and 1.414 .
3) D as a retracement of XC
xd = |D - C| / |C - X| // CD/XC
Must be ~ 0.786 .
This makes Cypher structurally different: the “completion” is defined as a retracement of the entire XC leg, not XA.
🔸 Shark and Alt Shark Fibonacci Rules (0-X-A-B-C Mapping)
Shark patterns are commonly defined as 0 X A B C . In this script the pivots are mapped like this:
0 = pX, X = pA, A = pB, B = pC, C = pD
So the final pivot (stored as pD) is labeled as C on the chart.
Three ratios are validated:
1) AB relative to XA
ab_xa = |B - A| / |A - X|
Must be between 1.13 and 1.618 .
2) BC relative to AB
bc_ab = |C - B| / |B - A|
Must be between 1.618 and 2.24 .
3) OC relative to OX
oc_ox = |C - 0| / |X - 0|
For Shark it must be between 0.886 and 1.13 .
For Alt Shark it must be between 1.13 and 1.618 (a deeper / more extended completion).
🔸 5-0 Fibonacci Rules
5-0 is validated as a sequence of extensions and then a fixed retracement:
1) AB extension of XA
ab_xa = |B - A| / |A - X|
Must be between 1.13 and 1.618 .
2) BC extension of AB
bc_ab = |C - B| / |B - A|
Must be between 1.618 and 2.24 .
3) CD retracement of BC
cd_bc = |D - C| / |C - B|
Must be approximately 0.50 .
Note that for 5-0 the script does not rely on an XA completion ratio like 0.786 or 1.618. The defining completion is the 0.5 retracement of BC.
🔸 AB=CD Fibonacci Rules
AB=CD is a symmetry pattern and is treated differently from the harmonic templates:
1) AB and CD length symmetry
The script checks if CD is approximately equal to AB within tolerance.
2) BC proportion
BC/AB is expected to fall in a common Fibonacci retracement zone:
-approximately 0.618 to 0.786 (with a looser tolerance in code)
3) CD/BC expansion
CD/BC is expected to be an expansion ratio:
-approximately 1.272 to 1.618 (also with a looser tolerance)
This allows the script to capture both classic equal leg AB=CD and common “expanded” variations.
🔸 3 Drives Fibonacci Rules (6 Point Structure)
3 Drives is a 6 point structure and is validated using retracement ratios and extension ratios:
Retracement rules
Retracement 1 must be between 0.618 and 0.786 of Drive 1
Retracement 2 must be between 0.618 and 0.786 of Drive 2
Extension rules
Drive 2 must be between 1.272 and 1.618 of Retracement 1
Drive 3 must be between 1.272 and 1.618 of Retracement 2
This pattern is meant to capture rhythm and proportional repetition rather than a single XA completion ratio.
🔸 Why the script can show “ratio labels” on legs
If you enable Show Fibonacci Values on Legs , the script prints the measured ratios near the midpoint of each leg (or diagonal, depending on pattern type). This makes it easy to visually confirm:
-Which ratios caused the pattern to pass
-How close the structure is to ideal harmonic values
-Why one template was preferred over another via the accuracy score
🔸 Fibonacci Tolerance Control
All ratio checks use a single tolerance input (percentage). This tolerance expands or contracts the acceptable ratio ranges, letting you decide whether you want:
-Tight, high precision matches (lower tolerance)
-Broader, more frequent matches (higher tolerance)
🔸 Direction Filter (Bullish Only / Bearish Only / Both)
You can restrict scanning to bullish patterns, bearish patterns, or allow both. This is useful if you are aligning with higher timeframe bias or only trading one side of the market.
🔸 Best Match Selection (Anti Clutter Logic)
When a new pivot confirms, the script evaluates all enabled patterns against the latest pivot sequence and keeps the one with the smallest total error score. This is especially helpful because many harmonic templates overlap in real time. Instead of drawing multiple conflicting labels, you get one “most accurate” candidate.
🔸 Clean Visual Rendering and Optional Details
The drawing system can display:
-Main structure lines (X-A-B-C-D or special mappings)
-Dashed diagonals for geometric context (XB, AC, BD, XD)
-Pattern fill to visually highlight the structure zone
-Point labels (X,A,B,C,D or 0..5 for 3 Drives, 0-X-A-B-C for Shark)
-Leg Fibonacci labels placed around midpoints for fast ratio reading
All colors (bullish and bearish line and fill) are configurable.
🔸 Pattern Spacing and Display Limits
To keep charts readable, the script includes:
-Max Patterns to Display to limit on-chart drawings
-Min Bars Between Patterns to avoid repeated signals too close together in the same direction
Older patterns are automatically deleted once the display limit is exceeded.
🔸 Alerts
When enabled, alerts trigger on new confirmed detections:
-Bullish Pattern Detected
-Bearish Pattern Detected
Alerts fire once per bar when a new pattern is confirmed by a fresh pivot.
🔹 Calculations
This section summarizes the core logic used under the hood.
1) Pivot Detection and Swing Filtering
The script confirms pivots using right side confirmation, then optionally filters them by minimum swing distance relative to the last opposite pivot.
// Pivot detection
float pHigh = ta.pivothigh(high, pivotLeftBars, pivotRightBars)
float pLow = ta.pivotlow(low, pivotLeftBars, pivotRightBars)
// Example swing distance filter (conceptual)
abs(newPivot - lastOppPivot) / lastOppPivot >= minSwingPercent
Pivots are stored in capped arrays (high pivots and low pivots), ensuring performance and stable memory usage.
2) Ratio Measurements (Retracement and Extension)
The engine measures harmonic ratios using two core helpers:
Retracement measures how much the third point retraces the previous leg.
Extension measures how much the next leg extends relative to the previous leg.
// Retracement: (p3 - p2) compared to (p2 - p1)
calcRetracement(p1, p2, p3) =>
float leg = math.abs(p2.price - p1.price)
float retr = math.abs(p3.price - p2.price)
leg != 0 ? retr / leg : na
// Extension: (p4 - p3) compared to (p3 - p2)
calcExtension(p2, p3, p4) =>
float leg = math.abs(p3.price - p2.price)
float ext = math.abs(p4.price - p3.price)
leg != 0 ? ext / leg : na
For a standard XABCD pattern the script evaluates:
-XB retracement of XA
-AC retracement of AB
-BD extension of BC
-XD retracement of XA
3) Tolerance Based Range Check
Ratio validation uses a flexible range check that expands min and max by the tolerance percent:
isInRange(value, minVal, maxVal, tolerance) =>
float tolMin = minVal * (1.0 - tolerance)
float tolMax = maxVal * (1.0 + tolerance)
value >= tolMin and value <= tolMax
This means even “fixed” ratios (like 0.786) still allow a user controlled deviation.
4) Positional Sanity Check for D (Beyond X or Not)
Some harmonic patterns require D to remain within X (non extension patterns), while others require D to break beyond X (extension patterns). The script enforces that using a boolean flag in each template.
Conceptually:
-If the pattern is an extension type, D should cross beyond X in the expected direction
-If the pattern is not extension type, D should stay on the correct side of X
This prevents visually incorrect “ratio matches” that violate the intended geometry.
5) Template Definitions (Ranges + Ideal Targets)
Every pattern includes ratio ranges plus ideal values. The ideal values are used only for scoring quality, not for pass/fail. Example concept:
-Ranges determine validity
-Ideal targets determine ranking
6) Accuracy Scoring (Total Error)
When a candidate passes all validity checks, the script computes an accuracy score by summing absolute deviations from ideal ratios:
calcError(value, ideal) =>
math.abs(value - ideal)
// Total error is the sum of the four leg errors (as available for the pattern)
totalError =
calcError(xbRatio, xbIdeal) +
calcError(acRatio, acIdeal) +
calcError(bdRatio, bdIdeal) +
calcError(xdRatio, xdIdeal)
Lower score means closer to the “textbook” harmonic proportions.
7) Best Match Resolution (Choosing One Winner)
When multiple enabled patterns match the same pivot structure, the script selects the one with the lowest totalError:
updateBest(currentBest, newCandidate) =>
result = currentBest
if not na(newCandidate)
if na(currentBest) or newCandidate.totalError < currentBest.totalError
result := newCandidate
result
This is a major practical feature because it reduces clutter and highlights the highest quality interpretation.
8) Bullish and Bearish Scanning Logic
The scanner runs when pivots confirm:
-Bullish patterns are evaluated on a newly confirmed pivot low (potential D)
-Bearish patterns are evaluated on a newly confirmed pivot high (potential D)
From that D pivot, the script searches backward through stored pivots to build a valid pivot sequence (X,A,B,C,D). If 3 Drives is enabled, it also attempts to find the extra preceding point needed for the 6 point structure.
9) Rendering: Lines, Fill, Labels, and Leg Fib Text
After detection the script draws:
-Primary legs with thicker lines
-Geometric diagonals with dashed lines (for XABCD types)
-Optional fill between selected legs to emphasize the structure area
-A summary label showing direction, pattern name, and ratios
-Optional point labels and leg ratio labels placed near midpoints
To avoid overlapping with candles, the script offsets labels using ATR:
float yOff = math.max(ta.atr(14) * 0.15, syminfo.mintick * 10)
10) Pattern Lifecycle and Cleanup
To respect chart limits and keep visuals clean, the script deletes old drawings once the maximum visible patterns threshold is exceeded. This includes lines, fills, and labels.
Ribbon Cross Strategy This strategy uses a simple moving-average ribbon crossover system with a customizable entry filter. You can choose whether trades trigger near the fast or slow average, allowing flexibility in capturing early or confirmed trend moves.
It’s best suited for index trading on intraday timeframes , helping identify short-term trend reversals and continuations with clear visual cues and backtestable logic.
MTF FVG 3-candleMTF FVG 3-candle is an indicator that detects Fair Value Gaps using a 3-candle pattern on the timeframe selected in the settings. It projects FVG zones onto lower timeframes, tracks the first touch and full fill of each zone, and provides alerts.
EMA 8 / 20 / 200Created to easily use the 8/20/200 strategy.
This indicator is designed to give a clear, multi-timeframe view of trend, momentum, and structure using three exponential moving averages.
1. Trend direction (EMA 200 – pink)
The 200 EMA acts as the long-term trend filter.
Price above the 200 EMA suggests a bullish market bias.
Price below the 200 EMA suggests a bearish market bias.
Many traders avoid taking trades against this higher-timeframe direction.
2. Momentum and trade bias (EMA 20 – blue)
The 20 EMA reflects short-term momentum.
When price respects the 20 EMA in an uptrend, pullbacks often provide continuation entries.
In downtrends, the 20 EMA frequently acts as dynamic resistance.
3. Entry timing (EMA 8 – yellow)
The 8 EMA is a fast reaction line used for precise timing.
Crosses of the 8 EMA over the 20 EMA can signal momentum shifts.
Strong trends often show price holding above (or below) the 8 EMA during impulse moves.
4. Confluence and trade filtering
The indicator works best when the EMAs are aligned:
Bullish alignment: EMA 8 > EMA 20 > EMA 200
Bearish alignment: EMA 8 < EMA 20 < EMA 200
Misaligned EMAs usually indicate consolidation or low-probability conditions.
5. Risk management context
EMAs can act as dynamic support and resistance:
Stops are often placed beyond the 20 EMA or 200 EMA depending on trade horizon.
Loss of EMA structure is a warning sign that the trend may be weakening.
In short, the indicator is a trend-first, momentum-second framework that helps you decide when to trade, in which direction, and when to stay out.
NQ Key Levels [EOY 2025]Key Price Levels to Watch
| Level | Type | Significance |
|---|---|---|
| 26,000 | Psychological Target | The "round number" magnet for the End of Year (EOY) close. |
| 25,835 | Major Resistance | The recent high from Dec 10. A break above this signals the Santa Rally is live. |
| 25,196 | Current Price | Friday's close. We are in "no man's land" here. |
| 25,000 | Critical Support | A psychological floor. If NQ breaks below this next week, the bullish thesis weakens. |
| 24,800 | Trend Defense | The "line in the sand." Bulls must defend this level to keep the uptrend intact. |
Projected Path for NQ (Dec 15 – Dec 31, 2025)
Dec 15–17 (Mon-Wed): Market tests support at 25,000. If it holds, buyers will step in.
Dec 18–19 (Thu-Fri): Erratic price action due to Triple Witching expiry. Avoid heavy leverage here.
Dec 22–31: Volume drops, but directional bias turns UP. The path of least resistance will be higher as sellers leave for the holidays.
Multi-Trend + Credit Risk DashboardHello This is showing 20,50,200 as well as some other useful indicators. hope you like it, its my first! D and P is discount or premium to nav
HydraBot v1.2 publicenglish description english description english description english description english description english description english description english description english description
Sustained 200 SMA Cross (Locked to Daily)For individuals looking to track trend changes against the 200 day simple moving average. We are measuring 5 consecutive days changing from the above or below the 200 day SMA as a flag for a potential shift in trend.
Fish vs Shark Vote Dashboard (6 Signals)very simple dashboard align with fish and shark market votes 1/5 2/4 etc
Day Trading MA Crossover IndicatorDay Trading MA Crossover Indicator Overview The Day Trading MA Crossover Indicator is a simple yet effective tool designed for day traders to identify potential buy and sell opportunities based on moving average crossovers. It plots two customizable moving averages on your chart and generates clear visual signals when they cross, helping you spot trend reversals or continuations in fast-paced markets.This indicator is ideal for intraday trading on lower timeframes (e.g., 5-min, 15-min charts) but can be adapted for swing trading or higher timeframes. It's built with flexibility in mind, allowing you to tweak the MA lengths and types to suit your strategy.Key FeaturesMoving Average Crossovers: Generates "BUY" signals when the fast MA crosses above the slow MA (potential bullish entry) and "SELL" signals when it crosses below (potential bearish entry or exit).
Visual Signals: Green "BUY" labels below bars for long entries and red "SELL" labels above bars for short entries or exits. Optional subtle background coloring highlights signals for quick spotting.
Customizable Parameters:Fast MA Length (default: 9): Period for the shorter moving average.
Slow MA Length (default: 21): Period for the longer moving average.
MA Type (default: EMA): Choose between SMA (Simple), EMA (Exponential), or WMA (Weighted) for different smoothing behaviors.
Overlay Mode: Plots directly on your price chart without cluttering separate panes.
Lightweight and Efficient: Minimal computation for real-time performance on TradingView.
How It WorksMoving Averages Calculation: The indicator computes two MAs based on your selected type and lengths using closing prices.
Signal Detection: A buy signal triggers on an upward crossover (fast MA > slow MA), indicating potential momentum shift to the upside. A sell signal triggers on a downward crossunder (fast MA < slow MA), signaling possible downside momentum.
Visual Aids: Signals appear as labeled shapes with optional background tints to emphasize key bars.
Usage TipsFor Day Trading: Apply on volatile instruments like forex pairs, stocks, or crypto. Combine with support/resistance levels or other indicators (e.g., RSI for overbought/oversold confirmation) to filter false signals in ranging markets.
Backtesting: Test on historical data to optimize MA lengths for your asset—shorter periods for aggressive trading, longer for smoother trends.
Risk Management: Always use stop-losses and position sizing. Signals are not foolproof and work best in trending conditions.
Customization: Adjust inputs via the indicator settings panel after adding it to your chart.
Example SetupOn a 5-min EUR/USD chart: Use EMA (9/21) for quick crossovers. Look for buy signals above key support with increasing volume.
Avoid choppy markets where frequent false crossovers ("whipsaws") can occur.
This indicator is provided for educational and informational purposes only. It is not financial advice, and past performance does not guarantee future results. Trading involves risk; consult a professional advisor before using any strategy. If you have feedback or suggestions for improvements, feel free to comment!
ICT Candle Reading PROICT Candle Reading – Visual Clean
This indicator is designed to provide a clean and precise price reading, based on ICT and Smart Money Concepts, without cluttering the chart.
Its purpose is to help traders identify real institutional zones, understand market intention, and improve entry timing, using pure price action.
🔹 What does this indicator show?
🟢 Fair Value Gaps (FVG / Imbalances)
Detects market inefficiencies created by impulsive moves.
Displayed as clean and minimal boxes extended into the future.
Useful as mitigation, reaction, or continuation zones.
🟠 Liquidity Sweeps
Highlights liquidity grabs above recent highs or below recent lows.
Drawn using dashed horizontal lines.
Helps identify market manipulation before the true move.
🔵 Displacement Candles
Identifies candles with dominant bodies, showing institutional momentum.
Marked with small symbols to keep the chart clean.
Useful to confirm impulse starts or shifts in market intent.
🎯 Indicator Philosophy
❌ No lagging indicators
❌ No chart clutter
✅ Real ICT concepts
✅ Clean candle reading
✅ Suitable for scalping, intraday, and swing trading
⚙️ Customization
Each concept can be enabled or disabled individually.
Zone extension length is adjustable.
Optimized for 15M, 1H, and 4H timeframes.
📈 How to use
This indicator does not provide automatic buy/sell signals.
It is best used with:
Higher timeframe bias
Market structure
Session timing (London / New York)
Proper risk management
🧠 Final Notes
ICT Candle Reading – Visual Clean helps you see the market from an institutional perspective, focusing only on what truly matters: price, liquidity, and intent.
previous day/week high and lowsThis scrip plots the previous day high and lows, pre market high and lows, previous week high and low.
Magical Thirteen Turns - The Greedy SnakeThe number 9 appears:
Meaning: Warning signal. The rise may encounter resistance and a cautious pullback is about to begin.
Operation: Consider reducing your holdings (selling a portion) to lock in profits and avoid experiencing wild fluctuations.
The number 13 appears:
Meaning: Strong sell signal. The upward momentum is likely to be exhausted, which is also known as "bull exhaustion".
Operation: It is recommended to liquidate your positions or significantly reduce them. Short sell (if you are trading contracts).
FreeSisters - System v1.8System v1.8
Marks out high time frame levels.
Market Structure defined by quarters theory, based on the lowest price within a 12 month period.
ARVEX V1“Failed Reversal – Opposite Candle Only (No Doji/Hammer/Hanging Man)”:
This strategy captures failed reversal attempts where the current candle is opposite to the previous candle and volume is higher. It enters long if a bearish candle fails to break a previous bullish candle’s low, and short if a bullish candle fails to break a previous bearish candle’s high. Signals are canceled for Doji, Hammer, or Hanging Man candles. Entries only, fully backtestable.
Moon Boys Dollarized VolumeStop looking at just unit volume! This script visualizes the Total USDT Volume (Volume * Close) to show you exactly how much money is being traded on every candle.
True Liquidity: See the real value behind the moves.
Better Comparisons: Compare volume accurately across assets with different prices.
Simple & Effective: A lightweight tool to spot high-capital interest instantly.
Moon Boys Podcast official indicator






















