TSLL/TSLQ FlowThis script is built purely for trading the TSLL/TSLQ pair.
It tracks the spread between the two ETFs using Heikin-Ashi candles, measures how extreme that spread is with a Z-score, and only fires clean, non-repainting entries when the spread deviates more than your chosen threshold (default ~2.1σ).
A fast/slow EMA ribbon on the chart gives the broader trend context and instantly alerts on bullish/bearish flips.
Long = buy TSLL / short TSLQ when Z ≤ -2.1
Short = short TSLL / buy TSLQ when Z ≥ +2.1
All signals come with alerts so you never miss a setup.
Indikatoren und Strategien
FRPC - Fractal Reversal Permission ComponentThis tool identifies high-probability reversal points using a three-stage confirmation model:
1️⃣ Liquidity Sweep (LS)
Price must take out a previous fractal high/low, indicating stop-hunt liquidity removal.
2️⃣ Reclaim (RC)
After sweeping liquidity, price must close back inside the previous swing, showing absorption and rejection.
3️⃣ Break of Structure (BOS)
A structural break confirms a true shift in market direction and avoids false reversal signals.
FRPC only triggers BUY or SELL signals when all three layers align, creating actionable reversal conditions rather than random fractal noise.
This approach helps avoid chasing breakouts, filters low-quality sweeps, and identifies areas where reversals are statistically more likely.
------------------------------------
What FRRC Helps You Identify
------------------------------------
True reversals after stop-hunts
Liquidity grabs followed by displacement
Avoiding fake breakouts
Swing points with strong reaction potential
High-probability turning points with real structure support
----------
Sidenote
----------
The accuracy of the signals range from 56% to 72% and is mainly designed to be a structural filter to be paired with a strong exhaustion system. This is just a bare bones version and I plan to work on a more advanced version yo pair with the current exhaustion systems I'm building out
Smart Multi-TF StochasticSmart Multi-TF Stochastic (SMTF Stoch)
Smart Multi-TF Stochastic is a multi-layer momentum analysis system built on top of Stochastic signals from several timeframes. It combines four stochastic timeframes (15m / 1H / 2H / 4H), Premium–Equilibrium–Discount zones, dynamic weight reallocation, and adaptive smoothing into a single SMART oscillator that reflects the real market structure with higher accuracy.
Key Features
1. Multi-Timeframe Stochastic Engine
The indicator calculates Stochastic on four different timeframes:
15m – micro momentum
1H – local trend
2H – intraday structure
4H – primary trend
Core logic:
When the 4H trend is strong, higher timeframes receive more weight.
When the 4H trend weakens, the model shifts weight toward lower timeframes, which detect reversals earlier.
2. Premium / Equilibrium / Discount Zones
Based on the recent price range, the indicator determines where the asset currently trades:
Discount — ideal zone for long setups
Equilibrium — neutral territory
Premium — area for exits or reversals
Background shading is applied automatically.
3. SMART-Stochastic — Central Signal Line
The combined oscillator uses:
weighted logic depending on the strength of the higher timeframe trend,
adaptive smoothing (SMA / EMA / WMA / RMA),
dynamic color states:
green — strong bullish trend
red — strong bearish trend
yellow — uncertainty
4. Trading Signals
Long Entry Signal (“ENTRY LONG”)
Triggered when:
price is in Discount,
higher TF line is red/yellow (trend not fully bullish),
SMART-Stoch is below mid-level,
upward crossover through the entry threshold occurs.
Displayed as a green triangle.
Exit / Reversal Signal (“EXIT / REVERSAL”)
Triggered when:
price moves into Premium,
the SMART line exceeds the configured exit level.
Displayed as a red triangle.
Both signals only trigger once at the moment of confirmation.
5. Multi-TF Status Table
A compact table in the top-right corner shows:
stochastic values across all timeframes,
overbought/oversold indicators (🔥 / ❄️),
trend confirmations (✓ / ✗),
SMART signal markers (🚀 entry, ⚠️ exit).
6. Alerts
Built-in alert conditions:
“🚀 ENTRY LONG”
“🔴 EXIT / REVERSAL”
Designed for live trading automation.
Purpose
Smart Multi-TF Stochastic is intended for traders who rely on Premium/Discount logic, trend confirmation from higher timeframes, and precise timing on lower timeframes. It works both as a standalone decision system and as a high-quality confirmation tool in structured trading strategies.
Trade volume indicator @mybullandbearThe indicator consolidates Trend (MA), Momentum (RSI), Breakout (ORB), and Volume (CVD) into a single dashboard, giving you an objective "Green" or "Red" bias.
Mybullandbear View (CVD): This specific component tracks whether buying or selling volume is dominant for the day. It helps you avoid false breakouts—if price goes up but CVD is Red (Bearish), it's likely a trap.
How to Benefit: Wait for Confluence. Do not take a trade unless the Dashboard shows a clear consensus (e.g., Green Trend + Bullish CVD + Price above ORB High). This filters out low-quality trades and keeps you on the right side of the market.
market condition by moving averagewhen the 10ma and 20ma of S&P is sloping up, the indicator will show a green background, which means breakout trade has a higher chance of working out.
Ghost Pivots LiteGhost Pivots Lite
This indicator identifies potential swing points in real time using price-action thresholds and pivot analysis. It highlights momentum shifts that may precede breakouts or breakdowns while keeping the chart clean and overlay-friendly. The white text/circles/lines exhibited in the chart are to display what the Ghost Pivots look like when fully enabled in Settings/Style.
Key Features
Real-time detection of swing highs and lows based on customizable pivot length and swing thresholds.
Visual cues using dashed lines and labels for clear swing identification.
Minimal overlay elements to avoid clutter.
Works across all timeframes.
How It Works
The indicator calculates pivot highs and lows and applies a minimum swing-percentage threshold. When price movement meets or exceeds that threshold, the script plots a dashed line and label at the swing point. This offers a visual reference for momentum changes without issuing trading signals.
Why This Approach
Standard pivot indicators may lag or trigger excessively in volatile conditions. By combining pivots with a percentage-based swing filter, this version emphasizes meaningful momentum shifts and reduces noise.
How to Use (Step by Step)
Add the indicator to your chart.
Adjust outputs to your chart in Settings-Style
-Toggle on/off the ghosts
-Toggle on/off the lines from the ghost pivots
-Adjust precision-default is 1. Choices are 0-8.
Each stock or ETF has different behavior. This tool comes defaulted (1) to use with the SPY etf-adjust accordingly for others.
Notes
For informational and educational purposes only.
No financial, trading, or investment advice.
Alerts are observational only and do not include automated instructions.
Effective on any timeframe; consider reviewing historical examples with different settings/styles to understand behavior.
Protection Note
Source code is protected to safeguard proprietary swing-momentum logic combining pivot thresholds with price-percentage filters not available in standard open-source pivot indicators.
Mean Reversion Framework [LTS]LHAMA Trading Suite's Mean Reversion Framework is a VWAP-centric mean reversion and exhaustion tool that combines volatility regimes, volume-weighted extension zones, and multi-oscillator divergence detection into a single framework. It is designed to help traders quickly answer three questions on any chart:
How far is price stretched away from VWAP in standard deviations?
Is the current environment favorable or hostile to mean reversion?
Are there momentum divergences supporting a reversal or trend continuation idea?
Core components
1. Adaptive VWAP with standard deviation bands
The framework builds around a dynamically anchored VWAP with statistical bands:
VWAP line plotted from a rolling anchor point.
Standard deviation bands : ±1σ, ±2σ, ±2.5σ, and ±3σ around VWAP.
Extension zones : the area between ±2.5σ and ±3σ is highlighted as an “extension zone,” where price is statistically stretched from its mean.
Anchoring is automatic and timeframe-aware. When you change your charts timeframe, this will automatically adjust what VWAP you are looking at to make sure you're always using the anchoring research has shown to be most appropriate and relevant for that timeframe.
2. Reversion candle coloring
To highlight potentially climactic moves:
The script tracks a configurable volume average and multiplier.
When price touches the ±2.5σ extension zone and a candle meets one of these conditions, candles can be recolored:
Has above average volume, but below average candle body size.
Has lower volume than the previous candle.
An optional alert can be triggered when these extension touches occur.
The ideal reversion setup is a quick extension into the marked zone, which includes a high volume, small body candle at its peak, surrounded by lower volume candles in opposite directions. This shows an energetic push in one direction, followed by exhaustion and a fade back toward the mean.
3. Volatility regime detection
The script classifies the current volatility regime using ATR:
Calculates ATR over a user-defined lookback.
Computes the percentile rank of current ATR relative to its recent history.
Labels the environment as:
HIGH volatility (ATR percentile at or above the high threshold).
LOW volatility (at or below the low threshold).
MODERATE otherwise.
The current regime and ATR percentile are displayed on the dashboard and can be used as context for whether mean-reversion setups may be more or less favorable. Alerts can fire when volatility crosses into high or low regimes so users can adjust expectations or strategies if desired.
4. RSI & Stochastic divergence framework
The indicator includes a combined divergence engine using RSI and Stochastic:
User-configurable RSI length.
User-configurable Stochastic K/D parameters.
Pivot-based detection with left/right lookbacks and a max lookback window.
Two main categories:
Regular divergences – potential reversal context.
Hidden divergences – potential trend continuation context.
For both RSI and Stochastic, the script looks for:
Bullish regular : price lower low vs. oscillator higher low.
Bearish regular : price higher high vs. oscillator lower high.
Hidden bullish : price higher low vs. oscillator lower low.
Hidden bearish : price lower high vs. oscillator higher high.
When conditions are met, the script will:
Plot labels on the price chart:
🔃 icons for regular (reversal) divergences.
⏩ icons for hidden (continuation) divergences.
Combine RSI and Stochastic confirmation into a single label when both agree, with tooltips explaining:
Price structure (HH/HL/LL/LH).
Which oscillator(s) confirmed the divergence.
Whether the pattern suggests potential reversal or continuation.
Optionally trigger alerts for each divergence type when alerts are enabled.
Divergence labels are based on confirmed pivots, so they appear with a delay relative to the pivot bar. They are not predictive and should be treated as contextual information rather than standalone trade signals.
5. Dashboard overlay
An on-chart dashboard summarizes the most important state variables in a compact table:
VWAP Anchor – shows the effective anchor logic currently in use (“Session/Week/Month”, “5-Day Rolling” or “Yearly (Jan 1)”).
Alert Status – ACTIVE, COOLDOWN, or DISABLED.
Volatility Regime – HIGH / MODERATE / LOW with the current ATR percentile.
VWAP Value – current VWAP price.
Price vs VWAP – distance of price from VWAP in standard deviations (σ).
ATR – current ATR value for the selected length.
The dashboard can be toggled on or off and moved to any corner of the chart (top/bottom, left/right).
6. Alert system & cooldown
The script defines multiple alert conditions so users can build their own rules around mean reversion and volatility changes:
Extension zone alerts :
Price enters upper extension (≥ +2.5σ).
Price enters lower extension (≤ −2.5σ).
Price enters any extension zone.
High-volume candle touching an extension zone.
Divergence alerts :
Regular bullish / bearish divergence.
Hidden bullish / bearish divergence.
Volatility regime alerts :
ATR percentile crosses into HIGH volatility.
ATR percentile crosses into LOW volatility.
To reduce alert noise around VWAP resets, there is an optional alert cooldown :
At the start of a new VWAP period (session/5-day/yearly, depending on timeframe), the script can enter a cooldown phase.
During cooldown, extension-related alerts are temporarily suppressed for a user-defined number of minutes.
Volatility regime alerts remain active, as they reflect broader structural changes rather than short-term VWAP resets.
Users can disable the cooldown by setting its duration to 0.
LSI Slim - EMA4/8 + Volume Filter + Sweep Targets V1📌 LSI Slim – EMA4/8 + Volume Filter + Sweep Targets
LSI Slim is a lightweight but highly effective market-structure tool that combines liquidity sweep detection, volume confirmation, higher-TF EMA signals, and dynamic target generation.
It is designed for traders who want a clean chart, fast confirmation, and objective target levels derived from real market behavior.
🔍 Key Features
1. Liquidity Sweep Detection
Automatically identifies simple bullish and bearish liquidity sweeps using recent swing extremes.
Each sweep is stored and plotted with optional fading lines to visually track market intent.
2. EMA 4/8 Confirmation (Higher Timeframe)
Built-in higher-timeframe confirmation using EMA 4 and EMA 8 crossovers.
Cross signals can optionally display labels and debug markers.
3. Adaptive Volume Filter
Two selectable volume-strength modes:
Incremental z-score increase
Negative-to-positive transition
The volume filter acts as an additional confirmation layer for sweep validations.
4. Intelligent Target Generation
Once a sweep is confirmed:
Targets (TP1–TP4) are projected using daily range or ATR fallback
Optional FVG override automatically snaps TP1 to the nearest Fair Value Gap when relevant
Targets are rendered with adjustable opacity and forward extension
5. Clean Visual Interface
Designed to stay lightweight and non-intrusive:
Adjustable max number of sweep lines
Optional fading for older levels
Minimalistic labels and shapes for clarity
🎯 Ideal For
Liquidity-based traders
Market structure practitioners
EMA-trend traders
Volume confirmation strategies
Intraday and swing trading across all markets
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice.
Always test on historical data and use proper risk management.
PRICE ACTION TRAKKERThis indicator isolates the core price-phase engine from the full Price Action Tracker (PAT) system.
It identifies and visualises structural phases of price, including:
Upper phase boundary (dynamic resistance)
Lower phase boundary (dynamic support)
Phase average (mean-reversion anchor)
Pivot markers (LPH, LPL, oLPH, oLPL)
The phase engine dynamically adapts to evolving market structure using pivot behaviour and structural breaks. This creates a real-time visual map of how price is organising itself — independent of time-based indicators and without the lag associated with classical moving averages.
This version focuses exclusively on price action structure, making it clean, fast, and ideal as a core tool on its own.
However, it is also designed as a foundation for more advanced analysis and will expand over time as additional modules are released.
This phase engine works exceptionally well in combination with my other indicators, such as moving-average structure tools, volume-weighted frameworks, and trend-strength models. Together, they provide a layered view of market behaviour:
phase structure → trend bias → volume confirmation → entry logic.
This makes the indicator valuable for:
Intra-day and swing traders
Wyckoff and liquidity-based traders
Mean-reversion and range-trading strategies
Understanding where accumulation/distribution behaviour is forming
Identifying when a phase is likely ending or breaking
Future updates will add modular expansion paths (trend scoring, VWAP phase weighting, multi-phase confluence, and signal logic), while maintaining the simplicity and reliability of this core engine.
Works Best With:
This indicator is part of a broader toolkit designed to analyse structure, trend, and behaviour.
When used alongside my other published tools — such as trend-strength MAs, VWMA frameworks, and higher-timeframe bias indicators — it provides a complete, multi-layered view of market conditions.
Aroon High R02 - With RR Exit + TP Toggle + VWAPWhat this indicator is for
This is a trend-continuation breakout trading indicator designed to:
Catch strong upside momentum
Enter only after confirmation
Manage risk using fixed SL, RR-based trailing SL, and optional TP
Filter bad trades using VWAP
It’s meant for intraday & positional trading on indices and stocks.
Pivot Boss IndicatorsPivot boss indicators shows central pivot range and pivot levels for support and resistance.
Fekry BB Entry/Exit with EMA FilterThis indicator is based on Bollinger Bands and exponential moving average strategy by Mr Kekry Zain
BTC - FRIC: Friction & Realized Intensity CompositeTitle: BTC - FRIC: Friction & Realized Intensity Composite
Data: IntoTheBlock
Overview & Philosophy
FRIC (Friction & Realized Intensity Composite) is a specialized on-chain oscillator designed to visualize the "psychological battlegrounds" of the Bitcoin network.
Most indicators focus on Price or Momentum. FRIC focuses on Cost Basis. It operates on the thesis that the market experiences maximum "Friction" when the price revisits the cost basis of a large number of holders. These are the zones where investors are emotionally triggered to react—either to exit "at breakeven" after a loss (creating resistance) or to defend their entry (creating support).
This indicator answers two questions simultaneously:
Intensity: Is the market hitting a Wall (High Friction) or a Vacuum (Low Friction)?
Valuation: Is this happening at a market bottom or a top?
The "Alpha" (Wall vs. Vacuum)
Why we visualize both extremes: This indicator filters out the "Noise" (the middle range) to show you only the statistically significant anomalies.
1. The "Wall" (Positive Z-Score Bars)
What it is : A statistically high number of addresses are at breakeven.
The Implication : Expect a grind. Price action often slows down or reverses here because "Bag Holders" are selling into strength to get out flat, or new buyers are establishing a floor.
2. The "Vacuum" (Negative Z-Score Bars)
What it is : A statistically low number of addresses are at breakeven.
The Implication : Expect acceleration. The price is moving through a zone where very few people have a cost basis. With no natural "breakeven supply" to block the path, price often enters Price Discovery or Free Fall.
Methodology
The indicator constructs a composite view using two premium metrics from IntoTheBlock:
1. The "Activity" (Friction Z-Score): We utilize the Breakeven Addresses Percentage. This measures the % of all addresses where the current price equals the average cost basis.
- Normalization: We apply a rolling Z-Score (Standard Deviation) to this data.
- The Filter: We hide the "Noise" (e.g., Z-Scores between -2.0 and +2.0) to isolate only the events where market structure is truly stretched.
2. The "Context" (Valuation Heatmap): We utilize the MVRV Ratio to color-code the friction.
Deep Value (< 1.0): Price is below the average "Fair Value" of the network.
Overheated (> 3.0): Price is significantly extended above the "Fair Value."
Credit: The MVRV Ratio was originally conceptualized by Murad Mahmudov and David Puell. It remains one of the gold standards for detecting Bitcoin's fair value deviations.
How to Read the Indicator
The chart is visualized as a Noise-Filtered Heatmap.
1. The Bars (Intensity)
Bars Above Zero: High Friction (Congestion). The market is fighting through a supply wall.
Bars Below Zero: Low Friction (Vacuum). The market is accelerating through thin air.
Gray/Ghosted: Noise. Routine market activity; no significant signal.
2. The Colors (Valuation Context) The color tells you why the friction is happening:
🟦 Deep Blue (The "Capitulation Buy"):
Signal: High Friction + Low MVRV.
Meaning : Investors are panic-selling at breakeven/loss, but the asset is fundamentally undervalued. Historically, these are high-conviction cycle bottoms.
🟥 Dark Red (The "FOMO Sell"):
Signal: High Friction + High MVRV.
Meaning : Investors are churning at high valuations. Smart money is often distributing to late retail arrivers. Historically marks cycle tops.
🟨 Yellow/Orange (The "Trend Battle"):
Signal: High Friction + Neutral MVRV.
Meaning : The market is contesting a level within a trend (e.g., a mid-cycle correction).
Visual Guide & Features
10-Zone Heatmap: A granular color gradient that shifts from Dark Blue (Deep Value) → Sky Blue → Grey (Neutral) → Orange → Dark Red (Top).
Noise Filter
A unique feature that "ghosts out" insignificant data, leaving only the statistically relevant signals visible.
Data Check Monitor
A diagnostic table in the bottom-right corner that confirms the live connection to IntoTheBlock data streams and displays the current regime in real-time.
Settings
Lookback Period (Default: 90): The rolling window used for the Z-Score calculation. Shortening this (e.g., to 30) makes the indicator more sensitive to local volatility; lengthening it (e.g., to 365) aligns it with macro cycles.
Noise Threshold (Default: 2.0): The strictness of the filter. Only friction events exceeding this Z-Score will be highlighted in full color.
Show Status Table : Toggles the on-screen dashboard.
Disclaimer
This script is for research and educational purposes only. It relies on third-party on-chain data which may be subject to latency or revision. Past performance of on-chain metrics does not guarantee future price action.
Tags
bitcoin, btc, on-chain, mvrv, intotheblock, friction, z-score, fundamental, valuation, cycle
US Macro Dashboard: Rates, Unemployment, InflationThis script builds a macro dashboard that plots the US interest rate, unemployment rate, and year‑over‑year inflation on a single chart.
It pulls each series from TradingView’s economic data and displays them together so you can visually compare the three key indicators over time.
Ellipse Price Action Indicator v3Successful Trade Setup Using Ellipse Price Action Indicator (EPAI) 🔥
With the help of the Ellipse Price Action Indicator, this bearish trade setup played out perfectly.
EPAI generated a Sell Signal with a red arrow.
According to the EPAI method:
🔹 If price makes a new high on the next candle — add one more unit.
🔹 Every time a new high forms, add one more unit per candle.
🔹 Exit all units at the Moving Average (MA) — this is the core risk-controlled exit rule.
This is why EPAI consistently provides successful trade setups when followed with discipline.
⚠ Important Notice — Last Chance!
The Ellipse Price Action Indicator (EPAI) will soon become PRIVATE.
Access will be restricted only to Premium Members.
✅ First 25 subscribers can use this indicator absolutely FREE.
After that, it will not be available publicly.
3-Candle Reversal & Retest (Severin-style) v63-Candle Reversal & Retest (Severin-style)
What it does
Detects a three-candle reversal with a retest entry, then plots compact buy/sell markers anchored to the exact bar and price. Designed for fast execution timeframes (1–5m) but works on any TF.
Pattern logic (longs)
Approach candle: bearish candle closing above a chosen reference level.
Reversal candle: bullish candle with a minimum body size (filters out dojis). Optional requirement that it sweeps the prior low.
Retest/entry candle: dips back into a configurable fraction of candle #2’s body and closes bullish (lower wick first).
Shorts use the mirror conditions.
Reference level (choose one)
Manual level – type a price or drag the built-in cyan line.
Previous Day High/Low
Session VWAP
SMA (length input)
The approach candle must close on the correct side of this level (above for longs, below for shorts).
Signals & visuals
Green triangle = 3C Long. Plotted at low − pad ticks.
Red triangle = 3C Short. Plotted at high + pad ticks.
All markers are price-anchored (bar index + price), so they move with candles when you pan/zoom.
Option to keep markers only for the last N bars (prevents “floating” artefacts when the chart rescales).
Inputs
Reference source (Manual / PDH / PDL / VWAP / SMA)
Manual price and draggable line toggle (+ one-click reset)
Min body % for reversal candle
Require liquidity sweep on candle #2 (on/off)
Retest zone fraction of candle #2 body (e.g., 0.5 = lower/upper half)
Marker size and padding (in ticks)
Retain markers for last N bars
Alerts
“3C Long Entry” and “3C Short Entry” fire on bar close when the full three-candle pattern is confirmed.
How to use
Pick your reference. For manual levels, enable the draggable line and place it at your area (PD value area edge, key level, etc.).
Trade the first clean signal that forms around that reference, ideally confluencing with structure/flow (VWAP, prior day levels, liquidity pools).
Manage risk below/above the retest candle or the reversal candle, not the approach candle.
Tips
Works best after impulsive moves into a level, not in the middle of chop.
Tighten the min body % to avoid weak reversals on slow sessions.
On highly volatile alts, increase the retest fraction (e.g., 0.6–0.7) to demand a deeper retest.
Notes
This is an execution pattern, not a complete system. Add your own higher-timeframe bias and risk rules.
Nothing here is financial advice. Use position sizing and stops.
Sen Channel LiteSen Channel Lite
Sen Channel Lite calculates a robust, median-based regression channel using the Theil–Sen slope method. This visual tool helps traders identify trend direction and potential breakout zones in real time.
Key Features
Dynamic Trend Line: The median-based regression line adapts to price movement, providing a central reference for trend direction.
Upper and Lower Bands: Automatically updated bands highlight potential breakout or reversal areas.
Breakout Markers: Optional triangles indicate when price crosses above the upper band or below the lower band.
Midline (EMA/SMA): Toggleable trend line for additional context on price direction.
VWAP Anchor: Optional VWAP plot to visualize volume-weighted average price levels.
Customizable Inputs:
Lookback Period for slope calculation
Band Multiplier to adjust sensitivity
Option to use Standard Deviation or ATR for band width
Midline type, length, and color
VWAP visibility and color
Channel cloud transparency
How to Read Signals (Educational Use Only):
Trend Context: The midline provides a reference for general trend direction. Price above the midline suggests bullish bias; below indicates bearish bias.
Breakouts:
Triangle up → price crossed above the upper band; potential strong move upward.
Triangle down → price crossed below the lower band; potential strong move downward.
Channel Interpretation:
Price near the upper band → market may be overextended.
Price near the lower band → market may be oversold.
Price moving within the channel → trend is balanced; use additional analysis for direction.
VWAP Context: Compare price to VWAP for intraday support/resistance insights.
Usage Notes:
Fully visual tool; no trading or financial advice.
All calculations are protected to preserve intellectual property.
Results reflect real-time calculations; no repainting.
Suitable for intraday to daily timeframes.
Important: This script is published as protected/closed-source to safeguard GammaBulldog intellectual property.
ICT Order Block Identifier [Eˣ]📦 Order Block Identifier
Overview
The Order Block Identifier automatically detects and displays institutional order blocks on your charts - zones where banks, hedge funds, and market makers place their orders. This indicator helps identify where institutions are likely to defend their positions and where price often finds support or resistance, based on ICT (Inner Circle Trader) concepts.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 What This Indicator Does
Detects Order Blocks:
• 🟢 Bullish Order Blocks (OB+) - Last bearish candle before strong bullish move
• 🔴 Bearish Order Blocks (OB-) - Last bullish candle before strong bearish move
• Automatically identifies institutional buying/selling zones
• Tracks up to 30 order blocks simultaneously
• Works on all timeframes and instruments
Smart Features:
• Auto-Timeframe Adjustment - Optimizes detection for 1min to Weekly charts
• Active Block Highlighting - Shows which OB price is approaching
• Touch Tracking - Knows when blocks are tested
• ATR-Based Detection - Adapts to each instrument's volatility
• Strength Filtering - Choose Low/Medium/High to control sensitivity
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 Understanding Order Blocks
What Are Order Blocks?
Order blocks are the "footprints" left behind by institutional traders (banks, hedge funds, market makers) when they enter large positions. Because institutions can't fill massive orders at once without moving the market, they:
1. Place orders gradually over time
2. Leave zones where their buy/sell orders are concentrated
3. Defend these zones when price returns
4. Create reliable support and resistance levels
The ICT Concept:
Developed by Michael Huddleston (Inner Circle Trader), order block theory states that:
• The last opposite-colored candle before a strong move contains institutional orders
• Price often returns to test these zones before continuing
• These zones act as strong support (bullish OB) or resistance (bearish OB)
• Smart money defends their positions at these levels
Why Order Blocks Work:
• Unfilled Orders: Institutions may still have pending orders in the block
• Position Defense: They protect their entries by adding to positions
• Stop Placement: Retail stops cluster near these zones (liquidity for institutions)
• Market Structure: Price respects these levels due to order flow dynamics
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🟢 Bullish Order Blocks Explained
How They Form:
1. Price is consolidating or declining
2. Institutions begin accumulating (buying)
3. A strong bullish move erupts
4. The last bearish candle before this move = Bullish Order Block
5. This candle represents where institutions were buying aggressively
Why The Last Bearish Candle?
• Institutions absorbed all selling pressure at this level
• Their buy orders filled as price was declining
• When price returns, they defend this zone with more buying
• It becomes a demand zone / support level
Trading Bullish Order Blocks:
Setup:
• Wait for price to retrace back to bullish OB (green box)
• Look for rejection/reversal pattern (pin bar, engulfing, etc.)
• Enter long when price bounces from the OB zone
• Stop loss: Below the order block
• Target: Recent high or opposite order block
Best Scenarios:
• OB aligns with other support (trendline, fibonacci, round number)
• First touch of OB (unmitigated) has highest probability
• Occurs during high-volume sessions (London/NY)
• Trend is bullish on higher timeframe
Example Trade:
• Bullish OB forms at $50,000 (last red candle before rally)
• Price rallies to $52,000 then retraces
• Price drops back to $50,100 (touching OB)
• Bullish pin bar forms on the OB
• Enter long at $50,200, stop at $49,800
• Target: $52,000+ (previous high)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔴 Bearish Order Blocks Explained
How They Form:
1. Price is consolidating or rising
2. Institutions begin distributing (selling)
3. A strong bearish move erupts
4. The last bullish candle before this move = Bearish Order Block
5. This candle represents where institutions were selling aggressively
Why The Last Bullish Candle?
• Institutions absorbed all buying pressure at this level
• Their sell orders filled as price was rising
• When price returns, they defend this zone with more selling
• It becomes a supply zone / resistance level
Trading Bearish Order Blocks:
Setup:
• Wait for price to retrace back to bearish OB (red box)
• Look for rejection/reversal pattern (shooting star, bearish engulfing)
• Enter short when price rejects from the OB zone
• Stop loss: Above the order block
• Target: Recent low or opposite order block
Best Scenarios:
• OB aligns with other resistance (trendline, fibonacci, round number)
• First touch of OB (unmitigated) has highest probability
• Occurs during high-volume sessions (London/NY)
• Trend is bearish on higher timeframe
Example Trade:
• Bearish OB forms at $48,000 (last green candle before drop)
• Price drops to $46,000 then retraces
• Price rallies back to $47,900 (touching OB)
• Bearish engulfing forms at the OB
• Enter short at $47,800, stop at $48,200
• Target: $46,000- (previous low)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 How To Use This Indicator
Strategy 1: Order Block Retest (Classic)
Best For: Swing trading, capturing reversals
Timeframes: 15min, 1H, 4H, Daily
Win Rate: 60-70% (first touch)
Entry Rules:
1. Identify unmitigated order block (bright color, not gray)
2. Wait for price to return to the OB zone
3. Look for price action confirmation:
• Bullish OB: Pin bar, bullish engulfing, hammer
• Bearish OB: Shooting star, bearish engulfing, doji
4. Enter in the direction of the OB
5. Stop loss: Beyond the opposite side of OB (20-30 pips)
6. Target: 2-3R or opposite OB
Example:
• Bullish OB at $100-$102
• Price drops to $101.50 (enters OB)
• Bullish pin bar forms with low at $100.80
• Enter long at $102 (OB high), stop at $99.50
• Risk: $2.50, Target: $107.50 (3R)
Strategy 2: Break & Retest
Best For: Trend trading, breakout confirmation
Timeframes: 5min, 15min, 1H
Win Rate: 65-75%
Entry Rules:
1. Price breaks through an order block
2. Wait for pullback to the broken OB
3. The OB now acts as support (if broken up) or resistance (if broken down)
4. Enter when price respects the flipped OB
5. Stop: Inside the OB zone
6. Target: Next OB or structure level
Why It Works: Broken OBs flip polarity - support becomes resistance and vice versa
Strategy 3: Multi-Timeframe Confirmation
Best For: High-probability setups
Timeframes: Combine 1H + 4H or 15min + 1H
Win Rate: 70-80%
Entry Rules:
1. Identify order block on higher timeframe (4H or Daily)
2. Switch to lower timeframe (1H or 15min)
3. Wait for lower TF order block to form within higher TF OB
4. Trade the lower TF OB in direction of higher TF OB
5. Stop: Below lower TF OB
6. Target: Edge of higher TF OB or beyond
Why It Works: Alignment across timeframes = institutional consensus
Strategy 4: Order Block to Order Block
Best For: Range trading, swing entries
Timeframes: 1H, 4H
Win Rate: 55-65%
Entry Rules:
1. Identify both bullish OB below and bearish OB above
2. Price is ranging between these OBs
3. Enter long at bullish OB, target bearish OB
4. Enter short at bearish OB, target bullish OB
5. Stop: Beyond the trading OB
6. Exit at opposite OB
Why It Works: Price moves from one institutional zone to another
Strategy 5: Mitigation Fade
Best For: Aggressive scalping
Timeframes: 5min, 15min
Win Rate: 50-60% (higher risk)
Entry Rules:
1. Price approaches an order block
2. Instead of bouncing, price breaks through (mitigates it)
3. Enter immediately in direction of breakout
4. Stop: Back inside the mitigated OB
5. Quick target: 1-1.5R
Why It Works: When OB fails, it often leads to strong continuation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ Settings Explained
Core Settings
Auto-Adjust for Timeframe (Default: ON)
• Automatically optimizes detection for current chart timeframe
• 1min: 3 bars lookback
• 5min: 4 bars lookback
• 15min: 5 bars lookback
• 1H: 6 bars lookback
• 4H: 8 bars lookback
• Daily+: 10-12 bars lookback
• Recommended: Keep ON for best results
Manual Detection Length (Default: 5)
• Only used when Auto-Adjust is OFF
• Number of bars to look back for the "last opposite candle"
• Lower (2-4): More sensitive, more blocks, more noise
• Higher (6-10): Less sensitive, fewer blocks, higher quality
• Recommended: Use Auto-Adjust instead
Display Settings
Show Bullish/Bearish Order Blocks
• Toggle each type on/off independently
• Customize colors for each OB type
• Tip: Match colors to your chart theme
Max Order Blocks to Display (Default: 10)
• Limits how many OBs are shown at once
• Lower (5-8): Cleaner chart, only recent blocks
• Higher (15-30): More historical context
• Recommended: 8-12 for most trading
Show Order Block Labels (Default: ON)
• Displays "OB+" and "OB-" text on blocks
• Shows 🎯 on active (nearest) block
• Turn OFF for minimal chart appearance
• Recommended: Keep ON for clarity
Extend Blocks (bars) (Default: 50)
• How far to extend OB boxes to the right
• Lower (20-30): Shorter boxes, less clutter
• Higher (100+): Longer boxes, easier to see
• Blocks auto-extend until mitigated or limit reached
• Recommended: 40-60 bars
Filters
Block Strength Filter (Default: Medium)
• Controls how strong a move must be to create an OB
• Low: 0.5x ATR move required - Many blocks, more noise
• Medium: 1x ATR move required - Balanced quality/quantity
• High: 1.5x ATR move required - Only strongest institutional moves
• Recommended for beginners: High
• Recommended for experienced: Medium
• Recommended for scalpers: Low
Min Block Size % (Default: 0.1)
• Minimum size of OB as percentage of price
• Filters out tiny, insignificant blocks
• Crypto: 0.1-0.3%
• Forex: 0.05-0.15%
• Stocks: 0.1-0.5%
• Adjust based on instrument volatility
Advanced Settings
Show Mitigated Blocks (Default: OFF)
• When ON: Shows gray boxes for "used" order blocks
• When OFF: Blocks disappear after mitigation
• Use ON: For learning and analysis
• Use OFF: For clean, active trading
Highlight Active Block (Default: ON)
• Highlights the nearest order block to current price
• Active block shown with 🎯 emoji and brighter color
• Helps focus on most relevant trading opportunity
• Recommended: Keep ON
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📱 Info Panel Guide
Bullish OB Count
• Number of active (unmitigated) bullish order blocks
• Higher number = More support zones below price
• Multiple bullish OBs = Strong demand structure
Bearish OB Count
• Number of active (unmitigated) bearish order blocks
• Higher number = More resistance zones above price
• Multiple bearish OBs = Strong supply structure
Bias Indicator
• ⬆ Bullish: More bullish OBs than bearish (demand > supply)
• ⬇ Bearish: More bearish OBs than bullish (supply > demand)
• ↔ Neutral: Equal OBs on both sides
• Trade in direction of bias for higher probability
Near Indicator
• Shows which OB price is closest to
• Displays distance as percentage
• Example: "Bull OB 0.85%" = Bullish OB is 0.85% below current price
• Watch for "Near" alerts to time entries
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📱 Alert Setup
This indicator includes 4 alert types:
1. Price Entering Bullish OB
• Fires when price touches a bullish order block
• Action: Watch for bounce/reversal pattern
• High-probability long setup developing
2. Price Entering Bearish OB
• Fires when price touches a bearish order block
• Action: Watch for rejection/reversal pattern
• High-probability short setup developing
3. New Bullish OB Detected
• Fires when a new bullish order block forms
• Action: Mark the zone for future retest
• New demand zone identified
4. New Bearish OB Detected
• Fires when a new bearish order block forms
• Action: Mark the zone for future retest
• New supply zone identified
To Set Up Alerts:
1. Click "Alert" button (clock icon)
2. Select "Order Block Identifier"
3. Choose your alert condition
4. Configure notification method
5. Click "Create"
Pro Tip: Set "Price Entering" alerts to catch trading opportunities in real-time
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💎 Pro Tips & Best Practices
✅ DO:
• First touch is best - Unmitigated OBs have highest win rate (60-70%)
• Wait for confirmation - Don't buy/sell just because price touched OB
• Use multiple timeframes - Higher TF OBs are stronger than lower TF
• Combine with structure - OB + trendline/support = high probability
• Trade with the bias - More bullish OBs = favor longs
• Respect mitigation - Once OB is mitigated, it's less reliable
• Use proper stop loss - Always place stops beyond the OB zone
• Consider session timing - OBs work best during London/NY sessions
⚠️ DON'T:
• Don't blindly buy/sell at OBs - Wait for confirmation
• Don't ignore mitigation - Gray blocks are much weaker
• Don't trade every OB - Quality over quantity
• Don't fight strong trends - OBs can be run through in strong momentum
• Don't use alone - Combine with price action, support/resistance
• Don't expect 100% win rate - Even best OBs fail sometimes (30-40% of time)
• Don't overtrade - Wait for A+ setups with confluence
🎯 Best Timeframes By Trading Style:
• Scalpers: 1min, 5min (quick OB touches)
• Day Traders: 5min, 15min, 1H (balanced view)
• Swing Traders: 1H, 4H, Daily (major institutional zones)
• Position Traders: 4H, Daily, Weekly (strongest OBs)
🔥 Best Instruments:
• Excellent: Forex major pairs (EUR/USD, GBP/USD), BTC, ETH, ES, NQ
• Good: Gold, Oil, Major indices, Large-cap stocks
• Moderate: Altcoins, small-cap stocks (more noise)
• Avoid: Very low liquidity instruments (OBs less reliable)
⏰ Best Times To Trade OBs:
• London Session (03:00-12:00 EST): Highest OB respect rate
• NY Session (08:00-17:00 EST): Strong OB reactions
• London-NY Overlap (08:00-12:00 EST): Best probability
• Asian Session: Lower probability, wait for London
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎓 Advanced Order Block Concepts
Order Block Flips (Polarity Change)
When price breaks through an OB and closes beyond it:
• Bullish OB that's broken becomes bearish (support becomes resistance)
• Bearish OB that's broken becomes bullish (resistance becomes support)
• Trading: Watch for retest of broken OB from opposite side
Order Block Refinement
When multiple OBs form at similar level:
• Later OB "refines" or "replaces" the earlier one
• Use the most recent OB as the active zone
• Older OBs become less relevant
Order Block Clusters
Multiple OBs stacked close together:
• Creates a "super zone" of institutional interest
• Higher probability of reversal
• Wider zone for entries (more room for confirmation)
Fair Value Gaps + Order Blocks
When OB aligns with Fair Value Gap:
• Extremely high probability setup
• Price is drawn to fill the gap AND test the OB
• Double confluence = institutional magnet
Order Block Mitigation Types
• Full Mitigation: Price fully enters and closes inside OB
• Partial Mitigation: Price wicks into OB but closes outside
• False Mitigation: Quick touch then immediate rejection
• Partial/false mitigation = OB still somewhat valid
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Common Order Block Patterns
Pattern 1: The Perfect Retest
• OB forms during strong move
• Price continues 100-200+ pips
• Price retraces back to OB
• Clean bounce with confirmation candle
• Highest probability pattern
Pattern 2: The Double Tap
• Price tests OB, bounces weakly
• Price tests same OB again
• Second test produces stronger reaction
• Second touch often better entry
Pattern 3: The Fake-Out
• Price breaks through OB
• Immediately reverses back
• "Stop hunt" or liquidity grab
• Enter after price reclaims OB
Pattern 4: The Ladder
• Multiple OBs stacked like stairs
• Price steps from one OB to next
• Each OB provides support/resistance
• Trade OB-to-OB movements
Pattern 5: The Failed OB
• Price crashes through OB without pause
• OB completely invalidated
• Often signals strong momentum
• Don't fight it, trade the breakout
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 What Makes This Different?
Unlike basic support/resistance indicators, Order Block Identifier:
• ICT Methodology - Based on proven institutional concepts
• Auto-Timeframe Optimization - Works perfectly on all timeframes
• ATR-Based Detection - Adapts to each instrument's volatility
• Mitigation Tracking - Knows when blocks are no longer valid
• Active Block Highlighting - Shows most relevant opportunity
• Smart Filtering - Only shows high-quality institutional zones
• Visual Clarity - Clean, professional appearance
• Real-Time Updates - Blocks update as price action develops
Based On Professional Concepts:
• ICT Smart Money Concepts (SMC)
• Institutional order flow analysis
• Market maker behavior patterns
• Supply and demand zone theory
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🙏 If You Find This Helpful
• ⭐ Leave your feedback
• 💬 Share your experience in the comments
• 🔔 Follow for updates and new tools
Questions about Order Blocks? Feel free to ask in the comments.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Version History
• v1.0 - Initial release with auto-timeframe detection and ATR-based strength filtering
MA and EMA Cross [Pure Strategy]Simple EMA/SMA Crossover
This indicator signals BUY or SELL entries when the Fast EMA crosses the Slow SMA.
✅ Best For: Catching the start of strong trends.
⚠️ Warning: May give false signals in sideways (choppy) markets.
💡 Tip: Use this as a secondary confirmation for your existing strategy, rather than a standalone tool.
SMC N-Gram Probability Matrix [PhenLabs]📊 SMC N-Gram Probability Matrix
Version: PineScript™ v6
📌 Description
The SMC N-Gram Probability Matrix applies computational linguistics methodology to Smart Money Concepts trading. By treating SMC patterns as a discrete “alphabet” and analyzing their sequential relationships through N-gram modeling, this indicator calculates the statistical probability of which pattern will appear next based on historical transitions.
Traditional SMC analysis is reactive—traders identify patterns after they form and then anticipate the next move. This indicator inverts that approach by building a transition probability matrix from up to 5,000 bars of pattern history, enabling traders to see which SMC formations most frequently follow their current market sequence.
The indicator detects and classifies 11 distinct SMC patterns including Fair Value Gaps, Order Blocks, Liquidity Sweeps, Break of Structure, and Change of Character in both bullish and bearish variants, then tracks how these patterns transition from one to another over time.
🚀 Points of Innovation
First indicator to apply N-gram sequence modeling from computational linguistics to SMC pattern analysis
Dynamic transition matrix rebuilds every 50 bars for adaptive probability calculations
Supports bigram (2), trigram (3), and quadgram (4) sequence lengths for varying analysis depth
Priority-based pattern classification ensures higher-significance patterns (CHoCH, BOS) take precedence
Configurable minimum occurrence threshold filters out statistically insignificant predictions
Real-time probability visualization with graphical confidence bars
🔧 Core Components
Pattern Alphabet System: 11 discrete SMC patterns encoded as integers for efficient matrix indexing and transition tracking
Swing Point Detection: Uses ta.pivothigh/pivotlow with configurable sensitivity for non-repainting structure identification
Transition Count Matrix: Flattened array storing occurrence counts for all possible pattern sequence transitions
Context Encoder: Converts N-gram pattern sequences into unique integer IDs for matrix lookup
Probability Calculator: Transforms raw transition counts into percentage probabilities for each possible next pattern
🔥 Key Features
Multi-Pattern SMC Detection: Simultaneously identifies FVGs, Order Blocks, Liquidity Sweeps, BOS, and CHoCH formations
Adjustable N-Gram Length: Choose between 2-4 pattern sequences to balance specificity against sample size
Flexible Lookback Range: Analyze anywhere from 100 to 5,000 historical bars for matrix construction
Pattern Toggle Controls: Enable or disable individual SMC pattern types to customize analysis focus
Probability Threshold Filtering: Set minimum occurrence requirements to ensure prediction reliability
Alert Integration: Built-in alert conditions trigger when high-probability predictions emerge
🎨 Visualization
Probability Table: Displays current pattern, recent sequence, sample count, and top N predicted patterns with percentage probabilities
Graphical Probability Bars: Visual bar representation (█░) showing relative probability strength at a glance
Chart Pattern Markers: Color-coded labels placed directly on price bars identifying detected SMC formations
Pattern Short Codes: Compact notation (F+, F-, O+, O-, L↑, L↓, B+, B-, C+, C-) for quick pattern identification
Customizable Table Position: Place probability display in any corner of your chart
📖 Usage Guidelines
N-Gram Configuration
N-Gram Length: Default 2, Range 2-4. Lower values provide more samples but less specificity. Higher values capture complex sequences but require more historical data.
Matrix Lookback Bars: Default 500, Range 100-5000. More bars increase statistical significance but may include outdated market behavior.
Min Occurrences for Prediction: Default 2, Range 1-10. Higher values filter noise but may reduce prediction availability.
SMC Detection Settings
Swing Detection Length: Default 5, Range 2-20. Controls pivot sensitivity for structure analysis.
FVG Minimum Size: Default 0.1%, Range 0.01-2.0%. Filters insignificant gaps.
Order Block Lookback: Default 10, Range 3-30. Bars to search for OB formations.
Liquidity Sweep Threshold: Default 0.3%, Range 0.05-1.0%. Minimum wick extension beyond swing points.
Display Settings
Show Probability Table: Toggle the probability matrix display on/off.
Show Top N Probabilities: Default 5, Range 3-10. Number of predicted patterns to display.
Show SMC Markers: Toggle on-chart pattern labels.
✅ Best Use Cases
Anticipating continuation or reversal patterns after liquidity sweeps
Identifying high-probability BOS/CHoCH sequences for trend trading
Filtering FVG and Order Block signals based on historical follow-through rates
Building confluence by comparing predicted patterns with other technical analysis
Studying how SMC patterns typically sequence on specific instruments or timeframes
⚠️ Limitations
Predictions are based solely on historical pattern frequency and do not account for fundamental factors
Low sample counts produce unreliable probabilities—always check the Samples display
Market regime changes can invalidate historical transition patterns
The indicator requires sufficient historical data to build meaningful probability matrices
Pattern detection uses standardized parameters that may not capture all institutional activity
💡 What Makes This Unique
Linguistic Modeling Applied to Markets: Treats SMC patterns like words in a language, analyzing how they “flow” together
Quantified Pattern Relationships: Transforms subjective SMC analysis into objective probability percentages
Adaptive Learning: Matrix rebuilds periodically to incorporate recent pattern behavior
Comprehensive SMC Coverage: Tracks all major Smart Money Concepts in a unified probability framework
🔬 How It Works
1. Pattern Detection Phase
Each bar is analyzed for SMC formations using configurable detection parameters
A priority hierarchy assigns the most significant pattern when multiple detections occur
2. Sequence Encoding Phase
Detected patterns are stored in a rolling history buffer of recent classifications
The current N-gram context is encoded into a unique integer identifier
3. Matrix Construction Phase
Historical pattern sequences are iterated to count transition occurrences
Each context-to-next-pattern transition increments the appropriate matrix cell
4. Probability Calculation Phase
Current context ID retrieves corresponding transition counts from the matrix
Raw counts are converted to percentages based on total context occurrences
5. Visualization Phase
Probabilities are sorted and the top N predictions are displayed in the table
Chart markers identify the current detected pattern for visual reference
💡 Note:
This indicator performs best when used as a confluence tool alongside traditional SMC analysis. The probability predictions highlight statistically common pattern sequences but should not be used as standalone trading signals. Always verify predictions against price action context, higher timeframe structure, and your overall trading plan. Monitor the sample count to ensure predictions are based on adequate historical data.






















