Estrategia

NLMS Volatility Trail [BackQuant]NLMS Volatility Trail
Overview
NLMS Volatility Trail is an adaptive trend-following overlay that combines a machine-learning style adaptive filter with a volatility-based trailing structure. It is built around the Normalized Least Mean Squares (NLMS) algorithm, then converts that adaptive estimate into an ATR-based trailing line designed to follow directional regimes while filtering out minor noise.
The indicator has two core layers:
An NLMS adaptive filter , which learns a dynamic price estimate from prior bars.
An ATR volatility trail , which converts that learned estimate into a step-like directional trailing structure.
The goal is to produce a trend line that is more adaptive than a traditional moving average and more structured than a raw adaptive filter. The NLMS engine learns the underlying price path, while the ATR trail adds volatility-aware confirmation so trend shifts only occur when the adaptive estimate moves meaningfully.
Core idea
Most trend filters use fixed smoothing rules. An EMA, SMA, WMA, or HMA always applies the same mathematical weighting scheme regardless of whether the market is trending, ranging, expanding, or compressing.
NLMS is different. It continuously updates its internal weights based on prediction error.
This means the filter is not just averaging price. It is constantly asking:
How well did the previous weighting structure predict the current bar?
How large was the error?
How should the weights adjust to reduce future error?
The second layer then takes that adaptive estimate and applies an ATR-based trailing mechanism around it. This creates a volatility-adjusted trend trail that reacts to confirmed shifts while ignoring smaller movements that do not exceed the range structure.
What NLMS is
NLMS stands for Normalized Least Mean Squares . It is an adaptive filtering algorithm from digital signal processing. It is closely related to the original LMS algorithm developed by Bernard Widrow and Ted Hoff, which became one of the foundational online learning methods used in adaptive systems.
Adaptive filters have historically been used in:
Noise cancellation
Echo cancellation
Telecommunications
Radar and sonar processing
Signal prediction
Control systems
The basic purpose is to estimate or predict a signal while continuously adapting to changing conditions.
In trading terms, this indicator uses NLMS to build a learned estimate of price from prior bars.
How the NLMS filter works
The filter uses a set of historical inputs called taps .
If taps = 72, the model uses the previous 72 bars:
source
source
source
...
source
Each tap has a learned weight.
The prediction is calculated as:
prediction = w1 × source + w2 × source + ... + wM × source
The filter then compares the prediction to the actual current source:
error = source - prediction
That error drives the weight update.
If the prediction was poor, the weights adjust more.
If the prediction was accurate, the weights adjust less.
This creates an adaptive estimate that evolves with market behavior.
Why it is normalized
The normal LMS algorithm updates weights based on the raw input and prediction error. The issue is that if the input signal becomes large or volatile, updates can become unstable.
NLMS solves this by dividing the update by the input power:
power = sum(source ²)
The update becomes:
w = w + (μ / (ε + power)) × error × input
This normalization makes the learning process more stable across different volatility environments.
When the input power is high:
Updates are scaled down.
The filter avoids overreacting.
When the input power is low:
Updates are allowed to remain meaningful.
This is why NLMS is better suited to markets than a basic adaptive filter. Markets constantly shift between quiet and volatile regimes.
Weight initialization
The script initializes all weights equally:
weight = 1 / M
This means the filter starts with an SMA-like prior. Before learning begins, every historical bar contributes equally.
Over time, the filter adapts away from that equal-weight baseline and learns its own weighting structure.
Inputs that control the NLMS engine
Filter Taps (M)
Controls how many historical bars the model learns from.
Higher taps:
More memory
Smoother adaptive estimate
Slower response to regime change
Lower taps:
Less memory
Faster reaction
More noise sensitivity
Step Size (μ)
Controls the learning rate.
Lower μ:
Slower learning
Smoother output
More stable
Higher μ:
Faster learning
More responsive
Can become noisy if too aggressive
This is one of the most important settings. It controls how quickly the model changes its internal weights.
Regularization (ε)
Prevents instability when input power is very low.
It acts as a stabilizer in the denominator:
ε + power
Higher values make updates more conservative.
Lower values allow stronger adaptation but can become less stable in quiet conditions.
From adaptive filter to volatility trail
The raw NLMS output is not plotted directly as the main trend line. Instead, it is passed into a volatility trailing structure.
The script builds an ATR band around the NLMS estimate:
Upper band = NLMS output + ATR × factor
Lower band = NLMS output - ATR × factor
Then it creates a trailing value that only updates when the NLMS band structure forces it to move.
This creates a trail that behaves similarly to a volatility stop, but the center is not price or hl2. It is the learned NLMS estimate .
ATR volatility trail logic
The trail starts from the NLMS output, then carries forward its previous value:
nlmsAtr := previous nlmsAtr
Then:
If lower band rises above the trail, the trail moves up.
If upper band falls below the trail, the trail moves down.
This creates a directional trailing structure:
In bullish regimes, the trail ratchets upward.
In bearish regimes, the trail ratchets downward.
It filters out small movements because price must move enough relative to ATR and the adaptive estimate to change the trail direction.
Why combine NLMS with ATR
NLMS alone gives an adaptive estimate, but it can still wiggle as the model learns.
ATR alone gives volatility structure, but it is usually tied to raw price and fixed smoothing.
Combining them gives:
Adaptive intelligence from NLMS.
Volatility confirmation from ATR.
Cleaner trend state transitions.
Less dependence on fixed moving-average assumptions.
The NLMS model learns the underlying price behavior, while ATR decides whether movement is large enough to matter.
Trend direction
Trend flips are detected from the trail itself:
Bullish when nlmsAtr crosses above its previous value.
Bearish when nlmsAtr crosses below its previous value.
This means signals are generated when the volatility trail changes direction, not when price simply crosses the line.
That is important because:
The trail must structurally move.
The signal is tied to confirmed trail direction.
Noise around the line does not automatically create a flip.
Visual design
The indicator includes several visual layers.
Main trail line
The central plotted line is the NLMS ATR trail. It changes color based on the current trend state:
Green for bullish trail direction.
Red for bearish trail direction.
Gray before a trend state is established.
Gradient fill
The script fills the space between price and the trail:
If price is above the trail, bullish fill is shown.
If price is below the trail, bearish fill is shown.
The fill is stronger near the trail and fades toward price, making the trail feel like the active structural reference.
Trail glow
A soft glow is drawn around the trail using a small ATR offset:
glow = ATR(14) × 0.06
This highlights the trail visually without cluttering the chart.
Trend candles
Candles are colored by trend state:
Bullish trend = bullish candles.
Bearish trend = bearish candles.
This allows the script to function as a complete regime overlay.
How to interpret the indicator
Bullish state
A bullish state occurs when the NLMS volatility trail turns upward.
This suggests:
The adaptive filter is shifting higher.
The ATR trail has confirmed upward structure.
Trend pressure has turned bullish.
Bearish state
A bearish state occurs when the NLMS volatility trail turns downward.
This suggests:
The adaptive estimate is shifting lower.
The volatility trail has confirmed downside structure.
Trend pressure has turned bearish.
Price above the trail
Generally indicates bullish structure.
Price below the trail
Generally indicates bearish structure.
But the most important signal is the direction of the trail itself, not every price touch.
How to use it in practice
1) Trend following
Use the trail direction as the primary bias:
Favor longs when the trail is bullish.
Favor shorts when the trail is bearish.
2) Dynamic support/resistance
The trail can act like a dynamic structural level:
In uptrends, pullbacks toward the trail can act as support.
In downtrends, rallies toward the trail can act as resistance.
3) Trade management
The trail can be used as:
A trailing stop guide.
A regime invalidation level.
A trend continuation reference.
4) Regime filtering
Because the line adapts using NLMS and only flips when the volatility trail turns, it can be used to filter other entries:
Take only long setups during bullish trail regimes.
Take only short setups during bearish trail regimes.
Avoid countertrend trades when the trail is strongly directional.
Difference from normal Supertrend or ATR trails
A normal ATR trail is usually built directly from price or hl2.
This indicator is different because the trail is built around an adaptive learned estimate.
That means:
The centerline is not raw price.
It is not a fixed moving average.
It is a continuously learned NLMS estimate.
So the trail has a different character:
More adaptive than a standard moving average trail.
More stable than a raw price-based ATR stop.
More responsive to changing market structure than fixed filters.
Difference from the NLMS Adaptive Trend Filter
The NLMS Adaptive Trend Filter plots the learned estimate directly and reads trend from its slope.
NLMS Volatility Trail goes one step further:
It uses the learned estimate as the base.
Then wraps it with ATR structure.
Then turns that into a trailing regime line.
So this version is more structure-oriented and better suited for trailing trend behavior.
Parameter tuning
Taps
Use higher taps for smoother trend structure.
Use lower taps for faster adaptation.
Step Size
Use lower step size for stability.
Use higher step size for responsiveness.
Regularization
Use higher regularization when the filter feels unstable.
Use lower regularization when the filter is too sluggish.
ATR Period
Controls volatility estimate:
Shorter = more reactive trail.
Longer = smoother trail.
ATR Factor
Controls band width:
Higher factor = wider trail, fewer flips.
Lower factor = tighter trail, more flips.
Strengths
Combines adaptive filtering with volatility trailing logic.
Learns from market structure instead of using fixed weights.
Uses ATR to reduce noise and confirm meaningful movement.
Good for trend following and trailing stop frameworks.
Visually clean with gradient fill and candle coloring.
Limitations
Still reactive, not predictive.
Can lag during violent reversals.
High learning rates may create noise.
Low ATR factors may cause whipsaws.
Requires tuning for timeframe and asset volatility.
Summary
NLMS Volatility Trail combines an adaptive NLMS predictor with an ATR-based trailing structure. The NLMS layer continuously learns a dynamic estimate of price from historical bars, while the ATR trail converts that estimate into a cleaner directional regime line. This makes the indicator more adaptive than a traditional moving average and more structured than a raw adaptive filter. It is best used as a trend-following overlay, dynamic support/resistance guide, and volatility-aware trailing framework.
Indicador

