QuantLabs MASM Correlation TableThe Market is a graph. See the flows:
The QuantLabs MASM is not a standard correlation table. It is an Alpha-Grade Scanner architected to reveal the hidden "hydraulic" relationships between global macro assets in real-time.
Rebuilt from the ground up for Version 3, this engine pushes the absolute limits of the Pine Script™ runtime. It utilizes a proprietary Logarithmic Math Engine, Symmetric Compute Optimization, and a futuristic "Ghost Mode" interface to deliver a 15x15 real-time correlation matrix with zero lag.
Under the Hood: The Quant Architecture
We stripped away standard libraries to build a lean, high-performance engine designed for institutional-grade accuracy.
1. Alpha Math Engine (Logarithmic Returns) Most tools calculate correlation based on Price, which generates spurious signals (e.g., "Everything is correlated in a bull run").
The Solution: Our engine computes Logarithmic Returns (log(close/close )) by default. This measures the correlation of change (Velocity & Vector), not price levels.
The Result: A mathematically rigorous view of statistical relationships that filters out the noise of general market drift.
Dual-Core: Toggle seamlessly between "Alpha Mode" (Log Returns) for verified stats and "Visual Mode" (Price) for trend alignment.
Calculation Modes: Pearson (Standard), Euclidean (Distance), Cosine (Vector), Manhattan (Grid).
2. Symmetric Compute Optimization Calculating a 15x15 matrix requires evaluating 225 unique relationships per bar, which often crashes memory limits.
The Fix: The V3 Engine utilizes Symmetric Logic, recognizing that Correlation(A, B) == Correlation(B, A).
The Gain: By computing only the lower triangle of the matrix and mirroring pointers to the upper triangle, we reduced computational load by 50%, ensuring a lightning-fast data feed even on lower timeframes.
3. Context-Aware "Ghost Mode" The UI is designed for professional traders who need focus, not clutter.
Smart Detection: The matrix automatically detects your current chart's Ticker ID. If you are trading QQQ, the matrix will visually highlight the Nas100 row and column, making them opaque and bright while dimming the rest.
Dynamic Transparency: Irrelevant data ("Noise" < 0.3 correlation) fades into the background. Only significant "Alpha Signals" (> 0.7) glow with full Neon Saturation.
Key Features
Dominant Flow Scanner: The matrix scans all 105 unique pairs every tick and prints the #1 Strongest Correlation at the bottom of the pane (e.g., DOMINANT FLOW: Bitcoin ↔ Nas100 ).
Streak Counter: A "Stubbornness" metric that tracks how many consecutive days a strong correlation has persisted. Instantly identify if a move is a "flash event" or a "structural trend."
Neon Palette: Proprietary color mapping using Electric Blue (+1.0) for lockstep correlation and Deep Red (-1.0) for inverse hedging.
Usage Guide
Placement: Best viewed in a bottom pane (Footer).
Assets: Pre-loaded with the Essential 15 Macro Drivers (Indices, BTC, Gold, Oil, Rates, FX, Key Sectors). Fully editable via settings (Ticker|Name).
Reading the Grid:
🔵 Bright Blue: Assets moving in lockstep (Risk-On).
🔴 Bright Red: Assets moving perfectly opposite (Hedge/Risk-Off).
⚫ Faded/Black: No statistical relationship (Decoupled).
Key Improvements Made:
Formatting: Added clear bullet points and bolding to make it scannable.
Clarity: Clarified the "Logarithmic Returns" section to explain why it matters (Velocity vs. Price Levels).
Tone: Maintained the "high-tech/quant" vibe but removed slightly clunky phrases like "spurious signals" (unless you prefer that academic tone, in which case I left it in as it fits the persona).
Structure: Grouped the "Modes" under the Math Engine for better logic.
Created and designed by QuantLabs
Wskaźniki i strategie
Supertrend + EMA + DWMY + Session Stats
This script is a comprehensive Multi-Strategy Intraday & Swing Trading Toolkit. It merges four professional-grade indicators into a single, optimized "all-in-one" script for TradingView (Pine Script v6).
The goal of this combined tool is to provide Trend Confluence (using EMAs and Supertrend), Key Support/Resistance Levels (using DWMY Opens), and Timing Analysis (using Sessions).
Core Components & Functionality
1. Supertrend (Volatility-Based Trend)
What it does: Uses the Average True Range (ATR) to track market volatility and determine trend direction.
Visuals: Plots a line that turns Green (Uptrend) or Red (Downtrend) with a gradient background fill to highlight the current "regime."
Usage: It acts as a primary filter. You generally look for "Buy" setups when the price is above the Green line and "Sell" setups when below the Red line.
2. Michael’s EMA (Momentum Crossover)
What it does: Tracks two Exponential Moving Averages (defaults are 12 and 21) to find momentum shifts.
Visuals: The EMA lines change color based on the trend. When the small EMA crosses the big EMA, it triggers Crossover Arrows (hidden by default in some versions but available in the code).
Usage: Used for precise entry timing. A "Golden Cross" (small above big) confirms bullish momentum.
3. DWMY Labelled Opens (Institutional Levels)
What it does: Automatically plots horizontal lines at the exact price where the Day, Week, Month, and Year began.
Visuals: Color-coded horizontal lines with labels (e.g., "Daily," "Monthly") that extend to the right of the chart.
Usage: These are "Institutional Reference Points." Traders use these levels because the market often reacts strongly (bounces or breaks) when price returns to a Monthly or Yearly open.
4. Sessions with Stats (Timing & Volatility)
What it does: Draws dynamic "range boxes" for specific trading hours like the London Open, NY Open, or Tokyo Session.
Visuals: Shaded boxes that highlight the High and Low of that specific time window.
Percentage Stats: (Added per your request) A label on top of each box shows the session name and the Percentage Move (e.g., +0.50%) from the start of the session to the current price.
Usage: Helps you see which sessions are the most volatile and identify "Initial Balance" breakouts.
MACD-v Bullish/Bearish DivergenceMACD-v Bullish/Bearish Divergence
Overview This indicator is a specialized divergence detector based on the MACD-v (Volatility Normalized Momentum) concept. Unlike standard MACD which uses absolute price differences, MACD-v normalizes values against volatility (ATR), allowing for fixed, universal Overbought/Oversold thresholds across all assets and timeframes.
Recommendation: This script is highly effective when paired with the original MACD-v by Alex Spiroglou. While this indicator focuses on identifying and visualizing divergence entries, using the original oscillator alongside it provides the best visual context for the overall momentum structure.
How It Works
This tool uses a dual-signal mechanism (Raw Line + Signal Smooth) to identify specific divergence setups:
Setup (Yellow/Blue Dots): Identifies when price momentum has extended significantly into extreme zones (Overbought/Oversold).
Trigger (Red/Green Dots): Fires when price fails to make a new momentum extreme despite price action (classic divergence/failure swing).
Active State (Background Color): Once a trigger fires, the background highlights (Red for Bearish, Green for Bullish) to indicate an active divergence play.
Reset (Exit): The signal state clears when momentum returns to the neutral "safe zone."
Important Note: Momentum Washout
The colored background persists as long as the divergence trade remains valid. Traders should note the concept of "Momentum Washout":
Signal End: The background color turns off when the MACD returns to the neutral range, indicating the primary high-velocity impulse is over.
Performance Continuation: Significant positive or negative price performance can often continue even after the background signal ends. This period allows the remaining momentum to "wash out" or drift before the next major impulse.
Strategy Tip: The indicator is designed to capture the high-volatility portion of the reversal. Do not assume the end of the signal is the absolute top or bottom of the trend; it simply marks the normalization of momentum.
Strategy Recommendation: Multi-Timeframe Analysis
Divergence signals are most powerful when confirmed across timeframes. It is highly recommended to look for alignment before taking a trade:
Trend Confirmation: If you see a signal on a lower timeframe (e.g., 5m or 15m), check a higher timeframe (e.g., 1H or 4H). A bullish divergence on the 5m is significantly more reliable if the 1H momentum is already bullish or oversold.
Signal Stacking: Valid signals often appear sequentially—first on the 1m, then the 5m, and finally the 15m. Waiting for this "cascade" can filter out false reversals.
Visual Guide
🔵 Blue Dot: Bullish Divergence Setup (Watch for entry).
🟢 Green Dot: Bullish Divergence Trigger (Long Entry).
🟡 Yellow Dot: Bearish Divergence Setup (Watch for entry).
🔴 Red Dot: Bearish Divergence Trigger (Short Entry).
Background Color: Indicates an active trade (Red = Bearish / Green = Bullish).
Settings
Auto-Detect: Automatically switches between Scalping settings (tighter thresholds) for low timeframes and Swing settings for high timeframes.
Strict Invalidation: If enabled, cancels a setup if momentum pushes too far in the opposite direction before triggering.
Active Signal Multiplier: Dynamically smooths the signal line only when a trade is active to prevent premature exits during choppy corrections.
Disclaimer: This tool is for educational purposes and trend analysis only. Always manage your risk appropriately.
Pivot Edge ProOverview
Smart Pivot Analytics is a highly accurate technical analysis tool designed to identify and validate significant price levels. Unlike standard pivot indicators that only mark recent highs, this tool backtests each identified pivot against thousands of historical candlesticks to calculate its real-world “success rate.”
Key Features
Historical Backtesting: The indicator scans up to 4,900 historical columns to find every instance where price interacted with a specific pivot level.
Strength Score (%): Each level is assigned a percentage score based on its reversal rate. It calculates how many times the price has successfully reached and rejected the level, providing a statistical “hit rate.”
Dynamic Hit Counter: Displays the exact number of times a level has been tested (hit), helping traders distinguish between new levels and established “old” levels.
Smart Filtering: To keep the chart clean, the indicator automatically filters out weak levels and prevents “clutter” by merging levels that are too close together.
Infinite Left Projection: Lines extend left to infinity, allowing traders to see the historical significance of a level across the entire price history at a glance.
How to Trade with It
Red Levels (High Power > 75%): These are “Top Reaction Zones”. Expect a strong price rejection or significant breakout when these levels are tested.
Orange Levels (Medium Power): Suitable for profit targets or as secondary confirmation for entering a trade.
Encounter: Use these levels in conjunction with your existing strategy. When a high power pivot aligns with your entry signal, the probability of a successful trade increases significantly.
Technical Parameters
Lookback Period: Defines how far back in history the script calculates power.
Touch Radius: The "sensitivity" of the level (how close the price has to get to be considered a "hit").
Minimum Strength: A filter to show only the most reliable levels.
Watchlist Auto Buy/Sell AlertsTrial for the best. This indicator is built to assess the chart and make it easier for traders to identify coins that are available for trading and minimize losses.
Volume PressureVolume Pressure
Volume Pressure is a volume-flow based oscillator designed to visualize relative buying and selling pressure using a refined Volume Flow Index (VFI) methodology. The indicator evaluates how volume behaves in relation to price movement and volatility, and presents this information as a smooth flow line with adaptive color intensity for easier interpretation.
What the Indicator Shows
Volatility-filtered volume participation
Directional volume flow derived from price change
A smoothed flow line with dynamic color intensity
A signal line for visual reference
The flow line is layered to enhance visibility, making it easier to read on dark chart backgrounds and smaller panels.
How to Read It
Flow Line: Represents relative volume pressure
Above zero: positive pressure
Below zero: negative pressure
Color Intensity:
Brighter colors indicate stronger relative pressure
Faded colors indicate weaker or neutral pressure
Signal Line: A smoothed reference of flow behavior
Usage Notes
Designed as a visual analysis and confirmation tool
Can be used across intraday and higher timeframes
Best used alongside price action, trend, or structure analysis
Disclaimer
This indicator is for analytical and educational purposes only.
It does not provide buy or sell signals and does not imply future performance.
Buying Opportunity Score V2.2Buying Opportunity Indicator V2.2
What This Indicator Does
This indicator identifies potential buying opportunities during market fear and pullbacks by combining multiple technical signals into a single composite score (0-100). Higher scores indicate more fear/oversold conditions are present simultaneously.
Why These Components?
Market bottoms typically occur when multiple fear signals align. This indicator combines five complementary measurements that each capture different aspects of market stress:
1. VIX Level (30 points) - Measures implied volatility/fear. VIX spikes during selloffs as traders buy protection. Thresholds based on historical percentiles (VIX 25+ is ~85th percentile historically).
2. Price Drawdown (30 points) - Distance from 52-week high. Larger drawdowns create better risk/reward for mean reversion entries. A 10%+ drawdown from highs historically presents better entry points than buying at all-time highs.
3. RSI 14 (12 points) - Classic momentum oscillator measuring oversold conditions. RSI below 30 indicates short-term selling exhaustion.
4. Bollinger Band Position (13 points) - Statistical measure of price extension. Price below the lower band (2 standard deviations) indicates statistically unusual weakness.
5. VIX Timing (15 points) - Bonus points when VIX is declining from a recent peak. This helps avoid catching falling knives by waiting for fear to subside.
How The Score Works
- Each component contributes points based on severity
- Components are weighted by predictive value from historical analysis
- Score of 70+ means multiple fear signals are present
- Score of 80+ means extreme fear across most components
How To Use
1. Apply to SPY, QQQ, or IWM on daily timeframe
2. Monitor the Current Score in the statistics table
3. Scores below 50 = normal conditions, no action needed
4. Scores 60-69 = elevated fear, monitor closely
5. Scores 70+ = consider entering long positions
6. Scores 80+ = strongest historical entry points
Important Limitations
- This is a research tool, not financial advice
- Past patterns may not repeat in the future
- Signals are infrequent (typically 2-4 per year reaching 70+)
- Works best on broad market ETFs; not validated for individual stocks
- Always use proper position sizing and risk management
- The indicator identifies conditions that have historically been favorable, but cannot predict future returns
Statistics Table
The table shows:
- Current Score with context message
- Chart Results: Rolling 1Y/3Y/5Y statistics from your loaded chart data
Alerts
Multiple alert options available for different score thresholds.
Open Source
Code is fully visible for review and educational purposes.
ICT ORB Killzones by MaxN (15 / 30m)Trading session open/close with first 15/30 min orbs
will just have to adjust time zones to your current time line
GMT +0
I use
Asia 23.00 - 06.00
London 07.00 - 16.00
New York 12.00 - 22.00
Advanced Multi-Level S/R ZonesAdvanced Multi-Level S/R Zones: The Comprehensive Guide
1. Introduction: The Evolution of Support & Resistance:
Support and Resistance (S/R) is the backbone of technical analysis. However, traditional methods of drawing these levels are often plagued by subjectivity. Two traders looking at the same chart will often draw two different lines. Furthermore, standard indicators often treat every price point equally, ignoring the critical context of Volume and Time.
The Advanced Multi-Level S/R Zones script represents a paradigm shift. It moves away from subjective line drawing and toward Quantitative Zoning. By utilizing statistical measures of variability (Standard Deviation, MAD, IQR) combined with Volume-Weighting and Time-Decay algorithms, this tool identifies where price is mathematically most likely to react. It treats S/R not as thin lines, but as dynamic zones of probability.
2. Core Logic and Mathematical Foundation:
To understand how to use this tool optimally, one must understand the "engine" under the hood. The script operates on four distinct pillars of logic:
A. Session-Based Data Collection:
The script does not look at every single tick. Instead, it aggregates data into "Sessions" (daily bars by default logic). It extracts the High, Low, and Total Volume for every session within the user-defined lookback period. This filters out intraday noise and focuses on the macro structure of the market.
B. Adaptive Statistical Variability:
Most Bollinger Band-style indicators use Standard Deviation (StdDev) to measure width. However, StdDev is heavily influenced by outliers (extreme wicks). This script offers a sophisticated Adaptive Method-Skewness Detection: The script calculates the skewness of the price distribution. Adaptive Selection: If the data is highly skewed (lots of outliers, typical in Crypto), it switches to MAD (Median Absolute Deviation). MAD is robust and ignores outliers. If the data is moderately skewed, it uses IQR (Interquartile Range). If the data is normal (Gaussian), it uses StdDev.
Benefit: This ensures the zone widths are accurate regardless of whether you are trading a stable Forex pair or a volatile Altcoin.
C. The Weighting Engine (Volume + Time)
Not all price history is equal. This script assigns a "Weight Score" to every session based on two factors:
Volume Weighting: Sessions with massive volume (institutional activity) are given higher importance. A high formed on low volume is less significant than a high formed on peak volume.
Time Decay: Recent price action is more relevant than price action from 50 bars ago. The script applies a decay factor (default 0.85). This means a session from yesterday has 100% impact, while a session from 10 days ago has significantly less influence on the zone calculation.
D. Clustering Algorithm
Once the data is weighted, the script runs a clustering algorithm. It looks for price levels where multiple session Highs (for Resistance) or Lows (for Support) congregate.
It requires a minimum number of points to form a zone (User Input: minPoints).
It merges nearby levels based on the Cluster Separation Factor.
This results in "Primary," "Secondary," and "Tertiary" zones based on the strength and quantity of data points in that cluster.
3. Detailed Features and Inputs Breakdown:
Group 1: Main Settings
Lookback Sessions (Default: 10): Defines how far back the script looks for pivots. A higher number (e.g., 50) creates long-term structural zones. A lower number (e.g., 5) creates short-term scalping zones.
Variability Method (Adaptive): As described above, leave this on "Adaptive" for the best results across different assets.
Zone Width Multiplier (Default: 0.75): Controls the vertical thickness of the zones. Increase this to 1.0 or 1.5 for highly volatile assets to ensure you catch the wicks.
Minimum Points per Zone: The strictness filter. If set to 3, a price level must be hit 3 times within the lookback to generate a zone. Higher numbers = fewer, but stronger zones.
Group 2: Weighting
Volume-Weighted Zones: Crucial for identifying "Smart Money" levels. Keep this TRUE.
Time Decay: Ensures the zones update dynamically. If price moves away from a level for a long time, the zone will fade in significance.
ATR-Normalized Zone Width: This is a dynamic volatility filter. If TRUE, the zone width expands and contracts based on the Average True Range. This is vital for maintaining accuracy during market breakouts or crashes.
Group 3: Zone Strength & Scoring
The script calculates a "Score" (0-100%) for every zone based on:
-Point Count: More hits = higher score.
-Touches: How many times price wicked into the zone recently.
-Intact Status: Has the zone been broken?
-Weight: Volume/Time weight of the constituent points.
-Track Zone Touches: Looks back n bars to see how often price respected this level.
-Touch Threshold: The sensitivity for counting a "touch."
Group 4: Visuals & Display
Extend Bars: How far to the right the boxes are drawn.
Show Labels: Displays the Score, Tier (Primary/Secondary), and Status (Retesting).
Detect Pivot Zones (Overlap): This is a killer feature. It detects where a Support Zone overlaps with a Resistance Zone.
Significance: These are "Flip Zones" (Old Resistance becomes New Support). They are colored differently (Orange by default) and represent high-probability entry areas.
Group 5: Signals & Alerts
Entry Signals: Plots Buy/Sell labels when price rejects a zone.
Detect Break & Retest: specifically looks for the "Break -> Pullback -> Bounce" pattern, labeled as "RETEST BUY/SELL".
Proximity Alert: Triggers when price gets within x% of a zone.
4. Understanding the Visuals (Interpreting the Chart)
When you load the script, you will see several visual elements. Here is how to read them:
The Boxes (Zones)
Red Shades: Resistance Zones.
Dark Red (Solid Border): Primary Resistance. The strongest wall.
Lighter Red (Dashed Border): Secondary/Tertiary. Weaker, but still relevant.
Green Shades: Support Zones.
Dark Green (Solid Border): Primary Support. The strongest floor.
Orange Boxes: Pivot Zones. These are areas where price has historically reacted as both support and resistance. These are the "Line in the Sand" for trend direction.
The Labels & Emojis
The script assigns emojis to zone strength:
🔥 (Fire): Score > 80%. A massive level. Expect a strong reaction.
⭐ (Star): Score > 60%. A solid structural level.
✓ (Check): Score > 40%. A standard level.
"⟳ RETESTING": Appears when a zone was broken, and price is currently pulling back to test it from the other side.
The Dashboard (Top Right)
A statistics table provides a "Head-Up Display" for the asset:
High/Low σ (Sigma): The variability of the highs and lows. If High σ is much larger than Low σ, it implies the tops are erratic (wicks) while bottoms are clean (flat).
Method: Shows which statistical method the Adaptive engine selected (e.g., "MAD (auto)").
ATR: Current volatility value used for normalization.
5. Strategies for Optimum Output
To get the most out of this script, you should not just blindly follow the lines. Use these specific strategies:
Strategy A: The "Zone Fade" (Range Trading)
This works best in sideways markets.
Identify a Primary Support (Green) and Primary Resistance (Red).
Wait for price to enter the zone.
Look for the "SUPPORT BOUNCE" or "RESISTANCE REJECTION" signal label.
Entry: Enter against the zone (Buy at support, Sell at resistance).
Stop Loss: Place just outside the zone width. Because the zones are calculated using volatility stats, a break of the zone usually means the trade is invalid.
Strategy B: The "Pivot Flip" (Trend Following)
This is the highest probability setup in trending markets.
Look for an Orange Pivot Zone.
Wait for price to break through a Resistance Zone cleanly.
Wait for the price to return to that zone (which may now turn Orange or act as Support).
Look for the "RETEST BUY" label.
Logic: Old resistance becoming new support is a classic sign of trend continuation. The script automates the detection of this exact geometric phenomenon.
Strategy C: The Volatility Squeeze
Look at the Dashboard. Compare High σ and Low σ.
If the values are dropping rapidly or becoming very small, the zones will contract (become narrow).
Narrow zones indicate a "Squeeze" or compression in price.
Prepare for a violent breakout. Do not fade (trade against) narrow zones; look to trade the breakout.
6. Optimization & Customization Guide
Different markets require different settings. Here is how to tune the script:
For Crypto & Volatile Stocks (Tesla, Nvidia)
Method: Set to Adaptive (Mandatory, as these assets have "Fat Tails").
Multiplier: Increase to 1.0 - 1.25. Crypto wicks are deep; you need wider zones to avoid getting stopped out prematurely.
Lookback: 20-30 sessions. Crypto has a long memory; short lookbacks generate too much noise.
For Forex (EURUSD, GBPJPY)
Method: You can force StdDev or IQR. Forex is more mean-reverting and Gaussian.
Multiplier: Decrease to 0.5 - 0.75. Forex levels are often very precise to the pip.
Volume Weighting: You may turn this OFF for Forex if your broker's volume data is unreliable (since Forex has no centralized volume), though tick volume often works fine.
For Scalping (1m - 15m Timeframes)
Lookback: Decrease to 5-10. You only care about the immediate session history.
Decay Factor: Decrease to 0.5. You want the script to forget about yesterday's price action very quickly.
Touch Lookback: Decrease to 20 bars.
For Swing Trading (4H - Daily Timeframes)
Lookback: Increase to 50.
Decay Factor: Increase to 0.95. Structural levels from weeks ago are still highly relevant.
Min Points: Increase to 3 or 4. Only show levels that have been tested multiple times.
7. Advantages Over Standard Tools:
Feature Standard S/R Indicator, Advanced Multi-Level S/R Calculation, Uses simple Pivots or Fractals, Uses Statistical Distributions (MAD/IQR). Zone Width Arbitrary or Fixed Adaptive based on Volatility & ATR.
Context Ignores Volume Volume Weighted (Smart Money tracking).
Time Relevance Old levels = New levels Time Decay (Recency bias applied).
Overlaps Usually ignores overlaps Detects Pivot Zones (Res/Sup Flip).
Scoring None 0-100% Strength Score per zone.
8. Conclusion:
The Advanced Multi-Level S/R Zones script is not just a drawing tool; it is a statistical analysis engine. By accounting for the skewness of data, the volume behind the moves, and the decay of time, it provides a strictly objective roadmap of the market structure.
For the optimum output, combine the Pivot Zone identification with the Retest Signals. This aligns you with the underlying flow of order blocks and prevents trading against the statistical probabilities of the market.
15M Swing Sweep Lines + SMT (ES vs NQ)15M Swing Sweep Lines (NY Killzones)Visualize liquidity sweeps of 15-minute swing highs/lows exclusively during high-impact London & New York killzones.This ICT-inspired indicator detects when price sweeps (wicks beyond) the most recent confirmed 15-minute swing high or low — classic signs of liquidity raids or stop hunts — but only if the sweep happens during key "killzone" sessions where institutional activity is typically highest.Key Features15M Swing Detection: Uses confirmed pivot highs/lows (length 2) on the 15-minute timeframe for reliable structure points.
Killzone Filters (New York time):London Killzone: 3:00 AM – 4:59 AM
New York Killzone: 9:30 AM – 10:59 AM (captures the high-volatility NY open overlap)
Sweep Visualization:Bearish Sweep (high > last 15M swing high): Thick red horizontal line from the swing point to the sweep bar.
Bullish Sweep (low < last 15M swing low): Thick green horizontal line from the swing point to the sweep bar.
Lines use xloc.bar_time for precise placement and extend only to the bar where the sweep occurs.
No duplicates: Prevents multiple lines for the same swing sweep.
Non-repainting logic with lookahead_off for clean, trustworthy signals.
Why Killzones MatterMany ICT/SMC traders focus on these windows because they often feature aggressive manipulation, equal highs/lows sweeps, and the setup for strong directional moves. This tool helps you instantly spot when buy-side or sell-side liquidity has been raided on the 15M structure during these prime times.Ideal ForConfirming potential reversals or inducements after liquidity grabs.
Adding confluence to entries during London or NY sessions.
Futures traders (ES, NQ, etc.) looking for clean visual cues of smart money engineering.
Lightweight, overlay-friendly, and focused — add it to your chart for clearer insight into 15M liquidity sweeps when it matters most. Perfect companion for killzone-based strategies!
GC/MGC VWAP Pullback + ADX Regime (Prop-Safe)GC / MGC VWAP Pullback + ADX Regime Strategy (Prop-Safe)
This strategy is designed specifically for Gold futures (GC & MGC) and prop firm trading, where capital preservation, consistency, and avoiding chop matter more than trade frequency.
The core philosophy is simple:
Only trade gold when it is expanding, aligned, and at the right location.
Strategy Concept
Gold moves in bursts, not constantly.
Most losses come from trading compression, VWAP chop, or late momentum.
This strategy filters those environments out and trades only:
Strong intraday momentum
Clear higher-timeframe direction
First pullbacks to VWAP
Clean price rejection with follow-through
It intentionally produces fewer but higher-quality trades.
Market Regime Filter (ADX)
ADX is evaluated on the 5-minute chart
This is the trade permission filter
ADX zones:
Below 18 → No trade (compression / chop)
20–35 → Optimal trading zone
35–45 → Caution (strong trend, reduced opportunity)
Above 45 → No new entries (late expansion / news risk)
ADX does not determine direction.
It only determines whether trading is allowed.
Direction Filter (Higher Timeframe)
Direction comes from the 1-Hour chart
EMA 20 above EMA 50 → Long bias only
EMA 20 below EMA 50 → Short bias only
Optional slope confirmation for additional strictness
No counter-trend trades.
Entry Logic (5-Minute Chart)
Trades are taken using a VWAP pullback continuation model.
Long Setup
ADX between 20–35
1H EMA 20 > EMA 50
Price pulls back to VWAP
Bullish rejection candle at VWAP
Entry on break of the rejection candle high
Short Setup
ADX between 20–35
1H EMA 20 < EMA 50
Price pulls back to VWAP from below
Bearish rejection candle at VWAP
Entry on break of the rejection candle low
All entries use stop orders, not market orders, to ensure follow-through.
Risk Management
Stop loss is placed beyond the rejection candle
Partial profit at 1R
Final target at 2R
No pyramiding
One clean setup is preferred over multiple trades
This structure aligns well with prop firm rules, trailing drawdowns, and consistency requirements.
What This Strategy Avoids
VWAP chop
Range-bound sessions
Overtrading
Late entries after news spikes
Counter-trend setups
If conditions are not ideal, no trade is the correct trade.
Best Use Case
Instruments: GC, MGC
Timeframe: 5-minute
Style: Intraday, prop-firm friendly
Ideal for traders who value:
Discipline
Structure
Capital protection
Jack Dunn (Mean Reversion, Z-score + Vol Filter + Trend Filter))based on mean reversion and z score
FOR 1M XAUUSD or 5M USDJPY
Wickless Candle Revisit TrackerWickless Candle Revisit Tracker
Identifies wickless candles (strong momentum candles) and tracks whether price revisits their opening level, providing statistical insights into price behavior patterns.
WHAT ARE WICKLESS CANDLES?
• Green wickless: Open = Low (no lower wick) - opened at the low and moved only upward
• Red wickless: Open = High (no upper wick) - opened at the high and moved only downward
These candles represent strong directional momentum, and their opening levels often act as support/resistance zones that price may revisit.
KEY FEATURES:
• Automatic Detection: Identifies wickless candles with configurable tolerance for broker spread
• Real-time Tracking: Monitors each wickless candle until price revisits its opening level
• Visual Indicators:
- Labels show "WL↑" or "WL↓" with bars count when revisited (or "N/A" if pending)
- Horizontal lines mark price levels (gray dashed = pending, green solid = revisited)
• Comprehensive Statistics Table:
- Total wickless candles detected
- Revisit rate percentage
- Min/Max/Average bars until revisit
- Pending count
• History Limit: Configure how far back to analyze (default: 500 bars)
• Customizable: Adjust colors, toggle labels/lines/table, reposition statistics
USE CASES:
• Identify potential support/resistance levels from momentum candles
• Measure how often price fills "fair value gaps" or inefficiencies
• Track mean reversion patterns after strong momentum moves
• Backtest the reliability of wickless candle levels as trading zones
SETTINGS:
• Wick Tolerance: Allow small wicks due to broker spread (e.g., 0.0001 for forex)
• History Limit: Number of bars to analyze (older candles are hidden)
• Visual Controls: Toggle labels, lines, and statistics table
• Color Customization: Adjust line colors for pending/revisited states
ALERTS:
Built-in alerts for wickless candle detection (green, red, or both).
Perfect for traders analyzing price inefficiencies, fair value gaps, and momentum-based support/resistance levels.
Big Trades / Intrabar Volume Clusters by HKDescription:
This indicator brings professional Order Flow and Footprint capabilities to your chart. It detects and visualizes high-volume trade clusters inside the candle, allowing you to see exactly at which price level big market participants were active.
Unlike standard volume bars, this tool uses Intrabar Data to map significant buying and selling pressure precisely within the candle body.
ℹ️ IMPORTANT: Resolution Setting (Read First) To ensure this indicator works immediately for all users (including Free/Basic accounts), the default resolution is set to "1 Minute".
Basic/Free Users: Please keep the setting at "1" (Second-based intervals often require a paid plan).
Premium Users: For the best precision and the exact look shown in the screenshots, we highly recommend changing the Resolution setting to "5S" (5 Seconds)!
🚀 Key Features
Intrabar Precision: Leverages request.security_lower_tf to look inside the candle structure.
Noise Filtering: Only displays clusters that exceed your defined Minimum Volume threshold, filtering out retail noise.
Smart Coloring:
Green: Buying pressure (Close >= Open on the lower timeframe).
Red: Selling pressure (Close < Open on the lower timeframe).
🆕 Independent Sizing: A unique feature: You can control the Font Size and Circle Size independently.
This allows for small, non-intrusive circles with large, readable text.
⚙️ Settings
Resolution: Default is 1 (Minute). Premium users should switch to 5S for true order flow precision.
Minimum Volume: The most important filter. Determines how large a trade cluster must be to appear (e.g., 150+ for ETH, higher for BTC).
Visuals: Customize Buy/Sell colors, Circle Size, and Text Size separately.
⚠️ Visual Tip (If text is hidden)
If the bubbles or numbers appear behind the candles or disappear when clicking away:
Right-click on any of the indicator bubbles.
Select Visual Order -> Bring to Front.
This ensures the Big Trades data always floats on top of your price bars.
TradingView Alert Adapter for AlgoWayTRALADAL is a universal TradingView alert adapter designed for traders who work with indicators and want to test and automate indicator-based signals in a structured way.
It allows users to convert indicator outputs into a TradingView strategy and forward the same logic through alerts for multi-platform execution via AlgoWay.
This script can be used as TradingView indicator automation, enabling traders to build a TradingView strategy from indicators and route TradingView alerts through an AlgoWay connector TradingView workflow for multi-platform execution.
Why this adapter is needed
Most TradingView indicators are not available as strategies.
Traders often receive visual signals or alerts but have no access to objective statistics such as win rate, drawdown, or profit factor.
This adapter solves that problem by providing a generic framework that transforms indicator signals into a backtestable strategy — without modifying indicator code and without requiring Pine Script knowledge.
Input source–based design (including closed indicators)
All conditions in TRALADAL are built using input sources, which means you can connect:
Event-based signals (1 / non-zero values, arrows, shapes)
Indicator lines and values (EMA, VWAP, RSI, MACD, etc.)
Outputs from invite-only or closed-source indicators
If an indicator produces a visible signal or alert-compatible output, it can be evaluated and tested using this adapter, even when the source code is locked.
Three-level signal logic
The strategy uses a three-layer condition model commonly applied in discretionary and systematic trading:
Signal — primary entry trigger
Confirmation — directional validation
Filter — additional noise reduction
Each level can be enabled independently and combined using AND / OR logic, allowing traders to test multi-indicator systems without writing complex scripts.
Risk management and alert execution
The adapter supports practical risk parameters:
Stop Loss (pips)
Take Profit (pips)
Trailing Stop (pips)
Two execution modes are available:
Strategy Mode — risk rules are applied inside the TradingView Strategy Tester
Alert Mode — risk parameters are embedded into structured TradingView alerts and handled by AlgoWay during execution
Position sizing follows TradingView conventions (percent of equity, cash, or contracts) to keep strategy results and alerts aligned.
Typical use cases
This TradingView alert adapter is intended for:
Indicator-based trading systems
Backtesting signals from closed or invite-only scripts
Comparing multiple indicators within a single strategy
Sending TradingView alerts to external trading platforms via AlgoWay
The adapter does not generate signals or trading recommendations.
Its purpose is to provide a transparent and testable workflow from indicator signals to TradingView alerts and automated execution.
Liquidity Sweep by NKLiquidity Sweep (OC-Based) + Doji Acceptance
🔹 Designed for 4H Crypto Trading
This indicator highlights high-probability liquidity sweep candles using a body-based comparison (Open/Close) rather than traditional high/low sweeps, making it cleaner and more reliable in volatile crypto markets.
It is specifically optimized for the 4-hour timeframe, where each day consists of 6 candles, allowing clear identification of institutional stop-hunts and failed breakouts.
---
🔍 Core Concept
Liquidity is often taken above recent candle bodies (opens & closes) rather than just wicks.
This script detects those events and confirms them using candle structure, wick dominance, and doji behavior.
The indicator marks candles where:
* Liquidity is swept
* Price is rejected
* Directional intent is visible
---
🔴 Bearish Liquidity Sweep (Sell Signal)
A candle is highlighted as bearish when ALL of the following conditions are met:
1️⃣ Liquidity Sweep (Body-Based)
* Current candle HIGH is greater than ALL
* Opens of the last X candles
* Closes of the last X candles
(Wicks of previous candles are ignored to reduce noise)
2️⃣ Wick Dominance
* Upper wick > Lower wick
3️⃣ Rejection Confirmation (ANY ONE)
* Candle closes red, OR
* Candle is a Gravestone-type Doji, defined as:
* Very small candle body
* Strong upper wick
* Body color is irrelevant
---
🟢 Bullish Liquidity Sweep (Buy Signal)
A candle is highlighted as bullish when ALL of the following conditions are met:
1️⃣ Liquidity Sweep (Body-Based)
* Current candle LOW is lower than ALL
* Opens of the last X candles
* Closes of the last X candles
2️⃣ Wick Dominance
* Lower wick > Upper wick
3️⃣ Rejection Confirmation (ANY ONE)
* Candle closes green, OR
* Candle is a Dragonfly-type Doji, defined as:
* Very small candle body
* Strong lower wick
* Body color is irrelevant
---
## ⚙️ Inputs
* Liquidity Lookback (X candles)
Number of previous candles used to define the liquidity range.
* Doji Body % of Candle Range
Controls how small the candle body must be to qualify as a doji.
---
🎨 Visuals
* 🔴 Red candle + down arrow → Bearish liquidity sweep
* 🟢 Green candle + up arrow → Bullish liquidity sweep
* Indicator is plotted directly on price
---
✅ Key Features
* Uses Open & Close levels instead of highs/lows
* Filters weak signals using wick dominance
* Accepts both body-based and doji-based rejections
* No repainting
* Works on all markets, optimized for crypto
* Best used at:
* Range highs & lows
* Previous day high / low
* Consolidation extremes
---
❌ What This Indicator Does NOT Do
* No trend bias
* No RSI / EMA / CPR filters
* No session-based filtering
* No multi-timeframe logic
* No entry/exit automation
ADX Regime (5m) Companion PaneADX Regime Filter (5-Minute) — Trade Permission Indicator
This indicator is a market regime filter designed to answer one question only:
Is this market worth trading right now?
It is built specifically for intraday futures trading, with a strong focus on Gold (GC / MGC) and prop-firm style discipline.
What This Indicator Does
This ADX indicator does not give buy or sell signals.
Instead, it tells you when to trade and when to stand down.
Gold spends a large portion of the day in compression or VWAP chop.
Trading during those periods destroys consistency and drawdown control.
This indicator helps you avoid those conditions.
How ADX Is Used Here
ADX is calculated on the 5-minute timeframe
It measures trend strength and expansion, not direction
Direction should come from structure or higher-timeframe bias, not ADX
ADX is used strictly as a permission filter.
ADX Zones Explained
The indicator includes clear horizontal reference levels:
Below 18
Compression / chop
No trade environment
20 to 35
Optimal expansion zone
Best conditions for pullbacks and continuations
35 to 45
Strong trend
Trade cautiously or only first pullbacks
Above 45
Late expansion or news-driven volatility
No new entries recommended
These zones are visual guides to keep trading decisions objective.
What This Indicator Is NOT
It is not a signal generator
It is not an entry tool
It is not predictive
ADX does not tell you what direction to trade.
It tells you whether trading is allowed at all.
Best Practices
Use ADX on the 5-minute chart
Combine it with:
Higher-timeframe trend
VWAP or key levels
Clear price action
If ADX is below 18, standing aside is a valid trade decision
Who This Indicator Is For
Futures traders
Prop firm traders
Traders who value:
Capital protection
Fewer but higher-quality trades
Consistency over activity
Core Principle
ADX is a gatekeeper.
When it says no, you do nothing.
When it says yes, you still wait for structure and location.
This mindset alone can dramatically improve discipline and results.
S&D Trend Pullback StrategyThis is simple indicator for myself to alert me when in trend pullback and entry.
Use in M5 chart.
SL put 30-50pips
TP can set 30-90pips
Supertrend By GemScope Supertrend by GemScope – Strategy Summary
This is an **automated trading strategy (Pine Script v5)** based on the **Supertrend indicator**, enhanced with **EMA filtering**, **percentage-based stop loss**, and **visual trade analytics**.
---
### 🔹 Core Strategy Logic
* Uses **Supertrend (ATR-based)** to detect market trend direction
* Trades **trend reversals and confirmations**
* Works on **both long and short positions**, or restricted to one side
---
### 🔹 Trade Direction Options
* **Both Long & Short**
* **Long Only**
* **Short Only**
---
### 🔹 Entry Conditions
#### 🟢 Long Entry
* Supertrend flips to **bullish**
* OR price crosses **above EMA 200**
* Long trades are allowed by settings
* If enabled: **price must be above EMA 200**
* Supertrend must confirm **uptrend**
#### 🔴 Short Entry
* Supertrend flips to **bearish**
* Short trades are allowed by settings
---
### 🔹 Position Sizing
* Trade size is defined in **USD**
* Quantity is calculated automatically based on market price
* Quantity rounding is user-configurable
---
### 🔹 Stop Loss (Risk Management)
* **Fixed percentage stop loss**
* Automatically placed after entry
* Works for both long and short positions
* No take-profit levels (trend-based exits instead)
---
### 🔹 Exit Logic
* **Short positions close** when:
* Supertrend turns bullish
* Price moves above EMA 200
* **Long positions close** when:
* Supertrend gives a short signal
---
### 🔹 Trend Protection
* Optional protection to **avoid closing shorts prematurely below EMA 200**
* EMA 200 acts as a **trend filter and support/resistance**
---
### 🔹 Visual Features
* **EMA 200** plotted on chart
* **Supertrend line** with color-coded direction
* Real-time **entry & P&L labels** displayed on the right side
* Indicator dashboard (RSI, MACD, ADX, ATR) shown in a table
---
### 🔹 Indicator Table Purpose
* Shows **market strength and bias**
* Helps identify whether **long or short positions are favored**
* Uses:
* RSI (momentum)
* MACD (trend direction)
* ADX (trend strength)
* ATR (volatility)
---
### 🔹 Overall Objective
This strategy is designed to:
* Trade **strong trends**
* Filter false signals using EMA 200
* Control risk with **strict percentage stop loss**
* Provide **clear visual feedback** for decision-making
Interest Zones ScannerThis indicator automatically scans a user-defined price range (on current or higher timeframe) to detect and plot the strongest horizontal support/resistance zones based on validated price reactions. It intelligently identifies levels where price has repeatedly bounced without breaking for a specified number of bars, prioritizing high-probability reaction areas.
How It Works (Technical Methodology)
Range Calculation
The script determines the high/low range using a configurable method:
"Lookback Bars": User-defined number of bars (default 400) on the target timeframe.
"Fixed Start Date": Bars since a specified date (default dynamic).
Data is fetched via request.security() from a selectable timeframe (default current chart TF) for multi-timeframe alignment.
Auto Mode Scanning
When enabled:
Scans the entire range in small percentage steps (default 1.0%, adjustable down to 0.5%).
For each potential level, creates a thin volatility-adjusted zone (height % of price, default 0.07%).
Counts "valid hits": Instances where price touches the zone and holds (no break) for user-defined bars (default 10).
Break detection: Configurable "Close" (strict) or "Wick" (sensitive).
Assumes support/resistance direction based on close relative to zone center.
Level Selection and Filtering
Ranks candidates by hit count (highest first).
Applies minimum distance filter (% apart, default 8%) to avoid clustering.
Limits to user-defined max zones (default 9) for clean display.
Sorts final zones from low to high price.
Manual Mode Alternative
When auto disabled: Directly uses user-input percentages (e.g., classic Fibo levels like 23.6, 50, 61.8) applied to the range – no validation/scoring.
Zone Construction
Horizontal boxes centered on validated levels, with dynamic height (% of price).
Colored by position: Supply (above close, default light gray), Demand (below close, default cyan).
Optional full extension (both sides) or right-only.
Labeled with percentage from range low.
Dashboard and Visuals
Table (positionable) shows:
% Level, Exact Price, Hit Count (green if >3).
Header with validation details and lookback info.
Vertical line marks range start for reference.
How to Use
This scanner excels at finding statistically validated horizontal zones where price has shown respect – ideal for support/resistance, mean reversion, or breakout setups.
Auto Mode: Best for discovering hidden/non-obvious levels. Higher hit counts = stronger zones (expect reactions/retests).
Validation Bars: Increase (e.g., 20+) for stricter, higher-quality zones in trending markets; lower for more sensitive detection.
Min Distance: Higher % for fewer, separated zones; lower for denser grids.
Multi-Timeframe: Set target TF higher (e.g., Daily) for major structural levels on lower charts.
Supply Zones (Above Price): Potential resistance – shorts or take-profits.
Demand Zones (Below Price): Potential support – longs or stops below.
Confluence: Combine with volume, order blocks, or fibo for entries. Watch for multiple hits + confluence.
Manual Mode: Quick plotting of custom % (e.g., fibo retracements/extensions).
Fine-tune scan step smaller for precision (slower on large lookbacks) or larger for speed.
Disclaimer
This indicator is a technical analysis tool and should be used in conjunction with other forms of analysis. Past performance does not guarantee future results. Always use proper risk management.
HS:- HA+BIAS📝 Daily Bias + Heikin Ashi Step Line (Notes)
1️⃣ Indicator Purpose
Combines Daily Market Bias with Heikin Ashi Average
Displays HA average as a STEP LINE WITH BREAKS
HA line changes color based on bias
Works on any timeframe
Bias logic is always calculated from Daily data
2️⃣ Heikin Ashi Calculation
Uses Heikin Ashi candles internally
Does not change chart candles
Formula used:
HA Average = (HA Open + HA Close) / 2
Provides a smoother price reference than normal candles
3️⃣ Daily Reference Levels
Uses previous day:
High
Low
These levels define market structure
Fetched using Daily timeframe regardless of chart timeframe
4️⃣ Positive Bias Condition (Bullish)
Bias becomes POSITIVE only when both conditions are true:
Today Close > Previous Day High
Today Low > Previous Day Low
📌 Indicates strong bullish control
5️⃣ Negative Bias Condition (Bearish)
Bias becomes NEGATIVE only when both conditions are true:
Today Close < Previous Day Low
Today High < Previous Day High
📌 Indicates strong bearish control
6️⃣ Bias Hold Rule (Most Important)
Bias does NOT flip frequently
Bias remains unchanged until:
Both opposite conditions are satisfied
Prevents false signals during sideways markets
Bias Values:
+1 → Positive
-1 → Negative
0 → Neutral
7️⃣ Bias Memory Concept
Bias is stored using a state variable
Previous bias is carried forward when no condition is met
Ensures stable trend direction
Anurag Balanced 0DTE Scalper SPY QQQBalanced 0DTE Scalper
1. Purpose: A 0DTE options day trading indicator for SPY/QQQ on 5-minute charts with visual CALL/PUT entry and exit signals.
2. Trend Filter: Uses 15-minute EMA crossover (9/21) + ADX to confirm trend direction before taking trades.
3. Entry Logic: Triggers on pullback to 5m EMA9 with RSI/VWAP/MACD confirmation, bullish or bearish candle required.
4. Exit System: ATR-based trailing stop, dual targets (TP1 partial, TP2 full), time stop, and auto-exit at EOD.
5. Risk Controls: Max trades/day limit, cooldown period after exits, session filter (avoids first 10 min & last 15 min).
6. Visual Feedback: Dynamic stop/target lines, entry/exit labels with P&L, background color for trend bias and cooldown.
7. Dashboard: 16-row panel showing bias, ADX, regime, RSI, VWAP, position, bars held, cooldown status, strike suggestions, and DTE recommendation.






















