ES VWAP + GEX OverlayAI v6 ES VWAP + GEX Overlay. The system seems to want me to add more text for description before I know it it works.
دورات
DG Channel + Reversal Alerts//@version=5
indicator("Channel + Reversal Alerts", overlay=true)
//==================================================
// 1. НАСТРОЙКИ КАНАЛА
//==================================================
length = input.int(100, "Длина канала", minval=10)
// Канал по High / Low (надёжно и наглядно)
upper = ta.highest(high, length)
lower = ta.lowest(low, length)
// Рисуем канал
plot(upper, "Верхняя граница", color=color.red, linewidth=2)
plot(lower, "Нижняя граница", color=color.green, linewidth=2)
//==================================================
// 2. ЛОГИКА КАСАНИЙ
//==================================================
touchUpper = high >= upper
touchLower = low <= lower
touchUpper_first = touchUpper and not touchUpper
touchLower_first = touchLower and not touchLower
//==================================================
// 3. ПРОБОИ И РАЗВОРОТЫ
//==================================================
// Закрытие свечи вне канала
closeAbove = close > upper
closeBelow = close < lower
// Тень вышла за канал, а закрытие внутри
wickAbove = high > upper and close <= upper
wickBelow = low < lower and close >= lower
// Разворот = закрытие ИЛИ тень вне канала
reversalUpper = closeAbove or wickAbove
reversalLower = closeBelow or wickBelow
// Только первое появление, чтобы не спамило
reversalUpper_first = reversalUpper and not reversalUpper
reversalLower_first = reversalLower and not reversalLower
//==================================================
// 4. АЛЕРТЫ
//==================================================
// КАСАНИЕ
alertcondition(touchUpper_first, title="Upper touch", message="⬆️ касание")
alertcondition(touchLower_first, title="Lower touch", message="⬇️ касание")
// РАЗВОРОТ
alertcondition(reversalUpper_first, title="Upper reversal", message="⬆️ разворот")
alertcondition(reversalLower_first, title="Lower reversal", message="⬇️ разворот")
EMA Phenix Final```text
EMA Phenix Final is a high-performance trend-following indicator engineered for maximum precision and visual clarity. Built on institutional-grade logic, it utilizes a dual Exponential Moving Average (EMA) system to identify momentum shifts and trend reversals with 100% non-repainting accuracy.
Key Features & Capabilities:
• Professional Dual-EMA Engine
The core logic uses customizable Fast and Slow EMAs to define market bias. It filters out market noise, providing a smooth and reliable representation of price action across any timeframe.
• Anti-Repaint Signal System
Bullish and bearish crossover signals are calculated strictly on bar confirmation (barstate.isconfirmed). This ensures that once a signal appears, it is locked and will never disappear or shift, providing absolute reliability for entry execution.
• Dynamic EMA Cloud
A visual momentum zone (Cloud) is plotted between the two EMAs. It instantly changes color based on the trend (Bullish/Bearish), allowing traders to assess trend strength and potential exhaustion at a glance.
• Advanced Label Customization
The indicator offers industry-leading control over visual alerts:
– Shape Selection: Choose between arrows, circles, ticks, or pointers.
– Size Control: 5 distinct size levels (Tiny to Huge) for perfect visibility.
– Background Toggle: Enable or disable label backgrounds ("Submarine" mode) for a cleaner chart aesthetic.
– Independent Coloring: Separate color controls for the signal shape, the text/arrow, and the background.
• Optimized Logic & Style Architecture
Following the "Phenix Canonical Rules," the interface is strictly divided into:
– Logic Group: Core mathematical parameters and functional toggles.
– Style Group: Comprehensive visual and aesthetic settings.
Why EMA Phenix Final Stands Out:
• Zero Repainting: Signals are fixed and reliable for live trading.
• Institutional Clarity: The EMA Cloud provides a clear "Value Area" for trend-following strategies.
• Universal Application: Optimized for Crypto, Forex, Stocks, and Indices.
• High Performance: Lightweight Pine Script v6 code ensures zero lag even on lower timeframes.
• Aesthetic Flexibility: Fully adjustable to match any professional trading workspace.
EMA Phenix Final is the definitive tool for traders who prioritize structural integrity and visual precision in their trend-trading systems.
```
RSI 40-60 with Candle Colouring gran longer time frames commodities , mag 7 stocks , US500 , BTC
Main things it does:Shows a standard RSI (default 14-period) in a separate panel below the chart The RSI line is colored light cyan/blue
Draws horizontal lines at these key levels:70 (overbought – red dashed)
60 (upper boundary – bright red solid)
50 (middle/neutral – gray dotted)
40 (lower boundary – green solid)
30 (oversold – lime dashed)
→ It puts extra visual emphasis on the 40–60 zone.
Colors the price candles on the main chart (even though the indicator itself is not overlaid):Green/teal when RSI is above 50
Red when RSI is 50 or below
What traders usually use it for:Quick visual trend/momentum filter
Green candles = bullish bias (RSI > 50)
Red candles = bearish bias (RSI ≤ 50)
The area between 40–60 is often seen as neutral / no strong direction
Very simple, clean momentum-based candle coloring tool focused around the 50 level with extra attention to the 40–60 range.
ZigZag with Day Count + AveragesThis indicator plots a ZigZag structure and measures how long each completed trend leg lasts in calendar days. Each confirmed leg is labelled with its duration, positioned away from price using an ATR-based offset so labels remain readable and unobstructed by candles.
Uptrend and downtrend legs are automatically colour-coded, and the indicator tracks rolling averages of trend duration to provide context on how long trends typically persist.
Key features:
ZigZag trend legs based on configurable deviation and depth
Day-count label for every completed leg
Clear, high-contrast labels offset from price
Automatic colouring for up and down trends
Rolling average duration of the last N uptrends and downtrends (default: 20)
Optional extension of the current, in-progress leg
How to use:
Identify potential trend exhaustion by comparing the current leg length to historical averages
Gauge whether a trend is statistically extended or still within normal duration
Combine with price action, support/resistance, or momentum indicators for confirmation
Works on all timeframes. On daily charts, day counts align closely with bars; on intraday charts, durations are calculated using calendar time.
Triple move 3zthis script best fit for trading spy options.
gamepal@gmail.com for detail.
you can get signal free for one moth through email.
Market Memory Layer by TheArchitectProject - COMMUNITY🎭 MARKET MEMORY LAYER by TheArchitectProject
🧠 PRICE REMEMBERS SAME CALENDAR DAYS FROM PAST YEARS
NAS100FT traders discovered → NOW UNIVERSAL
✅ 2023 👻 GREEN High/Low Lines (FREE)
✅ 2021 👻 PURPLE High/Low Lines (FREE)
📈 WORKS PERFECTLY:
• NAS100FT • EURUSD • SPX • BTC • DJ30FT • XAUUSD • XAGUSD
• 1m → Monthly timeframes
• No scam • All brokers
🔥 PRO VERSION ($67/mo):
• 1 Custom Year "Purple Ghosts" (1971-2025)
• ALL 6 years + 2025 live ghosts
• Discord setups • PDF manual
👻 patreon.com/TheArchitectProject
#MarketMemory #GhostTrading #NAS100FT
Longoni Stocks DetectorThis method is based on different types of indicators, primarily to determine if a stock or company meets the selection criteria popularized by Mark Minervini. It seeks to identify, from a technical perspective, companies with "superperformance" potential. In an intuitive way, one can see if a stock meets Minervini's criteria.
It also includes an indicator to determine a stock's Relative Strength (RS), essential for inclusion in the "Minervini companies" list.
Finally, the indicator also identifies potential bullish or bearish capitulation points, highlighting possible entry or exit points.
The indicator is named in honor of the philanthropist Diego Longoni for all the work and love he dedicated to his community, always striving for the financial independence of his fellow citizens.
How fortunate we are to have you in our lives Diegote!!!.
Defyler ORB30m Opening Range Breakout, will prompt orders and exits. You can adjust your tolerances by setting the box multiplier. Smaller number = tighter TP/SL, larger number will give wider stops. I suggest using 1.65 on trend days, 1.35-1.4 on regular days.
Ict Core //@bajgos.nqFLOW IS THE GOAT
## ## Key Features
**Author: bajgos.nq //discord**
### ### 1. Key Market Open Levels
The indicator tracks and plots horizontal lines for significant market opening times across various timeframes.
- **Custom Key Opens**: Supports up to seven user-defined daily timestamps (e.g., 8:30, 9:30, 10:00) with individual toggles, custom colors, and unique labels.
- **Higher Timeframe (HTF) Opens**: Automatically plots current and previous levels for Daily (DO/PDO), Weekly (WO/PWO), Monthly (MO/PMO), Quarterly (QO/PQO), and Yearly (YO/PYO) opens.
- **Intersection Confluence Logic**: A specialized algorithm that identifies when multiple timeframe opens coincide at the same price level. It dynamically updates the label to show all overlapping opens, such as "DO / WO / MO" or "PDO / PMO".
- **Lookback & Visual Control**: Users can define a lookback period (up to 20 days) for historical lines and adjust the label/line distance to the right of the current bar.
### ### 2. Session Tracking & Asia "Vodo"
Provides automated visual boxes and levels for major trading sessions and "Kill Zones" (KZ).
- **Institutional Sessions**: Visualizes London (lokz), New York AM, New York PM, and Asia (askz) sessions.
- **Dynamic Range Visuals**: Sessions are drawn with "legs" that connect the session high/low range to the price action for clear visual reference.
- **Asia Range + Vodo Levels**: Beyond standard session highs and lows, this module plots specific **"Vodo" Fibonacci-style deviations**. These include fixed offsets at 0.225, 0.25, and 0.272, with an optional 0.35 deviation toggle for both upper and lower expansions.
### ### 3. Wick Theory & Quadrant Levels
This feature identifies pivot highs and lows to highlight price "wicks" as potential institutional reaction zones.
- **Wick Detection**: Uses a customizable "Wick Aggression" length to identify pivot points.
- **Mitigation Logic**: Areas can be set to "mitigate" (disappear) once price retraces into the 50% midpoint of the wick.
- **Quadrant Analysis**: Displays 25%, 50%, and 75% levels within a detected wick to pinpoint precise internal institutional levels.
- **Future Extension**: Wick boxes and quadrant lines are extended into the future by a user-defined bar count.
### ### 4. New Week Opening Gaps (NWOG)
The indicator detects and tracks the physical price gaps created between the previous week's close and the new week's open.
- **Visual Tracking**: Displays a user-defined number of the most recent weekly gaps on the chart.
- **Gap Anatomy**: Each gap includes visual levels for the Gap Top, Gap Bottom, and the Midline (Consequent Encroachment).
### ### 5. SDM Time Window Highlight
The **SDM** feature serves as a specialized **time window highlight** designed to mark specific institutional periods.
- **Visual Zones**: Creates a vertical highlight for specific time windows, such as 9:30 AM to 11:00 AM New York Time.
- **Infinite Vertical Span**: These highlights use a "practically infinite" vertical span, ensuring the highlight remains visible across all price levels regardless of market volatility.
- **History Management**: Automatically manages a history of these windows based on a "Maximum Days Lookback" setting to prevent chart clutter.
### ### 6. Technical Utilities & Customization
- **GMT Offset**: Includes a GMT offset input to align key market opens with specific broker or local time settings.
- **Global Visual Settings**: Users can customize line widths, label sizes, and colors for all session boxes and timeframe opens.
- **Multi-Timeframe Security**: Utilizes `request.security` with `lookahead_on` to ensure accurate and reliable historical data for higher timeframe opens.
Smart Trading Assistant v3.0Product Introduction:
This is a multi-functional trading assistant tool that combines various market analysis techniques to help traders identify potential trading opportunities.
Main Modules:
Dynamic Price Filter
· Adaptive to market volatility
· Intelligent trend-following adjustments
· Reduces market noise interference
Market Structure Visualization
· Identifies key price zones
· Displays potential support/resistance areas
· Automatically extends reference intervals
Multi-Condition Confirmation System
· Built-in momentum indicator validation
· Volume activity detection
· Multi-dimensional signal filtering
Trend Direction Assistance
· Medium-to-long-term trend reference
· Multi-cycle smoothing processing
· Trend strength visualization
Product Features:
Multi-technique fusion analysis
Customizable parameter settings
Visual interface design
Automatic signal marking
Real-time dynamic updates
Applicable Scenarios:
Trend-following strategy assistance
Key price level identification
Trading timing reference
Risk management support
SessionsBuilt to display useful time sessions, mostly Frankfort and NY.
It also display the Asian range and fractal bars.
All three sub indicators are toggable separatly.
Works best for french trades as it's how it's been coded for.
If you want adapt it to your timezone, edit the "Fuseau horaire" option to match yours.
I intend to add another big indicator to make a cool package in the future.
I will soon try to make everything editable so you can chose what you can display (dont ask for when)
This is a full vibe coded script, feel free to fork it and edit it to your convenience as long as you credit me and share me yours so we can see what can be improved.
Enjoy :)
Stop Getting Whipsawed. Meet Fimathe Elite V40 (State Machine LoThe trader's biggest enemy isn't the market—it's indecision and market noise. "Should I enter now?", "The price pulled back, should I exit or hold?".
To solve this, I developed Fimathe Elite V40. This is not just a simple indicator; it is a complete Trade Management System based on the renowned Fimathe technique (Reference Channels & Neutral Zones), but armored with institutional-grade algorithms to filter out fake signals.
💡 WHY IS THIS SCRIPT DIFFERENT?
Most indicators repaint or spam "Sell" signals the moment a candle turns red, even during a healthy bullish pullback. Fimathe Elite V40 solves this using a sophisticated State Machine Engine.
1. The "State Machine" Technology (No Noise): The script has "memory". It knows if you are already positioned.
Silence: If you are in a trade, it ignores minor fluctuations. It will NOT spam new signals during a consolidation.
Action: It only alerts you in two specific scenarios: Profit Expansion (Level Breakout) or True Reversal (Close against the Stop Loss).
2. Smart Trend Detection (Linear Regression): Instead of guessing the trend, the script calculates the mathematical slope of the last X bars using Linear Regression.
If the slope is positive = It creates Bullish Channels (Reference Channel on Top).
If the slope is negative = It creates Bearish Channels (Reference Channel on Bottom). This prevents you from trading against the mathematical flow of the market.
3. Visual Trade Management:
Active Stop Loss (Orange Line): A visual floor/ceiling that trails the price. If the price does not close beyond this line, you stay in the trade, ignoring emotional wicks.
Active Target (Green Line): Shows exactly where the next expansion level is.
Full Grid: Automatically projects Level 1, 2, and 3 for roadmap planning.
🚀 HOW TO TRADE:
Wait for the Map: Let the script draw the CR (Reference Channel) and NZ (Neutral Zone) automatically (it skips the volatile opening minutes).
The Signal: Wait for the "BUY (Breakout)" or "SELL (Breakout)" label. This signal appears on the close of the breakout candle.
The Entry: Enter on the violation of that candle's high/low.
The Ride: Follow the Orange Line. As the price conquers new levels, the Stop Loss automatically moves up (Trailing Stop) to lock in profits.
🛡️ Risk Management: This tool is designed to force discipline. It visually shows you that a pullback is not a reversal, keeping you in the trend longer and getting you out immediately when the structure actually breaks.
Daily SR - Locked VersionRiverSide Indicator - User Guide📊 What is RiverSide?RiverSide is a dynamic channel indicator that creates Upper and Lower bands around a Moving Average (MA). The bands automatically change color based on their position relative to the EMA 200, helping you identify market trends.🎯 Key Features1. Dynamic Bands
Upper Band = MA × (1 + Deviation %)
Lower Band = MA × (1 - Deviation %)
Bands expand and contract based on the MA value
2. Color-Coded Trend
🔵 Blue Lines = Bullish trend (MA above EMA 200)
🔴 Red Lines = Bearish trend (MA below EMA 200)
3. Customizable Settings
MA Period: Default 50 (adjustable)
MA Type: EMA, SMA, WMA, or RMA
Deviation: Default 0.14% (adjustable from 0.1% to 100%)
Applied Price: Close, Open, High, Low, HL2, HLC3, OHLC4
Seasonality (Prev Month Close Expected)Seasonality Indicator
This indicator shows how an asset has historically behaved during each calendar month. It highlights the typical price direction and strength for the current month based on long-term seasonal patterns.
The projected zone on the chart represents the average historical outcome for the ongoing month, allowing traders to quickly see whether current price action is developing in line with, above, or below its usual seasonal behavior. A heatmap summarizes monthly performance across years, making recurring strong and weak periods easy to identify.
Vladimir Popdimitrov
Seasonax Pro PopdimitrovThis indicator studies how an asset has historically behaved during each calendar month and uses that information to frame expectations for the current month. When a new month begins, it anchors the analysis to the confirmed closing price of the previous month and compares the current month to all past occurrences of the same month.
Based on this long-term seasonal behavior, the indicator projects an expected price zone for the ongoing month, showing where price would typically end if it follows its historical monthly pattern. The projection is visualized directly on the chart, making it easy to see whether current price action is developing above, below, or in line with seasonal norms.
The accompanying heatmap highlights monthly tendencies across years, helping traders identify recurring strengths, weaknesses, and consistency in seasonal performance.
Vladimir Popdimitrov
Hedge Fund Session Ranges [GMT+2] - Multi-Timezone TrackingOverview
This professional-grade tool is designed for institutional-style trading, specifically focusing on the Liquidity Cycles of the global markets. It allows traders to visualize key trading windows (Asia, Europe, and US) with precision, using a fixed GMT+2 offset—ideal for traders aligned with Middle Eastern or Eastern European timezones.
Key Features
Triple Session Tracking: Includes pre-defined windows for Asia, London Morning, and NY Afternoon.
Dynamic Box Scaling: Automatically calculates and visualizes the High/Low range of each session in real-time.
GMT+2 Optimization: Built-in timezone handling to ensure your charts align perfectly with local bank hours.
Clean Visuals: Minimalist design to avoid chart clutter, allowing for clear price action analysis.
Why Trade Sessions?
Institutional volume isn't distributed evenly throughout the day. By identifying the Asian Range (01:00-06:00), the London Open (10:00-12:00), and the NY Reversal/Trend (16:30-18:30), traders can identify "Liquidity Grabs" and "Expansion Phases" more effectively.
QUARTERLY CYCLES - DAY - SESSION - 90M - RICH BVWYThis custom version of the origional script by © HandlesHandle
refines the quarter labeling system. Instead of implying discrete deliveries (A, M, D, X etc.), quarters are labeled Q1–Q4 to reflect fixed time ranges. This ensures clarity: quarters are structural anchors, while AMDX variables define the actual cycle behavior. The indicator highlights cycles, not expected deliveries.
Commodity Market Structure SuiteThe Commodity Market Structure Suite is a unified indicator combining three powerful analytical frameworks into one comprehensive tool for analyzing commodity markets. It integrates term structure analysis, spot-futures spread dynamics, and Commitment of Traders positioning data into a scientifically-weighted composite score.
This indicator consolidates the functionality of three separate tools into one:
1. Futures Basis Suite (term structure, contango/backwardation)
2. Spot-Futures Spread (premium/discount, arbitrage)
3. Commodity Crowded Trade Suite (COT positioning)
The composite score is calculated using weights derived from academic research on commodity futures returns.
SCIENTIFIC FOUNDATION
The indicator is built on established financial theory and recent academic research.
THEORY OF STORAGE (Working 1933, Kaldor 1939)
The Theory of Storage explains the relationship between spot and futures prices through the cost-of-carry model. The futures price equals the spot price plus storage costs, insurance, and financing costs, minus the convenience yield. The convenience yield represents the benefit of holding physical inventory, which increases when supplies are tight.
When convenience yield exceeds carrying costs, the market enters backwardation. When carrying costs dominate, the market is in contango. This relationship provides fundamental signals about physical supply and demand conditions.
TERM STRUCTURE TRADING STRATEGIES (Erb and Harvey 2006, Gorton and Rouwenhorst 2006)
Academic research has documented significant risk premiums associated with futures term structure. A 2011 study in the Journal of Banking and Finance found that combining momentum signals with term structure signals generated annualized returns of 21 percent, significantly outperforming single-signal strategies. The strategy involves buying commodities in backwardation and selling commodities in contango.
LIMITS TO ARBITRAGE
Recent academic work reveals that arbitrage does not fully eliminate pricing distortions in commodity futures markets. Institutional investors and index traders introduce persistent distortions, especially in distant expiration contracts. This creates exploitable inefficiencies that the indicator helps identify.
CONVENIENCE YIELD AND INVENTORY
Empirical studies confirm that convenience yield is inversely related to physical inventory levels across 21 different commodities. Low inventory correlates with backwardation and high convenience yield. High inventory correlates with contango and low convenience yield. Price volatility decreases as inventory increases, with this effect being more pronounced in backwardated markets.
COT POSITIONING AND PRICE PREDICTION
Research shows that commercial hedger positions provide valuable information about future price direction. Commercials tend to be net buyers before price increases and net sellers before decreases. Extreme speculator positioning often precedes reversals, as crowded trades unwind.
DATA ARCHITECTURE
The indicator fetches data from multiple sources:
TERM STRUCTURE DATA
Compares front month futures (e.g., GC1!) with second month futures (e.g., GC2!) to determine the shape of the futures curve. Positive spread (front > back) indicates backwardation. Negative spread (front < back) indicates contango.
SPOT-FUTURES DATA
Compares spot or cash market prices (e.g., XAUUSD) with front month futures to determine premium or discount. Positive spread indicates futures premium. Negative spread indicates futures discount.
COT DATA
Uses TradingView LibraryCOT to fetch Commitment of Traders data including commercial positions, speculator positions, and open interest. Supports Legacy, Disaggregated, and Financial report types.
COMPOSITE SCORE CALCULATION
The composite score combines four normalized signals using configurable weights:
Composite = (TermSignal x W1) + (SpotFutSignal x W2) + (COTSignal x W3) + (PhysicalSignal x W4)
Default weights based on research: Term=0.25, SpotFut=0.30, COT=0.30, Physical=0.15
TERM SIGNAL
The z-score of the term structure spread. Flattening contango (higher z-score) is bullish. Deepening contango (lower z-score) is bearish. Backwardation is bullish.
SPOT-FUTURES SIGNAL
The inverted z-score of the spot-futures spread. Futures discount (physical demand) is bullish. Futures premium is bearish.
COT SIGNAL
The z-score of commercial net positioning. Commercial buying (positive z-score) is bullish. Commercial selling is bearish.
PHYSICAL STRESS SIGNAL
Triggered when spread volatility or spread extremes exceed thresholds. Adds to signal in direction of other indicators when physical market stress is detected.
ANALYSIS MODES
1. MARKET STRUCTURE COMPOSITE
The default mode showing the weighted composite score. Positive values indicate bullish market structure. Negative values indicate bearish structure. Values beyond plus or minus 2 sigma indicate extreme conditions.
2. TERM STRUCTURE
Shows the z-score of the futures curve spread. Visualizes whether the market is in contango or backwardation relative to historical norms.
3. SPOT-FUTURES PREMIUM
Shows the z-score of the spot-futures spread. Visualizes whether futures trade at premium or discount to spot.
4. COT POSITIONING
Shows the z-score of commercial net positioning. Visualizes whether commercials are accumulating or distributing.
5. PHYSICAL STRESS INDEX
Shows combined stress indicators from spread volatility and extremes. Alerts when physical delivery conditions become strained.
6. DIVERGENCE SCANNER
Detects price-positioning divergences. Bullish divergence occurs when price makes new lows but positioning improves. Bearish divergence occurs when price makes new highs but positioning deteriorates.
7. RAW DEBUG
Shows underlying calculations for troubleshooting.
SIGNAL INTERPRETATION
The dashboard provides automatic signal interpretation based on the combination of readings:
PHYSICAL SQUEEZE
Occurs when backwardation coincides with futures discount. This is the strongest bullish signal, indicating severe physical supply tightness. Historically associated with significant price rallies.
ACCUMULATION
Occurs when contango is flattening and commercials are buying (positive commercial z-score). Indicates smart money accumulation.
DISTRIBUTION
Occurs when contango is deepening and speculator positioning is extremely long. Indicates potential distribution phase before decline.
REGIME CHANGE
Occurs when multiple z-scores reach extreme levels simultaneously. Indicates high probability of significant market shift.
BULLISH SETUP
Occurs when composite score exceeds plus 1 sigma without extreme conditions. Favorable market structure for long positions.
BEARISH SETUP
Occurs when composite score falls below minus 1 sigma without extreme conditions. Unfavorable market structure for long positions.
INTERPRETING FOR PRECIOUS METALS
Gold and silver are almost always in contango. This is normal and expected. The key signals for precious metals are:
FLATTENING CONTANGO
When the term structure spread becomes less negative, physical supply is tightening. This is bullish. The z-score will rise toward positive territory.
DEEPENING CONTANGO
When the term structure spread becomes more negative, supply is ample. This is neutral to bearish. The z-score will fall toward negative territory.
BACKWARDATION
Extremely rare for precious metals. When it occurs, it signals severe physical market stress and is strongly bullish. Historical examples include the Hunt Brothers silver squeeze in 1980 and the October 2025 silver squeeze.
FUTURES DISCOUNT
When futures trade below spot, physical demand exceeds paper market supply. This is bullish and indicates real buying pressure.
SETTINGS GUIDE
SYMBOL SELECTION
Auto-Detect reads the chart symbol and configures all data sources automatically. Dropdown provides preset configurations for common commodities. Manual allows custom symbol entry.
DATA SOURCES
Individual data sources can be enabled or disabled. Disabling a source removes its contribution from the composite score.
COMPOSITE WEIGHTS
Adjust the relative importance of each signal. Weights should sum to approximately 1.0 for proper scaling, though the indicator normalizes automatically.
STATISTICAL ENGINE
Z-Score Length determines the lookback period for normalization. Default of 52 represents approximately one year on daily charts. Extreme Z-Score sets the threshold for flagging extreme conditions. Physical Stress Z sets the threshold for physical market stress alerts.
ALERTS
COMPOSITE FLIP
Triggers when the composite score crosses zero, indicating a shift from bullish to bearish structure or vice versa.
PHYSICAL STRESS
Triggers when physical market stress is first detected, indicating potential delivery squeeze conditions.
REGIME CHANGE
Triggers when the market shifts between contango and backwardation.
COT EXTREME
Triggers when commercial or speculator positioning reaches historical extremes, indicating elevated reversal risk.
DIVERGENCE ALERTS
Triggers when price-positioning divergences are detected.
SUPPORTED COMMODITIES
Gold: Spot OANDA:XAUUSD, Futures COMEX:GC1!, CFTC 088691
Silver: Spot OANDA:XAGUSD, Futures COMEX:SI1!, CFTC 084691
Crude Oil: Spot TVC:USOIL, Futures NYMEX:CL1!, CFTC 067651
Natural Gas: Futures NYMEX:NG1!, CFTC 023651
Copper: Futures COMEX:HG1!, CFTC 085692
Wheat: Futures CBOT:ZW1!, CFTC 001602
Corn: Futures CBOT:ZC1!, CFTC 002602
Soybeans: Futures CBOT:ZS1!, CFTC 005602
PRACTICAL APPLICATION
For best results, use this indicator on daily or weekly timeframes. Commodity data, especially COT data, is updated weekly and works best on longer timeframes.
When analyzing a commodity:
1. Check the composite score for overall market structure
2. Review the signal interpretation for context
3. Examine individual components (term structure, spot-futures, COT) for confirmation
4. Watch for physical stress alerts indicating delivery conditions
5. Monitor divergences for potential reversal signals
Combine this indicator with price action analysis and fundamental research for complete market analysis.
LIMITATIONS
The indicator relies on multiple data sources that may have different update frequencies. COT data is updated weekly. Some spot price sources may have gaps during certain hours. Term structure and spot-futures spreads work best for commodities with liquid continuous futures contracts. Very short timeframes may produce noisy signals.
REFERENCES
Working, H. (1933). Price Relations between July and September Wheat Futures at Chicago since 1885. Wheat Studies.
Kaldor, N. (1939). Speculation and Economic Stability. Review of Economic Studies.
Erb, C. and Harvey, C. (2006). The Strategic and Tactical Value of Commodity Futures. Financial Analysts Journal.
Gorton, G. and Rouwenhorst, K. (2006). Facts and Fantasies about Commodity Futures. Financial Analysts Journal.
Miffre, J. and Rallis, G. (2007). Momentum Strategies in Commodity Futures Markets. Journal of Banking and Finance.
Various (2024). Limits to Arbitrage in Commodity Futures Markets. SSRN Working Paper.
VERSION HISTORY
Version 1 released as unified indicator combining term structure, spot-futures spread, and COT positioning analysis with scientifically-weighted composite score.
CREDITS
Developed by Robinhodl21. Released under Mozilla Public License 2.0.
Spot-Futures SpreadThe Spot-Futures Spread indicator measures the price difference between spot (cash) markets and futures markets for the same underlying asset. This spread reveals important information about market structure, sentiment, and potential arbitrage opportunities.
When futures trade above spot, this is called a futures premium. When futures trade below spot, this is called a futures discount. The size and direction of this spread provides insight into whether traders expect prices to rise or fall, how much it costs to carry the asset, and whether there are unusual supply or demand imbalances.
HOW IT WORKS
The indicator fetches price data from two different markets: a spot or cash market price and a futures contract price. For example, it might compare the spot gold price from a forex broker (XAUUSD) with the front month gold futures contract on COMEX (GC1!).
The core calculation is simple. Spread equals Futures Price minus Spot Price. A positive result means futures are trading at a premium to spot. A negative result means futures are trading at a discount to spot.
The indicator expresses this spread in multiple ways: as an absolute dollar value, as a percentage of the spot price, and as a statistical z-score showing how the current spread compares to historical norms.
DIFFERENCE FROM THE BASIS SUITE
The Futures Basis Suite compares two futures contracts of different expiration months, such as the front month versus the second month. This shows the term structure or curve shape of the futures market.
The Spot-Futures Spread indicator compares the actual spot or cash market price to a futures contract. This shows the relationship between physical market pricing and derivatives market pricing.
Both indicators provide valuable but different information. The basis suite shows carrying costs and convenience yield within the futures market. The spot-futures spread shows how the derivatives market relates to the underlying physical or cash market.
FUTURES PREMIUM EXPLAINED
A futures premium means the futures price is higher than the spot price. This is the normal condition for most assets. The premium reflects several factors.
First, it includes the cost of carry. Holding a physical asset requires storage, insurance, and financing costs. Futures buyers avoid these costs, so they pay a premium reflecting what it would cost to hold the physical asset until delivery.
Second, it may reflect expectations of rising prices. If traders expect the asset price to increase, futures will trade at a premium to current spot.
Third, for financial assets like stock index futures, the premium reflects interest rates minus expected dividends. This is called the fair value premium.
FUTURES DISCOUNT EXPLAINED
A futures discount means the futures price is lower than the spot price. This is unusual for most assets and signals something important.
For commodities, a discount often indicates immediate physical scarcity. Buyers need the commodity now and are willing to pay more for immediate delivery than for future delivery.
For financial assets, a discount can indicate expected price declines, upcoming dividend payments, or market stress where futures are being sold heavily.
For cryptocurrencies, a discount often signals bearish sentiment as leveraged traders reduce long positions.
ANALYSIS MODES
Spread Absolute mode shows the raw dollar difference between futures and spot. This is useful for seeing the actual cost in currency terms.
Spread Percentage mode expresses the spread as a percentage of the spot price. This makes it easier to compare across different assets and time periods.
Z-Score mode normalizes the current spread against its historical distribution. A z-score of zero means the spread is at its historical average. Extreme z-scores indicate unusual conditions.
Premium/Discount mode labels the current regime and shows the spread percentage. This provides the clearest read on market conditions.
Raw Debug mode displays the underlying prices and calculation details for troubleshooting.
IMPORTANT SETTINGS
Symbol Mode determines how the indicator finds the spot and futures prices. Auto Detect reads your chart symbol and selects appropriate spot and futures sources. Dropdown lets you select from common assets. Manual lets you enter custom ticker symbols.
Spread Direction sets the calculation order. Futures minus Spot means positive values indicate premium. Spot minus Futures reverses this convention.
Premium Threshold and Discount Threshold set the percentage levels for classifying the spread as a premium, discount, or fair value.
Z-Score Length sets the lookback period for calculating how unusual the current spread is.
Arbitrage Threshold sets the percentage level at which the indicator flags potential arbitrage opportunities.
INTERPRETING THE SPREAD FOR DIFFERENT ASSETS
For precious metals like gold and silver, the spread reflects storage costs and financing costs. A larger than normal premium may indicate that physical is readily available. A narrowing premium or discount indicates physical tightness.
For crude oil, the spread reflects storage economics. When storage is cheap and plentiful, futures trade at premium. When storage is scarce or oil is in high demand, the spread narrows or inverts.
For stock index futures like the S&P 500, the spread reflects interest rates minus expected dividends. Deviations from fair value create arbitrage opportunities for institutional traders.
For cryptocurrencies, the spread reflects sentiment and funding conditions. Large premiums indicate bullish leverage. Discounts indicate bearish positioning or liquidation events.
ARBITRAGE OPPORTUNITIES
When the spot-futures spread deviates significantly from fair value, arbitrage opportunities may exist. Professional traders can exploit these by simultaneously buying the cheaper market and selling the more expensive market, locking in the spread as profit when prices converge.
The indicator alerts when spreads reach levels that historically indicate arbitrage opportunities. However, actual arbitrage requires accounting for transaction costs, execution risk, and margin requirements.
TRADING SIGNALS
Flip from Premium to Discount is often bearish. It indicates that near-term demand has collapsed or that leveraged longs are being liquidated.
Flip from Discount to Premium is often bullish. It indicates improving sentiment and increased demand for leveraged long exposure.
Extreme Z-Scores suggest the spread is unsustainable and likely to revert. This can indicate mean reversion trades or flag unusual market conditions requiring attention.
Expanding Spread during price rallies confirms that the move has broad participation from both spot and futures markets. Narrowing spread during rallies suggests futures traders are not confirming the move.
ALERTS
Regime Flip alerts trigger when the market crosses from premium to discount or vice versa.
Extreme Z-Score alerts trigger when the spread reaches statistical extremes.
Arbitrage Level alerts trigger when the spread exceeds the configured threshold, potentially indicating arbitrage opportunities.
SUPPORTED ASSETS
The indicator supports major assets across multiple classes. Precious metals include gold and silver comparing forex spot to COMEX futures. Energy includes crude oil comparing cash prices to NYMEX futures. Cryptocurrencies include Bitcoin and Ethereum comparing index prices to CME futures. Stock indices include S&P 500 and Nasdaq comparing cash indices to CME futures. Currencies include Euro and Yen comparing forex rates to CME futures.
LIMITATIONS
Spot and futures markets may have different trading hours, creating gaps in the spread calculation. Data quality varies between spot price sources. Transaction costs and execution risk affect whether theoretical arbitrage opportunities are practical. The indicator shows a single futures contract and does not capture the full term structure.
VERSION HISTORY
Version 1 released with five analysis modes, automatic symbol detection, comprehensive dashboard, regime classification, and arbitrage alerts.
CREDITS
Developed by Robinhodl21 as part of the Grandmaster Indicator Suite. Released under Mozilla Public License 2.0.






