Indicador

Indicador

Indicador

Indicador

Multi-Timeframe Trend Table (Weighted)**Multi-Timeframe Trend Table (Weighted) — Market Bias Dashboard**
This indicator is a **multi-timeframe trend analysis system** designed to evaluate overall market direction using a weighted combination of **ATR trend structure, Stochastic RSI momentum, and Moving Averages** across multiple timeframes.
It aggregates data from higher to lower timeframes into a single **bias scoring table**, giving traders a clear, structured view of market sentiment and directional strength.
---
### 🔍 Core Concept
Instead of relying on a single timeframe or indicator, this tool builds a **composite market bias model** by:
* Analysing trend strength across multiple timeframes (Monthly → 1M)
* Applying weighted importance to each timeframe
* Combining three key systems:
* ATR-based trend direction (volatility structure)
* Stochastic RSI momentum shifts
* Moving Average bias filter
---
### 📊 Key Features
• **Multi-Timeframe Structure**
* Monthly, Weekly, Daily, 4H, 1H, 30m, 15m, 1m analysis
* Hierarchical trend evaluation from macro → micro
• **Weighted Bias System**
* Assigns importance to each timeframe (customisable)
* Higher timeframes dominate overall market direction
* Produces a final **bullish / bearish bias score**
• **Triple Indicator Confirmation**
Each timeframe uses:
* ATR trend logic (volatility direction)
* Stochastic RSI (momentum confirmation)
* Moving Average filter (trend bias)
• **No Repainting Logic**
* Uses confirmed higher timeframe closes only
* Prevents false real-time signal shifts
* Ensures stable, reliable bias readings
• **Signal Threshold System**
* Custom X-signal trigger based on bias strength
* Highlights strong directional conviction zones
---
### 📊 How to Use
**Bullish Bias**
* Higher timeframes align bullish
* Weighted score exceeds threshold
→ Market favours long setups
**Bearish Bias**
* Higher timeframes align bearish
* Weighted score exceeds threshold
→ Market favours short setups
**Neutral / Mixed Bias**
* Conflicting multi-timeframe signals
→ Avoid directional trading or wait for alignment
---
### ⚠️ Best Practice
This is a **market context tool**, not a standalone entry system.
For best performance combine with:
* Liquidity zones
* Market structure (BOS / CHoCH)
* Support & resistance levels
* Entry triggers from lower timeframe setups
---
### 🚀 Ideal For
* Swing traders
* Position traders
* Smart money / structure-based trading
* Multi-timeframe confirmation strategies
* Crypto, Forex, indices
---
### 🧠 Trading Philosophy
**Higher timeframes define direction.
Lower timeframes define execution.
This tool bridges both into one bias model.**
---
**Trade with alignment, not randomness.** Indicador

Indicador

Candle Countdown & Position SizerCandle Countdown & Position Sizer
A compact on-chart table that keeps the two things a scalper checks most in one place: time and size.
It shows:
- Live clock with seconds, in the timezone you pick (Exchange, UTC, NY, London, Tokyo, Sydney).
- Countdown to the next 1m, 5m and 15m candle — so you always know how long the current bar has left. Each row turns to your chosen alert color in the final seconds before the candle closes.
- Suggested lot size based on ATR volatility, so your risk stays constant trade to trade.
How the sizing works
Tell it three things:
- how many dollars you're willing to lose on the trade,
- how wide your stop is, as a multiple of ATR (default 2× ATR),
- the ATR length and smoothing (Wilder or exponential — default EMA 100).
It computes the stop distance from current ATR and returns the lot size that caps your loss at that dollar amount if the stop is hit, rounded to a whole number. Flip on the debug toggle to also see the raw ATR and stop
distance behind the calculation.
Notes
- Updates arrive on price ticks, so during very quiet periods the clock may skip a second.
- Lot size uses the symbol's point value — always confirm it against your broker's contract specs before trading.
- Candle countdowns are anchored to UTC and are exact for intraday timeframes on 24h markets.
Not financial advice — a position-sizing aid. You are responsible for your own risk.
Indicador

Indicador

