[codapro] Elite Momentum & Smart Money Detector
Elite Momentum & Smart Money Detector
Overview
The Elite Detector is a non-repainting indicator that merges Smart Money Concepts, Adaptive Volatility-Based Momentum, and Multi-Timeframe Trend Confluence to identify high-probability trade setups. This tool helps confirm institutional intent and market pressure before triggering actionable signals.
Core Systems
Smart Money Concepts (SMC)
• Highlights institutional order blocks
• Detects equal highs/lows as liquidity zones
• Automatically cleans up outdated zones for clarity
Adaptive Momentum Engine
• Momentum calculated with volatility-adjusted smoothing
• Normalized scale from -100 to +100
• Candle coloring reflects trend strength dynamically
Squeeze Detection System
• Flags volatility contraction zones using Bollinger and Keltner channels
• Background shading highlights compression zones
• Histogram shows directional breakout pressure
Multi-Timeframe Trend Validation
• Aligns signals with higher timeframe momentum
• Built-in logic auto-selects appropriate HTF per chart
• Reduces false signals and improves timing
Signal Logic
Buy Signal appears when:
Momentum crosses from negative to positive
Squeeze condition is active
Higher timeframe confirms bullish trend
Sell Signal appears when:
Momentum crosses from positive to negative
Squeeze condition is active
Higher timeframe confirms bearish trend
All signals are non-repainting and appear only once all conditions are met.
Visual Dashboard (Top-Right Corner)
Displays real-time confirmation across five categories:
Momentum: Current trend direction and strength
Squeeze: Indicates if volatility is compressed
HTF Trend: Confirms higher-timeframe alignment
Volatility: Current volatility phase (low, normal, or high)
Signal Status: Buy, Sell, or Neutral (Wait)
Chart Visuals
Candle Colors:
• Bright green/red = Strong momentum
• Faded green/red = Weak momentum
Background Colors:
• Orange = Squeeze is active
• Clear = Normal market activity
Boxes:
• Green = Bullish order blocks
• Red = Bearish order blocks
Dashed Lines:
• Red = Equal highs (liquidity zones above)
• Green = Equal lows (liquidity zones below)
Alert Conditions
Includes three prebuilt alerts for automation and webhook systems:
Elite Buy Signal
Elite Sell Signal
Squeeze Activation
These alerts allow users to respond to market shifts in real time or integrate with automated trading workflows.
Best Practices
Wait for Confluence: Confirm all three systems (momentum, squeeze, HTF trend) before entering
Watch Order Blocks: Institutional zones often act as support/resistance
Monitor Liquidity Zones: Be cautious of stop hunts near equal highs/lows
Use Dashboard Cues: Let the HUD validate your setup
Always Use Risk Management: This tool increases probability, not certainty
Example Setup:
1. Squeeze background appears
2. Buy signal triangle confirms
3. Dashboard shows: Momentum strong up, Squeeze on, HTF trend up
4. Price bounces off green order block
→ High-probability long entry
Why It Works
This tool leverages multiple uncorrelated concepts to filter low-quality trades and highlight setups with real institutional backing:
Order Blocks and Liquidity Zones track smart money footprints
Volatility-adjusted Momentum captures real energy shifts
Multi-Timeframe Confluence confirms trades in the broader context
Non-repainting signals ensure reliability
Final Note
The Elite Detector is designed to show you:
Where smart money is positioned,
When the market is coiling for a move,
and Which direction is supported by momentum and trend.
Use it as your high-probability entry engine — across any market or timeframe.
Disclaimer
This tool was created using the CodaPro Pine Script architecture engine — designed to produce robust trading overlays, educational visuals, and automation-ready alerts. It is provided strictly for educational purposes and does not constitute financial advice. Always backtest and demo before applying to real capital.
Biến động
Institutional Confluence Nexus [Pro]The Problem: Noise vs. Signal
In the world of Smart Money Concepts (SMC), traders are often overwhelmed by "chart clutter." Standard indicators blindly highlight every Fair Value Gap (FVG) and Order Block (OB), regardless of whether the market is trending, ranging, or dead. This leads to analysis paralysis and low-probability entries.
The Institutional Confluence Nexus was built to solve this. It is not just a structure detector; it is a filtering engine. It uses a multi-factor model to hide low-probability zones and only highlight setups where Structure, Volume, and Momentum align.
The "Quantum" Integration
This script includes a built-in Quantum Regression Oscillator (QRO) engine running in the background. Unlike standard RSI or MACD which are reactive (lagging), the QRO uses Linear Regression mathematics to project momentum trajectory.
By combining institutional structure (Price Action) with quantum momentum (Math), this tool generates specific high-probability signals that only appear when price action and momentum are in perfect agreement.
How It Works & Visual Guide
This indicator is a complete trading suite. Here is what every symbol and color on your chart represents:
1. The "Nexus" Reversal Signals (Triangles)
Symbol : Green Triangle (Up) / Red Triangle (Down) labeled NEXUS.
Logic : These appear when price taps a valid Order Block that aligns with the macro trend (200 EMA).
Meaning : These are your primary "Trend Join" setups. They indicate that the institutional trend is resuming after a retracement.
2. High-Volume Breakouts (Bar Colors)
Symbol : Yellow Candles (Bullish) / Orange Candles (Bearish).
Logic : The script detects when a Break of Structure (BOS) occurs with Above-Average Volume.
Meaning : A breakout without volume is often a fakeout. These colored bars confirm that institutions are fueling the move. If you see a Yellow bar, it means "Smart Money" is buying the breakout.
3. QRO Confluence Signals (Labels)
These are the most advanced signals in the suite, combining Price Action with the internal Oscillator:
SNIPER (Blue/Purple) : The strongest reversal signal.
Condition : Price taps a Fair Value Gap + The internal QRO is at extreme volatility bands (Oversold/Overbought).
PB BUY / PB SELL (Aqua/Orange) : A trend continuation signal.
Condition : Price pulls back into a Fair Value Gap + The internal QRO confirms momentum is still healthy (above/below midline).
Note : These signals automatically draw a Red Line at the invalidation point (Stop Loss) to help you manage risk immediately.
4. The Confluence Dashboard
A non-intrusive Heads-Up Display (HUD) in the corner gives you a snapshot of the market state:
Trend : Is price above/below the 200 EMA?
Volume : Is current volume anomalous (High) or normal?
Structure : Are we breaking up, down, or ranging?
Settings & Customization
Smart Money Structure: Toggle FVGs and Order Blocks on/off.
FVG Extend: Control how far the gap "zones" extend to the right to see them as support/resistance zones.
Volume Filter: Enable/Disable the volume requirement (Keep enabled for higher strike rate).
Risk Management: Adjust the "Lookback" period for the automatic Stop Loss lines.
For Developers (Open Source)
I have kept the code open-source to foster learning in the Pine Script community. You can study how:
ta.linreg is used to smooth RSI data for the internal QRO engine.
box.new and line.new are used for dynamic drawing and extending zones.
var variables are used to store historical FVG levels to detect precise crossovers.
Disclaimer:
This tool is designed to assist with technical analysis and educational purposes. It does not guarantee profits. Always manage your risk and use this in conjunction with your own analysis.
Hooke's Law: Market ElasticityHooke's Law: Market Elasticity is a physics-based mean reversion system that models price action using the principles of Classical Mechanics.
Most technical indicators treat the market as a purely statistical entity. This script takes a different approach, treating the market as a physical object with Mass (Volume) and Stiffness (Volatility) . By adapting Hooke’s Law of Elasticity (𝐹=−𝑘𝑋), it visualizes the "Tensile Stress" between price and its equilibrium, identifying the exact moment when a trend becomes unsustainable and must "snap back."
The Physics of Trading
In physics, Hooke's Law states that the force needed to extend a spring is proportional to the distance it is stretched. We map this to financial markets using four key components:
Equilibrium (𝑋=0): The "Resting State" of the market, calculated using a Volume-Weighted Moving Average (VWMA) . This represents the fair value where buyers and sellers agree.
2. Displacement (𝑋): The distance price travels away from this equilibrium.
3. Spring Constant (𝑘): We use Volatility (Standard Deviation) to measure the market's "stiffness."
• Low Volatility: The spring is loose; price can wander far without snapping.
• High Volatility: The spring is stiff; even small deviations create massive tension.
4. Force (𝐹): The calculation is weighted by Relative Volume . A price spike on low volume has low force (easy to reverse), while a spike on high volume carries high momentum (harder to reverse).
Visual Guide & Signals
The indicator uses a hierarchy of visuals to guide you through the trade lifecycle:
1. The Elastic Ribbon (Heatmap)
Connects Price to the Baseline. As the ribbon turns Solid White , the market has reached its Elastic Limit (Critical Zone). This is your warning that a move is overextended.
2. The "Golden" Labels (LONG / SHORT)
These are your Entry Signals . They appear only when the physics "snap" is confirmed by an internal momentum filter and price action.
3. The Small Circles (Minor Reversions)
These dots represent "Minor Snaps." They occur when the elastic tension releases, but the momentum filter hasn't fully confirmed a major reversal.
• Usage: These are excellent Early Warning signs or Scale-In points for aggressive traders.
Strategy: Entries, Exits & Take Profits
This script is designed as a complete system. Here is how to manage the trade using the visual cues:
• Entry: Wait for a LONG or SHORT label to appear.
• Stop Loss: Use the Solid White Line that appears automatically with the signal. If price touches this line, the physics setup has failed—exit immediately.
• Take Profit 1 (The Equilibrium): The Gray Baseline represents the market's center of gravity. In mean reversion trading, price tends to snap back to this line. This is the statistically highest-probability target.
• Take Profit 2 (The Circles): If you are in a trade and a Circle appears in the opposite direction, it indicates the market is experiencing counter-tension. This is an ideal place to secure partial profits or trail your stop.
Settings & Configuration
• Baseline Length (Default: 34): The lookback period for the Center of Gravity.
• Elasticity Limit (Default: 2.618): The Golden Ratio is used as the standard deviation threshold for the "Critical Zone."
• Volume Weighting (Default: True): Recommended. Adds the "Mass" component to the physics calculation.
• Stop Loss Buffer (Default: 0.5): The distance (in Sigma) for the Stop Loss placement.
Risk Disclaimer
Not Financial Advice: This indicator is designed for educational and analytical purposes only. It visualizes market data based on mathematical formulas (Hooke's Law and Statistical Deviation) and does not guarantee future performance or profits.
Market Risks: Financial trading involves significant risk. The "Critical Zones" and "Signals" generated by this script identify statistical extremes, but markets can remain irrational or overextended for long periods ("Plastic Deformation").
Usage: Do not trade blindly based on these signals. Always use this tool in conjunction with your own analysis, risk management, and stop-losses. The author assumes no responsibility for any trading losses incurred while using this script.
Universal Adaptive Tracking🙏🏻 Behold, this is UAT (Universal Adaptive Tracker) , with less words imma proceed how it compares with alternatives:
^^ comparison with non-adaptive quadratic regression (purple line), that has higher overshoots, less precision
^^ comparison with JMA and its adaptive gain. JMA’s gain is heavily limited, while UAT’s negative and positive gains are soft-saturated with p-order Möbius transform
This drop is inspired by, dedicated to, and made will all love towards Jurik Research , who retired in October 2k21. When some1 steps out, some1 has to step in, and that time it’s me (again xd). But there’s some history u gotta know:
Some history u gotta know:
In ~2008 dudes from forexfactory reverse engineered Jurik Moving Average
In late 1990s dudes from Jurik Research approximated the best possible adaptive tracking filter for evolution of prices via engineering miracles
Today in 2k26, me I'm gonna present to you the real mathematical objects/entities behind JMA top-edge engineered approximates. You will prolly be even more happy now then all the dem together back then.
Why all this?
When we talk about object tracking stuff, e.g. air defense, drones, missiles, projectiles, prices, etc, it all comes down to adaptive control and (Position & Velocity & Acceleration) aka PVA state space models (the real stuff many of you count as DSP ).
Why? Cuz while position (P) : (mean), or position & velocity (PV) : (linear regression) are stable enough in dem own ways, Position & Velocity & Acceleration (PVA) : (quadratic regression+) require adaptivity do be stable. And real world stuff needs PVA, due to non-linearity for starters.
So that’s why. If your goal is Really smoothing and no lag, u gotta go there. I see a lot of folks are crazy with it and want it, so here is it, for y’all. And good news, this is perfect for your favorite Moving Windows.
How to use it
The upper study:
The final filter (main state): just as you use other fast smoothers, MAs, etc, you know better than me here
You can also turn in volatility bands in script’s style settings, these do not require any adjustments
Finally, you can turn on, in the same place, separate trackers each based on negative and positive volatility exclusively. When both are almost equal, that indicates stability & persistence in markets. May sound like it’s nothing important, but I've never seen anything like it before. Also, if you'd allow your our inner mental gym hero gloriously arise, you can argue that these 2 separate trackers represent 2 fair prices (one for sellers, one for buyers). All better then 1 imaginary fair price for both (forget about it)
The lower study:
The lower study: you can analyze streams of upward of downward volatilities separately. This is incredibly powerful
You can also turn these off and turn on neg & pos intensities, and use them as trend detector, when each or both cross 1.5 (naturally neutral) threshold.
^^ Upper study with expected typical and maximum volatility bands turned On
...
The method explained
What you got in the end is non-linear, adaptive, lighting fast when needed and slow when required price tracking. All built upon real math entities/objects, not a brilliantly engineered approximation of them. No parameters to optimize, data tells it all.
... It all starts from a process model, in our cause this is...
MFPM (Mechanical Feedback Price Model)
Doesn’t make gaussian assumptions like most quant mainstream tech, accepts that innovations are Laplace “at best”, relies in L inf and L0 spaces.
I created this model neither trynna fit non-fitting ARMA / variants, nor trynna be silly assuming that price state evolution and markets are random.
Theory behind it: if no new volume comes, then price evolution would be simply guided by the feedback based on previous trading activity, pushing prices towards the midrange between 2 latest datapoints, being the main force behind so called “pullbacks” and reason why most pullbacks end just a bit past 50% of a move.
This is the Real mechanical feedback based mean reversion, that is always there in the markets no matter what, think of it as a background process that is always there, and fresh new volume deviates prices away from it. Btw, this can also be expressed as AR2 with both phis = 0.5 .
Then I separate positive and negative innovations from this model and process them separately, reflecting the asymmetry between buy and sell forces, smth that most forget. Both of these follow exponential distribution . Each stream has its own memory so here we use recursive operators . We track maximum innovations (differences between real and expected datapoints) with exponentially decaying damping factor, and keep tracking typical innovation, with the same factor.
Then we calculate what’s called in lovely audio engineering as “ crest factor ”, the difference is we don’t do RMS and stuff. But hey again we work with laplace innovations, so we keep things in L0 and L inf spirit. Then we go a couple of steps further, making this crest factor truly relative (resolution agnostic), and then, most importantly, we apply a natural saturation on it based on p-order Möbius transform, but not with arbitrary p and L, but guided by informational limits of the data. These final "intensity" parameters are what we need next to make our object tracking adaptive.
Extended Beta(2, 2) Window
This is imo the main part of this. Looking at tapering windows in DSP and how wavelets are made from derivatives of PDF functions of probability distributions, I figured that why use just one derivative? That made me come up with Universal Moving Average , that combines PDF and CDF of Beta(2, 2) distribution . And that is fine for P (position) tracking model.
Here we need PVA (position & velocity & acceleration). We can realize that everything starts from PDF, and by adding derivatives and anti-derivatives of it as factors of final window weights, we can create smth truly unique, a weightset that is non-arbitrary and naturally provides response alike quadratic regression does, But, naturally smoothed.
Why do I consider this a discovery, a primordial math object? Because x^2 itself and Beta(2, 2) based on it are the only primitives, esp out of all these dozens of DSP tapering windows, that provide you a finite amount of derivatives. You can keep differentiating Hann window until the kingdom f come, while Welch window aka Beta(2, 2) has a natural stopping point, because the 3rd derivative is 0, so we can’t use it. Symmetrically, we do 2 steps up from PDF, getting 1st and second anti-derivatives. What’s lovely, symmetrically, 3rd antiderivative even tho exist, it stops making any sense. 2nd one still makes sense, it’s smth like “potential” of probability distribution, not really discussed in mainstream open access sources.
Finally, the last part is to introduce adaptivity using these intensity exponents we’ve calculated with MFPM. We do 2 separate trackers, one using the negative intensity exponent, another one uses positive intensity exponent.
And at the end, even tho using both together is cool, the final state estimate is calculated simply as the state which intensity has higher.
^^ impulse response of our final kernel with fixed (non adaptive) intensity exponents: 1 (blue) and 2 (red). You see it's all about phase
…
And that’s all folks.
…
Actually no …
Last, not least, is the ability to add additional innovation weight to the kernel:
^^ Weighting by innovations “On”. Provides incredible tracking precision, paid with smoothness. I think this screenshot, showing what happened after the gap, and how the tracker managed to react, explains it all.
...
Live Long and Prosper, all good TradingView
∞
Adaptive Trend & SL SystemAdaptive Trend & Risk System
1. The Problem: "Naked" Signals
Most trend indicators on TradingView have a fatal flaw: they tell you when to enter, but they never tell you when to leave . They give you a "Buy" signal, but leave you guessing about where to place your Stop Loss or where to take profit.
A signal without a risk management plan is not a strategy—it's a gamble.
2. The Solution: A Complete Trading System
The Adaptive Trend & Risk System (ATS) is designed to be a complete "Turnkey" trading suite. It doesn't just generate signals; it manages the entire lifecycle of the trade.
It combines three distinct market concepts into one clean overlay:
Trend Detection: Uses a Hull Moving Average (HMA) baseline to determine the immediate market flow.
Signal Filtering: Uses the Average Directional Index (ADX) to filter out "fakeouts" and weak trends.
Dynamic Risk Management: Automatically calculates Volatility-Based (ATR) Stop Losses and Risk:Reward targets the moment a signal is generated.
3. How It Works (The Math)
The script operates on a strict "State Machine" logic. It remembers the state of your trade bar-by-bar.
The Entry (Strong Signals)
A "STRONG" signal is only generated when two conditions are met:
Price crosses the Trend Baseline.
ADX (Trend Strength) is above the threshold (Default: 25).
Note: Weak signals (small triangles) are shown when price crosses the baseline but ADX is low. These are risky and should be treated with caution.
The Stop Loss (Red/Green Crosses ++++)
Upon a strong entry, the script calculates a Stop Loss based on the Average True Range (ATR).
Long SL: Low - (ATR * Multiplier)
Short SL: High + (ATR * Multiplier)
The "Hard" Stop: Unlike trailing stops that move every bar, this SL is fixed to the volatility at the moment of entry. It only disappears if price hits it (marked by an Orange X ) or if a reversal signal occurs.
The Targets (Blue/Purple Dots oooo)
The script projects two Take Profit levels based on your risk:
TP1 (Blue Dots): 1.5x your Risk.
TP2 (Purple Dots): 3.0x your Risk.
Smart Visuals: If price hits TP1, the dots disappear to keep your chart clean, letting you focus on TP2.
4. How to Use This Indicator
Step 1: Wait for a "STRONG" Label. Do not trade every crossover. Wait for the large triangle with the text label.
Step 2: Place your Entry at the close of the signal bar.
Step 3: Place your Physical Stop Loss exactly at the level of the Green/Red Crosses .
Step 4: Place Limit Orders at the Blue Dots (TP1) and Purple Dots (TP2) .
Management:
If the Orange X appears, your Stop Loss was hit. Exit the trade immediately.
If a Weak Signal (small triangle) appears against your trade, consider tightening your stops, as momentum may be fading.
5. Settings Guide
Trend Baseline Length: Controls the sensitivity of the trend filter. Higher = Fewer signals, longer trends.
ATR Length: Controls how "volatile" the Stop Loss calculation is.
Stop Loss Multiplier: The "breathing room" for your trade. 2.0 is standard. 3.0 is for volatile assets like Crypto.
TP Risk:Reward Ratios: Fully customizable. Default is 1.5R and 3.0R.
Risk Warning & Disclaimer
Trading financial assets involves a high level of risk and may not be suitable for all investors. The content, indicators, and signals provided by this script are for educational and informational purposes only and do not constitute financial, investment, or trading advice.
The "Adaptive Trend & Risk System" is a technical analysis tool based on historical price data and mathematical formulas (ATR, ADX, Hull MA). Past performance is not indicative of future results. Market conditions can change rapidly, and no indicator can guarantee profits or prevent losses.
By using this script, you acknowledge that:
You are solely responsible for your own trading decisions and risk management.
You should never trade with money you cannot afford to lose.
The author of this script assumes no liability for any financial losses or damages incurred from the use of this tool.
Always consult with a qualified financial advisor before making investment decisions.
(5M) REG SuperTrend Pullback SystemThis indicator implements a rule-based SuperTrend pullback system
designed for short-term trend continuation.
Core features:
• Regression-based SuperTrend with flip detection
• Pullback + reclaim entry logic (non-repainting, bar-close confirmed)
• Regime filter (Trend vs Range suppression)
• Exhaustion detection to avoid late entries
• ADX + EMA bias alignment
• USDT Dominance risk filter (risk-on / risk-off)
• Clear BUY / SELL and Pullback AI-style entry labels
This is NOT a trading bot and does NOT place orders.
All signals are for analytical and educational purposes only.
Konigs | Bollinger Band Mean Reversion (Session Filter)Core Idea:
In sideways markets, price tends to revert to the mean (the middle band).
Strategy:
Buy when price touches or moves below the lower band.
Sell when price reaches or exceeds the upper band.
Exit at the middle band (20-period moving average).
Confirm with: RSI/Stochastic or candle patterns for reversal at the bands.
Only works with low-volatility instruments:
EURCHF
Filter certain time to avoid unexpected volatility
V5 Momentum Candle PRO (Advanced Momentum and Market Regime)V5 Momentum Candle PRO is a price-action–based momentum indicator designed for XAUUSD on the M5 timeframe, focusing on high-quality impulsive candles while actively filtering out noise, consolidation, and weak market conditions.
This indicator is built to help traders identify strong momentum entries near candle close, making it suitable for scalping and short-term intraday trading.
🔍 Core Logic
The indicator detects momentum candles using a scoring system that evaluates:
Candle body size (pip-based, optimized for XAUUSD)
Body-to-range ratio (to avoid indecision candles)
Upper & lower wick dominance
ATR-based volatility validation
Volume confirmation
Consolidation (core zone) filtering
Only candles that reach a minimum score threshold are considered valid momentum signals.
📈 Trend & Market Regime Filters
To improve signal quality, the indicator includes multiple advanced filters:
Higher Timeframe EMA Trend Filter (default: M15)
Optional counter-trend control
ADX + ATR Market Regime Filter to avoid:
Low volatility conditions
Weak or sideways markets
These filters help reduce false signals during ranging or choppy price action.
📉 RSI Exit Zone (Confirmation Only)
RSI is used only as an exit/confirmation filter, not as a primary entry trigger.
RSI is calculated on a higher timeframe (default: H1)
Helps avoid entries when price is already in a neutral or exhaustion zone
Designed to support momentum continuation, not reversals
⏱ Smart Alert System (Noise Reduction)
This indicator features a time-based alert filter:
Alerts are triggered only during the last 2 minutes before candle close
If a valid entry appears earlier in the candle, the alert will be ignored
This helps traders focus on confirmed momentum near candle close, reducing alert noise and premature signals
Recommended alert setting: Once Per Bar
🎯 Visual Tools
Entry arrows for BUY and SELL signals
Automatic TP & SL projection boxes based on:
Fixed pip values, or
Risk-to-Reward ratio (RR)
HTF EMA and M5 EMA plotted directly on the chart
⚙️ Customization
All key parameters are fully adjustable, including:
Candle body & wick thresholds
ATR and ADX sensitivity
RSI zones and timeframe
Risk management settings (SL, TP, RR)
Alert behavior
This allows traders to adapt the indicator to different sessions (London / New York) or personal trading styles.
⚠️ Disclaimer
This indicator is a technical analysis tool, not a trading strategy and not financial advice.
All trading decisions and risk management are the responsibility of the user.
UT Bot Alerts [2026 Elite Edition]🚀 Overview
The UT Bot 2026 Elite Edition is the ultimate evolution of the legendary volatility trading system originally conceptualized by QuantNomad. While the original tool revolutionized trend following, this "Elite Edition" introduces Asymmetric Sensitivity—a professional feature that acknowledges a fundamental market truth: Assets do not fall the same way they rise.
This script allows you to decouple your Long and Short strategies, offering surgical precision for both bull runs and bear crashes, all while monitoring trade health via a new real-time Safety Dashboard.
🧠 The Logic: Why "Elite"?
Most trailing stop systems use a single setting (e.g., Key: 2, ATR: 10) for both buying and selling. This is efficient but often suboptimal.
Bull Markets often grind up slowly (requiring looser stops to avoid shakeouts).
Bear Markets often crash quickly (requiring tighter, faster stops to protect capital).
The Dual-Engine Solution: This script runs two separate calculation engines simultaneously:
The Buy Engine (Ceiling): Calculates the resistance ceiling using its own Sensitivity (Key) and Smoothness (ATR) settings.
The Sell Engine (Floor): Calculates the support floor using entirely different settings.
This means you can have a "Slow & Steady" settings for buying Bitcoin, but a "Fast & Aggressive" setting for shorting it, all within the same indicator.
✨ Key Features
1. Asymmetric "Dual-Key" Sensitivity
Buy Key & ATR: Tune your entry sensitivity for long positions.
Sell Key & ATR: Tune your short parameters independently.
Why this matters: You can now set a wide stop for trending up, but a tight stop for trending down to capture profit instantly when momentum breaks.
2. The Safety Dashboard (HUD) A professional Heads-Up Display (HUD) located in the top-right corner. It provides critical "Flight Data" that simple buy/sell labels hide:
Status: Instantly see if you are net Long or Short.
Stop Price (The Kill Level): The exact price where the trend will flip. Use this for your hard Stop Loss orders.
Active ATR: Displays the current volatility width. High ATR = High Volatility (Wide Stops). Low ATR = Consolidation (Tight Stops).
3. Heikin Ashi Smoothing
Includes a built-in toggle to calculate signals based on Heikin Ashi candles while viewing standard candles. This filters out "noise" and wicks, often keeping you in a trend longer.
4. Pine Script v6 Optimization
Refactored for the latest Pine Script v6 standards, ensuring faster execution and compatibility with the latest TradingView features.
🛠️ How to Use (Best Practices)
For Scalping (1m - 5m Timeframes):
Suggestion: Set Sell Key lower (e.g., 1.5) and Sell ATR lower (e.g., 5) to react quickly to drops. Keep Buy Key higher to avoid choppy fake-outs. I personally use the default settings on the 3M time frame with Gold and NQ with a high rate of success.
For Swing Trading (4h - Daily):
Suggestion: Increase Buy ATR (e.g., 30-100) to smooth out the noise of daily fluctuations.
The Dashboard:
Always check the Stop Price on the dashboard before entering. If the Stop Price is too far away from the current price, your risk might be too high for the trade size.
🙏 Credits & Appreciation
This script stands on the shoulders of giants.
Original Logic: Huge props and credit to QuantNomad for the original UT Bot strategy. His work laid the foundation for volatility-based trailing stops on TradingView.
Concept: Based on the "Ceiling/Floor" volatility theory.
Development: Enhanced and refactored by for the 2026 market environment.
Disclaimer: This tool is for information purposes only. Past performance does not guarantee future results.
Overshoot Stop Detector (EMA20 + ATR)How to read the signals (to match what you're doing):
An "OS" (Offside) above the previous bar indicates an overshoot.
A "STOP" (Stop) below the current bar indicates a potential "stop-loss" after an overshoot.
Then you can set a Beer-style trigger, for example:
Enter when the price breaks through the high of the STOP bar.
Or enter when the price closes green above the high of the STOP bar.
Then set your TP (Take Profit) at 10 to 15% as you've hypothesized.
Luminous Volatility Flux [Pineify]```
Luminous Volatility Flux - Dynamic ATR Bands with Hull Moving Average Baseline
The Luminous Volatility Flux indicator is a sophisticated trend-following and volatility analysis tool that combines the responsiveness of the Hull Moving Average (HMA) with adaptive ATR-based bands that expand and contract based on real-time market volatility conditions. This indicator helps traders identify trend direction, volatility regimes, and potential breakout opportunities with high-probability entry signals.
Key Features
Hull Moving Average baseline for low-lag trend detection
Dynamic volatility bands that breathe with market conditions
Flux Factor system comparing short-term vs long-term ATR
Volatility-filtered breakout signals to reduce false entries
Gradient-filled zones for intuitive visual analysis
Real-time bar coloring based on trend direction
How It Works
The indicator operates on three core calculation layers:
1. Hull Moving Average Baseline
The foundation of this indicator is the Hull Moving Average, calculated using the formula: WMA(2*WMA(n/2) - WMA(n), sqrt(n)). Unlike traditional moving averages, the HMA dramatically reduces lag while maintaining smoothness. This makes it ideal for identifying trend changes earlier than conventional EMAs or SMAs. When the HMA is rising, the baseline turns green indicating bullish momentum; when falling, it turns red for bearish conditions.
2. Volatility Flux Factor
The unique aspect of this indicator is the Flux Factor calculation. It compares short-term ATR (default 14 periods) against long-term ATR (default 100 periods) to determine the current volatility regime:
Flux Factor > 1.0 = Volatility Expansion (market is more volatile than usual)
Flux Factor < 1.0 = Volatility Compression (market is in a squeeze)
This ratio creates a dynamic multiplier that causes the bands to expand during high volatility periods and contract during consolidation phases.
3. Dynamic Band Calculation
The upper and lower bands are calculated as: Baseline ± (Short ATR × Multiplier × Flux Factor). This means the bands automatically widen when volatility increases and tighten during quiet market conditions, providing context-aware support and resistance levels.
Trading Ideas and Insights
Trend Following: Trade in the direction of the baseline color. Green baseline suggests looking for long opportunities; red baseline suggests short opportunities.
Volatility Breakouts: The indicator plots "Flux" signals when price breaks above the upper band (bullish) or below the lower band (bearish) during volatility expansion phases. These signals indicate potential momentum continuation.
Mean Reversion: During compression phases (tight bands), prices often revert to the baseline. Consider taking profits near the bands and re-entering near the baseline.
Squeeze Detection: When bands are unusually tight (Flux Factor < 1), the market is coiling for a potential explosive move. Prepare for breakout trades.
How Multiple Indicators Work Together
This indicator integrates three distinct technical analysis concepts into a cohesive system:
The Hull Moving Average provides the trend direction foundation with minimal lag. The dual ATR comparison (short vs long) creates the Flux Factor that measures relative volatility. The dynamic bands combine both elements, using the HMA as the center and ATR-based deviations that scale with the Flux Factor.
The synergy works as follows: The HMA identifies the trend, the Flux Factor determines market regime (expansion vs compression), and the bands provide dynamic support/resistance levels. Breakout signals only trigger when all components align - price breaks the band AND volatility is expanding. This multi-layered approach filters out many false signals that would occur with static bands or simple moving average crossovers.
Unique Aspects
Unlike Bollinger Bands that use standard deviation, this indicator uses ATR ratio-based dynamic bands that better capture directional volatility
The Flux Factor concept is original - comparing two ATR timeframes to create a volatility regime indicator
Breakout signals are filtered by volatility expansion, reducing false signals during choppy, low-volatility conditions
Gradient fills provide instant visual feedback on the strength of the bullish or bearish zones
How to Use
Add the indicator to your chart. It works on all timeframes and instruments.
Observe the baseline color for overall trend direction (green = bullish, red = bearish).
Watch for band expansion/contraction to gauge volatility regime.
Look for "Flux" signals for potential breakout entries - these appear only during volatility expansion.
Use the gradient zones to identify potential support (lower green zone) and resistance (upper red zone) areas.
Customization
Baseline Length (default: 24) - Controls the HMA period. Lower values = more responsive but noisier; higher values = smoother but more lag.
ATR Length (default: 14) - Short-term ATR period for band calculation. Standard setting works well for most markets.
Flux Multiplier (default: 2.0) - Controls band width. Increase for wider bands (fewer signals), decrease for tighter bands (more signals).
Flux Sensitivity (default: 100) - Long-term ATR period for Flux Factor calculation. Higher values create a more stable volatility reference.
Conclusion
The Luminous Volatility Flux indicator offers traders a comprehensive view of market conditions by combining trend detection, volatility analysis, and signal generation into one elegant tool. Its adaptive nature makes it suitable for various market conditions - from trending markets where it identifies direction and momentum, to ranging markets where it highlights compression and potential breakout zones. The volatility-filtered signals help traders focus on high-probability setups while the visual gradient fills make chart analysis intuitive and efficient.
Note: This indicator is designed as a technical analysis tool. Always use proper risk management and consider multiple factors before making trading decisions. Past performance does not guarantee future results.
```
Session VWAP Cumulative BiasThe Session VWAP Cumulative Bias indicator is designed to differentiate between "choppy" price action and true "institutional" trend days. Unlike standard VWAP indicators that only show where price is now, this tool tracks the cumulative sentiment of the entire session.
Core Functions:
Cumulative Z-Score Logic: It calculates the distance between price and VWAP (in Standard Deviations) and sums it up over the course of the day. This reveals the "weight" of the market bias—the longer price stays pinned away from the VWAP, the more extreme the histogram becomes.
Scale Protection: It includes a "Capping" mechanism that prevents morning gaps or low-volume outliers from distorting the scale, ensuring the histogram remains readable from open to close.
Momentum vs. Regime Toggles: Users can switch between VWAP Slope (measuring the speed of the average's movement) and Cumulative Bias (measuring total session dominance).
Visual price Overlay: It automatically colors the price candles and plots a session-anchored VWAP line on the main chart, providing a clear visual of when price is "fair" versus "overextended."
How to read it:
Trend Confirmation: A steadily growing "mountain" in the histogram confirms an institutional trend day where dips are being bought (or rips sold).
Mean Reversion: When price hits a new high but the Cumulative Histogram begins to round off or diverge, it signals that the "elastic band" is stretched and price is likely to return to the orange VWAP line.
Regime Shifts: A cross of the zero-line on the histogram indicates a total shift in session control from buyers to sellers (or vice versa).
RSI SCALPER with Dynamic ATR LinesThis is a versatile scalping indicator that combines RSI-based signals, dynamic ATR channels, and Stochastic-based divergence detection to identify potential entry and exit points in the market .
Key Features
Dynamic ATR Channel – Calculates support and resistance based on ATR (Average True Range) with configurable length and multiplier for both support and resistance lines, plus a midline
Multi-timeframe RSI – Two separate RSI calculations with independent timeframe settings: one for "KUN RSI" signals and one for "GET READY" alerts
Divergence Detection – Identifies regular and hidden bullish/bearish divergences using Stochastic D and fractals
25 MA Types – Comprehensive library of smoothing functions including WMA, HMA, EMA, TEMA, DEMA, ZLEMA, and several advanced variants
Signal Types
Signal Description
Get Ready (Long) Price crosses above dynamic support while RSI is oversold
Get Ready (Short) Price crosses below dynamic resistance while RSI is overbought
EXIT (Buy Break) Price closes above resistance (previously below) without simultaneous short signal
EXIT (Sell Break) Price closes below support (previously above) without simultaneous long signal
R-BULL / R-BEAR Regular divergence – signals potential trend reversal
H-BULL / H-BEAR Hidden divergence – signals trend continuation
Settings
RSI Parameters:
Separate timeframe selection for both RSI calculations
Configurable length and overbought/oversold levels (default 70/30)
ATR Channel:
Independent timeframe for channel calculation
Individual ATR lengths and multipliers for support (8/1.44) and resistance (14/1.44)
Divergence:
Dedicated timeframe setting
Stochastic parameters (length, smooth K, smooth D)
MA type selection for smoothing
Alerts
The indicator includes four predefined alerts for divergence signals that trigger only on confirmed bars:
Regular Bullish/Bearish Divergence
Hidden Bullish/Bearish Divergence
Use Cases
Suitable for active scalping and swing trading on crypto, forex, and stocks. Combine signals with price structure and volume for optimal use. The ATR channel adapts automatically to volatility, while divergence signals provide early warning of potential trend shifts .
SIV Trading LightSmartInVisions Trading Light (SIV Trading Light)
**Multi-Factor Market Regime & Trade Bias Indicator**
---
## Overview and Purpose
**SmartInVisions Trading Light (SIV Trading Light)** is a market **context and trade-bias indicator**, not a signal generator.
Its purpose is to answer one practical trading question:
> *“Given the current market conditions, is it statistically more favorable to think LONG, SHORT, or stay neutral?”*
Instead of relying on a single indicator, SIV Trading Light **combines several independent market dimensions into one coherent score**.
This allows traders to avoid over-trading in unfavorable environments and to align trades with the dominant market context.
---
## Why This Is NOT a Simple Indicator Mashup
This script does **not** simply merge popular indicators.
Each component is:
* normalized,
* weighted,
* evaluated against thresholds,
* and translated into **positive, neutral, or negative score contributions**.
Only the **combined interaction** of these components produces the final trade bias.
No single indicator can dominate the result on its own.
---
## Core Calculation Concept
At every bar, the indicator evaluates multiple independent factors.
Each factor contributes points to a **total bias score**.
The score is then classified into one of three states:
* **LONG bias**
* **NEUTRAL**
* **SHORT bias**
The indicator does **not** predict price direction.
It classifies the **current trading environment**.
---
## Components and How They Work Together
### 1. Trend Structure (Moving Averages)
**Purpose:** Identify the dominant directional structure.
* Fast MA vs Slow MA relationship
* Price position relative to the slow MA
* Optional slope confirmation
Contribution:
* Positive points in aligned uptrends
* Negative points in aligned downtrends
* Neutral in mixed or unclear structures
---
### 2. Momentum (RSI)
**Purpose:** Measure directional strength.
* RSI above upper threshold → bullish momentum
* RSI below lower threshold → bearish momentum
* Mid-range RSI → neutral
Momentum refines trend signals by confirming or weakening them.
---
### 3. Trend Quality / Choppiness (ADX)
**Purpose:** Filter out sideways or noisy markets.
* ADX above threshold → trending environment
* ADX below threshold → choppy environment
ADX does **not** define direction.
It modifies how much weight trend and momentum signals receive.
---
### 4. Volatility Risk (ATR%)
**Purpose:** Penalize structurally dangerous environments.
ATR is normalized as a percentage of price:
* Excessively high volatility → risk penalty
* Extremely low volatility → participation penalty
* Balanced volatility → neutral or positive contribution
This prevents aggressive trading in unstable regimes.
---
### 5. Market Participation (Relative Volume)
**Purpose:** Confirm whether moves are supported by volume.
* High relative volume → confirmation
* Low volume → weaker confidence
Volume acts as a confidence modifier, not as a directional signal.
---
### 6. Higher-Timeframe Market Regime (Optional)
**Purpose:** Align trades with the dominant higher-timeframe context.
On a user-defined **regime timeframe**, the script evaluates:
* trend structure
* RSI momentum
The regime filter can:
* amplify signals aligned with the higher timeframe
* suppress signals against it
This avoids trading aggressively against dominant market structure.
---
## Multi-Timeframe Design
The indicator separates two concepts:
* **Trading Timeframe**: the chart timeframe used for execution
* **Regime Timeframe**: a higher timeframe used for contextual bias
This design allows the same logic to be applied to:
* day trading
* swing trading
* longer-term investing
---
## Presets and Customization
Built-in presets are provided for:
* Day Trading (USA / Europe)
* Swing Trading (USA / Europe)
* Investing (USA / Europe)
Presets define:
* factor weights
* thresholds
* score boundaries
They do **not** define:
* timeframes
* moving average types or lengths
This keeps structural decisions under user control while simplifying parameter tuning.
A **Custom mode** allows full manual configuration.
---
## Visual Output
The indicator provides:
* two moving average overlays (fast / slow)
* an optional background color reflecting the current bias
* a compact badge summarizing mode, score, and state
* an optional breakdown table showing how each factor contributes to the score
These visuals are designed to explain **why** the current bias exists.
---
## Alerts
Alerts are based on **state changes**, not on every bar.
Alert outputs include:
* numerical state (`1 = LONG, 0 = NEUTRAL, -1 = SHORT`)
* score value
* rounded moving average values
This allows integration into discretionary or systematic workflows without alert noise.
---
## How This Indicator Should Be Used
✔ As a **trade filter**
✔ To avoid trading in unfavorable conditions
✔ To align discretionary entries with market context
---
## What This Indicator Is NOT
✘ Not a buy/sell signal
✘ Not a prediction model
✘ Not a replacement for risk management
---
## Credits and License
**Publisher:** SmartInVisions GmbH
**Concept & Design:** Reiner Ernst
**Implementation & Iterative Development:** SmartInVisions GmbH + ChatGPT (OpenAI)
**License:** Mozilla Public License 2.0 (MPL-2.0)
---
## Disclaimer
This script is provided for educational and research purposes only.
It does not constitute financial advice. Trading involves risk.
---
Absorption Pro V4This indicator detects absorption-style reversal setups and scores them with a multi-factor model.
It builds key levels from ZigZag/Fibonacci and round numbers across multiple timeframes, then flags potential absorption candles using volume and a delta-proxy filter plus strict candle-structure rules. Signals are validated with trend context (MA/SMMA/EMA/ATR), VWAP positioning, and optional momentum/volatility filters (RSI, Stoch, CCI, MACD, ADX, Volume Profile). Only score-threshold crosses can trigger long/short markers and alerts (defaults tuned for NQ).
XAUUSD: Ultimate Sniper🔥 Stop Gambling, Start Trading with Logic!
Gold (XAUUSD) is not just a chart; it is a global asset driven by the Dollar (DXY) and US Yields (US10Y). Standard indicators (RSI, MACD) often fail because they ignore these macro factors. XAUUSD Ultimate Sniper is designed to solve this problem by combining Macro Economics with Statistical Math.
This script is not just a signal generator; it is a complete trading system.
🚀 KEY FEATURES:
1. Macro Correlation Filter:
The script analyzes DXY (Dollar Index) and US10Y (10-Year Yields) in the background.
Logic: If the Dollar and Yields are rising, Gold is under pressure (Bearish). If they are falling, Gold has room to fly (Bullish).
Dashboard: A live panel on the top-right shows the trend of these assets instantly.
2. Linear Regression Channel (The Tunnel):
Instead of guessing support/resistance, we use a statistical Linear Regression Channel.
The channel shows the "Fair Value" of price. Deviations outside the channel indicate "Overbought" or "Oversold" zones mathematically.
3. Smart "Re-Entry" Logic (No Repainting):
Most indicators signal too early while the price is still crashing/rallying.
Our Solution: This script waits for the price to close back inside the channel. It captures the confirmed reversal, not the falling knife.
4. ATR Based Dynamic Risk Management:
Stop Loss (SL) and Take Profit (TP) levels are automatically calculated using ATR (Average True Range).
Live Labels: When a signal appears, you will see exact price levels for your SL and TP on the chart.
🛠️ HOW TO USE:
Timeframe: Optimized for 15 Minutes (15m).
The Panel: Check the top-right table. If DXY and US10Y are GREEN, look for BUY signals. If RED, look for SELL signals.
The Signals: Wait for the "AL" (Buy) or "SAT" (Sell) labels.
Execution: Enter the trade and set your Stop Loss / Take Profit exactly where the label tells you.
Risk Warning: Past performance is not indicative of future results. This tool is for educational purposes. Always manage your risk.
Combined Indicators V2 by DeepsageCombined Indicators V2 – Overview
Combined Indicators V2 is an advanced trading indicator that builds on Combined Indicators V1 by Deepsage and Weighted Market Screener by Deepsage. It is designed to provide precise signals for long and short trades on very low timeframes (1m–5m) while aligning entries with the overall market trend.
Background: The Original Indicators
1. Combined Indicators V1 (Deepsage)
Combines three specialized indicators to generate signals:
Breakout Indicator: Uses Bollinger Bands and volume behavior to identify potential breakout trades.
Price Action Indicator: Detects price interaction with support and resistance levels, incorporating trend, volatility, and candlestick patterns.
Range Trading Indicator: Calculates RSI or Stochastic oscillator and plots signals against predefined upper and lower bands for range-bound markets.
2. Weighted Market Screener (Deepsage)
Monitors the overall market trend using 12 different indicators, each weighted based on its relevance.
Produces a market trend rating: strong buy, buy, neutral, sell, or strong sell.
What’s New in V2
1. Trend-Aligned Entries
In V2, the entry indicators (Breakout, Price Action, Range Trading) only generate signals when the Market Screener confirms the trend (can be turned off).
Long trades: Screener must rate the market as Buy or Strong Buy.
Short trades: Screener must rate the market as Sell or Strong Sell.
2. Session-Based Optimization
V2 supports the NY, London, and Tokyo trading sessions.
Each indicator can be restricted to the session where it performs best (can be turned off):
NY: Breakout Indicator
London: Price Action Indicator
Asia: Range Trading Indicator
3. Additional Enhancements
Market Screener locked to 15-minute timeframe, giving a clear view of the overall trend while entries are still executed on 1-minute charts.
Fully customizable alerts for buy and sell signals.
Settings allow traders to toggle indicators and alerts on/off for maximum flexibility.
Summary
Combined Indicators V2 is a powerful, session-aware, trend-aligned trading tool that merges multiple strategies into one cohesive system. It allows traders to:
Trade low timeframes with precise entries
Only take trades that align with the overall market trend
Optimize strategies based on trading sessions
Customize alerts and indicator settings for personal preferences
Institutional Volatility Expansion & Liquidity Thresholds (IVEL)Overview
The IVEL Engine is an institutional-grade volatility modeling tool designed to identify the mathematical boundaries of price delivery. Unlike retail oscillators that use fixed scales, this script utilizes dynamic ATR-based multiples to map Institutional Premium and Discount zones in real-time.
How to Use
To maximize the effectiveness of the IVEL Engine, traders should focus on Price Delivery at the extreme thresholds:
Identifying Institutional Premium (Short Setup) : When price expands into the Upper Red Zone, it has reached a mathematical exhaustion point. Seek short-side entries when price shows signs of rejection from this level back toward the Fair Value Baseline.
Identifying Institutional Discount (Long Setup) : When price reaches the Lower Green Zone, it is considered "cheap" by institutional algorithms. Look for long-side absorption or accumulation patterns within this zone.
Mean Reversion Targets: The Fair Value Baseline (Center Line) acts as the primary magnetic target. Successful trades taken at the outer thresholds should use the baseline as the first objective for profit-taking.
Alerts & Execution Strategy
The IVEL Engine is designed for automated monitoring so you don't have to watch the screen 24/7. To set up your execution workflow:
Set the Alert : Right-click the indicator and select "Add Alert." Set the condition to "Price Crossing Institutional Premium" (Upper Red) or "Price Crossing Institutional Discount" (Lower Green).
Wait for the Hit : Do not market-enter as soon as the alert fires. The alert tells you price has entered a High-Probability Liquidity Zone.
Confirm the Rejection : Once alerted, drop down to a lower timeframe (e.g., 5m or 15m) and look for a "Shift in Market Structure" or an SMT Divergence.
Execute : Enter once the rejection is confirmed, targeting the Fair Value Baseline as your primary TP1.
Methodology
The script anchors to an EMA-based baseline and projects expansion bands that adapt to current market conditions.
Value Area : The blue inner region where the majority of trading volume occurs.
Liquidity Exhaustion : The red and green outer regions where the probability of "Smart Money" reversal is highest.
Session Liquidity Sweep + Trend ConfirmationThis strategy aims to capture high-probability intraday trades by combining liquidity sweeps with a trend confirmation filter. It is designed for traders who want a systematic approach to trade breakouts during specific market sessions while controlling risk with ATR-based stops.
How it Works:
Session Filter: Trades are only considered during a defined session (default 9:30 - 11:00). This helps avoid low-volume periods that can lead to false signals.
Trend Confirmation: The strategy uses a 50-period EMA to identify the market trend. Long trades are only taken in an uptrend, and short trades in a downtrend.
Liquidity Sweep Detection:
A long entry occurs when price dips below the prior N-bar low but closes back above it, indicating a potential liquidity sweep that stops being triggered before the trend continues upward.
A short entry occurs when price spikes above the prior N-bar high but closes below it, signaling a potential sweep of stops before the downward trend resumes.
ATR-Based Risk Management:
Stop loss is calculated using the Average True Range (ATR) multiplied by a configurable factor (default 1.5).
Take profit is set based on a risk-reward ratio (default 2.5x).
Position Sizing: Default position size is 5% of equity per trade, making it suitable for risk-conscious trading.
Inputs:
Session Start/End (HHMM)
Liquidity Lookback Period (number of bars to define prior high/low)
ATR Length for stop calculation
ATR Stop Multiplier
Risk-Reward Ratio
EMA Trend Filter Length
Visuals:
Prior Liquidity High (red)
Prior Liquidity Low (green)
EMA Trend (blue)
Why Use This Strategy:
Captures stop-hunt moves often triggered by larger market participants.
Only trades with trend confirmation, reducing false signals.
Provides automatic ATR-based stop loss and take profit for consistent risk management.
Easy to adjust session time, ATR, EMA length, and risk-reward to suit your trading style.
Important Notes:
Assumes 0.05% commission and 1-pip slippage. Adjust according to your broker.
Not financial advice; intended for educational, backtesting, or paper trading purposes.
Always test strategies thoroughly before applying to live accounts.
Squeeze Indicator Squeeze Indicator is a volatility-focused indicator designed to identify periods of compression and the early transition into expansion.
It measures Bollinger Band Width (BBW) using a 20-period Bollinger Band to quantify how tightly price is coiling, then smooths BBW with a 16-period SMA and a faster 8-period EMA to distinguish structural compression from short-term changes in volatility.
The BBW itself is displayed as a subtle grey filled area to emphasize relative contraction and expansion, while a squeeze condition is highlighted whenever BBW falls below both its SMA and EMA, signaling an environment where volatility is suppressed and a directional move is more likely to follow.
Crossovers of the EMA above or below the SMA provide early warnings of volatility expansion or renewed compression, making the indicator especially useful for timing breakouts, anticipating regime shifts from range to trend, and managing options strategies that depend on changes in volatility rather than price direction.
Trailing Stoploss % BasedA minimalistic trend-following indicator that plots a single trailing line based on a user-defined percentage using price highs and lows.
The line:
Trails price in trends
Moves only in the direction of the trend
Flattens when price is not making new highs or lows
Acts as support in uptrends and resistance in downtrends
Useful on all instruments and all timeframes for clean trend tracking and trailing stop management.
Volume Variance SuppressionVolume Variance Suppression Indicator
This indicator measures the variance of traded volume over a rolling window to detect periods of participation compression.
When volume variance falls below a defined threshold, it signals:
Reduced initiative order flow
Dominance of passive liquidity
Market balance / consolidation rather than trend
These suppression phases often precede volatility expansion, failed auctions, or impulsive moves, as liquidity builds and positioning becomes crowded.
The indicator is not directional and should be used as a market state filter, not a standalone signal. It helps distinguish balance vs expansion regimes and improves trade selection by aligning strategies with the current microstructural environment.
Risk Manager & ATR TS Strategy📌 Overview
This script is not a simple indicator mashup. It is a Risk & Trade Planning Engine that combines a strategy-based signal generator with a snapshot-based risk, sizing, and expectancy model. It is designed to support real trading decisions, not just to generate cosmetic signals or overfitted backtests.
The core idea is to separate market logic from risk logic, evaluating each trade only at the moment it becomes actionable using fixed reference points that do not change afterward.
🎯 What makes this script original Unlike most tools that merely combine indicators or visualize entries, this script introduces several non-standard design choices:
Snapshot-based risk sizing (The "Time Machine" logic).
Expected Value (EV) calculation in both Money and R-multiples.
Kelly Criterion applied with weighted multi-target logic.
Strict architectural separation between the signal engine and the risk engine.
Decision-oriented dashboard instead of decorative plots.
These components are not merged for convenience; they are architecturally dependent on each other.
🧠 Conceptual Architecture
1️⃣ Signal Engine (Market Context) The signal engine is based on an ATR Trailing Stop system combined with trend regime filters (ADX and Choppiness Index). Its only responsibility is to answer one question: "Is this a valid directional opportunity right now?" It does not manage risk; it only identifies the opportunity.
2️⃣ Snapshot Logic (Key Design Choice) When a valid signal occurs, the script captures a Snapshot of the Entry price, Initial Stop-Loss, and Risk Distance. This snapshot is frozen at signal time. It is never updated, even if the trailing stop moves later. This avoids the most common error in TradingView scripts: recalculating position size using a moving stop, which falsifies the risk data.
3️⃣ Risk Engine (Sizing & Control) Using the snapshot values, the script computes:
Monetary risk per trade (capped at your user-defined max).
Position size derived from the fixed stop distance.
Effective leverage (informational).
4️⃣ Multi-Target Reward Model Instead of assuming a single take-profit, the script supports multiple targets with user-defined probability weights. From this, it derives a Weighted Risk/Reward Ratio, which feeds directly into the EV and Kelly calculations.
5️⃣ Expected Value (EV) in Money & R The script calculates EV in your account currency (real impact) and normalized in R-multiples (statistical quality). This allows you to compare trade quality across different assets and timeframes objectively.
6️⃣ Kelly Criterion (Conservative) The Kelly Criterion is applied using the weighted reward model and is always subordinated to your hard risk cap. If Kelly suggests a negative value, the script advises "NO TRADE". It is used as a filter, not a leverage amplifier.
📊 Dashboard & Alerts The on-chart dashboard summarizes everything you need at the moment of the signal:
Risk % and Position Size
Expected Value (Money + R)
Kelly Suggestion
Signal Strength
Alerts are triggered once per signal (on bar close) using snapshot data, ensuring no repainting and no spam.
🔍 How this is NOT a mashup Each component exists because another component depends on it. Snapshot logic is required for valid risk sizing; Risk sizing is required for EV normalization; Weighted RR is required for meaningful Kelly. Removing any part breaks the system’s logic.
📘 How to use
Choose your account size and risk parameters in the settings.
Configure your stop logic and reward targets.
Wait for a valid signal.
Evaluate the dashboard: Decide if the trade quality (EV, R, Risk) justifies participation.
⚖️ Open-Source Notice This script is published under the Mozilla Public License 2.0 (MPL-2.0). It does not copy or replicate any single public script. Standard concepts (ATR, ADX) are used as building blocks, but the architecture and calculations are original.
🚫 Disclaimer This script is a planning and evaluation engine designed to help traders think in terms of risk, expectancy, and discipline. It does not guarantee profitability.
✅ Summary This is a professional-grade framework built to answer one core question: “Is this trade worth taking, given my risk and my expectations?” Not every signal is a trade, and not every trade deserves capital. This script helps you make that distinction.






















