Green/Red Candle Conditional Probability V2Conditional Next-Candle Probability Analyzer
This indicator calculates the historical probability of the next candle being green based on current market conditions. Unlike simple candle counters, it tracks conditional probabilities.
How It Works:
Monitors 20+ market conditions across trend, momentum, volatility, volume, and candle patterns
For each condition, tracks: "When this was true, what % of next candles were green?"
Combines active conditions into a weighted probability prediction
Weights by sample size (more historical data = more influence)
Conditions Tracked:
Trend alignment (EMA 7 / SMA 20 / SMA 200)
RSI levels and momentum
MACD position, histogram, and crosses
Consecutive candle streaks (3-4 in a row)
Bollinger Band touches and squeeze/expansion
Volume spikes and anomalies
Large candles and rejection wicks
Table Display:
P(Grn): Probability next candle is green when condition is active
Edge: Deviation from 50% (how predictive the condition is)
N: Sample size (historical occurrences)
► marks currently active conditions
Signals:
Plots arrows when multiple conditions align with sufficient confidence (configurable threshold).
Use Cases:
Identify which setups have actual predictive value on your asset/timeframe
Find confluence zones where multiple high-edge conditions align
Backtest mean-reversion vs momentum characteristics
Note: Edges are typically small (2-5%). Best used for confluence confirmation, not standalone signals.
Análisis de tendencia
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
Risk AlignmentRisk Alignment evaluates whether market conditions favor risk-on or risk-off behavior by assessing the alignment of BTC and the OTHERS index.
It uses two independent signals: the direction of the 12/25 EMA stack and price position relative to those EMAs, each classified as bullish, bearish, or neutral.
These signals are combined into a six-state regime framework:
Bullish, Neutral-Bullish, Conflicting, Neutral-Bearish, Bearish, or No Signal
This provides a clear hierarchy of conviction rather than a binary output.
It is designed to function as a top-down macro filter, helping traders gate exposure, size risk, and avoid periods of structural disagreement.
It is best used as a regime context layer, not as a standalone entry signal.
[Saga Trading] Moving Average ProThis open-source indicator provides trend and market structure context using multiple moving averages.
It allows traders to visualize several moving averages simultaneously, with configurable calculation methods (EMA, SMA, or RMA), in order to better assess trend alignment, momentum, and structural bias.
Common references such as the 50-period and 200-period averages are included because they are widely observed by market participants. Crossovers between these averages (often referred to as golden or death crosses) are displayed as structural information only and should not be interpreted as trading signals.
The purpose of this tool is to help traders understand market structure and trend context, not to generate entries or exits.
This indicator is intended for educational and analytical purposes and should be used alongside price action and broader market analysis.
Bob's Whale Hunter - V7 (Jorge's Algo)Trade like a whale, not the bait.
The Whale Hunter V7 is a high-performance toolkit specifically engineered for traders following Smart Money Concepts (SMC) and Institutional Price Action. This indicator automates the identification of high-probability zones based on the AMD (Accumulation, Manipulation, Distribution) cycle.
🚀 Key Features:
Institutional Liquidity Sweeps: Automatically detects liquidity grabs at key highs and lows. These are the exact spots where institutional "whales" enter the market by triggering retail stop losses.
Dynamic Fair Value Gaps (FVG): Highlights market imbalances that act as price magnets. This allows you to time your entries during the "rebalance" with surgical precision.
Multi-Timeframe Dashboard (HTF Matrix): A real-time panel showing the Macro bias (4H) versus the Entry trend (15m). Stay aligned with the higher-timeframe order flow at all times.
Elite Market Structure: An institutional-grade trend filter that shifts color based on market dominance, helping you distinguish between a deep retracement and a true trend reversal.
🛠 How to Trade it (The Institutional Checklist):
Macro Alignment: Check the Dashboard. If 4H is green, look for buy setups only. Never trade against the "Big Money" flow.
Identify the Sweep: Wait for the triangle signal (Sweep). This confirms that liquidity has been cleared and the "Manipulation Phase" is likely complete.
The Trigger (FVG): Once a Break of Structure (ChoCH) occurs after the sweep, look for entries within the highlighted FVG boxes that align with your OTE (Optimal Trade Entry) Fibonacci levels.
Targeting: Aim for the opposing liquidity pools or the next institutional level identified by the script.
"Trading is a game of probabilities. Follow the footprints left by the giants."
Daily Move Percentile + StdDevDaily Move Percentile + Standard Deviation
Quantifies how unusual today's price move is relative to historical norms, combining percentile ranking with standard deviation analysis. Designed for volatile assets like biotech where contextualizing moves against typical volatility is essential.
How it works:
Calculates daily percentage change
Ranks today's move against the historical distribution (percentile)
Measures how many standard deviations from the mean (z-score)
Displays average volatility so you can contextualize whether a move is normal for this specific stock
Color coding:
Teal: 95th+ percentile up move — rare upside
Red: 95th+ percentile down move — rare downside
Lime: 80th-95th percentile up move — notable upside
Orange: 80th-95th percentile down move — notable downside
Gray: Normal volatility — nothing unusual
Information table (top right):
Today's move (%)
Percentile rank (how unusual)
Standard deviations (z-score)
Average volatility (typical daily move for this stock)
1 Std Dev (baseline volatility measure)
Use cases:
Identify statistically significant moves worth investigating
Contextualize moves against stock-specific volatility (a -5% day means different things for different stocks)
Spot potential mean-reversion setups after extreme moves
Monitor portfolio names for unusual activity
Recommended settings:
30-60 day lookback for volatile biotech
252 day lookback for stable, large-cap names
CTR Dual Custom MAs + PullbacksUsing this is helping me get in on the pullbacks by watching my higher frame charts and exciting on the lower timeframes. Those interested in learning my trading strategy using this indicator reach out and message back and I will connect with you through my Discord channel. It's free so no worries there.
Impulse Trend ArrowsThis indicator is a volatility-normalized momentum + trend state tool designed to provide a clean “market regime” read: UP / DOWN / NEUTRAL, with optional visual confirmation on the chart. Works on collection of clasic indicators and some simple math.
⚙️ How it works (logic)
1) Adaptive baseline
The core reference line is an EMA(basisLen) acting as a dynamic equilibrium price. You can treat this setting as a sensitivity for entire thing.
2) ATR volatility envelope
An ATR channel is built around the baseline:
Upper Band = EMA + (ATR × multiplier)
Lower Band = EMA − (ATR × multiplier)
This scales signals to current volatility (tight markets vs. fast markets).
3) “Impulse” detection
Bull impulse when price is above both the baseline and the upper ATR band.
Bear impulse when price is below both the baseline and the lower ATR band.
4) Momentum confirmation (filters)
Signals are confirmed only when momentum agrees:
RSI must be on the correct side of 50
MACD Histogram must match direction (positive for bullish / negative for bearish)
So a signal requires price expansion (ATR breakout) + momentum agreement (RSI + MACD).
🧭 Trend state behavior
When a new BUY/SELL impulse is confirmed, the script updates a persistent trend state (“BUY”, “SELL”, or “NONE”).
That state stays active until the opposite confirmed impulse appears.
✅ Visuals & Usage
Made some minor, mostly visual upgrades on this release:
Baseline + ATR bands are smoothed for cleaner visuals.
Optional BUY/SELL arrows are plotted outside the channel to avoid overlap with channel.
Optional full-chart background shading reflects the current trend state:
Green = UPTREND
Red = DOWNTREND
A minimal top panel shows the current regime (UP / DOWN / NEUTRAL).
I also recently added this channel smoother parameter (for Dragon Channel), if you want it to have less spikes on those MAs just use the bigger number, I picked 8 for default.
Actualy its as simple as just follow the arrows direction, given the correct settings with slightly higher basisLen on higher TFs you can get prety accurate long shots. Ofcourse you can still can get random signals or noise on lower TFs, so it can be used as a background trend/momentum confirmation layer alongside your other favorite indicators or strategy tools.
PDH & PDLDescription (Copy & Paste)
Overview This is a lightweight, optimized indicator that displays the Previous Day High (PDH) and Previous Day Low (PDL) on intraday charts.
These levels are critical reference points for day traders, acting as key liquidity pools where price often reacts. Whether you are trading Mean Reversion (fading the edges) or Momentum (breakouts), knowing exactly where yesterday's auction limits were is essential context.
Key Features
Historical Accuracy: Plots historical levels using step-line style, allowing you to backtest how price reacted to PDH/PDL in the past.
Zero Clutter (V2 Optimization): Unlike standard indicators that spam labels on every bar, this version uses efficient var label logic. It maintains a single label instance that stays pinned to the current price action, keeping your chart clean.
Multi-Timeframe Ready: Fetches Daily data correctly regardless of your intraday timeframe (1m, 5m, 15m, etc.).
Fully Customizable: Toggle history lines or current labels on/off and adjust colors/width to fit your theme.
How to Use
Context: Use these levels to determine market sentiment. Opening above PDH suggests bullish imbalance; opening inside the range suggests balance/chop.
Entry Triggers: Watch for "Rejection" (wicks) or "Acceptance" (strong closes) at these lines.
Breakout: Price closes firmly outside the level with volume.
Reversal: Price sweeps the level and immediately reclaims the range.
Settings
Show Historical Levels: Enable to see the levels for previous days (useful for backtesting).
Show Current Labels: Enable to see the price tags on the hard right edge.
Stochastic Momentum Index - SMI🎯 Overview
This is a Stochastic Momentum Index (SMI) indicator that combines stochastic momentum with moving average smoothing to identify trend direction and momentum strength in financial markets. The SMI measures where the current price closes relative to the midpoint of its recent trading range, providing enhanced sensitivity to price momentum.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.stoch() function
📈 Range-Based: Compares closing price to high-low range over specified period
🎯 Scale: Oscillates between 0-100 with 50 as neutral midpoint
2. 🎛️ Configuration Parameters
📏 SMI Length: Default 101 periods (long-term smoothing)
📊 Source Price: Customizable (default = Close)
📈 MA Length: 30-period moving average applied to SMI
🔄 MA Type: 6 options (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes (Classic, Modern, Robust, Accented, Monochrome)
📈 Signal Interpretation:
🟢 BULLISH: SMI > 50 (price closing in upper half of range)
🔴 BEARISH: SMI < 50 (price closing in lower half of range)
🎯 Neutral Zone: Around 50 indicates balanced momentum
👁️ Visual Features
📈 Signal Line (MA):
Yellow moving average of SMI
Smooths momentum for clearer trend identification
🎯 Reference Lines:
50-level midpoint (white dashed line)
0-100 scale boundaries
🎨 Fill Zones:
🟢 Upper Zone : Bullish momentum area
🔴 Lower Zone : Bearish momentum area
Gradient fills enhance visual clarity
📋 Dashboard Display:
Content: "⬆️ Bullish" or "⬇️ Bearish" indicator
Purpose: Quick market bias assessment
⚡ Trading Applications
📈 Primary Uses:
🎯 Trend Identification
SMI > 50 = Uptrend momentum
SMI < 50 = Downtrend momentum
📊 Momentum Strength
Values near 100 = Strong bullish momentum
Values near 0 = Strong bearish momentum
Values around 50 = Neutral/consolidation
🔄 Mean Reversion
Extreme readings (near 0 or 100) may indicate overbought/oversold conditions
⏰ Timeframe Compatibility:
📅 Long-term: 101-period default suits swing/position trading
📊 Medium-term: Adjust lengths for daily/weekly analysis
⚡ Short-term: Reduce periods for intraday trading
🎨 Customization Options
🔄 Moving Average Types:
📉 EMA: Exponential - responsive to recent changes
📊 SMA: Simple - equal weight to all periods
📈 RMA: Relative - TradingView's special moving average
⚖️ WMA: Weighted - emphasizes recent data
💎 VWMA: Volume-weighted - incorporates volume
🚀 HMA: Hull - reduces lag significantly
🎨 Visual Themes:
🎨 Classic: Green/Red (traditional trading colors)
🚀 Modern: Cyan/Purple (modern aesthetic)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when SMI crosses above 50
🔴 SHORT Alert: Triggers when SMI crosses below 50
📧 Format: Includes ticker symbol for easy identification
⚡ Key Advantages
✅ Strengths:
🎯 Clear Signals: Simple >50/<50 threshold for easy interpretation
📊 Range-Bound: Always oscillates 0-100 (no divergence issues)
👁️ Visual Clarity: Color-coded zones make analysis intuitive
🔄 Customizable: Multiple MA types and visual themes
📱 Professional: Clean, organized display suitable for all traders
Commodity Channel Index - CCI🎯 Overview
This is an enhanced Commodity Channel Index (CCI) indicator that transforms the traditional CCI into a centerline-focused momentum tool with moving average smoothing and comprehensive visual enhancements. Unlike standard CCI which uses ±100 levels, this version focuses on the 50-level centerline for clearer trend direction signals.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.cci() function
📈 Statistical Approach: Measures current price relative to statistical mean
🎯 Scale Modification: Focuses on 50 as neutral (unlike traditional ±100)
📏 Default Length: 55 periods (optimal for medium-term trends)
2. 🎛️ Configuration Parameters
📏 CCI Length: Default 55 periods
📈 CCI MA Length: 30-period moving average
🔄 MA Type: 6 options (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes matching your other indicators
📈 Signal Interpretation:
🟢 BULLISH: CCI > 50 (price above statistical mean)
🔴 BEARISH: CCI < 50 (price below statistical mean)
👁️ Visual Features
📉 Chart Elements:
📊 Main CCI Line:
Shows raw CCI momentum
📈 Signal Line (CCI MA):
Yellow moving average of CCI
30-period default provides smoothed trend
🎨 Fill Zones:
🟢 Upper Zone : Bullish momentum area
🔴 Lower Zone : Bearish momentum area
📋 Dashboard Display:
Content: "⬆️ Bullish" or "⬇️ Bearish" indicator
Purpose: Instant market bias assessment
⚡ Trading Applications
📈 Primary Uses:
🎯 Trend Direction Identification
CCI > 50 = Uptrend momentum
CCI < 50 = Downtrend momentum
📊 Extreme Momentum Detection
CCI > 100 = Strong bullish (traditional)
CCI < -100 = Strong bearish (traditional)
CCI near ±300 = Extreme conditions
🔄 Mean Reversion Opportunities
Useful in ranging markets
🎯 Signal Types:
📈 Trend-Following: Stay long when CCI > 50, short when < 50
🔄 Mean Reversion: Fade extreme readings (>100 or <-100)
⚡ Crossover Signals: CCI crossing 50 provides entry/exit points
🎨 Customization Options
🔄 Moving Average Types:
📉 EMA: Exponential - responsive to recent CCI changes
📊 SMA: Simple - smooths CCI equally
📈 RMA: Relative - TradingView's special MA
⚖️ WMA: Weighted - emphasizes recent CCI values
💎 VWMA: Volume-weighted - incorporates volume indirectly
🚀 HMA: Hull - reduces lag on CCI signals
🎨 Visual Themes: (Consistent with your suite)
🎨 Classic: Green/Red (traditional)
🚀 Modern: Cyan/Purple (contemporary)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when CCI > 50
🔴 SHORT Alert: Triggers when CCI < 50
📧 Format: Includes ticker symbol for portfolio tracking
⚡ Key Advantages
✅ Strengths:
🎯 Clear Centerline Focus: 50-level provides unambiguous trend direction
📊 Statistical Foundation: Based on mean deviation (more robust than simple oscillators)
👁️ Extreme Zone Visualization: ±300 boundaries show momentum extremes
🔄 Versatile Application: Works for both trend-following and mean reversion
📱 Professional Suite: Consistent design with your RSI and SMI indicators
⚡ Optimal Settings:
📈 Trending Markets: 55-period CCI (default)
🔄 Ranging Markets: Shorter periods (20-30)
📊 Volatile Markets: Longer periods (80-100)
📱 Day Trading: 20-period with EMA smoothing
🏆 Unique Features:
Statistical Rigor: Based on mean deviation (not just price differences)
Wide Range: ±300 scale captures extreme movements
Centerline Focus: Clear binary trend signals
Visual Harmony: Consistent with your indicator suite design
This CCI indicator provides a statistically robust approach to trend identification while maintaining the visual consistency and user-friendly design of your trading suite! 📊✨
AVSL - XAUUSD M1 OptimizedCredit to Rafka.
This script is optimized for XAUUSDT.P 1-minute trading based on AVSL Indicator from Rafka.
Smooth MTF EMA Cloud - ProEma cloud that has multiple time frames and is smoothed. No choppy outlines on the ema resolution between different time frames.
Relative Strength Index - RSI🎯 Overview
This is an enhanced Relative Strength Index (RSI) indicator for TradingView that combines traditional RSI analysis with a moving average overlay to generate more reliable trading signals ⚡
🧩 Core Components
1. ⚙️ Indicator Settings
2. 🎛️ Input Parameters
A. 🎨 Color Settings:
5 different color themes: 🎨 Classic, 🚀 Modern, 💪 Robust, 🌈 Accented, ⚫⚪ Monochrome
Each theme provides distinct bullish/bearish color pairs
B. 📊 RSI Configuration:
📏 Length: Default 14 periods
📈 Source: Default close price (customizable)
📊 RSI MA Length: Default 365 periods
🔄 RSI MA Type: 6 options (EMA, SMA, RMA, WMA, VWMA, HMA)
C. 📢 Signal Display:
✅ Toggle for Bull/Bear crossover signals
📋 Table display showing current market bias
3. 🧮 Technical Calculations
A. 📈 RSI Calculation:
Standard RSI formula using ta.rsi()
Configurable source and period length
B. 📊 RSI Moving Average:
Customizable MA type applied to the RSI values
Serves as a dynamic signal line
Default 365-period EMA smooths long-term trends
C. 🔔 Signal Detection:
🟢 isBull_RSI: RSI > RSI_MA (bullish condition)
🔴 isBear_RSI: RSI < RSI_MA (bearish condition)
🟢 Bull: Crossover signal (RSI crosses above MA)
🔴 Bear: Crossunder signal (RSI crosses below MA)
4. 👁️ Visual Elements
A. 📉 Main Plots:
📊 RSI Line: Thick line (width 3) colored conditionally based on position relative to its MA
📈 RSI MA Line: Yellow line showing the smoothed RSI
🎯 50-Level Line: Dashed white reference line
B. 🎨 Fill Areas:
🟢 Overbought Zone : Filled between RSI and MA
🔴 Oversold Zone : Filled between RSI and MA
Colors vary based on selected theme
C. 🌈 Background Highlights:
Subtle background coloring on bullish/bearish crossover signals
D. 📋 Table Display:
Shows "⬆️ Bullish" or "⬇️ Bearish" with appropriate coloring
5. 🔔 Alert System
🟢 LONG Alert: Triggers when RSI > RSI_MA
🔴 SHORT Alert: Triggers when RSI < RSI_MA
Includes ticker symbol in alert message
🏁 Trading Logic
🎯 Primary Signals:
🟢 Bullish Setup:
📈 RSI crosses above its moving average
📊 RSI remains above MA (continuous bullish condition)
🎨 Visual: Green/theme bull colors, bullish fill areas
🔴 Bearish Setup:
📉 RSI crosses below its moving average
📊 RSI remains below MA (continuous bearish condition)
🎨 Visual: Red/theme bear colors, bearish fill areas
✨ Key Features:
📊 Trend Filter: The RSI MA (365-period) acts as a long-term trend filter
⚡ Momentum + Trend: Combines momentum (RSI) with trend (MA) for higher probability signals
👁️ Visual Clarity: Color-coded elements make market state immediately apparent
🛠️ Customizability: Multiple MA types and color schemes adapt to different trading styles
💻 Code Structure
The script is well-organized with clear sections:
🔧 MA function definition
⚙️ Input settings
🧮 Calculations
🎨 Color definitions
📊 Plotting
📋 Table display
🔔 Alert conditions
🎯 Best Use Cases
📈 Trend Following: In trending markets, signals align with the overall direction
🔄 Mean Reversion: In ranging markets, oversold/overbought fills indicate potential reversals
⏰ Multi-Timeframe Analysis: Works well on daily/weekly charts for long-term positioning
✅ Signal Confirmation: Can be combined with other indicators for entry/exit confirmation
🏆 Unique Advantages
🎯 Reduced Whipsaws: Long MA period (365) filters out noise
👁️ Clear Visual Hierarchy: Multiple visual layers convey information efficiently
💼 Professional Presentation: Clean, organized display suitable for sharing
🛠️ Flexible Configuration: Adaptable to different assets and timeframes
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.
ATR + ADX Expansion This script plots in real time a shorter period ATR compared to a longer period ATR allowing one to see if the market has above or below average volatility. This helps avoid choppy sideways markets.
Secondly, the table shows whether ADX is expanding above its signal line, or contracting below it's signal line further identifying a market in expansion or contraction.
Any set up must be deployed in a healthy market environment, this indicator measures core statistics in real time to allow you see at a glance what state the market is in.
bezgincan_BPA Integrated Market Analyzer (V6) -
Why?
This is an advanced oscillator powered by the v6 engine that combines the four main pillars of technical analysis —Volume, Trend, Volatility , and Momentum —into a single mathematical model. It eliminates chart clutter, allowing you to monitor market strength, speed, and saturation from a single panel.
Fourfold Analysis Logic:
Trend: Calculates the main direction and slope of the price using linear regression slope.
Momentum: Measures the strength of price movement using RSI-based normalized momentum data.
Volatility: Compares current volatility to historical averages via the ATR ratio.
Volume: By relating volume increases to momentum, it confirms the reality of the motion.
How to Use?
The display operates on a fixed, normalized scale between -100 and +100 :
Zero Line Intersections: When the BPA line crosses above 0 (Green Area) , it indicates increased buying pressure, and when it crosses below 0 (Red Area), it indicates increased selling pressure.
Extremes (Yellow Background): When the indicator rises above +70 or falls below -70 , it means the market is "overheated". These zones signal that the trend is exhausted and a correction (or profit-taking) may be imminent.
Signal Labels: The triangles on the chart represent zero-line intersections (trend reversal confirmation).
Why this indicator?
Normalized Scale: Unlike classic indicators, it always stays within the -100/+100 range, providing visual consistency.
Filtered Data: It doesn't just look at price; it incorporates volume and volatility to help filter out "fake" patterns.
Pine Script v6: Performs fast and optimized calculations with the latest Pine Script engine.
Directional Movement Index - DMI🎯 Overview
This is a versatile Directional Movement Index (DMI) indicator that provides multiple visualization modes for analyzing trend strength and direction. Unlike traditional DMI displays, this version offers three different viewing options and focuses on DI crossover signals for clear trend identification.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.dmi() function
📈 Three Core Components:
+DI (Positive Directional Indicator): Measures upward movement strength
-DI (Negative Directional Indicator): Measures downward movement strength
ADX (Average Directional Index): Measures overall trend strength
⚡ Dynamic Average: Creates a composite line (+DI minus -DI) for simplified analysis
2. 🎛️ Configuration Parameters
📏 DMI Length: Default 8 periods (standard setting)
🔄 ADX Smoothing: Additional smoothing for ADX line
🎨 Color Themes: 5 visual schemes consistent with your indicator suite
👁️ Display Toggles:
Average DMI: Shows composite line (+DI minus -DI)
DMI: Shows individual +DI and -DI lines
ADX Smoothing: Shows ADX trend strength line
📈 Signal Interpretation:
🟢 BULLISH: +DI > -DI (upward momentum stronger)
🔴 BEARISH: -DI > +DI (downward momentum stronger)
🎨 Visual Elements:
🚨 Signal Highlights: Background coloring on DI crossovers
📋 Line Labels: On-chart labels for each indicator component
📊 Table Display: Top-right bullish/bearish status indicator
📋 Dashboard Display:
Content: "⬆️ Bullish" or "⬇️ Bearish" based on DI relationship
⚡ Trading Applications
📈 Primary Uses:
🎯 Trend Direction Identification
+DI > -DI = Uptrend
-DI > +DI = Downtrend
💪 Trend Strength Assessment
ADX > 25 = Valid trend (tradable)
ADX < 25 = Weak trend (avoid trading)
ADX rising = Strengthening trend
🚨 Crossover Signals
Bull Crossover: +DI crosses above -DI
Bear Crossover: -DI crosses above +DI
🎨 Customization Options
👁️ Display Flexibility:
📊 Mode 1: Simplified (Average DMI only)
📈 Mode 2: Detailed (+DI and -DI lines)
💪 Mode 3: Strength-focused (ADX line)
🔄 Any Combination: Mix and match as needed
🎨 Visual Themes: (Consistent suite)
🎨 Classic: Green/Red (traditional directional colors)
🚀 Modern: Cyan/Purple (contemporary)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when +DI crosses above -DI
🔴 SHORT Alert: Triggers when -DI crosses above +DI
📧 Format: Includes ticker symbol for tracking
⚡ Key Advantages
✅ Strengths:
🎯 Multiple Perspectives: Three display modes in one indicator
📊 Clear Trend Signals: DI crossovers provide unambiguous entries/exits
💪 Strength Filter: ADX helps avoid trading in weak trends
👁️ Visual Clarity: Color-coded and labeled for easy interpretation
🔄 Flexible Usage: Can be simple or detailed based on trader preference
📊 Optimal Settings:
⚡ Short-term Trading: 8-14 period length
📊 Medium-term Trading: 14-20 period length
📈 Long-term Trading: 20-50 period length
🎯 ADX Smoothing: Higher values for smoother trend strength
🏆 Unique Features:
Mode Selector: Choose your preferred view (simple → detailed)
Composite Average: (+DI - -DI) creates single directional line
Strength Integration: Built-in ADX for trend validation
Visual Harmony: Consistent design with your indicator family
Professional Labels: On-chart annotations for clarity
This DMI indicator provides professional-grade trend analysis with user-friendly flexibility, allowing traders from beginners to experts to customize their view according to their trading style and experience level! 📊🎯
1M / 3M / 6M / 12M Performance Box─────────────────────────────────────────────────────────────
1M / 3M / 6M / 12M Performance Box
─────────────────────────────────────────────────────────────
A compact on-chart dashboard that shows multi-horizon price performance
(1M / 3M / 6M / 12M) as percentage change, using DAILY data for consistency
across all chart timeframes (intraday, daily, weekly).
What it does
• Calculates % performance over 1, 3, 6, and 12 month horizons.
• Displays results in a clean table overlay on the chart.
• Automatically color-codes performance:
- Green = positive
- Red = negative
- Gray = neutral / not available
Month definition (user selectable)
• Calendar days mode:
1M = 30 days, 3M = 90 days, 6M = 180 days
• Trading days mode:
1M = 21 TD, 3M = 63 TD, 6M = 126 TD
• 12M is calculated as ~365 days in both modes.
Customization
• Table position (top/bottom + left/right)
• Decimal precision
• Fully customizable colors (header, labels, positive/negative/neutral cells)
• Adjustable background opacity
• Optional header with symbol + timeframe
Use cases
• Quick trend/context check before entries
• Relative strength snapshot across time horizons
• Cleaner decision-making without adding clutter
Notes
• Uses daily close/time via request.security() for stable results.
• Displays "n/a" when a reference value is not available.
─────────────────────────────────────────────────────────────
MIZAN v9.2: Volumetric Chaos ShieldTitle: MIZAN v9.2: Volumetric Chaos Shield (VCS)
Description:
MIZAN-VCS is an advanced trend-following system developed by Mizan Lab. It is designed to filter out market noise and identify high-probability entries powered by volume and momentum. It combines a dynamic "Path" algorithm with a Choppiness Index and Volume confirmation to keep traders out of dangerous ranging markets.
Key Features:
The Path (Dynamic Support/Resistance): Instead of standard moving averages, MIZAN uses a density-based path algorithm to find the true center of the price action.
Cyan Line: Bullish Trend
Orange Line: Bearish Trend
Volumetric Chaos Shield (VCS):
The indicator automatically detects "Choppy/Ranging" markets using the Choppiness Index.
When the market is choppy, the main trend line turns Gray and Thin, signaling "DO NOT TRADE".
Signals are suppressed during high chaos to prevent whipsaws.
Volume Confirmation:
A breakout is only valid if there is sufficient volume backing it. Weak moves are ignored.
OCC & L-Score Integration:
Uses a proprietary blend of RSI, CCI, and Volume to validate the "Reality" of a price move.
Built-in Trailing Stop:
Automatically plots a trailing stop line (Green/Red) to help you manage risk and lock in profits.
How to Use:
BUY Signal: When the line is Cyan (thick), Volume is Strong, and a "VOL BUY" label appears.
SELL Signal: When the line is Orange (thick), Volume is Strong, and a "VOL SELL" label appears.
WAIT: When the line is Gray (thin) and the Dashboard says "CHOP (WAIT)".
Dashboard: The bottom-right panel provides real-time status on Market Mode (Trend vs. Chop), Volume Strength, and developer credits.
Disclaimer: This tool is for educational purposes only. Always use proper risk management.
© Developed by Mizan Lab
Rate of Change - ROC🎯 Overview
This is an advanced Rate of Change - ROC indicator that measures percentage price movement over time, combined with dynamic moving average filtering. Unlike basic ROC implementations, this version features gradient momentum zones, multiple color themes, and a clear signal dashboard for precise momentum velocity identification.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.roc() function which calculates percentage change between current price and price N periods ago
📈 Dual Analysis Components:
ROC Line: Percentage change oscillator
MA Filter: Customizable moving average acting as momentum trend line
Momentum Zones: Gradient fills for strong positive and strong negative momentum
⚡ Velocity Measurement: Unique ability to quantify the speed of price movement as a percentage
2. 🎛️ Configuration Parameters
📏 ROC Length: Default 35 periods (optimized for momentum detection)
🔄 MA Filter Settings:
Length: Customizable (default 365 periods)
Type: 6 options available (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes consistent with your indicator suite:
Classic, Modern, Robust, Accented, Monochrome
📊 Signal Interpretation:
🟢 BULLISH: ROC > MA Filter (momentum accelerating upward)
🔴 BEARISH: ROC < MA Filter (momentum accelerating downward)
🚀 STRONG BULLISH: ROC > 40% (extreme positive momentum)
📉 STRONG BEARISH: ROC < -20% (extreme negative momentum)
3. 🎨 Visual Elements
🚨 Gradient Zones:
Strong Bullish zone : Green gradient intensifying toward higher percentages
Strong Bearish zone : Red gradient intensifying toward lower percentages
📋 Dashboard Display: Top-right status indicator showing "⬆️ Bullish" or "⬇️ Bearish"
📊 Dynamic Coloring: ROC line changes color based on position relative to MA
⚡ Zero Line Reference: Natural equilibrium at 0% change
⚡ Trading Applications
📈 Primary Uses:
🎯 Momentum Velocity Measurement:
ROC > MA = Accelerating bullish momentum
ROC < MA = Accelerating bearish momentum
💪 Momentum Strength Quantification:
Higher positive percentages = Stronger uptrend acceleration
Lower negative percentages = Stronger downtrend acceleration
Measures rate of change rather than just direction
🚨 Extreme Momentum Signals:
Strong Bullish: (rapid price appreciation)
Strong Bearish: (rapid price depreciation)
📊 Zone Analysis:
🟢 Strong Bullish Zone :
Green gradient fills
Indicates rapid price acceleration upward
Often precedes consolidation or pullback
🔴 Strong Bearish Zone :
Red gradient fills
Indicates rapid price acceleration downward
Often precedes bounce or reversal
🟡 Equilibrium: Yellow MA line acts as momentum trend filter
🎨 Customization Options
👁️ Display Features:
📊 Dual Components: Always shows both ROC line and MA filter
🎨 Gradient Visualization: Automatic fill for extreme momentum conditions
📋 Status Dashboard: Clear bullish/bearish momentum acceleration indication
📈 Customizable MA: Choose from 6 different moving average types
📏 Adjustable Thresholds: 40% and -20% levels optimized for ROC analysis
🎨 Visual Themes: (Consistent suite)
🎨 Classic: Green/Red (traditional momentum colors)
🚀 Modern: Cyan/Purple (contemporary)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when ROC crosses above MA
🔴 SHORT Alert: Triggers when ROC crosses below MA
📧 Format: Includes ticker symbol for tracking
⚡ Key Advantages
✅ Strengths:
🎯 Velocity-Based Analysis: Measures speed of price movement, not just direction
💪 Percentage-Based: Provides intuitive understanding of momentum strength
👁️ Trend Acceleration Identification: MA filter shows when momentum is accelerating/decelerating
🔄 Flexible Timeframes: 35-period default optimized for momentum detection
📊 Professional Dashboard: Immediate momentum acceleration status
📊 Optimal Settings:
⚡ Short-term Momentum: ROC Length 10-20, MA Length 20-50
📊 Medium-term Momentum: ROC Length 20-35, MA Length 50-100
📈 Long-term Momentum: ROC Length 35-50, MA Length 100-365
🏆 Unique Features:
🎯 Percentage-Based Measurement: Shows exact rate of price change
📊 Asymmetric Thresholds: 40% bullish / -20% bearish (reflects typical market asymmetry)
🎨 Consistent Design: Matches your indicator family aesthetics
📋 Momentum Dashboard: Quick visual confirmation of acceleration/deceleration
🔧 Speed Analysis: Focuses on velocity rather than just position
🔄 Trading Strategies
1. Momentum Acceleration Strategy:
Go LONG when ROC crosses above MA with ROC > 0%
Go SHORT when ROC crosses below MA with ROC < 0%
Strong signals when crossing occurs in extreme zones
2. Velocity Divergence:
Price makes higher high, ROC makes lower high → Momentum divergence (trend weakening)
Price makes lower low, ROC makes higher low → Momentum divergence (downtrend losing steam)
3. Trend Acceleration Detection:
Rising ROC above MA = Uptrend accelerating
Falling ROC below MA = Downtrend accelerating
Flat ROC near MA = Trend consolidation
📈 Performance Tips
Context Matters: High ROC during strong trends is normal, during ranges may signal exhaustion
Zero Line Cross: ROC crossing 0% often signals trend change
Extreme Readings: ROC > 40% often precedes consolidation, ROC < -20% often precedes bounce
Timeframe Alignment: Use consistent periods across charts for comparable readings
Confirmation: Combine with price structure and volume for highest probability trades
This enhanced ROC indicator provides professional-grade momentum velocity analysis with intuitive visualization, allowing traders to quantify the speed of price movements, identify acceleration/deceleration phases, and filter signals through the customizable moving average for precise momentum-based trading decisions! 📊⚡
Moving Averages - High_Low & Close/ Written by Love Sharma, CMT, CFTe , the concept is to identify when the moving average is rising and that too of highs and lows
//since there are various ways to generate signal from moving average but the high or low of MA has much weight of evidence as we are using the slope
One can just use the slope, or close above/below MA
//THE IDEA IS SIMPLE TO REMAIN RIGHT SIDE OF THE TREND
Custom 3-Bar Counter (GMT Reset)Bar counter, adjustable to suit market hours. Text colour and size changeable






















