Structural Liquidity Signals [BullByte]Structural Liquidity Signals (SFP, FVG, BOS, AVWAP)
Short description
Detects liquidity sweeps (SFPs) at pivots and PD/W levels, highlights the latest FVG, tracks AVWAP stretch, arms percentile extremes, and triggers after confirmed micro BOS.
Full description
What this tool does
Structural Liquidity Signals shows where price likely tapped liquidity (stop clusters), then waits for structure to actually change before it prints a trigger. It spots:
Liquidity sweeps (SFPs) at recent pivots and at prior day/week highs/lows.
The latest Fair Value Gap (FVG) that often “pulls” price or serves as a reaction zone.
How far price is stretched from two VWAP anchors (one from the latest impulse, one from today’s session), scaled by ATR so it adapts to volatility.
A “percentile” extreme of an internal score. At extremes the script “arms” a setup; it only triggers after a small break of structure (BOS) on a closed bar.
Originality and design rationale, why it’s not “just a mashup”
This is not a mashup for its own sake. It’s a purpose-built flow that links where liquidity is likely to rest with how structure actually changes:
- Liquidity location: We focus on areas where stops commonly cluster—recent pivots and prior day/week highs/lows—then detect sweeps (SFPs) when price wicks beyond and closes back inside.
- Displacement context: We track the last Fair Value Gap (FVG) to account for recent inefficiency that often acts as a magnet or reaction zone.
- Stretch measurement: We anchor VWAP to the latest N-bar impulse and to the Daily session, then normalize stretch by ATR to assess dislocation consistently across assets/timeframes.
- Composite exhaustion: We combine stretch, wick skew, and volume surprise, then bend the result with a tanh transform so extremes are bounded and comparable.
- Dynamic extremes and discipline: Rather than triggering on every sweep, we “arm” at statistical extremes via percent-rank and only fire after a confirmed micro Break of Structure (BOS). This separates “interesting” from “actionable.”
Key concepts
SFP (liquidity sweep): A candle briefly trades beyond a level (where stops sit) and closes back inside. We detect these at:
Pivots (recent swing highs/lows confirmed by “left/right” bars).
Prior Day/Week High/Low (PDH/PDL/PWH/PWL).
FVG (Fair Value Gap): A small 3‑bar gap (bar2 high vs bar1 low, or vice versa). The latest gap often acts like a magnet or reaction zone. We track the most recent Up/Down gap and whether price is inside it.
AVWAP stretch: Distance from an Anchored VWAP divided by ATR (volatility). We use:
Impulse AVWAP: resets on each new N‑bar high/low.
Daily AVWAP: resets each new session.
PR (Percentile Rank): Where the current internal score sits versus its own recent history (0..100). We arm shorts at high PR, longs at low PR.
Micro BOS: A small break of the recent high (for longs) or low (for shorts). This is the “go/no‑go” confirmation.
How the parts work together
Find likely liquidity grabs (SFPs) at pivots and PD/W levels.
Add context from the latest FVG and AVWAP stretch (how far price is from “fair”).
Build a bounded score (so different markets/timeframes are comparable) and compute its percentile (PR).
Arm at extremes (high PR → short candidate; low PR → long candidate).
Only print a trigger after a micro BOS, on a closed bar, with spacing/cooldown rules.
What you see on the chart (legend)
Lines:
Teal line = Impulse AVWAP (resets on new N‑bar extreme).
Aqua line = Daily AVWAP (resets each session).
PDH/PDL/PWH/PWL = prior day/week levels (toggle on/off).
Zones:
Greenish box = latest Up FVG; Reddish box = latest Down FVG.
The shading/border changes after price trades back through it.
SFP labels:
SFP‑P = SFP at Pivot (dotted line marks that pivot’s price).
SFP‑L = SFP at Level (at PDH/PDL/PWH/PWL).
Throttle: To reduce clutter, SFPs are rate‑limited per direction.
Triggers:
Triangle up = long trigger after BOS; triangle down = short trigger after BOS.
Optional badge shows direction and PR at the moment of trigger.
Optional Trigger Zone is an ATR‑sized box around the trigger bar’s close (for visualization only).
Background:
Light green/red shading = a long/short setup is “armed” (not a trigger).
Dashboard (Mini/Pro) — what each item means
PR: Percentile of the internal score (0..100). Near 0 = bullish extreme, near 100 = bearish extreme.
Gauge: Text bar that mirrors PR.
State: Idle, Armed Long (with a countdown), or Armed Short.
Cooldown: Bars remaining before a new setup can arm after a trigger.
Bars Since / Last Px: How long since last trigger and its price.
FVG: Whether price is in the latest Up/Down FVG.
Imp/Day VWAP Dist, PD Dist(ATR): Distance from those references in ATR units.
ATR% (Gate), Trend(HTF): Status of optional regime filters (volatility/trend).
How to use it (step‑by‑step)
Keep the Safety toggles ON (default): triggers/visuals on bar‑close, optional confirmed HTF for trend slope.
Choose timeframe:
Intraday (5m–1h) or Swing (1h–4h). On very fast/thin charts, enable Performance mode and raise spacing/cooldown.
Watch the dashboard:
When PR reaches an extreme and an SFP context is present, the background shades (armed).
Wait for the trigger triangle:
It prints only after a micro BOS on a closed bar and after spacing/cooldown checks.
Use the Trigger Zone box as a visual reference only:
This script never tells you to buy/sell. Apply your own plan for entry, stop, and sizing.
Example:
Bullish: Sweep under PDL (SFP‑L) and reclaim; PR in lower tail arms long; BOS up confirms → long trigger on bar close (ATR-sized trigger zone shown).
Bearish: Sweep above PDH/pivot (SFP‑L/P) and reject; PR in upper tail arms short; BOS down confirms → short trigger on bar close (ATR-sized trigger zone shown).
Settings guide (with “when to adjust”)
Safety & Stability (defaults ON)
Confirm triggers at bar close, Draw visuals at bar close: Keep ON for clean, stable prints.
Use confirmed HTF values: Applies to HTF trend slope only; keeps it from changing until the HTF bar closes.
Performance mode: Turn ON if your chart is busy or laggy.
Core & Context
ATR Length: Bigger = smoother distances; smaller = more reactive.
Impulse AVWAP Anchor: Larger = fewer resets; smaller = resets more often.
Show Daily AVWAP: ON if you want session context.
Use last FVG in logic: ON to include FVG context in arming/score.
Show PDH/PDL/PWH/PWL: ON to see prior day/week levels that often attract sweeps.
Liquidity & Microstructure
Pivot Left/Right: Higher values = stronger/rarer pivots.
Min Wick Ratio (0..1): Higher = only more pronounced SFP wicks qualify.
BOS length: Larger = stricter BOS; smaller = quicker confirmations.
Signal persistence: Keeps SFP context alive for a few bars to avoid flicker.
Signal Gating
Percent‑Rank Lookback: Larger = more stable extremes; smaller = more reactive extremes.
Arm thresholds (qHi/qLo): Move closer to 0.5 to see more arms; move toward 0/1 to see fewer arms.
TTL, Cooldown, Min bars and Min ATR distance: Space out triggers so you’re not reacting to minor noise.
Regime Filters (optional)
ATR percentile gate: Only allow triggers when volatility is at/above a set percentile.
HTF trend gate: Only allow longs when the HTF slope is up (and shorts when it’s down), above a minimum slope.
Visuals & UX
Only show “important” SFPs: Filters pivot SFPs by Volume Z and |Impulse stretch|.
Trigger badges/history and Max badge count: Control label clutter.
Compact labels: Toggle SFP‑P/L vs full names.
Dashboard mode and position; Dark theme.
Reading PR (the built‑in “oscillator”)
PR ~ 0–10: Potential bullish extreme (long side can arm).
PR ~ 90–100: Potential bearish extreme (short side can arm).
Important: “Armed” ≠ “Enter.” A trigger still needs a micro BOS on a closed bar and spacing/cooldown to pass.
Repainting, confirmations, and HTF notes
By default, prints wait for the bar to close; this reduces repaint‑like effects.
Pivot SFPs only appear after the pivot confirms (after the chosen “right” bars).
PD/W levels come from the prior completed candles and do not change intraday.
If you enable confirmed HTF values, the HTF slope will not change until its higher‑timeframe bar completes (safer but slightly delayed).
Performance tips
If labels/zones clutter or the chart lags:
Turn ON Performance mode.
Hide FVG or the Trigger Zone.
Reduce badge history or turn badge history off.
If price scaling looks compressed:
Keep optional “score”/“PR” plots OFF (they overlay price and can affect scaling).
Alerts (neutral)
Structural Liquidity: LONG TRIGGER
Structural Liquidity: SHORT TRIGGER
These fire when a trigger condition is met on a confirmed bar (with defaults).
Limitations and risk
Not every sweep/extreme reverses; false triggers occur, especially on thin markets and low timeframes.
This indicator does not provide entries, exits, or position sizing—use your own plan and risk control.
Educational/informational only; no financial advice.
License and credits
© BullByte - MPL 2.0. Open‑source for learning and research.
Built from repeated observations of how liquidity runs, imbalance (FVG), and distance from “fair” (AVWAPs) combine, and how a small BOS often marks the moment structure actually shifts.
ATR
Trendline Breakout Strategy [KedArc Quant] Description
A single, rule-based system that builds two trendlines from confirmed swing pivots and trades their breakouts, with optional retest, trend-regime gates (EMA / HTF EMA), and ATR-based risk. All parts serve one decision flow: structure → breakout → gated entry → managed risk.
What it does (for traders)
Draws Up line (teal) through the last two Higher Lows and Down line (red) through the last two Lower Highs, then extends them forward.
Long when price breaks above red; Short when price breaks below teal.
Optional Retest entry: after a break, wait for a pullback toward the broken line within an ATR-scaled buffer.
Uses ATR stop and R-multiple target so risk is consistent across symbols/timeframes.
Labels HL1/HL2/LH1/LH2 so non-coders can verify which pivots built each line.
Why these components are combined
Pure breakout systems on trendlines suffer from three practical issues:
False breaks in chop → solved by trend-regime gates (EMA / HTF EMA) that only allow trades aligned with the prevailing trend.
Uneven volatility across markets/timeframes → solved by ATR-based stop/target, normalizing distance so R-multiples are comparable.
First break whipsaws near wedge apices → mitigated by the optional retest rule that demands a pullback/hold before entry.
These modules are not separate indicators with their own signals. They are support roles inside one method.
The pivot engine defines structure, the breakout detector defines signal, the regime gates decide if we’re allowed to take that signal, and the ATR module sizes risk.
Together they make the trendline breakout usable, testable, and explainable.
How it works (mechanism; each component explained)
1) Pivot engine (structure, non-repainting)
Swings are confirmed with ta.pivotlow/high(L, R). A pivot only exists after R bars (no look-ahead), so once plotted, the line built from those pivots will not repaint.
2) Trendline builder (geometry)
Teal line updates when two consecutive pivot lows satisfy HL2.price > HL1.price (and HL2 occurs after HL1).
Red line updates when two consecutive pivot highs satisfy LH2.price < LH1.price.
Lines are extended right and their current value is read every bar via line.get_price().
3) Breakout detector (signal)
On every bar, compute:
crossover(close, redLine) ⇒ Long breakout
crossunder(close, tealLine) ⇒ Short breakdown
4) Regime gates (trend filters, not separate signals)
EMA gate: allow longs only if close > EMA(len), shorts only if close < EMA(len).
HTF EMA gate (optional): same rule on a higher timeframe to avoid fighting the larger trend.
These do not create entries; they simply permit or block the breakout signal.
5) Retest module (optional confirmation)
After a breakout, record the line price. A valid retest occurs if price pulls back within an ATR-scaled buffer toward that broken line and then closes back in the breakout direction.
This reduces first-tick fakeouts.
6) Risk module (position exit)
Initial stop = ATR(len) × atrMult from entry.
Target = tpR × (ATR × atrMult) (e.g., 2R).
This keeps results consistent across instruments/timeframes.
Entries & exits
Long entry
Base: close breaks above red and passes EMA/HTF gates.
Retest (if enabled): after the break, price pulls back near the broken red line (within the ATR buffer) and holds; then enter.
Short entry
Mirror logic with teal (break below & gates), optionally with a retest.
Exit
strategy.exit places ATR stop & R-multiple target automatically.
Optional “flip”: close if the opposite base signal triggers.
How to use it (step-by-step)
Timeframe: 1–15m for intraday, 1–4h for swing.
Start defaults: Pivot L/R = 5, EMA len = 200, ATR len = 14, ATR mult = 2, TP = 2R, Retest = ON.
Tune sensitivity:
Faster lines (more trades): set L/R = 3–4.
Fewer counter-trend trades: enable HTF EMA (e.g., 60-min or Daily).
Visual audit: labels HL1/HL2 & LH1/LH2 show which pivots built each line—verify by eye.
Alerts: use Long breakout, Short breakdown, and Retest alerts to automate.
Originality (why it merits publication)
Trades the visualization: many “auto-trendline” tools only draw lines; this one turns them into testable, alertable rules.
Integrated design: each component has a defined role in the same pipeline—no unrelated indicators bolted together.
Transparent & non-repainting: pivot confirmation removes look-ahead; labels let non-coders understand the setup that produced each signal.
Notes & limitations
Lines update only after pivot confirmation; that lag is intentional to avoid repainting.
Breakouts near an apex can whipsaw; prefer Retest and/or HTF gate in choppy regimes.
Backtests are idealized; forward-test and size risk appropriately.
⚠️ Disclaimer
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
Volume Profile Auto POC📌 Overview
Volume Profile Auto POC is a trend-following strategy that uses the automatically calculated Point of Control (POC) from the volume profile, combined with ATR zones, to capture reversals and breakouts.
By basing decisions on volume concentration, it dynamically visualizes the price levels most watched by market participants.
⚠️ This strategy is provided for educational and research purposes only.
Past performance does not guarantee future results.
🎯 Strategy Objectives
Automatically detect the volume concentration area (POC) to improve entry accuracy
Optimize risk management through ATR-based volatility adjustment
Provide early and consistent signals when trends emerge
✨ Key Features
Automatic POC Detection : Updates the volume profile over a defined lookback window in real time
ATR Zone Integration : Defines a POC ± 0.5 ATR zone to clarify potential reversals/breakouts
Visual Support : Plots the POC line and zones on the chart for intuitive decision-making
📊 Trading Rules
Long Entry:
Price breaks above the POC + 0.5 ATR zone
Volume is above average to support the breakout
Short Entry:
Price breaks below the POC - 0.5 ATR zone
Volume is above average to support the downside move
Exit (or Reverse Position):
Price returns to the POC area
Or touches the ATR band
⚙️ Trading Parameters & Considerations
Indicator Name: Volume Profile Auto POC
Parameters:
Lookback Bars: 50
Bins for Volume Profile: 24
ATR Length: 14
ATR Multiplier: 2.0
🖼 Visual Support
POC line plotted in red
POC ± 0.5 ATR zone displayed as a semi-transparent box
ATR bands plotted in blue for confirmation
🔧 Strategy Improvements & Uniqueness
This strategy is inspired by traditional Volume Profile + ATR analysis,
while adding the improvement of a sliding-window mechanism for automatic POC updates.
Compared with conventional trend-following approaches,
its strength lies in combining both price and volume perspectives for decision-making.
✅ Summary
Volume Profile Auto POC automatically extracts key market levels (POC) and combines them with ATR-based zones,
providing a responsive trend-following method.
It balances clarity with practicality, aiming for both usability and reproducibility.
⚠️ This strategy is based on historical data and does not guarantee future profits.
Always use proper risk management when applying it.
WAVE (Fusion B-L/S)Title: WAVE (Fusion B-L/S)
This strategy executes entries and exits according to the logic described below; set capital, commission and slippage in Properties to match publication defaults.
Esta estrategia ejecuta entradas y salidas según la lógica descrita abajo; ajusta capital, comisión y slippage en Propiedades para que coincidan con los valores por defecto de la publicación.
Overview
• Timeframe: 5 minutes. Market: /MNQ (Micro E-mini Nasdaq-100 futures).
• Entries: EMA cross confirmation + VWAP proximity + Weinstein (WSA) + volatility gate (ATR by default, optional Regime filter ADX+ATRrel).
• Management: fixed SL/TP per direction + trailing stop (step-line) + optional auto-close by bars + on-chart bars counter.
• Signals/Webhooks: supports “Order fills (alert_message)”, “alert() only”, or “Both (debug)”. RTH gate affects only alert sending (not backtest).
• Version tag in payloads: mnq_wave_v4.
Core Logic (concise)
• Long: fast EMA crosses above slow EMA, plus WSA long condition, VWAP proximity (price above smoothed VWAP within % window), and volatility OK (ATR or Regime). One position at a time.
• Short: fast EMA crosses below slow EMA with fast<slow, plus WSA short, VWAP proximity (price below VWAP within % window), and volatility OK. One position at a time.
• Exits: directional TP, directional SL, or trailing stop (activates after % run-up/run-down from entry). Optional auto-close after N bars. Bars label shows “LONG/SHORT x/y”.
What’s New in this Update (non-breaking)
• CME Break Shield (NY time): protects around 17:00–18:00 NY with configurable pre/post buffers. Helps avoid clustered signals near the daily CME break.
• Session Entry Filter (NY): optional blocks for Sunday 18:00–18:16 and Mon–Thu 17:00–17:16.
• Webhook RTH Gate: optional limit to send alerts only between 09:30–16:00 NY with a cutoff buffer before the close. This DOES NOT change backtest fills—only alert dispatch timing.
• Payloads remain unchanged and include meta {ch:"advice"|"signal"} and version "mnq_wave_v4".
Properties (set these defaults for fair, realistic results)
• Initial capital: 10,000 (USD).
• Commission: Cash per order = 1.42.
• Slippage: 1–2 ticks recommended for /MNQ (set in Properties → Slippage).
• Order size: 1 contract (fixed).
• Pyramiding: off (flat-only).
• Backtest fill limits assumption: 0.
• Bar close confirmation: entries and exits evaluate on confirmed bars.
Key Inputs (high-level)
• EMA (per side): Fast=5, Slow=13 (type/source selectable).
• VWAP (per side): smoothed VWAP (default SMA 22); proximity gate (Long 1.1%, Short 0.3%).
• WSA: SMA(23) slope and simple volume confirmation per side.
• Volatility:
– Default ATR filter with length/smoothing per side, threshold=8.0.
– Optional Regime filter (ADX + ATR relative): modes “Block Chop Only”, “Trend Only”, “Trend + Transition”; optional DI bias.
• Management:
– Long: SL 1.2%, TP 2.7%, trailing start 0.5%, trail 0.4%.
– Short: SL 1.0%, TP 4.5%, trailing start 0.5%, trail 0.4%.
– Optional auto-close by bars (default 20) + on-chart bars counter label.
• Direction selector: Both / Longs Only / Shorts Only.
Alerts / Webhooks (summary)
• “Order fills (alert_message)”: attaches an execution-style JSON; optional include SL/TP on entries.
• “alert() only”: pushes pre-built JSON for /advice or /signal; quantity from input.
• “Both (debug)”: emits both simultaneously.
• RTH gate (if enabled) restricts sending window only; strategy/backtest logic and fills do not change.
Usage Notes
• Set the chart timezone to America/New_York to keep session gates aligned.
• This strategy does not repaint; signals confirm on bar close.
• Risk discipline: keep per-trade risk under 5–10% of account; results vary across brokers due to slippage, margins, and fees.
Changelog (update)
• Added CME Break Shield and NY filters near the CME break (17:00–18:00 NY) and early reopening minutes.
• Added optional RTH send-window for alert/webhook dispatch only (unchanged trading logic and backtest).
• No removals of plots/inputs; prior payload structure preserved (version "mnq_wave_v4").
----------------------------------------------------------------------------------------------------------------------
Estrategia 5m para /MNQ: entradas por cruce de EMAs + proximidad a VWAP y WSA, con filtro de volatilidad (ATR por defecto o Regime ADX+ATRrel). Gestión con SL/TP por lado, trailing stop y cierre opcional por barras (contador en gráfico). Incluye “CME Break Shield” y filtros NY; la compuerta RTH limita solo el envío de alertas (backtest sin cambios). Soporta Order fills, alert() o ambos; payloads con versión mnq_wave_v4.
Nifty Trend vs Range (Final)This indicator is designed to help you quickly identify whether the Nifty market is trending, ranging, or preparing for a breakout by combining three volatility and trend-strength measures:
India VIX (Volatility Index)
ADX (Average Directional Index)
ATR (Average True Range)
It creates a Trend vs Range Decision Matrix that categorizes the market into actionable states such as Range – Quiet, Breakout Watch, Trend – Smooth, Trend – Confirmed, Trend – Volatile, or Choppy / Noisy.
🔑 How it Works
India VIX (Market Volatility)
Pulled directly from NSE:INDIAVIX (or your chosen symbol).
VIX thresholds are defined:
Below VIX Low → Calm market (often ranges).
Between VIX Low & High → Neutral/moderate volatility.
Above VIX High → High volatility (potential big moves or choppiness).
VIX can be scaled and plotted in the same pane with ADX/ATR, or shown separately with a companion script.
ADX (Trend Strength)
Custom calculation (Wilder’s smoothing, not built-in ta.adx), to ensure more consistent results.
Thresholds (auto-tuned by timeframe if enabled):
Low ADX → Weak/no trend, sideways.
High ADX → Strong directional trend.
ATR (Volatility Expansion)
ATR compared to a moving average of ATR detects whether volatility is rising or flat.
Used as confirmation for breakouts or fading moves.
🧠 Market State Logic
The script combines the three signals into an interpretable market state:
Range – Quiet → VIX low, ADX low, ATR flat
Trend – Smooth → VIX low, ADX high
Breakout Watch → VIX neutral, ADX low, ATR rising
Trend – Confirmed → VIX neutral, ADX high, ATR rising
Choppy / Noisy → VIX high, ADX low, ATR rising
Trend – Volatile → VIX high, ADX high, ATR rising
Neutral → fallback if conditions don’t match
Each state is color-coded with background shading and displayed as a persistent label with key metrics (VIX, ADX, ATR).
⚙️ Features
✅ Intraday Auto-Tuning
ADX/ATR thresholds automatically adjust depending on chart timeframe (5m, 15m, etc.).
✅ Scalable VIX Plotting
Option to overlay a scaled VIX line in the same pane or hide it if you use a separate VIX pane.
✅ Persistent State Label
Shows the current regime, timeframe, and key values. Updates every bar without stacking multiple labels.
✅ Alerts Ready
Alerts for each market regime can be set directly in TradingView.
✅ Background Coloring
Quick at-a-glance identification of current state.
🎯 How to Use
Ranging markets (low VIX, low ADX, flat ATR): Favor mean-reversion strategies like option selling, iron condors, or scalping.
Smooth trends (low VIX, high ADX): Favor directional trades with futures/options spreads.
Breakout Watch: Stay alert for possible trend initiation.
Confirmed trends (neutral VIX, high ADX, rising ATR): Ideal for momentum trading.
Volatile trends (high VIX, high ADX): Use caution, hedge positions, or trade with wider stops.
Choppy/Noisy (high VIX, low ADX): Avoid overtrading, expect false signals.
FVG + Zones + ATR + Vol + RangesThis indicator combines Fair Value Gaps (FVGs) with daily, weekly, and monthly ranges, Killzones, ATR & volume filters, and powerful alert conditions.
🔹 Key Features:
• Daily, Weekly & Monthly Ranges
• Automatic plotting of previous highs/lows
• Fully customizable (color, width, line style)
• Optional labels (T-High/T-Low, W-High/W-Low, M-High/M-Low)
• Fair Value Gaps (FVGs)
• Detection of up- and down-FVGs at the start of the 4th candle
• Two modes:
• Raw FVGs → Alerts only (no chart marking)
• Filtered FVGs → Alerts + visual highlights (barcolor)
• Filter conditions: ATR, Volume, and optionally Killzones
• Killzones (active only on < 1H timeframes)
• London (08:00 – 11:00)
• New York AM (14:30 – 17:00)
• New York PM (optional)
• Fully adjustable start/end times + UTC offset (summer/winter time)
• Filters
• ATR filter → qualify FVGs only if volatility is high enough
• Volume filter → qualify FVGs only if volume exceeds SMA
• Alerts
• Filtered FVG alerts (ATR/Vol/Killzones)
• Raw FVG alerts (pure FVG condition, no filtering)
• All alerts trigger exactly at the beginning of the 4th candle
🔹 Use Cases:
• Visualize key market ranges (daily, weekly, monthly)
• Identify and confirm high-probability FVGs within Killzones
• Focus only on quality setups using ATR & Volume filters
• Automate trading workflows with precise FVG alerts
⸻
👉 This tool gives you a complete market overview, combining market structure (ranges) with liquidity concepts (Killzones & FVGs) while enabling efficient trade execution through alerts.
Kalman Adjusted Average True Range [BackQuant]Kalman Adjusted Average True Range
A volatility-aware trend baseline that fuses a Kalman price estimate with ATR “rails” to create a smooth, adaptive guide for entries, exits, and trailing risk.
Built on my original Kalman
This indicator is based on my original Kalman Price Filter:
That core smoother is used here to estimate the “true” price path, then blended with ATR to control step size and react proportionally to market noise.
What it plots
Kalman ATR Line the main baseline that turns up/down with the filtered trend.
Optional Moving Average of the Kalman ATR a secondary line for confluence (SMA/Hull/EMA/WMA/DEMA/RMA/LINREG/ALMA).
Candle Coloring (optional) paint bars by the baseline’s current direction.
Why combine Kalman + ATR?
Kalman reduces measurement noise and produces a stable path without the lag of heavy MAs.
ATR rails scale the baseline’s step to current volatility, so it’s calm in chop and more responsive in expansion.
The result is a single, intelligible line you can trade around: slope-up = constructive; slope-down = caution.
How it works (plain English)
Each bar, the Kalman filter updates an internal state (tunable via Process Noise , Measurement Noise , and Filter Order ) to estimate the underlying price.
An ATR band (Period × Factor) defines the allowed per-bar adjustment. The baseline cannot “jump” beyond those rails in one step.
A direction flip is detected when the baseline’s slope changes sign (upturn/downturn), and alerts are provided for both.
Typical uses
Trend confirmation Trade in the baseline’s direction; avoid fading a firmly rising/falling line.
Pullback timing Look for entries when price mean-reverts toward a rising baseline (or exits on tags of a falling one).
Trailing risk Use the baseline as a dynamic guide; many traders set stops a small buffer beyond it (e.g., a fraction of ATR).
Confluence Enable the MA overlay of the Kalman ATR; alignment (baseline above its MA and rising) supports continuation.
Inputs & what they do
Calculation
Kalman Price Source which price the filter tracks (Close by default).
Process Noise how quickly the filter can adapt. Higher = more responsive (but choppier).
Measurement Noise how much you distrust raw price. Higher = smoother (but slower to turn).
Filter Order (N) depth of the internal state array. Higher = slightly steadier behavior.
Kalman ATR
Period ATR lookback. Shorter = snappier; longer = steadier.
Factor scales the allowed step per bar. Larger factors permit faster drift; smaller factors clamp movement.
Confluence (optional)
MA Type & Period compute an MA on the Kalman ATR line , not on price.
Sigma (ALMA) if ALMA is selected, this input controls the curve’s shape. (Ignored for other MA types.)
Visuals
Plot Kalman ATR toggle the main line.
Paint Candles color bars by up/down slope.
Colors choose long/short hues.
Signals & alerts
Trend Up baseline turns upward (slope crosses above 0).
Alert: “Kalman ATR Trend Up”
Trend Down baseline turns downward (slope crosses below 0).
Alert: “Kalman ATR Trend Down”
These are state flips , not “price crossovers,” so you avoid many one-bar head-fakes.
How to start (fast presets)
Swing (daily/4H) ATR Period 7–14, Factor 0.5–0.8, Process Noise 0.02–0.05, Measurement Noise 2–4, N = 3–5.
Intraday (5–15m) ATR Period 5–7, Factor 0.6–1.0, Process Noise 0.05–0.10, Measurement Noise 2–3, N = 3–5.
Slow assets / FX raise Measurement Noise or ATR Period for calmer lines; drop Factor if the baseline feels too jumpy.
Reading the line
Rising & curving upward momentum building; consider long bias until a clear downturn.
Flat & choppy regime uncertainty; many traders stand aside or tighten risk.
Falling & accelerating distribution lower; short bias until a clean upturn.
Practical playbook
Continuation entries After a Trend Up alert, wait for a minor pullback toward the baseline; enter on evidence the line keeps rising.
Exit/reduce If long and the baseline flattens then turns down, trim or exit; reverse logic for shorts.
Filters Add a higher-timeframe check (e.g., only take longs when the daily Kalman ATR is rising).
Stops Place stops just beyond the baseline (e.g., baseline − x% ATR for longs) to avoid “tag & reverse” noise.
Notes
This is a guide to state and momentum, not a guarantee. Combine with your process (structure, volume, time-of-day) for decisions.
Settings are asset/timeframe dependent; start with the presets and nudge Process/Measurement Noise until the baseline “feels right” for your market.
Summary
Kalman ATR takes the noise-reduction of a Kalman price estimate and couples it with volatility-scaled movement to produce a clean, adaptive baseline. If you liked the original Kalman Price Filter (), this is its trend-trading cousin purpose-built for cleaner state flips, intuitive trailing, and confluence with your existing
Linear Regression Trend Navigator [QuantAlgo]🟢 Overview
The Linear Regression Trend Navigator is a trend-following indicator that combines statistical regression analysis with adaptive volatility bands to identify and track dominant market trends. It employs linear regression mathematics to establish the underlying trend direction, while dynamically adjusting trend boundaries based on standard deviation calculations to filter market noise and maintain trend continuity. The result is a straightforward visual system where green indicates bullish conditions favoring buy/long positions, and red signals bearish conditions supporting sell/short trades.
🟢 How It Works
The indicator operates through a three-phase computational process that transforms raw price data into adaptive trend signals. In the first phase, it calculates a linear regression line over the specified period, establishing the mathematical best-fit line through recent price action to determine the underlying directional bias. This regression line serves as the foundation for trend analysis by smoothing out short-term price variations while preserving the essential directional characteristics.
The second phase constructs dynamic volatility boundaries by calculating the standard deviation of price movements over the defined period and applying a user-adjustable multiplier. These upper and lower bounds create a volatility-adjusted channel around the regression line, with wider bands during volatile periods and tighter bands during stable conditions. This adaptive boundary system operates entirely behind the scenes, ensuring the trend signal remains relevant across different market volatility regimes without cluttering the visual display.
In the final phase, the system generates a simple trend line that dynamically positions itself within the volatility boundaries. When price action pushes the regression line above the upper bound, the trend line adjusts to the upper boundary level. Conversely, when the regression line falls below the lower bound, the trend line moves to the lower boundary. The result is a single colored line that transitions between green (rising trend line = buy/long) and red (declining trend line = sell/short).
🟢 How to Use
Green Trend Line: Upward momentum indicating favorable conditions for long positions, buy signals, and bullish strategies
Red Trend Line: Downward momentum signaling optimal timing for short positions, sell signals, and bearish approaches
Rising Green Line: Accelerating bullish momentum with steepening angles indicating strengthening upward pressure and potential for trend continuation
Declining Red Line: Intensifying bearish momentum with increasing negative slopes suggesting persistent downward pressure and shorting opportunities
Flattening Trend Lines: Gradual reduction in slope regardless of color may indicate approaching consolidation or momentum exhaustion requiring position review
🟢 Pro Tips for Trading and Investing
→ Entry/Exit Timing: Trade exclusively on band color transitions rather than price patterns, as each color change represents a statistically-confirmed shift that has passed through volatility filtering, providing higher probability setups than traditional technical analysis.
→ Parameter Optimization for Asset Classes: Customize the linear regression period based on your trading style. For example, use 5-10 bars for day trading to capture short-term statistical shifts, 14-20 for swing trading to balance responsiveness with stability, and 25-50 for position trading to filter out medium-term noise.
→ Volatility Calibration Strategy: Adjust the standard deviation multiplier according to market volatility. For instance, increase to 2.0+ during high-volatility periods like earnings or news events to reduce false signals, decrease to 1.0-1.5 during stable market conditions to maintain sensitivity to genuine trends.
→ Cross-Timeframe Statistical Validation: Apply the indicator across multiple timeframes simultaneously, using higher timeframes for directional bias and lower timeframes for entry timing.
→ Alert-Based Systematic Trading: Use built-in alerts to eliminate discretionary decision-making and ensure you capture every statistically-significant trend change, particularly effective for traders who cannot monitor charts continuously.
→ Risk Allocation Based on Signal Strength: Increase position sizes during periods of strong directional movement while reducing exposure during frequent band color changes that indicate statistical uncertainty or ranging conditions.
Gann Fan Strategy [KedarArc Quant]Description
A single-concept, rule-based strategy that trades around a programmatic Gann Fan.
It anchors to a swing (or a manual point), builds 1×1 and related fan lines numerically, and triggers entries when price interacts with the 1×1 (breakout or bounce). Management is done entirely with the fan structure (next/previous line) plus optional ATR trailing.
What TV indicators are used
* Pivots: `ta.pivothigh/ta.pivotlow` to confirm swing highs/lows for anchor selection.
* ATR: `ta.atr` only to scale the 1×1 slope (optional) and for an optional trailing stop.
* EMA: `ta.ema` as a trend filter (e.g., only long above the EMA, short below).
No RSI/MACD/Stoch/Heikin/etc. The logic is one coherent framework: Gann price–time geometry, with ATR as a scale and EMA as a risk filter.
How it works
1. Anchor
* Auto: chooses the most recent *confirmed* pivot (you control Left/Right).
* Manual: set a price and bar index and the fan will hold that point (no re-anchoring).
* Optional Re-anchor when a newer pivot confirms.
2. 1×1 Slope (numeric, not cosmetic)
* ATR mode: `1×1 = ATR(Length) × Multiplier` (adapts to volatility).
* Fixed mode: `ticks per bar` (constant slope).
Because slope is numeric, it doesn’t change with chart zoom, unlike the drawing tool.
3. Fan Lines
Builds classic ratios around the 1×1: 1/8, 1/4, 1/3, 1/2, 1/1, 2/1, 3/1, 4/1, 8/1.
4. Signals
* Breakout: cross of price over/under the 1×1 in the EMA-aligned direction.
* Bounce (optional): touch + reversal across the 1×1 to reduce whipsaw.
5. Exits & Risk
* Take-profit at the next fan line; Stop at the previous fan line.
* If a level is missing (right after re-anchor), a fallback Risk-Reward (RR) is used.
* Optional ATR trailing stop.
Why this is unique
* True numeric fan: The 1×1 slope is calculated from ATR or fixed ticks—not from screen geometry—so it is scale-invariant and reproducible across users/timeframes.
* Deterministic anchor logic: Uses confirmed pivots (with your L/R settings). No look-ahead; anchors update only when the right bars complete.
* Fan-native trade management: Both entries and exits come from the fan structure itself (with a minimal ATR/EMA assist), keeping the method pure.
* Two entry archetypes: Breakout for momentum days; Bounce for range days—switchable without changing the core model.
* Manual mode: Lock a session’s bias by anchoring to a chosen swing (e.g., day’s first major low/high) and keep the fan constant all day.
Inputs (quick guide)
* Auto Anchor (Left/Right): pivot sensitivity. Higher values = fewer, stronger anchors.
* Re-anchor: refresh to newer pivots as they confirm.
* Manual Anchor Price / Bar Index: fixes the fan (turn Auto off).
* Scale 1×1 by ATR: on = adaptive; off = use ticks per bar.
* ATR Length / ATR Multiplier: controls adaptive slope; start around 14 / 0.25–0.35.
* Ticks per bar: exact fixed slope (match a hand-drawn fan by computing slope ÷ mintick).
* EMA Trend Filter: e.g., 50–100; trades only in EMA direction.
* Use Bounce: require touch + reverse across 1×1 (helps in chop).
* TP/SL at fan lines; Fallback RR for missing levels; ATR Trailing Stop optional.
* Transparency/Plot EMA: visual preferences.
Tips
* Range days: larger pivots (L/R 8–12), Bounce ON, ATR Multiplier \~0.30–0.40, EMA 100.
* Trend days: L/R 5–6, Breakout, Multiplier \~0.20–0.30, EMA 50, ATR trail 1.0–1.5.
* Match the TV Gann Fan drawing: turn ATR scale OFF, set ticks per bar = `(Δprice between anchor and 1×1 target) / (bars) / mintick`.
Repainting & testing notes
* Pivots require Right bars to confirm; anchors are set after confirmation (no look-ahead).
* Signals use the current bar close with TradingView strategy mechanics; real-time vs. bar-close can differ slightly, as with any strategy.
* Re-anchoring legitimately moves the structure when new pivots confirm—by design.
⚠️ Disclaimer
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
Deadband Hysteresis Supertrend [BackQuant]Deadband Hysteresis Supertrend
A two-stage trend tool that first filters price with a deadband baseline, then runs a Supertrend around that baseline with optional flip hysteresis and ATR-based adverse exits.
What this is
A hybrid of two ideas:
Deadband Hysteresis Baseline that only advances when price pulls far enough from the baseline to matter. This suppresses micro noise and gives you a stable centerline.
Supertrend bands wrapped around that baseline instead of raw price. Flips are further gated by an extra margin so side changes are more deliberate.
The goal is fewer whipsaws in chop and clearer regime identification during trends.
How it works (high level)
Deadband step — compute a per-bar “deadband” size from one of four modes: ATR, Percent of price, Ticks, or Points. If price deviates from the baseline by more than this amount, move the baseline forward by a fraction of the excess. If not, hold the line.
Centered Supertrend — build upper and lower bands around the baseline using ATR and a user factor. Track the usual trailing logic that tightens a band while price moves in its favor.
Flip hysteresis — require price to exceed the active band by an extra flip offset × ATR before switching sides. This adds stickiness at the boundary.
Adverse exit — once a side is taken, trigger an exit if price moves against the entry by K × ATR .
If you would like to check out the filter by itself:
What it plots
DBHF baseline (optional) as a smooth centerline.
DBHF Supertrend as the active trailing band.
Candle coloring by trend side for quick read.
Signal markers 𝕃 and 𝕊 at flips plus ✖ on adverse exits.
Inputs that matter
Price Source — series being filtered. Close is typical. HL2 or HLC3 can be steadier.
Deadband mode — ATR, Percent, Ticks, or Points. This defines the “it’s big enough to matter” zone.
ATR Length / Mult (DBHF) — only used when mode = ATR. Larger values widen the do-nothing zone.
Percent / Ticks / Points — alternatives to ATR; pick what fits your market’s convention.
Enter Mult — scales the deadband you must clear before the baseline moves. Increase to filter more noise.
Response — fraction of the excess applied to baseline movement. Higher responds faster; lower is smoother.
Supertrend ATR Period & Factor — traditional band size controls; higher factor widens and flips less often.
Flip Offset ATR — extra ATR buffer required to flip. Useful in choppy regimes.
Adverse Stop K·ATR — per-trade danger brake that forces an exit if price moves K×ATR against entry.
UI — toggle baseline, supertrend, signals, and bar painting; choose long and short colors.
How to read it
Green regime — candles painted long and the Supertrend running below price. Pullbacks toward the baseline that fail to breach the opposite band often resume higher.
Red regime — candles painted short and the Supertrend running above price. Rallies that cannot reclaim the band may roll over.
Frequent side swaps — reduce sensitivity by increasing Enter Mult, using ATR mode, raising the Supertrend factor, or adding Flip Offset ATR.
Use cases
Bias filter — allow entries only in the direction of the current side. Use your preferred triggers inside that bias.
Trailing logic — treat the active band as a dynamic stop. If the side flips or an adverse K·ATR exit prints, reduce or close exposure.
Regime map — on higher timeframes, the combination baseline + band produces a clean up vs down template for allocation decisions.
Tuning guidance
Fast markets — ATR deadband, modest Enter Mult (0.8–1.2), response 0.2–0.35, Supertrend factor 1.7–2.2, small Flip Offset (0.2–0.5 ATR).
Choppy ranges — widen deadband or raise Enter Mult, lower response, and add more Flip Offset so flips require stronger evidence.
Slow trends — longer ATR periods and higher Supertrend factor to keep you on side longer; use a conservative adverse K.
Included alerts
DBHF ST Long — side flips to long.
DBHF ST Short — side flips to short.
Adverse Exit Long / Short — K·ATR stop triggers against the current side.
Strengths
Deadbanded baseline reduces micro whipsaws before Supertrend logic even begins.
Flip hysteresis adds a second layer of confirmation at the boundary.
Optional adverse ATR stop provides a uniform risk cut across assets and regimes.
Clear visuals and minimal parameters to adjust for symbol behavior.
Putting it together
Think of this tool as two decisions layered into one view. The deadband baseline answers “does this move even count,” then the Supertrend wrapped around that baseline answers “if it counts, which side should I be on and where do I flip.” When both parts agree you tend to stay on the correct side of a trend for longer, and when they disagree you get an early warning that conditions are changing.
When the baseline bends and price cannot reclaim the opposite band , momentum is usually continuing. Pullbacks into the baseline that stall before the far band often resolve in trend.
When the baseline flattens and the bands compress , expect indecision. Use the Flip Offset ATR to avoid reacting to the first feint. Wait for a clean band breach with follow through.
When an adverse K·ATR exit prints while the side has not flipped , treat it as a risk event rather than a full regime change. Many users cut size, re-enter only if the side reasserts, and let the next flip confirm a new trend.
Final thoughts
Deadband Hysteresis Supertrend is best read as a regime lens. The baseline defines your tolerance for noise, the bands define your trailing structure, and the flip offset plus adverse ATR stop define how forgiving or strict you want to be at the boundary. On strong trends it helps you hold through shallow shakeouts. In choppy conditions it encourages patience until price does something meaningful. Start with settings that reflect the cadence of your market, observe how often flips occur, then nudge the deadband and flip offset until the tool spends most of its time describing the move you care about rather than the noise in between.
ATR Position Size Calc+Stop guessing your position size. This indicator automatically calculates the optimal number of contracts or shares for each trade.
It is designed for one purpose: to help you maintain consistent risk management by adjusting your trade size based on current market volatility (ATR) and your fixed monetary risk.
// KEY FEATURES
Consistent Risk : Set your max risk in dollars (e.g., $300), and the script calculates the exact position size to match it.
Volatility-Based Stops : Uses the ATR to define a logical stop loss that adapts to market conditions.
Stable Calculation : The calculation is based on the previous closed candle, so the value is reliable and doesn't change intra-bar.
// HOW TO USE
In the settings, simply define your max risk per trade ($) and your ATR parameters. The indicator does the rest.
The essential tool for disciplined trading.
ATR Take Profit (T-Maker)A dead-simple take-profit helper based on ATR.
This script calculates a 14-period Average True Range (ATR) and multiplies it by a user-defined factor, then shows that single number on your chart in a small table (bottom-left). Use it as a quick, volatility-aware distance for setting take-profit levels, scaling out, or gauging whether a move has “room” to breathe.
What it does
Computes ATR(14) × Multiplier every bar.
Displays the result (rounded to 2 decimals) in a clean on-chart label.
Updates only on the last bar to avoid visual noise and keep performance snappy.
Why it’s useful
Volatility-adjusted targets: ATR adapts to changing market conditions, so your TP distance scales with current volatility.
Instrument & timeframe agnostic: Works on any symbol and timeframe supported by TradingView.
Minimalist workflow: No lines or clutter—just the exact distance to add/subtract from your entry.
How to use it
Choose your ATR Multiplier (default = 4).
Example: If ATR(14) = 1.52 and Multiplier = 4 → displayed value = 6.08.
For a long, a simple TP idea is: TP = Entry + xATR.
For a short: TP = Entry − xATR.
Optionally draw a manual horizontal line at your calculated TP level, or use the value to feed your own rules in other scripts.
Tip: Test different multipliers per market/timeframe (e.g., 2–3 for intraday indices, 3–5 for swing on FX/crypto). Optimize in backtests before going live.
Inputs
ATR Multiplier (int): Scales ATR(14) to your preferred TP distance.
Text Color (color): Customize the display color to match your theme.
Notes & Limitations
Uses ATR(14) (fixed) for consistency in this original version.
Displays a single number only—it does not plot levels, draw lines, or place orders.
Value is rounded to 2 decimals and shown bottom-left of the chart.
Version
v1.0 — Original release (minimal, display-only utility)
Created by T-Maker. This tool is for educational purposes only and is not financial advice. Always manage risk and verify settings before trading.
Zone Cluster Confluence ProWhat it does
Zone Cluster Confluence Pro automatically finds price “zones” via equal-frequency clustering of HLC3 values and wraps each cluster center with an ATR-based band. Zones are color-coded by a 0–100 Strength % and can optionally highlight confluence with a higher timeframe (HTF) right on your chart.
Key features
• Adaptive Depth by Volatility (ATR regime): zone width scales down in calm markets and widens in volatile regimes.
• Strength % scoring with color mapping (Strong / Work / Mid / Weak). The score blends:
• number of touches (with tolerance),
• dwell time inside the zone (penalized),
• confirmed breakouts (penalized),
• average overshoot beyond the band (penalized),
• recency bonus,
• optional volume-boosted touches (volume > SMA × multiplier).
• HTF Confluence Overlay: computes zones on a higher TF (multiplier of the source TF or a specific TF) and highlights the intersection of LTF zones with the nearest HTF zone (white fill).
• Presets per TF: Aggressive / Stable / Anti-pierce profiles with hand-tuned params for 15/30/60/120/240m; or run fully Manual.
• Clean visuals: centers, borders, filled bands; strength labels with auto-contrast text.
How it works (high level)
• Clustering method: choose K-median or K-means (median/mean of equal-frequency buckets) to place zone centers.
• Zone width = ATR × Depth; Depth becomes Adaptive when the ATR regime deviates from its long SMA.
• Strength % is computed over a lookback window using the components listed above; touches can earn an extra bonus on elevated volume.
Inputs (most useful)
• Source TF: inherit from chart or pick a specific TF.
• Zones (k): 2–5 clusters.
• Presets: Aggressive / Stable / Anti-pierce, or Manual control of Candles Back, ATR length, Depth.
• Adaptive Depth: on/off, regime thresholds & multipliers.
• Strength %: profile (Conservative/Neutral/Optimistic), lookback, breakout/overshoot/touch tolerance.
• Volume boost: SMA length, spike multiplier, weight.
• HTF Confluence: on/off, TF multiplier, HTF preset/method/params, and whether HTF k mirrors LTF k.
Reading the chart
• Zone fills are colored by Strength %:
• 80–100 Strong, 60–80 Work, 40–60 Mid, <40 Weak.
• White fills mark LTF×HTF intersections (confluence areas).
• Strength labels (Z1…Z5) show the current score; label background matches the strength color.
Tips
• Use Stable for most markets, Aggressive for fast intraday, Anti-pierce to reduce whipsaw.
• Turn on HTF confluence to filter LTF zones down to areas aligned with the larger trend structure.
• If you scalp, keep volume boost on; for thin markets consider lowering the spike multiplier.
Notes
• No lookahead is used for HTF data (request.security with lookahead_off).
• Zones update as new bars arrive and as the lookback window rolls; this is not a fixed S/R drawing tool.
• Works on any symbol/timeframe; parameter tuning is encouraged.
Access
This script is Invite-Only.
Disclaimer
For educational purposes only. Not financial advice. Trading involves risk.
TRADIVEX_ATR TablosuBINANCE:BTCUSDT.P tr.tradingview.com ## **TRADIVEX\_ATR Table – Indicator Description**
**Overview:**
The TRADIVEX\_ATR Table is a versatile trading tool that provides a concise, visual overview of market volatility, price direction, and ATR-based support/resistance levels. Designed for traders seeking quick insights, this indicator combines key metrics into a color-coded table directly on the chart.
**Key Features:**
* **ATR Calculation & Dynamic Bands:**
Measures Average True Range (ATR) over a configurable period and calculates upper and lower price bands using a multiplier. These bands act as dynamic support and resistance levels, adapting automatically to market volatility.
* **Volatility Assessment:**
Displays market volatility as a percentage of the current price. Volatility is classified into **High, Medium, or Low**, with intuitive color coding:
* High → Red
* Medium → Orange
* Low → Green
* **Price Direction:**
Tracks the direction of the current price relative to the previous bar:
* Up → Green
* Down → Red
* Neutral → Gray
* **Information Table:**
Shows all relevant metrics in a structured table overlay, including:
1. ATR Length (period)
2. ATR Multiplier
3. Upper Band Level
4. Lower Band Level
5. Current Price
6. High Price
7. Low Price
8. ATR Value
9. Volatility Level (color-coded)
10. Price Direction (color-coded)
* **Customizable Table Position:**
The table can be positioned anywhere on the chart (top, middle, bottom, left, right, or center), ensuring it doesn’t obstruct your price action analysis.
**Usage & Benefits:**
* Quickly assess market volatility and momentum.
* Identify short-term trends and directional bias.
* Monitor dynamic ATR-based support/resistance levels.
* Make informed decisions for entries, exits, and stop-loss placements.
**Ideal For:**
Traders who want a **real-time, visual summary of market conditions** without cluttering the chart with multiple indicators.
---
𝑨𝒔𝒕𝒂𝒓 - HelAstar – Hel is an adaptive ATR stop system that finds the best ATR length in real time.
@v1.0
Optimizes ATR length automatically within a defined range
Plots dynamic long/short stops with ATR multiplier
Option to use Super Smoother (FFT-lite) filtering
On-chart stats table with performance & win probability
Lightweight, efficient, and no repainting
ATR Bands with SL and TPATR Bands with SL and TP (TanTechTrades™)
This indicator uses the Average True Range (ATR) to dynamically calculate stop-loss and take-profit levels around the current price.
🔹 Features
Adjustable ATR period for volatility sensitivity
Separate multipliers for stop-loss and take-profit
Plots long/short SL and TP levels simultaneously
Color-coded bands for quick visual reference (orange = SL, blue = TP)
🔹 How to Use
For long positions: SL is plotted below price, TP above price.
For short positions: SL is plotted above price, TP below price.
The wider the ATR, the further the levels adjust, reflecting higher volatility.
This tool helps traders set volatility-based exits instead of fixed pip/point levels, making risk management more adaptive to market conditions.
⚠️ Disclaimer: For educational purposes only. Not financial advice.
Smart Money Price Action ProSmart Money Price Action Pro - Smart Money and Price Action Dynamic Toolkit
The Smart Money Price Action Pro is designed to bring together multiple layers of market analysis into a single, cohesive framework, combining trend identification and consolidation detection in an actionable format. While individual indicators can provide useful insights, they often work in isolation. This toolkit integrates market flow detection, range analytics, and adaptive visualization into one system, allowing traders to see the bigger picture without piecing together multiple disconnected tools.
Building on principles from institutional trading behaviors, the toolkit gives traders a clearer picture of where “smart money” may be entering or exiting the market. Its design emphasizes confluence: signals from multiple independent modules overlap to create higher conviction setups, offering a structured edge when planning entries, exits, and risk levels.
At its core, the toolkit addresses the duality of market conditions: trending versus ranging. By offering a combination of trend-following signals and contrarian insights, it helps traders operate with a deeper understanding of market structure. While it provides actionable signals and visual guidance, it is intended as an assistive system, helping traders make more informed decisions rather than serving as a single source of truth.
Key Modules
1. Smart Money Signal Module
The Smart Money Signal Module identifies potential institutional activity by analyzing price swings and momentum shifts. Using configurable swing detection, it highlights potential reversal or continuation zones, expressed as adaptive zones around key market levels.
Signals are augmented with trend-colored candle overlays, offering immediate guidance on market bias. Bullish and bearish zones are clearly marked, while continuation and reversal markers help distinguish between trend shifts and market noise.
At its core, the engine applies swing detection combined with a sensitivity filter to track directional momentum across recent bars. This allows it to pinpoint bullish pivots (where downside momentum fades and strength returns) and bearish pivots (where upside momentum collapses). Once a pivot is confirmed, the system draws flow lines that map the breakout and classify it as either continuation or reversal, depending on broader market bias.
Momentum zones are then plotted to show areas where buyers stepped in with strength or sellers forced price lower. These levels extend forward dynamically, shifting in real time as new data forms. Zones change color the moment they break, visually confirming whether market structure has held or failed. Gradient shading highlights periods of extreme pressure, giving traders a clear visual of when momentum surges into overbought or oversold territory.
Instead of simply showing trend direction, this module also maps accumulation and distribution zones tied to institutional flows. When combined with the Range Module, these zones become more meaningful — for example, when institutional accumulation aligns with a breakout from consolidation.
Practical Use: Traders can use these signals to align trades with institutional flows. For example, entering a long position near a bullish accumulation zone or managing risk when bearish distribution areas form. By combining these insights with higher timeframe analysis, traders can filter out false signals and improve decision-making.
2. Range Detection Module
The Range Detection engine continuously monitors price action to flag when markets transition into consolidation phases. Ranges are defined not just by flat price action, but by a measurable contraction in volatility, repeated touches of boundary levels, and the clustering of traded volume around a central equilibrium point.
Once a valid range is identified, the system assigns a compression strength score (0–100). This score reflects how cleanly defined and structurally sound the consolidation is—higher scores indicate tighter boundaries and stronger evidence of accumulation or distribution.
Breakout tendencies are modeled dynamically. The system updates a forward-looking bias by incorporating:
Boundary time distribution – how often price presses against upper vs. lower edges
Historical breakout patterns – probability benchmarks derived from structurally similar ranges
Volume skew – whether traded volume leans toward buyers or sellers inside the range
Momentum alignment – auxiliary filters such as slope-based oscillators that indicate when energy is building for a directional move
The result is a live breakout forecast that evolves bar by bar as the range matures. Each active range carries a visual strength meter plotted above the consolidation zone, quantifying both compression and breakout potential in real time.
The module also supports range memory, preserving completed consolidations even after a breakout. This allows traders to review the prior structure for post-analysis or to track whether price respects the boundaries of the old range as support or resistance going forward.
Practical Use : Traders can use these ranges to anticipate breakout direction or step aside when conditions are unclear. A tight consolidation near a bullish zone, for instance, often signals a potential long opportunity, while overlapping bearish flows warn of false breakouts.
Integrated Workflow
The strength of the toolkit lies in its synergy. Each module is effective on its own, but the real advantage comes when their signals align.
A typical workflow may include:
Assessing the market trend using the Smart Money Signal Module and its trend-colored overlays
Identifying consolidation and breakout zones with the Range Detection Module
Watching for confluences: institutional accumulation aligning with range compression, or dashboard bias matching local setups
Executing trades with structured confidence, using these layered confirmations rather than relying on a single trigger
This integrated workflow streamlines decision-making and avoids the conflicting signals that can occur when combining unrelated indicators.
Additional Features
Adaptive Visualization : Dynamic zones and trend overlays adjust to volatility, keeping charts clear and focused
Analytics Dashboard : A compact summary panel shows active zones, bullish vs bearish flow counts, and current bias, giving context at a glance
Instead of simply adding more signals, the dashboard provides a meta-layer of analysis — context, bias, and flow strength — helping traders manage risk and stay aligned with broader market conditions.
Use Cases
Trend Confluence : Entering trades in line with prevailing smart money flows while filtering out counter-trend setups
Breakout Trading : Using the Range Detection Module to anticipate breakout zones and confirming direction with institutional flow signals
Contrarian Reversal Trades : Targeting accumulation/distribution zones where both modules indicate potential reversals
Each use case demonstrates how layered confluence creates clarity and conviction, making the toolkit a strong complement to other forms of technical analysis.
Conclusion
The Smart Money Signals Toolkit simplifies complex market analysis into actionable, visually intuitive insights. While standalone indicators provide value, this toolkit goes further by combining smart money flows, range detection, adaptive zones, and dashboard analytics into one cohesive system.
It doesn’t just generate buy/sell markers — it shows why a setup matters, where it is occurring, and how it aligns with broader conditions. This allows traders to operate with greater clarity, structure, and discipline.
Risk Disclaimer : This toolkit and its features are for educational and informational purposes only. Past performance does not guarantee future results. All suggested use cases are theoretical and should be applied with proper risk management.
2ATR / Close %Certainly. Here is the English version of the indicator description you requested.
---
### **2ATR Stop-Loss Ratio**
This indicator provides a straightforward calculation of **what percentage a 2ATR (Average True Range) move represents relative to the current price**. It's a specialized tool designed to help traders set dynamic, volatility-based stop-loss levels.
---
### **Purpose of the Indicator**
Many traders use a **2ATR** as their standard for setting a stop-loss, believing it's a good measure of a stock's typical movement. However, it can be difficult to quickly determine the exact percentage a 2ATR drop represents from the current price. This indicator solves that problem by giving you a clear, single number that shows the **anticipated percentage loss before you even enter a position**.
---
### **How It Works**
The indicator is calculated using a simple formula:
**(2 * ATR(20) / Current Price) * 100**
* `ATR(20)`: The Average True Range over the last 20 periods. This period can be customized in the indicator's settings.
* `Current Price`: The closing price at the time of calculation.
---
### **How to Use It**
* **Assess Risk**: A higher number on the indicator means greater volatility, indicating a wider stop-loss range.
* **Set a Stop-Loss**: If the indicator shows **3%**, it means a 2ATR move is roughly a 3% change from the current price. This gives you a clear understanding of the potential loss.
* **Adjust Position Size**: If the potential percentage loss is larger than you're comfortable with, you can use this information to reduce your position size, effectively managing your risk.
This tool is especially useful for trading highly volatile stocks, as it helps you establish a clear and effective risk management strategy.
NY Anchored VWAP and Auto SMANY Anchored VWAP and Auto SMA
This script is a versatile trading indicator for the TradingView platform that combines two powerful components: a New York-anchored Volume-Weighted Average Price (VWAP) and a dynamic Simple Moving Average (SMA). Designed for traders who utilize VWAP for intraday trend analysis, this tool provides a clear visual representation of average price and volatility-adjusted moving averages, generating automated alerts for key crossover signals.
Indicator Components
1. NY Anchored VWAP
The VWAP is a crucial tool that represents the average price of a security adjusted for volume. This version is "anchored" to the start of the New York trading session, resetting at the beginning of each new session. This provides a clean, session-specific anchor point to gauge market sentiment and trend. The VWAP line changes color to reflect its slope:
Green: When the VWAP is trending upwards, indicating a bullish bias.
Red: When the VWAP is trending downwards, indicating a bearish bias.
2. Auto SMA
The Auto SMA is a moving average with a unique twist: its lookback period is not fixed. Instead, it dynamically adjusts based on market volatility. The script measures volatility using the Average True Range (ATR) and a Z-Score calculation.
When volatility is expanding, the SMA's length shortens, making it more sensitive to recent price changes.
When volatility is contracting, the SMA's length lengthens, smoothing out the price action to filter out noise.
This adaptive approach allows the SMA to react appropriately to different market conditions.
Suggested Trading Strategy
This indicator is particularly effective when used on a one-minute chart for identifying high-probability trade entries. The core of the strategy is to trade the crossover between the VWAP and the Auto SMA, with confirmation from a candle close.
The strategy works best when the entry signal aligns with the overall bias of the higher timeframe market structure. For example, if the daily or 4-hour chart is in an uptrend, you would look for bullish signals on the one-minute chart.
Bullish Entry Signal: A potential entry is signaled when the VWAP crosses above the Auto SMA, and is confirmed when the one-minute candle closes above both the VWAP and the SMA. This indicates a potential continuation of the bullish momentum.
Bearish Entry Signal: A potential entry is signaled when the VWAP crosses below the Auto SMA, and is confirmed when the one-minute candle closes below both the VWAP and the SMA. This indicates a potential continuation of the bearish momentum.
The built-in alerts for these crossovers allow you to receive notifications without having to constantly monitor the charts, ensuring you don't miss a potential setup.
Sentinel 5 — OHL daybreak signals [KedArc Quant]Overview
Sentinel 5 plots the first-bar high/low of each trading session and gives clean, rules-based signals in two ways:
1) OHL Setups at the close of the first bar (Open equals/near High for potential short; Open equals/near Low for potential long).
2) Breakout Signals later in the session when price breaks the first-bar High/Low, with optional body/penetration filters.
Basic workflow
1. Wait for the first session bar to finish.
*If O≈H (optionally by proximity) → short setup. •
*If O≈L → long setup. • If neither happens, optionally allow later breakouts.
2. Optional: Act only on breakouts that penetrate a minimum % of that bar’s range/body.
3. Skip the day automatically if the first bar is abnormally large (marubozu-like / extreme ATR / outsized vs yesterday).
Signals & Markers
Markers on the chart:
▲ O=L (exact) / O near L (proximity) – long setup at first-bar close.
▼ O=H (exact) / O near H (proximity) – short setup at first-bar close.
▲ Breakout Long – later bar breaks above first-bar High meeting your penetration rule.
▼ Breakout Short – later bar breaks below first-bar Low meeting your penetration rule.
Advanced Range Analyzer ProAdvanced Range Analyzer Pro – Adaptive Range Detection & Breakout Forecasting
Overview
Advanced Range Analyzer Pro is a comprehensive trading tool designed to help traders identify consolidations, evaluate their strength, and forecast potential breakout direction. By combining volatility-adjusted thresholds, volume distribution analysis, and historical breakout behavior, the indicator builds an adaptive framework for navigating sideways price action. Instead of treating ranges as noise, this system transforms them into opportunities for mean reversion or breakout trading.
How It Works
The indicator continuously scans price action to identify active range environments. Ranges are defined by volatility compression, repeated boundary interactions, and clustering of volume near equilibrium. Once detected, the indicator assigns a strength score (0–100), which quantifies how well-defined and compressed the consolidation is.
Breakout probabilities are then calculated by factoring in:
Relative time spent near the upper vs. lower range boundaries
Historical breakout tendencies for similar structures
Volume distribution inside the range
Momentum alignment using auxiliary filters (RSI/MACD)
This creates a live probability forecast that updates as price evolves. The tool also supports range memory, allowing traders to analyze the last completed range after a breakout has occurred. A dynamic strength meter is displayed directly above each consolidation range, providing real-time insight into range compression and breakout potential.
Signals and Breakouts
Advanced Range Analyzer Pro includes a structured set of visual tools to highlight actionable conditions:
Range Zones – Gradient-filled boxes highlight active consolidations.
Strength Meter – A live score displayed in the dashboard quantifies compression.
Breakout Labels – Probability percentages show bias toward bullish or bearish continuation.
Breakout Highlights – When a breakout occurs, the range is marked with directional confirmation.
Dashboard Table – Displays current status, strength, live/last range mode, and probabilities.
These elements update in real time, ensuring that traders always see the current state of consolidation and breakout risk.
Interpretation
Range Strength : High scores (70–100) indicate strong consolidations likely to resolve explosively, while low scores suggest weak or choppy ranges prone to false signals.
Breakout Probability : Directional bias greater than 60% suggests meaningful breakout pressure. Equal probabilities indicate balanced compression, favoring mean-reversion strategies.
Market Context : Ranges aligned with higher timeframe trends often resolve in the dominant direction, while counter-trend ranges may lead to reversals or liquidity sweeps.
Volatility Insight : Tight ranges with low ATR imply imminent expansion; wide ranges signal extended consolidation or distribution phases.
Strategy Integration
Advanced Range Analyzer Pro can be applied across multiple trading styles:
Breakout Trading : Enter on probability shifts above 60% with confirmation of volume or momentum.
Mean Reversion : Trade inside ranges with high strength scores by fading boundaries and targeting equilibrium.
Trend Continuation : Focus on ranges that form mid-trend, anticipating continuation after consolidation.
Liquidity Sweeps : Use failed breakouts at boundaries to capture reversals.
Multi-Timeframe : Apply on higher timeframes to frame market context, then execute on lower timeframes.
Advanced Techniques
Combine with volume profiles to identify areas of institutional positioning within ranges.
Track sequences of strong consolidations for trend development or exhaustion signals.
Use breakout probability shifts in conjunction with order flow or momentum indicators to refine entries.
Monitor expanding/contracting range widths to anticipate volatility cycles.
Custom parameters allow fine-tuning sensitivity for different assets (crypto, forex, equities) and trading styles (scalping, intraday, swing).
Inputs and Customization
Range Detection Sensitivity : Controls how strictly ranges are defined.
Strength Score Settings : Adjust weighting of compression, volume, and breakout memory.
Probability Forecasting : Enable/disable directional bias and thresholds.
Gradient & Fill Options : Customize range visualization colors and opacity.
Dashboard Display : Toggle live vs last range, info table size, and position.
Breakout Highlighting : Choose border/zone emphasis on breakout events.
Why Use Advanced Range Analyzer Pro
This indicator provides a data-driven approach to trading consolidation phases, one of the most common yet underutilized market states. By quantifying range strength, mapping probability forecasts, and visually presenting risk zones, it transforms uncertainty into clarity.
Whether you’re trading breakouts, fading ranges, or mapping higher timeframe context, Advanced Range Analyzer Pro delivers a structured, adaptive framework that integrates seamlessly into multiple strategies.
ATR - Daily vs CurrentThis script provides a comprehensive view of the Average True Range (ATR) for both the current trading day and a multi-day lookback, giving traders real-time insight into volatility and potential daily price movement. Key features include:
ATR Table:
- Average ATR: 14-day ATR, representing typical daily volatility.
- Today’s ATR: Current day ATR, showing how much the price has moved so far.
- % of Avg ATR Used: Calculates the percentage of the average ATR that has been realized today, helping assess if a move is near exhaustion.
Possible Daily ATR Range Lines:
- Horizontal lines drawn from today’s open representing ±50% and ±100% of the 14-day ATR, providing a visual guide for potential price extremes.
- Lines are updated once per day and extend from the right to the left, clearly marking possible intraday range limits.
Color-coded for clarity:
- Green = +50% ATR
- Red = -50% ATR
- Lime = +100% ATR
- Maroon = -100% ATR
Usage:
- Useful for day traders and intraday scalpers to track volatility and potential price targets.
- Helps in risk management, setting stops, and estimating realistic intraday moves.
- Provides visual cues for when price has consumed a significant portion of expected daily range.
Note: ATR is a statistical measure; the lines represent possible ranges, not guaranteed targets. Daily market conditions may prevent price from reaching full ATR.
Adaptive HMA Trendfilter & Profit SpikesShort Description
Adaptive trend-following filter using Hull Moving Average (HMA) slope.
Includes optional Keltner Channel entries/exits and dynamic spike-based take-profit markers (ATR/Z-Score).
Optional Fast HMA for early entry visualization (not included in logic).
USER GUIDE:
1) Quick Overview
Trend Filter: Slow HMA defines Bull / Bear / Sideways (via slope & direction).
Entries / Exits:
Entry: Color change of the slow HMA (red→green = Long, green→red = Short), optionally filtered by the Keltner basis.
Exit: Preferably via Keltner Band (Long: Close under Upper Band; Short: Close above Lower Band).
Fallback: exit on opposite HMA color change.
Take-Profit Spikes: Marks abnormal moves (ATR, Z-Score, or both) as discretionary TP signals.
Fast HMA (optional): Purely visual for early entry opportunities; not part of the core trading logic (see §5).
2) Adding & Basic Setup
Add the indicator to your chart.
Open Settings (gear icon) and configure:
HMA: Slow HMA Length = 55, Slope Lookback = 10, Slope Threshold = 0.20%.
Keltner: KC Length = 20, Multiplier = 1.5.
Spike-TP: Mode = ATR+Z, ATR Length = 14, Z Length = 20, Cooldown = 5.
Optionally: enable Fast HMA (e.g., length = 20).
3) Input Parameters – Key Controls
Slow HMA Length: Higher = smoother, fewer but cleaner signals.
Slope Lookback: How far back HMA slope is compared against.
Slope Threshold (%): Minimum slope to avoid “Sideways” regime.
KC Length / Multiplier: Width and reactivity of Keltner Channels.
Exits via KC Bands: Toggle on/off (recommended: on).
Entries only above/below KC Basis: Helps filter out chop.
Spike Mode: Choose ATR, Z, or ATR+Z (stricter, fewer signals).
Spikes only when in position: TP markers show only when you’re in a trade.
4) Entry & Exit Logic
Entries
Long: Slow HMA turns from red → green, and (if filter enabled) Close > KC Basis.
Short: Slow HMA turns from green → red, and (if filter enabled) Close < KC Basis.
Exits
KC Exit (recommended):
Long → crossunder(close, Upper KC) closes trade.
Short → crossover(close, Lower KC).
Fallback Exit: If KC Exits are off → exit on opposite HMA color change.
Spike-TP (Discretionary)
Marks unusually large deviations from HMA.
Use for partial profits or tightening stops.
⚠️ Not auto-traded — only marker/alert.
5) Early Entry Opportunities (Fast HMA Cross – visual only)
The script can optionally display a Fast HMA (e.g., 20) alongside the Slow HMA (e.g., 55).
Bullish early hint: Fast HMA crosses above Slow HMA, or stays above, before the Slow HMA officially turns green.
Bearish early hint: opposite.
⚠️ These signals are not part of the built-in logic — they are purely discretionary:
Advantage: Earlier entries, more profit potential.
Risk: Higher chance of whipsaws.
Practical workflow (early long entry):
Fast HMA crosses above Slow HMA AND Close > KC Basis.
Enter small position with tight stop (under KC Basis or HMA swing).
Once Slow HMA confirms green → add to position or trail stop tighter.
6) Recommended Presets
Crypto (1h/2h):
HMA: 55 / 10 / 0.20–0.30%
KC: 20 / 1.5–1.8
Spikes: ATR+Z, ATR=14, Z=20, Cooldown 5
FX (1h/4h):
HMA: 55 / 8–10 / 0.10–0.25%
KC: 20 / 1.2–1.5
Indices (15m/1h):
HMA: 50–60 / 8–12 / 0.15–0.30%
KC: 20 / 1.3–1.6
Fine-tuning:
Too noisy? → Raise slope threshold or increase HMA length.
Too sluggish? → Lower slope threshold or shorten HMA length.
7) Alerts – Best Practice
Long/Short Entry – get notified when trend color switches & KC filter is valid.
Long/Short Exit – for KC exits or fallback exits.
Long/Short Spike TP – for discretionary profit-taking.
Set via TradingView: Create Alert → Select this indicator → choose condition.
8) Common Pitfalls & Tips
Too many false signals?
Raise slope threshold (more “Sideways” filtering).
Enable KC filter for entries.
Entries too late?
Use Fast HMA cross for early discretionary entries.
Or lower slope threshold slightly.
Spikes too rare/frequent?
More frequent → ATR mode or lower ATR multiplier / Z-threshold.
Rarer but stronger → ATR+Z with higher thresholds.
9) Example Playbook (Long Trade)
Regime: Slow HMA still red, Fast HMA crosses upward (early hint).
Filter: Close > KC Basis.
Early Entry: Small size, stop below KC Basis or recent swing low.
Confirmation: Slow HMA turns green → scale up or trail stop.
Management: Partial profits at Spike-TP marker; full exit at KC upper band break.