Average True Range PercentATRP expresses Average True Range as a percentage of price instead of an absolute value. Raw ATR is denominated in price, so it can't be used to compare volatility across instruments trading at different price levels — a $10 stock and a $400 stock will have very different ATR values even if they move by the same relative amount. Dividing ATR by close (×100) normalizes it into a percentage, making volatility comparable across any symbol, timeframe, or asset class.
How It's Calculated
True range is smoothed with a selectable moving average rather than a fixed method, so you can match the indicator's responsiveness to your own style.
Settings
ATR Lookback Period — number of bars used in the smoothing calculation (default 14).
ATR Smoothing — RMA, SMA, EMA, or WMA (default RMA, the classic Wilder smoothing used by standard ATR).
ATR Timeframe — calculate ATR on the chart's own timeframe, or pin it to a fixed timeframe (ticks, seconds, minutes, hours, days, weeks, or months) regardless of what chart resolution you're viewing. Useful for gauging a higher-timeframe's volatility while trading a lower one.
Wait for Timeframe Closes — only relevant when ATR Timeframe differs from the chart. Off: the value updates live with the still-forming higher-timeframe bar (can repaint on historical reloads). On: the value only updates once the selected timeframe's bar has actually closed (no repainting, one-bar lag).
Indicador

Indicador

3D: Real Smartphone Monitor Pro3D Real Smartphone Monitor Pro: Master Discipline and The Art of "No Position"
IMPORTANT: First-Time Setup and Size Adjustment
Because TradingView automatically scales the Y-axis (price) and X-axis (time) differently depending on the asset and your screen resolution, this 3D monitor may appear stretched, squashed, or incorrectly sized upon initial application. This is a standard limitation of projecting 3D elements onto 2D charts.
How to resolve this immediately:
Open the Indicator Settings.
Navigate to the "3D Manual Scaling & Camera Settings" group.
Adjust the "Y-Axis Scale (Height)" and "X-Axis Scale (Width)" sliders.
Tweak the "Master Scale Multiplier" until the smartphone perfectly fits your screen layout.
Note: Because the optimal scale varies entirely depending on the specific asset, we have provided comprehensive manual scale adjustment settings. If you find any parameters lacking or require further adjustments, please notify us in the comments, and we will respond promptly.
Concept: The Purpose of a Chart Smartphone
Trading is not solely about identifying entries; it is about mastering psychology. Overtrading is a trader's greatest adversary. This monitor serves as a visual anchor to ground you in reality and reinforce the power of discipline.
When compelled to force a trade, look at this monitor and read the scrolling proverbs. Remember that maintaining "no position" is a highly strategic position. Stepping away from the chart is frequently the most profitable decision you can make.
Features and Technical Synchronization:
Time Awareness: A built-in clock keeps you grounded in reality, preventing time distortion while analyzing charts.
Battery Level (RSI Sync): The battery percentage reflects the 14-period RSI, instantly indicating market exhaustion (oversold/overbought conditions).
Antenna Signal (ADX Sync): The signal bars represent the 14-period ADX. A full signal indicates a massive trend, while a weak signal suggests a flat market—ideal for determining whether to engage or step away.
Dynamic Interface: Designed with meticulous attention to realism, featuring titanium-style edges, glass glare, a dynamic top notch, and native emoji app icons.
Stay disciplined, protect your capital, and sometimes, just put the monitor down.
Pine Script Calculation Details
Calculation: int msg_idx = int(bar_index / 20) % 10
Mathematical Rationale: The bar_index (current candle number) is divided by 20 to create a trigger that changes the output every 20 bars. The modulo operator (% 10) ensures the resulting index loops sequentially from 0 to 9, which maps perfectly to the 10 proverb elements stored in the array.
Actual Output Values:
At bar_index 100: int(100 / 20) % 10 outputs 5 (Displays array element index 5).
At bar_index 110: int(110 / 20) % 10 outputs 5 (Message remains the same).
At bar_index 120: int(120 / 20) % 10 outputs 6 (Message switches to the next index). Indicador

Tick Velocity [DYNA]Tick Velocity measures the speed of price movement on every bar, normalized by ATR and log-compressed so the reading works consistently across any instrument and any timeframe. Instead of asking "did price go up or down?" it asks "how fast did price move?" -- and that distinction makes all the difference when you need to spot momentum bursts and exhaustion in real time.
Most momentum tools tell you the direction of a move but not its intensity relative to normal conditions. A 50-point move on a major index means something very different during a quiet afternoon versus an opening-bell surge. Tick Velocity strips away that ambiguity by expressing every bar's price change as a multiple of recent volatility with log compression, giving you a clean, comparable speed reading that doesn't get crushed by outlier spikes.
Key Features
ATR-Normalized Velocity -- price change divided by ATR, so readings are comparable across instruments and timeframes without manual adjustment
Log-Compressed Scale -- extreme spikes are tamed so the histogram uses its full visual range, making normal-range momentum readable even after outlier moves
Signal Line -- a smoothed EMA overlay shows sustained momentum direction, filtering out bar-to-bar noise
Dynamic Spike Detection -- automatically identifies bars where velocity exceeds a configurable multiple of its recent average, with separate bullish and bearish alerts
Smart Exhaustion Detection -- flags fading momentum only after periods of genuine activity, so you don't get false exhaustion signals during quiet consolidation
Confirmed-Bar Logic -- all signals are evaluated on the completed bar, so what you see on the chart stays on the chart with no repainting
Clean Visual Design -- color-coded histogram with dynamic threshold lines and signal line makes it easy to read momentum state at a glance
How It Works
When you add Tick Velocity to your chart, a histogram appears in a separate pane below price. Each bar in the histogram represents the speed of that candle's price change: green bars mean price moved up, red bars mean price moved down, and the height of each bar shows how fast the move was. Log compression keeps the scale readable -- a massive gap-up spike won't flatten everything else into an invisible line.
An orange signal line (EMA) overlays the histogram, smoothing out bar-to-bar noise to show you the sustained momentum direction. When the signal line holds above zero, bulls are in control; when it dips below, bears are driving.
Two sets of threshold lines frame the histogram. The outer yellow lines mark the spike threshold -- when a bar pushes beyond these lines, price moved significantly faster than normal, indicating a momentum burst. The inner purple lines mark the exhaustion threshold -- when bars shrink inside these lines after a period of elevated activity, momentum is fading and the market may be pausing or preparing to reverse. The smart exhaustion gate ensures purple zones only appear after real momentum -- not during quiet consolidation.
Background shading reinforces these conditions. A yellow tint appears on confirmed spike bars, and a purple tint appears on confirmed exhaustion bars, making it easy to scan through the chart and see where momentum surged or faded.
Tick Velocity histogram showing bullish and bearish velocity bars, with spike threshold lines (yellow) and exhaustion bands (purple). Background highlights mark confirmed spike and exhaustion events.
Settings
The core settings control sensitivity. The Velocity Lookback (default 10) determines how many bars are used to calculate the average velocity -- lower values make the indicator more responsive for scalping, higher values smooth it out for swing trading. The ATR Period (default 14) controls the normalization window. The Signal Smoothing (default 5) sets the EMA period for the orange signal line.
The Spike Multiplier (default 2.0) sets how far above average a bar must travel to count as a spike. Raise it to 2.5 or 3.0 if you only want the strongest bursts. The Exhaustion Multiplier (default 0.5) sets how far below average velocity must drop to flag exhaustion. The Exhaustion Gate Multiplier (default 1.5) ensures exhaustion only triggers when recent activity exceeds the longer-term baseline by this factor -- preventing false signals during quiet consolidation. Threshold lines, background highlights, and the signal line can each be toggled independently under Visual settings.
Alerts
Bullish Velocity Spike -- fires when upward velocity exceeds the spike threshold on a confirmed bar. Message: "Bullish velocity spike -- strong upward momentum burst."
Bearish Velocity Spike -- fires when downward velocity exceeds the spike threshold on a confirmed bar. Message: "Bearish velocity spike -- strong downward momentum burst."
Velocity Exhaustion -- fires when velocity drops below the exhaustion threshold after a period of elevated activity. Message: "Tick Velocity exhaustion detected -- momentum fading after active period, possible pause or reversal."
To set up alerts: click the TradingView Alerts button, select "Tick Velocity " from the indicator dropdown, choose "Any alert() function call" as the condition, and set your preferred notification method.
Best Practices
Use velocity spikes at key support and resistance levels to confirm breakouts -- a spike adds conviction that the level break is real
Watch for exhaustion signals after extended trends to time profit-taking or tighten stop-loss placement
Combine with volume indicators for added confirmation -- a velocity spike on high volume is more meaningful than one on thin volume
Adjust the lookback period to match your trading style: 5-7 for scalping, 10-15 for intraday, 20+ for swing trading
On lower timeframes (1-3 minute), consider raising the spike multiplier to reduce noise from normal market fluctuations
Part of the DYNA Ecosystem
Tick Velocity is a free indicator built with the same design standards as the DYNA premium suite. For complete trade management with automatic stop loss, break-even, trailing stops, and multi-target systems, explore the full DYNA indicator collection.
Disclaimer
This indicator is a technical analysis and educational tool only -- it is not financial advice and makes no guarantee of any outcome. Past performance does not predict future results. Always do your own research and use proper position sizing and risk management.
Created by Varun Nidhi · varunnidhi.com
A free DYNA indicator — self-contained, no repainting.
Indicador

