OPEN-SOURCE SCRIPT

[Sir Pickle Style] Orderflow 2.9 Elite

1 241
***This indicator was written with Google Gemini***
[Sir Pickle Style] MTF Orderflow Elite

Overview
The MTF Orderflow Elite is an institutional-grade Smart Money Concepts (SMC) engine designed for hyper-clean chart aesthetics and precision Multi-Timeframe (MTF) analysis. Built to mimic the minimalist "Sir Pickle" visual style, this indicator eliminates chart clutter by projecting up to 6 Higher Timeframe (HTF) Supply and Demand zones directly onto your local chart with perfect right-margin alignment.

Under the hood, it abandons standard local-chart lookbacks in favor of true HTF fractal math. It calculates structural breaks directly on the higher timeframes and deep-scans historical price action (up to 5,000 bars back) to pinpoint the exact origin block on your local timeframe.

🔥 Elite Mechanics & Features
1. The "Overlap Absorber" (Confluence Engine)
Nested order blocks (e.g., a 15m Demand zone sitting inside a 4H Demand zone) are highly probable reaction levels. Instead of drawing multiple messy boxes on top of each other, the Absorber engine merges them. The HTF box turns Gold (Universal Overlap Color), and the label dynamically updates to show the confluence (e.g., "4h Demand +15m").

2. Strict FVG (Imbalance) Validation
True SMC dictates that an Orderblock is only valid if the resulting move was explosive enough to leave behind a Fair Value Gap. With "Require FVG" enabled, the script strictly analyzes the origin breakout. If the move did not leave a 3-candle imbalance, the zone is deemed low-quality and is never drawn.

3. True HTF Fractal Math & Deep Scanning
Rather than guessing HTF structures based on local candles, the indicator mathematically teleports into the HTF data, confirms the 5-bar swing fractal, and passes those exact coordinates back to your local chart. The SMC Origin Search Depth allows the script to scan thousands of 1-minute bars into the past to locate Daily or Weekly origins.

4. Dynamic LTF Hiding
To keep HTF charts readable, the script utilizes a custom, bulletproof timeframe converter. If you zoom out to a 4H chart, any timeframes lower than 4H (like 15m or 1H) are automatically hidden from the chart and the dashboard.

5. CPU & Memory Optimized (Lazy Loading)
Built for speed on the 1-minute chart. The script features "Lazy Loading" data calls—if you disable a timeframe in the settings, it completely severs the connection to TradingView's servers for that timeframe. Furthermore, an array-based state flag ensures the heavy Overlap Math only runs at the exact millisecond a zone is created or destroyed.

🎨 Visuals & UI
Borderless institutional boxes with customizable transparency.

Perfectly centered, left-aligned labels floating cleanly in the right-side margin offset.

Mitigation Engine: Zones are instantly wiped upon touch for a spotless chart, or can be toggled to convert into Breaker Blocks.

Dynamic Bias Dashboard: A sleek HUD that tracks the real-time bullish/bearish bias of your active timeframes. Can be snapped to any corner of the screen.

🤖 Bot Automation Ready
Alerts are fully dynamic. You can choose between standard text alerts (great for mobile push notifications) or JSON formatting.
When set to JSON, the indicator outputs a perfectly structured payload whenever a new zone is formed:
{"asset": "BTCUSD", "timeframe": "240", "type": "Demand", "price": 64320.50}
This allows for instant, seamless integration with auto-trading webhooks like 3Commas, Bybit, or PineConnector.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.