Auto Step Horizontal LinesAuto Step Horizontal lines by custom range
Create automatic horizontal lines by specifying the price range for each line, with each line serving as an observation point for support and resistance levels.
Indicadores e estratégias
Exponential Regression Log ResidualThis custom indicator measures the logarithmic residual between the current price and an exponential regression line, offering insights into relative overbought and oversold conditions on a logarithmic scale. It can be especially useful when analyzing assets that move exponentially over time, such as growth stocks or cryptocurrencies.
Nifty/BankNifty Scanner - RSI, MACD, BB, VWAP1. RSI (Relative Strength Index)
Purpose: Measures market momentum and identifies overbought (>70) or oversold (<30) conditions.
Benefit: Helps catch potential reversal zones or trend exhaustion points.
📈 2. MACD (Moving Average Convergence Divergence)
Purpose: Detects changes in trend direction via crossovers of the MACD line and signal line.
Benefit: Flags bullish and bearish momentum shifts, useful for confirming trade entries/exits.
📉 3. Bollinger Bands
Purpose: Shows volatility using a moving average with upper/lower bands.
Benefit: When price touches the upper/lower bands, it may indicate overextended conditions—potential reversal or breakout areas.
🟠 4. VWAP (Volume Weighted Average Price)
Purpose: Tracks the average price traded based on both volume and price.
Benefit: Acts as a dynamic support/resistance level, especially useful for intraday trading in Nifty/Bank Nifty. Crossing VWAP often signals institutional buying/selling zones.
✅ Overall Benefits
Combines momentum, trend, volatility, and volume-based signals
Helps in multi-angle analysis—confirming trades with multiple indicators
Useful for intraday and swing trading on Nifty/Bank Nifty
Clean visuals and alerts make decision-making faster
First 5-Min Candle Targetssquare root of first five minute candle closing price and target of 45 deg
market relative strengthOverview
market relative strength is a custom indicator that visualizes how strong or weak a given asset is compared to a selected market benchmark — such as KOSPI, NASDAQ100, BTC dominance, or total crypto market cap.
How It Works
The indicator calculates the relative return between the current asset and the selected benchmark over a user-defined period. It then normalizes the difference into a 0–100 score:
Above 50 = outperforming the market
Below 50 = underperforming the market
Above 70 / Below 30 = strong divergence from market trend
Use Case
This is ideal for identifying assets with strong relative performance, detecting trend leaders or laggards, and rotating positions between sectors or assets based on strength.
Customization
Choose from a list of market indexes or crypto metrics
Set the comparison period and normalization range
Visual cues with background shading for strong/weak zones
Note
This is not the same as RSI. This indicator is based on relative performance to a benchmark, not price momentum.
SMART MONEY CheckListIndicator 4 my Twins 😍
It's meant to simplify top-down analysis.
Do you have more "Yes" than "No" and your setup is there?
Let's fckn goooo!!!
😆😆😆
Fibonacci Levels with MACD ConfirmationHow to Understand and Use the Fibonacci Levels with MACD Confirmation Script
This custom Pine Script is designed to give traders a clear visual framework by combining dynamic Fibonacci retracement levels, MACD histogram confirmation, and volatility-based swing zones. It aims to simplify trend analysis, improve entry timing, and adapt to various market conditions.
How to Interpret the 23.6% & 61.8% Labels
These Fibonacci levels represent key retracement zones where price often reacts during trend pullbacks or reversals.
The 23.6% level indicates a shallow retracement, useful in strong trends where price resumes early.
The 61.8% level is a deeper retracement, often a "last line of defense" before trend invalidation.
The script labels these zones with "CC 23.6" and "CC 61.8" when the price crosses them with MACD histogram confirmation:
Green label (CC) = bullish confirmation
Red label (CC) = bearish confirmation
How to Modify Inputs (Manual Adjustments)
Input Purpose Default How to Use
ATR Period Measures volatility 14 Increase for smoother, slower reactions; reduce for faster swings
Min Lookback Minimum bars for swing zone 20 Avoids short-term noise
Max Lookback Cap for swing zone scan 100 Avoids excessively wide retracement levels
Inverse Candle Chart Flips high/low logic false Enable for inverted analysis or backtesting "opposite logic"
How to Use the Inverse Candle Chart Option
Activating inverse mode flips candle logic:
Highs become negative lows, and vice versa.
Useful for:
Contrarian analysis
Inverse ETFs or short-biased views
Backtesting reverse-pattern behavior
How to Adjust the Style
You can manually personalize the script’s visual appearance:
Change line width in plot(..., linewidth=2) for bolder or thinner Fib levels.
Change colors from color.green, color.red, etc., to suit your theme.
Modify label.size, label.style, and label.color for different labeling visuals.
Customize MACD histogram style from plot.style_columns to other styles like style_histogram.
How the MACD is Set and Displayed
The MACD uses non-standard values:
Fast Length = 24
Slow Length = 52
Signal Smoothing = 18
These values slow down the indicator, reducing noise and aligning better with medium- to long-term trends.
MACD histogram is plotted directly on the main chart for faster, on-screen decision making.
Color-coded histogram:
Green/Lime = Bullish momentum increasing or steady
Red/Maroon = Bearish momentum increasing or steady
How to Use the Indicator in Real-World Trading
This indicator is most effective when used to:
✅ 1. Spot High-Probability Trend Continuation Zones
In a strong trend, price will often retrace to 23.6% or 61.8%, then resume.
Wait for:
Price to cross 23.6 or 61.8
MACD histogram rising (bullish) or falling (bearish)
"CC 23.6" or "CC 61.8" label to appear
🟢 Entry Example: Price retraces to Fib 61.8%, crosses up with green MACD histogram → take long position
✅ 2. Validate Reversal or Breakout Zones
These Fib levels also act as support/resistance.
If price crosses a Fib level but MACD fails to confirm, it may be a fake breakout.
Use confirmation labels only when MACD aligns.
✅ 3. Add Volatility Context (ATR) for Risk Management
The ATR label shows both value and %.
Use ATR to:
Set dynamic stop-losses (e.g., 1.5x ATR below entry)
Decide trade size based on volatility
How to Combine the Indicator With Other Tools
You can combine this script with other technical tools for a powerful trading framework:
🔁 With Moving Averages
Use 50/200 MA for overall trend direction
Take signals only in the direction of MA slope
🔄 With Price Action Patterns
Use the Fib/MACD signals at confluence points:
Support/resistance zones
Breakout retests
Candlestick patterns (pin bars, engulfing)
🔺 With Volume or Order Flow
Combine with volume spikes or order book signals
Confirm that Fib/MACD signals align with strong volume for conviction
✅ Trade Setup Summary
Criteria Long Setup Short Setup
Price at Fib Level At or crossing Fib 23.6 / 61.8 Same
MACD Histogram Rising and above previous bar Falling and below previous bar
Label Appears Green "CC 23.6" or "CC 61.8" Red "CC 23.6" or "CC 61.8"
Optional Filters Trend direction, ATR range, volume, price pattern Same
Volume-Price Momentum IndicatorVolume-Price Momentum Indicator (VPMI)
Overview
The Volume-Price Momentum Indicator (VPMI), developed by Kevin Svenson , is a powerful technical analysis tool designed to identify strong bullish and bearish momentum in price movements, driven by volume dynamics. By analyzing price changes and volume surges over a user-defined lookback period, VPMI highlights potential trend shifts and continuation patterns through a smoothed histogram, optional labels, and background highlights. Ideal for traders seeking to capture momentum-driven opportunities, VPMI is suitable for various markets, including stocks, forex, and cryptocurrencies.
How It Works
VPMI calculates the difference between volume-weighted buying and selling pressure based on price changes over a specified lookback period. It amplifies signals during high-volume periods, applies smoothing to reduce noise, and uses momentum checks to detect sustained trends.
Indicator display:
A histogram that oscillates above (bullish) or below (bearish) a zero line, with brighter colors indicating stronger momentum and faded colors for weaker signals.
Optional labels ("Bullish" or "Bearish") to mark significant momentum shifts.
Optional background highlights to visually emphasize strong trend conditions.
Alerts to notify users when strong bullish or bearish momentum is detected.
Key Features
Customizable Settings:
Adjust the lookback period, volume threshold, momentum length, and smoothing to suit your trading style.
Volume Sensitivity:
Emphasizes price movements during high-volume surges, enhancing signal reliability.
Momentum Detection: Uses linear regression and momentum change to confirm sustained trends, reducing false signals.
Visual Clarity:
Offers a clear histogram with color-coded signals, plus optional labels and backgrounds for enhanced chart readability.
Alerts:
Configurable alerts for strong momentum signals, enabling timely trade decisions.
Inputs and Customization
Lookback Period (Default: 9):
Sets the number of bars to analyze price changes. Higher values smooth signals but may lag.
Volume Threshold (Default: 1.4):
Defines the volume level (relative to a 20-period SMA) that qualifies as a surge, amplifying signals.
High Volume Multiplier (Default: 1.5):
Boosts histogram values during high-volume periods for stronger signals.
Histogram Smoothing Length (Default: 4):
Controls the EMA smoothing applied to the histogram, reducing noise.
Momentum Check Length (Default: 4):
Sets the period for momentum trend analysis (recommended to be less than Lookback Period).
Momentum Threshold (Default: 6):
Defines the minimum momentum change required for strong signals.
Show Labels (Default: Off):
Toggle to display "Bullish" or "Bearish" labels on significant momentum shifts.
Show Backgrounds (Default: Off):
Toggle to highlight chart backgrounds during strong momentum periods.
Bullish/Bearish Colors:
Customize colors for bullish (default: green) and bearish (default: red) signals.
Faded Transparency (Default: 40):
Adjusts the transparency of weaker signals for visual distinction.
How to Use
Interpret Signals:
Above Zero (Green):
Indicates bullish momentum. Bright green suggests strong, sustained buying pressure.
Below Zero (Red):
Indicates bearish momentum. Bright red suggests strong, sustained selling pressure.
Faded Colors:
Weaker momentum, potentially signaling consolidation or trend exhaustion.
Enable Visuals:
Turn on "Show Labels" and "Show Backgrounds" in the settings for additional context on strong momentum signals.
Set Alerts:
Use the built-in alert conditions ("Strong Bullish Momentum" or "Strong Bearish Momentum") to receive notifications when significant trends emerge.
Combine with Other Tools:
Pair VPMI with support/resistance levels, trendlines, or other indicators (e.g., RSI, MACD) for confirmation.
Best Practices
Timeframe:
VPMI works on all timeframes, but shorter timeframes (e.g., 5m, 15m) may produce more signals, while longer timeframes (e.g., 1h, 4h, 1D) offer higher reliability.
Market Conditions:
Most effective in trending markets. In choppy or sideways markets, consider increasing the smoothing length or momentum threshold to filter noise.
Risk Management:
Always use VPMI signals in conjunction with a robust trading plan, including stop-losses and position sizing.
Limitations
Lagging Nature:
As a momentum indicator, VPMI may lag in fast-moving markets due to smoothing and lookback calculations.
False Signals:
In low-volume or ranging markets, signals may be less reliable. Adjust the volume threshold or momentum settings to improve accuracy.
Customization Required:
Optimal settings vary by asset and timeframe. Experiment with inputs to align with your trading strategy.
Why Use VPMI?
VPMI offers a unique blend of volume and price momentum analysis, making it a versatile tool for traders seeking to identify high-probability trend opportunities. Its customizable inputs, clear visuals, and alert capabilities empower users to tailor the indicator to their needs, whether for day trading, swing trading, or long-term analysis.
Get Started
Apply VPMI to your chart, tweak the settings to match your trading style, and start exploring momentum-driven opportunities. For questions or feedback, consult TradingView’s community forums or documentation. Happy trading!
SAC indicatorThis indicator is built on a filter for candles that meet a condition "SAC." To identify them on the chart, you can set an alert when the condition applies to the current candle that matches your preferred frame.
Momentum Table - Felipe📊 Momentum Table – By Felipe
This multi-timeframe momentum dashboard displays a clean and color-coded overview of key trend and momentum indicators across 6 major timeframes (5m to 1W), directly on your chart. It’s ideal for quickly identifying market strength, trend alignment, and potential reversals at a glance.
🔍 Features:
EMA Trend Check (EMA 9, 20, 100, 200):
Compares the current close against each EMA.
✅ Green check = price is above the EMA (bullish bias).
🔻 Red arrow = price is below the EMA (bearish bias).
Visual trend alignment helps you spot strong directional setups.
RSI (Relative Strength Index):
Displays current RSI (14) value per timeframe.
Background color highlights momentum conditions:
🔴 Red = Overbought (>70)
🟢 Green = Oversold (<30)
⚪ Gray = Neutral
Stochastic RSI:
Uses Stoch RSI applied to RSI (14) for sensitivity.
Background color follows the same logic as RSI for quick visual cues.
Compact Visual Table:
Located in the bottom-right corner.
Clean design with headers and rows labeled by timeframe.
Helps traders monitor trend and momentum confluence across multiple timeframes in real time.
This tool supports momentum-based strategies, EMA stacking confirmation, and multi-timeframe alignment, making it ideal for scalpers, swing traders, and trend followers alike.
US30 Smart Money 5M/4H Strategy🧠 How It Works
✅ 1. 4H Trend Bias Detection
Uses the 4-hour chart (internally) to determine if the market is in an uptrend or downtrend.
Background turns green for bullish trend, red for bearish trend.
This helps filter trades — only take longs during uptrend, shorts during downtrend.
✅ 2. Liquidity Sweeps (Stop Hunts) on 5M
Highlights candles that break previous highs/lows and then reverse (typical of institutional stop raids).
Draws a shaded red box above sweep-high candles and green box under sweep-lows.
These indicate key reversal zones.
✅ 3. Order Block Zones
Detects bullish/bearish engulfing patterns after liquidity sweeps.
Draws a supply or demand zone box extending forward.
These zones show where institutions likely placed large orders.
✅ 4. FVG Midpoint from 30-Min Chart
Detects Fair Value Gaps (imbalances) on the 30-minute chart.
Plots a line at the midpoint of the gap (EQ level), which is often revisited for entries or rejections.
✅ 5. Buy/Sell Signals (Non-Repainting)
Buy = 4H uptrend + 5M liquidity sweep low + bullish engulfing candle.
Sell = 4H downtrend + 5M liquidity sweep high + bearish engulfing.
Prints green “BUY” or red “SELL” label on the chart — these do not repaint.
📈 How to Use It
Wait for trend bias — only take trades in the direction of the 4H trend.
Watch for liquidity sweep boxes — these hint a stop hunt just occurred.
Look for a signal label (BUY/SELL) — confirms entry criteria.
Use FVG EQ lines & Order Block zones as confluence or targets.
Take trades after NY open (9:30 AM EST) for best momentum.
EMA Oscillating Trend📈 EMA Oscillating Trend by AI-123
The EMA Oscillating Trend indicator is a dynamic trend visualizer that enhances traditional EMA behavior by offsetting the line based on trend direction, providing a more intuitive and visually distinct representation of market momentum.
🔍 Key Features:
🔵 Bullish Color Customization – Define your preferred color for bullish trends
🔴 Bearish Color Customization – Set a different tone for bearish phases
🪄 Adjustable Line Thickness – Tailor the EMA's appearance to your chart style
📐 Offset Multiplier Input – Automatically pushes the EMA above price in a downtrend and below price in an uptrend for enhanced clarity
⚙️ User-Friendly Inputs – No coding knowledge required; full customization in the settings panel
🧠 How It Works:
Calculates a primary EMA line (OV) and a sub-component to compare against (OV2)
Determines the trend based on whether OV is above or below OV2
Shifts the EMA line above price during bearish trends and below price during bullish trends
The offset is percentage-based and scales dynamically with the price for optimal readability
✅ Ideal For:
Trend-followers seeking visual clarity
Discretionary traders who want less clutter and more signal
Anyone who likes their EMAs with a little more flair and insight
🛠️ Author: @alphainvestor123
This tool was crafted with simplicity and clarity in mind. If you enjoy the indicator, consider dropping feedback or sharing your use case!
EMA‑Based Trend Detector v1EMA cross over based trend detection. It uses 50, 90, and 200 EMAs, the current price. By taking into account their relative positions, it determines current trend using predetermined rules.
Daily High-Low Range BoxesGenerated by ChatGPT: "Please write me an indicator that draws boxes, showing the high-to-low range of each trading day. Boxes are colored based on price direction: green when the current price is above the day's opening price (bullish) and red when the current price is below the day's opening price (bearish)"
Monday Range (Lines) with Fib LevelsMonday Range with Fibonacci Levels Indicator - Description
This advanced TradingView indicator combines the power of Monday Range analysis with Fibonacci extension levels to help traders identify key weekly support and resistance zones.
Key Features:
Monday Range Detection:
Automatically detects and plots the high and low of each Monday's trading range (configurable for Sunday open markets)
Displays customizable horizontal lines for the weekly opening range
Adjustable lookback period (1-52 weeks)
Fibonacci Extension Levels:
Plots 9 key Fibonacci levels (-1.618, -1.272, -0.618, 0, 0.5, 1, 1.618, 2.272, 2.618) relative to Monday's range
Each Fib level is fully customizable (color, visibility, label)
Negative Fib levels extend below Monday low for potential reversal zones
Customizable Visuals:
Choose between solid, dotted or dashed line styles
Adjustable line thickness and colors
Configurable label text and positioning
Toggle individual elements on/off as needed
How Traders Use It:
Swing Traders: Identify weekly support/resistance levels for trade entries and exits
Breakout Traders: Watch for price reactions at Fibonacci extension levels beyond Monday's range
Mean Reversion Traders: Use negative Fib levels as potential reversal zones
Institutional Flow Analysis: Monitor how price reacts at key weekly levels
Settings Overview:
Market Open Day selection (Sunday/Monday)
Number of historical weeks to display (1-52)
Complete styling control for all lines and labels
Individual toggle controls for each Fibonacci level
Why It's Unique:
This indicator provides a rare combination of institutional weekly range analysis with mathematically precise Fibonacci extensions, giving traders a complete picture of both standard and extended price reaction zones that develop from the weekly opening range.
Perfect for forex, crypto, and index traders who want to incorporate weekly opening range strategies with Fibonacci price projection techniques.
Cuerpo total de Velas Alcistas vs BajistasGenerated by ChatGPT -write an indicator that counts the last x bars (parameter that can be adjustable by user) and measures the body of the bullish and bearish candles. So loop through the last x candles (parameter that can be adjustable by user), measure each body size, and add them to eather a bullish or bearish total
London ORB + Session High/Low + FVGLondon ORB + Session High/Low + FVG
📘 Script Description: London ORB + Session High/Low + Fair Value Gap
This script is designed to assist intraday traders during the London session open by combining:
🕒 1. Opening Range Breakout (ORB)
Captures the high and low of the first 15-minute candle after the London open (08:00–08:15 GMT).
Draws lines and labels for the ORB High and Low levels.
Detects breakouts above or below the ORB and plots a triangle signal at the breakout bar.
🌐 2. Asian & US Session Levels
Automatically marks the highs and lows of the Asian (00:00–06:00 GMT) and US (13:30–20:00 GMT) sessions.
Useful for identifying prior session liquidity zones, key support/resistance levels, and potential reaction areas.
📉 3. Fair Value Gaps (FVG)
Highlights imbalances in price action between non-overlapping candles (also known as FVGs or inefficiencies).
Draws a shaded box between candles where gaps exist:
Green for bullish FVGs
Red for bearish FVGs
🔔 4. Alert Support
Optional alerts are built in for:
Long breakout (price breaks above ORB)
Short breakout (price breaks below ORB)
🎯 Use Case
Perfect for:
Day traders looking to capitalize on early volatility at the London open
Traders using liquidity-based strategies, retests, or gap-fills
Visualizing and aligning with prior session highs/lows for structure and context
BOS → FVG Combo Debug (15m, 1-bar v6)Once you’ve done those, you should start to see:
Yellow/Orange swing‑levels
Green▲/Red▼ where BOS fires
Aqua/Fuchsia● where an FVG appears one bar later
If you still see nothing, try loosening the filters (smaller gapPerc, shorter lookback) or switching symbols until the debug markers appear.
BOS ➝ FVG Combo (15m only, 1‑candle window)How it works:
Timeframe filter ensures nothing plots except on a 15 min chart.
bos_fvg_window = 1 hard‑codes the gap to appear within one candle of the BOS.
It marks BOS (triangles) and then only the FVG that occur in the very next bar (circles).
To use:
Open your 15 min chart in TradingView.
Open the Pine Editor, paste in this script.
Click “Add to Chart”.
Let me know if you’d like to add alerts, entry/exit rules, or any session/time‑of‑day filters!
NR - Price-Action Long/Short [PALS]PALS (acronym for Price Action Long Short ) is a simplified view of Price Action
that computes relative movement of OHLC values (from chart) between consecutive bars to mark probable Long/Short signals on the price chart.
Combining PALS with Heikin-Ashi charts and SuperTrend(5, 1.432) is recommended but not mandatory.
Inspiration for this script comes from Buy/Sell Indicator by Prakash EEE:
What PALS does and why?
Search for simplification of the complex ema of ema based range shrinking logic learnt from Prakash's approach led to -
- the simpler comparison of a two-bar average over previous close and current open with an average of current OHLC values (giving less weight to the opens and more weight to the rest of them).
Crossovers between those two oscillating relative values (difference between the two averages being positive or negative) is the main logic.
PALS marks places where probable long or short trades may be setting up.
How to use PALS?
During trending phases the opposing signals may be used as areas where profit booking could be done while same side signals marking the re-entry/adding to the open positions.
Pairing PALS with a SuperTrend could help in filtering out the frequent turn arounds marked by PALS during sideways phase.
Adding more confirmations could improve the probable yet relatively longer lasting short-term signals.
Impulse Volume Oscillator [Alpha Extract]Impulse Volume Oscillator
A sophisticated indicator designed to identify market impulse moves and volume-based momentum shifts, helping traders capture significant price movements with precision.
Combining price deviations with volume analysis, this oscillator dynamically measures market strength and weakness, providing clear signals for potential trend continuations and reversals.
🔶 Volume-Adjusted Normalization
Utilizes a unique normalization technique that incorporates volume impact to enhance signal quality. This approach ensures the indicator responds more strongly to high-volume price movements while filtering out low-volume noise.
vol_ratio = ta.rsi(volume, 14) / 50
vol_factor = vol_impact > 0 ? 1 + (vol_ratio - 1) * vol_impact : 1
raw_normalized = dev / (ta.stdev(source, bars) * mult)
vol_adjusted = raw_normalized * vol_factor
normalized = ta.sma(vol_adjusted, smooth)
🔶 Adaptive Regime Detection
Incorporates threshold-based regime identification that clearly distinguishes between trending and mean-reverting market conditions. The customizable threshold system allows traders to adapt to different market volatilities and timeframes.
🔶 Customizable Parameters
Fine-tune detection sensitivity with adjustable inputs for lookback period, standard deviation multiplier, volume impact, and signal smoothing. These parameters enable traders to optimize the indicator for various trading styles and market conditions.
❓How It Works
🔶 Impulse Calculation
The oscillator measures price deviation from a moving average baseline, normalized by standard deviation, and then adjusts the signal based on relative volume strength. This creates a responsive yet stable indicator that accurately reflects market momentum.
// Calculate the basis using the selected MA
basis = get_ma(source, bars)
// Calculate the normalized value with volume impact
dev = source - basis
🔶 Dynamic Visualization
The histogram changes color based on signal strength, providing instant visual cues about market conditions. Green bars indicate positive momentum while red bars represent negative momentum, with color intensity reflecting signal strength.
🔶 Trend Confirmation
Built-in trend direction analysis provides confluence with the primary signal, helping traders distinguish between counter-trend bounces and genuine trend reversals. This dual-confirmation approach significantly reduces false signals.
🔶 Visual Alerts & Boundary Tracking
Monitors signal extremes and dynamically adjusts visualization transparency based on signal strength. The indicator highlights particularly strong impulse moves with background shading, making potential trading opportunities immediately apparent.
🔶 Custom Candle Coloring
Optional candle coloring applies the same color logic as the histogram directly to price candles, providing a unified visual framework that helps traders correlate indicator signals with price action.
🔶 Momentum Shift Detection
Automatically identifies important zero-line crossovers that often signify the beginning of new impulse moves. These transition points frequently offer favorable risk/reward entry opportunities.
🔶 Snapshot samples
1 Week
1 Day
15 Min
🔶 Why Choose AE - Impulse Volume Oscillator?
This indicator provides a comprehensive approach to identifying significant market moves by combining volume analysis with price momentum. By offering clear visual signals for both trend continuation and reversal scenarios, it empowers traders to make more informed decisions across various market conditions and timeframes.
Z-Score V2Z-Score Reversal Indicator for TradingView
Catch Overextended Trends & Potential Reversals Using Statistical Z-Scores
📌 Overview
This indicator calculates the Z-score of price movements, helping traders identify overbought and oversold conditions based on standard deviations from the mean.
Plots the Z-score (forest green line) to visualize momentum strength.
Key levels at ±1, ±2, ±3 standard deviations (dashed white lines) highlight potential reversal zones.
Customizable lookback period to adjust sensitivity.
Ideal for:
Mean-reversion strategies
Trend exhaustion detection
Breakout confirmation
📊 How It Works (The Math Behind It)
The Z-score measures how far the current price is from its mean, normalized by standard deviation.
🔹 Formula:
Z = (X − μ) / σ
X = Current price (or selected source)
μ = Simple Moving Average (SMA) over the lookback period
σ = Standard deviation over the lookback period
🎯 Trading Applications
Reversal Trading (Mean Reversion):
Short near +2 or +3 (expecting a pullback toward the mean).
Long near -2 or -3 (expecting a bounce toward the mean).
Trend Continuation (Breakout Confirmation):
If price breaks above +2 or +3, momentum may continue further.
If price breaks below -2 or -3, downtrend may accelerate.
Divergence Detection:
If price makes a new high but Z-score fails to reach prior highs, weakening momentum (bearish divergence).
If price makes a new low but Z-score fails to reach prior lows, potential bullish reversal.
⚙️ Customization Options
Adjustable Lookback Period – Modify sensitivity (shorter = more responsive, longer = smoother).
Source Selection – Apply to close, open, hl2, etc.
Clean Visuals – Plotlines do not distort scaling (only Z-score affects autofit).