Spread Compression Alert [DYNA]Markets don't move in straight lines -- they alternate between periods of compression and expansion. Spread Compression Alert detects when candle ranges shrink to unusually low levels, warning you that a sharp move is building beneath the surface. Instead of reacting after a breakout has already happened, you can position yourself before it begins.
Most traders miss the quiet before the storm. They stare at flat price action and look away, only to catch the tail end of a big move. This indicator solves that problem by continuously comparing short-term volatility to its longer-term baseline and flagging the exact moments when the market is coiling tightest -- right when you should be paying the most attention.
Key Features
ATR Compression Ratio -- Compares fast ATR to slow ATR to objectively measure how compressed current price action is relative to normal conditions
Diamond Markers -- Small orange diamonds appear above each compressed bar, giving you an instant visual scan of where the market is tightening
Cluster Detection -- When multiple consecutive bars are compressed, the background highlights orange, signaling that expansion pressure is building to extreme levels
Confirmed-Bar Logic -- All signals are calculated on confirmed (closed) bars, so markers never appear and disappear mid-bar
How It Works
As you watch a chart, you will notice small orange diamond markers appearing above certain bars. Each diamond indicates that the bar's range is significantly smaller than the recent average -- the market is compressing. A single diamond is worth noting but not necessarily actionable.
When diamonds appear on several consecutive bars, the background turns a soft orange. This is the cluster highlight, and it tells you the market has been compressing for an extended period. Many traders study these clusters as periods of consolidation that can precede a range expansion. The longer the compression lasts, the more notable the eventual breakout in range can be.
Orange diamonds mark individual compressed bars. The background highlight appears when consecutive compressed bars reach the threshold, flagging an extended period of compression.
Settings
The indicator works out of the box with sensible defaults. The Fast ATR Length (default 5) measures recent candle ranges, while the Slow ATR Length (default 50) establishes the normal volatility baseline. The Compression Ratio (default 0.6) sets how tight the range must get before flagging compression -- lower values require more extreme compression. The Consecutive Bar Threshold (default 3) controls how many compressed bars in a row trigger the cluster highlight and extreme compression alert.
For lower timeframes like 1-5 minute charts, you may want to reduce the Slow ATR Length to 30 so the baseline adapts faster. For stricter signals on any timeframe, try lowering the Compression Ratio to 0.3.
Alerts
Compression Detected -- Fires when a single compressed bar is confirmed. Message: "Spread Compression Alert : Candle range compression detected. ATR ratio dropped below threshold -- watch for expansion."
Extreme Compression -- Fires when consecutive compressed bars reach the threshold. Message: "Spread Compression Alert : Extreme compression -- multiple consecutive compressed bars. Expansion is imminent."
To set up alerts: click the TradingView Alerts button, select "Spread Compression Alert " from the indicator dropdown, choose "Any alert() function call" as the condition, and set your preferred notification method.
Best Practices
Compression tells you when a move is coming, not which direction. Pair this indicator with a trend or momentum tool for directional bias.
Compression clusters near key support or resistance levels tend to produce the most tradeable breakouts.
This indicator is especially useful before scheduled news events or market opens, when volatility is temporarily suppressed.
On higher timeframes (4H, Daily), compression signals can indicate multi-day consolidation patterns worth monitoring for swing entries.
Part of the DYNA Ecosystem
Spread Compression Alert is a free indicator built with the same design standards as the DYNA premium suite. For complete trade management with automatic stop loss, break-even, trailing stops, and multi-target systems, explore the full DYNA indicator collection.
Disclaimer
This indicator is a technical analysis and educational tool only -- it is not financial advice and makes no guarantee of any outcome. Past performance does not predict future results. Always do your own research and use proper position sizing and risk management.
Created by Varun Nidhi · varunnidhi.com
A free DYNA indicator — self-contained, no repainting.
Indicador

