QuantLabs Multi Asset Similarity Matrix [V3 Final]The 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 with love by David James @QuantLabs : )
Indicators and strategies
TASC 2026.01 The Reversion Index█ OVERVIEW
This script implements the Reversion Index as presented by John F. Ehlers in the January 2026 edition of the TASC Traders' Tips , "Identifying Peaks And Valleys In Ranging Markets”. This indicator was created to provide timely buy and sell signals for mean reversion strategies.
█ CONCEPTS
Ehlers came up with the idea for the Reversion Index following the development of the "Continuation Index" (featured in the September 2025 edition). While the Continuation Index provides indications for trend onset, continuation, and exhaustion; the Reversion Index serves as its counterpart for mean-reversion trading.
The raw Reversion Index value is calculated as the net change in price normalized to the sum of the absolute value of change in price over the same period; for clarity, it is then smoothed using Ehlers' SuperSmoother.
The Smooth Reversion Index value is led by a "Trigger" line, which is created by smoothing the raw data to half the smoothing period of the smoothed index.
Note: Ehlers suggests the smoothing lengths be left at 8 and 4 (Reversion Index & Trigger). For this reason these lengths are hard-coded in the script but can be easily modified in the code.
█ USAGE
In order to identify peaks and valleys effectively, the "Length" should ideally be set to half of that of the expected cycle of the data. If the expected cycle of your trading data is 20 bars, a 10 bar length should be set.
Note: The Reversion Index is intended to identify peaks and valleys within a cycle, not over a large sample period. Ehlers suggests that this would create an estimation of trend, which is not the goal here.
Once the length is set, peaks and valleys are interpreted as the cross of the "Trigger" and "Smooth" lines.
Vishall BTST- final - option 1.2Reverse of X, Z from - Vishall BTST- final - option 1.1
X = Spot Price @ Normal - Spot Price @HA
Z = Spot Future@ Normal - Spot Future Price @ HA
30-Point Price RaysThis indicator plots 2 lines 30 points away from the current price.
This indicates where to place your limit orders pre news.
A simple tool just to help and not something to be used outside of evaluations.
IQR Bands boromeyIQR is the price's "comfort zone," covering the middle 50% of activity.
Inside: Just noise. Ignore it.
Breakout: A real move. Pay attention.
It filters out choppy markets so you only catch the true trends.
MTF H4 Double Maru - All Historydouble marubozu level at h4 will appear at lower timeframe, use it wisely , take action after price already near or react with the level
USD Liquidity Regime for BTC Perps (Dual) V1USD Liquidity Regime for BTC Perps (Dual)
This intents to be a BTC Perps USD Liquidity Regime macro indicator.
As it names states it is designed for BTCUSDT perpetual futures traders.
It attempts to tracks USD strength (DXY, UUP, yields, VIX composite) as liquidity proxy:
Lower index = weak USD = Risk-On (green background/histogram = long tailwind for BTC).
Higher = strong USD = Risk-Off (red = caution longs, shorts favor).
How to use:
Green background/histogram: Favor longs — rallies likely, dips bought.
Red: Caution longs — corrections hurt, short bias possible.
Blue line (index) vs red SMA: Crosses signal regime shifts.
Histogram strength: Bigger bars = stronger bias.
This is not intended as financial advise or trigger signal tool.
This is a work in progress
Its value is limited, if you do not understand any or some of the words above please do not use this indicator. If you did, then you understand you are not supposed to use this alone to make decisions.
Feel free to ask any questions, this is a work in progress.
Feel free to suggest improvements.
Educational macro context tool — not signals/advice.
Ok for avoiding going against the USD trend dominance by following liquidity.
By @frank_vergaram
Zero Lag MACD and EMA 200 with SignalsZero Lag MACD with EMA Filter and Smart Signals
This indicator is an enhanced version of the traditional MACD that uses Zero Lag EMA calculations to provide faster and more responsive signals for scalping and day trading.
Key Features:
🎯 Zero Lag Technology - Uses double-smoothed EMA calculations to eliminate lag and provide earlier signals compared to standard MACD
📊 Clean Visualization - Displays histogram with MACD and Signal lines for clear trend analysis
🔍 Smart Signal Logic - Only shows valid trading signals based on strict conditions:
Buy Signal (Green dot at bottom): Triggers when price is above 200 EMA AND MACD crosses Signal line from below AND crossover occurs below zero line
Sell Signal (Red dot at top): Triggers when price is below 200 EMA AND MACD crosses Signal line from above AND crossover occurs above zero line
🔔 Built-in Alerts - Easy alert setup for both buy and sell signals so you never miss a trading opportunity
📈 200 EMA Filter - Incorporates trend filter to avoid counter-trend trades and improve signal quality
⚙️ Fully Customizable - Adjust all parameters:
Fast EMA Length (default: 12)
Slow EMA Length (default: 26)
Signal Length (default: 9)
EMA Filter Length (default: 200)
How to Use:
-Add the indicator to your chart
-Look for green dots (buy signals) when price is in an uptrend above 200 EMA
-Look for red dots (sell signals) when price is in a downtrend below 200 EMA
-Set up alerts by clicking "Create Alert" and selecting "Buy Signal" or "Sell Signal"
-Use signals in conjunction with your trading strategy and risk management
Best Practices:
-Works best on 1-15 minute timeframes for scalping
-Combine with support/resistance levels for confirmation
-Use proper stop-loss and take-profit levels
-Not all signals will be profitable - use proper risk management
-Signals are filtered to reduce noise and false entries
Color Scheme:
Histogram: Red (bearish) / Cyan (bullish)
MACD Line: Fuchsia/Pink
Signal Line: Lime/Green
Buy Signal: Green dot (bottom)
Sell Signal: Red dot (top)
This indicator is perfect for traders who want a cleaner, faster-responding MACD with built-in trend filtering and clear entry signals. Free to use and customize!
[TradingPulse] - Overlay+ PRO ScalpingTrade like a don on 1 min scalps.
sdäajdfkjsKLÖJfd#
sf
dasfd
asfa
dadf
affdsa
affda
adfs
QuantLabs The MTF Nasdaq 30 Scanner [Capital Flow and Pressure]Trading the QQQ (Nasdaq) without knowing what the Generals (Apple, Nvidia, Microsoft) are doing is like driving at night with your headlights off. You might see the road right in front of you, but you'll miss the turn coming up.
The QuantLabs MTF Nasdaq 30 Scanner is not just a trend indicator, it is a professional-grade Market Dashboard that visualizes the heartbeat of the entire Nasdaq 100.
Why You Need This
Standard indicators lag. They tell you what happened after the move. This Heatmap tracks the Real-Time Capital Flow of the Top 30 companies that actually move the index ($Trillions in Market Cap).
Key Features
1. The "Spectacular" Precision Heatmap
Organized by Market Cap Size (AAPL/NVDA first).
Instantly spot divergent behavior. Is the market rallying, or is it just Nvidia holding everything up? The Heatmap reveals the truth instantly.
Colors: Neon Cyan (Bullish) vs Hot Pink (Bearish).
2. Triple Spectrum Technology (3-in-1 Timeframes) Why look at one timeframe when you can see three? Every cell in the dashboard displays the trend distance for:
8h (Fast): For scalping entries.
16h (Mid): For swing trends.
24h (Slow): For the major "Big Picture" bias.
Values denote % distance from the Flux Ribbon.
3. The "Net Pressure" Gauge (The Speedometer) A predictive summary footer that calculates the Weighted Pressure of the entire market.
HEAVY (> 0.5%): Strong Trend / Breakout Mode.
MODERATE (0.2% - 0.5%): Healthy, sustained move.
FLAT: Chop / Noise. Stay out.
It also shows exactly how much Capital ($Trillions) is sitting Bullish vs Bearish.
How to Trade with It
Check the "Net Pressure": If it says MODERATE BULLISH, you are looking for Longs only.
Scan the Top Row: Are the "Big 5" (AAPL, NVDA, MSFT...) aligned with the pressure?
Wait for Alignment: If the 8h, 16h, and 24h metrics all turn Cyan, that is a "Quantum Lock"—a high probability breakout signal.
Simple. Powerful. Neon. Add it to your chart and stop guessing the direction.
Credits: Built with 💜 by David James @ QuantLabs
EURUSD Pre-London Open Range MarkerEURUSD Pre-London Open Range Marker
This script marks the high and low formed in the pre-London open period on EURUSD, and extends those levels forward once London opens.
It is intended as a neutral reference tool for traders who pay attention to time-based structure around the London session.
What it does
Automatically tracks London time, including daylight-saving changes
Identifies the pre-London open range
Plots the high and low of that range
Extends those levels forward from the London open
Displays the range size (pips)
What it does not do
No trade signals
No alerts
No entries, stops, or targets
No performance claims
This script provides structure only. Interpretation and execution are left to the user.
Intended use
This tool is for traders who:
Trade EURUSD
Care about London session behaviour
Prefer simple, time-based reference levels over indicators
Scope and design
Hard-coded for EURUSD
Pre-London open window is fixed and not user-configurable
Built to prioritise consistency and repeatability over flexibility
Additional context
I use this pre-London range as part of a fully documented, rules-based EURUSD trading system focused on risk management and repeatable execution which I have traded for two years.
The strategy itself is not included here.
Disclaimer
This script is provided for educational and reference purposes only.
All trading involves risk. You are responsible for your own decisions.
One-line link
For those interested in how this range is used within a complete, rules-based EURUSD trading system, further documentation is available here:
EMA12/50 如果放空後趨勢由背景紅轉綠可以考慮常抱
抱到背景再次翻紅而比較不被雜訊洗掉
現階段指標合併在一起會出BUG
If the trend changes from red to green after shorting, consider holding for a longer period.
Hold until the background turns red again to avoid being washed out by noise.
Currently, merging them together will cause bugs.
Premarket High Low 4:00 at 9:30 AMThis indicator is designed for scalping in 2-minute intervals, taking into account that trading should occur after an SMA 13 / SMA 20 / SMA 200 compression.
AKILLI ANALIZ TERMINALI (V20-REVIZE)SMART ANALYSIS TERMINAL (V20-ULTIMATE)
This indicator is a professional-grade analysis terminal designed for both strategic daily analysis (Swing Trade) and real-time intraday trading (Scalp/Day Trade). It allows you to perform a complete technical X-ray of the market on a single dashboard.
CORE FEATURES:
- Dual-Mode Hybrid Engine: Choose between "NIGHT (ANALYSIS)" or "IN-DAY (AGGRESSIVE)" modes in settings. Mathematical periods and target levels update automatically.
- Smart Scoring System: Blends RSI, MACD, EMA, ADX, and Volume data to produce 5 distinct signals from "VERY POSITIVE" to "VERY NEGATIVE."
- Symmetrical Visual Panel: Left panel displays Live Signal, Pivot Balance, Money Flow, and Target/Support; right panel focuses on RSI, Trend, Momentum, and Volume confirmation.
- Money Flow Algorithm: Detects institutional accumulation (Entry) or distribution (Exit) by analyzing price-volume correlation.
USER GUIDE:
1. NIGHT MODE: Use for evening analysis to plan for the next day. Based on EMA 20/50 and standard MACD values.
2. IN-DAY MODE: Use during live sessions on 5m and 15m charts. Catch instant momentum shifts with EMA 9/21 and aggressive settings.
Volume Suite: RVOL + Delta CandlesRelative Volume + High Volume Delta Candles.
Great to spot high Effort from Buyers and Sellers.
Nifty Hierarchical Macro GuardOverview
The Nifty Hierarchical Macro Guard is a "Market Compass" indicator specifically designed for Indian equity traders. It locks its logic to the Nifty 50 Index (NSE:NIFTY) and applies a strict hierarchy of trend analysis. The goal is simple: prioritize the long-term trend (Monthly/Weekly) to decide if you should even be in the market, then use the short-term trend (Daily) for precise exit timing.
This script ensures you never ignore a macro "crash" signal while trying to trade minor daily fluctuations.
The Color Hierarchy (Priority Logic)
The indicator uses a "Top-Down" filter. Higher timeframe signals override lower timeframe signals:
Level 1: Monthly (Ultra-Macro) — Deep Maroon
Condition: Nifty 10 EMA is below the 20 EMA on the Monthly chart.
Action: This is the highest priority. The background will turn Deep Maroon, overriding all other colors. This is your "Forget Trading" signal. The long-term structural trend is broken.
Level 2: Weekly (Macro Warning) — Dark Red
Condition: Monthly is Bullish, but Nifty 10 EMA is below the 20 EMA on the Weekly chart.
Action: The background turns Dark Red. This indicates a significant macro correction. You should stay out of fresh positions and protect capital.
Level 3: Daily (Tactical) — Light Red / Light Green
Condition: Both Monthly and Weekly are Bullish (Green).
Action: The background will now react to the Daily 10/20 EMA cross.
Light Green: Nifty is healthy; safe for fresh positions.
Light Red: Tactical exit signal. Nifty is seeing short-term weakness; exit positions quickly.
Key Features
Symbol Locked: No matter what stock you are viewing (Reliance, HDFC, Midcaps), the background only reacts to NSE:NIFTY.
Clean Interface: No messy lines or labels on the price chart. The information is conveyed purely through background color shifts.
Customizable: Change the MA types (EMA/SMA) and lengths (e.g., 10/20 or 20/50) in the settings.
Macro Dashboard: A small, transparent table in the top-right corner displays exactly which timeframe is currently controlling the background color.
How to Use for Nifty Strategy
Stay Out: If the chart is Deep Maroon or Dark Red, do not look for "buying the dip." Wait for the macro health to return.
Take Exits: If the background is Light Green and suddenly turns Light Red, it means the Daily Daily 10/20 cross has happened. Exit your Nifty-sensitive positions immediately.
Volume Weighted Average Price @Marx_CapitalSimple VWAP indicator edited to not connect the lines between sessions for a cleaner look without vertical lines at session ends.
Session end and start times are customizable.
MACD Divergences + RSI/ADXMACD Divergences + RSI/ADX Indicator
This indicator combines the classic MACD divergence detection with real-time RSI and ADX monitoring in fixed corner labels.
🔹 MAIN FEATURES:
- Automatic MACD divergence detection (Classic & Hidden)
- Visual RSI and ADX labels fixed in the right corner
- Color-coded trend direction (Green: DI+ > DI- | Red: DI- > DI+)
- Customizable MACD settings (Fast/Slow Length, Signal Smoothing)
- Configurable RSI and ADX periods
- Built-in alerts for all divergence types
🔹 DIVERGENCE TYPES:
- Classic Bullish: Price makes lower lows, MACD makes higher lows (Reversal signal)
- Classic Bearish: Price makes higher highs, MACD makes lower highs (Reversal signal)
- Hidden Bullish: Price makes higher lows, MACD makes lower lows (Continuation signal)
- Hidden Bearish: Price makes lower highs, MACD makes higher highs (Continuation signal)
🔹 RSI & ADX DISPLAY:
- Fixed labels in top-right (RSI) and bottom-right (ADX) corners
- Real-time values updated on every bar
- Background color changes based on directional movement (DI+ vs DI-)
- Large, easy-to-read format
🔹 HOW TO USE:
1. Watch for divergence patterns on MACD histogram
2. Monitor RSI for overbought/oversold conditions
3. Check ADX for trend strength (>25 = strong trend)
4. Green labels = Bullish momentum (DI+ > DI-)
5. Red labels = Bearish momentum (DI- > DI+)
🔹 BEST FOR:
- Swing trading on 4H and Daily timeframes
- Trend-following strategies with mo
Professional 3SD Institutional Rejection
This indicator identifies institutional "liquidity grab" and "momentum exhaustion" zones using the statistical extremes of 3 Standard Deviations (3SD) on Bollinger Bands. Unlike standard strategies, it doesn't just look for band touches; it confirms price "wicking" outside the 3SD and closing back inside the 2SD band (rejection), while ensuring the Money Flow Index (MFI) shows signs of exhaustion. It is highly effective on 1H, 4H, and Daily timeframes for mean-reversion setups targeting the median line.
MA20 Dual Color Line IndicatorMA20 Dual Color Line Indicator
The MA20 Dual Color Line is a simple yet effective moving average indicator designed to help traders quickly visualize price trends and potential reversal points. It plots a 20-period Simple Moving Average (SMA) that changes color based on the relationship between the current closing price and the moving average itself.
🔶 How It Works
When the close price is above the MA20, the moving average line turns green, suggesting a potential bullish trend.
When the close price is below the MA20, the line turns red, indicating a possible bearish trend.
If the price is exactly at the MA20, the line remains white, highlighting a neutral or decision point.
📈 Ideal For
Identifying trend direction at a glance
Spotting support and resistance levels around the MA20
Enhancing visual analysis without cluttering the chart
🛠 Features
Clean and customizable line width
Real-time color switching based on price action
Overlay display to keep charts organized
This indicator is perfect for traders who prefer a clear, color-coded visual aid to complement their trading strategy. Whether you’re a beginner or an experienced trader, the MA20 Dual Color Line helps you stay aligned with the short-term trend.






















