darshakssc SMC Infinity Enginedarshakssc SMC Infinity Engine is an advanced Smart Money Concepts–based tool designed to help traders visually understand institutional price behavior such as liquidity sweeps, displacement moves, and structure breaks — all without repainting.
This script does not predict the future or guarantee outcomes.
Instead, it provides a structured price-action framework to help traders study how markets move during key intraday phases.
🔍 Core Concepts Used
This indicator highlights:
Liquidity Sweeps (equal highs/lows taken out)
Displacement Candles (strong institutional momentum bars)
Break of Structure (BOS) confirmations
Kill Zone Sessions (optional smart-money timing filter)
Higher Time Frame Trend Alignment
Dynamic Entry, Stop Loss, and Target Levels
Internal trade outcome tagging (TP1/TP2/TP3/SL)
These components are widely used in institutional price-action models and can help users understand how liquidity and structure interact throughout the trading day.
📊 What the Indicator Displays
LONG / SHORT signals after confirmed BOS
Entry, SL, TP1, TP2, TP3 mapped directly on the chart
Background highlighting for liquidity sweep zones
A clean dashboard showing:
Current symbol
Current price
Number of setups recognized
TP1/TP2/TP3 stats
SL count
Live win-rate calculation
Last outcome recorded
All visuals are provided for study purposes to help users review how price reacts during key structure shifts.
🧠 How to Use It (Educational Purpose)
This tool is designed as a market research & educational study aid.
You can use it to:
Observe how liquidity sweeps often precede directional moves
Study how displacement confirms institutional intent
Analyze BOS-based structure shifts
Compare HTF trend alignment with LTF execution
Review trade outcomes historically for self-improvement
It can assist in building discipline and consistency when learning SMC-style concepts — without any automation or strategy execution.
⚠️ Important Notes
This script does not repaint.
This is not a trading system, signal generator, or financial advice.
All information is for educational and informational purposes only.
Past performance does not guarantee future results.
Users should always perform their own analysis and risk management.
🛡️ Compliance Disclaimer
This script is provided for educational purposes only.
It does not constitute investment advice, does not guarantee results, and should not be used as the sole basis for any trading decision.
المؤشرات والاستراتيجيات
Pro AI Trading - Monthly Weekly Daily open w/ Calendar viewCaptures 1st hour of the trading day (initial balance) and draws the boxes marking the range and the line marking the precise open price .
Uses month , week and day openings. Quarterly and yearly/half a year opens have a different color to signal the weight.
Contains D/W/M vertical separators as well, so it can be used as a "calendar" for easier chart organization and overview.
Lots of customization options for everyone.
If you notice any bugs or have some suggestions and/or feature requests, reach out. Don't be shy.
Trade well :)
- KamenskyPapp
Vince/Williams Market Internals SuiteThis indicator is a powerhouse combination of three distinct market internal strategies developed by Ralph Vince and Larry Williams. Instead of using three separate scripts to monitor market health, this tool consolidates them into a single dashboard that analyzes NYSE "New Lows" data to detect structural rot, capitulation, and crash risks.
The first component is the Volatility Vulnerability monitor, which identifies when the market structure is decaying. It looks for an extended period where the number of New Lows fails to drop to negligible levels. If you see an Orange Circle while price is above the 50 SMA, it is a major warning that the uptrend is hollow and prone to a crash. Conversely, a Blue Circle below the 50 SMA suggests the weakness is already priced in, offering a contrarian entry signal.
The second component is the Selling Climax signal. This identifies moments of pure terror where New Lows hit extreme levels (default 20%). The script marks these panic days with Orange Diamonds, but the real value is the Green Diamond that appears immediately when the panic subsides, often signaling a sharp V-bottom.
Finally, the Bloodbath Rule runs in the background as a defensive filter. When the background turns red (marked by a Red Cross), it means New Lows have breached the "danger" threshold (default 4%). During these periods, internal selling pressure is accelerating, and you should strictly avoid entering new long positions until the background clears.
Note: This script relies on broad market data (ADVN/DECN/LOWN) and works best on Daily timeframes.
ILM & IFVG StrategyPlease feel free to adjust in any way possible. Let me know if you can create something better from this initial coding.
//═══════════════════════════════════════════════════════════════════════
// Inverted Liquidity Model (ILM) – Strategy
//═══════════════════════════════════════════════════════════════════════
//
// The **Inverted Liquidity Model (ILM)** is a liquidity-based algorithm
// built to capture high-probability reversals after:
//
// • A liquidity sweep (SSL/BSL taken)
// • Rejection back inside the range
// • A Fair Value Gap (FVG) forms
// • That FVG becomes invalidated → becomes an IFVG entry zone
//
// ILM combines:
// • LTF BOS / CHOCH structure confirmation
// • HTF structure (expansion) filtering
// • Premium / Discount filter (17:00 CST session midline)
// • Optional ATR volatility filter
// • Optional trading session restrictions
// • Optional partial profit-taking + runners
//
// When all conditions align, the strategy enters:
// ✔ Long after sweep of SSL + valid long IFVG + trend confirmation
// ✔ Short after sweep of BSL + valid short IFVG + trend confirmation
//
// Stops are placed at the sweep wick.
// Full target is set at the next structural high/low.
// Optional partial TP sends a runner to full target.
//
// Visual tools (labels, sweep lines, IFVG boxes, midline) assist
// with review and forward testing.
//
//───────────────────────────────────────────────────────────────────────
// USER CONFIGURABLE FEATURES
//───────────────────────────────────────────────────────────────────────
//
// • **Liquidity & Structure**
// - pivotLen → swing length for pivots / liquidity
// - htfOn → toggle higher-timeframe pivots
// - htfTF → timeframe for HTF structure/liquidity
// - useStructureFilter → enforce LTF BOS/CHOCH trend
// - useHtfExpansionFilter → enforce HTF trend
// - showStructureLabels → show BOS/CHOCH labels
// - showHtfStructureLabels → show HTF BOS/CHOCH labels
//
// • **Premium / Discount Midline**
// - usePremiumDiscountFilter → only long in discount / short in premium
// - pdSession → session used for midline (default 17:00 CST)
// - showPdMidLine → show 50% midline
//
// • **FVG / IFVG Detection**
// - useBodyGapFVG → FVG uses candle bodies instead of wicks
// - useDisplacementFVG → require displacement bar
// - dispAtrMult → minimum ATR threshold for displacement
// - showIFVG → draw IFVG boxes
//
// • **ATR / Volatility / Sessions**
// - useRangeFilter → require minimum ATR%
// - atrLen → ATR period
// - minAtrPerc → minimum ATR% of price
// - useSessionFilter → restrict trading hours
// - sessionTimes → allowed trading session
//
// • **Sweep Visualization**
// - showSweepLines → draw sweep lines at SSL/BSL sweeps
// - sweepLineWidth → thickness of sweep lines
//
// • **Exits: Partial Targets & Runners**
// - usePartialTargets → enable partial TP logic
// - tp1QtyPercent → percent closed at TP1
// - tp1FractionOfPath → TP1 relative to path to full target
//
// • **Formatting / Visibility**
// - labelFontSizeInput → tiny / small / normal / large / huge
// - showEntries → entry markers
// - showTargets → target lines
//
//═══════════════════════════════════════════════════════════════════════
// END OF STRATEGY DESCRIPTION
//═══════════════════════════════════════════════════════════════════════
myOpenPrice2Displays current session Open price as a line to make it easy to see where the market is in relation regardless of the zoom level of the chart.
3 day look backThis script is designed to help traders visually compare daily liquidity behavior between two correlated assets — for example, the Nasdaq (NQ) and the S&P500 (ES).
It plots each day’s High and Low, aligned from Midnight to Midnight, with a clean session structure. This makes it easier to identify:
SMT (Smart Money Technique) divergences
liquidity grabs
daily highs/lows sweeps
relative strength/weakness between assets
intraday bias shifts based on daily structure
What the script does
Reconstructs each trading day from 00:00 to 00:00, regardless of session irregularities.
Plots the High and Low of every completed day.
Allows users to display as many past days as they want (custom “look-back” parameter).
Automatically merges the weekend with Friday for assets where Saturday/Sunday sessions are fragmented.
Includes a manual midnight offset (–12h to +12h) to fix timezone inconsistencies on TradingView charts (common on futures).
Optional real-time lines for the current day.
No excessive right-side extensions for clean intraday reading.
Why this is useful
When comparing paired assets (e.g., NQ vs ES), liquidity behavior is often different.
This script makes it easy to spot:
when one asset makes a new daily high while the other doesn’t
asymmetrical liquidity sweeps
SMT-based divergence setups
liquidity grabs at daily levels
intraday directional bias shifts
About the other indicators shown on the chart
In the example chart, two additional indicators are used only for clarity and structure:
Day of the Week — displays the weekday on each session for easier orientation.
Vertical Line Timeline — draws a clean separator line between days.
These indicators are not required for this High/Low script to work.
They simply help visually organize sessions and make daily structure easier to read when comparing two assets side by side.
How to use
Open two assets (e.g., NQ1! and ES1!) side by side.
Apply this script on both charts.
Set the same timeframe.
Choose how many days back you want to visualize (look-back parameter).
Observe how each asset interacts with its daily High/Low.
Look for SMT divergences and liquidity-based setups.
Main features
Midnight-to-Midnight alignment
Weekend fusion
Manual offset for perfect timing
Adjustable daily look-back
Clean daily liquidity
Optional dynamic daily levels
Ideal for SMT/liquidity-based intraday trading
Double RSI With Color Fill5RSI & 8RSi for intraday. Buy when 5RSI crosses down with 8RSI and Sell if 5RSI crosses above 8RSI.
Diodato 'All Stars Align' Signal (Trend Filtered)This indicator implements the Diodato "All Stars Align" strategy, a breadth-based system designed to identify high-probability reversal points by analyzing internal market strength rather than just price action. It works by monitoring Advancing versus Declining issues and volume across the exchange to detect moments of extreme market panic. When these internal breadth metrics hit specific oversold thresholds and align simultaneously with a standard Stochastic oscillator, the script signals a potential bottom.
I have modified this version to strictly enforce trend alignment. The signals are now filtered so that they will only appear if the 50 SMA is trading above the 200 SMA. This ensures that the indicator only highlights buying opportunities during established uptrends while completely filtering out signals during bearish market regimes.
You should use this tool to time entries during market pullbacks. A green cross indicates that one of the major breadth components has aligned with oversold Stochastics, while a purple cross indicates a stronger signal where both volume and issue-based breadth metrics have triggered together.
MAGS ETF – Daily Chart Breakdown & Price Forecast📈 MAGS ETF – Daily Chart Breakdown & Price Forecast
Timeframe: 1D
MAGS is currently trading at $63.54, down -1.87% on the day. The chart shows a potential distribution structure forming after a strong prior uptrend.
🔍 Technical Highlights:
RSI Divergence (14 Close):
The RSI is at 40.14, trending lower after multiple bearish divergences. These signals typically warn of a momentum breakdown after an extended uptrend.
Structure Overview:
After a sharp move up, price action entered a ranging zone, marked by multiple lower highs and support retests. The current projection shows a possible head and shoulders or complex corrective structure forming.
Support Zone:
Critical support rests around $60.00–$61.00, marked by horizontal and dynamic levels. A breakdown from here could send prices lower toward the mid-$50s.
Bullish Reversal Zone:
If support holds, the projected wave count shows a potential rebound leg that may revisit previous resistance levels in the $68–$70 range.
🧠 Market Interpretation:
This chart suggests MAGS may be transitioning from an impulsive bullish phase to a corrective consolidation. While short-term bearish pressure is visible, a confirmed bounce from support could spark a recovery rally. Keep an eye on RSI behavior near the 40 level a sharp bullish divergence could flip the short-term outlook.
📉 Current bias: Neutral to Bearish (watch support)
📈 Upside target on reversal: $68–$70
⚠️ Breakdown trigger: Below $60 support zone
⚠️ Disclaimer: This is general information only and not financial advice. Always do your own research or consult a licensed professional before making any trading decisions.
MA 5-10-30-60-90-120 by MMCThis indicator only plots 6 moving average lines:
MA 5, MA 10, MA 30, MA 60, MA 90, MA 120
No ribbon, no fill, no clouds, no arrows, no alerts — completely clean and minimal.
Lines are thin (linewidth = 2) but colors are very bright/neon so they pop even on dark charts.
Two inputs:
MA Type → EMA (default, faster) or SMA (smoother but lags more)
Color Theme → 3 preset themes:
Canlı Kontrast → brightest and most visible (red-orange-yellow-green-blue-purple)
Gökkuşağı → classic rainbow order
Kırmızı-Yeşil → red/orange tones for short-term, green tones for long-term
Change the theme and colors update instantly.
supertrend long📌 Supertrend Short Strategy — Bear Trend Filter
This strategy focuses on short entries during bearish conditions using Supertrend direction as a trend filter.
🔍 Core Logic
Detects bearish trend using Supertrend calculation.
Only executes entries in the direction of the main trend.
Trade signal occurs when a breakdown happens below short-term structure or after continuation momentum.
Stop Loss and Take Profit levels are automatically calculated using previous volatility.
🎯 Best Use Case
Recommended timeframes: 1H / 4H
Works on crypto, FX and index futures charts.
Designed for momentum continuation and retest failures, not for reversal trading.
🛡 Risk Management & Features
Automatic dynamic SL/TP placement
No repaint on historical signals
Provides alert conditions for automation usage (Webhook / Bot)
⚠ This script is not financial advice. It is a technical research tool intended for educational and testing purposes.
First Sub-Candle Coloring (Fixed) - NEXT LEVELThis script colors the first 15m candle inside a 30m candle based on it being bullish or bearish.
Does the same for the first 30m candle inside a 1h candle.
VIX Fix Indicator (Hestla 2015)This script provides a streamlined version of the VIX Fix, referencing the foundational work of Larry Williams and the strategies of Amber Hestla. It serves as a synthetic volatility gauge for assets that lack a dedicated VIX index. The math works by measuring the percentage drop from the highest recent close to the current low, essentially quantifying fear in the market without needing options data.
This specific script is designed to be purely visual. I have removed all the buy and sell labels found in other versions to leave a clean pane that plots only the oscillator and its moving average. You can use this to identify potential market bottoms when the black line spikes significantly, signaling that selling pressure is reaching a mathematical extreme relative to the recent trend.
Liquidity Void Zone Detector [PhenLabs]📊 Liquidity Void Zone Detector
Version: PineScript™v6
📌 Description
The Liquidity Void Zone Detector is a sophisticated technical indicator designed to identify and visualize areas where price moved with abnormally low volume or rapid momentum, creating "voids" in market liquidity. These zones represent areas where insufficient trading activity occurred during price movement, often acting as magnets for future price action as the market seeks to fill these gaps.
Built on PineScript v6, this indicator employs a dual-detection methodology that analyzes both volume depletion patterns and price movement intensity relative to ATR. The revolutionary 3D visualization system uses three-layer polyline rendering with adaptive transparency and vertical offsets, creating genuine depth perception where low liquidity zones visually recede and high liquidity zones protrude forward. This makes critical market structure immediately apparent without cluttering your chart.
🚀 Points of Innovation
Dual detection algorithm combining volume threshold analysis and ATR-normalized price movement sensitivity for comprehensive void identification
Three-layer 3D visualization system with progressive transparency gradients (85%, 78%, 70%) and calculated vertical offsets for authentic depth perception
Intelligent state machine logic that tracks consecutive void bars and only renders zones meeting minimum qualification requirements
Dynamic strength scoring system (0-100 scale) that combines inverted volume ratios with movement intensity for accurate void characterization
Adaptive ATR-based spacing calculation that automatically adjusts 3D layering depth to match instrument volatility
Efficient memory management system supporting up to 100 simultaneous void visualizations with automatic array-based cleanup
🔧 Core Components
Volume Analysis Engine: Calculates rolling volume averages and compares current bar volume against dynamic thresholds to detect abnormally thin trading conditions
Price Movement Analyzer: Normalizes bar range against ATR to identify rapid price movements that indicate liquidity exhaustion regardless of instrument or timeframe
Void Tracking State Machine: Maintains persistent tracking of void start bars, price boundaries, consecutive bar counts, and cumulative strength across multiple bars
3D Polyline Renderer: Generates three-layer rectangular polylines with precise timestamp-to-bar index conversion and progressive offset calculations
Strength Calculation System: Combines volume component (inverted ratio capped at 100) with movement component (ATR intensity × 30) for comprehensive void scoring
🔥 Key Features
Automatic Void Detection: Continuously scans price action for low volume conditions or rapid movements, triggering void tracking when thresholds are exceeded
Real-Time Visualization: Creates 3D rectangular zones spanning from void initiation to termination, with color-coded depth indicating liquidity type
Adjustable Sensitivity: Configure volume threshold multiplier (0.1-2.0x), price movement sensitivity (0.5-5.0x), and minimum qualifying bars (1-10) for customized detection
Dual Color Coding: Separate visual treatment for low liquidity voids (receding red) and high liquidity zones (protruding green) based on 50-point strength threshold
Optional Compact Labels: Toggle LV (Low Volume) or HV (High Volume) circular labels at void centers for quick identification without visual clutter
Lookback Period Control: Adjust analysis window from 5 to 100 bars to match your trading timeframe and market volatility characteristics
Memory-Efficient Design: Automatically manages polyline and label arrays, deleting oldest elements when user-defined maximum is reached
Data Window Integration: Plots void detection binary, current strength score, and average volume for detailed analysis in TradingView's data window
🎨 Visualization
Three-Layer Depth System: Each void is rendered as three stacked polylines with progressive transparency (85%, 78%, 70%) and calculated vertical offsets creating authentic 3D appearance
Directional Depth Perception: Low liquidity zones recede with back layer most transparent; high liquidity zones protrude with front layer most transparent for instant visual differentiation
Adaptive Offset Spacing: Vertical separation between layers calculated as ATR(14) × 0.001, ensuring consistent 3D effect across different instruments and volatility regimes
Color Customization: Fully configurable base colors for both low liquidity zones (default: red with 80 transparency) and high liquidity zones (default: green with 80 transparency)
Minimal Chart Clutter: Closed polylines with matching line and fill colors create clean rectangular zones without unnecessary borders or visual noise
Background Highlight: Subtle yellow background (96% transparency) marks bars where void conditions are actively detected in real-time
Compact Labeling: Optional tiny circular labels with 60% transparent backgrounds positioned at void center points for quick reference
📖 Usage Guidelines
Detection Settings
Lookback Period: Default: 10 | Range: 5-100 | Number of bars analyzed for volume averaging and void detection. Lower values increase sensitivity to recent changes; higher values smooth detection across longer timeframes. Adjust based on your trading timeframe: short-term traders use 5-15, swing traders use 20-50, position traders use 50-100.
Volume Threshold: Default: 1.0 | Range: 0.1-2.0 (step 0.1) | Multiplier applied to average volume. Bars with volume below (average × threshold) trigger void conditions. Lower values detect only extreme volume depletion; higher values capture more moderate low-volume situations. Start with 1.0 and decrease to 0.5-0.7 for stricter detection.
Price Movement Sensitivity: Default: 1.5 | Range: 0.5-5.0 (step 0.1) | Multiplier for ATR-normalized price movement detection. Values above this threshold indicate rapid price changes suggesting liquidity voids. Increase to 2.0-3.0 for volatile instruments; decrease to 0.8-1.2 for ranging or low-volatility conditions.
Minimum Void Bars: Default: 10 | Range: 1-10 | Minimum consecutive bars exhibiting void conditions required before visualization is created. Filters out brief anomalies and ensures only sustained voids are displayed. Use 1-3 for scalping, 5-10 for intraday trading, 10+ for swing trading to match your time horizon.
Visual Settings
Low Liquidity Color: Default: Red (80% transparent) | Base color for zones where volume depletion or rapid movement indicates thin liquidity. These zones recede visually (back layer most transparent). Choose colors that contrast with your chart theme for optimal visibility.
High Liquidity Color: Default: Green (80% transparent) | Base color for zones with relatively higher liquidity compared to void threshold. These zones protrude visually (front layer most transparent). Ensure clear differentiation from low liquidity color.
Show Void Labels: Default: True | Toggle display of compact LV/HV labels at void centers. Disable for cleaner charts when trading; enable for analysis and review to quickly identify void types across your chart.
Max Visible Voids: Default: 50 | Range: 10-100 | Maximum number of void visualizations kept on chart. Each void uses 3 polylines, so setting of 50 maintains 150 total polylines. Higher values preserve more history but may impact performance on lower-end systems.
✅ Best Use Cases
Gap Fill Trading: Identify unfilled liquidity voids that price frequently returns to, providing high-probability retest and reversal opportunities when price approaches these zones
Breakout Validation: Distinguish genuine breakouts through established liquidity from false breaks into void zones that lack sustainable volume support
Support/Resistance Confluence: Layer void detection over key horizontal levels to validate structural integrity—levels within high liquidity zones are stronger than those in voids
Trend Continuation: Monitor for new void formation in trend direction as potential continuation zones where price may accelerate due to reduced resistance
Range Trading: Identify void zones within consolidation ranges that price tends to traverse quickly, helping to avoid getting caught in rapid moves through thin areas
Entry Timing: Wait for price to reach void boundaries rather than entering mid-void, as voids tend to be traversed quickly with limited profit-taking opportunities
⚠️ Limitations
Historical Pattern Indicator: Identifies past liquidity voids but cannot predict whether price will return to fill them or when filling might occur
No Volume on Forex: Indicator uses tick volume for forex pairs, which approximates but doesn't represent true trading volume, potentially affecting detection accuracy
Lagging Confirmation: Requires minimum consecutive bars (default 10) before void is visualized, meaning detection occurs after void formation begins
Trending Market Behavior: Strong trends driven by fundamental catalysts may create voids that remain unfilled for extended periods or permanently
Timeframe Dependency: Detection sensitivity varies significantly across timeframes; settings optimized for one timeframe may not perform well on others
No Directional Bias: Indicator identifies liquidity characteristics but provides no predictive signal for price direction after void detection
Performance Considerations: Higher max visible void settings combined with small minimum void bars can generate numerous visualizations impacting chart rendering speed
💡 What Makes This Unique
Industry-First 3D Visualization: Unlike flat volume or liquidity indicators, the three-layer rendering with directional depth perception provides instant visual hierarchy of liquidity quality
Dual-Mode Detection: Combines both volume-based and movement-based detection methodologies, capturing voids that single-approach indicators miss
Intelligent Qualification System: State machine logic prevents premature visualization by requiring sustained void conditions, reducing false signals and chart clutter
ATR-Normalized Analysis: All detection thresholds adapt to instrument volatility, ensuring consistent performance across stocks, forex, crypto, and futures without constant recalibration
Transparency-Based Depth: Uses progressive transparency gradients rather than colors or patterns to create depth, maintaining visual clarity while conveying information hierarchy
Comprehensive Strength Metrics: 0-100 void strength calculation considers both the degree of volume depletion and the magnitude of price movement for nuanced zone characterization
🔬 How It Works
Phase 1: Real-Time Detection
On each bar close, the indicator calculates average volume over the lookback period and compares current bar volume against the volume threshold multiplier
Simultaneously measures current bar's high-low range and normalizes it against ATR, comparing the result to price movement sensitivity parameter
If either volume falls below threshold OR movement exceeds sensitivity threshold, the bar is flagged as exhibiting void characteristics
Phase 2: Void Tracking & Qualification
When void conditions first appear, state machine initializes tracking variables: start bar index, initial top/bottom prices, consecutive bar counter, and cumulative strength accumulator
Each subsequent bar with void conditions extends the tracking, updating price boundaries to envelope all bars and accumulating strength scores
When void conditions cease, system checks if consecutive bar count meets minimum threshold; if yes, proceeds to visualization; if no, discards the tracking and resets
Phase 3: 3D Visualization Construction
Calculates average void strength by dividing cumulative strength by number of bars, then determines if void is low liquidity (>50 strength) or high liquidity (≤50 strength)
Generates three polyline layers spanning from start bar to end bar and from top price to bottom price, each with calculated vertical offset based on ATR
Applies progressive transparency (85%, 78%, 70%) with layer ordering creating recession effect for low liquidity zones and protrusion effect for high liquidity zones
Creates optional center label and pushes all visual elements into arrays for memory management
Phase 4: Memory Management & Display
Continuously monitors polyline array size (each void creates 3 polylines); when total exceeds max visible voids × 3, deletes oldest polylines via array.shift()
Similarly manages label array, removing oldest labels when count exceeds maximum to prevent memory accumulation over extended chart history
Plots diagnostic data to TradingView’s data window (void detection binary, current strength, average volume) for detailed analysis without cluttering main chart
💡 Note:
This indicator is designed to enhance your market structure analysis by revealing liquidity characteristics that aren’t visible through standard price and volume displays. For best results, combine void detection with your existing support/resistance analysis, trend identification, and risk management framework. Liquidity voids are descriptive of past market behavior and should inform positioning decisions rather than serve as standalone entry/exit signals. Experiment with detection parameters across different timeframes to find settings that align with your trading style and instrument characteristics.
SuperTrend MA Fusion MTF [CNU]SuperTrend MA Fusion MTF is a non-repainting, multi–timeframe SuperTrend that combines ATR with flexible MA smoothing to create a smoother and more adaptive trend line.
The script calculates two SuperTrends:
LTF (chart timeframe) – main trend and optional background shading.
HTF (higher timeframe) – higher-level bias and confirmation.
You can control the higher timeframe in two ways:
HTF Method = Auto → the script automatically selects a reasonable higher timeframe based on the chart (e.g. 1m → 5m, 5m → 15m, 15m → 1h, etc.).
HTF Method = User Defined → you manually choose any higher timeframe you prefer.
Signals & Alerts
HTF flip signals (trend changes on the higher timeframe).
LTF pyramiding signals that only trigger in the same direction as the current HTF trend
(e.g. when HTF is long, LTF will only generate additional long signals, never shorts).
Because all logic is based on confirmed bar closes and request.security() with lookahead_off, the SuperTrend lines and signals are non-repainting in live trading.
Bitcoin vs M2 Global Liquidity (Lead 3M) - Table Ticker═══════════════════════════════════════════════════════════════
Bitcoin vs M2 Global Liquidity - Regression Indicator
═══════════════════════════════════════════════════════════════
TECHNICAL SPECS
• Pine Script v6
• Overlay: false (separate pane)
• Data sources: 5 M2 series + 4 FX pairs (request.security)
• Calculation: Rolling OLS linear regression with configurable lead
• Output: Regression line + ±1σ/±2σ confidence bands + R² ticker
CORE FUNCTIONALITY
Aggregates M2 money supply from 5 central banks (CN, US, EU, JP, GB),
converts to USD, applies time-lead, runs rolling linear regression
vs Bitcoin price, plots predicted value with confidence intervals.
CONFIGURABLE PARAMETERS
Input Controls:
• Lead Period: 0-365 days (default: 90)
• Lookback Window: 50-2000 bars (default: 750)
• Bands: Toggle ±1σ and ±2σ visibility
• Colors: BTC, M2, regression line, confidence zones
• Ticker: Position, size, colors, transparency
Advanced Settings:
• Table display: R², lead, M2 total, country breakdown (%)
• Ticker customization: 9 position options, 6 text sizes
• Border: Width 0-10px, color, outline-only mode
DATA AGGREGATION
Sources (via request.security):
• ECONOMICS:CNM2, USM2, EUM2, JPM2, GBM2
• FX_IDC:CNYUSD, JPYUSD (others: FX:EURUSD, GBPUSD)
• Conversion: All M2 → USD → Sum / 1e12 (trillions)
REGRESSION ENGINE
• Arrays: m2Array, btcArray (dynamic sizing, auto-trim)
• Window: Rolling (lookbackPeriod bars)
• Lead: Time-shift via array indexing (i + leadPeriodDays)
• Calc: Manual OLS (covariance/variance), no built-in ta functions
• Outputs: slope, intercept, r2, stdResiduals
CONFIDENCE BANDS
±1σ and ±2σ calculated from standard deviation of residuals.
Fill zones between upper/lower bounds with configurable transparency.
ALERTS
5 pre-configured alertcondition():
• Divergence > 15%
• Price crosses ±1σ bands (up/down)
• Price crosses ±2σ bands (up/down)
TICKER TABLE
Dynamic table.new() with 9 rows:
• R² value (4 decimals)
• Lead period (days + months)
• M2 Global total (trillions USD)
• Country breakdown: CN, US, EU, JP, GB (absolute + %)
• Optional: Hide/show M2 details
VISUAL CUSTOMIZATION
All plot() elements support:
• Color picker inputs (group="Couleurs")
• Line width: 1-3px
• Transparency: 0-100% for zones
• Offset: M2 plot has +leadPeriodDays offset option
PERFORMANCE
• Max arrays size: lookbackPeriod + leadPeriodDays + 200
• Calculations: Only when array.size >= lookbackPeriod + leadPeriodDays
• Table update: barstate.islast (once per bar)
• Request.security: gaps_off mode
CODE STRUCTURE
1. Inputs (lines 7-54)
2. Data fetch (lines 56-76)
3. M2 aggregation (line 78)
4. Array management (lines 84-95)
5. Regression calc (lines 97-172)
6. Prediction + bands (lines 174-183)
7. Plots (lines 185-199)
8. Ticker table (lines 201-236)
9. Alerts (lines 238-246)
DEPENDENCIES
None. Pure Pine Script v6. No external libraries.
LIMITATIONS
• Daily timeframe recommended (1D)
• Requires 750+ bars history for optimal calculation
• M2 data availability: TradingView ECONOMICS feed
• Max lines: 500 (declared in indicator())
CUSTOMIZATION EXAMPLES
• Shorter lookback (200d): More reactive, lower R²
• Longer lookback (1500d): More stable, regime mixing
• No bands: Set showBands=false for clean view
• Different lead: Test 60d, 120d for sensitivity analysis
TECHNICAL NOTES
• Manual OLS implementation (no ta.linreg)
• Array-based lead application (not plot offset)
• M2 values stored in trillions (/ 1e12) for readability
• Residuals array cleared/rebuilt each calculation
OPEN SOURCE
Code fully visible. Modify, fork, analyze freely.
No hidden calculations. No proprietary data.
VERSION
1.0 | November 2025 | Pine Script v6
═══════════════════════════════════════════════════════════════
Dresteghamat-Multi timeframe Regime & Exhaustion**Dresteghamat-Multi timeframe Regime & Exhaustion**
This script is a custom decision-support dashboard that aggregates volatility, momentum, and structural data across multiple timeframes to filter market noise. It addresses the problem of "Analysis Paralysis" by automating the correlation between lower timeframe momentum and higher timeframe structure using a weighted scoring algorithm.
### 🔧 Methodology & Calculation Logic
The core engine does not simply overlay indicators; it normalizes their outputs into a unified score (-100 to +100). The logic is hidden (Protected) to preserve the proprietary weighting algorithm, but the underlying concepts are as follows:
**1. Adaptive Timeframe Selection (Context Engine)**
Instead of static monitoring, the script detects the user's current chart timeframe (`timeframe.multiplier`) and dynamically assigns two relevant Higher Timeframes (HTF) as anchors.
* *Logic:* If Current TF < 5min, the script analyzes 15m and 1H data. If Current TF < 1H, it shifts to 4H and Daily data. This ensures the analysis is contextually relevant.
**2. Regime & Volatility Filter (ATR Based)**
We use the Average True Range (ATR) to determine the market regime (Trend vs. Range).
* **Calculation:** We compare the current Swing Range (High-Low lookback) against a smoothed ATR. A high Ratio (> 2.0) indicates a Trend Regime, activating Trend-Following logic. A low ratio dampens the signals.
**3. Directional Bias (Structure + Flow)**
Direction is not determined by a single crossover. It is a fusion of:
* **Swing Structure:** Using `ta.pivothigh/low` to identify Higher Highs/Lower Lows.
* **Volume Flow:** Calculating the cumulative delta of candle bodies over a lookback period.
* **Micro-Bias:** A short-term (default 5-bar) momentum filter to detect immediate order flow changes.
**4. Exhaustion Logic (Mean Reversion Warning)**
To prevent buying at tops, the script calculates an "Exhaustion Score" based on:
* **RSI Divergence:** Detecting discrepancies between price peaks and momentum.
* **Volatility Extension:** Identifying when price has deviated significantly from its volatility mean (VRSD logic).
* **Volume Anomalies:** Detecting low volume on new highs (Supply absorption).
### 📊 How to Read the Dashboard
The table displays the raw status of each timeframe. The **"MODE"** row is the output of the algorithmic decision tree:
* **BUY/SELL ONLY:** Generated when the Current TF momentum aligns with the dynamically selected HTF structure AND the Exhaustion Score is below the threshold (default 70).
* **PULLBACK:** Triggered when the HTF Structure is bullish, but Current Momentum is bearish (indicating a corrective phase).
* **HTF EXHAUST:** A safety warning triggered when the HTF Volatility or RSI metrics hit extreme levels, overriding any entry signals.
* **WAIT:** Default state when volatility is low (Range Regime) or signals conflict.
### ⚠️ Disclaimer
This tool provides algorithmic analysis based on historical price action and volatility metrics. It does not guarantee future results.
Accumulation Buy/Sell PressureMeasures the Net Buy Dollars over the lookback period (default 30) . That is the SEED_YASHALGO_NSE_BREADTH:VOLUME on up ticks vs SEED_YASHALGO_NSE_BREADTH:VOLUME on down ticks. Uses trading view tick rule data so is not fully accurate, but directionally it should be good enough. Net Sell pressure is negative .Is noramlized by closing price to allow for comparison over time frames / between tickers.
SMI ATR (Merged OB/OS Modes)This is a merged code from both Potter scripts using better overbought underbought criteria values when using ATR 14 on Bitcoin
Chart Analyser — Full dashboard + insights Chart Analyser — Full dashboard + insights (Pine v5) A composite overlay that combines EMA trend, VWAP, RSI, ADX, MACD, ATR, Bollinger Bands, volume context, and pivot S/R into a single charting tool. It marks pivots directly on candles (labels + plotshape) and provides a fixed top‑right dashboard with metric readouts and a one‑line “takeaway” bias. Highly configurable colors and thresholds make it suitable for intraday and swing trading.
Key features
- Plots three EMAs (fast, medium, slow) and VWAP on the chart.
- Detects pivot highs and pivot lows and marks them with:
- bar‑anchored plotshape triangles (guaranteed to move/scale with candles)
- optional bar‑anchored labels attached to the pivot candle
- Full dashboard (fixed to viewport top‑right) that displays:
- Price, EMA values, trend summary
- RSI and RSI state (Overbought/Neutral/Oversold)
- ADX (via ta.dmi) and trend strength
- MACD histogram direction and value
- ATR and Bollinger Band width (squeeze detection)
- Volume vs. moving average and spike detection
- VWAP position (Above/Below/At)
- Last pivot resistance/support and distance to current price
- A one‑line composite takeaway / bias summary
- Configurable color inputs for EMA, VWAP, BB, pivot shapes, labels and bar colors
- Adjustable indicator parameters (periods, pivot left/right, volume thresholds, ADX smoothing, etc.)
- Alerts for buy/sell bias conditions (configurable logic in code)
Interpretation & suggested use
- Trend filter: use the EMA alignment (fast > med > slow) as your primary trend filter. Prefer long bias only when trend is Bull and short bias only when Bear.
- Momentum confirmation: require RSI not extreme and MACD histogram confirming the direction of trade bias.
- Trend strength: ADX >= 25 suggests the trend has strength; pair trade entries with ADX confirmation if you need higher-probability setups.
- Volatility sizing: ATR and BB width help size stops and determine whether to expect range expansion; a squeeze suggests possible upcoming expansion but not direction.
- Volume: treat volume spikes as confirmation of breakout/turning points when they coincide with pivot break or VWAP breaks.
- Support/Resistance: last pivot High = short‑term resistance; last pivot Low = short‑term support. Distances in the dashboard show how close price is to S/R.
- Takeaway summary: uses composite logic combining trend, momentum, volume and pivot SR to provide a quick bias indication — treat it as guidance, not a trade signal generator.
OB & FVG IndicatorOB & FVG Indicator
SHORT DESCRIPTION
Clean and simple visualization of Order Blocks (OB) and Fair Value Gaps (FVG) with automatic detection and customizable display settings. Perfect for Smart Money Concepts (SMC) traders.
FULL DESCRIPTION
📊 OVERVIEW
This indicator automatically detects and displays two key Smart Money Concepts (SMC) elements on your chart:
Order Blocks (OB) - Institutional supply and demand zones
Fair Value Gaps (FVG) - Price imbalances that often get revisited
Designed for clarity and simplicity, this tool helps traders identify high-probability reversal zones and potential entry points based on institutional trading behavior.
🔧 KEY FEATURES
Order Blocks Detection:
Automatically identifies bullish OB (last bearish candle before upward move)
Automatically identifies bearish OB (last bullish candle before downward move)
Customizable colors for bullish/bearish zones
Optional labels for easy identification
Minimum size filter to eliminate noise
Fair Value Gaps Detection:
Detects bullish FVG (gap between candle high and previous candle low)
Detects bearish FVG (gap between candle low and previous candle high)
Color-coded zones for instant recognition
Auto-deletion of filled gaps (optional)
Minimum size filter in pips
Visual Customization:
Adjustable transparency levels
Custom color schemes for all elements
Configurable box extension length
Toggle labels on/off
Clean, non-cluttered chart display
Performance Optimization:
Automatic deletion of old boxes to maintain chart performance
Maximum 100 boxes stored at once
Lightweight code for fast rendering
⚙️ HOW TO USE
1. Installation
Click "Add to Chart"
The indicator will appear on your chart overlay
2. Configuration
Open Settings panel (gear icon)
Customize colors, transparency, and filters under respective groups
Adjust minimum size filters to match your trading style and timeframe
3. Interpretation
Order Blocks:
Blue zones = Bullish OB (potential support/demand)
Orange zones = Bearish OB (potential resistance/supply)
Price often reacts strongly when revisiting these zones
Fair Value Gaps:
Green zones = Bullish FVG (potential retracement target in uptrends)
Red zones = Bearish FVG (potential retracement target in downtrends)
Gaps are often "filled" before continuation moves
📈 BEST PRACTICES
Timeframe Recommendations:
15m - 1H charts: Best for intraday trading
4H - Daily charts: Best for swing trading
Higher timeframes produce more reliable zones
Trading Strategy Tips:
Wait for price to return to OB/FVG zones before entry
Combine with other confirmation signals (candlestick patterns, volume)
Higher timeframe OBs/FVGs carry more weight
Use as confluence with support/resistance levels
Filter Settings:
Lower timeframes: Increase minimum size filters to reduce noise
Higher timeframes: Can use smaller minimum size settings
Adjust based on asset volatility (crypto vs. forex vs. stocks)
⚠️ IMPORTANT NOTES
This indicator identifies potential zones but does not guarantee reversals
Always use proper risk management and stop losses
Combine with price action analysis for best results
Not all OBs/FVGs will result in reactions
Past performance does not guarantee future results
🎯 IDEAL FOR:
Smart Money Concepts (SMC) traders
ICT (Inner Circle Trader) methodology followers
Swing traders and day traders
Support/resistance zone identification
Confluence-based trading strategies
📝 SETTINGS OVERVIEW
FVG Settings:
Enable/disable FVG display
Bullish and bearish color selection
Extension length (bars)
Auto-delete filled gaps option
Minimum gap size filter (pips)
OB Settings:
Enable/disable OB display
Bullish and bearish color selection
Extension length (bars)
Show/hide labels
Minimum block size filter (pips)
✨ Clean, Simple, Effective
No complicated signals or cluttered displays - just clear visualization of the institutional footprints that matter most.






