Scalper's Moving Average [DYNA]Scalper's Moving Average is an adaptive overlay line that automatically adjusts its speed based on market conditions. In trending markets it tracks price closely, keeping you in the move. In choppy, sideways markets it flattens out, filtering noise and keeping you from getting whipsawed. It is built on the Kaufman Adaptive Moving Average (KAMA) algorithm, tuned specifically for 1-5 minute scalping charts.
Most moving averages force you to choose between speed and smoothness. A fast MA gives early signals but generates constant false flips in chop. A slow MA filters noise but lags behind real moves, costing you ticks on every entry. Scalper's Moving Average solves this tradeoff by measuring how efficiently price is moving and adjusting its responsiveness in real time.
Key Features
Adaptive Speed -- Automatically speeds up when price is trending and slows down when the market is chopping, so you get one line that does the work of two
Slope Color Coding -- The KAMA line changes color based on its slope direction: teal for rising, red for falling, gray for flat. Instant visual read of trend bias
Distance Fill -- Optional shaded area between price and KAMA shows how far price has stretched from its adaptive mean, helping you spot overextension and pullback entries
Slope Flip Markers -- Small triangle markers appear on the chart when the KAMA slope changes direction, flagging potential trend shifts at a glance. An ATR-based filter and cooldown system suppress noise flips in choppy markets
No Repainting -- Slope flip signals use confirmed-bar logic and will not change once printed
How It Works
When you add the indicator to your chart, you will see a single colored line overlaid on your candles. This is the KAMA line. Unlike a standard EMA or SMA, it does not move at a fixed speed. Instead, it calculates an efficiency ratio on every bar -- comparing how far price has moved in one direction versus how much total back-and-forth movement occurred. When that ratio is high (strong trend), the line speeds up and hugs price closely. When the ratio is low (chop), the line barely moves.
The line color tells you the current slope direction at a glance. A teal line means KAMA is rising and momentum favors the bulls. A red line means KAMA is falling and momentum favors the bears. A gray line means the slope is flat and the market has no clear direction -- a signal to stay patient.
When the slope changes direction, a small triangle marker appears directly on the KAMA line. An "UP" triangle marks a bullish flip, and a "DN" triangle marks a bearish flip. These transitions are the earliest indication that the adaptive trend bias has shifted. To keep the chart clean, flips are filtered by an ATR-scaled minimum slope threshold -- tiny wiggles in chop are ignored -- and a cooldown period prevents rapid-fire labels from stacking up.
KAMA line hugging price tightly during a trending move, with distance fill showing the stretch between price and the adaptive average.
Distance Fill
The optional distance fill shades the area between the close price and the KAMA line. When price is above KAMA the fill is teal; when below, the fill is red. When price is hugging KAMA closely (within the dead-zone threshold), the fill turns neutral gray, giving you an instant visual cue that the market is chopping and there is no meaningful stretch to trade. The width of the colored fill tells you how far price has stretched from its adaptive mean. A wide fill suggests the move may be overextended -- not the ideal time to chase. A narrowing fill as price pulls back toward KAMA can highlight better entry zones where risk-to-reward improves.
Distance fill expanding during a strong move, then narrowing as price pulls back to KAMA -- a potential re-entry zone.
Settings
The core settings control the KAMA calculation. KAMA Length (default 10) sets the lookback window for the efficiency ratio -- lower values make the line more reactive, higher values smooth it out. Fast Constant (default 2) determines the fastest the line can move when the trend is strong. Slow Constant (default 30) determines how sluggish the line becomes in chop. The defaults are tuned for 1-3 minute charts and work well for most scalping scenarios.
The flip filter settings control label quality. Min Slope (ATR %) (default 0.15) sets the minimum slope magnitude as a fraction of ATR -- raise it to filter out more noise flips in choppy conditions. Cooldown Bars (default 5) enforces a minimum gap between flip labels, preventing clusters of rapid UP/DN markers. Both settings also define the neutral dead-zone for slope coloring and fill.
Under visual settings, you can toggle the distance fill on or off and adjust the KAMA line thickness.
Alerts
Slope Flip Bullish -- Fires when the KAMA slope turns from flat or falling to rising. Message: "Scalper's Moving Average : KAMA slope flipped bullish. Trend may be turning up."
Slope Flip Bearish -- Fires when the KAMA slope turns from flat or rising to falling. Message: "Scalper's Moving Average : KAMA slope flipped bearish. Trend may be turning down."
To set up alerts: click the TradingView Alerts button, select "Scalper's Moving Average " from the indicator dropdown, choose "Any alert() function call" as the condition, and set your preferred notification method.
Best Practices
Start with the default 10/2/30 settings on 1-3 minute charts before making adjustments
When the KAMA line is flat and gray, avoid trend-following trades -- the market is chopping
Use the distance fill to time entries: enter on pullbacks toward KAMA rather than chasing extended moves
Combine slope flip signals with volume or support/resistance levels for higher-confidence entries
If trading 5-minute charts, consider increasing KAMA Length to 14 or 20 for smoother signals
Part of the DYNA Ecosystem
Scalper's Moving Average is a free indicator built with the same design standards as the DYNA premium suite. For complete trade management with automatic stop loss, break-even, trailing stops, and multi-target systems, explore the full DYNA indicator collection.
Disclaimer
This indicator is a technical analysis and educational tool only -- it is not financial advice and makes no guarantee of any outcome. Past performance does not predict future results. Always do your own research and use proper position sizing and risk management.
Created by Varun Nidhi · varunnidhi.com
A free DYNA indicator — self-contained, no repainting.
Indicador

Range Box Scalper [DYNA]Range Box Scalper detects when price compresses into a tight consolidation zone and visually draws a box around it in real time. When price breaks out of the box with above-average volume, the indicator marks the exact breakout bar with a directional arrow, so you can act on the expansion move without second-guessing the setup.
Most traders know that consolidation leads to expansion, but spotting the range in real time and confirming the breakout with volume is tedious manual work. Range Box Scalper automates the entire process: it watches for price to stay within an ATR-defined corridor for a minimum number of bars, draws the consolidation zone as a visible box on the chart, and then waits for a decisive close outside the box backed by strong volume before signaling the breakout.
Key Features
Automatic Range Detection -- Identifies consolidation zones based on ATR-calibrated price width and minimum bar count. No manual drawing required.
Live Box Drawing -- Shaded boxes appear and extend in real time as price continues to range, giving you a clear visual boundary to watch.
Volume-Confirmed Breakouts -- Breakout arrows only appear when volume exceeds a configurable multiple of the 20-bar average, filtering out weak, low-conviction exits.
Breakout Strength Filter -- Requires the breakout candle to close a minimum distance (ATR-based) beyond the range boundary, eliminating marginal breakouts.
Built-in Trend Filter -- Optional EMA-based trend filter ensures breakouts only fire in the direction of the prevailing trend, so you can focus on with-trend setups.
Directional Breakout Arrows -- Green upward triangles for bullish breakouts, red downward triangles for bearish breakouts, placed right at the breakout bar.
No Repainting -- All signals use confirmed-bar logic. Once a box or arrow appears, it stays.
How It Works
As price action unfolds, Range Box Scalper continuously monitors whether recent bars are staying within a narrow corridor. The corridor width is derived from ATR, so it automatically adapts to the volatility of whatever instrument you are trading. When price stays inside this corridor for your configured minimum number of bars, a shaded gray box appears on the chart marking the consolidation zone. You will also see a small orange diamond labeled "Range" on the bar where the consolidation is first confirmed.
The box continues to extend to the right as long as price remains inside the boundaries. The moment price closes decisively outside the box and the breakout bar carries above-average volume, the indicator marks the breakout with a colored arrow: a green triangle below the bar for a bullish breakout, or a red triangle above the bar for a bearish breakout. The box border also changes color to match the breakout direction, giving you a quick historical reference for which zones broke which way.
If price drifts out of the range on weak volume, no breakout signal fires. The indicator simply resets and begins looking for the next consolidation. This volume filter is what separates genuine expansion moves from false exits that quickly reverse.
A consolidation box forming over several bars, followed by a bullish breakout arrow when price closes above the range with strong volume.
Settings
The core settings control how the indicator defines a consolidation zone. Min Range Bars (default: 6) sets how long price must stay compressed before a box is drawn -- lower values on fast timeframes, higher values on daily charts. ATR Multiplier (default: 1.5) controls the maximum allowed range width relative to ATR; lower values mean tighter, more compressed boxes, while higher values detect more consolidation zones. Volume Confirmation (default: 1.2x) sets the volume threshold for breakout signals; increase this if you want only the strongest breakouts.
Min Breakout Strength (default: 0.1x ATR) requires the breakout candle to close at least this distance beyond the range boundary, filtering out marginal breakouts that barely clear the box edge. The Trend Filter (default: off, EMA 50) optionally restricts breakouts to the trend direction -- bullish breakouts only fire above the EMA, bearish breakouts only below. Enable this if you want to filter counter-trend setups.
Visual toggles let you show or hide the consolidation boxes and breakout arrows independently. Each alert type can also be toggled on or off.
Alerts
Consolidation Forming -- Fires when price has ranged for the minimum number of bars and a new consolidation zone is confirmed. "Range Box Scalper: Consolidation zone detected. Price is ranging in a tight range."
Breakout Up -- Fires when price closes above the consolidation box with volume confirmation. "Range Box Scalper: Bullish breakout from consolidation zone with volume confirmation."
Breakout Down -- Fires when price closes below the consolidation box with volume confirmation. "Range Box Scalper: Bearish breakout from consolidation zone with volume confirmation."
To set up alerts: click the TradingView Alerts button, select "Range Box Scalper " from the indicator dropdown, choose "Any alert() function call" as the condition, and set your preferred notification method.
Best Practices
On lower timeframes (1m-5m), reduce Min Range Bars to 5-6 to catch shorter consolidation periods that match the faster price action.
On higher timeframes (4H and above), increase Min Range Bars to 12-15 so only significant consolidation zones are flagged.
Increase the Volume Confirmation multiplier or Min Breakout Strength if you are getting too many signals -- this ensures only the strongest breakouts are marked.
The built-in trend filter (EMA 50) ensures breakouts align with the prevailing trend. Disable it if you want to trade counter-trend setups.
After a breakout, the box boundaries (top and bottom) often act as support or resistance on a retest.
Part of the DYNA Ecosystem
Range Box Scalper is a free indicator built with the same design standards as the DYNA premium suite. For complete trade management with automatic stop loss, break-even, trailing stops, and multi-target systems, explore the full DYNA indicator collection.
Disclaimer
This indicator is a technical analysis and educational tool only -- it is not financial advice and makes no guarantee of any outcome. Past performance does not predict future results. Always do your own research and use proper position sizing and risk management.
Created by Varun Nidhi · varunnidhi.com
A free DYNA indicator — self-contained, no repainting.
Indicador

