TrendlinesTrendline S&R
This indicator is an automated technical analysis tool designed to identify the most relevant Support and Resistance (S&R) zones based on market pivots. Unlike standard pivot indicators that clutter the chart with historic lines, this script uses a "Closest-to-Price" algorithm to display only the single most relevant Support (Green) and Resistance (Red) zone currently interacting with price action.
It solves common frustrations with automated trendlines—specifically the issue of lines disappearing immediately upon a breakout—by introducing a Stability Buffer.
Key Features & Importance
The script scans hundreds of potential trendlines but only draws the one geographically closest to the current price.
Importance: This ensures you are looking at the zone that matters right now. It filters out distant or irrelevant historic lines, keeping your chart clean and focused on immediate price action.
🛡️ 5-Bar Stability Buffer (Anti-Flicker)
Feature: A hardcoded 5-bar "memory" prevents the zone from disappearing the moment price touches or breaks it.
Importance: This is critical for trading breakouts. It allows you to see the zone persist while price breaches it, helping you distinguish between a true breakout, a fakeout, or a retest, without the reference level vanishing from your screen.
🔍 Dynamic Pivot Filtering
Feature: Uses a restricted Pivot Strength (5-15) and Minimum Confirmation (2-8 touches).
Importance: By enforcing these limits, the indicator ignores insignificant market noise and micro-swings, ensuring that drawn zones represent structural market levels with genuine liquidity.
🔔 Integrated Alert System
Feature: Built-in alerts for "Zone Breakout" (candle close crossing the zone) and "Zone Touch" (wick entering the zone).
Importance: Allows you to set the indicator and walk away. You will be notified instantly when price interacts with these key levels, removing the need to stare at the chart.
📉 Adaptive Tolerance (Fixed ATR)
Feature: Uses a fixed ATR multiplier internally to determine the width of the zone.
Importance: This automatically adjusts the thickness of the support/resistance zone based on the asset's volatility.
Settings Guide
Bars to Apply: How far back in history the script looks for pivots (Default: 300).
Pivot Source: Choose between calculating from "High/Low" (wicks) or "Close" (bodies).
Pivot Strength: The number of bars required on each side to define a swing point (Range: 5–15).
Min Pivot Confirmation: The minimum number of touches required to validate a trendline (Range: 2–8).
How to Use
Add the indicator to your chart.
Adjust Pivot Strength if you want to catch smaller swings (lower number) or major structures (higher number).
Set an alert in TradingView by clicking the "Clock" icon, selecting this indicator, and choosing "Zone Breakout" or "Zone Touch".
樞軸點和水平
Range Indicator Golden Pocket, Liquidity, FairValueGapOverview
This indicator is a comprehensive institutional market structure toolkit. It is designed to identify high-probability reversal zones by merging three powerful technical analysis concepts: Fibonacci Golden Pockets (61.8% - 65%), Liquidity Pool Analysis (Swing Failure Patterns), and Fair Value Gaps (FVG). By automating the detection of price inefficiencies and "stop runs," it helps traders navigate complex price action with objective, rule-based confirmation.
What the Script Does
The script continuously monitors a user-defined lookback period to define a trading range. Within this range, it dynamically plots:
Golden Pockets: High-confluence retracement zones (calculated as 0.35 - 0.382 internal range levels).
Liquidity Zones: Highlighted regions at the absolute high and low (Top/Bottom 5%) where institutional orders and retail stops are typically concentrated.
Swing Failure Patterns (SFP): Real-time detection of liquidity grabs where price breaches a range extreme but fails to close outside, signaling a potential trap.
Fair Value Gaps (FVG): Visualizes 3-candle price imbalances, showing areas of aggressive buying or selling that often act as future magnets or support/resistance.
2-Candle Confirmation: A momentum-based filter requiring a candle-close confirmation before a reversal signal is generated.
For Whom is it?
Smart Money Concepts (SMC) & ICT Students: Traders looking for automated liquidity sweeps and market inefficiencies.
Fibonacci & Mean Reversion Traders: Those seeking a clean, professional visualization of the Golden Pocket across multiple timeframes.
Systematic Day Traders: Who require strict price-action confirmation (SFP and 2-candle rules) to remove emotional bias from their entries.
Functions and Input Options
1. Market Structure & Visuals
Lookback Period (Default: 100): Defines the window for calculating the range extremes.
Box Offset Right (Default: 50): Extends all zones into the future for better anticipatory trading.
Show Price Lines & Labels: Displays the exact price for every zone boundary on the right axis for precise execution.
2. Fair Value Gap (FVG) Settings
Show Fair Value Gaps: A toggle to enable/disable the plotting of price imbalances.
FVG Extension (Default: 10): Determines how many bars into the future the FVG box remains visible.
Custom Colors: Separate color inputs for Bullish (Gap Up) and Bearish (Gap Down) inefficiencies.
3. Professional Alert System
The script includes five specific alert conditions:
GP Touch: Early warning when price enters a Golden Pocket.
2-Candle Pattern: Confirmed momentum shift within a Golden Pocket.
SFP Long/Short: Alerts when a Liquidity Grab (Swing Failure) is confirmed at the range high or low.
Transparency and Compliance (Moderator Info)
Non-Repainting Logic: All signals (SFP, 2-Candle, and FVG) are calculated and triggered based on confirmed candle closes. Drawings use barstate.islast purely for visual efficiency without altering historical data integrity.
Educational Context: The script visualizes well-known market principles (Fibonacci, SFPs, and FVGs) to aid traders in their analysis; it does not provide automated financial advice or "black-box" buy/sell signals.
Resource Management: Optimized for Pine Script v5, using efficient array and box handling to ensure smooth performance even on lower timeframes.
Alg0 Hal0 Peekab00 WindowDescription: Alg0 Hal0 Peekaboo Window
The Alg0 Hal0 Peekaboo Window is a specialized volatility and breakout tracking tool designed to isolate price action within a specific rolling time window. By defining a custom lookback period (defaulting to 4.5 hours), this indicator identifies the "Peekaboo Window"—the high and low range established during that time—and provides real-time visual alerts when price "peeks" outside of that established zone.
This tool is particularly effective for intraday traders who look for volatility contraction (ranges) followed by expansion (breakouts).
How It Works
The indicator dynamically calculates the highest high and lowest low over a user-defined hourly duration. Unlike static daily ranges, the Peekaboo Window moves with the price, providing a "rolling" zone of support and resistance based on recent market history.
Key Features
Rolling Lookback Window: Define your duration in hours (e.g., 4.5h) to capture specific session cycles.
Dynamic Visual Range: High and low levels are automatically plotted and filled with a background color for instant visual recognition of the "value area."
Peak Markers: Small diamond markers identify exactly where the local peaks and valleys were formed within your window.
Breakout Signals: Triangle markers trigger the moment price closes outside the window, signaling a potential trend continuation or reversal.
Unified Alerting: Integrated alert logic notifies you the second a breakout occurs, including the exact price level of the breach.
How to Use the Peekaboo Window
1. Identify the "Squeeze"
When the Peekaboo Window (the shaded area) begins to narrow or "flatten," it indicates the market is entering a period of consolidation. During this time, price is contained within the green (High) and red (Low) lines.
2. Trading Breakouts
The primary signal occurs when a Breakout Triangle appears:
Green Triangle Up: Price has closed above the window's resistance. Look for long entries or a continuation of bullish momentum.
Red Triangle Down: Price has closed below the window's support. Look for short entries or a continuation of bearish momentum.
3. Support & Resistance Rejections
The yellow diamond Peak Markers show you where the market has previously struggled to move further. If the price approaches these levels again without a breakout signal, they can serve as high-probability areas for mean-reversion trades (trading back toward the center of the window).
4. Customizing Your Strategy
Scalping: Lower the Lookback Duration (e.g., 1.5 hours) to catch micro-breakouts.
Swing/Intraday: Keep the default 4.5 hours or increase it to 8+ hours to capture major session ranges (like the London or New York opens).
Settings Overview
Lookback Duration: Set the "width" of your window in hours.
Window Area Fill: Customize the color and transparency of the range background.
Line Customization: Adjust the thickness and style (Solid/Dashed/Dotted) of the boundary lines.
Breakout Markers: Toggle the visibility of the triangles and diamonds to keep your chart clean.
Wickless Unvisited Levels (by TheActualSnail)Wickless Unvisited Levels (by TheActualSnail)
Description:
This indicator identifies “wickless” candles—candles without upper or lower shadows—and plots the corresponding unvisited price levels on your chart. Bullish wickless candles (where open = low) mark potential support levels, while bearish wickless candles (where open = high) mark potential resistance levels. These levels are dynamic: once price revisits them, the lines are automatically removed.
How to Use:
Wickless levels are often revisited and “repaired” by the market, meaning they act as temporary support or resistance.
Use these levels in confluence with other technical tools, such as trendlines, moving averages, or oscillators, for higher probability setups.
You can visually track unvisited areas of the chart where price may react in the future.
Important:
This indicator is for educational purposes only and is not financial advice. Always combine it with your own analysis and risk management.
Trading solely based on wickless levels is not recommended; they should be part of a broader strategy.
Inputs:
Bullish Wickless Color: green
Bearish Wickless Color: red
Line Width: adjustable
Show Price Label: toggle on/off
BK AK-Crosswind Falcon🦅👑 BK AK–Crosswind Falcon (Falcon) 👑🦅
All glory to Gd — the true source of wisdom, restraint, and right timing.
AK is honor — my mentor’s standard: clarity, patience, no shortcuts, no gambling.
Falcon is a DMI/ADX “Zenith” engine built to do one thing clean: separate real wind from fake wind.
🧠 What It Is
Falcon is a non-overlay oscillator that converts classic +DI / -DI / ADX into a single signed momentum line called Zenith.
You get:
Instant Bias (no neutral): flips exactly when +DI crosses -DI
Regime Detection: TREND vs RANGE using an ADX threshold
Zenith Signal Crosses: EMA cross logic for controlled triggers
Bands / Extremes: dynamic (stdev) or static bands for stretch/exhaustion context
Execution Gates (optional): VWAP position + swing-break confirmation
MTF Bias (optional): higher-timeframe sign filter
Tiny HUD: a compact table with regime, bias, ADX, Zenith, velocity/accel, exhaustion + master score
Alerts: long/short triggers + regime switch
⚙️ The Zenith Core (How the line is built)
Falcon uses classic DMI:
diff = +DI − -DI
ADX = trend strength (smoothed)
Zenith has 3 formula options:
DI Spread × ADX (default)
→ directional DI spread “weighted” by trend strength
ADX Signed
→ ADX with direction sign from DI dominance
DX Signed
→ signed DX for a more “raw” directional read
Signal line: EMA of Zenith (Zenith Signal EMA).
🎯 What Prints Signals (Permission Logic)
Falcon only triggers when trend is ON and direction is aligned:
Long requires:
TREND regime (ADX ≥ threshold)
Bull bias (DI dominance: diff ≥ 0)
Zenith crosses above Signal
Optional gates pass (VWAP / swing break)
Optional HTF filter agrees (Zenith ≥ 0 on HTF)
Short requires:
TREND regime (ADX ≥ threshold)
Bear bias (diff < 0)
Zenith crosses below Signal
Optional gates pass (VWAP / swing break)
Optional HTF filter agrees (Zenith < 0 on HTF)
Key point: Color/bias flips are instant (DI dominance). Signals require trend + cross + gates.
🧱 Regime + Background (Trend vs Range)
Trend threshold (ADX) controls when Falcon considers the environment tradable.
Optional background shading:
Trend + Bull = green tint
Trend + Bear = red tint
Range = gray tint
Optional flash on regime/bias switches so you notice transitions immediately.
📏 Bands / Extremes (Context, Not Hype)
Choose:
Dynamic bands = stdev(Zenith) over lookback × multiplier
Static bands = fixed ± level
Use bands to read stretch / exhaustion risk:
Above upper band = overbought stretch (optional dot)
Below lower band = oversold stretch (optional dot)
This is not an auto-reversal call. It’s the “don’t get greedy / manage risk” layer.
🧰 Execution Gates (Optional Filters)
Falcon can require extra proof before firing:
VWAP Gate
“Above=Long” or inverse rule
Helps enforce “with the tape” positioning
Swing-Break Gate
Requires breaking prior N-bar high for long / N-bar low for short
Simple structure confirmation so crosses don’t trigger inside dead chop
MTF Bias (Higher-Timeframe Alignment)
Optional HTF Zenith sign filter
Keeps you from counter-signaling into a higher court trend
🖥 Tiny HUD (What the dashboard means)
The HUD summarizes:
REG (TREND/RANGE)
BIAS (BULL/BEAR)
ADX (strength)
ZEN (current Zenith)
VEL (Zenith velocity)
ACC (Zenith acceleration)
EXH (exhaustion flag based on extremes + reversal impulse)
M (master score: strength + momentum + accel + alignment − exhaustion penalty)
It’s designed to be one glance → one decision.
✅ Suggested Use (Clean workflow)
Start with Regime: only press when TREND is on (ADX threshold).
Respect Bias: DI dominance is the “instant truth.”
Wait for Cross: Zenith vs Signal cross is your trigger layer.
Turn on Gates if you want fewer trades: VWAP + swing break + HTF.
Use Bands for management: stretch = protect, not chase.
🔔 Alerts Included
ZEN-DMI Long (trend on + bull + cross up + gates)
ZEN-DMI Short (trend on + bear + cross down + gates)
Regime switch (Trend/Ranging change)
👑 King Solomon Lens — Proverbs: Hidden Wind, Refined Signal, Just Weight
Proverbs says the glory is in concealing a matter, and the king’s glory is searching it out. Falcon is built for that: finding the hidden wind inside the noise.
Proverbs also says remove the dross and you get a vessel — that’s your regime + filters stripping chop so only tradeable force remains.
And it’s ruthless about honest weights: Zenith is a measured weight of direction × strength, not vibes.
ZENITH: search what’s hidden, refine what’s noisy, weigh what’s real — then execute with authority.
🙏 Respect + Seal
Respect to AK — discipline, patience, clean execution.
All glory to Gd — the source of wisdom and endurance.
🦅👑 BK AK–Crosswind Falcon — read the wind, earn the move. 👑🦅
Hyperfork Matrix🔱 Hyperfork Matrix 🔱 A manual Andrews Pitchfork tool with action/reaction propagation lines and lattice matrix functionality. This indicator extends Dr. Alan Andrews' and Patrick Mikula's median line methodology by automating the projection of reaction and action lines at equidistant intervals, creating a time-price grid that highlights where pivot levels intersect the matrix.
Three pitchfork variants are supported: Original, Schiff, and Modified Schiff. Each variant adjusts the anchor point position to accommodate different trend angles.
═══════════════════════════════════════════════════════════════
█ THE METHOD
Andrews Pitchfork
Dr. Alan Andrews developed the pitchfork as a trend channel tool. The core principle: price tends to return to the median line roughly 80% of the time. When it fails to reach the median, a reversal may be developing.
A pitchfork requires three pivot points:
• Point A — The anchor (starting pivot)
• Point B — First swing in the opposite direction
• Point C — Second swing, same direction as A
The median line runs from Point A through the midpoint of B-C. Parallel lines through B and C form the channel boundaries.
Action/Reaction Principle
Based on Newton's third law ("action and reaction are equal and opposite"), this principle suggests that price movements elicit proportional reactions in the future. By projecting lines at equal intervals along the pitchfork's slope, we anticipate where these reactions may occur.
Lattice Matrix
The lattice squares pivot price levels to the matrix structure. A horizontal from your selected pivot intersects the pitchfork and propagation lines, with verticals drawn at each intersection. These verticals mark time points where price-time geometry converges—potential areas to watch for trend changes.
═══════════════════════════════════════════════════════════════
█ HOW THE INDICATOR WORKS
This section explains the calculation flow from your inputs to the final drawing.
Step 1 — Pivot Selection
You click on the chart to select three timestamps. The indicator retrieves the high or low price at each timestamp based on your starting pivot type selection:
• Starting with "Low" creates a Low-High-Low pattern
• Starting with "High" creates a High-Low-High pattern
Step 2 — Anchor Calculation
The anchor position depends on your pitchfork variant:
• Original — Anchor stays at Point A
• Schiff — Anchor shifts 50% toward B in price (Y-axis only)
• Modified Schiff — Anchor shifts 50% toward B in both time and price
Step 3 — Median Line
A line is drawn from the anchor through the midpoint of the B-C segment. This median line defines the channel's slope and center.
Step 4 — Parallel Tines
Parallel lines are drawn through Points B and C, maintaining the median line's slope. These form the upper and lower channel boundaries.
Step 5 — Extra Parallels
If configured, additional parallel lines are drawn at equal spacing beyond B and C. The spacing equals the distance from the median to each tine.
Step 6 — Handle Length
The "handle" is the segment from the anchor to the B-C midpoint. This length becomes the unit of measurement for propagation.
Step 7 — Propagation Points
Points are placed along the median line at handle-length intervals:
• Forward points extend into the future
• Backward points extend into the past
Step 8 — Reaction Lines
Through each propagation point, a line is drawn parallel to B-C (the transversal slope). These reaction lines mark time-price zones based on the original swing rhythm, where trend changes may occur.
Step 9 — Action Lines
Through each propagation point, a line is drawn parallel to A-B (the initial move slope). These action lines project the original momentum into future price zones.
Step 10 — Lattice Grid
If enabled, a horizontal line is drawn at the price level of your selected pivot. Vertical lines are then drawn at every intersection between this horizontal and the selected line type (pitchfork, reaction, or action lines).
Step 11 — Alert Monitoring
On each bar, the indicator checks if the price has crossed any of the drawn lines. Crossings trigger alerts based on your configuration.
═══════════════════════════════════════════════════════════════
█ PITCHFORK VARIANTS
Original (Andrews)
The classic pitchfork. The anchor remains at Point A. Best suited for strong trending markets where price respects steep channels.
Schiff
Named after Jerome Schiff, a student of Andrews. The anchor shifts halfway toward Point B in price only—same time position as A, but price is the midpoint of A and B.
This produces a less steep channel, better suited for:
• Shallow trends
• Corrective phases
• Markets where the original pitchfork angle is too aggressive
Modified Schiff
The anchor shifts halfway toward Point B in both time and price—positioned at the midpoint of the A-B segment.
This creates an even gentler slope than the standard Schiff variant. Use when:
• Trends are weak or ranging
• Price doesn't respect steeper channel angles
• You need a middle ground between Original and Schiff
═══════════════════════════════════════════════════════════════
█ ACTION & REACTION LINES
Reaction Lines
These run parallel to the B-C segment (the "transversal"). They represent the market's response rhythm—the swing from B to C sets a pattern that may repeat at predictable intervals.
Action Lines
These run parallel to the A-B segment (the initial impulse). They project the original momentum forward, suggesting where similar price movements may begin or end.
Forward vs Backward
• Forward Lines — Project into the future beyond the B-C midpoint
• Backward Lines — Project into the past before Point A
Most analysis focuses on forward lines, but backward lines can reveal historical confluence with past pivots.
Propagation Spacing
Lines are spaced at equal intervals defined by the handle length (anchor to B-C midpoint). This creates a rhythmic structure where each segment equals the original pitchfork's core measurement.
Action Lines
Reaction Lines
Extra Parallels with/ both Action & Reactions Line extended within the grid
═══════════════════════════════════════════════════════════════
█ LATTICE MATRIX
The lattice creates a grid overlay within the pitchfork structure.
Horizontal Line
A horizontal line is drawn at the price level of your selected pivot (A, B, or C). This squares the pivot's price level to find where it aligns with the matrix structure. These confluences may represent higher-probability reaction points in time.
Vertical Lines
Vertical lines are drawn at every point where the horizontal intersects your selected line source. These verticals mark time points—potential areas to watch for trend changes.
• Pitchfork & Parallels — Intersections with median and all parallel tines
• Action Lines — Intersections with action transversals
• Reaction Lines — Intersections with reaction transversals
• Action & Reaction — Both types combined
Envelope Clamping
Lattice lines are automatically clamped to stay within the pitchfork's channel envelope (bounded by the outermost parallels). This keeps the grid visually clean and focused on relevant areas.
═══════════════════════════════════════════════════════════════
█ ALERTS
The indicator monitors price crossings and triggers alerts when the price moves through any drawn line type.
Available Alert Types
• Pitchfork Lines — Crossing the median or any parallel
• Action Lines — Crossing any action transversal (when action lines are drawn)
• Reaction Lines — Crossing any reaction transversal (when reaction lines are drawn)
• Lattice Horizontal — Crossing the horizontal price level (when lattice is enabled)
• Any Line Crossing — Combined alert for all of the above
Setting Up Alerts
1. Right-click on the indicator or use the alert menu
2. Select "Create Alert."
3. Choose the desired condition from the dropdown
4. Configure notification preferences (pop-up, email, webhook, etc.)
Alert Timing
Alerts trigger once per bar close when a crossing is detected between the previous and current bar's close prices.
═══════════════════════════════════════════════════════════════
█ HOW TO USE
Basic Setup
1. Add the indicator to your chart
2. When prompted, click on three pivot points in sequence: A, B, C
3. Choose starting pivot type: Auto (detects pattern), Low (LHL), or High (HLH)
4. The pitchfork draws automatically
Adjusting the Pitchfork
• Change the variant (Original/Schiff/Modified Schiff) if the angle doesn't suit your trend
• Add extra parallel levels to see where price might react beyond the main channel
• Disable or Adjust price range min/max to hide parallels outside your focus area
Adding Propagation Lines
• Adjust forward offset to add/remove lines beyond auto-extend (0 = to current bar)
• Choose which line types to display: Reaction Only, Action Only, or Both
• Customize colors to distinguish line types visually
Using the Lattice
• Enable "Draw Lattice" in the Lattice settings group
• Select which pivot's price level to use for the horizontal
• Choose the intersection source that matches your analysis style
• Look for time zones where verticals cluster—these may be significant dates
Log Scale Charts
If your chart uses logarithmic scale, enable "Logarithmic Scale" in Pitchfork Settings. This ensures all calculations transform correctly for log price axes.
═══════════════════════════════════════════════════════════════
█ SETTINGS REFERENCE
1. Pivot Points
• Starting Pivot Type — Auto (detect pattern), Low (force LHL), or High (force HLH)
• Pivot A/B/C Time — Timestamps for your three pivots (click to select)
• Show Pivot Labels — Display A, B, C labels at pivot locations
• Pivot Colors — Customize high/low label colors
• Label Size — Tiny, Small, Normal, or Large
2. Pitchfork Settings
• Logarithmic Scale — Enable for log charts
• Pitchfork Type — Original, Schiff, or Modified Schiff
• Extra Parallel Levels — Additional parallels beyond B and C
• Line styling (color, width, style)
• Extend Direction — Right only or Both directions
• Enable Price Range Filter — Toggle filtering of extra parallels
• Price Range Min/Max — Hide extra parallels outside this range
3. Action / Reaction Lines
• Draw Type — None, Reaction Only, Action Only, or Both
• Forward Lines Offset — Adjust from auto-extend (0 = to current bar, positive adds more)
• Backward Lines Count — Number of lines projected before Point A
• Separate styling for reaction and action lines
4. Lattice
• Draw Lattice — Master toggle
• Select Pivot for Horizontal — A, B, or C price level
• Intersection Source — Which lines to use for vertical placement
• Lattice styling
═══════════════════════════════════════════════════════════════
█ LIMITATIONS
• Maximum 500 lines — TradingView limits line objects; complex setups with many parallels and propagation lines may approach this limit
• Manual pivot selection — Pivots must be selected manually via timestamp inputs; no auto-detection
• Log scale requires toggle — You must enable "Logarithmic Scale" manually if your chart uses log axes
• Minor visual drift — Action/Reaction lines may shift slightly when toggling between odd and even extra parallel counts (cosmetic only)
• Backward lines visibility — When adding backward propagation lines, you may need to scroll the chart left for them to render
═══════════════════════════════════════════════════════════════
█ FURTHER READING
For deeper study of pitchfork analysis and action/reaction methodology:
• Patrick Mikula's "The Best Trendline Methods of Alan Andrews and Five New Trendline Techniques"
No affiliation implied. Referenced for educational context only.
═══════════════════════════════════════════════════════════════
█ RELATED
For a video walkthrough of the Super Pitchfork methodology that inspired this indicator:
How to Build a Super Pitchfork with Reaction & Trigger Lines
This tutorial covers manual pitchfork construction, reaction line projection, and timing techniques.
Institutional Frontrunner w/ PCR & VIX - Fixed Distance LabelsUse this script to evaluate if buying or selling is indicated based on a variety of metrics surrounding momentum and volume or institutional traders.
SVE Pivot Points v5//@version=6
indicator(title="SVE Pivot Points", overlay=true, max_lines_count=500)
// Input Parameters
agg_period = input.timeframe("D", title="Aggregation period")
show_labels = input.bool(true, title="Show Labels")
line_width = input.int(1, title="Line Width", minval=1, maxval=4)
// Detect new aggregation period
bool new_agg_bar = bool(ta.change(time(agg_period)))
// Calculate how many chart bars fit in one aggregation period
get_bars_in_period(string tf) =>
tf_secs = timeframe.in_seconds(tf)
chart_secs = timeframe.in_seconds(timeframe.period)
// If aggregation period is smaller than or equal to chart timeframe, use 1 bar
// Otherwise calculate how many chart bars fit
math.max(1, int(math.ceil(tf_secs / chart_secs)))
bars_in_period = get_bars_in_period(agg_period)
// Fetch previous period's high, low, close
ph = request.security(syminfo.tickerid, agg_period, high , barmerge.gaps_off, barmerge.lookahead_on)
pl = request.security(syminfo.tickerid, agg_period, low , barmerge.gaps_off, barmerge.lookahead_on)
pc = request.security(syminfo.tickerid, agg_period, close , barmerge.gaps_off, barmerge.lookahead_on)
// Calculate pivot points
pp = (ph + pl + pc) / 3
r1 = 2 * pp - pl
r2 = pp + (ph - pl)
r3 = 2 * pp + (ph - 2 * pl)
s1 = 2 * pp - ph
s2 = pp - (ph - pl)
s3 = 2 * pp - (2 * ph - pl)
// Calculate mean levels
r1m = (pp + r1) / 2
r2m = (r1 + r2) / 2
r3m = (r2 + r3) / 2
s1m = (pp + s1) / 2
s2m = (s1 + s2) / 2
s3m = (s2 + s3) / 2
// Previous high and low
hh = ph
ll = pl
// Colors
color_r = color.red
color_s = color.green
color_pp = color.blue
color_hl = color.gray
// Arrays to store historical lines (for showing past periods)
var line lines_r3 = array.new_line()
var line lines_r3m = array.new_line()
var line lines_r2 = array.new_line()
var line lines_r2m = array.new_line()
var line lines_r1 = array.new_line()
var line lines_r1m = array.new_line()
var line lines_hh = array.new_line()
var line lines_pp = array.new_line()
var line lines_ll = array.new_line()
var line lines_s1m = array.new_line()
var line lines_s1 = array.new_line()
var line lines_s2m = array.new_line()
var line lines_s2 = array.new_line()
var line lines_s3m = array.new_line()
var line lines_s3 = array.new_line()
// Current period labels (only show for current period)
var label lbl_r3 = na
var label lbl_r3m = na
var label lbl_r2 = na
var label lbl_r2m = na
var label lbl_r1 = na
var label lbl_r1m = na
var label lbl_hh = na
var label lbl_pp = na
var label lbl_ll = na
var label lbl_s1m = na
var label lbl_s1 = na
var label lbl_s2m = na
var label lbl_s2 = na
var label lbl_s3m = na
var label lbl_s3 = na
// Track current period start
var int current_period_start = 0
// On new aggregation period, create new lines
if new_agg_bar
current_period_start := bar_index
// Create lines for this period - they start here and will be extended
array.push(lines_r3, line.new(bar_index, r3, bar_index + bars_in_period, r3, color=color_r, width=line_width))
array.push(lines_r3m, line.new(bar_index, r3m, bar_index + bars_in_period, r3m, color=color_r, width=line_width))
array.push(lines_r2, line.new(bar_index, r2, bar_index + bars_in_period, r2, color=color_r, width=line_width))
array.push(lines_r2m, line.new(bar_index, r2m, bar_index + bars_in_period, r2m, color=color_r, width=line_width))
array.push(lines_r1, line.new(bar_index, r1, bar_index + bars_in_period, r1, color=color_r, width=line_width))
array.push(lines_r1m, line.new(bar_index, r1m, bar_index + bars_in_period, r1m, color=color_r, width=line_width))
array.push(lines_hh, line.new(bar_index, hh, bar_index + bars_in_period, hh, color=color_hl, width=line_width))
array.push(lines_pp, line.new(bar_index, pp, bar_index + bars_in_period, pp, color=color_pp, width=line_width))
array.push(lines_ll, line.new(bar_index, ll, bar_index + bars_in_period, ll, color=color_hl, width=line_width))
array.push(lines_s1m, line.new(bar_index, s1m, bar_index + bars_in_period, s1m, color=color_s, width=line_width))
array.push(lines_s1, line.new(bar_index, s1, bar_index + bars_in_period, s1, color=color_s, width=line_width))
array.push(lines_s2m, line.new(bar_index, s2m, bar_index + bars_in_period, s2m, color=color_s, width=line_width))
array.push(lines_s2, line.new(bar_index, s2, bar_index + bars_in_period, s2, color=color_s, width=line_width))
array.push(lines_s3m, line.new(bar_index, s3m, bar_index + bars_in_period, s3m, color=color_s, width=line_width))
array.push(lines_s3, line.new(bar_index, s3, bar_index + bars_in_period, s3, color=color_s, width=line_width))
// Delete old labels and create new ones
if show_labels
label.delete(lbl_r3)
label.delete(lbl_r3m)
label.delete(lbl_r2)
label.delete(lbl_r2m)
label.delete(lbl_r1)
label.delete(lbl_r1m)
label.delete(lbl_hh)
label.delete(lbl_pp)
label.delete(lbl_ll)
label.delete(lbl_s1m)
label.delete(lbl_s1)
label.delete(lbl_s2m)
label.delete(lbl_s2)
label.delete(lbl_s3m)
label.delete(lbl_s3)
lbl_r3 := label.new(bar_index + bars_in_period, r3, "R3", style=label.style_label_left, color=color.new(color_r, 100), textcolor=color_r, size=size.small)
lbl_r3m := label.new(bar_index + bars_in_period, r3m, "R3M", style=label.style_label_left, color=color.new(color_r, 100), textcolor=color_r, size=size.small)
lbl_r2 := label.new(bar_index + bars_in_period, r2, "R2", style=label.style_label_left, color=color.new(color_r, 100), textcolor=color_r, size=size.small)
lbl_r2m := label.new(bar_index + bars_in_period, r2m, "R2M", style=label.style_label_left, color=color.new(color_r, 100), textcolor=color_r, size=size.small)
lbl_r1 := label.new(bar_index + bars_in_period, r1, "R1", style=label.style_label_left, color=color.new(color_r, 100), textcolor=color_r, size=size.small)
lbl_r1m := label.new(bar_index + bars_in_period, r1m, "R1M", style=label.style_label_left, color=color.new(color_r, 100), textcolor=color_r, size=size.small)
lbl_hh := label.new(bar_index + bars_in_period, hh, "HH", style=label.style_label_left, color=color.new(color_hl, 100), textcolor=color_hl, size=size.small)
lbl_pp := label.new(bar_index + bars_in_period, pp, "PP", style=label.style_label_left, color=color.new(color_pp, 100), textcolor=color_pp, size=size.small)
lbl_ll := label.new(bar_index + bars_in_period, ll, "LL", style=label.style_label_left, color=color.new(color_hl, 100), textcolor=color_hl, size=size.small)
lbl_s1m := label.new(bar_index + bars_in_period, s1m, "S1M", style=label.style_label_left, color=color.new(color_s, 100), textcolor=color_s, size=size.small)
lbl_s1 := label.new(bar_index + bars_in_period, s1, "S1", style=label.style_label_left, color=color.new(color_s, 100), textcolor=color_s, size=size.small)
lbl_s2m := label.new(bar_index + bars_in_period, s2m, "S2M", style=label.style_label_left, color=color.new(color_s, 100), textcolor=color_s, size=size.small)
lbl_s2 := label.new(bar_index + bars_in_period, s2, "S2", style=label.style_label_left, color=color.new(color_s, 100), textcolor=color_s, size=size.small)
lbl_s3m := label.new(bar_index + bars_in_period, s3m, "S3M", style=label.style_label_left, color=color.new(color_s, 100), textcolor=color_s, size=size.small)
lbl_s3 := label.new(bar_index + bars_in_period, s3, "S3", style=label.style_label_left, color=color.new(color_s, 100), textcolor=color_s, size=size.small)
// On the last bar, update the current period's lines to extend properly into the future
if barstate.islast and array.size(lines_pp) > 0
// Get the most recent lines
line last_r3 = array.get(lines_r3, array.size(lines_r3) - 1)
line last_r3m = array.get(lines_r3m, array.size(lines_r3m) - 1)
line last_r2 = array.get(lines_r2, array.size(lines_r2) - 1)
line last_r2m = array.get(lines_r2m, array.size(lines_r2m) - 1)
line last_r1 = array.get(lines_r1, array.size(lines_r1) - 1)
line last_r1m = array.get(lines_r1m, array.size(lines_r1m) - 1)
line last_hh = array.get(lines_hh, array.size(lines_hh) - 1)
line last_pp = array.get(lines_pp, array.size(lines_pp) - 1)
line last_ll = array.get(lines_ll, array.size(lines_ll) - 1)
line last_s1m = array.get(lines_s1m, array.size(lines_s1m) - 1)
line last_s1 = array.get(lines_s1, array.size(lines_s1) - 1)
line last_s2m = array.get(lines_s2m, array.size(lines_s2m) - 1)
line last_s2 = array.get(lines_s2, array.size(lines_s2) - 1)
line last_s3m = array.get(lines_s3m, array.size(lines_s3m) - 1)
line last_s3 = array.get(lines_s3, array.size(lines_s3) - 1)
// Calculate end point: period start + bars in period
int end_bar = current_period_start + bars_in_period
// Update line endpoints
line.set_x2(last_r3, end_bar)
line.set_x2(last_r3m, end_bar)
line.set_x2(last_r2, end_bar)
line.set_x2(last_r2m, end_bar)
line.set_x2(last_r1, end_bar)
line.set_x2(last_r1m, end_bar)
line.set_x2(last_hh, end_bar)
line.set_x2(last_pp, end_bar)
line.set_x2(last_ll, end_bar)
line.set_x2(last_s1m, end_bar)
line.set_x2(last_s1, end_bar)
line.set_x2(last_s2m, end_bar)
line.set_x2(last_s2, end_bar)
line.set_x2(last_s3m, end_bar)
line.set_x2(last_s3, end_bar)
// Update label positions
if show_labels
label.set_x(lbl_r3, end_bar)
label.set_x(lbl_r3m, end_bar)
label.set_x(lbl_r2, end_bar)
label.set_x(lbl_r2m, end_bar)
label.set_x(lbl_r1, end_bar)
label.set_x(lbl_r1m, end_bar)
label.set_x(lbl_hh, end_bar)
label.set_x(lbl_pp, end_bar)
label.set_x(lbl_ll, end_bar)
label.set_x(lbl_s1m, end_bar)
label.set_x(lbl_s1, end_bar)
label.set_x(lbl_s2m, end_bar)
label.set_x(lbl_s2, end_bar)
label.set_x(lbl_s3m, end_bar)
label.set_x(lbl_s3, end_bar)
// Limit array sizes to prevent memory issues (keep last 100 periods)
max_lines = 100
if array.size(lines_pp) > max_lines
line.delete(array.shift(lines_r3))
line.delete(array.shift(lines_r3m))
line.delete(array.shift(lines_r2))
line.delete(array.shift(lines_r2m))
line.delete(array.shift(lines_r1))
line.delete(array.shift(lines_r1m))
line.delete(array.shift(lines_hh))
line.delete(array.shift(lines_pp))
line.delete(array.shift(lines_ll))
line.delete(array.shift(lines_s1m))
line.delete(array.shift(lines_s1))
line.delete(array.shift(lines_s2m))
line.delete(array.shift(lines_s2))
line.delete(array.shift(lines_s3m))
line.delete(array.shift(lines_s3))
PivotIQDynamic Pivot Levels - Professional Support & Resistance Indicator
This indicator automatically identifies and displays key support and resistance levels that adapt to price action in real-time, helping traders spot potential reversal zones and breakout points.
KEY FEATURES:
- Automatic Level Detection: Identifies significant price levels using advanced swing detection
- Clean Chart Display: Intelligently manages the number of levels shown to avoid clutter
- Real-Time Updates: Levels adjust dynamically as price moves and market structure evolves
- Visual Clarity: Color-coded levels (red for resistance, green for support) with price labels for easy identification
- Level Confidence Indicators: Highlights high-probability zones with enhanced visual styling
- Smart Level Management: Automatically removes invalidated levels to keep your chart clean and relevant
CUSTOMIZATION OPTIONS:
- Adjustable detection sensitivity
- Customizable colors and line styles
- Control over number of levels displayed
- Label size and positioning options
- Fine-tune level tolerance and behavior
ICT Algo: Sweep + MSS + High Prob FVG/IFVGThis script is a comprehensive execution tool based on Inner Circle Trader (ICT) concepts, specifically designed to identify high-probability entries by combining Liquidity Sweeps, Market Structure Shifts (MSS), and Fair Value Gaps (FVG/IFVG).
Unlike standard FVG indicators that highlight every gap on the chart, this "Algo" version filters for gaps that occur specifically after a liquidity purge and a shift in structure, ensuring you are only looking at setups with institutional backing.
How It Works
The script follows a strict 3-step validation process before plotting a signal:
Liquidity Sweep (The Context): The script tracks Higher Timeframe (HTF) levels including Previous Day High/Low, Weekly High/Low, and Monthly High/Low. A setup is only considered valid if price has recently "swept" one of these levels, indicating a hunt for liquidity.
Market Structure Shift (The Confirmation): Once a sweep occurs, the script looks for a displacement in the opposite direction. It identifies a "Pivot High/Low" (customizable length) and waits for a candle body to close beyond it (MSS).
Filtered Entry (The Trigger): * FVG: Plots a standard Fair Value Gap if it forms within a "Deep Value" zone (Discount for longs, Premium for shorts).
IFVG (Inversion FVG): Highlights failed FVGs that have been reclaimed by price to act as support or resistance.
Key Features
Multi-Timeframe Liquidity Filters: Automatically plots PDH/L, PWH/L, PMH/L, and PYH/L. You can toggle which levels act as your sweep triggers.
Deep Value Logic: The script uses built-in logic to ensure Bullish FVGs are only highlighted when price is below a key liquidity level (Discount), and Bearish FVGs when price is above (Premium).
Dynamic Box Management: To keep your chart clean, boxes for FVGs and IFVGs are automatically shortened ("cut") once they are mitigated by price.
Inversion Logic: Includes a specialized toggle for Inversion Fair Value Gaps, allowing you to trade "failed" gaps that flip their polarity.
Settings & Customization
Entry Setup Bias: Choose to see only Bullish, only Bearish, or Both setups.
MSS Pivot Length: Adjust how "sensitive" the Market Structure Shift detection is. A higher number requires a more significant swing to be broken.
Sweep Lookback: Defines how many bars back the script looks for a liquidity sweep to remain "active" for a setup.
Include Opens: Optional toggle to include Previous Day/Week/Month Opens as liquidity points.
Usage Tips
The Golden Setup: Look for a sweep of a Previous Day High, followed by a Bearish MSS, and an entry at the Red FVG box.
Risk Management: This indicator is designed for entry identification. Always use stop losses (usually placed above/below the candle that created the FVG or the MSS swing point).
Timeframes: Best used on execution timeframes (1m, 5m, 15m) while the script handles the HTF levels automatically.
Disclaimer: This script is an educational tool and does not constitute financial advice. Trading involves significant risk. Past performance of a strategy does not guarantee future results.
Credits: Concepts based on the teachings of Michael J. Huddleston (ICT).
Important Level by DXB16 V2**Important Level by DXB16 – The Essential Structure Indicator**
This indicator automatically displays the most important price zones of your market across three timeframes: Daily High/Low, Weekly High/Low, and Monthly High/Low. All levels update in real-time.
**What you'll see:**
- Current daily, weekly, and monthly highs and lows as clear horizontal lines
- Instant context of where the current price sits within the daily, weekly, and monthly range
- Classic reversal, range, and breakout zones at a glance
**Perfect for:**
- Identifying range-bound vs. trend days
- Liquidity grabs and mean-reversion setups at critical levels
- Higher timeframe context for intraday trading
- Futures, indices, forex, crypto
**Features:**
- 6 fully customizable colored lines (Daily, Weekly, Monthly – each High/Low)
- Adjustable label text size
- Clean, minimalist design without distracting boxes
- Fully dynamic – no manual adjustments needed
BOS Pullback + CVD Clustering - Prop Firm EditionBOS Pullback + CVD Clustering
Overview
The BOS Pullback + CVD Clustering system is a professional-grade toolkit designed for high-precision intraday trading. It is specifically built for traders aiming to pass or manage Prop Firm accounts, where risk management and trend alignment are non-negotiable.
This script moves beyond basic price action by integrating Order Flow (CVD Z-Score Clustering), Market Structure (BOS), and Multi-Timeframe Momentum (SMI) into a single, cohesive execution engine.
Core Pillars of the Strategy
1. Market Structure & BOS Logic
The script automatically tracks Market Structure using dynamic pivots.
BOS Detection: When price closes above a recent high (Bullish) or below a recent low (Bearish), it identifies a Break of Structure (BOS).
The Pullback Zone: Signals do not fire on the breakout (chasing). Instead, the script waits for a pullback to the silver BOS Level within an ATR-optimized buffer.
2. CVD Z-Score Clustering (Order Flow)
This is the heart of the engine. It categorizes every bar into one of 9 clusters by comparing Volume and Cumulative Volume Delta (CVD) against their statistical Z-Scores.
Institutional Conviction: Signals are filtered to only allow entries during high-conviction clusters (High/Avg Volume + High Delta).
Absorption Filter: It prevents you from buying a pullback if the CVD shows aggressive selling, even if the price is at a support level.
3. Multi-Timeframe (HTF) SMI Filter & Squeeze Detection
To protect you from "choppy" environments, the script monitors a Higher Timeframe (HTF) Stochastic Momentum Index.
Trend Filter: Longs only fire if the HTF SMI is trending above its signal line.
The Squeeze (Gray Background): When the HTF SMI and its signal line converge (within 5 points), the background turns gray. This indicates a low-volatility "Squeeze" or trend exhaustion—a high-risk environment for breakouts where Prop Firm traders should stay sidelined.
Dual-Layer Momentum HUD
The script features two distinct momentum measurements to ensure both the "Trend" and the "Execution Bar" are powerful.
Internal Acceptance Score (UI Table): Ranging from -4 to +4, this measures Trend Quality (consecutive candle colors and volatility expansion). You can set the threshold (1-4) in the inputs to filter for only the most aggressive trend moves.
Micro-Momentum Gauge (Bottom Left): Ranging from -10 to +10, this tracks Immediate Velocity. It analyzes closing strength and range expansion of the last two candles. A score of ±6 or higher confirms a high-velocity execution bar.
Built-in Prop Firm Risk Management
Supply & Demand Zones: Automatically plots institutional "Premium" (Red) and "Discount" (Green) zones based on the current swing range.
ATR Trailing Stop: A dynamic orange line that follows price to protect capital.
Automated Break-Even: Once price hits a user-defined ATR target, the active stop is moved to the entry price.
Prior Day Levels: Automatic plotting of PDH and PDL for critical daily bias context.
How to Trade with this System
Bias: Check the Trend Dir in the internal table and ensure the background is not gray.
Setup: Wait for price to return to the silver BOS Level.
Trigger: A signal (Triangle) appears when HTF Trend, CVD Order Flow, and Momentum (Acceptance Score) align.
Execution: Confirm the Micro-Momentum Gauge shows high velocity (±6 or more) for the highest probability entries.
Manage: Target the Lime Green TP line while the Orange Trailing Stop protects your drawdown.
Disclaimer
This indicator is a tool to assist in market entry analysis and does not guarantee profits. Always use proper risk management, especially when trading with Prop Firm capital.
TMT IT Support-Resistance ZonesTMT Intermediate-Term Support & Resistance Zones
An adaptive support and resistance framework that identifies intermediate-term price zones where supply and demand have historically asserted control. These zones help define high-probability reaction areas, manage risk, and distinguish between trend continuation and potential reversal points.
Phantom Support & Resistance AutoPhantom Support & Resistance Auto is a multi-layer market structure tool designed to automatically map real support and resistance zones based on price behavior, volatility, and momentum interaction.
This indicator does NOT generate buy or sell signals.
It focuses on context, structure, and reaction zones — the same areas professional traders observe.
Key Features
• Auto-Detected Pivot Zones
Smart pivot levels that merge automatically and adapt their strength based on the number of price reactions.
Stronger levels appear clearer, weaker ones fade naturally.
• Dynamic Strength Coloring
Pivot levels are colored internally by strength (touch count).
No manual tuning required — clarity is handled by the system.
• High / Low Structural Zones
Automatic High & Low zones based on a rolling lookback period, useful for range boundaries and market extremes.
• Wick Liquidity Zones
Detects abnormal wick behavior to highlight potential liquidity grabs and stop-hunt areas.
• PR Levels (Predicted Ranges)
Volatility-based projected levels:
S2 – S1 – AVG – R1 – R2
Designed to visualize expected price expansion zones, not predictions.
• MACD-Based S&R (Heikin Ashi)
Support and resistance levels derived from MACD momentum shifts using Heikin Ashi data, providing cleaner structural references.
• Professional Glow System (Fixed)
All major levels use an internally controlled glow effect for clarity and hierarchy.
Glow behavior is locked by design to preserve visual integrity.
• PR Distance Table (HUD)
Live percentage distances between PR levels to help assess range size, compression, and expansion potential.
How to Use
• Use this indicator to identify key reaction zones, not entries
• Combine zones with your own strategy, confirmations, and risk rules
• Stronger pivot levels = higher structural importance
• PR Levels help you understand where price is statistically stretched or compressed
• Liquidity zones are best used as warning areas, not reversal signals by default
Important Notes
• This tool does not predict price direction
• It does not generate trade signals
• It visualizes market structure, volatility, and reaction behavior
Always apply proper risk management and confirmation logic.
Product ID: PT-IND-SR.001
Version: v1
Order Blocks by Amelia DavisThis indicator identifies bullish and bearish Order Blocks formed after price consolidation and a valid breakout, filtered using volume strength analysis.
Unlike basic order block tools, this script:
Confirms zones only when volume exceeds a user-defined threshold
Supports multiple volume calculation methods
Automatically removes mitigated order blocks
Keeps the chart clean using a maximum block limit
It is suitable for Forex, Crypto, Indices, and Stocks, and works well across intraday and higher timeframes.
Chan Lun Lite核心功能
- K线包含处理:自动识别并合并包含关系K线,按缠论标准处理
- 分型识别:识别顶分型和底分型,基于合并后的K线
- 笔的构建:顶底分型交替连接,严格遵循缠论定义
显示选项
- 显示合并K线 - 用Box框显示合并后的K线范围
- 显示分型 - 显示顶/底分型标签(含序列号和价格)
- 显示笔 - 绘制笔的连接线
- 验证笔极值 - 检测并标记非极值笔
- 验证时区 - 非极值笔标签的时间显示时区
- 调试信息 - 显示统计表格
Core Features
- K-line Inclusion: Auto-detect and merge inclusive K-lines per Chan Theory standard
- Fractal Detection: Identify top/bottom fractals based on merged K-lines
- Bi Construction: Connect alternating fractals strictly following Chan Theory rules
Display Options
- Show Merged K-lines - Display merged K-line ranges with boxes
- Show Fractals - Show top/bottom fractal labels (with seq & price)
- Show Bi - Draw Bi connection lines
- Validate Bi Extremes - Detect and mark non-extreme Bi
- Validation Timezone - Timezone for non-extreme Bi labels
- Debug Info - Show statistics table
TrendCatcherThis indicator identifies high-probability trade zones by combining HTF trend bias, time-locked Fair Value Gaps (FVGs), and automatic Fibonacci retracements.
It highlights optimal entry areas where key fib levels (0.681 / 0.786) align inside active FVG zones, filtered by market structure and higher-timeframe conditions.
The indicator is designed to stay visually clean while providing precise, rule-based confluence, helping traders focus only on the most relevant setups without signal clutter.
Reversal Detector PRO (VINTRADE)🎯 Explanation of Reversal Detector PRO Indicator Logic
Imagine you're watching price movement on a chart. The indicator works like a smart assistant that catches the moment when a trend reverses. Here's how it happens:
Stage 1️⃣: Trend Determination (Direction Recognition)
The indicator counts: how many bars in a row is the price moving in one direction?
DOWNTREND ⬇️
█ ← lower low (below the previous one)
█ ← lower low
█ ← lower low
= minimum 3 bars lower = TREND!
UPTREND ⬆️
█ ← higher high (above the previous one)
█ ← higher high
█ ← higher high
= minimum 3 bars higher = TREND!
Analogy: If water flows downhill for 3 days straight - that's a clear descent. But if tomorrow the water flows upward - that means something is reversing!
Stage 2️⃣: Extremum Search (Indicator's Memory)
When the indicator sees a trend, it remembers the lowest point (if the trend is down) or the highest point (if the trend is up).
EXAMPLE: Downtrend
Price: 100 → 95 → 90 → 88 → 92 → 85 ← NEW MINIMUM?
Indicator remembers: minimum was 88
New candle: 85 < 88 ✅ BREAKOUT!
Analogy: You're going down a staircase and remember the lowest step. If you suddenly went even lower - that means the staircase continues! 📍
Stage 3️⃣: Reversal Confirmation (False Signal Check)
The indicator doesn't immediately believe the breakout. It requires confirmation over N bars (default 2 bars):
Parameter "Confirmation Bars = 2" means:
- 1st bar: price broke the minimum ✓
- 2nd bar: price continued in the new direction ✓
- ALL CONDITIONS MET → SIGNAL! 🎯
Analogy: If a car brakes once at a red light - it could be an obstacle. But if it braked 2 times in a row - there's definitely a traffic light there! 🚦
Stage 4️⃣: Volume Filter (Seriousness Check)
If Use Volume Filter = ON, the indicator additionally checks:
Condition: volume >= average volume over 20 bars × 0.8
🔊 LOUD REVERSAL
Large volume
= Serious reversal ✅
🔇 QUIET REVERSAL
Small volume
= Could be a false signal ❌
Analogy: If many people run in one direction - that's a serious change. If one person turned around - that could be a mistake. 👥
Total: Complete logic in 10 seconds ⚡
Step > What happens > Example
1️⃣ > We see 3+ bars in one direction > Price goes down 5 times in a row ⬇️
2️⃣ > We remember the reversal point > Minimum fixed: 88
3️⃣ > We wait for extremum breakout > Price dropped below 88 → 85!
4️⃣ > We require confirmation (2 bars) > 85 → 84 (trend continues downward)
5️⃣ > We check volume > Volume >= 80% of average ✓
6️⃣ > SIGNAL! 🎯 > Label BULL ↑ or BEAR ↓
When will there be NO signals? ⚠️
Situation > Why > Solution
Flat/sideways (price goes back and forth) > No 3+ bars in one direction > Wait for a trend
Low volume on breakout > Volume Filter filters out weak signals > Turn off volume filter
Jumps too quickly > Parameter "Confirmation Bars" requires 2-3 bars > Reduce by 1
3 main parameters for adjustment:
1. Lookback Period (10) - how far back to search for extremum
- ↓ Lower value = more frequent signals, but more false ones
- ↑ Higher value = rarer signals, but more reliable
2. Confirmation Bars (2) - how many bars we wait for confirmation
- ↓ 1 = reacts immediately (but could be an error)
- ↑ 3+ = slower, but more reliable
3. Use Volume Filter - volume filter
- OFF = many signals (and false ones)
- ON = fewer signals, but only serious ones
Now you understand the logic! Any questions left? Let me know 👍
MTF Unmitigated Liquidity Levels [Scanner] with AlertsDescription:
This indicator is an advanced Smart Money Concepts (SMC) tool designed to identify key liquidity levels (Highs and Lows) that have not yet been mitigated (touched) by price action. This script tracks multiple timeframes (MTF) simultaneously and automatically cleans the chart by removing levels as soon as they are "taken" by a candle wick.
Key Features:
Dynamic Multi-Timeframe: Monitor 5m, 1h, 4h, 1D, and 1W levels directly on your current chart.
Smart TF Filtering: To prevent visual clutter, the script automatically hides timeframes lower than your current chart view.
Auto-Cleaning (Mitigation): Lines are deleted in real-time as soon as price touches them, keeping your chart clutter-free.
Smart Labeling: Floating labels on the right side of the price help you instantly identify each timeframe (e.g., "1H", "4H").
Custom Alerts: Set up instant push notifications for your mobile device whenever a major liquidity level is taken.
How it Works:
Calculation: The script scans for fractals (pivots) across selected timeframes.
Mitigation: If the price reaches the line's coordinate, it is considered "mitigated," an alert is triggered, and the line is removed.
Current TF: Highlights levels for your current timeframe while allowing you to overlay higher timeframes for confluence.
🚀 Mobile Alert Setup Instructions:
Add the indicator to your chart.
Press Alt + A to create an alert.
Under Condition, select: Niveles de Liquidez No Mitigados (MTF) v6.
Select: Any alert() function call.
In Notification options, check: Notify on app.
Click Create.
BK AK-9 Square Ki11a🧿👑 BK AK-9 Square Ki11a — Square of 9 Geometry, Anchored Like Law 👑🧿
All glory to Gd — the true source of wisdom, restraint, and right timing.
AK is honor — my mentor’s standard: clarity, patience, no shortcuts, no gambling.
BK AK-9 Square Ki11a is a Square of 9 price-mapping engine for traders who want clean, repeatable geometry levels—not random lines. It anchors from a chosen base price, then projects Gann degree levels above and below that base so your chart has structure, not opinion.
🧠 What It Does
This script plots Square of 9 levels as horizontal projected “jurisdiction” lines:
Base + Anchor
Base Line (0°) drawn from your chosen anchor price
Optional Anchor Vertical Line + label (icon selectable)
Cardinal Levels (Strong)
90° / 180° / 270° / 360° (toggle each on/off)
Cross Levels (Secondary)
45° / 135° / 225° / 315° (toggle each on/off)
Multiple Rotations
You control Levels Above/Below (rotations) to map as far as you want.
Multi-Set History
“Show N Pivot Sets” lets you keep multiple prior anchor sets on chart (great for studying reaction accuracy).
Future Projection
Lines can extend N bars into the future so levels are actionable, not just historical.
⚓ Anchor Modes (How the Base Price Is Chosen)
Choose what “truth” the Square of 9 is built from:
Auto (Prior Close) (default; stable & clean)
Manual Price (you set the base)
Major Swing High / Major Swing Low (pivot-based anchor using your swing settings)
ETH Open / ETH Close
RTH Open / RTH Close
This is why it’s called Ki11a: the same Sq9 math hits different depending on what you anchor it to—close vs open vs swing vs session.
⏱️ Sessions (ETH / RTH)
You can set:
ETH Start time
RTH Start / End time
The script detects session transitions and uses them when you choose ETH/RTH anchor modes. Tooltips also show the current session label (Globex / RTH / Post-RTH).
📌 Labels, Tooltips, and Readability (Built for real charts)
You can run it clean or detailed:
Compact Icon Mode (labels show an icon like ◇ instead of long text)
Label position Left/Right
Distance shown as Points or Ticks
Every level has a full tooltip including:
Level price
Distance from current price
Distance from base
Degrees + rotation count
Level type (Cardinal vs Cross)
Anchor type + session context
There’s also a small info table showing:
Anchor type
Base price
√Base
Increment
Rotations plotted
⚙️ The Only Settings That Matter (Practical)
Pivots Timeframe (Auto/Daily/Weekly/Monthly)
Controls when a new Sq9 “set” is created and drawn.
Increment
Preset increments (recommended by instrument type)
Or Custom increment if you’re calibrating to a specific market
Display Control
Levels above/below
Show cardinal / show cross (and which degrees)
Line length + forward extend
Show N sets (history)
🧱 How To Use (Execution Framework)
Treat 0° base line like the “source level.” It defines the grid.
Cardinals are the heavy hitters (90/180/270/360): expect more reactions.
Cross levels are secondary structure (45/135/225/315): often used for intermediate stops/targets.
When price approaches a level, you’re watching for:
reaction (stall/reject) or acceptance (close/hold through)
Best results come from confluence: Sq9 level + session context + your market structure.
⚠️ Notes (So nobody misuses it)
Sq9 “below” levels require the square-root step to remain positive; if the math would go negative, that level won’t plot (that’s correct behavior).
This script uses many lines/labels by design. If you push rotations + degrees + sets too high, you can hit platform object limits or slow charts. Keep it tight: fewer sets + fewer rotations = faster.
👑 King David Lens — Psalms: The Rock, the Line, and the Clean Path
David didn’t win by noise. He won by alignment—standing on the Rock, measuring the field, and striking only when the ground was sure.
“He set my feet upon a rock and established my steps.” (Psalm 40)
That’s your Anchor. Square of 9 is useless without a true base. The whole grid is only as holy as the level you plant it on.
“Your word is a lamp to my feet and a light to my path.” (Psalm 119)
That’s the degrees. Not prediction—illumination. The levels don’t force price; they reveal the path where decisions become clean and repeatable.
“The lines have fallen for me in pleasant places.” (Psalm 16)
That’s the geometry blessing: when you anchor right, the market often respects the structure. The “lines” become jurisdiction—targets, traps, and turning points that keep you from improvising.
“Create in me a clean heart… then I will teach transgressors Your ways.” (Psalm 51)
That’s AK discipline: clean motive → clean execution. No revenge trading, no gambling. If your heart is messy, your levels become excuses.
ZENITH: David’s edge was never hype—it was order under pressure.
BK AK-9 Square Ki11a is that Psalm logic on-chart: stand on the Rock (anchor), mark the lines (degrees), walk the path clean (execution), and let price testify.
🙏 Respect + Seal
Respect to AK — the standard behind the discipline.
All glory to Gd — the source of wisdom and endurance.
🧿👑 BK AK-9 Square Ki11a — anchor the base, map the degrees, let price testify. 👑🧿
lostsol Synthetic Max PainOverview
The lostsol Synthetic Max Pain indicator is a sophisticated visualization tool designed to model options market dynamics directly on your price chart. Because Pine Script cannot access live options Open Interest (OI) from external exchanges, this script utilizes a Synthetic Gaussian Distribution Model to estimate where the "Max Pain" and "Liquidity Walls" likely sit based on current price action and volatility.
How it Works
The indicator reverse-engineers a theoretical options chain by:
Generating a Strike Ladder: It creates a grid of potential strike prices centered around the current market price.
Modeling Synthetic OI: It uses a Gaussian (bell curve) distribution to estimate Open Interest. It assumes higher liquidity sits near "At-the-Money" (ATM) levels and decays as strikes move further out.
Calculating Pain: For every strike, the script calculates the collective "loss" for theoretical option holders. The price point with the lowest total payout is identified as the Max Pain Price.
Key Features
Dual-Timeframe Modeling: Simultaneously calculate Weekly (tight concentration) and Monthly (wide spread) Max Pain levels.
Put/Call Walls: Identifies "Support" and "Resistance" zones based on the highest concentration of simulated Put and Call OI.
Bias Controls: Manually adjust the Put Bias or Call Bias to reflect current market sentiment (e.g., increasing Put Bias if the market is heavily hedged/bearish).
Auto-Strike Detection: Automatically scales strike increments based on asset price (SOL vs. BTC).
How to Use
The Pull Effect: According to Max Pain Theory, price tends to gravitate toward these levels as expiration approaches (especially on Fridays) as market makers hedge their positions.
The Spread: Watch the gap between Weekly and Monthly levels; a large spread often indicates a high-volatility environment, while a convergence can signal a "pinning" event.
Customization: For the best results, adjust the Weekly/Monthly Spread % in the settings to match the current Implied Volatility (IV) of the asset you are trading.
Disclaimer: This indicator uses a mathematical model to estimate options data. It does not reflect live exchange-cleared Open Interest. Use it as a supplemental sentiment tool alongside price action and volume.
FVG Master Pro - Bridge + Candles v6.4FVG Master Pro v6.3 is a proprietary institutional trading engine designed specifically for the unique volatility and liquidity profile of Gold (XAUUSD).
Unlike standard technical indicators that rely on lagging data, this system utilizes a complex, multi-layered algorithm to identify high-probability institutional order flow zones. It is engineered to filter out the "noise" and manipulation common in Gold markets, providing clear, actionable signals for professional traders.
Key Capabilities:
Institutional Zone Detection: Automatically highlights high-value reaction areas where price is likely to reverse or continue, optimized specifically for XAUUSD behavior.
Adaptive Signal Engine: Features two distinct operation modes—"Stable" (On Bar Close) for confirmed high-confidence setups, and "Dynamic" (Real-Time) for capturing rapid volatility spikes.
Smart Volatility Filtering: The internal logic dynamically adjusts to changing market conditions, preventing signals during low-probability consolidation phases while capitalizing on true momentum.
Automated Trade Management: Includes a built-in risk calculator and dynamic exit targets that adapt to current market range, removing the guesswork from position sizing and trade management.
Bridge-Ready Architecture: Generates structured data outputs designed for seamless integration with professional automation systems and execution bridges.
Why Use FVG Master Pro?
Tailored for Gold: The internal parameters are fine-tuned to handle the erratic wicks and sudden reversals characteristic of the XAUUSD pair.
Focus on Execution: By handling the complex analysis in the background, this tool allows you to focus purely on execution and risk management.
Professional Grade: Designed for traders who require precision entry timing and strict rule-based exits without the visual clutter of traditional indicators.
Access:
This is a private, invite-only toolkit for professional trading.
Disclaimer:
Trading Gold (XAUUSD) involves significant risk. This tool identifies potential market opportunities based on proprietary algorithms but does not guarantee profitability. Past performance is not indicative of future results.






















