SMC Confluence + EMA 9/15 + Fib 0.5Smart Money Concepts (SMC) Confluence Framework with Dual EMA & Equilibrium FilterExecutive SummaryThe SMC Confluence Framework is a multi-layered quantitative trading system engineered for Pine Script v6. It bridges the gap between retail momentum indicators and institutional order flow principles by deploying a strict algorithmic checklist. By cross-referencing Market Structure Shifts (CHoCH), Discount/Premium Pricing Zones, Imbalance Triggers (FVG), and Moving Average Crossovers, this tool completely eliminates emotional trading and filters out high-risk market noise.Technical Architecture & Core Modules1. Algorithmic Market Structure (CHoCH)Pivot Mechanism: Utilizes an optimized ta.pivothigh() and ta.pivotlow() matrix to isolate historical swing highs and lows, removing transient price action.Precision Visualization: Once a structural breakout occurs on a candle close, the script projects a mathematically precise, horizontal dashed vector exactly 1 bar forward ($1x$) along with an automated label alignment vector positioned cleanly underneath the break level.2. Dynamic Equilibrium Pricing Matrix (Fib 0.5)Equation Logic: Continuously solves for the central mathematical mean between active market extremes:$$\text{Equilibrium (Eq)} = \frac{\text{Swing High} + \text{Swing Low}}{2}$$Discount Phase (Buy Zone): Restricts long entries exclusively to price coordinates trading below the $0.5$ threshold, guaranteeing deep discount execution.Premium Phase (Sell Zone): Restricts short entries exclusively to price coordinates trading above the $0.5$ threshold, maximizing premium distribution value.3. High-Velocity Momentum Filter (Dual Exponential Moving Averages)9 EMA (Fast Velocity Vector): Visualized in high-visibility yellow, parsing immediate micro-trend direction.15 EMA (Slow Structural Vector): Visualized in crisp white, serving as dynamic trailing support and resistance.Trend Synchronization: Acts as a strict execution gatekeeper; long entries are blocked unless $\text{EMA 9} > \text{EMA 15}$, and short entries are blocked unless $\text{EMA 9} < \text{EMA 15}$.4. Institutional Liquidity & Imbalance EngineExecution triggers require a verified institutional footprint before generating a signal:Liquidity Hunting (Sweeps): Scans a historical 20-candle lookback window. Captures stop-run anomalies where price pierces structural liquidity extremes but forcefully closes back within the value range.Fair Value Gaps (FVG): Tracks displacement imbalances caused by institutional algorithmic orders, looking for unmitigated three-candle price gaps where $\text{Low} > \text{High} $ (Bullish) or $\text{High} < \text{Low} $ (Bearish).Strict Confluence Matrix (Execution Rules)🟢 System Buy Trigger (Confirmed Long)An execution-grade BUY Triangle prints if and only if the following logical constraints return true:Trend Orientation: Active bias is structural upside ($\text{Trend} = 1$) verified by a Bullish CHoCH.Pricing Efficiency: The execution candle is positioned firmly within the Discount Zone ($\text{Close} < \text{Eq}$).Velocity Confirmation: The fast exponential trend vector is above the slow vector ($\text{EMA 9} > \text{EMA 15}$).Institutional Footprint: A verified internal Bullish FVG or a successful demand-side Liquidity Sweep occurs.🔴 System Sell Trigger (Confirmed Short)An execution-grade SELL Triangle prints if and only if the following logical constraints return true:Trend Orientation: Active bias is structural downside ($\text{Trend} = -1$) verified by a Bearish CHoCH.Pricing Efficiency: The execution candle is positioned firmly within the Premium Zone ($\text{Close} > \text{Eq}$).Velocity Confirmation: The fast exponential trend vector is below the slow vector ($\text{EMA 9} < \text{EMA 15}$).Institutional Footprint: A verified internal Bearish FVG or a successful supply-side Liquidity Sweep occurs.Performance & Configuration NotesArchitectural Standard: Fully compiled in Pine Script v6 utilizing optimized object variable allocation to ensure lag-free rendering.Optimized Timeframes: Highly accurate on structural macro/micro intraday intervals ($5\text{m}$, $15\text{m}$, $1\text{h}$).Asset Compatibility: Built for high-liquidity environments including Major Fiat Pairs (FX), Crypto Majors (BTC, ETH), Spot Gold (XAUUSD), and Equity Index Derivatives (SPX, NDX Indicator

Institutional Flow & Liquidity Standard Matrix PROInstitutional Flow & Liquidity Standard Matrix PRO
Institutional Flow & Liquidity Standard Matrix PRO is a clean, quantitative technical analysis script designed for professional traders, technical analysts, and institutional strategy building. It removes superficial chart clutter and replaces it with actionable structure tracking, daily liquidity boundaries, volatility standard deviation bands, and custom execution zones.
Key Features Overview
1. Precision Market Structure Tracking (HH, HL, LH, LL)
Maps valid market structure pivots with Higher High (HH), Higher Low (HL), Lower High (LH), and Lower Low (LL) markers. Includes an independent customization panel to toggle label text, adjust font sizes, background colors, and text colors.
2. Previous Day Liquidity Levels (PDH & PDL)
Projects key daily reference lines for Previous Day High (PDH) and Previous Day Low (PDL) automatically anchored off price action without interfering with historical candles.
3. Standard Deviation Volatility Bands
Features volatility extension bands based on standard deviation logic to isolate statistical overbought and oversold price expansion extremes.
4. Dual Moving Average Trend Alignment
Incorporates a fast and slow moving average framework that aligns price candlesticks dynamically based on macro order flow bias. Downward market trends render in clean solid red shades.
5. Customizable Execution Rectangle Zones
Maps key structural supply and demand rectangles with full manual controls over border colors, border thickness, fill transparency, and zone placement.
Settings Overview
Previous Day Liquidity Settings
- Show Previous Day High & Low: Toggle PDH and PDL reference levels.
- Line Customization: Adjust line style (Solid, Dashed, Dotted), thickness, and colors.
Swing Structure Settings
- Show Structure Labels: Toggle HH, HL, LH, and LL swing markers.
- Show Label Text: Check or uncheck to hide text while keeping clean background badges.
- Colors & Font Size: Adjust background colors, text colors, and font sizes.
Standard Deviation Settings
- Show Standard Deviation Bands: Toggle volatility bands.
- Multipliers & Width: Adjust band multiplier sensitivity and line thickness.
Execution Zone Settings
- Show Structure Execution Zones: Toggle supply and demand boxes.
- Border & Transparency: Customize fill opacity, border width, and border colors.
Disclaimer
This script is built strictly for educational, analytical, and charting enhancement purposes. It does not provide financial advice, trade recommendations, or guaranteed results. Always practice proper risk management. Indicator

Indicator

Keep It Simple**Keep It Simple — dominant market force in one glance**
The main goal of this indicator is to show which force is dominant on each candle, through a colored EMA cloud and an intuitive color code. The Bollinger Bands help you read whether volatility is expanding or contracting, and the thickness of the short moving-average line tells you whether a trend exists and whether it is gaining force or not.
A simplified read of structure and direction in a single overlay:
- **Bollinger Bands** (length 21 · deviation 1.3 · EMA basis) with a blue cloud between them — the price "territory". Band lines can stay hidden; the cloud alone keeps the read clean.
- **Short EMA (8)** — the direction line; its thickness increases as the trend gains force (thickness driven by ADX plus a short range index, and only while that force is rising).
- **Long EMA (21)** — hidden by default (toggle-able); it always feeds the state color.
- **Cloud between the EMAs**, painted in the color of the current market state.
**How to read the colors (market state · EMAs and cloud):**
- Green — full up (price above EMA 8 · EMA 8 above EMA 21)
- Blue — pullback in an uptrend (price below EMA 8 · EMA 8 above EMA 21)
- Gray — neutral / transition
- Purple — pullback in a downtrend (price above EMA 8 · EMA 8 below EMA 21)
- Red — full down (price below EMA 8 · EMA 8 below EMA 21)
**Why combine these three?** Bands alone tell you *where* price is working; a plain moving average tells you *which way*; neither tells you *how strong* or *what regime*. Here they are wired together: the bands/cloud give the territory and its volatility, the thick colored short EMA gives direction plus strength in one line, and the shared state color ties price, short EMA and long EMA into a single regime read — so one glance answers where price is, which way it leans, and how strong that lean is.
Open-source and fully commented, so you can see exactly how each part is computed and adapt it.
Success to all,
Fabio Maistro Indicator

Paul Crow Market Compass Combo v1.0.0Paul Crow Market Compass Combo (v1.0.0-rc1)
Overview
The Paul Crow Market Compass Combo is a comprehensive, multi-module technical analysis environment designed to aggregate trend, momentum, strength, volatility, and volume into a unified market canvas. Operating entirely directly on the main chart area (overlay = true), this tool employs dynamically scaled visual sub-panels to present classic secondary oscillators (RSI, MACD, ADX) without flattening the price action or warping the primary scale.
Rather than generating rigid buy or sell alerts, the script acts as an analytical framework—evaluating data across 6 discrete modules to deliver an objective technical summary via a real-time dashboard.
Core Architecture & Modules
1. Trend Module (EMA Cascade)
Computes three distinct Exponential Moving Averages (Fast, Medium, Slow — e.g., 20/50/200).
Evaluates trend state based on three vectors: absolute price position relative to the cascade, moving average alignment (bullish/bearish stack), and the directional slope over an adjustable lookback window.
Classifies the trend into 5 stages: Strong Bullish, Bullish, Neutral/Transitional, Bearish, and Strong Bearish.
2. Momentum Module (Compact RSI)
Plots a dynamically positioned, non-disruptive RSI band at the lower threshold of the visible price range.
Tracks standard overbought/oversold levels alongside configurable bullish and bearish continuation thresholds.
3. Oscillator Module (Compact MACD)
Projects the MACD Line, Signal Line, and Histogram onto an automated, bounded sub-band.
Gauges the convergence/divergence of momentum relative to both the signal line and the zero-axis baseline.
4. Strength Module (ADX / DMI)
Quantifies trend strength using the Average Directional Index (ADX) and establishes directional dominance via +DI and -DI.
Features an adjustable minimum separation filter to mitigate whipsaws and false crossings in low-liquidity environments.
5. Volatility Module (ATR Percent Rank)
Evaluates current market volatility using the Average True Range (ATR) calculated as a percentage of price.
Compares the current value against its own historical profile using a percentile rank (0–100%) over a multi-bar lookback window, classifying volatility into Low, Normal, High, or Extreme regimes.
6. Volume Module (RVOL & OBV Dynamics)
Computes Relative Volume (RVOL) against a rolling baseline average.
Evaluates the directional slope of the On-Balance Volume (OBV) EMA to verify if institutional liquidity is actively validating or diverging from the prevailing price action.
Key Technical Features
Geometric Visible Range Scaling: Uses geometric interpolation to ensure sub-panels retain perfect proportions, even on long-term macro charts or log-scaled views.
Pro vs. Simple Dashboard Configurations: Switch between a lightweight multi-category overview or an exhaustive technical telemetry layout detailing exact conditions.
Synthetic Chart Warnings: Detects and flags non-standard chart types (Heikin Ashi, Renko, Kagi) where synthetic OHLC pricing could distort real-world data points.
Granular Script Performance Controls: Features performance profiles (Light, Balanced, Precise) allowing users to adjust the rendering density of visual components to save local hardware resources.
Robust Multi-Condition Alert Matrix: Features decoupled descriptive alert triggers monitoring overall market picture alignment, trend/momentum confluence, sudden volatility shifts, and volume confirmations.
Disclaimer
This indicator is designed purely for educational and analytical purposes. It provides a structured summary of classic mathematical indicators and does not constitute financial advice, trade recommendations, or automated execution systems.
Indicator

Indicator

Multi EMA Ribbon (8 Lines) - Style Zone & Labels### Overview
The **Multi EMA Ribbon (8 Lines) with Trend Dashboard** is an all-in-one trend analysis tool designed to give traders both visual chart intuition and real-time quantitative metrics.
By combining an 8-period Exponential Moving Average (EMA) ribbon with a real-time status dashboard, this script helps you quickly identify trend directions, momentum shifts, volatility squeezes, and dynamic support/resistance levels without cluttering your chart.
---
### Key Features
* **8 Fully Customizable EMAs:** Pre-configured with widely used default lengths (10, 20, 50, 100, 200, 400, 600, 800) to cover micro-scalping up to macro-trend levels.
* **Integrated Real-time Dashboard Table:**
* Displays exact price levels for all 8 EMAs.
* Shows real-time status (`BULL 🠅` or `BEAR 🠇`) based on price position relative to each EMA.
* Features an **Overall Trend Score** (e.g., 8/8 Bull = Strong Trend) for instant high-level bias confirmation.
* Fully customizable position (Top Right, Bottom Left, etc.) and text size.
* **Visual Fill Zones (Ribbon Effect):** Smooth background fills between adjacent EMAs allow you to instantly spot trend expansion, compression (squeezes), and reversals.
* **Fully Configurable in Style Tab:** All filled background zones are native plots, meaning you can toggle them individually or adjust their colors and transparency directly in the "Style" settings.
* **Clean & Dynamic Labels:** Clean numerical period tags project to the right of the current bar (with adjustable offset) to keep the chart clutter-free.
---
### How to Use
#### 1. Visual Chart Ribbon Analysis
* **Bullish Alignment:** When shorter EMAs (10, 20) are layered above longer EMAs (200, 800) and expanding outward, the market is in a strong uptrend.
* **Bearish Alignment:** When shorter EMAs are layered below longer EMAs, the market is in an established downtrend.
* **Compression / Squeeze:** When EMA lines converge tightly, volatility is dropping—often signaling an impending breakout.
* **Dynamic Support/Resistance:** During pullbacks in strong trends, price often tests specific EMA zones (e.g., EMA 20–50 or EMA 200) before resuming the primary trend.
#### 2. Dashboard Table
* **Quick Health Check:** Look at the **Overall Score** row at the bottom of the table:
* **6/8 to 8/8 Bullish (`STRONG`):** High probability long conditions / strong uptrend momentum.
* **0/8 to 2/8 Bullish (`WEAK`):** High probability short conditions / strong downtrend momentum.
* **3/8 to 5/8 (`MIXED`):** Consolidation, choppy market, or transition period.
---
### Inputs & Configuration
* **EMA Settings (Length and Color):** Adjust individual lengths, visibility, and line colors.
* **Display Settings:**
* `Show discreet EMA labels on the right`: Toggle right-side period tags.
* `Label offset to the right (bars)`: Adjust spacing of labels from the last bar.
* `Price Source`: Choose price input (Default: `Close`).
* **Dashboard Table Settings:**
* `Show EMA Dashboard Table`: Enable or disable the table.
* `Table Position`: Choose screen alignment (Top Right, Bottom Right, Top Left, Bottom Left).
* `Table Size`: Select display size (Tiny, Small, Normal).
---
### Disclaimer
This script is created for educational and analytical purposes only. Moving averages are lagging indicators and should always be combined with proper risk management, market structure, and volume analysis. Indicator

TRADION Gaussian Trend EngineTRADION Gaussian Trend Engine
OVERVIEW
TRADION Gaussian Trend Engine is a multi-factor trend analysis framework designed to evaluate market direction, trend strength, momentum alignment and volatility within a unified model.
The indicator is built around an independently implemented multi-pole Gaussian cascade. Instead of using Gaussian direction alone as a trading signal, the engine evaluates several additional dimensions of market behavior before qualifying a directional transition.
The framework combines:
• Configurable multi-pole Gaussian smoothing
• ATR-normalized Gaussian slope
• Price displacement from the Gaussian baseline
• RSI momentum analysis
• Rate of Change (ROC)
• A composite 0–100 Trend Strength Score
• Volatility-adaptive trend ribbons
• Three-level BUY / SELL classification
• Confirmed-bar signal generation
• Dedicated PulseWire alerts
The design objective is selective trend qualification rather than generating a signal on every minor directional fluctuation.
────────────────────────────
GAUSSIAN TREND ENGINE
────────────────────────────
The core of the indicator is a configurable multi-pole Gaussian cascade.
The user can control two primary parameters:
Gaussian Period:
Controls the smoothing horizon of the filter.
Gaussian Poles:
Controls the number of sequential Gaussian smoothing stages used by the engine, from 1 to 6.
Each additional pole applies another stage of Gaussian smoothing to the previous output.
This architecture provides a configurable balance between responsiveness and noise reduction.
The final output of the selected pole becomes the Gaussian trend baseline used by the rest of the engine.
────────────────────────────
TREND DIRECTION
────────────────────────────
Directional state is determined from the slope of the Gaussian baseline.
When the current Gaussian value is above its previous value, the engine identifies a bullish directional state.
When the current Gaussian value is below its previous value, the engine identifies a bearish directional state.
The Gaussian line changes dynamically:
Green = Bullish Gaussian direction
Red = Bearish Gaussian direction
An unchanged Gaussian value preserves the previous directional state.
────────────────────────────
VOLATILITY NORMALIZATION
────────────────────────────
Raw price movement has different significance across instruments and volatility regimes.
For this reason, ATR is used as a normalization reference within the engine.
Two important measurements are normalized relative to ATR:
• Gaussian slope magnitude
• Distance between price and the Gaussian baseline
This allows the strength model to evaluate movement relative to current market volatility rather than relying only on absolute price changes.
────────────────────────────
TREND STRENGTH SCORE
────────────────────────────
TRADION Gaussian Trend Engine calculates a composite Trend Strength Score ranging from 0 to 100.
The score combines four normalized components:
1. Gaussian Slope Strength — 40%
2. Price Distance from Gaussian — 20%
3. RSI Momentum Intensity — 25%
4. ROC Magnitude — 15%
Gaussian Slope Strength measures the magnitude of directional movement in the Gaussian baseline relative to ATR.
Price Distance measures the absolute displacement of price from the Gaussian baseline relative to ATR.
RSI Momentum Intensity measures the distance of RSI from its neutral 50 level.
ROC Magnitude measures the absolute velocity of price movement.
Each component is normalized before being incorporated into the final weighted score.
The result is a single 0–100 metric designed to describe the degree of agreement between trend movement, price expansion and momentum.
────────────────────────────
MOMENTUM CONFIRMATION
────────────────────────────
Momentum confirmation can be enabled or disabled by the user.
For bullish confirmation, the default model requires:
• RSI above 50 plus the selected Neutral Zone
• Positive ROC
For bearish confirmation, it requires:
• RSI below 50 minus the selected Neutral Zone
• Negative ROC
This layer prevents every Gaussian slope change from automatically qualifying as a BUY or SELL event.
The RSI Neutral Zone is configurable, allowing the user to control how much momentum separation is required around the RSI 50 equilibrium level.
────────────────────────────
DIRECTIONAL QUALIFICATION
────────────────────────────
A qualified bullish setup requires:
• Rising Gaussian direction
• Price above the Gaussian baseline
• Valid bullish momentum when momentum confirmation is enabled
• Trend Strength above the configured minimum threshold
A qualified bearish setup requires:
• Falling Gaussian direction
• Price below the Gaussian baseline
• Valid bearish momentum when momentum confirmation is enabled
• Trend Strength above the configured minimum threshold
This means that Gaussian direction, price structure, momentum and trend strength are evaluated together before a directional event is accepted.
────────────────────────────
THREE-LEVEL SIGNAL CLASSIFICATION
────────────────────────────
Qualified transitions are classified according to their Trend Strength Score.
Bullish classifications:
BUY
STRONG BUY
EXTREME BUY
Bearish classifications:
SELL
STRONG SELL
EXTREME SELL
The default thresholds are:
Minimum Signal Strength: 25
Strong Signal Threshold: 55
Extreme Signal Threshold: 75
These thresholds are fully configurable.
A standard signal represents a qualified directional transition below the Strong threshold.
A STRONG signal represents a transition whose Trend Strength reaches the Strong threshold.
An EXTREME signal represents a transition whose Trend Strength reaches the highest configured classification threshold.
These labels describe the strength of the conditions detected by the model. They are not predictions of future returns.
────────────────────────────
CONFIRMED-BAR SIGNAL ENGINE
────────────────────────────
Signal generation uses confirmed-bar logic.
A new directional signal is accepted only when the current chart bar is confirmed.
This prevents temporary intrabar conditions from being treated as completed signals before the candle closes.
The engine also maintains directional signal state.
Once a bullish signal has been generated, another bullish signal is not repeatedly produced while the signal state remains bullish.
A new bullish event becomes possible after the engine has transitioned through the opposite qualified state, and vice versa.
This creates cleaner transition-based signal behavior.
────────────────────────────
VOLATILITY-ADAPTIVE TREND RIBBON
────────────────────────────
The trend ribbon provides a visual representation of directional state and adaptive market conditions.
Its base width is calculated using ATR.
The final ribbon width also incorporates the current Trend Strength Score.
As calculated trend strength increases, the ribbon can expand according to the user-defined Trend Strength Width Effect.
During bullish states, the ribbon is positioned below the Gaussian baseline.
During bearish states, the ribbon is positioned above the Gaussian baseline.
The ribbon consists of multiple visual layers, creating a clear distinction between the Gaussian baseline and the outer volatility-adjusted trend zone.
This makes direction and changes in trend intensity easier to interpret directly from the chart.
────────────────────────────
VISUAL INTERPRETATION
────────────────────────────
GREEN GAUSSIAN / GREEN RIBBON
The Gaussian baseline is rising and the engine is operating in a bullish directional regime.
RED GAUSSIAN / RED RIBBON
The Gaussian baseline is falling and the engine is operating in a bearish directional regime.
BUY / SELL
A new directional setup has passed the minimum qualification requirements.
STRONG BUY / STRONG SELL
A qualified transition has reached the configured Strong Trend Strength threshold.
EXTREME BUY / EXTREME SELL
A qualified transition has reached the configured Extreme Trend Strength threshold.
────────────────────────────
USER CONTROLS
────────────────────────────
Gaussian Engine:
• Source
• Gaussian Period
• Gaussian Poles
Momentum Confirmation:
• Enable / Disable Momentum Confirmation
• RSI Period
• ROC Period
• RSI Neutral Zone
Trend Strength:
• ATR Period
• Gaussian Slope Sensitivity
• Price Distance Sensitivity
• Minimum Signal Strength
• Strong Signal Threshold
• Extreme Signal Threshold
Adaptive Trend Ribbon:
• Show / Hide Adaptive Trend Ribbon
• Ribbon ATR Width
• Trend Strength Width Effect
Visual Settings:
• Show Trading Signals
• Color Price Bars
• Show Gaussian Trend Line
────────────────────────────
ALERTS
────────────────────────────
Six dedicated PulseWire alert conditions are included:
• TRADION BUY
• TRADION STRONG BUY
• TRADION EXTREME BUY
• TRADION SELL
• TRADION STRONG SELL
• TRADION EXTREME SELL
This allows each signal classification to be monitored independently.
────────────────────────────
PRACTICAL USE
────────────────────────────
TRADION Gaussian Trend Engine can be used as:
• A directional trend filter
• A trend-strength visualization tool
• A momentum-confirmed transition detector
• A volatility-adaptive trend framework
• A confirmation layer for discretionary analysis
• An alert-based trend monitoring system
Because sensitivity depends on the selected parameters, instrument and timeframe, users should evaluate settings according to their own methodology.
Higher sensitivity may detect directional changes earlier but can increase exposure to market noise.
Greater smoothing and higher qualification thresholds can reduce signal frequency but may identify transitions later.
────────────────────────────
DESIGN PHILOSOPHY
────────────────────────────
The central idea behind TRADION Gaussian Trend Engine is that trend direction alone provides incomplete information.
A rising filter does not necessarily represent a strong trend.
For this reason, the engine evaluates four questions:
1. What direction is the Gaussian structure moving?
2. How significant is that movement relative to volatility?
3. Is price positioned consistently with that direction?
4. Does momentum support the directional structure?
The Trend Strength model then measures the degree of alignment between these components.
This creates a unified framework for analyzing direction, momentum, volatility and trend intensity rather than treating each component as an isolated indicator.
────────────────────────────
IMPORTANT NOTES
────────────────────────────
TRADION Gaussian Trend Engine is an analytical indicator, not a strategy and not a prediction system.
BUY, STRONG BUY, EXTREME BUY, SELL, STRONG SELL and EXTREME SELL labels represent mathematical classifications produced by the indicator's current conditions.
They do not guarantee future price direction, profitability or trade outcomes.
Signals are confirmed at bar close, but confirmed-bar processing does not eliminate normal market risk or signal lag.
Users should independently evaluate the indicator and apply appropriate risk management.
For research and educational purposes. Indicator

Indicator

Top Dog Energy Matrix Trading System// =============================================================================
// TOP DOG ENERGY MATRIX - TABLE GUIDE & METHODOLOGY
// =============================================================================
// Summarizes the Top Dog energies (Barry Burns method) across 5 timeframes at
// once: 1D / 4H / 1H / 15m / 5m. Each ROW is a timeframe and computes its own
// indicators in its own timeframe.
// READ IT: top -> bottom (slow/dominant -> fast/execution)
// left -> right (cycle -> entry signal)
// =============================================================================
//
// -----------------------------------------------------------------------------
// 1. COLUMNS (what each one means)
// -----------------------------------------------------------------------------
// TF Timeframe of the row (1D/4H/1H/15m/5m). Top rules: 1D & 4H set
// the bias, 1H & 15m fine-tune, 5m executes.
//
// Ciclos Cycle count within the trend: "previous / new" (e.g. 5 / 2).
// +1 each time %D crosses the 50 level. Resets to 0 when trend
// flips (15EMA vs 50SMA), saving the prior count.
// 1-2 = early (trade zone). 5-7 = extended (caution, near end).
// Teal bg = %D rising, red = falling.
//
// C.M "Cycle Momentum": live %D value vs 50 + direction (U/D/=).
// e.g. "62 U". Read the trajectory (50->55->60 = rising).
// Blue if %D>50, yellow at 50, red if <50.
//
// Momentum Momentum (MACD/MOM) direction: UP / DOWN / PLANO.
// PLANO = histogram below 70% of its own average.
// UP=teal (bullish), DOWN=red (bearish), PLANO=gray (no energy).
//
// ATR Relative volatility vs its own 50-bar avg: ALTA/NORM/BAJA.
// ALTA(orange)=big candles, more risk+range. BAJA(faint blue)=
// tight market. NORM(gray)=normal.
//
// Vol Volume vs its own 50-bar avg: ALTA/NORM/BAJA (same colors as
// ATR). ALTA=conviction behind the move. BAJA=few participating
// (suspicious, more likely to fail).
//
// Divergencias Stochastic divergence in that TF: direction + strength.
// UP FUERTE (solid lime) = %K AND %D diverge = most reliable.
// UP debil (faint lime) = %K only = early.
// DN debil (faint red) = bearish %K only.
// DN FUERTE (solid red) = bearish %K AND %D.
// "-" (gray) = none. UP=possible bottom, DN=possible top.
//
// Trend/ADX Trend (15EMA vs 50SMA): ALCISTA/BAJISTA + ADX value beside it
// (e.g. "ALCISTA 32"). Teal=bull, red=bear. ADX = STRENGTH only
// (>25 solid, <20 weak/ranging), NOT direction.
//
// Estado Do cycle & momentum of that TF agree?
// ALINEADO(green)=yes, onside. MIXTO(orange)=disagree.
// PLANO(gray)=no momentum.
//
// Gatillo Entry signal - only meaningful on the 5m row.
// ARMADO = hook fired, waiting for the break.
// LONG/SHORT (teal/red) = fired with 15m aligned.
// DEBIL (blue) = fired but 15m not backing it = lower quality.
// "-" = nothing.
//
// -----------------------------------------------------------------------------
// 2. COLORS AT A GLANCE (background tells you the state)
// -----------------------------------------------------------------------------
// Green/Teal bullish / TF aligned / LONG
// Red bearish / SHORT / strong bearish divergence
// Blue C.M %D>50 | Gatillo DEBIL
// Orange ATR/Vol ALTA | Estado MIXTO
// Yellow C.M right at 50 (decision zone)
// Faint gray neutral: NORM / PLANO / no signal
// (ATR and Vol share identical colors: same state = same color.)
//
// -----------------------------------------------------------------------------
// 3. METHODOLOGY (step by step)
// -----------------------------------------------------------------------------
// GOLDEN RULE: the higher timeframe rules. Never trade against 1D/4H just
// because the 5m looks good. This table is a CONFLUENCE MAP - it tells you
// WHETHER to trade, in WHICH direction, and if it's a good MOMENT.
//
// Step 1 BIAS (1D & 4H): read Trend/ADX + Estado. Both ALCISTA/ALINEADO ->
// longs only. Both BAJISTA -> shorts only. Contradicting or ADX<20 ->
// weak bias, wait. Lower TFs do NOT change this direction.
//
// Step 2 NOT LATE? (Ciclos on 1H & 4H): count 1-2 = early = ideal.
// Count 5-7 = extended -> caution, Indicator

Indicator

Median Deviation Anchor | TR🎯 Overview
Median Deviation Anchor | TR is a trend‑detection oscillator that uses a percentile‑based median of a chosen moving average as its central anchor. It measures price deviation relative to this median, scaled by ATR bands and standard deviation zones, to generate bullish/bearish signals. The oscillator is smoothed, normalized, and presented with rich visual feedback including gradient candles, dynamic fills, reversal markers, and a persistent trend table. It’s designed to capture trend strength and reversals with a robust statistical foundation.
⚙️ Core Calculations
1. Moving Average Baseline
The indicator first computes a moving average of the Source (default close) using one of 13 moving average types (EMA, SMA, RMA, WMA, VWMA, HMA, DEMA, TEMA, TRIMA, FRAMA, SWMA, ALMA, T3).
User‑adjustable: Length (default 8), Factor/Sigma for ALMA/T3.
2. Median Anchor
Median_Val = ta.percentile_nearest_rank(MA, Median_Length, Median_per)
– This returns the value at the given percentile (default 50ᵗʰ percentile, i.e., the median) of the MA over Median_Length (default 61) bars.
→ This median acts as the dynamic “center” of the trend.
3. Deviation Bands (Upper/Lower Anchors)
ATR Band (based on ta.atr(ATR_Length)):
Upper_ATR = Median_Val + ATR_Mult * ATR
Lower_ATR = Median_Val - ATR_Mult * ATR
Standard Deviation Band (based on ta.stdev(Median_Val, Length_SD)):
SD_L = Median_Val + ST_Dev (upper +1σ)
SD_S = Median_Val - ST_Dev (lower -1σ)
4. Raw Oscillator (rawOsc)
Two conditions decide the raw value:
Bullish condition (L_Bull_MDA): (Source > Lower_ATR) and (Source >= SD_L)
Then bullForce = (Source - Median_Val) / (Median_Val - Lower_ATR) * 100
→ positive values (0 to +∞)
Bearish condition (S_Bear_MDA): (Source < Upper_ATR) and (Source <= SD_S)
Then bearForce = (Source - Median_Val) / (Upper_ATR - Median_Val) * 100
→ negative values (0 to –∞)
Otherwise rawOsc = 0.
5. Smoothing & Clamping
oscValue = ta.ema(rawOsc, smoothOsc) (user‑defined smoothOsc length, default 5).
osc = math.min(math.max(oscValue, -2000), 2000) – clamps extreme values.
📊 Normalisation & Dynamic Styling
Momentum for Fill Transparency:
absOsc = math.abs(osc) → maxAbsOsc = ta.highest(absOsc, 50) → normalised normAbsOsc → Fill_Transp_OSC = int(math.max(0, math.min(100, 35 - (normAbsOsc * 25))))
→ higher oscillator magnitude ⇒ less transparency (more vivid fills).
Gradient Coloring for Candles:
oscNorm is re‑scaled over the last 50 bars to → candle color interpolates between DnC (bearish) and UpC (bullish) using color.from_gradient.
Color Themes: 9 predefined schemes (Classic, Modern, Heat, Robust, Accented, Monochrome, Moderate, Aqua, Cosmic) with custom bullish/bearish colours.
📈 Signal System
1. Trend Determination (Trend_MDA)
Bullish when osc > Upper_Band (user‑defined Long Threshold, default 50). Sets Trend_MDA = 1.
Bearish when osc < Lower_Band (user‑defined Short Threshold, default -50). Sets Trend_MDA = -1.
Otherwise holds previous value.
2. Reversal Signals (plot as triangles)
Bullish Reversal (reversalBull): Trend_MDA == 1 and Trend_MDA == -1 → green triangle below bar.
Bearish Reversal (reversalBear): Trend_MDA == -1 and Trend_MDA == 1 → red triangle above bar.
3. Alerts (4 conditions)
Bullish MDA – triggered when isBull_MDA (osc > Upper_Band)
Bearish MDA – triggered when isBear_MDA (osc < Lower_Band)
Bullish Cross – ta.crossover(osc, 0)
Bearish Cross – ta.crossunder(osc, 0)
🎨 Visual Features
Trend Table Displays “⬆️ Bullish” or “⬇️ Bearish” (or “➖ Neutral”)
📖 Interpretation Guide
Positive values (osc > 0) indicate price is above the median anchor (bullish bias).
Negative values (osc < 0) indicate price below the median (bearish bias).
Crossing ±50 (default thresholds) signals a confirmed trend change (bullish >50, bearish < -50).
Crossing zero may be used as an early warning of trend shift (alerts available).
Reversal triangles appear when the oscillator crosses a threshold in the opposite direction after being in the other regime – these are potential entry/exit signals.
The dynamic fill transparency highlights momentum: intense colour = strong price deviation.
🚨 Alert Summary
Four alert conditions are ready for automation:
Bullish MDA – enters long zone (osc > Upper_Band)
Bearish MDA – enters short zone (osc < Lower_Band)
Bullish Cross – oscillator crosses above zero
Bearish Cross – oscillator crosses below zero
All alerts can be enabled via the PulseWire alerts panel. Indicator

Indicator

Indicator

TDVW Momentum Levels v3TDVW Momentum Levels v2 — Volume & Trend-Confirmed Trading Zones
A precision toolkit for momentum and scalping traders that filters out noise before it reaches your chart.
📊 WHAT IT SHOWS
✅ EMA Ribbon (9/21/50/100/200) — instant trend read at a glance
✅ VWAP — the institutional benchmark line
✅ Supply & Demand Zones — confirmed, not raw pivots
✅ Volatility-Adaptive Entry, Stop, Target 1 & Target 2
✅ Clean summary table — all key levels in one glance, top-right corner
🔍 ORIGINALITY — HOW THIS DIFFERS FROM A STANDARD PIVOT/ATR SCRIPT
Most zone-detection scripts plot every raw pivot high/low, producing dozens of levels most of which are noise. This script only confirms a zone when TWO independent conditions align: (1) the pivot bar's volume exceeds its rolling average by a configurable multiplier, and (2) the zone is not counter to the current EMA trend direction (e.g. a supply zone is discarded while the market is in a confirmed uptrend). This cross-filter removes low-conviction levels that a raw pivot detector would otherwise plot.
The Entry/Stop/Target system is volatility-adaptive rather than fixed: it compares the current ATR reading against its own historical average (50-bar baseline) and scales the stop/target multipliers up or down accordingly. In a high-volatility regime, target distances automatically widen; in a quiet market, they compress. The live "Volatility×" reading in the summary table shows this factor directly.
🎯 BUILT FOR MOMENTUM & SCALPING
Designed for traders working fast-moving, low-float stocks, where fixed-percentage or fixed-ATR tools often place targets too tight (choppy markets) or too far (quiet markets) because they don't adapt to changing volatility.
⚙️ HOW TO USE
1. Add to any chart, any timeframe
2. Watch for EMA alignment (9 > 21 > 50) confirming trend direction
3. Only confirmed Supply/Demand zones (labeled "Vol+Trend Confirmed") are plotted — raw unconfirmed pivots are filtered out
4. Use the Entry/Stop/Target table for a volatility-adjusted trade plan
5. Adjust Volume Multiplier, ATR Length, and Base ATR multipliers in settings to match your risk tolerance and the instrument's typical volatility
⚠️ Educational tool only. Not financial advice. Always manage your own risk. Indicator

Indicator

Indicator

Multi Moving Average 5 MA MTF & Chart Type IndependentMulti Moving Average (5 MA) — MTF & Chart-Type Independent
Five fully independent moving averages in one indicator, built to solve two problems most MA scripts get wrong.
1. Heikin Ashi doesn't distort your averages.
Every MA is calculated from the underlying standard candlestick OHLC, regardless of what the chart is set to. Switch between Candles, Heikin Ashi, Renko, Kagi, Line Break or Range — the lines stay exactly where they were. You get HA's visual smoothing for reading trend, while your 50 EMA remains the real 50 EMA everyone else is watching. A toggle lets you revert to chart-native data if you prefer.
2. Each MA gets its own timeframe.
Not one global MTF setting — five separate ones. Run a 5-min 9 EMA, a 1-hour 21 EMA and a Daily 200 SMA together on a single intraday chart to see exactly where the higher-timeframe levels sit while you execute. Blank = chart timeframe.
Also inside
12 MA types per line: SMA, EMA, WMA, RMA/SMMA, HMA, VWMA, DEMA, TEMA, TMA, LSMA, ALMA, Median
Independent source per MA (open/high/low/close/hl2/hlc3/ohlc4/hlcc4), length, colour and width
Non-repainting by design (lookahead_off), with an optional "confirmed HTF only" mode that waits for the higher-timeframe bar to close
8 built-in alerts — price crossing MA1/MA2, MA1×MA2, and MA2×MA5 golden/death cross — all referenced to standard-candle closes so they fire identically on a Heikin Ashi chart
On-chart info table showing each MA's type, length, timeframe and live value
A technical note: all MA variants are computed on every bar before the type is selected. Calling ta.* functions inside conditional branches silently corrupts their history — a bug present in a surprising number of published multi-MA scripts. This one avoids it.
Free and open source. Feedback and suggestions welcome. Indicator

SMA 10/20 Cross & TrailTwo SMAs with crossover and trail-break signals, plus ATR context that tells you whether a signal is a real trend turn or just two lines grinding together.
Most 10/20 moving-average tools give you a cross and nothing else. The
problem is that a cross tells you a regime already changed — by then price
has been below the fast MA for a while — and it gives you no way to tell a
decisive turn apart from two lines chopping around each other in a range.
This script addresses both.
WHAT IT PLOTS
- Two configurable MAs (default SMA 10 and SMA 20; SMA/EMA/WMA/RMA available)
- Shaded fill between them, tinted by which side the fast MA is on, so
regime state is readable at a glance without hunting for the last marker
- Cross markers when the fast MA crosses the slow MA
- Trail-break markers when PRICE closes through either MA — the earlier
warning, and the signal that actually matches how a moving average gets
used as a trailing stop. X = fast MA, circle = slow MA.
- A corner table showing current MA separation in ATR, the regime state
(ENTANGLED / SEPARATING / TRENDING), the strength of the last completed
leg, and where price sits relative to each MA in ATR terms
THE ATR LAYER
Every cross is labelled with how far apart the MAs got during the leg that
just ended, measured in ATR. A cross printing 1.20x means the averages
genuinely separated and have now reversed. A cross printing 0.15x means they
never separated at all and you are looking at noise. Same marker either way —
the number is what tells them apart. Thresholds are user-configurable.
NO REPAINTING
"Confirm on bar close" is on by default: a signal must survive to the bar's
close before it counts, so live and historical markers agree. Turn it off
only if you want intrabar triggers and accept that a signal can disappear.
ALERTS
Seven named conditions — bullish cross, bearish cross, either cross, and
close above/below each MA. Optional rich alert() mode embeds the live ATR
numbers in the message text.
USAGE NOTES
The right setting depends on hold length and volatility, not asset class.
For low-beta instruments and longer holds, use the slow-MA trail and treat
the crosses as primary. For high-beta names and short holds, use the fast-MA
trail and expect the crosses to arrive late. Save each as an indicator
template rather than maintaining two copies of the script.
No external symbols or request.security() calls — it reads the chart symbol
only. Indicator

Indicator

Indicator

Northern Algo - Stacked B/S VolumeOverview
Northern Algo - Stacked Buy/Sell Volume Estimate is a volume-panel indicator that divides each chart bar’s reported volume into estimated buy and sell portions. Both portions are displayed together as one stacked column, allowing total volume, estimated directional composition, and relative buy-volume intensity to be viewed in the same panel.
How the volume split is calculated
The indicator estimates the division of volume from the closing price’s position within each candle’s high-low range:
Close position = (close - low) / (high - low)
Estimated buy volume = total volume x close position
Estimated sell volume = total volume - estimated buy volume
The close-position value is constrained between zero and one. Within this model, a candle closing near its high receives a larger estimated buy-volume portion, while a candle closing near its low receives a larger estimated sell-volume portion. A close near the middle of the range produces a more balanced division.
This is a candle-based estimate. It is not a measurement of exchange-level bid/ask volume, trade aggressor volume, order flow, or the actual number of transactions initiated by buyers and sellers.
Stacked-volume display
Each column contains two segments:
* The lower teal segment represents estimated buy volume.
* The upper red segment represents estimated sell volume.
* The combined height of both segments equals the bar’s total reported volume.
An optional moving average is plotted across the stacked columns. Its default length is 20 bars and it is calculated from total volume rather than either estimated segment. This provides a reference for comparing the current bar’s overall activity with its recent average.
Seller-adjusted buy-volume scale
The optional volume-intensity color scale evaluates estimated buy volume relative to its recent history.
First, the current estimated buy volume is divided by the average estimated buy volume from previous bars. The script performs a separate relative-volume calculation for estimated sell volume. A configurable portion of that sell-volume measurement is then subtracted from the buy-volume measurement:
Adjusted buy relative volume = buy relative volume - (sell relative volume x counter-pressure weight)
The result cannot fall below zero. It is mapped through 18 intensity levels, with progressively darker teal shades representing greater estimated buy-volume expansion after accounting for elevated estimated sell volume.
This seller-adjusted scale is the indicator’s distinguishing feature. It helps separate bars where the buy-volume estimate is expanding with limited opposing pressure from bars where both estimated portions are elevated because total volume has increased.
Using the indicator
The indicator can be used to examine three related characteristics:
* Total activity: Compare the complete column height with surrounding bars and the total-volume average.
* Estimated composition: Compare the relative size of the teal and red portions within each column.
* Relative intensity: When the color scale is enabled, compare the teal shading across bars to identify changes in seller-adjusted estimated buy-volume intensity.
The calculations are performed independently on the active chart timeframe. Shorter lookbacks respond more quickly to recent volume changes, while longer lookbacks provide a smoother comparison. Increasing the counter-pressure weight causes elevated estimated sell volume to have a greater effect on the buy-volume color scale. Setting the weight to zero disables this adjustment.
Settings
* Use V Color Scale: Enables or disables the seller-adjusted buy-volume intensity scale.
* Buy RVOL Lookback Bars: Sets the number of previous bars used to calculate average estimated buy volume.
* Sell Counter-Pressure Lookback Bars: Sets the number of previous bars used to calculate average estimated sell volume.
* Sell Counter-Pressure Weight: Controls how strongly estimated sell relative volume reduces the buy-volume intensity measurement.
* Show Total Volume Average: Shows or hides the moving average of total volume.
* Total Volume Average Length: Controls the moving-average period.
* Buy, Sell, and Volume Average Colors: Customize the panel’s standard display colors.
Important limitations
The displayed buy and sell portions are estimates derived entirely from OHLCV candle data. A larger estimated buy portion does not prove that buyers initiated that proportion of the bar’s transactions, and a larger estimated sell portion does not prove that sellers initiated that proportion.
The model is less informative on candles with very small ranges. On a zero-range candle, the current calculation assigns the displayed volume to the estimated sell segment.
Results depend on the volume data supplied for the selected symbol, exchange, data feed, and chart timeframe. The script does not request lower-timeframe trade data or use future data. Values on an open realtime candle will continue changing as its high, low, close, and volume develop.
This indicator does not generate trade signals, predict future price movement, or provide a complete trading system. It is intended as a contextual volume-visualization and educational tool.
Indicator

Indicator