Micro Support Resistance [DYNA]Micro Support Resistance automatically identifies the most important short-term support and resistance levels on your chart. It finds swing highs and swing lows, clusters nearby price reactions together, and draws clean horizontal lines where price is most likely to react next.
Most traders draw support and resistance by hand, which is slow and subjective. This indicator does it for you in real time, updating as new pivots form. It also shows you which levels are strongest -- thicker lines mean more touches, so you can instantly tell the difference between a fresh untested level and a well-established zone that price has bounced off multiple times. When price breaks through a level, the indicator automatically removes it so only active, relevant zones remain on your chart.
Key Features
Automatic Pivot Detection -- Identifies swing highs and swing lows using a configurable lookback window, so levels are always based on actual price structure
Smart Clustering -- Merges nearby levels within an ATR-based threshold into a single zone, avoiding cluttered charts with redundant lines
Touch Count Visualization -- Line thickness grows with each touch, giving you an instant read on level strength without any interpretation
Automatic Level Invalidation -- When price closes through a support or resistance level, it is removed from the chart. No stale or broken levels cluttering your view
Distance-Based Decay -- Levels that drift too far from current price automatically lose touches and eventually disappear, keeping all level slots focused on actionable zones near price
Dynamic Level Management -- Keeps only the strongest levels on screen. When new pivots form, weak untested levels are replaced automatically
First-Approach Alerts -- Get notified the moment price first reaches a key level, not on every bar it stays nearby
Data Export -- All level values appear in the TradingView data window and are included in CSV exports for further analysis
How It Works
As price moves across your chart, the indicator continuously scans for swing highs and swing lows on confirmed bars. When it detects a confirmed pivot -- a point where price reversed direction with bars on both sides confirming the swing -- it checks whether this level is near any existing support or resistance zone. If it is, the existing level absorbs the new touch and its line gets thicker. If not, a new level is drawn. When price closes through a level decisively, that level is automatically invalidated and removed.
Green lines mark support zones where price has bounced upward. Red lines mark resistance zones where price has been rejected downward. Each line carries a small label showing its level number and touch count -- for example, "S1 (3)" is the first support level with three touches, and "R2 (1)" is the second resistance level with a single touch. Thicker lines correspond to higher touch counts, so a bold line with "S1 (4)" is a well-tested support, while a thin line with "R3 (1)" is a fresh, untested resistance. If a green line disappears, it means price closed below that support and the level is no longer valid.
Micro Support Resistance on a 3-minute chart. Green support lines and red resistance lines are drawn automatically, with thicker lines indicating more touches.
Line Thickness and Level Strength
The visual weight of each line tells you how significant the level is. One touch produces a thin hairline. Two touches make it slightly thicker. Three or four touches produce a bold, unmistakable line that commands attention. This means you never need to count bounces or remember which levels have been tested -- the chart shows you directly.
When the maximum number of levels is reached on either side (support or resistance), the indicator automatically removes the weakest level to make room for a new one. Levels that have been broken through -- where price has closed on the other side -- are also removed automatically. This keeps your chart clean and focused on the levels that actually matter right now.
Notice the difference in line thickness: S2 (3) is a thick, well-tested support, while R1 (1) is a thin single-touch resistance.
Settings
The default settings work well for most intraday charts on the 1-minute to 15-minute timeframe. The Pivot Lookback controls how many bars on each side are required to confirm a swing -- the default of 5 captures short-term micro-structure. Increase it to 7 or 10 for slightly broader levels on 30-minute or 1-hour charts.
The Cluster Threshold determines how close two levels need to be before they are merged into one. It uses a multiple of the 14-period ATR, so it automatically adapts to different instruments and volatility conditions. The default of 0.5 provides a good balance between merging nearby levels and keeping distinct zones separate. Lower it if you want finer granularity; raise it if you see too many lines stacked close together.
Max Levels Per Side caps how many support and resistance lines appear at once. The default of 3 keeps the chart clean. You can increase it up to 10 if you want to see more of the price structure.
The Decay Distance setting controls how far a level can be from price before it starts losing relevance. Levels beyond this ATR multiple lose one touch per confirmed bar. Once a level's touches reach zero, it is removed and the slot opens up for a fresh nearby level. The default of 10x ATR keeps levels focused on the current trading range while ensuring slots stay populated. Increase it if you want levels to persist longer on swing or position trades.
Alerts
Approaching Support -- Fires once when price first comes within a configurable percentage of a support level. Does not repeat while price remains in the approach zone. "Micro Support Resistance : Price is approaching a support level. Watch for a potential bounce or breakdown."
Approaching Resistance -- Fires once when price first comes within a configurable percentage of a resistance level. Does not repeat while price remains in the approach zone. "Micro Support Resistance : Price is approaching a resistance level. Watch for a potential rejection or breakout."
To set up alerts: click the TradingView Alerts button, select "Micro Support Resistance " from the indicator dropdown, choose "Any alert() function call" as the condition, and set your preferred notification method.
Best Practices
Use on lower timeframes (1m to 15m) for scalping and intraday setups. The levels are designed to capture micro-structure, not weekly zones.
Pay attention to thick lines -- levels with 3 or more touches tend to produce stronger reactions when retested.
Combine with a momentum or volume indicator to judge whether a level will hold or break.
If your chart looks too busy, reduce Max Levels Per Side or increase the Cluster Threshold to merge nearby zones.
Set approach alerts so you can step away from the screen and still catch the moments that matter.
Part of the DYNA Ecosystem
Micro Support Resistance is a free indicator built with the same design standards as the DYNA premium suite. For complete trade management with automatic stop loss, break-even, trailing stops, and multi-target systems, explore the full DYNA indicator collection.
Disclaimer
This indicator is a technical analysis and educational tool only -- it is not financial advice and makes no guarantee of any outcome. Past performance does not predict future results. Always do your own research and use proper position sizing and risk management.
Created by Varun Nidhi · varunnidhi.com
A free DYNA indicator — self-contained, no repainting.
Indicador

