Pine Script® indicator
Search in scripts for "scalping"
5, 8, 21, 200 EMA Daily 200 SMA Daily VWAPMulti-timeframe EMA stack with Daily VWAP & 200 SMA
This clean overlay indicator combines popular exponential moving averages (5, 8, 21, 200 EMA on current timeframe) with a higher-timeframe Daily 200 SMA and session-resetting Daily VWAP — perfect for trend following, dynamic support/resistance, and intraday bias on stocks, forex, crypto, or futures.
Key Features:
• 5 EMA (very fast) – quick momentum & scalping filter (default lime)
• 8 EMA (fast) – short-term trend & pullback entries (default blue)
• 21 EMA (medium) – intermediate trend & confluence zone (default orange)
• 200 EMA (long) – major trend direction & big-picture support/resistance (default purple)
• Daily 200 SMA – smooth higher-timeframe trend line that stays constant on lower TFs (default teal, thicker line)
• Daily VWAP – volume-weighted average price that resets each trading day (default yellow)
All lines feature right-edge labels that auto-refresh daily and follow price action (toggleable + size adjustable).
Common uses:
- Trend alignment: Trade in direction of higher EMAs + Daily 200 SMA
- Pullbacks: Enter near 5/8/21 EMA when aligned with 200s
- Intraday mean reversion: Use Daily VWAP as fair value anchor
- Dynamic S/R: Watch reactions at these levels
Fully customizable colors, lengths, and label visibility. Clean code, no repainting issues on historical bars.
Happy trading!
Pine Script® indicator
Pine Script® indicator
DkS Morning Start PRO 3.0DkS Morning Start PRO — FX Live Guide (Auto Entry / SL / TP + Asia Range)
DkS Morning Start PRO is a professional trading tool designed for Forex and intraday traders who want precise, rule-based entries using the Asian session breakout, with fully automated Entry, Stop Loss, and Take Profit levels.
The script automatically detects the Asian session range, monitors breakout conditions during the morning session, and generates a complete trading plan with clean, continuous visual levels directly on the chart.
Key Features
• Automatic Asian Range (Daily High & Low)
Draws the current day’s Asian High and Low and automatically removes previous levels, keeping your chart clean and focused.
• Automatic Entry, Stop Loss, and Take Profit
Calculated using professional logic based on:
Asian range breakout
Optional retest confirmation
Configurable risk management
Custom Risk/Reward ratio
• Clean and Professional Visual Display
Includes:
Continuous Entry, SL, and TP lines
Professional labels (Entry / SL / TP)
Real-time informational panel
Clear and minimal chart design
• Live Trading Plan (Before Confirmation)
Displays potential Entry, SL, and TP levels in advance, allowing traders to prepare before the signal confirms.
• Professional Confirmation Filters
Built-in filters for higher-probability setups:
Fast and Slow EMA trend filter
RSI confirmation filter
One trade per day option (ideal for FTMO and prop firms)
• Designed for Forex Intraday and Scalping
Highly effective on:
EURUSD
GBPUSD
AUDUSD
XAUUSD
Recommended timeframes:
M5
M15
M30
Advantages
• Eliminates emotional decision-making
• Provides clear, rule-based entries
• Improves consistency and discipline
• Ideal for FTMO and prop firm trading
• Clean, professional interface
• Non-repainting logic
How It Works
Detects the Asian session range
Waits for breakout during morning session
Confirms retest (optional)
Calculates Entry, Stop Loss, and Take Profit
Displays full trading plan automatically
Pine Script® indicator
Trend Matrix: Institutional Confluence EngineTrend Matrix: Institutional Confluence Engine
The Institutional Confluence Engine is a professional-grade diagnostic tool designed to solve the two biggest problems in technical analysis: market noise and false breakouts.
Unlike standard lagging indicators, the Institutional Confluence Engine uses a sentient resolution engine to adapt its logic based on whether you are scalping or swing trading. It provides a real-time "Efficiency Grade" for the market, allowing you to ignore "C-Grade" chop and focus exclusively on "A-Grade" institutional trends.
Institutional Confluence and Alerts: Notifies you only when the Local, HTF1, and HTF2 timeframes all align at an "A-Grade" efficiency—the hallmark of a major structural move.
How to Trade It
Identify Confluence: Look for the Status Hub in the top right. When all three grades turn Green (A), institutional alignment is at its peak. This is also visible on the chart.
Monitor Trend Core: The ribbon acts as dynamic support/resistance. "Trend Flares" (brightening of the ribbon) indicate significant volume spikes entering the trend.
Profit Targets: Use the dynamic Green/Red expansion lines. These are volatility-adjusted targets that stretch or contract based on market energy (ATR).
Volume Intelligence
1. The Big Money Heatmap (Volume Intelligence)
Institutional players leave footprints in the form of volume. This engine visualizes these footprints using a dynamic Volume Profile integrated directly into your price action.
Big Money Clusters: These are price levels where massive institutional orders are being "filled." They represent high-conviction zones that act as magnets for price.
Major Buy/Sell Zones (POC): This marks the Point of Control—the exact price where the highest volume has transacted. It represents "Fair Value." Breakouts away from this zone often lead to the most explosive moves.
Gap Prediction: The engine analyzes the sentiment within volume nodes to predict if the market is preparing for an institutional "Gap Up" or "Gap Down."
2. The Golden Bridge (Structural Confluence)
The system calculates the Golden Bridge—a dynamic threshold based on the 0.618 Fibonacci ratio between major structural pivots.
The Logic: In institutional finance, the 0.618 level is the "Line in the Sand." If a rally holds above the Golden Bridge, the trend is structurally sound.
Golden Cluster Stronghold: When the Golden Bridge aligns perfectly with a Big Money Cluster, the system identifies a "Stronghold." This is the highest-probability support or resistance level generated by the engine.
3. MTF Efficiency Grading (A/B/C)
The Trend Matrix doesn't just show direction; it calculates Efficiency.
Grade A (High Efficiency): Price is tracking the trend core with minimal deviation. This is where institutional momentum is strongest.
Grade B (Moderate Efficiency): Healthy trending with standard pullbacks.
Grade C (Low Efficiency/Chop): Price is oscillating. The system will automatically "dim" the interface during these periods to prevent you from over-trading.
4. Status Hub & Intelligent Alerts
The Status Hub provides a real-time cockpit of your trading environment, displaying the "Trend Reliability Score" (0-100%) and Multi-Timeframe grades.
Confluence Alerts: Get notified when the Local, HTF1, and HTF2 timeframes all reach "A-Grade" status simultaneously.
Exhaustion Pillars: Vertical pillars on your chart highlight "Volume Spikes," warning you of potential trend exhaustion before the reversal happens.
How to Use
Check the Hub: Ensure the Trend Reliability is above 75%.
Verify Grade: Look for "A-Grade" efficiency on your local timeframe.
Find the Stronghold: Enter trades where the Golden Bridge and Big Money Clusters overlap for the highest-probability entries.
Target Expansion: Follow the dynamic Green/Red target lines for volatility-adjusted take-profits.
Disclaimer: Trading involves significant risk. This tool is designed for educational and diagnostic purposes and should be used as part of a comprehensive trading plan.
Pine Script® indicator
XAUUSD Power @ Strict Pivot S/RThis indicator identifies who is in control (buyers or sellers) when price reaches key support and resistance zones, defined using strict pivot points.
How it works
Automatically plots support and resistance using confirmed pivots.
Analyzes candle structure:
candle direction (bullish / bearish)
body size
wick dominance
A signal is shown only when:
price is near support or resistance (ATR-based filter)
there is clear buying or selling strength
Signals appear only after the candle closes (no repaint).
Signals
🔺 Green triangle → buyers gain control at support
🔻 Red triangle → sellers gain control at resistance
Best use
Scalping / intraday trading
Recommended timeframe: 5-minute
Works well on volatile markets such as XAUUSD, US30, NASDAQ
Important
Confirmation tool, not a prediction system
Not an automated trading strategy
Should be used with proper risk management
Pine Script® indicator
Scalp Master EliteWe present Scalp Master Elite 👑
This is an advanced trading indicator designed to identify high-probability reversal and take-profit zones 📍.
It combines a dynamic EMA + ATR channel 📊 with multiple confirmation indicators (RSI, Stochastic, CCI, Supertrend, Price Action and more) to reduce noise and false signals 🚫📉.
Thanks to its volatility-adaptive logic 🌊, the indicator works perfectly for scalping and intraday trading ⚡, while also adapting smoothly to higher timeframes and long-term trades 📈⏳.
Inverted bullish / bearish triangle signals 🔺🔻 are followed by one confirmed target per setup 🎯, helping traders manage exits with clarity and discipline.
Optional targets 🎯, smart alerts 🔔, ATR-based filters 📐 and a real-time win-rate table 🏆 provide full trade context with clean and intuitive visuals 🧠✨.
Pine Script® indicator
JESUS SAVES LevelsJESUS SAVES Levels is a price-action based support and resistance indicator designed to automatically identify and visualize significant market levels.
The indicator detects structural peaks and valleys from a user-selectable source timeframe and projects them as horizontal levels across the chart. These levels help traders understand where price previously reacted and where future reactions are more likely.
Key Features
• Automatic Peak & Valley Detection
Levels are generated from clear market structure (swing highs and swing lows).
• Multi-Timeframe Analysis
Choose any source timeframe (e.g. M5, M15, H1) while viewing the levels on any chart timeframe, including M1.
• Dynamic Level Validation
Levels remain active as long as price respects them.
Once broken, they are automatically marked as invalid and visually faded, remaining visible only for historical context.
• Clean & Minimal Chart Design
Valid levels are clearly visible, while invalid levels fade into the background to keep the chart readable.
• Performance Optimized
An internal level limit ensures fast loading and smooth performance, even on lower timeframes.
Ideal For
• Support & resistance trading
• Market structure analysis
• Intraday and scalping strategies
• Higher-timeframe context on lower-timeframe charts
JESUS SAVES Levels focuses on clarity, structure, and discipline — helping traders better understand price behavior without clutter or subjective drawing.
Pine Script® indicator
EMA Multi Cross + SR Breaks & RetestsDescription
The EMA Multi Cross with Support & Resistance Break & Retest indicator combines trend-following moving averages with dynamic support and resistance zone detection to help traders identify trend direction, momentum shifts, and key price reaction areas in real time.
The indicator plots multiple Exponential Moving Averages (EMAs) to provide a clear view of short-, medium-, and long-term trends while automatically detecting high-volume support and resistance zones. It also highlights when these zones break or successfully hold, helping traders spot potential continuation or reversal opportunities.
Key Features
Multi-EMA Trend System
The indicator displays EMA 9, 13, 15, 21, 50, and 200 to help traders quickly assess trend structure and market momentum.
EMA Crossover Alerts
Alerts can be triggered when important EMA crossovers occur, helping traders capture momentum shifts and potential entries.
Cross alerts included:
EMA 9 crossing EMA 15
EMA 9 crossing EMA 21
EMA 13 crossing EMA 50
EMA 21 crossing EMA 200
Both bullish and bearish signals are supported.
Dynamic Support & Resistance Zones
The script automatically detects potential support and resistance areas based on price pivots and volume activity, plotting them as zones directly on the chart.
Stronger zones appear darker, helping traders quickly identify important reaction areas.
Break & Retest Detection
When price breaks a support or resistance zone, the zone changes appearance to visually confirm the breakout. If price returns and holds the level, the zone adjusts back, signaling a possible continuation.
This helps traders identify:
Breakouts
Failed breakouts
Retests
Trend continuation setups
Customizable Display
Users can enable or disable support & resistance detection and adjust detection sensitivity according to their trading style.
Typical Use Cases
• Trend-following entries using EMA alignment
• Breakout trading
• Retest confirmation entries
• Scalping and intraday setups
• Swing trading trend confirmation
Pine Script® indicator
Neural Probability Channel [AlgoPoint]The Neural Probability Channel (NPC) is a next-generation volatility and trend analysis tool designed to overcome the limitations of traditional bands (like Bollinger Bands) and smoothing filters (like standard Moving Averages).
Unlike traditional indicators that rely on linear deviation or simple averages, the NPC utilizes a Rational Quadratic Kernel—a concept derived from machine learning regression models—to calculate a non-repainting, highly adaptive baseline (Fair Value). This allows the indicator to distinguish between market noise and genuine trend shifts with superior accuracy.
The volatility bands are dynamically calculated using a hybrid of Standard Error (Mean Deviation) and ATR, ensuring the channels adapt organically to market conditions—expanding during high-impact moves and contracting during consolidation.
How It Works
- The Neural Baseline (Center Line): Instead of a standard Moving Average, the NPC uses a Rational Quadratic Kernel weighting system. This assigns "importance" to price data based on both recency and similarity. It acts as a "Center of Gravity" for price, providing a smoother yet responsive trend detection line without the lag associated with SMAs or EMAs.
Crucially, the math is causal (no lookahead), meaning it does not repaint.
- Adaptive Volatility Bands: The channel width is not fixed. It uses a Hybrid Volatility Model:
- Inner Channel: Represents the "Probability Zone" (approx. 70% confidence). Price staying here indicates a stable trend.
- Outer Channel: Represents "Extreme Deviation" (Statistical Anomalies). When price touches or breaches these outer bands, it is statistically overextended (Overbought/Oversold).
Signal Generation:
- Reversion Signals: Generated when price breaches the Outer Bands and closes back inside. This suggests a "Snap-back" or Mean Reversion event.
- Trend Confirmation: The color of the baseline and the fill zones changes based on the slope of the Kernel, giving an instant visual read on market bias.
How to Use It
- Mean Reversion Strategy: Look for price action extending beyond the Outer Bands (Thinner lines). If price leaves a wick and closes back inside, it signals a high-probability reversal toward the Neural Baseline.
- Green Signal: Potential Long (Reversal from Lows).
- Red Signal: Potential Short (Reversal from Highs).
- Trend Following: Use the Neural Baseline (Thick Center Line) as a dynamic support/resistance level.
If price is holding above the baseline and the cloud is green, the trend is Bullish.
If price is holding below the baseline and the cloud is red, the trend is Bearish.
- Squeeze Detection: When the Inner and Outer bands compress significantly, it indicates low volatility and often precedes an explosive breakout.
Settings
- Lookback Window: Determines the depth of the Kernel analysis.
- Smoothness (Bandwidth): Higher values create a smoother baseline (better for trends), while lower values make it more reactive (better for scalping).
- Regression Alpha: Controls the weight distribution of the Kernel.
- Channel Multipliers: Adjust the width of the Inner and Outer bands to fit your specific asset's volatility profile.
Pine Script® indicator
TEST Grok 4 AlertesCreate your 4 alerts with these short names: Buy → webhook opening long Sell → webhook opening short Close Long → webhook closing long Close Short → webhook closing short
Crée tes 4 alertes avec ces noms courts :
Buy → webhook ouverture long
Sell → webhook ouverture short
Close Long → webhook fermeture long
Close Short → webhook fermeture short
Pine Script® indicator
CM_EMA Trend Bars + 9/21/34CM_EMA Trend Bars + 9/21/34 is a trend-following momentum indicator designed to clearly visualise market direction and strength using a triple Exponential Moving Average structure.
The indicator combines 9, 21, and 34 EMA calculations to colour price bars based on trend alignment. When faster EMAs are stacked above slower EMAs, bars highlight bullish momentum. When faster EMAs are stacked below slower EMAs, bars reflect bearish momentum. This makes trend conditions instantly readable without cluttering the chart.
By focusing on EMA structure rather than lagging signals, CM_EMA Trend Bars helps traders:
Identify high-probability trend conditions
Stay aligned with momentum
Filter out low-quality countertrend trades
Avoid chop and indecision zones
The colour-coded bars act as a trend confirmation tool, not an entry system on their own. It pairs especially well with price action, support and resistance, ORB strategies, ICT concepts, or higher-timeframe bias.
Best used for:
Trend confirmation
Bias filtering
Trade management and hold decisions
Scalping, day trading, and intraday swing trading
Key features:
Triple EMA logic using 9 / 21 / 34
Clean, non-repainting bar colouring
Works across all markets and timeframes
Minimal lag compared to single moving average tools
Pine Script® indicator
Adaptive Elliott Wave: Forecast + Dashboard (V.2)Title: Adaptive Elliott Wave: Forecast + Dashboard
Description:
Overview
The Adaptive Elliott Wave: Forecast + Dashboard is a technical analysis tool designed to visualize potential Elliott Wave structures using a dynamic, multi-factor approach. Unlike static wave scripts, this indicator adapts its projections based on real-time trend context (Weighted Moving Averages) and momentum shifts (RSI). It is built to help traders identify the most likely path—Impulse or Correction—based on current market conditions.
How It Works
The script uses a combination of pivot-point detection and trend filtering to project future wave paths.
Pivot Logic: The indicator identifies significant Highs and Lows using a sensitivity setting. These pivots form the "anchors" for the Elliott Wave count.
Adaptive Engine: The "Auto-Detect" mode analyzes the relationship between the 50/200 WMA (Trend) and RSI (Momentum).
In a Bull Trend: If RSI is oversold, the script anticipates a bullish "Impulse" wave. If RSI is overbought, it prepares for a "Correction."
In a Bear Trend: The logic reverses to project rallies or downward impulses.
Projections: It calculates Fibonacci-based targets for waves 1-5 (Impulse) or A-B-C/W-X-Y (Correction) and renders them as "ghost lines" that move with the price.
Macro Outlook: For long-term context, the script includes a Macro Projection feature that uses higher-period pivots to show the possible 1-year direction.
Key Features
Target Table: A real-time dashboard showing exact Fibonacci target prices and the percentage distance from the current price.
Corrective Channels: Automatically draws channels for wave corrections to help identify potential breakout or breakdown zones.
Bullish/Bearish Extensions: Shows immediate volatility-based extensions beyond the last confirmed pivot.
RSI Signals: Visual markers on the chart indicate overbought/oversold conditions that feed into the adaptive logic.
How to Use
Identify the Phase: Use the "AI STATUS" in the dashboard to see if the script is currently projecting an Impulse (Trend move) or a Correction (Counter-trend).
Confirm with WMA: Use the 50 (Blue) and 200 (Orange) WMAs to confirm the macro trend before following a projection.
Monitor Fib Targets: Watch for price reactions at the projected labels. If price breaks a target significantly, the wave count may need to be re-evaluated (re-pivot).
Customize Sensitivity: For scalping, lower the "Short-Term Sensitivity." For swing trading, increase it.
Disclaimer
This script is for educational purposes only. Elliott Wave Theory is subjective, and projections are mathematical estimates based on historical volatility. Past performance does not guarantee future results. Always use proper risk management.
Settings Guide
Forecast Mode: Choose between "Auto-Detect" (Dynamic) or manually force an Impulse/Correction count.
Macro Sensitivity: Controls how far back the script looks to generate the purple 1-year projection.
Link Correction to Extension: A unique feature that starts the forecast from a potential extension target rather than the current live price.
Pine Script® indicator
SFP Trend & VWAP Liquidity Pro [Zofesu]🎯 SFP Trend & VWAP Liquidity Pro
Master the Flow with Institutional Precision.
It was primarily built on Nasdaq, sometimes works on Crypto and Commodities, mostly on Indices. Suitable for periods when the market is going sideways. Requires longer setup.
This indicator is a high-performance trading tool designed to identify Swing Failure Patterns (SFP) while maintaining strict alignment with market momentum. By combining Dynamic Liquidity Zones with a Dual-Filter Trend Engine , it ensures you only trade the most high-probability sweeps in the direction of institutional money.
🧠 The Philosophy
Trading liquidity sweeps (SFP) without a trend filter is like catching falling knives. This tool solves that by requiring Confluence . It identifies where retail stop-losses are being hunted and confirms if the major trend (VWAP/MA) is ready to defend that level.
🛠️ Key Features & Functionality
⚡ Smart SFP Detection: Automatically tracks historical Swing Highs and Lows to detect "fakeouts" where price sweeps liquidity and closes back within the range.
🛡️ Dual-Filter Trend Engine: Two fully customizable filters (EMA, SMA, HMA, or VWAP). You can use them to define a "Golden Zone" for entries.
⚓ Professional VWAP Anchoring: Choose how your volume-weighted price resets—Session, Week, Month, or Year. This allows you to track institutional value from intraday to long-term swing perspectives.
📊 Dynamic Liquidity Lines: Real-time visual tracking of the most recent "Upper" and "Lower" liquidity levels.
⚙️ Customizable Modes
The Institutional Fort: Use two slow MAs (e.g., 2000 & 5000) for maximum safety. Only take SFPs that align with the long-term macro trend.
The Volume Specialist: Combine one MA with a Weekly/Monthly VWAP. This aligns price action with pure volume-weighted value.
The Pure Aggressor: Turn off MA filters and use only Session VWAP for high-frequency scalping and rapid liquidity plays.
🚀 How to Trade with STVL Pro
Long Signal (BULL SFP): Price sweeps below a Swing Low but closes above it + Price is trending above your active Filters (A & B).
Short Signal (BEAR SFP): Price sweeps above a Swing High but closes below it + Price is trending below your active Filters (A & B).
You can preset filter A to EMA 2000
You can preset filter B to HMA 5000.
If the price is approaching the green lookback, just switch filter B to VWAP, you don't have to change the numbers. VWAP automatically uses the "Session" setting. So you will have EMA as support on the chart and VWAP will search for SFP. If HMA is closer to the red lookback zone, switch filter A to VWAP, it will search for SFP for short. SFP label may not always appear, it is very strict.
⚠️ Disclaimer
Past performance does not guarantee future results. Always use proper risk management. Designed for disciplined traders who value quality over quantity.
Pine Script® indicator
ORION: Linear Regression Consolidation SystemDescription:
This script is a custom-built technical analysis tool designed to identify high-probability consolidation zones (market equilibrium) and trade their subsequent breakouts in the direction of the established trend.
originality & Concept: While many indicators use simple Bollinger Band squeezes, this system employs a multi-factor algorithm to define "Consolidation" mathematically. It synthesizes three core concepts:
Volatility Compression (ATR): It compares the current range against the Average True Range (ATR) to ensure price action is compressed.
Structural Stationarity (Linear Regression): It calculates the slope of the Linear Regression line over a lookback period. A zone is valid ONLY if the slope is near-zero (< 0.25), ensuring the market is truly flat and not just choppy.
Trend Alignment (EMA): To filter out low-probability counter-trend signals, the system utilizes a 150-period Exponential Moving Average (EMA) as a baseline. Breakouts are only valid if they align with the macro trend (Above EMA = Long, Below EMA = Short).
How It Works:
Zone Detection: The script draws a visual box when the price range is within the ATR multiplier limit AND the Linear Regression slope is flat.
Signal Validation: A signal is triggered only on a confirmed candle close outside the box.
False Breakout Protection: A volume/body size filter checks if the breakout candle has significant momentum compared to the average of the last 20 bars.
Risk Management : The script projects a fixed Risk:Reward setup (default 1:1.8) and includes a "Breakeven" logic that visualizes when a trade has reached 50% of its target, securing the position.
Settings:
This system is highly customizable to fit different market conditions. Below are the specific parameters used in this setup:
1. Strategy Core (Logic)
Lookback Period (15): The algorithm analyzes the most recent 15 candles to detect market equilibrium. On the M5 timeframe, this represents a 75-minute window of stability, which is optimal for scalping setups.
Box Width (ATR Multiplier) (3) : Defines the maximum vertical range of the consolidation box. A value of 3 means the box height cannot exceed 3x the Average True Range (ATR). This ensures we are trading tight, compressed zones rather than volatile, expansive ranges.
Slope Tolerance (0.4): Controls the strictness of the Linear Regression slope. A value of 0.4 allows for a slight tilt in the consolidation structure, capturing more valid opportunities than a strictly horizontal (0.0) setting without compromising the "flatness" requirement.
2. Risk Management
Risk : Reward Ratio (1.8): Sets the profit target relative to the stop loss. For every $1 risked, the system targets $1.8 in profit. This provides a positive mathematical expectancy even with a moderate win rate.
Breakeven Trigger (%) (0.5): A capital preservation feature. When the price covers 50% (0.5) of the distance to the Take Profit target, the trade is visually marked as "Breakeven" (Risk-Free). If the price reverses after this point, it is not counted as a loss.
3. Protection & Filters (Insurance)
Enable 'Strong Candle' Filter (ON): Filters out weak "creeping" breakouts. The system will only trigger a signal if the breakout candle demonstrates significant momentum.
Average Size Period (20): The baseline for momentum is calculated using the average body size of the last 20 candles.
Candle Strength Factor (1): The breakout candle must be at least 1x (100%) the size of the average candle. This ensures that real volume and momentum are backing the move, reducing the chance of fakeouts.
Disclaimer: This script is intended for educational and analytical purposes to assist traders in identifying market structure.
Pine Script® indicator
xxmonk. Absolute FractalDescription:
Concept This indicator is a specialized Fractal Time Engine designed for high-precision scalping and swing trading (specifically optimized for NQ/Nasdaq). Unlike standard Fibonacci time zones that drift or overlap, this script creates a strictly nested "Vibration" structure across three timeframes simultaneously. It treats time as a fractal, where smaller cycles are mathematically "imprisoned" within larger cycles.
How It Works The indicator projects the Fibonacci sequence (1, 3, 5, 8, 13, 21, 34, 55, 89, 144) from a single Master Anchor, but creates a hierarchy of containment:
HTF (Higher Timeframe - Red): The Master Cycle (e.g., Daily). These are the hard walls.
MDL (Middle Timeframe - Orange): Nested strictly between HTF milestones. The count resets to "1" instantly at every HTF line and cannot exist past the next HTF line.
LTF (Lower Timeframe - Yellow): Nested strictly between MDL milestones. The count resets to "1" instantly at every MDL line.
Key Features
Strict "Prisoner" Logic: A lower timeframe cycle is physically terminated the moment it hits a higher timeframe milestone. This prevents clutter and ensures the "1" always aligns with the momentum injection of the larger trend.
The "Rigged" Anchor: The math uses an (n-1) offset, ensuring that Milestone "1" sits exactly on the anchor vertical, removing the visual drift found in standard tools.
Dynamic Visibility Engine: To solve TradingView’s 500-label limit, this script uses a smart buffer that only draws labels currently visible on your screen. This ensures that the critical early counts (1, 3, 5) are never deleted to make room for off-screen history.
Tiered Visuals: Labels are automatically stacked at different percentage heights (15%, 8%, 2%) above price to prevent overlap.
Settings & Customization
Master Anchor: Select the exact start time for the cycle.
Timeframes: Fully customizable periods for HTF, MDL, and LTF layers.
Visuals: Individual control over Color, Line Style (Solid/Dash/Dot), Thickness, and Vertical Height for each tier.
How to Use
Set the Master Start Anchor to a significant high/low or session open.
Look for "Confluence Clusters": Areas where an HTF, MDL, and LTF line all land on the same candle often indicate a high-probability reversal or "Rigged" expansion point.
Use the LTF (Yellow) counts for entry timing (1, 3, 5) inside the larger trend direction defined by the HTF (Red) walls.
Pine Script® indicator
DSROverview A mechanical scalping strategy designed for Gold (XAUUSD) on the 5-minute timeframe. This system visually simplifies price action into clear "Go" and "Stop" signals using a color-coded flow system.
Pine Script® indicator
Borna High/Low📌 Borna High/Low
Borna High/Low is a clean and precise indicator that automatically plots the Asian session High and Low levels on GER40 (DAX) directly on the price chart.
It is designed for traders who use the Asian range as a liquidity zone and as a key reference for Frankfurt and London open trading strategies.
🔍 What this indicator does
Automatically calculates Asia High and Asia Low
Draws levels directly on the price chart (overlay)
Optional line extension to the right or both sides
Optional mid-line between High and Low
Session-end labels for clear visual reference
Stable plotting that does not shift when zooming
⏰ Session Settings
Default Asian session: 00:00 – 07:00
Fully customizable time window (e.g. 00:30 – 07:00)
Timezone support (recommended: Europe/Berlin for GER40)
⚙️ Customization
Line style: Solid / Dashed / Dotted
Line width
Extend mode: Right / Both / None
Toggle mid-line
Toggle session labels
📈 How to use
Use Asia High / Low as:
Liquidity targets
Range boundaries for London breakouts
Premium / Discount reference levels
Ideal for scalping and intraday trading on GER40
Pine Script® indicator
Rolling VWAP + Bands (Tighter Option) + 2.35/3.0 Re-entry AlertsRolling VWAP + σ Bands — How to Trade It
This indicator plots a Rolling VWAP (a volume-weighted mean over a fixed bar window) along with standard deviation (σ) bands around that VWAP. The goal is simple:
Quantify “normal” price distance from value (VWAP)
Highlight statistical extremes and pullback zones
Trigger re-entry signals when price returns from extreme deviation back inside key bands (±2.35σ and ±3σ)
It’s designed for scalping and short-term decision support, especially on lower timeframes.
What the Lines Mean
VWAP (Rolling Window)
The VWAP line represents the rolling “fair value” of price, weighted by volume across the lookback window.
In ranges: VWAP acts like a gravity center
In trends: VWAP acts like a dynamic mean that price may pull back toward before continuing
σ Bands (Standard Deviation)
The σ bands show how far price is from VWAP in statistical terms:
±1σ: Normal variation
±1.5σ: Common pullback / continuation zone in trends
±2σ: Extended move / trend stress
±2.35σ: Deep extension (often a “stretched” market)
±3σ: Rare extreme (often emotional moves / liquidation wicks)
The Most Important Feature: 2.35σ and 3σ Re-entry Signals
A Re-entry signal fires when price was outside a band on the previous bar and closes back inside that band on the current bar.
Why this matters:
The market pushed into an extreme zone…
…then failed to stay there
That “failure” often leads to a snap-back toward value (VWAP) or at least toward inner bands.
In general, a 3σ re-entry is stronger than a 2.35σ re-entry, because it represents a more statistically extreme excursion that couldn’t hold.
These are not “magic reversal calls” — they’re high-quality mean-reversion triggers when conditions favor mean reversion.
Regime 1: Contracting Bands = Mean Reversion Environment
What contracting bands imply
When the bands tighten / contract, volatility is compressed. In this environment:
Price tends to oscillate around VWAP
Deviations are more likely to mean revert
Extremes are clearer and usually followed by a return toward value
How to trade mean reversion with this indicator
Core idea: fade extremes and target VWAP / inner bands.
A) Highest quality setups: 2.35σ and 3σ re-entries
These are your “strongest” mean reversion events.
Short bias setup
Price closes outside +2.35σ or +3σ
Then re-enters back below that band (signal)
Typical targets: +2σ → +1.5σ → VWAP (depending on momentum)
Long bias setup
Price closes outside −2.35σ or −3σ
Then re-enters back above that band (signal)
Typical targets: −2σ → −1.5σ → VWAP
Why these work best in contraction:
The market is statistically “stretched”
With low volatility, it’s harder for price to stay extended
Re-entry often starts the “snap-back” leg
B) Scaling / partial targets (optional approach)
If you manage positions actively:
Take partial profits at inner bands
Use VWAP as the “magnet” target when conditions remain range-bound
Risk framing for mean reversion
Mean reversion fails when price keeps walking the band and volatility expands.
Common failure clues:
Bands begin to widen aggressively
Price repeatedly holds outside outer bands
VWAP slope starts to accelerate in one direction
If that starts happening, the market is likely shifting to a trend regime.
Regime 2: Expanding Bands + VWAP Slope = Trending Environment
What trending conditions look like
Trends typically show:
VWAP sloping consistently
Bands expanding (higher volatility)
Price spending more time on one side of VWAP
Pullbacks that stall near inner/mid bands instead of reverting fully
In this environment, fading outer bands becomes lower probability because price can “ride” deviations during strong directional flow.
How to trade continuation with this indicator
Core idea: use VWAP and inner bands as pullback zones, then trade in the direction of the VWAP slope.
A) Trend continuation zones (most practical)
VWAP: first pullback level in mild trends
±1σ: shallow pullback continuation
±1.5σ: higher-quality pullback depth in stronger trends
±2σ: deep pullback / trend stress (more caution)
Example (uptrend):
VWAP rising
Price pulls down into VWAP / +1σ / +1.5σ area
Continuation entries are considered when price stabilizes and pushes back with the trend
Example (downtrend):
VWAP falling
Price pulls up into VWAP / −1σ / −1.5σ area
Continuation entries are considered when price rejects and rotates back down
What to do with 2.35σ / 3σ re-entry signals in trends
Re-entry signals can still occur in trends, but they should be interpreted differently:
In strong trends, an outer-band re-entry may only produce a brief bounce/rotation, not a full mean reversion to VWAP.
Targets may be more realistic at inner bands rather than expecting VWAP every time.
In other words:
Range: outer-band re-entries often aim toward VWAP.
Trend: outer-band re-entries often aim toward 2σ / 1.5σ / 1σ first.
Practical Regime Filter (simple visual read)
This script intentionally doesn’t hard-code a “trend/range detector,” but you can visually infer regime quickly:
Mean reversion bias
Bands contracting or stable
VWAP mostly flat
Price crossing VWAP frequently
Trend continuation bias
Bands expanding
VWAP clearly sloped
Price holding mostly on one side of VWAP
Notes on σ Calculation Options
This indicator includes σ mode toggles:
Unweighted σ (tighter): treats price deviations more “purely” and often gives bands that react more tightly to price behavior.
Volume-weighted σ: emphasizes high-volume price action in the deviation calculation.
Both are valid — test based on your market and timeframe.
Summary Cheat Sheet
Contracting bands (range / compression)
Favor: mean reversion
Best signals: 2.35σ and 3σ re-entry
Typical targets: inner bands → VWAP
Expanding bands + sloped VWAP (trend)
Favor: continuation
Use pullbacks to: VWAP / 1σ / 1.5σ as entry zones
Outer-band re-entries: treat as rotation opportunities, not guaranteed full reversals
Pine Script® indicator
Step Generalized Moving Average [BackQuant]Step Generalized Moving Average
Overview
Step Generalized Moving Average (StepGMA) is a trend-structure moving average designed to solve two common problems with classic MAs:
They overreact to noise in chop, causing constant micro-flips.
They lag too much when you smooth them enough to stop that noise.
StepGMA tackles this by combining two layers:
A Generalized Moving Average (GMA) that increases responsiveness without simply shortening length.
A Step Filter that converts the MA into discrete “steps” sized by ATR, suppressing insignificant movement and only updating when the move is meaningful.
The output is a trend line that behaves more like market structure: it holds its level through noise, then “reprices” in chunks when volatility-adjusted movement is large enough.
What the indicator is trying to represent
Instead of showing every tiny MA wiggle, StepGMA tries to represent the idea that:
Most price movement is noise relative to volatility.
Trend only matters when it advances by a meaningful amount.
A good trend line should stay stable until the market forces it to move.
That makes this indicator useful as:
A regime filter (trend vs chop).
A trend-following bias line.
A structure-like dynamic S/R reference.
A signal generator with fewer low-quality flips.
Component 1: Moving Average engine (selectable)
The base smoothing is not fixed. You can choose between multiple MA types:
SMA, EMA, WMA, VWMA: classic smoothing families.
DEMA, TEMA: reduced-lag EMA variants.
T3: smooth yet responsive, good for trend.
HMA: very low lag, can be twitchy without filtering.
ALMA: center-weighted smoothing, often “cleaner” visually.
KAMA: adaptive smoothing based on efficiency ratio, good in mixed regimes.
LSMA: regression-based, tends to track trend direction well.
McGinley: dynamic smoothing designed to reduce lag during fast moves.
This matters because the StepGMA is not “one MA.” It is a framework that lets you pick the underlying smoothing behavior, then applies the generalization and step logic on top.
Component 2: Generalized Moving Average (GMA)
Where the idea comes from
Generalized MA here is essentially a form of two-stage smoothing compensation . A common trick in signal processing and technical analysis is:
Apply a smoother once (MA1).
Apply it again (MA2).
Use MA2 as a “lag reference,” then combine MA1 and MA2 to reduce lag while keeping smoothness.
This is related in spirit to reduced-lag filters (like DEMA/TEMA) and “zero-lag” style constructions that subtract part of the lag component. You are not magically removing lag, you are biasing the output toward the first-pass MA while subtracting some of the second-pass smoothing that represents delayed response.
How this script does it
It computes:
ma1 = MA(src, len)
ma2 = MA(ma1, len)
Then combines them using a volume factor (vf):
generalized = ma1 * (1 + vf) - ma2 * vf
Interpretation:
ma2 is a “more delayed” version of ma1.
Subtracting vf * ma2 and adding (1+vf) * ma1 pushes the output toward responsiveness.
vf controls how aggressive that push is.
Volume Factor (vf) is really an aggressiveness knob
The script clamps vf between 0.01 and 1.0 to keep it stable. Conceptually:
Low vf: behaves closer to a normal MA1, smoother, more lag.
High vf: more compensation, faster response, more risk of overshoot or noise sensitivity (which is then handled by the step filter).
So the GMA stage tries to give you a cleaner, faster trend estimate without just shrinking the MA period.
Component 3: Step Filter (the key behavior)
What a step filter is
A step filter turns a continuous signal (here, the generalized MA) into a discrete “staircase” signal. Instead of updating every bar, it updates only when the input has moved far enough to justify a new step.
This is conceptually similar to:
A quantizer in signal processing (rounding changes to discrete increments).
A volatility threshold filter (ignore changes smaller than X).
Market structure logic where levels matter more than micro movement.
How it works in this script
The filter maintains a persistent value: stepped .
Each bar:
diff = src - stepped
If |diff| < stepSize, do nothing (hold the level).
If |diff| >= stepSize, move stepped by a number of step increments.
The step increment size is:
stepSize = (stepMult / 100) * ATR(atrPeriod)
This is critical:
In higher volatility, ATR is larger, so steps are larger, fewer updates, more stability.
In lower volatility, ATR is smaller, so steps are smaller, more updates, more sensitivity.
So the step behavior automatically adapts to volatility.
Multiple-step catching behavior
If price jumps far beyond one step, the script does not move only one step. It moves by:
floor(|diff| / stepSize) * stepSize
So it “catches up” in discrete blocks, preserving the stepped character without lagging massively after large moves.
Direction and regime
Direction is determined by the stepped line, not the raw MA:
direction = +1 if steppedMA is rising
direction = -1 if steppedMA is falling
otherwise direction stays the same
Signals only trigger on direction state changes:
Long when direction flips to +1
Short when direction flips to -1
This matters because it prevents repeated signals while the trend remains intact. You only get a signal when the market has moved enough (in ATR terms) to justify a structural step in the opposite direction.
Secondary line and gradient fill
The script also plots a secondary “slow MA” (length 25, same MA type). This is not the core logic, it is a visual context layer:
StepGMA is the structure line (discrete, regime-driven).
Slow MA is a smoother reference for the underlying drift.
The gradient fill highlights separation and dominance.
When StepGMA sits above the slow MA, the fill reinforces bullish bias. When below, it reinforces bearish bias. It is basically a “trend pressure” visual, not a separate signal.
How to interpret it
1) StepGMA as trend structure
Flat steps mean price is not making enough volatility-adjusted progress to move structure.
Up-steps mean the market has advanced enough to reprice the trend line upward.
Down-steps mean deterioration significant enough to reprice structure downward.
2) Direction is a regime, not a tick-by-tick call
Because direction is derived from step changes, it is naturally a regime filter:
Fewer flips in chop.
Clearer regime transitions.
Signals tend to occur later than ultra-fast tools, but with better confirmation quality.
3) Step size controls noise rejection
StepMult is the main “anti-chop” control:
Higher stepMult = bigger ATR steps = fewer updates, fewer signals, more confirmation, slower to react.
Lower stepMult = smaller steps = more updates, more signals, more sensitivity, more chop risk.
4) Generalization controls responsiveness of the underlying trend estimate
vf controls how “fast” the MA tries to be before stepping:
Higher vf makes the MA respond faster to new price information.
Lower vf makes the MA smoother and more conservative.
The step filter then decides whether that change is meaningful enough to matter.
Practical use cases
Trend filter for entries
Only take longs when direction is bullish.
Only take shorts when direction is bearish.
Avoid trades when StepGMA is flat for long periods, market is not repricing meaningfully.
Dynamic support and resistance
Because the line holds levels, it often behaves like structure:
In uptrends it can act as a rising support reference.
In downtrends it can act as falling resistance.
Signal quality layer
The step-based flip signals tend to be higher quality than basic MA crossovers because they require:
A meaningful volatility-adjusted move.
A confirmed direction change in the stepped trend structure.
Trade management
Use StepGMA as a trailing invalidation reference.
Use direction flips as “hard” regime exits.
Use separation vs slow MA as a “pressure” gauge for scaling decisions.
Tuning guidelines
MA Type
Pick based on the character you want:
T3, ALMA, KAMA are usually good defaults for clean trend representation.
HMA/LSMA are faster but may need larger stepMult to avoid twitch.
SMA is slow and stable but can be too laggy unless vf is increased.
MA Period
Sets the base smoothing horizon. Longer periods give “macro trend,” shorter periods give “tactical trend.”
Volume Factor (vf)
Sets responsiveness compensation:
0.05–0.25 is usually sensible.
Higher than that can get aggressive, step filter will save you, but your steps may fire more often.
ATR Period and StepMult
These define your structure sensitivity:
ATR Period controls how stable the volatility estimate is.
StepMult controls how large a move must be to change structure.
If you want fewer flips, increase StepMult or ATR Period. If you want quicker reaction, lower StepMult or ATR Period.
What this indicator is and is not
It is:
A trend structure MA that ignores sub-threshold noise.
A regime tool that uses volatility-adjusted repricing logic.
A configurable framework that works across assets and timeframes.
It is not:
A predictive reversal tool.
A scalping signal machine.
A replacement for risk management.
Summary
Step Generalized Moving Average combines a lag-compensated moving average (generalization via MA1/MA2 blending) with a volatility-scaled step filter (ATR-based quantization). The result is a stable, structure-like trend line that updates only when price movement is meaningful relative to volatility, producing cleaner regimes, fewer chop flips, and clearer trend bias than conventional moving averages.
Pine Script® indicator
Fiery River V 1.0 Description of the "Fiery River" (FR) Indicator
**Overview of the Indicator**
"Fiery River" (abbreviated as FR) is a technical indicator for TradingView, written in Pine Script version 6. It's designed for traders who incorporate Fibonacci levels with moving averages to analyze support and resistance zones. The indicator dynamically plots levels based on a selected moving average (MA) and Fibonacci multipliers, displaying them on the current timeframe and an additional secondary timeframe. This helps visualize potential reversal or continuation points, making analysis more comprehensive. The name "Fiery River" evokes a "fiery" flow of levels that "stream" across the chart, adapting to price movements. ?
**Key Features**
- **Level Construction**: The indicator calculates a moving average (EMA, SMA, WMA, RMA, or HMA) from the closing price and multiplies it by specified Fibonacci coefficients (0.618, 0.5, 0.382, 0.27, 0.18 for "long" levels and 1.618, 1.5, 1.382 for "short" levels). This creates 10 lines: 5 for the current timeframe (fully visible) and 5 for the secondary timeframe (with semi-transparency for distinction).
- **Color Scheme**: Levels are colored in gray, red, orange, and green, with additional "short" variants for extensions.
- **Fills**: Green fills are added between level pairs to highlight areas of interest, making the chart more visually intuitive.
- **Alerts**: Automatic notifications when the price touches levels (e.g., "Price touches Red line"), helping you stay on top of key moments.
- **Multi-Timeframe Support**: Incorporates a secondary timeframe (e.g., daily if the main is hourly) for comparing levels across different scales.
**How to Use**
1. Add the indicator to your chart in TradingView.
2. Customize settings in the panel: Select MA type, period (default 89), secondary timeframe, and Fibonacci coefficients.
3. Analyze levels as potential entry/exit points: Gray and red for stronger zones, green for weaker ones. Use fills to identify ranges.
4. Enable alerts for real-time signals.
It's ideal for strategies based on Fibonacci and trends, but always combine with other tools for confirmation. ?
**Advantages and Limitations**
- **Pros**: Highly customizable, visually clear, supports multiple MA types and timeframes. Great for scalping and swing trading.
- **Cons**: Can create a lot of lines on the chart, potentially overwhelming if not managed. May require testing for optimal settings on volatile assets.
If you need any adjustments, more details, or help with the code, just let me know! ?
Pine Script® indicator
Predator UAV🛩️ Predator UAV — Indicator Overview
Predator UAV is a multi-module market structure & execution assistant.
Think of it as 4 sensors on a drone, each scanning a different layer of price:
Module What it Sees Why it Matters
Module 1 Swing Structure (ZigZag) Trend direction & key levels
Module 2 FVGs, Imbalances, Targets, D/W/M levels Liquidity & objectives
Module 3 Swing Labels + Candle Patterns Entry timing & confirmation
Module 4 VWAP + Slope Dashboard Intraday bias & strength
You can turn any module ON/OFF independently.
🧩 MODULE 1 — ZigZag Swing High / Low (Market Structure)
What it does
Detects Swing Highs (HH / LH) and Swing Lows (HL / LL)
Draws:
Horizontal structure levels
ZigZag connections
Broken vs respected levels
Shows current swing direction in a mini table
How to use it
Bullish structure → higher lows forming
Bearish structure → lower highs forming
Best used for:
Bias filtering
Stop placement
Avoiding counter-trend trades
💡 Pro tip:
If price breaks a swing level and holds → structure shift confirmed.
🧱 MODULE 2 — FVGs, Imbalances, Targets & HTF Levels (Liquidity Engine)
This is the core execution intelligence.
A️⃣ Fair Value Gaps (FVGs)
Bullish FVG → price inefficiency below price
Bearish FVG → inefficiency above price
Options:
Extend none / limited / default
Limit number on chart
Show midpoint equilibrium
Usage
Price returning into FVG = high-probability reaction zone
Best entries = FVG + structure + VWAP bias
B️⃣ Imbalances
Based on strong displacement candles
Shows where price moved too fast
Usage
Often aligns with:
Breakouts
Stop runs
Momentum continuation
C️⃣ Swing Targets
Automatically marks next logical target
Swing Highs for longs
Swing Lows for shorts
Usage
Use as:
Take-profit zones
Partial exits
Trail stop reference
D️⃣ Previous Day / Week / Month Highs & Lows
Institutional liquidity magnets
Extremely effective on indices & forex
Usage
Expect:
Rejections
Stop hunts
Reversals near these levels
🔍 MODULE 3 — Swing Labels + Candle Patterns (Entry Timing)
This module answers: WHEN to enter?
Swing Labels
HH / HL / LH / LL printed directly on chart
Candle Patterns Detected
Hammer
Inverted Hammer
Bullish Engulfing
Bearish Engulfing
Hanging Man
Shooting Star
Each label includes:
Pattern name
Tooltip explanation (educational)
Usage
Never trade patterns alone
Best when combined with:
FVG
VWAP
Structure level
📐 MODULE 4 — VWAP with Slope Dashboard (Bias & Strength)
This is your intraday compass.
What it shows
Session VWAP
VWAP slope (numeric + angle)
Direction:
↗ Bullish
↘ Bearish
→ Neutral
Strength:
Weak
Moderate
Strong
How to read it
Above VWAP + positive slope → long bias
Below VWAP + negative slope → short bias
Flat slope → scalp only or wait
💡 Pro tip:
Strong VWAP slope + FVG pullback = A-grade setup.
🎯 COMPLETE TRADING TUTORIAL (Step-by-Step)
Step 1 — Determine Bias
Use Module 1 + Module 4
Structure bullish?
VWAP slope bullish?
✅ If aligned → look for longs
❌ If mixed → reduce size or wait
Step 2 — Identify POI (Point of Interest)
Use Module 2
Bullish:
Bullish FVG
Prior swing low
VWAP pullback
Bearish:
Bearish FVG
Prior swing high
VWAP rejection
Step 3 — Wait for Entry Confirmation
Use Module 3
Look for:
Engulfing
Hammer / Shooting star
Swing HL / LH confirmation
Step 4 — Define Targets
Use Next Target
Or Previous Day / Week Highs
Partial TP near first liquidity pool
Step 5 — Risk Management
SL beyond:
FVG boundary
Swing high/low
Trail using:
VWAP
Structure breaks
🧠 Best Timeframes
Purpose TF
Bias 15m / 30m
Setup 5m
Entry 1m–3m
Scalping VWAP + FVG only
⚠️ Common Mistakes to Avoid
❌ Trading every FVG
❌ Ignoring VWAP slope
❌ Counter-trend without confirmation
❌ Overloading chart (turn unused modules off)
🚀 Final Thought
Predator UAV is not a signal generator.
It’s a decision-support system — when multiple modules align, probability shifts in your favor.
Pine Script® indicator
Z-Score ProZ-Score Pro - Complete Description
This is an **advanced mean reversion indicator** that measures how many standard deviations the current price is from its average. It's ideal for identifying market extremes and trading opportunities.
What is the Z-Score?
The Z-Score is a statistical measure that answers: **"How far is the price from normal?"**
- **Z = 0**: Price is at its average
- **Z = +2**: Price is 2 standard deviations above (overbought)
- **Z = -2**: Price is 2 standard deviations below (oversold)
- **Z > +3** or **Z < -3**: Very rare extremes (occur ~0.3% of the time)
Main Features
### 1. **Flexible Calculation**
- **SMA or EMA**: Choose between simple or exponential moving average
- **Adjustable period**: Default 20 periods
- **Smoothing**: Option to smooth the Z-Score to reduce noise
### 2. **Multiple Levels**
- **±1.0**: Caution zone
- **±2.0**: Overbought/Oversold (68% statistical confidence)
- **±3.0**: Rare extremes (99.7% statistical confidence)
### 3. **Trading Signals**
The indicator generates automatic signals based on:
**Buy Signals (BUY)**:
- Z-Score is in oversold zone
- Momentum changes from negative to positive (price stops falling)
**Sell Signals (SELL)** :
- Z-Score is in overbought zone
- Momentum changes from positive to negative (price stops rising)
**Aggressiveness Levels**:
- **Conservative**: Only signals at extremes (±3.0)
- **Normal**: Signals at ±2.0 (recommended)
- **Aggressive**: More frequent signals at ±1.5
### 4. **Divergence Detection**
**Bullish Divergence** (aqua marker):
- Price makes a lower low
- Z-Score makes a higher low
- Indicates weakening of downtrend
**Bearish Divergence** (fuchsia marker):
- Price makes a higher high
- Z-Score makes a lower high
- Indicates weakening of uptrend
---
## Visualization
### Dynamic Colors
- **Bright red**: Z-Score > 2 and rising (strong overbought)
- **Orange**: Z-Score > 1 and rising
- **Purple**: Neutral zone rising
- **Transparent green**: Z-Score falling (any level)
### Background Zones
- **Intense red**: Extreme overbought (Z > 3)
- **Soft orange**: Overbought (Z > 2)
- **Intense green**: Extreme oversold (Z < -3)
- **Soft lime**: Oversold (Z < -2)
### Info Table (top right corner)
Shows in real-time:
- **Current Z-Score**: Numeric value with color
- **Status**: Extreme OB/OS, Overbought, Oversold, or Neutral
- **Momentum**: Rising ↗ or Falling ↘
- **Mean**: Current average value
- **Std Dev**: Current standard deviation
---
## Alert System
The indicator includes **8 types of alerts**:
1. **Buy Signal**: When entry conditions are met
2. **Sell Signal**: When exit conditions are met
3. **Overbought**: When crossing above +2.0
4. **Oversold**: When crossing below -2.0
5. **Extreme Overbought**: When reaching +3.0
6. **Extreme Oversold**: When reaching -3.0
7. **Bullish Divergence**: Potential reversal up
8. **Bearish Divergence**: Potential reversal down
---
## How to Use It
### **Mean Reversion Strategy**
1. Wait for Z-Score to reach ±2 or beyond
2. Wait for BUY/SELL signal (momentum reversal)
3. Enter trade in opposite direction of extreme
4. Exit when Z-Score returns to zero
### **Divergence Strategy**
1. Identify divergence markers (DIV)
2. Confirm with momentum change
3. Enter in direction of divergence
4. Use Z-Score levels as targets
### **Multi-Timeframe Analysis**
- **Short-term** (5-15 min): Scalping with aggressive mode
- **Medium-term** (1H-4H): Swing trading with normal mode
- **Long-term** (Daily): Position trading with conservative mode
---
## Best Practices
**Do**:
- Use in ranging/sideways markets
- Combine with support/resistance levels
- Wait for momentum confirmation
- Use conservative mode in trending markets
**Don't**:
- Trade against strong trends
- Ignore divergences
- Use alone without confirmation
- Over-trade in low volatility
---
## Statistical Background
The Z-Score follows a **normal distribution**:
- **68%** of values fall within ±1 standard deviation
- **95%** of values fall within ±2 standard deviations
- **99.7%** of values fall within ±3 standard deviations
When price reaches Z = ±2, there's a **95% probability** it will revert toward the mean, making it a powerful mean reversion tool.
---
##Customization Options
All aspects are customizable:
- Calculation method and periods
- Visual colors and transparency
- Signal sensitivity
- Alert preferences
- Level thresholds
- Background zones on/off
Pine Script® indicator






















