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.
Indicators and strategies
VYW Stop Loss LinesA simple utility designed to visually display Stop Loss lines on the chart based on an offset from the current price (the orange dashed lines in the screenshot above).
This indicator can also draw a line from the current bar's close price to the Price axis (the dashed gray line in the screenshot above).
Advanced Volume Suite (24h, Pulse, Spikes, Breakout Pressure)Advanced Volume Suite transforms raw volume into a complete market-intelligence toolkit for breakout, momentum, and liquidity-driven trading.
Unlike the basic volume indicator, this tool analyzes volume in true USDT value, tracks rolling 24h exchange-style volume, measures volume strength vs historical averages, detects smart spikes, and highlights breakout pressure near support/resistance.
Core Features:
• USDT-based volume histogram
• 24h rolling volume line
• Volume Pulse (volume vs moving average)
• Smart spike detection with directional filters
• Breakout pressure system (breakouts + near-breakout conditions)
• 3 advanced volume color modes (Simple / Body / Delta-style)
• All signals and thresholds fully configurable
Perfect for traders who rely on volume confirmation for breakouts, momentum entries, scalping, or detecting institutional activity.
Hemanth's Pure Z-Score IndicatorThe Pure Z-Score Indicator is a statistical tool that measures how far the current price is from its recent average in terms of standard deviations. It helps traders identify overbought, oversold, and mean-reverting conditions in the market. This indicator is fully customizable, lightweight, and easy to use.
Key Features:
Displays the Z-Score of the price with optional smoothing.
Highlights overbought and oversold zones based on standard deviation thresholds.
Highlights mean (0) level for tracking price reversion.
Optional SMA or EMA smoothing to reduce noise.
Background highlights visually indicate extreme zones for easier analysis.
Inputs:
Length – Number of bars used to calculate the Z-Score.
Higher values smooth the indicator but react slower.
Lower values make it more sensitive but may produce more noise.
Overbought Level – Upper threshold for the Z-Score.
Default: 2.0 (2 standard deviations above the mean).
Crossing above this level signals a statistically overbought condition.
Oversold Level – Lower threshold for the Z-Score.
Default: -2.0 (2 standard deviations below the mean).
Crossing below this level signals a statistically oversold condition.
Use EMA instead of SMA – Determines whether the basis for Z-Score calculation is an Exponential Moving Average (EMA) or a Simple Moving Average (SMA).
EMA reacts faster to recent price changes.
SMA gives a smoother, slower-reacting average.
Smooth Z-Score (0 = no smoothing) – Apply additional smoothing to the Z-Score using a moving average.
Reduces noise and false spikes for cleaner visualization.
How to Use:
Overbought/Oversold: Watch for the Z-Score crossing the upper or lower levels to identify potential reversal zones.
Mean Reversion: Z-Score crossing the mean (0) can indicate short-term trend shifts.
Smoothing Options: Adjust the smoothing length and type to suit your trading style and timeframe.
Recommended Timeframes:
Works on any timeframe; suitable for day trading, swing trading, or longer-term analysis.
Best used in combination with price action or other indicators for confirmation.
Note:
This is a pure statistical indicator based on standard deviations. It does not provide buy/sell signals by itself, but helps traders identify areas of extreme price movement and potential reversals.
EMA Divergence Color CandlesThis indicator colors candles based on their position relative to the EMA and the strength of the divergence.
Above EMA → Blue (bullish zone)
Below EMA → Red (bearish zone)
Divergence strength is shown in 3 color levels:
Weak (close to EMA)
Medium
Strong (far from EMA)
The indicator draws its own candles, so no TradingView settings need to be changed.
The EMA line is also shown on top of the custom candles.
XAU Micro ScalperThis indicator is designed for short-term price rotation detection on XAUUSD, especially on the 1-minute timeframe.
It combines three momentum components—Stochastic, RSI, and OBV slope—to highlight potential reversal points and short-term scalping opportunities.
Core Logic
The script generates a signal only when multiple conditions align:
1. Stochastic Reversal (Timing Component)
A basic long/short trigger occurs when the Stochastic oscillator exits oversold (long) or overbought (short).
This represents a potential shift in short-term momentum.
2. RSI “Smart Rotation” Filter (Context Component)
Instead of using fixed oversold/overbought thresholds, the indicator checks whether RSI is turning:
Long: RSI is below a contextual ceiling (default 50) and rising
Short: RSI is above a contextual floor (default 55) and falling
This avoids premature entries during strong trending phases and confirms that momentum is actually rotating.
3. OBV Slope Filter (Volume Confirmation)
The On-Balance Volume trend is compared to its previous value:
Long: OBV slope improving
Short: OBV slope deteriorating
This helps confirm whether volume pressure is shifting in favor of the trade direction.
Both RSI and OBV filters can be enabled or disabled independently via the indicator settings.
Signals
Small circles mark raw Stochastic reversal points (unfiltered).
Green / red triangles represent validated long/short signals where all active filters agree.
Optional candle coloring highlights confirmed entry signals on the chart.
Use Cases
Intraday and scalping strategies on XAUUSD
Identifying short-term momentum reversals
Filtering noisy signals during high-volatility sessions
Studying how volume and momentum align around turning points
Customization
Users can adjust:
RSI contextual thresholds
Lookback periods
OBV slope sensitivity
Stochastic parameters
Activation of RSI and OBV filters
This flexibility allows the indicator to adapt to different market conditions and timeframes.
Disclaimer
This indicator does not provide financial advice or guarantee performance.
Always test any strategy on historical data and use proper risk management.
Fractal Chaos & Kalman Trajectory [Signal]🇺🇸 English Explanation: Silence the Noise, Capture the True Trajectory.
This indicator is an advanced tool that moves beyond conventional technical analysis (RSI, MACD, etc.), merging two cutting-edge concepts from financial mathematics: the Kalman Filter and Fractal Chaos Theory (Hurst Exponent).
How It Works and Why It's Premium
1. Noise Cleaner (Kalman Trajectory)
Technology: The Kalman Filter, famously used by NASA for rocket trajectory calculations.
Benefit: It effectively silences all instantaneous, misleading price fluctuations (noise). This low-lag line plots the price's true trajectory, providing the purest trend line available by constantly self-correcting its error estimate.
2. Chaos Detector (Hurst Exponent)
Technology: Derived from Fractal Geometry and Chaos Theory, the Hurst Exponent.
Benefit: It mathematically distinguishes if the market is currently in a "Trending Mode" or a "Random Walk/Choppy Mode."
H > 0.5 (Trend): The market is orderly; past moves influence the future (Safe to Trade!).
H < 0.5 (Chaos/Random): The market is random; trading should be avoided (Preserve Capital!).
Signal Logic: AWAKE and FEAR: Detecting the Genesis of Order
This indicator does not just produce simple crossover signals; it is engineered to identify the "Genesis of Order"—the precise moment a market transitions from untradeable randomness into a reliable trend regime.
Grey Bars (The Waiting Game): When the Hurst Exponent is below the Chaos Threshold (H < 0.5), bars are colored grey. This is the crucial "Wait Mode" signal, which prevents the trader from entering during the most capital-eroding, sideways, or random markets, thus prioritizing capital preservation.
AWAKE Signal (Long Entry): This signal triggers only when two conditions are met: the market breaks out of Chaos (Hurst > 0.5) and confirms a clear upward trend direction (price above the Kalman Trajectory). This is designed to be the safest entry point for a Long position.
FEAR Signal (Short Entry): Conversely, this signal triggers when the market breaks out of Chaos (Hurst > 0.5) and confirms a clear downward trend direction (price below the Kalman Trajectory). This represents the ideal entry point for a Short position.
THIS IS NOT FINANCIAL ADVICE.
Recommended settings:
Gain: 0.1
Chaos Threshold: 0.65
Zero Lag EMA_BhavatThis is a test script for zelma. This is intended to cut down the lag from traditional ema indicators.
Alphabet Long Trigger (Björn)Alphabet Trigger Dezember 2025:
Kurs 267–269 €
grüne Kerze mit höherem Tief
Volumen-Lebenszeichen
Nasdaq nicht im Abwärtsmodus
Alphabet Momentum Pullback Strategy — Brief Description
This strategy targets high-quality pullbacks within a confirmed uptrend and enters a long position only when price, structure, volume, and market context align.
A trade is triggered when:
Price enters the buy zone between €267–€269, signaling a controlled pullback.
The chart forms the first green candle with a higher low, indicating buyers are returning.
Volume shows a positive uptick (at least above the recent average), confirming real demand.
The Nasdaq is not falling, ensuring the broader tech market is stable and not in risk-off mode.
The strategy avoids entries triggered solely by price and waits for multi-factor confirmation, reducing false breakouts and momentum traps. It is designed for disciplined swing traders who prioritize trend alignment, volume confirmation, and market context before entering a position.
MTF 4h Structure + FVG (CORRECTED)This is a fully customizable Multi-Timeframe (MTF) indicator for SMC traders. It overlays true Higher Timeframe market structure onto your current chart. While it defaults to the 4-Hour (4h) structure, you can easily change this to 1h, Daily, or Weekly in the settings to suit your strategy.
Key Features:
1. Dynamic MTF Overlay: Select any Higher Timeframe (HTF) in the settings. The script calculates true pivots on that timeframe and projects them onto your chart without repainting issues.
2. Active Dealing Range: Automatically displays the Swing High and Swing Low of the selected HTF.
3. Equilibrium (EQ): Marks the 50% level of the range to help you identify Premium (Sell) vs. Discount (Buy) zones.
4. HTF Fair Value Gaps (FVG): Detects and draws unmitigated FVGs from your selected timeframe, acting as high-probability POIs.
Visuals & Logic:
- Green/Red: Signals CHoCH (Trend Reversals).
- Gray: Signals BOS (Trend Continuation) - keeping the chart clean.
- Smart Calculation: Calculates structure explicitly on the HTF data to prevent false signals on lower timeframes.
How to use:
1. Add to your chart (e.g., 5m or 15m).
2. Open Settings -> Select your desired "Higher Timeframe" (Default is 4h).
3. Trade in the direction of the HTF Trend (Labels) and look for entries within HTF FVGs in the correct Discount/Premium zone.
KSL-Fullsystem V2.0Trend Following & Reversal Trading System. It combines **Price Action (Market Structure)** with multiple technical indicators to generate high-quality Buy and Sell signals.
---
1. How Signals are Generated (The Core Logic)
The script uses **"Internal Shifts"** (Market Structure Breaks) to find entry points.
* BUY Signal: The price breaks above a previous bearish structure (Higher High) + All enabled filters are Green.
* SELL Signal: The price breaks below a previous bullish structure (Lower Low) + All enabled filters are Red.
When a signal occurs, the script automatically calculates:
* Stop Loss (SL): Based on the recent Swing High/Low.
* Take Profit (TP): Three levels (TP1, TP2, TP3) based on risk-reward ratios (1.5x, 2.0x, 3.0x).
---
2. The Filters (Your Confirmation Checklist)
You can turn these On/Off in the settings. **Note:** If you turn *all* of them on, you might get very few signals because the conditions become too strict.
**A. Bollinger Bands (BB) Filters (Primary Feature)**
This is the main filter for this version.
* Squeeze Filter: Prevents trading when the bands are too narrow (low volatility). If the background turns **Yellow**, it means the market is "Squeezing" – **Do Not Trade.**
* Touch Entry: Looks for price bouncing off the Lower Band (Buy) or Upper Band (Sell).
* Breakout Entry: Looks for price blasting through the bands.
* Mean Reversion: Checks if price is reverting to the middle line (Basis).
**B. Moving Average Filters (Trend)**
The script includes three types of Moving Averages. You can choose which style suits you:
* EMA (Exponential): Fast-reacting. Good for scalping.
* SMA (Simple): Standard trend lines. Good for position trading.
* LWMA (Linear Weighted): Focuses heavily on recent data.
* Configuration: You can select specific setups like "Scalping" (9/21/50 EMA) or "Trend" (50/200 EMA).
**C. Momentum Filters**
* MACD: Checks momentum. You can choose settings for Scalping, Day Trading, or Swing Trading.
* AO (Awesome Oscillator) & AC: Helps confirm if the momentum is strong enough to support the trend.
---
**3. Visual Guide: What You See on the Chart**
* Green Box: A Buy Zone (Demand).
* Red Box: A Sell Zone (Supply).
* Labels (Text): Shows "BUY" or "SELL" with exact prices for TP1, TP2, TP3, and SL.
* Blue Lines: The Bollinger Bands (Upper and Lower).
* Orange Line: The Bollinger Band Basis (Middle).
* Small Triangles:
* Green Triangle (Below Bar): Price touched the Lower Bollinger Band.
* Red Triangle (Above Bar): Price touched the Upper Bollinger Band.
* Yellow Background: **WARNING.** The market has low volume/volatility (BB Squeeze). Wait for a breakout.
---
4. How to Use This Script
1. Select Your Style: Go to the Settings (Inputs).
* If you are a **Scalper**, turn on "Scalping EMA" or "Scalping MACD".
* If you are a **Swing Trader**, turn on "Swing SMA" or "Trend EMA".
2. Configure Bollinger Bands: Keep `Use Bollinger Bands Filter` checked. Decide if you want to trade "Squeezes" (usually safer to avoid them).
3. Wait for the Label: Do not enter blindly. Wait for the script to print a **BUY** or **SELL** label with the TP/SL targets.
4. Check the Background: If the background is **Yellow**, ignore the signal or wait until the color clears.
5. Manage Risk: Place your Stop Loss at the price shown on the label ("SL").
YSD RSIYSD RSI
This indicator is an enhanced version of the traditional Relative Strength Index (RSI), designed to provide deeper insight into market momentum and trend quality. While the classic RSI focuses primarily on the ratio of recent gains to losses, this strengthened variant incorporates additional layers of analysis to capture subtler shifts in price behavior. By applying refined smoothing techniques, integrating volatility awareness, and emphasizing the consistency of directional movement, the indicator aims to reduce noise and highlight more reliable momentum signals. As a result, it not only identifies overbought and oversold conditions with greater precision but also reacts more intelligently to changing market environments. Traders can use this improved RSI to detect early trend reversals, filter out false signals, and gain a more comprehensive understanding of underlying price dynamics compared to the standard RSI.
Session Sweep System – WarRoomXYZ V1WarRoom Session Sweep System v1 is a open-source institutional trading framework built to identify liquidity behavior across Asia, London, and New York sessions.
It combines session-based liquidity mapping, sweep detection, daily expansion modeling, and trend confirmation into a unified, timing-driven system optimized for XAUUSD, FX pairs, indices, and any instrument with session-dependent volatility.
This tool does not attempt to predict direction with arbitrary oscillators.
Instead, it focuses on the underlying market mechanisms that drive price:
liquidity, timing, expansion, and trend alignment.
Below is a detailed explanation of what the script does, how its components work, and how traders can use it effectively.
🔹 1. Session Liquidity Mapping
The script automatically identifies the Asia (00:00–06:00 GMT), London (07:00–12:00 GMT), and New York (13:00–17:00 GMT) sessions and builds real-time session ranges.
Each session creates a liquidity pool.
Trading institutions frequently sweep the high or low of one session before delivering the real move in the next session.
This script captures that behavior by:
►Drawing session range boxes
►Tracking previous session highs/lows
►Highlighting high-probability sweep locations
These ranges are essential reference points for timing entries and exits.
🔹 2. Liquidity Sweep Detection (Buy & Sell Sweeps)
The indicator identifies when price runs a previous session high/low and rejects back inside the range, which is commonly interpreted as a liquidity sweep.
The following sweep types are monitored:
►London sweeping Asia
►New York sweeping London
►Asia sweeping New York
►Daily sweep of PDH/PDL
Sweeps signal that liquidity has been collected and that a potential reversal or continuation is likely.
These are marked clearly on the chart for real-time decision-making.
🔹 3. Killzone Timing Model (GMT Time)
Market manipulation and expansion often occur during specific time windows.
The script highlights these institutional killzones:
►London Killzone: 07:00–10:00 GMT
►New York Killzone: 13:30–15:30 GMT
►NY PM Session: 19:00–21:00 GMT
Sweeps occurring inside these windows carry a significantly higher probability.
The timing layer helps filter out low-quality setups.
🔹 4. Daily Range & ADR Expansion Engine
A dedicated panel displays:
►Current day range
►ADR (Average Daily Range)
►Expansion stage (Early / Developed / Extended)
►PDH/PDL swept or intact
►Overall session bias
This allows traders to understand whether the daily move is likely to continue or reverse.
For example:
►Early expansion → trend continuation likely
►Extended expansion → reversal setups become more probable
This is useful for intraday targets and risk management.
🔹 5. MA Cloud Trend Model (Fast/Slow Structure)
To align liquidity behavior with directional conviction, the script includes a configurable MA engine:
►Fast & slow MA
►MA cloud
►Slope-based trend coloring
►Trend background
►MA cross alerts
The cloud provides trend confirmation without relying on oscillators.
Trades are higher quality when the sweep direction aligns with the MA trend.
🔹 6. How the Components Work Together
The script integrates several institutional concepts into one coherent model:
►Sessions define liquidity pools
►Sweeps identify stop-hunts and reversals
►Killzones define optimal timing
►MA Cloud confirms directional bias
►ADR engine indicates expansion potential
This creates a structured framework:
Sweep → Timing → Trend → Expansion → Execution
Each component strengthens the others, forming a robust decision-making model.
🔹 7. How to Use the Indicator (Practical Guide)
✔ Look for a sweep of a previous session level
When price runs a session high/low and closes back inside, liquidity has likely been collected.
✔ Confirm timing
Sweeps inside London or NY killzones tend to produce the strongest moves.
✔ Confirm trend
Use MA cloud direction and slope:
►Cloud green → long setups preferred
►Cloud red → short setups preferred
✔ Check ADR panel
If the day has already expanded significantly, reversal setups are more likely.
If expansion is still early, continuation setups are favored.
✔ Plan your trade
Common targets include:
►Opposite side of session range
►ADR High/Low
►PDH/PDL
Stops are typically placed beyond the sweep wick.
This creates a repeatable, rule-based approach to intraday liquidity trading.
🔹 8. Why This Script Is Original
This is not a mashup of existing open-source indicators.
It introduces:
►A custom session-linked liquidity sweep engine
►A structured daily expansion model
►Integrated killzone timing aligned with GMT
►A unified bias panel merging sweeps, ADR, and session manipulation
►A trend confirmation layer designed around session behavior
While it uses known institutional concepts, their integration, execution, and timing framework are unique, purpose-built, and not directly found in open-source scripts.
🔹 9. Suitable Markets
This indicator works best on:
►XAUUSD
►Major FX pairs
►US indices
►Synthetic markets with session cycles
Ideal timeframes: 1m, 5m, 15m, 30m
🔹 10. Limitations / Notes
This is an analytical tool, not a buy/sell signal generator
All sweeps are confirmed at candle close (non-repaint)
The tool assumes GMT session windows unless chart time differs
Users must practice risk management and entry triggers manually
Disclaimer
This script is provided for informational and educational purposes only. It does not provide financial, investment, or trading advice, and it does not guarantee profits or future performance. All decisions made based on this script are solely the responsibility of the user.
This script does not execute trades, manage risk, or replace the need for trader discretion. Market behavior can change quickly, and past behavior detected by the script does not ensure similar future outcomes.
Users should test the script on demo or simulation environments before applying it to live markets and must maintain full responsibility for their own risk management, position sizing, and trade execution.
Trading involves risk, and losses can exceed deposits. By using this script, you acknowledge that you understand and accept all associated risks.
TRADE2GO CALCULATORMobile-Optimized Position Size Calculator with Intuitive Moveable Lines
Trading on mobile just got easier. Our TradingView calculator features drag-and-drop interactive lines designed specifically for touchscreen devices, eliminating the need for manual price input on small screens.
Key Features:
Easy Touch Controls - Simply drag the Entry, Stop Loss, and Take Profit lines directly on your chart. No more typing precise prices on tiny keyboards or struggling with number pads while analyzing the market.
Real-Time Calculations - As you move the lines, lot sizes and risk parameters update instantly. See your position size, potential profit, and risk amount change dynamically as you adjust your trade setup.
Perfect for Mobile Trading - Whether you're trading on-the-go or prefer mobile analysis, the moveable lines provide a seamless experience that works naturally with touch gestures. Pinch to zoom, drag to position, and your calculations follow your trade plan in real-time.
Visual Trade Planning - Place your lines where you see support/resistance levels, trend lines, key chart patterns, or using Pip Booster trading levels. Your position sizing adapts automatically to your technical analysis, keeping risk management front and center.
One-Glance Risk Assessment - All critical information displays clearly: lot size, risk and reward amounts in your account currency, and the calculated lot size to use—all updating as you refine your trade setup visually on the chart.
Trade smarter on mobile with a calculator that moves at the speed of your analysis.
BT SpikeBT Spike is a lightweight but highly effective alert engine designed to identify
moments of unusual volatility and volume expansion . These spikes often appear
at the very beginning of major moves, giving traders early insight into:
Momentum ignition
Breakout confirmation
Liquidity shifts
Stop runs & displacement moves
Trend acceleration
High-impact expansions before news or volatility events
Rather than watching charts all day, BT Spike allows traders to receive
instant alerts whenever the market enters an abnormal volatility regime.
---
■ What BT Spike Measures
1. ATR Spike
Detects sudden expansion in true range (micro-volatility).
This often marks the beginning of a displacement candle.
2. Volume Spike
Identifies candles where volume exceeds typical market participation.
3. Combined Spike
A powerful signal triggered only when both conditions occur together:
ATR Spike AND Volume Spike
4. Spike Score (0–100)
A normalized measure of spike intensity.
• Higher score → Stronger anomaly
• 90+ → Extreme event (liquidity shifts, stop runs, institutional activity)
---
■ Visual Elements
• True Range Line
Shows per-candle volatility relative to baseline ATR.
• Volume Bars (Color-Scaled)
Volume bars turn:
Green for bullish spikes
Red for bearish spikes
Intensity based on Spike Score
Gray during normal activity
This creates a clear volatility heatmap directly in the volume panel.
• Spike Score Histogram
Helps visually identify:
Minor spikes
Major volatility clusters
Extreme anomalies
• Threshold Lines
Yellow = Minor
Orange = Major
Red = Extreme
---
■ Why BT Spike Is Useful
Spike-based analysis helps traders:
Catch large moves early
Confirm breakouts and avoid fake ones
Identify when smart money enters the market
Find the start of momentum legs
Monitor many charts with alerts instead of manual watching
A spike is often the first footprint of a meaningful move.
---
■ Practical Trading Uses
1. Breakout Confirmation
A breakout with no spike is often weak.
A breakout with a spike is typically genuine and sustained.
2. Reversal Detection
Extreme spike after a sweep often signals a reversal event.
3. Trend Ignition
Spikes frequently occur at the beginning of:
Trend legs
News-driven surges
Momentum continuation moves
4. Divergence With Price
High-volume, high-ATR spikes with little price movement can indicate:
Absorption
Trap conditions
Exhaustion
5. Alert-Driven Market Monitoring
Set alerts for:
ATR Spike
Volume Spike
Combined Spike
Major Spike (Score ≥ threshold)
Extreme Spike (Score ≥ threshold)
This allows traders to walk away while still catching every volatility event.
---
■ Spike Score Guide
0–30 → Mild noise
30–60 → Minor shift
60–80 → Strong volatility expansion
80–95 → Major spike (high-impact)
95–100 → Extreme event (institutional presence, sweeps, stop runs)
---
■ Final Summary
BT Spike gives traders:
Early detection of volatility expansion
Bull/Bear intensity visualization
Powerful alert automation
A universal signal layer that fits any strategy
Cleaner insight into where major moves originate
BT Spike = Your volatility radar .
It tells you when to look at a chart—before the move happens.
MirrorPip ST Rolling Reversal This Strategy is a mean reversal strategy that focus on high gamma scripts.
You can set a condition for a X% move in Y candles and when that conditon is met, it will wait for supertrend to reverse.
For aggressive traders we have also added Martingale feature in it.
+ martingale is arithmatic martingale
* martingale is geometric martingale.
we have also added options mode, just incase you wish to trade in options as both buyer and seller.
The option mode also gives you flexibility to be a choose dynamic ATM/ITM/OTM strikes.
0 = ATM
LESS THAN 0 = ITM
GREATER THAN 0 = OTM
Additonal advanced settings :
We have added an optional reference supertrend, where you can refer to other script and its supertrend direction as dual confirmation.
you can even set the reference chart with other time frame than of current chart.
Also while firing order, you can fire orders in LOTS/DOLLARS.
There is a smart dashboard that helps you see the live P/L as well.
Price Action Ultimate LITE by 🅰🅻🅿 🇹🇷📌 Price Action Ultimate LITE by 🅰🅻🅿 🇹🇷
— Clean, Visual, and Trader-Friendly Price Action Tool
Price Action Ultimate LITE is a simplified but highly functional introduction to our full PRO model.
It offers a clean visual framework for Order Blocks , Breaker Blocks , Risk/Reward zones , a Trend Ribbon , and a real-time Trade Manager — all without automation or strategy execution.
Designed for discretionary traders who want structure, clarity and visual confidence — not complexity.
🟪 1 — Core Visual Layout
i.imgur.com
This panel demonstrates the visual foundation of the LITE version.
Blocks, labels, the MA ribbon and the R/R box adapt to the selected Pastel or Light theme.
Minimal, clean, easy to read — built for long screen-time.
🟩 2 — Order Blocks (OB / BB / MB)
i.imgur.com
Detected block types:
Bullish / Bearish Order Blocks
Breaker Blocks (failed OBs that reverse direction)
Mitigation Blocks (inefficiency retests)
Visual controls for each block:
Styles: Gradient / Solid / Outline / Glass
Opacity 0–100
Theme-adaptive colors
Blocks auto-extend and auto-clean when invalidated.
🟧 3 — MA Ribbon (Trend Guide)
i.imgur.com
The MA Ribbon provides trend context only .
It does not auto-trade or make long/short decisions.
Features:
Fast & slow MA with adjustable type (SMA / EMA / WMA / VWMA / Hull)
Ribbon style + opacity control
Smooth theme-based transitions
Optional colored candles
Clear trend awareness while keeping full discretion.
🟥 4 — Risk Management & R/R Box
i.imgur.com
This section includes a dynamic Risk/Reward Box showing:
Entry level
Stop level
Target level (based on R:R multiplier)
Real-time risk/reward shading
You control:
Risk Amount (USD) → defines 1R
Risk Multiplier (R:R)
Max Trade Duration (timeout)
Label visibility & offsets
Zone colors & transparency
Instant visual risk clarity — no manual calculations.
🟦 5 — Alert System
i.imgur.com
Included alerts:
Entry Alert (OB/BB Break)
Stop Loss Hit
Take Profit Hit
Timeout Alert
PnL Alert (threshold-based, optional)
Entry alerts confirm on bar close.
Exit alerts trigger immediately.
Timeouts show a ⏰ label on chart.
🟨 6 — Trade Manager (Real-Time Dashboard)
i.imgur.com
A lightweight panel updated every bar.
Displays:
Position (Long / Short / Inactive)
Entry, Stop, Target
Floating PnL (based on 1R)
Last 10 Trades PnL
R:R ratio
Status (Active / Timeout Soon / Inactive)
Entry reason
Bars active
Entry history
The Trade Manager is informational only — no automation.
🟫 7 — Final Overview
i.imgur.com
A complete look at how the system behaves in live market conditions.
Blocks, Ribbon, R/R Box and Trade Manager all work together seamlessly.
📝 Important Notes
This is a closed-source protected script .
It does not place, close, or manage trades.
All signals are discretionary.
Use replay mode before trading live.
Not financial advice; markets carry risk.
🙏 Acknowledgements
Inspired by the price-action research found across TradingView, including the work of JustUncleL and EmreKb .
This script, however, is a fully independent implementation built from the ground up.
🚀 Who Is LITE For?
✔ Traders who want clean structural guidance
✔ OB / Breaker / Mitigation Block users
✔ R:R-based discretionary traders
✔ Traders preparing for the PRO edition
✔ Anyone wanting a lightweight, modern PA tool
🌟 Enjoy Price Action Ultimate LITE.
Trade cleaner. Trade clearer. Trade with structure.
🔵 About This LITE Version (Before the PRO Edition)
Price Action Ultimate LITE is intentionally built as a lightweight introduction to the concepts behind the upcoming PRO version.
Instead of overwhelming traders with automation, multi-TF engines or advanced filtering, LITE focuses on:
Core OB / BB / MB mechanics
Simplified trend guidance
Clear visual risk mapping
Essential alerts
Real-time trade monitoring
The purpose is simple:
Build confidence with the fundamentals before stepping into the advanced PRO environment.
LITE shares the same visual style and OB logic family as PRO, but without:
Multi-TF anchored blocks
Smart OB validation
Auto-management features
Multi-stage TP logic
Break-even or trailing engines
Strength filters
Liquidity-layer mapping
Advanced dashboards
Many traders prefer LITE for its clarity — structure without noise.
🟢 Who Should Use LITE?
Traders who want a calm, focused chart
Users preparing for the PRO version
Visual OB/BB practitioners
Discretionary traders wanting structure (not automation)
Anyone needing a clean, stable PA toolkit
🟡 Why LITE First?
Learn OB/BB structure
Develop consistent R:R habits
Improve timing with alerts
Build discipline via the Trade Manager
Strengthen intuition before automation
🟠 Final Note
LITE is not a restricted trial.
It is a complete, fully usable tool on its own —
but also a natural gateway into the more advanced PRO ecosystem.
VAPO OsilatorThe Real Map of Buying and Selling Pressure.
VAPO Advanced is fundamentally different from conventional oscillators that only measure momentum based on price. By integrating Volume and price movement (Pressure), it quantitatively maps the true buying and selling pressure in the market.
How It Works and What Are Its Advantages?
1. Core Pressure Measurement
Logic: The oscillator interprets high-volume price increases as strong buying pressure (+P) and high-volume price decreases as strong selling pressure (-P). Low-volume moves weaken the signal strength.
Benefit: This effectively filters out misleading signals caused by "fake" price movements (manipulation or low-volume spikes). It only displays momentum shifts that are supported by volume.
2. Dynamic Signal Line and Histogram
Signal Line: Provides a dynamic signal line smoothed by your choice of Moving Average type (EMA, SMA, WMA).
Histogram: Shows the difference between the VAPO line and the Signal line. A zero-line crossover of the histogram is the clearest signal that pressure is shifting direction. As the Green histogram grows, Buying Pressure accelerates; as the Red histogram grows, Selling Pressure accelerates.
3. Reliable Confirmation Tool
VAPO serves as an excellent confirmation tool when used alongside your primary trend indicators. For instance, when a trend indicator gives a BUY signal, VAPO crossing above the zero line (positive pressure) significantly increases the reliability of that signal.
⚠️ DISCLAIMER: THIS IS NOT FINANCIAL ADVICE. ALL INFORMATION PROVIDED IS FOR EDUCATIONAL AND ANALYTICAL PURPOSES ONLY.
YASAL UYARI: BU BİR YATIRIM TAVSİYESİ DEĞİLDİR. SUNULAN TÜM BİLGİLER YALNIZCA EĞİTİM VE ANALİZ AMAÇLIDIR.
8EMA+BB-SubiProvides the facility to display 8 EMAs along with Bollinger Bands in the same indicator.
BuySell box📌 The BuySell Box visualizes how volume contributes to buy, sell, or neutral flow within a specific price range.
Based on the high-low-close structure of each candlestick and the volume distribution ratio, this indicator segments price ranges to help you understand how volume moves within a specific range.
This indicator provides the following visualizations:
Boxes indicating dominant buy and sell volume zones
Percentage labels showing volume distribution
Automatic reconfiguration of zones when a status change occurs
Direction change detection using RSI-based auxiliary values (div_t)
■ Calculation Logic
Instead of relying solely on raw volume, this indicator uses the internal structure of the candlestick (the high-close-low ratio) to distinguish between buy and sell volume.
● Calculating Volume Distribution
For each candle:
Type Formula
vol_cell (high - close) / (high - low) × volume
vol_buy (close - low) / (high - low) × volume
Cumulative average of the absolute candle body, adjusted using the average spread box_size_multiplier
This method estimates the distribution of volume using the relative positions of the candles, which serves as the basis for creating the volume boxes.
■ State Transition Detection Logic
This indicator detects changes using the div_t value (div_t = RSI × 5 - 250).
● Conditions
div_t > +50 → item_top state
div_t < −50 → item_bot state
When the state changes, the previous box closes and a new range begins.
This allows the box to accumulate and display volume movement from the moment the state transitions until the next transition.
■ Box Creation Process
When a state transition occurs, the following actions are executed:
● 1) Reset Range
Store Base Price (Low or High)
Store Time
Reset Accumulated Buy/Sell Volume
● 2) Create Box
If i_show_volpower = true, the indicator creates the following:
● Bottom Area (item_bot)
Two types of buy boxes (outer and inner)
Two types of cell boxes (outer and inner)
Volume Ratio Label
Dotted Line (low_line)
● Top Area (item_top)
Two types of buy boxes (outer and inner)
Two types of cell boxes (outer and inner)
Volume Ratio Label
Dotted Line (high_line)
■ Box Expansion Logic (Accumulation Process)
New volumes are continuously added while the state remains unchanged, and the box width (right) automatically expands.
Cumulative Volume (total_vol)
Cumulative Buy/Sell Volume
Recalculated Percentage Ratio
Box expands based on updated percentage
Labels update their text and position in real time.
This structure visually compares how buy and sell volumes accumulate across the entire range.
■ Visual Components
● Box
Buy Box (based on i_buy_color)
Sell Box (based on i_sell_color)
Neutral tone applied to border or label text
Transparency can be adjusted via i_box_transp
● Label
Displays cumulative buy/sell volume percentages
Format: "buy(x) − y%", "sell(x) − y%"
Text color adjusts based on relative dominance.
● Line
Dotted reference lines anchored to high or low values
Helps visualize the structure of each observed range.
■ Input Parameters
Parameter Description
Buy/Sell Volume %: Enables volume-based box visualization.
Past: Determines whether previous boxes remain visible.
Box Size: Controls the vertical resizing of the box.
Buy/Sell/Neutral: Defines the color scheme for the volume areas.
Box Transparency: Controls the transparency of the box background.
■ Repaint Behavior
During live candles, volume accumulation and label updates may dynamically change.
However, confirmed historical candles are not recalculated or modified.
Box and label updates reflect ongoing range development, not redrawing completed data.
Box creation or deletion occurs only during state transitions, and previous results remain unchanged.
■ Purpose
Presents the cumulative volume distribution during strong directional phases.
Visualizes relative contributions within defined ranges.
Segments market behavior to identify structural changes.
■ Notes and Limitations
This indicator does not predict market direction or provide guaranteed results.
div_t is derived from the RSI and is not intended for overbought/oversold interpretation.
The volume distribution (vol_buy / vol_sell) is simplified and may not represent the full order flow details.
Excessive number of boxes/labels may result in reaching the object limit.
Box lengths and ratio labels may continue to update on real-time candlesticks until the range closes.
VWAP-Anchored MACD [BOSWaves]VWAP-Anchored MACD - Volume-Weighted Momentum Mapping With Zero-Line Filtering
Overview
The VWAP-Anchored MACD delivers a refined momentum model built on volume-weighted price rather than raw closes, giving you a more grounded view of trend strength during sessions, weeks, or months.
Instead of tracking two EMAs of price like a standard MACD, this tool reconstructs the MACD engine using anchored VWAP as the core input. The result is a momentum structure that reacts to real liquidity flow, filters out weak crossovers near the zero line, and visualizes acceleration shifts with clear, high-contrast gradients.
This indicator acts as a precise momentum map that adapts in real time. You see how weighted price is accelerating, where valid crossovers form, and when trend conviction is strong enough to justify execution.
It uses gradient line coloring to show bullish or bearish momentum, histogram shading to highlight energy shifts, cross dots to mark valid crossovers, optional buy/sell diamonds for execution cues, and candle coloring to display trend strength at a glance.
Theoretical Foundation
Traditional MACD compares the difference between two exponential moving averages of price.
This variant replaces price with anchored VWAP, making the calculation sensitive to actual traded volume across your chosen period (Session, Week, or Month).
Three principles drive the logic:
Anchored VWAP Momentum : Price is weighted by volume and aggregated across the selected anchor. The fast and slow VWAP-EMAs then expose how liquidity-corrected momentum is expanding or contracting.
Zero-Line Distance Filtering : Crossover signals that occur too close to the zero line are removed. This eliminates the common MACD problem of generating weak, directionless signals in choppy phases.
Directional Visualization : MACD line, signal line, histogram, candle colors, and optional diamond markers all react to shifts in VWAP-momentum, giving you a clean structural read on market pressure.
Anchoring VWAP to session, weekly, or monthly resets creates a systematic framework for tracking how capital flow is driving momentum throughout each trading cycle.
How It Works
The core engine processes momentum through several mapped layers:
VWAP Aggregation : Price × volume is accumulated until the anchor resets. This creates a continuous, liquidity-corrected VWAP curve.
MACD Construction : Fast and slow VWAP-EMAs define the MACD line, while a smoothed signal line identifies edges where momentum shifts.
Zero-Line Distance Filter : MACD and signal must both exceed a threshold distance from zero for a crossover to count as valid. This prevents fake crossovers during compression.
Visual Momentum Layers : It uses gradient line coloring to show bullish or bearish momentum, histogram shading to highlight energy shifts, cross dots to mark valid crossovers, optional buy/sell diamonds for execution cues, and candle coloring to display trend strength at a glance.
This layered structure ensures you always know whether momentum is strengthening, fading, or transitioning.
Interpretation
You get a clean, structural understanding of VWAP-based momentum:
Bullish Phases : MACD > Signal, histogram expands, candles turn bullish, and crossovers occur above the threshold.
Bearish Phases : MACD < Signal, histogram drives lower, candles shift bearish, and downward crossovers trigger below the threshold.
Neutral/Compression : Both lines remain near the zero boundary, histogram flattens, and signals are suppressed to avoid noise.
This creates a more disciplined version of MACD momentum reading - less noise, more conviction, and better alignment with liquidity.
Strategy Integration
Trend Continuation : Use VWAP-MACD crossovers that occur far from the zero line as higher-conviction entries.
Zero-Line Rejection : Watch for histogram contractions near zero to anticipate flattening momentum and potential reversal setups.
Session/Week/Month Anchors : Session anchor works best for intraday flows. Weekly or monthly anchor structures create cleaner macro momentum reads for swing trading.
Signal-Only Execution : Optional buy/sell diamonds give you direct points to trigger trades without overanalyzing the chart.
This indicator slots cleanly into any momentum-following system and offers higher signal quality than classic MACD variants due to the volume-weighted core.
Technical Implementation Details
VWAP Reset Logic : Session (D), Week (W), or Month (M)
Dynamic Fast/Slow VWAP EMAs : Fully configurable lengths, smoothing and anchor settings
MACD/Signal Line Framework : Traditional structure with volume-anchored input
Zero-Line Filtering : Adjustable threshold for structural confirmation
Dual Visualization Layers : MACD body + histogram + crosses + candle coloring
Optimized Performance : Lightweight, fast rendering across all timeframes
Optimal Application Parameters
Timeframes:
1- 15 min : Short-term momentum scalping and rapid trend shifts
30- 240 min : Balanced momentum mapping with clear structural filtering
Daily : Macro VWAP regime identification
Suggested Configuration:
Fast Length : 12
Slow Length : 26
Signal Length : 9
Zero Threshold : 200 - 500 depending on asset range
These suggested parameters should be used as a baseline; their effectiveness depends on the asset volatility, liquidity, and preferred entry frequency, so fine-tuning is expected for optimal performance.
Performance Characteristics
High Effectiveness:
Assets with strong intraday or session-based volume cycles
Markets where volume-weighted momentum leads price swings
Trend environments with strong acceleration
Reduced Effectiveness:
Ultra-choppy markets hugging the VWAP axis
Sessions with abnormally low volume
Ranges where MACD naturally compresses
Disclaimer
The VWAP-Anchored MACD is a structural momentum tool designed to enhance directional clarity - not a guaranteed predictor. Performance depends on market regime, volatility, and disciplined execution. Use it alongside broader trend, volume, and structural analysis for optimal results.
Momentum Candle by DNDFXMomentum Candle v2 is a simple yet powerful indicator designed to detect strong momentum candles based on candle body size and the ratio between the body and total wick.
This indicator is ideal for traders who focus on:
Momentum trading
Breakout strategies
XAUUSD (Gold) scalping
Supply & Demand / Smart Money Concepts (SMC) confirmation
🔧 How the Indicator Works
The indicator analyzes each candle and classifies it as a Bullish Momentum or Bearish Momentum candle when these conditions are met:
✅ The candle body exceeds the minimum size
✅ The total wick is smaller compared to the body
✅ The Body-to-Wick ratio meets the strength filter
Visual signals include:
Green background for bullish momentum
Red background for bearish momentum
Up/Down triangle markers as entry guidance
⚙️ Customizable Parameters
Min Body Size (Points) – Sets the minimum candle body size
Min Body : Wick Ratio – Controls how dominant the body is compared to the wicks
All parameters can be optimized according to your trading style and timeframe.
✅ Best Use Cases
This indicator is useful for:
Breakout confirmation
Momentum validation
Filtering false breakouts
Scalping and intraday trading on XAUUSD
🧠 Trading Tips
For better accuracy, combine this indicator with:
Support & Resistance
Supply & Demand zones
Break of Structure (BOS) / CHoCH
Best performance on M5 – H1 timeframes.
⚠️ DISCLAIMER
This indicator is a supporting tool, not a guaranteed profit system. Always apply proper risk management. You are fully responsible for your trading decisions.






