Gap Detector [DYNA]Gap Detector finds the price gaps that form between trading sessions and tracks them visually on the chart from formation through fill. Every time a new session opens away from the previous session's close -- by more than a configurable fraction of the daily ATR -- the indicator drops a shaded rectangle covering the gap zone, color-coded green for an up-gap and red for a down-gap. The box stays on the chart, extending bar by bar, until price trades back through the prior close and fills it. When that happens, the box turns gray, a strikethrough line is drawn through the middle, and a fill alert fires.
The threshold is ATR-relative, not a fixed point amount, so the same default settings work across instruments with very different price scales. Stocks, indices, forex pairs, commodities, and crypto all use the same `0.5x daily ATR` filter -- the indicator scales itself. Up to N gaps (configurable) are kept on the chart at once, with optional fill-progress lines that show how close each open gap has come to filling.
Key Features
ATR-Relative Threshold -- Minimum gap size is expressed as a multiple of the 14-period daily ATR, so the same setting filters appropriately on a $50 stock and a $5,000 index.
Color-Coded Gap Boxes -- Green for gap-up, red for gap-down, gray for filled. The box always spans from the prior session close to the new session open.
Fill-Progress Tracking -- A dotted line inside each open gap marks the deepest price has penetrated so far. Lets you see at a glance how close a gap is to filling.
Strikethrough on Fill -- When price fully retraces back through the prior close, the box recolors and a horizontal line is drawn through it -- visual confirmation the gap is closed.
Configurable On-Chart History -- Cap the number of gap boxes shown so the chart stays clean. Optionally hide filled gaps entirely if you only want live structure.
Gap Size Labels -- Each gap shows its size in points and as a multiple of the daily ATR -- you can rank gaps by relative magnitude without doing the math.
No Repainting -- Gap detection runs only on confirmed bars. Once a box is drawn it never relocates; it only extends rightward and recolors when filled.
How It Works
At the open of each new session, the indicator compares the session's first-bar open to the previous session's last-bar close. If the absolute difference exceeds the configured `ATR multiplier x daily ATR` threshold, a new gap is registered. A shaded rectangle is drawn between the prior close and the new open -- green if the open is above (gap up), red if below (gap down). A small label on the box reports the gap's size in points and as a multiple of the daily ATR.
From the formation bar onward, every subsequent bar is checked against the prior close. For a gap up, the gap fills the moment any bar's low touches or crosses below the prior close. For a gap down, it fills when any bar's high touches or crosses above the prior close. While the gap remains open, a dotted "fill progress" line is updated to sit at the deepest penetration so far -- the closer that line is to the prior close, the closer the gap is to filling.
When a gap fills, the box's fill and border recolor to gray, a horizontal strikethrough line is drawn through the middle of the box, and a fill alert fires. If the "Keep Filled Gaps Visible" toggle is off, the gap is removed from the chart instead. Either way, the count of on-chart gaps respects the `Max Gaps to Show` cap -- the oldest gap (filled or not) is removed when the limit is reached, so the indicator never crowds the chart.
The daily ATR used for the threshold is fetched with non-lookahead higher-timeframe security calls, so the threshold at the open of session N is sized using only data available through session N-1. There is no peeking ahead.
Two open gaps and one filled gap on a daily chart. The green box marks an unfilled gap up, the red box an unfilled gap down (with the orange dotted line showing how far price has retraced into it), and the gray box with strikethrough marks a gap that has fully closed.
Settings
Min Gap Size (x Daily ATR) (default: 0.5) is the minimum gap size to qualify, expressed as a multiple of the 14-period daily ATR. Lower captures more, smaller gaps; higher filters down to large opening shocks. Set to 0 to flag every nonzero gap. Daily ATR Length (default: 14) is the lookback for the daily ATR -- 14 is the Wilder standard.
Max Gaps to Show (default: 5) caps the number of gap boxes (open and filled) kept on the chart at once. When the cap is hit, the oldest box is removed. Keep Filled Gaps Visible (default: on) controls whether filled gaps stay on the chart with a strikethrough or are removed the moment they fill.
Visual toggles independently control the fill-progress line, the gap-size label, and the colors used for gap-up, gap-down, and filled boxes. Box Transparency (default: 80) sets how see-through the box fills are; filled-gap boxes use a slightly higher transparency so they recede into the background. The two alert toggles enable or disable the new-gap and gap-filled alerts individually.
Alerts
New Gap Up -- Fires on the formation bar of a qualifying gap UP. "Gap Detector : A new bullish session gap UP has formed above the configured ATR threshold."
New Gap Down -- Fires on the formation bar of a qualifying gap DOWN. "Gap Detector : A new bearish session gap DOWN has formed above the configured ATR threshold."
Gap Up Filled -- Fires when an open gap UP fills. "Gap Detector : A bullish gap UP has been fully filled -- price traded back down to the prior session close."
Gap Down Filled -- Fires when an open gap DOWN fills. "Gap Detector : A bearish gap DOWN has been fully filled -- price traded back up to the prior session close."
To set up alerts: click TradingView's Alerts button, choose "Gap Detector " from the condition dropdown, pick the gap event you want, and select your notification channel.
Best Practices
Use the daily timeframe for the cleanest gap-by-gap reading. Drop to intraday timeframes (15m through 60m) when you want to watch a specific gap fill in real time during the session that's reacting to it.
Tune the ATR multiplier to your style: 0.2-0.3 for stocks with small absolute gaps, 0.5 for the default moderate filter, 0.8-1.0 for only large opening shocks.
The prior close (the far edge of the gap) is a natural reference level -- many traders watch it as a potential target when studying gap behavior. Use it as a level of interest if you're observing how a gap reacts.
The new session open (the near edge) often acts as the first support/resistance test. Use it as your structure for entries and stops.
If a gap doesn't fill for several sessions, you can study it as a structural reference -- a support/resistance level worth watching until price tests it again.
Reduce Max Gaps to Show to 3 on instruments that gap often (single-name stocks). Increase to 10-20 on instruments that gap rarely (FX majors).
Part of the DYNA Ecosystem
Gap Detector is a free indicator built with the same design standards as the DYNA premium suite. For complete trade management with automatic stop loss, break-even, trailing stops, and multi-target systems, explore the full DYNA indicator collection.
Disclaimer
This indicator is a technical analysis and educational tool only -- it is not financial advice and makes no guarantee of any outcome. Past gap behavior does not predict future results. Always do your own research and use proper position sizing and risk management.
Created by Varun Nidhi · varunnidhi.com
A free DYNA indicator — self-contained, no repainting.
Indicador

