ICT 1st FVG + Date/News [NQTrades]🎯 Indicator Summary: ICT 1st FVG + Date/News
This indicator combines a core ICT (Inner Circle Trader) concept—the tracking of the first Fair Value Gap (FVG) of a session—with convenient on-screen information about the current date and scheduled economic news events.
🟢 Section 1: 1st FVG (Fair Value Gap) Tracker
This logic is dedicated to automatically detecting and visualizing the very first Fair Value Gap that forms at the start of the trading session.
Session-Specific: The indicator only searches for an FVG within the user-defined trading session (defaulting to 09:32 - 16:00 EST for the NY session).
First Only: It plots only the first valid FVG that meets the minimum distance requirement (Min FVG Distance) and ignores all subsequent FVGs for the remainder of that session.
Visual Tracking (Modified): The FVG is drawn as a transparent box that begins at the current bar and extends forward into the chart, allowing traders to monitor its fill or reaction in real-time without cluttering the historical chart data.
Customization: Allows setting distinct colors for bullish (up) and bearish (down) FVGs.
📰 Section 2: Date & News Display
This module provides an organized, persistent display on the chart for critical time and event information.
Date & Time: Displays the current weekday, date, and month in a customizable format.
Configurable News Events: Users can set up to three high-impact news events for the day (e.g., NFP, FOMC, CPI, etc.).
Visual Alert: Each news event is displayed with its own customizable background color, text size, and text color, providing a quick visual alert for upcoming market volatility drivers.
Positioning: The entire information box (Date + News) can be anchored to any of the chart's four corners (Top/Bottom and Left/Center/Right).
Penunjuk dan strategi
MMGDF New Style IndicatorMMGDF New Style Indicator
We’ve introduced a new version of the MMGDF (Multi-Market Gradient Directional Flow) indicator, now featuring a refreshed visual style and improved clarity. The updated design makes it easier to interpret market momentum and directional bias at a glance, with refined gradient transitions and better contrast for both light and dark chart themes.
The new style preserves the core MMGDF logic while improving visual readability and integration with other chart tools. You can switch between the classic and new styles in the indicator settings.
Berbayar
MSB Gold Trend Breakout [TV]: The High-Stability Gold Scalper🏆 MSB Gold Trend Breakout : The High-Stability Gold Scalper
This is the official signal for the MSB Pro brand, designed for traders who demand low-drawdown, consistent performance on the XAUUSD (Gold) market.
📈 Verified Performance & Risk Contro l
The strategy's stability has been verified over 1.8 years of historical data.
Max Drawdown (DD): 12.53% (Exceptional capital safety.)
Total Net Profit (1.8 Yrs): +8.15% (Consistent Growth.)
Profit Factor: 1.055 (Proven reliability.)
🛡️ Why Choose This Signal?
True Risk Control: The low drawdown is achieved through a strict EMA filtering system, preventing entry into high-volatility, directionless markets.
Breakout Logic: Uses high-probability breakout movements confirmed by trend alignment (EMA Cross and Trend Filter).
No Martingale/Grid: This is a safe, single-order strategy.
👑 Upgrade to Full License
This signal is priced low to allow you to validate the performance.
Upgrade to the full license ($499) to get:
Lifetime Updates & Future Strategy: Guaranteed access to all future professional upgrades of the MSB Pro Dynamic Risk strategy (V2.0, V3.0, etc.) at no extra cost.
Significant Savings: Purchasing the full license is significantly cheaper than continuous renting.
Volatility Dashboard (ATR-Based)Here's a brief description of what this indicator does:
- This measures volatility of currents based on ATR (Average True Range) and plots them against the smoothed ATR baseline (SMA of ATR for the same periods).
- It categorizes the market as one of the three regimes depending on the above-mentioned ratio:
- High Volatility (ratio > 1.2)
- Normal Volatility (between 0.8 and 1.2),
|- Low Volatility (ratio < 0.8, green)
- For each type of trading regime, Value Area (VA) coverage to use: for example: 60-65% in high vol trade regimes, 70% in normal trade regimes, 80-85% in low trade regimes
* What you’ll see on the chart:
- Compact dashboard in the top-right corner featuring:
- ATR (present, default length 20)
- ATR Avg (ATR baseline)
- The volatility regime identified based on the color-coded background and the coverage recommended for the VA.
Important inputs that can be adjusted:
- ATR Length (default 20) - “High/Low volatility thresholds” (default values: 1.2 – The VA coverage recommendations for each scheme (text) Purpose: - Quickly determine whether volatility is above/below average and adjust the coverage of the Value Area.
If you're using this for the GC1! Use 14 ATR Length, For ES or NQ Use Default Setting(20)
Session Highs & Lows Title:
Session Highs & Lows — Asia, London, New York + NY Open Line
Description:
This indicator automatically plots the session highs and lows for the three major trading sessions:
Asia (5 PM – 2 AM PT) – red rays
London (12 AM – 9 AM PT) – blue rays
Previous New York Session (6:30 AM – 1 PM PT) – brown rays
It also draws a thin dashed red line at 6:30 AM PT, marking the New York open.
The script dynamically updates each session’s range as price action unfolds, then locks it in when the session closes.
Lines extend to the right only (“rays”) so traders can easily identify liquidity zones, previous highs/lows, and intraday reaction points without cluttering the left side of the chart.
The logic uses TradingView’s session-time functions (time() windows) and resets automatically after each New York session ends, ensuring that only the current day’s structure is visible.
Unique features:
Works on any timeframe and any symbol (optimized for ES & NQ futures).
Separate colors for each session for clear visual distinction.
Session lines are “live” during the session and freeze once it closes.
Lightweight code with automatic cleanup — avoids line-count overflow.
Non-repainting and fully timezone-aware.
How to use:
Add the indicator to your chart and select your preferred timezone.
Watch how Asia and London session highs/lows guide liquidity during the New York session open (marked by the red dashed line).
MoneyPlant-Auto Support Resistance V2.0
🧭 Overview
MoneyPlant – Auto Support Resistance is a professional-grade indicator designed to automatically detect dynamic Support and Resistance levels using real-time market structure.
It combines trend confirmation, structure analysis, and momentum logic to identify high-probability trading zones in all market conditions.
⚙️ Core Concept
This indicator uses a unique combination of classic and proprietary logic to filter only the most relevant S/R levels:
• Dynamic Support/Resistance Mapping: Detects strong reaction levels based on price structure, candle rejection points, and breakout validation.
• EMA & WMA Trend Filter: Uses a triple-moving-average model (default EMA 18, EMA 25, and WMA 7) to confirm current market bias.
• MACD Momentum Filter: Confirms trend strength and helps avoid false breakouts.
• Smart Alignment Logic: Generates signals only when structure, trend, and momentum all align in the same direction.
🧠 How It Works
1. Buy Setup:
When price breaks above a resistance level with bullish EMA/WMA alignment and positive MACD momentum → Buy Signal triggers.
2. Sell Setup:
When price breaks below a support level with bearish EMA/WMA alignment and negative MACD momentum → Sell Signal triggers.
3. Auto-Refreshing Zones:
Support and Resistance zones update dynamically as market structure evolves.
🎯 Best Use Cases
• Works effectively on Stocks, Indices, Forex, and Commodities (e.g., XAUUSD, NIFTY, BANKNIFTY ).
• Ideal for Intraday & Swing Trading (15 min – 1 hour timeframes).
• Fully compatible with TradingView alerts and automation tools.
💡 Key Features
✅ Automatic Support/Resistance detection
✅ Adaptive EMA + WMA + MACD trend logic
✅ Real-time Buy/Sell alerts
✅ Multi-timeframe compatibility
✅ Optimized for clean chart visuals
⚖️ Recommended Settings
• EMA Fast: 18
• EMA Slow: 25
• WMA Filter: 7
• MACD: Default parameters
(Users may adjust EMA/WMA settings according to their own trading style.)
🔒 How to Get Access
To get access to this invite-only script, please send me a private message on TradingView or use the link in my profile.
Once your username is added via Manage Access, you’ll be able to use the indicator.
🧾 Notes for Traders
This tool does not repaint, and it’s meant for educational and analytical purposes only.
Each license is valid for one TradingView username — no resale or redistribution is permitted.
Developed by MoneyPlant
Smart Automation for Professional Traders
Pro Trend Suite + Options (Minimal Auto, Hi-Confidence)Help pick the best options play and helps know what the trend is.
AI Zone Sniper STOCKTUTORWe’re excited to announce the launch of our new indicator - AI Zone Sniper.
It combines the power of AI technology, multiple indicator setups, and the theory of demand & supply zones to deliver highly accurate entry and exit signals.
Let’s leverage this innovation to enhance our trading performance and user experience.
Smart Moving Average Dynamics [ChartNation]Smart Moving Average Dynamics (SMAD) — by Chart Nation
What it does:
SMAD maps how far price deviates from a chosen moving average and normalizes that distance into a bounded oscillator (−100…+100). It detects extreme expansions and prints non-repainting dots when the move exits an extreme. Price-level rails are drawn from those events (with optional fade/expiry) to highlight likely reaction zones. The MA line is colored by bias. A slim gauge summarizes the current oscillator percentile; a compact info panel shows TF, Trend, Volume rank, and Volatility rank.
How it works (high-level, closed-source)
Core signal: diff = price – MA(type, length) where MA can be SMA/EMA/RMA/WMA/VWMA.
Normalization (choose one):
Highest Abs (N): scales diff by the highest absolute excursion over N bars (fast, adaptive).
Z-Score: scales by stdev(diff, N) and maps ±σ to ±100 via a user factor.
ATR-Scaled: scales by ATR * k, relating deviation to current volatility.
Percent Rank: ranks the magnitude of |diff| over N bars and reapplies the original sign.
All methods clamp to −100…+100 to keep visuals consistent across assets/TFs.
Extremes & confirmation: Dots print only when an extreme exits ±100 (optionally on bar close) and can be filtered by linger bars and short-term slope flip, reducing one-bar spikes.
Rails: When an extreme confirms, a rail is anchored at the corresponding price swing and can soft-fade and/or expire after X bars.
Trend color: MA color = Up (green) when oscillator > threshold and MA slope > 0; Down (magenta) for the opposite; Neutral otherwise.
Context panels:
Slim Gauge: current oscillator bucket (0–20) with the exact normalized reading.
Info Panel: TF, Trend, and 0–100 percent-ranks of Volume and ATR-based volatility grouped as Low / Medium / High.
SMAD isn’t a collection of plots; it’s a single framework that integrates:
a deviation-from-MA engine,
four interchangeable normalization models (selected per market regime),
a gated extreme detector (linger + slope + confirm-on-close), and
time-aware rails with soft fade/expiry, presented with a minimal gauge and info panel so traders can compare regimes across TFs without recalibrating thresholds.
How to use (examples, not signals)
Mean-revert plays: When price exits an extreme and prints a dot, look for reactions near the new rail. Combine with your S/R and risk model.
Trend continuation: In strong trends the oscillator will spend more time above/below zero; the colored MA helps keep you aligned and avoid fading every push.
Regime switching: Try Percent Rank or ATR-Scaled on choppy/alts; Z-Score on majors; Highest Abs (N) when you want fastest adaptation.
Risk ideas: Rails can be used as partial-take or invalidate levels. Always backtest on your pair/TF.
Key settings
Normalization: Highest Abs / Z-Score / ATR-Scaled / Percent Rank (with N & factors).
Filters: Extreme threshold, linger bars, slope lookback, confirm on close.
Rails: Expire after X bars; soft-fade step.
Panels: Slim gauge (bottom-right), Info panel (middle-right).
Notes & limits
Prints confirm after the extreme exits ±100; nothing repaints retroactively.
Normalization can change sensitivity—choose the one matching your asset’s regime.
NSR Dynamic Channel - HTF + ReversionNSR Dynamic Channel – HTF Volatility + Reversion
(Beginner-friendly, pro-grade, non-repainting)
The NSR Dynamic Channel builds an adaptive volatility envelope that compares current price action to a statistically-derived “expected” range pulled from a user-selected higher timeframe (HTF).
Is this just another keltner variation?
In short: Keltner reacts. NSR anticipates.
Keltner says “price moved a lot.”
NSR says “this move is abnormal compared to the last 2 days on a higher timeframe — and here’s the probability it snaps back.”
The channel is not a simple multiple of recent ATR or standard deviation; instead it:
Samples HTF volatility over a rolling window (default: last 2 days on the chosen HTF).
Expected Range
HTF Volatility Spread = StDev of 1-bar ATR on the HTF
Scales this HTF range to the current chart’s volatility using a compression ratio :
compRatio = SMA(High-Low over lookback) / Expected Range
This makes the channel tighten in low-vol regimes and widen in high-vol regimes .
Centers the channel on a composite mean ( AVGMEAN ) calculated from:
Smoothed Adaptive Averages of the current timeframe close
SMA of close over the user-defined lookback ( Slow )
The three means are averaged to reduce lag and noise.
Draws two layers :
HTF Expected Channel (gray fill) = PAMEAN ± expectedD
Dynamic Expected Band (inner gray) = HTF Expected Range
Adds a fast 2σ envelope around AVGMEAN using the standard deviation of close over the lookback period.
Core Calculations (Conceptual Overview)
HTF Baseline → ATR on user HTF → SMA & StDev over a defined number of days
Compression Ratio → Normalizes current range to HTF “normal” volatility
Expected Band Width → Expected Range × CompressionRatio
Bias Detection → % change of composite mean over 2 bars → “bullish” / “bearish” filter
Overextension % → Position of price within the expected band (0–100%)
How to Use It (3 Steps)
Apply to any chart – defaults work on futures (NQ/ES), stocks (SPY), crypto (BTC), forex, etc.
Price is outside both the fast 2σ envelope and the HTF-scaled expected band
Expect some sort of reversion
Enable alerts – two built-in conditions:
NSR Exit Long – bullish bias + high crosses upper expected edge
NSR Exit Short – bearish bias + low crosses lower expected edge
Optional toggles :
Show 2σ Price Range → fast overextension lines
Expected Channel → HTF-based gray fill
Mean → MEAN centerline
Why It Works
Context-aware : Uses HTF “normal” volatility as anchor
Adaptive : Shrinks in consolidation, expands in breakouts
Filtered signals : Only triggers when both statistical layers agree
Non-repainting : All calculations use confirmed bars
Happy trading!
nsrgroup
Moon Phases: 1st Quarter, Full, 3rd QuarterTracks the Lunar phase or Moon phase, which is the apparent shape of the Moon's day and night phases of the lunar day as viewed from earth.
Quantum Confluence Matrix [SurgeGuru]Executive Summary: The Quantum Market Matrix
This is not an indicator; it is a Multi-Dimensional Confluence Engine. It operates on the principle that when multiple, independent analytical dimensions converge at a single price point, they create a high-probability "reality distortion" in the market. It synthesizes:
Fibonacci Trend Structure (Mathematical Precision)
Rolling Angled Volume Profile (Market Energy & Liquidity)
Power Hour Analysis (Institutional Time-Based Liquidity)
Volume-Confirmed Breakouts (Momentum & Participation)
Solfeggio Harmonic Resonance (Proprietary Geometric Alignment - Beta)
The result is a tool that doesn't just show you what is happening, but predicts where the market is most likely to find significant support or resistance based on the confluence of mathematical, volume, temporal, and harmonic forces.
Core Analytical Dimensions
1. Adaptive Fibonacci Trend Framework
Dynamic Sensitivity: 12 user-selectable trend levels, from "Extreme" (0.5) for scalpable micro-moves to "Maximum" (7.0) for only the most dominant trends.
Volume-Integrated Fibs: Each Fibonacci level (0.236, 0.382, 0.618, 0.786) is dynamically weighted based on historical volume concentration, transforming static lines into volume-weighted probability zones.
Real-Time Confirmation: Live ✓/✗ signals appear when price touches a Fib level, filtered by real-time volume momentum, distinguishing high-conviction bounces from weak rejections.
2. Rolling Angled Volume Profile (RAVP)
Dynamic Liquidity Mapping: Projects a rolling volume histogram at an angle, visually mapping where the market has actually been transacting over the last N bars.
Energy Visualization: The slope and density of the profile show whether volume is expanding on advances (bullish energy) or declines (bearish energy), revealing the underlying force behind the trend.
3. Power Hour Institutional Framework
Critical Time Analysis: Identifies and analyzes the most volatile and significant period of the trading day (e.g., 3-4 PM NY Time).
Multi-Session Memory: Tracks and displays the last X Power Hour zones, showing how price interacts with these key institutional decision areas.
Fibonacci Projection: Overlays a Fibonacci grid on each Power Hour range, projecting key retracement and extension levels that often act as magnets for price.
4. Volume-Confirmed Breakout System
Momentum Validation: Replaces simple breakout arrows with a sophisticated volume confirmation system. A breakout with expanding volume gets a "✓" (high conviction), while a breakout on weak volume gets a "✗" (low conviction, potential false break).
5. Solfeggio Harmonic Resonance (Beta - The "Secret Sauce")
Geometric Confluence: This proprietary layer searches for alignment between classical Fibonacci levels and the ancient Solfeggio frequency ratios (396Hz, 417Hz, 528Hz, etc.).
Harmonic Convergence Zones: Highlights rare areas where three forces align: 1) a Fibonacci level, 2) a high volume node, and 3) a Solfeggio harmonic ratio.
Resonance Detection: Acts as a market "tuning fork," showing a cyan pulse (●) when price touches a harmonic zone with expanding volume, signaling a potent bounce or reversal point.
Golden Harmonic: Specifically marks zones where the 528Hz/396Hz ratio (approximating the Golden Ratio) aligns with Fibonacci, representing the strongest harmonic support/resistance.
Code Architecture: The Confluence Engine
The script is a state-managed, multi-layer event processor. It doesn't calculate continuous oscillators but instead identifies specific market events and manages their lifecycle.
Core Data Structures & State Management
fibData Structure: The central anchor. Manages the entire Fibonacci trend—the high, low, all Fib levels, labels, and volume confirmation markers. It's completely rebuilt on each trend change.
PowerHour Array: A rolling array that stores each Power Hour session as a self-contained object with its high, low, Fibonacci lines, and breakout labels.
HarmonicZone Array: Manages the Solfeggio harmonic elements—convergence boxes, resonance markers, and golden ratio tags.
The Operational Workflow (On Every Bar)
STEP A: Trend & Fibonacci Update
The supertrend() function determines the primary trend direction.
The core draw_fibb() function is called. This massive function:
Manages the lifecycle of the entire Fibonacci structure.
Calculates new Fib levels based on the current trend's high and low.
Calculates Volume Strength for each Fib level, scoring them from 0-100 based on historical volume concentration.
Dynamically adjusts line thickness and style based on volume strength.
Checks if price is touching any Fib level and, if so, places a ✓ or ✗ based on live volume momentum.
STEP B: Power Hour Management
gatherPowerHourData() checks if we are inside a Power Hour session. If so, it updates the current Power Hour's high and low.
drawPowerHours() renders the completed Power Hour zones, their Fibonacci grids, and extensions.
STEP C: Harmonic Analysis (If Enabled)
Convergence Checking: For each Fibonacci level, it checks if its ratio aligns with any Solfeggio frequency within the harmonicTolerance.
Zone Creation: If a Fibonacci level has strong volume AND harmonic alignment, it draws a "Harmonic Convergence Zone."
Resonance Marking: If price is currently touching a harmonic zone, it places a pulse marker (● for strong volume, ○ for weak).
STEP D: Breakout Detection
Checks for breaks of the most recent Power Hour high/low, filtering the signal through the volume confirmation system.
STEP E: Volume Profile Rendering (On Last Bar)
On the chart's final bar, it performs the computationally intensive task of calculating and drawing the angled volume profile, showing the distribution of volume over the lookback period.
The Synthesis: Why It's Revolutionary
The genius of this script is confluence. A trader isn't just seeing a "support level." They are seeing:
"A 0.618 Fibonacci retracement, which is also a 70-volume-strength level, that aligns with a Solfeggio harmonic ratio, and is being tested during the New York Power Hour session."
This multi-dimensional confirmation provides an institutional-grade edge, transforming subjective technical analysis into a systematic, probability-weighted decision framework. It answers not just "where" price might react, but "why here, why now, and with what conviction?"
Relative Rotation - RRG JdK RS-Ratio & RS-MomentumThis indicator calculates the JdK RS-Ratio and RS-Momentum, which form the basis of Relative Rotation Graphs (RRG). It compares the performance of any asset against a benchmark (default: SPY) to identify the current RRG quadrant: LEADING, WEAKENING, LAGGING, or IMPROVING.
The RS-Ratio (red line) and RS-Momentum (green line) are plotted around a baseline of 100. The background color indicates the current quadrant, and an optional feature allows coloring chart candles based on the RRG phase.
Alerts can be configured to notify when the asset transitions between quadrants, helping traders identify rotational shifts in relative strength.
Iani Indicator 📊 **Iani Indicator**
**Clean and simple trend direction tool**
**Description:**
Iani Indicator is a compact and easy-to-read visual tool based on EMA crossovers to identify market bias: **Buy, Sell, or Neutral**.
* The background between EMAs shows the current trend:
🟩 **Green** – bullish trend (Buy)
🟥 **Red** – bearish trend (Sell)
🟨 **Yellow** – flat / neutral zone
* Text labels “Buy”, “Sell”, or “Neutral” appear automatically when direction changes.
* Works smoothly on any timeframe – ideal for both scalping and swing trading.
**Purpose:**
To give traders a clear, noise-free view of market direction at a glance.
---
👉 Short version (for TradingView “Short Description” field):
**Simple EMA-based indicator showing Buy, Sell, or Neutral bias with clean background colors.**
SH/SL with Trend TableHelps in identify Swing High and Swing Low in chart time frame.
Trend is also mentioned in Chart.
Vol Vahid// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © amir
//@version=5
indicator("Vol Vahid")
=ta.dmi(14,14)
sw=input.bool(true,'Highlight Ranging/Sideways')
showbarcolor=input.bool(true,'Apply Barcolor')
show_Baseline=input.bool(true,'Show Hull Trend')
rsiLengthInput = input.int(14, minval=1, title="RSI Length1", group="RSI Settings")
rsiLengthInput2 = input.int(28, minval=1, title="RSI Length2", group="RSI Settings")
trendlen= input(title='Hull Trend Length', defval=30,group='Hull Trend')
oversold=input.int(30, minval=1, title="Over Sold", group="RSI Settings")
overbought=input.int(70, minval=1, title="Over Bought", group="RSI Settings")
BBMC=ta.hma(close,trendlen)
MHULL = BBMC
SHULL = BBMC
hmac=MHULL > SHULL ?color.new(#00c3ff , 0):color.new(#ff0062, 0)
buysignal=MHULL > SHULL
sellsignal=MHULL < SHULL
frsi=ta.hma(ta.rsi(close,rsiLengthInput),10)
srsi=ta.hma(ta.rsi(close,rsiLengthInput2),10)
hullrsi1=ta.rsi(MHULL,rsiLengthInput)
hullrsi2=ta.rsi(SHULL,rsiLengthInput)
rsic=frsi>srsi?color.new(#00c3ff , 0):color.new(#ff0062, 0)
barcolor(showbarcolor?hmac:na)
hu1=plot(show_Baseline?hullrsi1:frsi,title='HMA1',color=color.gray,linewidth=1,display=display.none)
hu2=plot(show_Baseline?hullrsi2:srsi,title='HMA2',color=color.gray,linewidth=1,display=display.none)
fill(hu1,hu2,title='HULL RSI TREND',color=show_Baseline?hmac:rsic)
fill(hu1,hu2,title='HULL with Sideways',color=sw and adx<20?color.gray:na)
rsiUpperBand2 = hline(90, "RSI Upper Band(90)", color=color.red,linestyle=hline.style_dotted,display=display.none)
rsiUpperBand = hline(overbought, "RSI Upper Band", color=color.red,linestyle=hline.style_dotted,display=display.none)
fill(rsiUpperBand2,rsiUpperBand,title='Buy Zone',color=color.red,transp=80)
hline(50, "RSI Middle Band", color=color.new(#787B86, 50),linestyle=hline.style_solid)
rsiLowerBand = hline(oversold, "RSI Lower Band", color=color.green,linestyle=hline.style_dotted,display=display.none)
rsiLowerBand2 = hline(10, "RSI Lower Band(10)", color=color.green,linestyle=hline.style_dotted,display=display.none)
fill(rsiLowerBand,rsiLowerBand2,title='Sell Zone',color=color.green,transp=80)
plotshape(buysignal and sellsignal ?hullrsi1 :na, title='Buy', style=shape.triangleup, location=location.absolute, color=color.new(color.yellow, 0), size=size.tiny, offset=0)
plotshape(sellsignal and buysignal ?hullrsi1 :na, title='Sell', style=shape.triangledown, location=location.absolute, color=color.new(color.red, 0), size=size.tiny, offset=0)
alertcondition(buysignal and sellsignal ,title='RSI TREND:Buy Signal',message='RSI TREND: Buy Signal')
alertcondition(sellsignal and buysignal ,title='RSI TREND:Sell Signal',message='RSI TREND: Sell Signal')
ROBUST iFVG [SurgeGuru]The FVG/iFVG Robust Lifecycle indicator is a sophisticated market structure tool that moves beyond simple gap detection. It tracks the complete narrative of a Fair Value Gap—from its creation as a market imbalance to its resolution and the establishment of a new equilibrium zone. This dual-phase, institutional-grade approach provides a dynamic map of support and resistance, offering a profound edge in predicting price behavior.
Core Concept: The Two-Phase Lifecycle
The indicator is built on the principle that a Fair Value Gap has two distinct lives:
Phase 1: The Imbalance (FVG)
What it is: A rapid price move that leaves behind a "gap" or "void" with no trading activity.
Market Implication: Represents a moment of intense buying or selling pressure, creating an inefficient area price is statistically likely to return to.
Phase 2: The Equilibrium (iFVG)
What it is: A powerful support/resistance zone that forms the instant the original FVG is filled.
Market Implication: Represents the market's new consensus of "fair value" after the initial imbalance has been arbitraged away. This is often where institutional order flow resides for the next significant move.
Differentiators & "Robust" Features
Lifecycle Tracking: Unlike basic FVG tools that disappear once filled, this indicator captures the subsequent, often more important, iFVG phase.
Configurable Longevity: Offers two professional methods for managing iFVG lifespan (Full Cross or Number of Bars), preventing chart clutter while preserving relevant levels.
Advanced Alerting: Provides separate, configurable alerts for both FVG creation and iFVG formation, allowing traders to anticipate both the fill of an imbalance and the reaction at the new equilibrium.
Visual Hierarchy: Uses distinct, customizable colors and borders to instantly communicate the difference between an active imbalance (FVG) and an active decision zone (iFVG).
Code Architecture & How It Works
The script is a state management system built around two primary arrays that track the lifecycle of detected gaps.
1. Core Data Structures
The entire system is powered by parallel arrays that maintain the state of each detected zone:
FVG Arrays (Tracks Phase 1 - The Imbalance):
fvg_boxes : Stores the drawing object for each FVG.
fvg_top & fvg_bot : Store the price boundaries of the gap.
fvg_is_bull : Stores whether the FVG is bullish or bearish.
fvg_mitigated : The core state flag; becomes true when the FVG is filled, triggering the creation of an iFVG.
iFVG Arrays (Tracks Phase 2 - The Equilibrium):
ifvg_boxes : Stores the drawing object for each Inverse FVG.
ifvg_top & ifvg_bot : Inherits the price values from the parent FVG.
ifvg_is_bull : Is the inverse of the parent FVG's bias.
ifvg_original_fvg_index : Maintains a link back to the parent FVG for advanced management.
2. The Operational Workflow (Step-by-Step)
On every new bar, the script executes the following sequence:
STEP A: FVG Detection
The script checks for the 3-bar FVG pattern:
bullish_fvg = low > high (Current low is above the high from two bars ago)
bearish_fvg = high < low (Current high is below the low from two bars ago)
Upon detection, it creates a new box and pushes all its properties (price levels, bullish flag, etc.) into the FVG Arrays.
STEP B: FVG Management & Mitigation Check
The script iterates through all active FVGs in the fvg_boxes array.
For each FVG, it checks if the current price has "mitigated" (filled) the gap:
A Bullish FVG is mitigated if the current bar's low (body_low) crosses below the FVG's bottom boundary (bot_val).
A Bearish FVG is mitigated if the current bar's high (body_high) crosses above the FVG's top boundary (top_val).
If mitigation occurs, the script sets the FVG's fvg_mitigated flag to true.
STEP C: iFVG Creation (The Phase Transition)
The moment an FVG's fvg_mitigated flag is set to true, the script immediately creates a new iFVG.
It takes the exact same price levels from the parent FVG but inverts the bias (a mitigated Bullish FVG creates a Bearish iFVG, and vice versa).
It draws a new box with the user-defined iFVG color and border, and pushes all its properties into the iFVG Arrays.
STEP D: iFVG Lifecycle Management
The script iterates through all active iFVGs.
Depending on the user's setting, it manages the iFVG's lifespan:
Full Cross Mode: The iFVG remains active until price fully crosses through it again. Once crossed, the iFVG and its parent FVG are permanently deleted.
Number of Bars Mode: The iFVG remains visible for a fixed number of bars after its creation, then is automatically deactivated.
STEP E: Cleanup & Garbage Collection
The script constantly manages the visibility of boxes based on user toggles (show_normal_fvg, show_ifvg). If a feature is turned off, the boxes are not deleted but made transparent, allowing for fast performance and instant reactivation.
3. Alert System Architecture
The alert system is integrated into the state transitions:
FVG Alerts fire during STEP A (on creation).
iFVG Alerts fire during STEP C (on creation, which is the moment of FVG mitigation).
iFVG Mitigation Alerts fire during STEP D (when an iFVG is removed in Full Cross mode).
Conclusion
The FVG/iFVG Robust Lifecycle is not a mere indicator; it is a state-aware market analysis engine. By architecting a system that tracks the entire lifecycle of a price gap, it provides a dynamic, self-cleaning map of market imbalance and subsequent equilibrium. This offers a systematic framework for identifying high-probability support/resistance zones, making it an indispensable tool for discerning the underlying structure of price action.
Credits: TONO . this robust system was upgraded from his code.
Day Range Divider DTSCopied it for DTS purposes to ensure proper tracking, testing, and verification within the DTS workflow. This copy is intended for reference, analysis, and any required adjustments without affecting the original version.
AI ALGO LIVEAI ALGO LIVE is an advanced algorithmic visualization tool designed to analyze market momentum, trend direction, and potential reversal areas.
Built with an ATR-based dynamic trailing system, it tracks price movement and highlights possible Buy / Sell zones.
It automatically adapts to market volatility, aiming to identify trend shifts early and visually.
The system works seamlessly with Heikin Ashi candles, Stochastic, MACD, and MFI, helping viewers understand how multi-indicator alignment occurs during market cycles.
Its goal is to enhance market awareness — not to provide trade signals or financial advice.
⚠️ Disclaimer:
This indicator is for educational and analytical purposes only.
The visual signals on screen do not constitute investment advice or recommendations.
Always perform your own analysis and manage your risk responsibly.
Institutional Confluence Suite [SurgeGuru]Executive Summary
This is not an indicator; it is a Predictive Confluence Engine. It represents a quantum leap in technical analysis by synthesizing four distinct analytical dimensions—Fibonacci mathematics, temporal market energy, volume dynamics, and harmonic resonance—into a single, predictive framework. Its specialty lies in identifying High-Probability Confluence Zones where multiple independent factors align to signal potent market turning points.
Core Differentiators
Adaptive Fibonacci-Volume Synthesis:
Dynamic Support/Resistance: Transforms static Fibonacci levels into dynamic, volume-weighted zones. The script calculates a Volume Strength Score (0-100) for each key Fib level (0.236, 0.382, 0.618, 0.786).
Intelligent Visualization: Line thickness and style adapt in real-time: Thick/Solid for high-volume, high-confidence levels, and Thin/Dotted for low-volume, weak levels.
Real-Time Confirmation: Provides immediate ✓/✗ signals when price touches a Fib level, filtered by live volume momentum, distinguishing between high-conviction rejections and weak bounces.
Temporal Power Zone Analysis (Power Hour):
Institutional-Grade Confluence Detection: The system's masterstroke is identifying when a Power Hour Fibonacci level aligns with the Primary Trend Fibonacci level. These rare convergences are marked with a lightning bolt (⚡) and represent a consensus across timeframes and participant groups.
Structural Context: Power Hour zones provide the macro-structure, framing the market's most recent high-volatility battle. The subsequent price action within and around this zone reveals the dominant force's next intended direction.
Solfeggio Harmonic Resonance (Proprietary Beta):
Predictive Convergence: Identifies the rarest and most powerful market condition: a Harmonic Convergence Zone. This occurs when a Fibonacci level, a high-volume node, and a Solfeggio frequency ratio all align within a precise tolerance.
Market "Tuning Fork": The system acts as a resonance detector. A cyan pulse marker (●) signals when price touches a harmonic zone with expanding volume—like striking a tuning fork—indicating a high-probability bounce or reversal.
Unified Trend Framework:
Granular Trend Control: Offers 12 levels of trend sensitivity, from "Extreme" (0.5) for scalpers to "Maximum" (7.0) for position traders, ensuring the analysis is tailored to any trading style or timeframe.
Volume-Fueled Trends: The Angled Volume Profile visually demonstrates whether a trend is pushing (volume dominant on upper bars), breaking (volume dominant on lower bars), or healthy and sustained (balanced volume distribution).
Synthesis: The Confluence Engine
The true genius of this system is how these dimensions interact:
The Power Hour sets the tactical battlefield.
The Fibonacci-Volume analysis identifies the key defensive and offensive lines within that battlefield.
The Solfeggio Harmonics act as a sonar, pinging at the most potent points of alignment.
The Unified Trend Framework provides the strategic context and confirms the overall campaign's direction.
Conclusion
This script moves beyond analysis into the realm of market forecasting. It doesn't just show you what is happening; it predicts where the market is most likely to respect structure by identifying zones where mathematics, market energy, time, and resonance converge. This is institutional-grade intelligence, delivering a definitive and actionable edge by answering the critical question: "Where is the highest probability for the next significant move?"
Overall Architecture
The script operates as a multi-layered event detector. Instead of calculating continuous oscillators, it identifies specific market events (like a new swing high) and then performs complex logic to draw the appropriate structures (like an Order Block). It maintains internal arrays (lists) of these events and their corresponding drawings, constantly updating and cleaning them as new price data arrives.
1. Market Structure & Swing Detection
This is the foundational layer that identifies the market's basic rhythm.
How it Works:
Swing Point Identification: The core function queryPatterns(lastPrice, midPrice, prevPrice, isSwingHigh) looks for a three-bar pattern. For a swing high, it checks if the middle bar is higher than both its immediate neighbor bars. For a swing low, it checks if the middle bar is lower.
Multi-Timeframe Stack: The script creates three independent analyzers for Short-Term (stHigh, stLow), Intermediate-Term (itHigh, itLow), and Long-Term (ltHigh, ltLow) structures.
Short-Term: Reacts directly to the 3-bar pattern on the raw price series.
Intermediate-Term: Its input is the output of the Short-Term detector. It only records a new swing point when the Short-Term system identifies one. This creates a higher-quality, filtered set of swings.
Long-Term: Likewise, it builds upon the Intermediate-Term swings. This hierarchical filtering ensures each timeframe captures genuinely significant structural points.
Structure Breaks (MSS/BOS): The renderStructures() method is the key. It waits for price to "cross" a previously identified swing point.
If price crosses above a prior swing high, it draws a bullish line and labels it a Break of Structure (BOS), indicating renewed bullish momentum.
If price crosses below a prior swing low, it draws a bearish line and labels it a Change of Character (CHoCH) or Market Structure Shift (MSS), indicating a potential trend reversal.
2. Order Block & Breaker Block Detection (LuxAlgo Logic)
This layer identifies areas where "smart money" likely placed significant orders.
How it Works:
Fractal Detection: It uses a fractalHigh and fractalLow system (arrays of recent swing points) to identify the most significant pivot highs and lows, filtered by the user-selected term.
Block Creation - The "Cause": When price closes beyond a fractal high/low, it triggers a lookback period.
For a Bullish Order Block (after breaking a high): It looks back from the break point to the fractal and finds the bar with the lowest low within that range. The high and low (or open/close if body is selected) of that bar define the Order Block. The logic is that this was the last consolidation area before the bullish breakout.
Breaker Block - The "Effect": The script then monitors these Order Blocks.
If price re-enters a Bullish Order Block and breaks below its low, that block is "breached." It is then re-classified as a Breaker Block and visually changes (e.g., color, extended lines). This indicates the failure of that buy-side level, which now becomes resistance.
3. Liquidity Analysis (Buyside/Sellside & Voids)
This layer maps out the market's "why" - the liquidity pools that price is drawn to.
Buyside/Sellside Liquidity:
Pivot-Based Aggregation: It uses the multi-timeframe swing points (topLQ, btmLQ) as potential liquidity targets.
Zone Confirmation: It doesn't just use a single swing point. It checks a historical array of all prior pivots (aZZ). If it finds several pivots clustered within a narrow band (defined by atr / liqMar), it marks the entire zone as a Liquidity Pool.
Visualization: It draws a semi-transparent box around this zone. A "Buyside Liquidity" zone is below price (where sell-stops are hunted), and a "Sellside Liquidity" zone is above price (where buy-stops are hunted).
Liquidity Voids:
Gap Detection: This is a simpler, more geometric concept. It looks for large gaps between candles that exceed a threshold (based on atr200).
Visual Representation: When such a gap is found (e.g., the current low is significantly above the high of two bars ago), it fills the space with a series of small, colored boxes. This creates a clear visual "void" area, indicating a price range with little trading activity that will likely be traversed quickly.
4. Enhanced Liquidity Detection (BigBeluga Logic)
This is a separate, volume-informed system for spotting immediate liquidity.
How it Works:
Volume Spike Context: It calculates a normalized volume value (norm_vol) by comparing current volume to a high percentile of recent volume. This identifies unusually high volume activity.
Price Rejection: It looks for simple price patterns: a bar that makes a new high (or low) and is immediately rejected (the next bar does not continue in that direction).
Dynamic Box Creation: When these two conditions align (high volume + price rejection), it draws a box extending from that high/low. The opacity and size of the box are directly tied to the strength of the volume spike. A massive volume spike creates a very prominent box, signaling a critical liquidity level where a significant battle between buyers and sellers occurred.
Synthesis: The "Behind the Scenes" Workflow
On every new bar, the script performs this orchestrated sequence:
Update & Detect: It updates all its internal swing point arrays and checks for new Market Structure events.
Check Conditions: It runs the Order Block logic to see if any fractal levels have been breached, creating new blocks.
Monitor & Modify: It checks all existing Order Blocks to see if any have been "breached," converting them to Breaker Blocks.
Map Liquidity: It updates the liquidity pools based on the latest swings and checks for new liquidity voids based on recent price gaps.
Volume Analysis: The enhanced system checks for volume-based liquidity zones.
Garbage Collection: It constantly cleans up old drawings (lines, boxes, labels) that are no longer relevant to keep the chart performant and uncluttered.
In essence, the code acts as a state machine that tracks the market's evolution through its structural breaks, order placements, and liquidity interactions, translating this complex state into a clear, visual narrative for the trader.
Credits: LuxAlgo, PrimeChart, Trendoscope
Sector Relative StrengthThis indicator measures a stock's Real Relative Strength against its sector benchmark, helping you identify stocks that are outperforming or underperforming their sector peers.
The concept is based on the Real Relative Strength methodology popularized by the r/realdaytrading community.
Unlike traditional relative strength calculations that simply compare price ratios, this indicator uses a more sophisticated approach that accounts for volatility through ATR (Average True Range), providing a normalized view of true relative performance.
Key Features
Automatic Sector Detection
Automatically detects your stock's sector using TradingView's built-in sector classification
Maps to the appropriate SPDR Sector ETF (XLK, XLF, XLV, XLY, XLP, XLI, XLE, XLU, XLB, XLC)
Supports all 20 TradingView sectors
Sector ETF Mappings
The indicator automatically compares your stock against:
Technology: XLK (Technology Services, Electronic Technology)
Financials: XLF (Finance sector)
Healthcare: XLV (Health Technology, Health Services)
Consumer Discretionary: XLY (Retail Trade, Consumer Services, Consumer Durables)
Consumer Staples: XLP (Consumer Non-Durables)
Industrials: XLI (Producer Manufacturing, Industrial Services, Transportation, Commercial Services)
Energy: XLE (Energy Minerals)
Utilities: XLU
Materials: XLB (Non-Energy Minerals, Process Industries)
Communications: XLC
Default: SPY (for Miscellaneous or unclassified sectors)
Customizable Settings
Comparison Mode: Choose between automatic sector comparison or custom symbol
Length: Adjustable lookback period (default: 12)
Smoothing: Apply moving average to reduce noise (default: 3)
Visual Clarity
Green line: Stock is outperforming its sector
Red line: Stock is underperforming its sector
Zero baseline: Clear reference point for performance
Clean info box: Shows which ETF you're comparing against
How It Works
The indicator calculates relative strength using the following methodology:
Rolling Price Change: Measures the price movement over the specified length for both the stock and its sector ETF
ATR Normalization: Uses Average True Range to normalize for volatility differences
Power Index: Calculates the sector's strength relative to its volatility
Real Relative Strength: Compares the stock's performance against the sector's power index
Smoothing: Applies a moving average to reduce single-candle spikes
Formula:
Power Index = (Sector Price Change) / (Sector ATR)
RRS = (Stock Price Change - Power Index × Stock ATR) / Stock ATR
Smoothed RRS = SMA(RRS, Smoothing Length)
RSI + MFIRSI and MFI combined, width gradient fields if OS or OB, shows divergences separate for wicks and bodies, shows dots when mfi and rsi oversold at the same time.
Continuation Probability (0–100)This indicator helps measure how likely the current candle trend will continue or reverse, giving a probability score between 0–100.
It combines multiple market factors trend, candle strength, volume, and volatility to create a single, intuitive signal.






