Indicador

Tightening Trailing Stop LossA utility tool to independently simulate a Trailing Stop based on ATR and Recent Candle Structure. It's most helpful if you only want something to independently trail a Stop and nothing else. For example, if you decide where to enter via a discretionary system, but like trailing Stops via code.
It's used by changing the 'Start Date' to the date where you wish to enter. It'll then display a Stop and Trail it, until it intersects with a candle. The Indicator will hide itself when it intersects with a candle to avoid cluttering the chart. It only moves in the direction of risk, so that means that, when set, it'll never increase the risk of your trade, unlike simple ATR bands. However, it does require resetting manually for each trade.
By Default, it uses a 10 Period RMA ATR, which is set 0.5 ATR away from the Low/High of the recent candle structure. It'll tighten each candle by multiplying it's value with .95, meaning it always tightens a little. All of these can be changed in the settings to match your preferred method of Setting/Trailing Stops
Indicador

Camarilla Pivot Plays - MaazCamarilla Pivot Plays - Maaz is a institutional-grade quantitative workspace engine engineered for active intraday equity and futures traders. Designed to strip out raw market noise and address the flaws of standard layout pivot scripts, this system delivers an institutional-level view of daily support, resistance, and breakout structures based on Thor Young's classic trading playbook.
The indicator is split into two major algorithmic engines:
1. The Multi-Session Historical Alignment Engine
Unlike generic pivot indicators that pull simple daily data bars (often mixing regular and extended hours incorrectly), this script utilizes a complex multi-session memory snapshot pipeline. By calculating historical session boundaries and tracking extended-hours shifts (useEthForCams), the plots shift step-heights at the exact structural bars required to match professional configurations. It provides clean, un-cluttered stepline plots for:
CP (Central Pivot): The ultimate directional anchor boundary for the session.
R3 / S3: The dynamic range boundaries defining institutional value and traversal reversion loops.
R4 / S4: The critical breakout launchpads where institutional short squeezes or liquidations occur.
R6 / S6: Ultimate daily mathematical expansion targets.
2. The Integrated Precision HUD Panel
The system bypasses standard chart-clipping errors by embedding a stacked, comprehensive workspace dashboard in the top-right corner of your screen. This HUD continuously reads live price metadata to evaluate and display:
Trend Range Bias: Classifies the session macro structure as Higher Range, Lower Range, or Neutral.
Volatility Coiling Status: Classifies the pivot width as Wide or Narrow to instantly tell you whether you are in a range-fading or trend-breakout environment.
Suggested Play Actions: Tells you exactly what setup to watch for (e.g., Watch R4 for Outright Breakout Long) or shifts to bright yellow execution flags (TRIGGER ACTIVE) when levels break.
Pre-Calculated Target Prices: Explicitly states your Planned Entry Pivot Level and Planned Target Exit Level directly inside the table before the trade even triggers.
Institutional Filters: Provides live readouts of Daily Average True Range (ATR), Relative Volume (RVOL) to confirm big block-order breakouts, and an Institutional Net Flow Index tracking raw buy/sell delta pressure. Indicador

VWAP & Dual MA Ribbon Tracker ProThe Master Trigger Breakdown
* For Longs (Green): The 4 EMA must be above the VWAP. If the 4 EMA is below the VWAP, a long trade is completely blocked, no matter how bullish the rest of the chart looks.
* For Shorts (Red): The 4 EMA must be below the VWAP. If the 4 EMA is above the VWAP, a short trade is completely blocked.
The Complete Logic Chain (How it fits together)
Your indicator only gives a trading color when all three layers of your rules agree with that master trigger:
1. The Structural Trigger: Is the 4 EMA on the correct side of VWAP? (Above for Long / Below for Short)
2. The Momentum Confirmation: Is the 4 EMA accelerating away from the 9 EMA? (Above 9 EMA for Long / Below 9 EMA for Short)
3. The Institutional Force: Is the Elder Force Index (EFI) confirming the volume pressure? (Above 0 for Long / Below 0 for Short)
If any single one of these three layers disagrees, the master trigger pulls the plug and forces the ribbon to stay Blue (No Trading).
How the ATR Cushion Protects Your NASDAQ Trades
In the script, the ATR calculation creates a dynamic "buffer zone" around the VWAP and the 9 EMA.
* For Longs (Green): The 4 EMA can’t just be a fraction above the VWAP and 9 EMA. It must clear both of them by a margin of 0.2 * ATR.
* For Shorts (Red): The 4 EMA must drop below the VWAP and 9 EMA by a margin of 0.2 * ATR.
Why This Asset-Specific Math is Important
The NASDAQ's range changes drastically throughout the day.
* At 9:30 AM EST (NY Open): The market is highly volatile. The ATR expands because the bars are large. The indicator automatically widens the cushion so you don't get trapped by massive, wild price swings.
* At 1:00 PM EST (Lunch Hour): The market slows down. The ATR shrinks because the bars are small. The indicator automatically tightens the cushion so you can still catch a genuine, breakout move if it happens.
How to Tune It in Your Settings
If you feel the indicator is reacting perfectly but missing the exact start of a move, you can adjust the ATR Multiplier Cushion input:
* Lower it to 0.1: Makes the indicator more aggressive, giving you faster entries but a slightly higher risk of a false signal.
* Raise it to 0.3: Makes the indicator more conservative, filtering out more noise but delaying your entry.
* Turn it off: Uncheck the "Use ATR Cushion Filter" box in your settings to see the pure EMA rules without any volatility buffer.
Volume
This upgraded system swaps out rigid, raw volume for the Elder Force Index (EFI). Instead of blindly measuring how many shares were traded, the indicator now calculates true institutional momentum by multiplying volume against net price direction. This ensures you get highly accurate signals on the NASDAQ without missing trades during steady, trending moves.
Visual Layout & Interface
* Upper Main Chart: Your candles, the VWAP line, the 4 EMA, and the 9 EMA remain active here to map structure.
* Lower Separate Panel: Houses your solid color-blocked ribbon, updating instantly as the trend and market force align.
The 3 Market States & Color Codes
* 🟩 SOLID GREEN (Premise to Go Long)
* The Structural Rule: The 4 EMA is above the VWAP AND above the 9 EMA (plus your ATR cushion).
* The EFI Filter: The 13 or 2-period smoothed Elder Force Index must be above 0.
* Market Context: Buyers are in absolute control. The trend has broken out, and it is actively backed by positive institutional buying power.
* 🟥 SOLID RED (Premise to Go Short)
* The Structural Rule: The 4 EMA is below the VWAP AND below the 9 EMA (minus your ATR cushion).
* The EFI Filter: The 13 or 2 setting-period smoothed Elder Force Index must be below 0.
* Market Context: Sellers are dominant. Price is aggressively pushing lower, backed by true institutional distribution force.
* 🟦 SOLID BLUE (No Trading / Neutral Zone)
* The Rule: Triggered if the EMAs conflict OR if the EFI doesn't match the price direction (e.g., the 4 EMA pushes up, but EFI is below 0).
* Market Context: Weak, diverging, or manipulative market action. This protects your capital by sidelining you when the NASDAQ is trying to trap retail breakout buyers.
Indicador
