Nasdaq Sentiment DashboardBuilds a composite sentiment state — RISK-ON / NEUTRAL / RISK-OFF — using three legs:
Volatility: CBOE VXN vs its moving average and absolute thresholds (risk-on when low & below MA; risk-off when high & above MA).
Breadth (quality of participation): QQEW/QQQ ratio vs its MA (equal-weight beating cap-weight = healthier breadth).
Advance/Decline (intraday breadth): advdec.nq vs its MA, with a magnitude filter (ignores tiny A/D days).
How it works
Pulls each series on your chosen signal timeframe (default Daily).
Creates binary signals per leg:
Vol: volOn if VXN < MA and < vxnLower; volOff if VXN > MA and > vxnUpper.
Breadth: brOn if QQEW/QQQ is above its MA by a deadband; brOff if below.
A/D: adOn if A/D > MA and above adMin; adOff if below MA and < -adMin.
Scores each leg (+1 on, −1 off, 0 neutral) → sums to −3…+3.
State rule (default): RISK-ON if score ≥ +2, RISK-OFF if ≤ −2, else NEUTRAL (i.e., need 2 of 3 to agree).
Detects flips (changes in state) and provides alert conditions that fire only on the flip bar.
What you see
Lines for VXN & MA, QQEW/QQQ & MA, A/D & MA.
Background color shows current composite state.
Triangle markers on the flip bar (up for ON, down for OFF).
A top-right table summarizing state, each leg vs its MA, and the composite score.
How to tune
Vol thresholds: vxnLower / vxnUpper.
Breadth whipsaw control: deadbandBps around the ratio’s MA.
A/D sensitivity: adMin and adMaLen.
Stricter regime: require all 3 to agree by changing the state line to score == 3 / -3.
波動率
ATR Stoploss 15m with EMA Trend 1H - Dotted Fixeduse this as a basic ATR stoploss. It uses 100 and 20 EMA on 1hr to determine trend.
Scalp Sense AI# Scalp Sense AI (No Repaint)
**Adaptive trend & reversal detector with an AI-driven score, multi-timeframe confirmations, robust volume filters, and a purpose-built Scalping Mode.**
Signals are generated **only on bar close** (no repaint), include structured alert payloads for webhooks, and come with optional ATR-based TP/SL visualization for study and validation.
---
## What it is (in one paragraph)
**Scalp Sense AI** combines classic market structure (DI/ADX, EMA, SMA, Keltner, ATR) with a continuous **AI Score** that fuses RSI normalization, EMA distance (in ATR units), and DI edge into a single, volatility-aware signal. It adaptively gates **trend** and **reversal** entries, applies **HTF confirmation** without lookahead, and enforces **guard rails** (e.g., strong-trend reversal blocking) unless a high-confidence AI override and volume confirmation are present. **Scalping Mode** compresses reaction times and adds micro price-action cues (wick rejections, micro-EMA crosses, small engulfing) to surface more—but disciplined—opportunities.
---
## Non-Repainting Design
* All signals, markers, state, and alerts are computed **after bar close** using `barstate.isconfirmed`.
* HTF data are requested with `lookahead_off`.
* No “future-peeking” constructs are used.
* Result: signals do **not** change after the candle closes.
---
## How the engine works (pipeline overview)
1. **Base metrics**
* **RSI**, **EMA**, **ATR** (+ ATR SMA for regime/volatility), **SMA long & short**, **Keltner** (EMA ± ATR×mult).
* **Manual DI/ADX** for fine control (DM+, DM−, true range smoothing).
2. **Volatility regime**
* Compares ATR to its SMA and scales thresholds by √(ATR/ATR\_SMA) → robust “high\_vol” gating.
3. **Volume & flow**
* **Volume Z-score**, **OBV slope**, and **MFI** (all computed manually) to confirm impulses and filter weak reversals.
4. **Higher-Timeframe confirmation (optional)**
* Imports HTF **PDI/MDI/ADX** and **SMA** (no lookahead) to require alignment when enabled.
5. **AI Score**
* Weighted fusion of **RSI (normalized around 0)**, **EMA distance (in ATR)**, and **DI edge**.
* Smoothed; then its **mean (μ)** and **volatility (σ)** are estimated to form **adaptive bands** (hi/lo), with optional **hysteresis**.
* **Debounce** (M in N bars) avoids flicker; **bias state** persists until truly invalidated.
6. **Signal logic**
* **Trend entries** require AI bias + trend confirmations (DI/ADX/SMA, HTF if enabled), volatility OK, and **anti-breakout** filter.
* **Reversal entries** come in **core**, **early**, and **scalp** flavors (progressively more frequent), guarded by strong-trend blocks that an **AI+volume+ADX-cooling override** can bypass.
7. **Scalping Mode**
* Adaptive parameter contraction (shorter lengths), gentler guards, micro-patterns (wick/engulf/micro-EMA cross), and reduced cooldown to increase high-quality opportunities.
8. **Cooldown & state**
* One signal per side after a configurable spacing in bars; internal “last direction” avoids clustering.
9. **Visualization & alerts**
* **Triangles** for trend, **circles** for reversals (offset by ATR to avoid overlap).
* **Single-line alert payload** (BUY/SELL, reason, AI, volZ, ADX) ready for webhooks.
---
## Signals & visualization
* **Trend Long/Short** → triangle markers (above/below) when:
* AI bias aligns with trend confirmations (DI edge, ADX above threshold, price vs long SMA, optional HTF alignment).
* Volatility regime agrees; **anti-breakout** prevents entries exactly at lookback highs/lows.
* **Reversal Long/Short** → circular markers when:
* **Core**: AI near “loose” band, OBV/MFI/volZ supportive, ADX cooling, DI spread relaxed, PA confirms (crosses/div).
* **Early**: anticipatory patterns (Keltner exhaustion, simple RSI “quasi-divergence”).
* **Scalp**: micro-EMA cross, wick rejection, mini-engulfing, with relaxed guards but AI/volume still in the loop.
* **Markers appear only on the bar that actually emitted the signal** (no repaint); offsets use ATR so shapes don’t overlap.
---
## Alerts (ready for webhooks)
Enable “**Any alert() function call**” and you’ll receive compact, single-line payloads once per bar:
```
action=BUY;reason=reversal-early;ai=0.1375;volZ=0.82;adx=27.5
action=SELL;reason=trend;ai=-0.2210;volZ=0.43;adx=31.9
```
* `action`: BUY / SELL
* `reason`: `trend` | `reversal-core` | `reversal-early` | `reversal-scalp`
* `ai`: current smoothed AI Score at signal bar
* `volZ`: volume Z-score
* `adx`: current ADX
---
## Inputs (exhaustive)
### 1) Core Inputs
* **RSI Length (Base)** (`rsi_length_base`, int)
Base RSI lookback. Shorter = more reactive; longer = smoother.
* **RSI Overbought Threshold** (`rsi_overbought`, int)
Informational for context; RSI is used normalized in the AI fusion.
* **RSI Oversold Threshold** (`rsi_oversold`, int)
Informational; complements visual context.
* **EMA Length (Base)** (`ema_length_base`, int)
Primary adaptive mean; also used for Keltner mid and distance metric.
* **ATR Length (Base)** (`atr_length_base`, int)
Volatility unit for Keltner, SL/TP (debug), and regime detection.
* **ATR SMA Length** (`atr_sma_len`, int)
Smooth baseline for ATR regime; supports “high\_vol” logic.
* **ATR Multiplier Base** (`atr_mult_base`, float)
Scales volatility gating (sqrt-scaled); higher = tighter high-vol requirement.
* **Disable Volatility Filter** (`disable_volatility_check`, bool)
Bypass volatility gating if true.
* **Price Change Period (bars)** (`price_change_period_base`, int)
Simple momentum check (+/−% over N bars) used in trend validation.
* **Base Cooldown Bars Between Signals** (`signal_cooldown_base`, int ≥ 0)
Minimum bars to wait between signals (per side).
* **Trend Confirmation Bars** (`trend_confirm_bars`, int ≥ 1)
Require persistence above/below long SMA for this many bars.
* **Use Higher Timeframe Confirmation** (`use_higher_tf`, bool)
Turn on/off HTF alignment (no repaint).
* **Higher Timeframe for Confirmation** (`higher_tf`, timeframe)
E.g., “60” to confirm M15 with H1; used for HTF PDI/MDI/ADX and SMA.
* **TP as ATR Multiple** (`tp_atr_mult`, float)
For **visual debug** only (drawn after entries); not an order manager.
* **SL as ATR Multiple** (`sl_atr_mult`, float)
For visual debug only.
* **Enable Scalping Mode** (`scalping_mode`, bool)
Compresses lengths/thresholds, unlocks micro-PA modules, reduces cooldown.
* **Show Debug Lines** (`show_debug`, bool)
Plots AI bands, DI/ADX, EMA/SMA, Keltner, vol metrics, and TP/SL (debug).
### 2) AI Score & Thresholds
* **AI Score Smooth Len** (`ai_len`, int)
EMA smoothing over the raw fusion.
* **AI Volatility Window** (`ai_sigma_len`, int)
Window to estimate AI mean (μ) and standard deviation (σ).
* **K High (sigma)** (`ai_k_hi`, float)
Upper band width (σ multiplier) for strong threshold.
* **K Low (sigma)** (`ai_k_lo`, float)
Lower band width (σ multiplier) for loose threshold.
* **Debounce Window (bars)** (`ai_debounce_m`, int ≥ 1)
Rolling window length used by the confirm counter.
* **Min Bars>Thr in Window** (`ai_debounce_n`, int ≥ 1)
Minimum confirmations inside the debounce window to validate a state.
* **Use Hysteresis Thresholds** (`ai_hysteresis`, bool)
Requires crossing back past a looser band to exit bias → fewer whipsaws.
* **Weight DI Edge (0–1)** (`ai_weight_di`, float)
Importance of DI edge within the fusion.
* **Weight EMA Dist (0–1)** (`ai_weight_ema`, float)
Importance of EMA distance (in ATR units).
* **Weight RSI Norm (0–1)** (`ai_weight_rsi`, float)
Importance of normalized RSI.
* **Sensitivity (0–1)** (`sensitivity`, float)
Contracts/expands bands (higher = more sensitive).
### 3) Volume Filters
* **Volume MA Length** (`vol_ma_len`, int)
Baseline for volume Z-score.
* **Volume Z-Score Window** (`vol_z_len`, int)
Std-dev window for Z-score; larger = fewer volume “spikes”.
* **Reversal: Min Volume Z for confirm** (`vol_rev_min_z`, float)
Minimum Z required to validate reversals (adaptively relaxed in scalping).
* **OBV Slope Lookback** (`obv_slope_len`, int)
Rising/falling OBV over this window supports bull/bear confirmations.
* **MFI Length** (`mfi_len`, int)
Money Flow Index lookback (manual calculation).
### 4) Filters (Breakout / ADX / Reversal)
* **Enable Breakout Filter** (`enable_breakout_fil`, bool)
Avoid trend entries at lookback highs/lows.
* **Breakout Lookback Bars** (`breakout_lookback`, int ≥ 1)
Window for the anti-breakout guard.
* **Base ADX Length** (`adx_length_base`, int)
Lookback for DI/ADX smoothing (also adapted in Scalping Mode).
* **Base ADX Threshold** (`adx_threshold_base`, float)
Minimum ADX to validate trend context (scaled in Scalping Mode).
* **Enable Reversal Filter** (`enable_rev_filter`, bool)
Master switch for reversal logic.
* **Max ADX for Reversal** (`rev_adx_max`, float)
Hard cap: above this ADX, reversals are blocked (unless overridden by AI if allowed in Guards).
### 5) Reversal Guard (regime protection & overrides)
* **Strong Trend: ADX add-above Thr** (`guard_adx_add`, float)
Extra ADX above `adx_threshold` to mark “strong” trend.
* **Strong Trend: min DI spread** (`guard_spread_min`, float)
Minimum DI separation to consider a trend “dominant”.
* **Require ADX drop from window max (%)** (`guard_adx_drop_min_pct`, float 0–1)
ADX must drop at least this fraction from its window maximum to consider “cooling”.
* **Regime Window (bars)** (`guard_regime_len`, int ≥ 10)
Window over which ADX max is measured for the “cooling” check.
* **EMA Slope Lookback** (`guard_slope_len`, int ≥ 2)
EMA slope horizon used alongside Keltner for strong-trend identification.
* **Keltner Mult (ATR)** (`guard_kc_mult`, float)
Keltner width for strong trend bands and exhaustion checks.
* **HTF Reversal Block Mode** (`htf_block_mode`, string: `Off` | `On` | `AI-controlled`)
* `Off`: never block by HTF.
* `On`: block reversals whenever HTF is strong.
* `AI-controlled`: block **unless** AI+volume+ADX-cooling override criteria are met.
* **AI-controlled: allow AI override** (`ai_htf_override`, bool)
Enables the override mechanism in `AI-controlled` mode.
* **AI override multiplier (vs band\_hi)** (`ai_override_mult`, float)
Strength needed beyond the high band to count as “strong AI”.
* **AI override: min bars beyond strong thr** (`ai_override_min_bars`, int ≥ 1)
Debounce on the override itself.
### 6) Markers
* **Reversal Circle ATR Offset** (`rev_marker_offset_atr`, float ≥ 0)
Vertical offset for reversal circles; trend triangles use a separate (internal) offset.
### 7) Scalping Mode Tuning
* **Reversal aggressiveness (0–1)** (`scalp_rev_aggr`, float)
Higher = looser guards and stronger AI sensitivity.
* **Wick: body multiple (bull/bear)** (`scalp_wick_body_mult`, float)
Wick must be at least this multiple of body to count as rejection.
* **Wick: ATR multiple (min)** (`scalp_wick_atr_mult`, float)
Minimal wick length in ATR units.
* **Micro EMA factor (vs EMA base)** (`scalp_ema_fast_factor`, float 0.2–0.9)
Fast EMA length = base EMA × factor (rounded/int).
* **Relax breakout filter in scalping** (`scalp_breakout_relax`, bool)
Lets more trend entries through in scalping context.
### 8) ICT-style SMA (bases)
* **ICT SMA Long Length (Base)** (`sma_long_len_base`, int)
Long-term baseline for regime/trend.
* **ICT SMA Short1 Length (Base)** (`sma_short1_len_base`, int)
Short baseline for price-action crosses.
* **ICT SMA Short2 Length (Base)** (`sma_short2_len_base`, int)
Companion short baseline used in PA cross checks.
> **Adaptive “effective” values:** When **Scalping Mode** is ON, the script internally shortens multiple lengths (RSI/EMA/ATR/ADX/μσ windows, SMAs) and gently relaxes guards (ADX drop %, DI spread, volume Z, override thresholds), reduces cooldown/confirm bars, and optionally relaxes the breakout filter—so you get **more frequent but still curated** signals.
---
## Plots & debug (optional)
* DI+/DI−, ADX (curr + HTF), EMA, long SMA, Keltner up/down (when strong), AI Score, AI mean, AI bands (hi/lo; low plots only when hysteresis is on), Volume MA and Z-score, and ATR-based TP/SL guide (after entries).
* These are **study aids**; the indicator does not manage trades.
---
## Recommended use
* **Timeframes**:
* Scalping Mode: M1–M15.
* Standard Mode: M15–H1 (or higher).
* **Markets**: Designed for liquid FX, indices, metals, and large-cap crypto.
* **Chart type**: Standard candles recommended (Heikin-Ashi alters inputs and hence signals).
* **Alerts**: Use “Any alert() function call”. Parse the key/value payloads server-side.
---
## Good to know
* **Why some alerts don’t draw shapes retroactively**: markers are drawn **only on** the bar that emitted the signal (no repaint by design).
* **Why a reversal didn’t fire**: strong-trend guards + HTF block may have been active; check ADX, DI spread, Keltner position, EMA slope, and whether AI override criteria were met.
* **Too many / too few signals**: tune **Scalping Mode**, `signal_cooldown_base`, AI bands (`ai_k_hi/lo`, `sensitivity`), volume Z (`vol_rev_min_z`), and guards (`rev_adx_max`, `guard_*`).
---
## Disclaimer
This is an **indicator**, not a strategy or an execution system. It does not place, modify, or manage orders. Markets carry risk—validate on historical data and demo before any live decisions. No performance claims are made.
---
### Version
**Scalp Sense AI v11.5** — Adaptive AI bands with hysteresis/debounce, HTF no-lookahead confirmations, guarded reversal logic with AI override, full volume suite (Z, OBV slope, MFI), anti-breakout filter, and a dedicated Scalping Mode with micro-PA cues.
Средний дневной ATR (по High–Low)Test v.1
we calculate in % the average ATR passed in 1 day (for 5 days)
Globex Overnight Futures ORB with FIB's by TenAMTrader📌 Globex Overnight Futures ORB with FIB’s – by TenAMTrader
This indicator is designed for futures traders who want to track the Globex Overnight Opening Range (ORB) and apply Fibonacci projections to anticipate potential support/resistance zones. It’s especially useful for traders who follow overnight sessions (such as ES, NQ, CL) and want to map out key levels before the U.S. regular session begins.
⚙️ How It Works
Primary Range (ORB):
You define a start and end time (default set to 18:00 – 18:15 EST). During this period, the script tracks the session high, low, and midpoint.
Opening Range Plots:
High Line (green)
Low Line (red)
Midpoint Line (yellow)
A shaded cloud between High–Mid and Mid–Low for easy visualization.
Fibonacci Projections:
Once the ORB is complete, the script calculates a full suite of Fibonacci retracements and extensions (e.g., 0.236, 0.382, 0.618, 1.0, 1.618, 2.0).
Standard key levels (0.618, 0.786, 1.0, etc.) are always shown if enabled.
Optional extended levels (1.236, 1.382, 1.5, 2.0, etc.) can be toggled on/off.
"Between Range" fibs (such as 0.382 and 0.618 inside the ORB) are also available for traders who like intra-range precision.
🔧 User Settings
Time Inputs: Choose your ORB start/end time.
Color Controls: Customize high, low, midpoint, and fib line colors.
Display Toggles: Turn on/off High, Low, Midpoint lines and Fibonacci projections.
Fib Extensions Toggle: Decide whether to show only major fibs or all extensions.
Alerts (Optional): Alerts can be set for crossing the ORB High, Low, or Midpoint.
📊 Practical Use Cases
Breakout Traders: Use the ORB high/low as breakout triggers.
Mean Reversion Traders: Watch for rejections near fib extension levels.
Overnight Futures Monitoring: Track Globex behavior to prepare for RTH open.
Risk Management: ORB and Fib levels make for natural stop/target placement zones.
⚠️ Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, or trading recommendations. Trading futures involves substantial risk of loss and may not be suitable for all investors. Always do your own due diligence and consult with a licensed financial professional before making trading decisions.
Volume Spike Detector - by TenAMTrader📌 Volume Spike Detector – by TenAMTrader
This indicator is designed to help traders quickly identify unusual surges in trading volume relative to recent activity. High-volume spikes can often signal strong buying or selling pressure, potential trend reversals, or breakout setups.
⚙️ How It Works
The script calculates the average trading volume over a user-defined period (default: 21 bars).
It then sets a spike threshold, which is that average volume plus a percentage buffer (default: 25%).
Whenever the current bar’s volume exceeds this threshold, a 💰 label is plotted below the candle.
If alerts are enabled, you’ll also receive a real-time alert whenever a spike occurs.
🔧 User Settings
Spike Ratio % → Adjust how much higher than average volume must be to qualify as a spike.
Trading Period → Set the lookback period used to calculate the average volume.
Enable Alert → Turn alerts on/off.
📊 Practical Use Cases
Breakout Trading: Volume spikes often confirm breakouts from consolidation zones.
Reversal Signals: A sudden surge in volume may precede a trend reversal.
News & Events: Spot unusual activity during earnings, economic releases, or unexpected events.
⚠️ Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, or trading recommendations. Past performance is not indicative of future results. Always do your own research and consult with a licensed financial professional before making any trading decisions.
Intelligent Trading SuiteIntelligent Trading Suite
“One script to rule them all.”
Overview
The Intelligent Trading Suite is a professional-grade decision system built in Pine Script. It is a unified engine—not a bundle of indicators—that combines adaptive pattern recognition, historical memory, and multi-context intelligence into one framework. Using a deep historical pattern database and integrating session dynamics, market calendars, holiday effects, and economic events, it filters noise and adapts to conditions. Core emphasis: precise pattern detection with target-price projection that remains stable as new candles print (mitigates target drift) and early detection of forming geometric patterns and divergences/hidden divergences.
Core Features
All-Timeframe Operation: Works across every TradingView timeframe—from 1m to 1W—without performance drift.
Pattern Recognition with Targets: Detects triangles, wedges, cup & handle, flags, and H&S; projects targets and stabilizes them against common drift as price evolves.
Early Signal Engine: Flags forming patterns and divergences before completion and notifies when prerequisites align.
Historical Pattern Intelligence: Stores and compares thousands of prior states (Hull, VWAP, RSI, MACD, SMA, CVD) to weight current conditions and calibrate confidence.
Context & Regime Awareness: Adjusts for volatility regimes, liquidity sessions, day-of-week bias, holidays, and macro events.
Unified Signal & Confidence: Fuses all streams into a single Overall signal with calibrated confidence levels (Weak / Neutral / Strong).
Visualization & Alerts
Compact Ultimate Intelligence Table showing each analytical pillar, plus the Overall signal, and an option to show them on the chart as well.
Alerts on table for: new pattern detection, divergence events, volatility shifts, and trend reversals.
Important Notes
-Free plan runtime: TradingView Free accounts may hit platform limits.
Fix: Open settings → switch Mode from Paid to Free → runs within Free limits.
-Heavy computation: The script is calculation- and data-intensive; initial runs can take time.
If a rare runtime error occurs, simply reload the page and continue.
Attributions
Hull Moving Average (Alan Hull)
VWAP (Volume Weighted Average Price)
RSI (Relative Strength Index, J. Welles Wilder Jr.)
MACD (Moving Average Convergence Divergence, Gerald Appel)
Black Flag ATR bands (Jose Azcarate)
Proprietary enhancements, target-stabilization logic, and the nuclear intelligence architecture are original research for this suite.
Compliance
Educational and analytical use only
No financial advice
Ad-free; aligned with TradingView House Rules
Proper attribution included
Access
To get access, please read the Author’s instructions on the script’s page.
Bollinger Bands % | QuantEdgeB📊 Introducing Bollinger Bands % (BB%) by QuantEdgeB
🛠️ Overview
BB% | QuantEdgeB is a volatility-aware momentum tool that maps price within a Bollinger envelope onto a normalized scale. By letting you choose the base moving average (SMA, EMA, DEMA, TEMA, HMA, ALMA, EHMA, THMA, RMA, WMA, VWMA, T3, LSMA) and even Heikin-Ashi sources, it adapts to your style while keeping readings consistent across symbols and timeframes. Clear thresholds and color-coded visuals make it easy to spot emerging strength, fading moves, and potential mean-reversions.
✨ Key Features
• 🔹 Flexible Baseline
Pick from 12 MA types (plus Heikin-Ashi source option) to tailor responsiveness and smoothness.
• 🔹 Normalized Positioning
Price is expressed as a percentage of the band range, yielding an intuitive 0–100 style read (can exceed in extreme trends).
• 🔹 Actionable Thresholds
Default Long 55 / Short 45 levels provide simple, objective triggers.
• 🔹 Visual Clarity
Color-coded candles, shaded OB/OS zones, and adaptive color themes speed up decision-making.
• 🔹 Ready-to-Alert
Built-in alerts for long/short transitions.
📐 How It Works
1️⃣ Band Construction
A moving average (your choice) defines the midline; volatility (standard deviation) builds upper/lower bands.
2️⃣ Normalization
The indicator measures where price sits between the lower and upper band, scaling that into a bounded oscillator (BB%).
3️⃣ Signal Logic
• ✅ Long when BB% rises above 55 (strength toward the top of the envelope).
• ❌ Short when BB% falls below 45 (weakness toward the bottom).
4️⃣ OB/OS Context
Shaded regions above/below typical ranges highlight exhaustion and potential snap-backs.
⚙️ Custom Settings
• Base MA Type: SMA, EMA, DEMA, TEMA, HMA, ALMA, EHMA, THMA, RMA, WMA, VWMA, T3, LSMA
• Source Mode: Classic price or Heikin-Ashi (close/open/high/hlc3)
• Base Length: default 40
• Band Width: standard deviation-based (2× SD by default)
• Long / Short Thresholds: defaults 55 / 45
• Color Mode: Alpha, MultiEdge, TradingSuite, Premium, Fundamental, Classic, Warm, Cold, Strategy
• Candles & Labels: optional candle coloring and signal markers
👥 Ideal For
✅ Trend Followers — Ride strength as price compresses near the upper band.
✅ Swing/Mean-Reversion Traders — Fade extremes when BB% stretches into OB/OS zones.
✅ Multi-Timeframe Analysts — Compare band position consistently across periods.
✅ System Builders — Use BB% as a normalized feature for strategies and filters.
📌 Conclusion
BB% | QuantEdgeB delivers a clean, normalized read of price versus its volatility envelope—adaptable via rich MA/source options and easy to automate with thresholds and alerts.
🔹 Key Takeaways:
1️⃣ Normalized view of price inside the volatility bands
2️⃣ Flexible baseline (12+ MA choices) and Heikin-Ashi support
3️⃣ Straightforward 55/45 triggers with clear visual context
📌 Disclaimer: Past performance is not indicative of future results. No strategy guarantees success.
📌 Strategic Advice: Always backtest, tune parameters, and align with your risk profile before live trading.
PRC-VIDYA | QuantEdgeBIntroducing PRC-VIDYA by QuantEdgeB
Overview
The PRC-VIDYA(Volatility–Indexed Dynamic Average) is a sophisticated trading indicator developed for traders looking to capitalize on trend shifts with enhanced filtering mechanisms. It blends an Endpoint VIDYA filter—an adaptive, volatility-scaled moving average with percentile-based thresholds and a median-absolute-deviation buffer to craft a dynamic entry/exit envelope. Price thrusts beyond the upper or lower band generate crisp long/short signals, complete with colored fills, candle tinting, alerts and optional backtest stats
____
Key Features
🔹VIDYA(Volatility–Indexed Dynamic Average):
- Adaptive Moving Average that adjusts its responsiveness based on market volatility.
- Uses a dynamic smoothing constant based on standard deviations.
- Allows for better trend detection compared to static moving averages.
🔹2. Percentile Rank-Based Dynamic Levels:
- Identifies overbought (75th percentile) and oversold (25th percentile) zones.
- Dynamically adjusts based on historical data, making it robust across different market conditions.
🔹3. Median Absolute Deviation (MAD) Filtering:
- An advanced volatility filter that refines entry and exit points.
- Reduces noise by filtering out weak signals, focusing only on meaningful trend shifts.
- Uses two multipliers (long and short) to fine-tune sensitivity.
🔹4. Signal Generation:
- 📈Long Signal: Triggered when price closes above the upper dynamic threshold.
- 📉Short Signal: Triggered when price closes below the lower dynamic threshold.
- Uses color-coded candles to visually indicate trend shifts.
- Optional signal labels can be enabled for clear entry/exit indications.
🔹5. Customizable Visualization:
- Multiple color themes to match user preferences.
- Ability to overlay signals on price charts.
- Alerts available for long & short crossovers.
_____
How It Works
1. The script calculates VIDYA based on a user-defined period.
2. It computes the 75th and 25th percentile ranks of the moving average.
3. Median Absolute Deviation (MAD) Filtering is applied to reduce false breakouts.
4. A buy (long) or sell (short) signal is triggered when price crosses the respective filtered percentile levels.
5. Alerts and labels can be used to notify traders of new signals.
_____
Behavior across Crypto Majors
BTC
ETH
SOL
Note: Past behaviour is not indicative of future results. Always conduct thorough testing and risk management before making trading decisions.
_____
Best Use Cases
📌 Trend Confirmation – Use VIDYA to confirm if a trend is strengthening or weakening.
📌 Noise Reduction – MAD filtering prevents reacting to minor fluctuations, focusing on stronger trend shifts.
📌 Multi-Timeframe Scalability – Works across multiple timeframes (1H, 4H, Daily, etc.), depending on the trader’s strategy.
🧬 Default Settings
• Endpoint VIDYA Mode: “Mid” (9 bar, 24 bar hist)
• Percentile Length: 21 bars
• Upper/Lower Percentiles: 75% / 25%
• MAD Window: 21 bars
• Upper/Lower MAD Multipliers: 1.8 / 0.9
• Visuals: Candle coloring on, labels off, “Strategy” palette
• Backtest Table: off by default
_____
📌 Conclusion
PRC-VIDYA fuses a volatility-aware adaptive average with percentile boundaries and a robust deviation buffer, yielding a self-adjusting channel that captures genuine breakouts and breakdowns. Its clear regime coloring, alerts and optional backtest table make it a turnkey solution for traders who want signals that breathe with the market.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Marcius Studio® - Cross-Asset Correlator™Cross-Asset Correlator™ — a pair-trading strategy that identifies correlation breakdowns between two assets and captures profit opportunities from market inefficiencies.
The strategy enters trades when the correlation drops below a set threshold and closes positions once correlation recovers.
The main concept is to exploit temporary divergence between two assets by going long the stronger one and short the weaker one, aiming to profit when their correlation reverts.
Important : This script illustrates asset correlation concepts for educational purposes only. It's not for live trading—requires adjustments and offers no performance guarantees. Always apply risk management.
TradingView Limitation
By default, TradingView’s built-in Strategy interface does not support backtesting with two different assets .
To overcome this, the script is implemented as an indicator with a fully custom backtesting engine that calculates PnL, trades, and performance statistics directly on the chart.
Idea
Markets move in clusters : altcoins follow BTC, memecoins track Solana, L2 projects mirror Ethereum. But correlations aren’t perfect—temporary divergences create pricing inefficiencies.
The logic:
When an asset lags or overshoots its usual correlation, it’s a mispricing opportunity.
Trade the reversion: buy undervalued divergence, sell overextended convergence.
The market eventually corrects, but the inefficiency window allows profit before realignment.
OKX Signal Bot Integration
This script includes a built-in interface for OKX Signal Bot .
It can generate structured JSON alerts (ENTER / EXIT, long / short) and directly manage trades on OKX exchange .
This allows seamless automation of correlation-based strategies without manual order execution.
Note : The OKX Signal Bot (for demo use only) assists with alerts & trade management but does not ensure profits. You are fully responsible for your trades—always apply risk management.
Strategy Parameters
Symbol 1 / Symbol 2 : trading instruments to be analyzed.
SMA Period : smoothing period for price averages.
Correlation Period : number of bars used to calculate correlation coefficient.
Upper Correlation Threshold : level above which trades are closed.
Lower Correlation Threshold : level below which new trades are opened.
percentage_investment (%) : allocation per entry signal (used for OKX integration).
Example Settings OKX:FARTCOINUSDT.P / OKX:PENGUUSDT.P
Timeframe : 1H
SMA Period : 60
Correlation Period : 25
Upper Threshold : 0.9
Lower Threshold : 0.1
percentage_investment : 10%
How the Code Works
Retrieves closing prices of two selected assets.
Calculates correlation coefficient and moving averages.
When correlation breaks below the lower threshold, the script opens a pair trade (long/short depending on SMA relation).
When correlation recovers above the upper threshold, all open trades are closed.
Real-time alerts are generated in JSON format for OKX bots (ENTER/EXIT signals).
Built-in backtesting engine tracks PnL, trades, and statistics (7d / 30d / total).
Visual labels mark entries, exits, and PnL results directly on the chart.
Disclaimer
Trading involves risk — always do your own research (DYOR) and seek professional financial advice. We are not responsible for any potential financial losses.
All-in-One EMA & BBThis script combines Bollinger Bands and multiple EMAs into one powerful tool. It includes:
1) Bollinger Bands with customizable MA type and colors.
2) EMA 21 on Daily and Weekly timeframes.
3) EMA 21, 50, 100, 200 on current chart timeframe.
4) Toggle options for each indicator for a clean, flexible view.
Ideal for traders seeking multi-timeframe trend analysis and volatility insights.
Monthly Expected Move (IV + Realized)What it does
Overlays 1-month expected move bands on price using both forward-looking options data and backward-looking realized movement:
IV30 band — from your pasted 30-day implied vol (%)
Straddle band — from your pasted ATM ~30-DTE call+put total
HV band — from Historical Volatility computed on-chart
ATR band — from ATR% extrapolated to ~1 trading month
Use it to quickly answer: “How much could this stock move in ~1 month?” and “Is the market now pricing more/less movement than we’ve actually been getting?”
Inputs (quick)
Implied (forward-looking)
Use IV30 (%) — paste annualized IV30 from your options platform.
Use ATM 30-DTE Straddle — paste Call+Put total (per share) at the ATM strike, ~30 DTE.
Realized (backward-looking)
HV lookback (days) — default 21 (≈1 trading month).
ATR length — default 14.
Note: TradingView can’t fetch option data automatically. Paste the IV30 % or the straddle total you read from your broker (use Mark/mid prices).
How it’s calculated
IV band (±%) = IV30 × √(21/252) (annualized → ~1-month).
Straddle band (±%) = (ATM Call + Put) / Spot to that expiry (≈30 DTE).
HV band (±%) = stdev(log returns, N) × √252 × √(21/252).
ATR band (±%) = (ATR(len)/Close) × √21.
All bands are plotted as upper/lower envelopes around price, plus an on-chart readout of each ±% for quick scanning.
How to use it (at a glance)
IV/Straddle bands wider than HV/ATR → market expects bigger movement than recent actuals (possible catalyst/expansion).
All bands narrow → likely a low-mover; look elsewhere if you want action.
HV > IV → realized swings exceed current pricing (mean-reversion or vol bleed often follows).
Pro tips
For ATM straddle: pick the expiry closest to ~30 DTE, use the ATM strike (closest to spot), and add Call Mark + Put Mark (per share). If the exact ATM strike isn’t quoted, average the two neighboring strikes.
The simple straddle/spot heuristic can read slightly below the IV-derived 1σ; that’s normal.
Keep the chart on daily timeframe—the math assumes trading-day conventions (~252/yr, ~21/mo).
Volume Profile Grid [Alpha Extract]A sophisticated volume distribution analysis system that transforms market activity into institutional-grade visual profiles, revealing hidden support/resistance zones and market participant behavior. Utilizing advanced price level segmentation, bullish/bearish volume separation, and dynamic range analysis, the Volume Profile Grid delivers comprehensive market structure insights with Point of Control (POC) identification, Value Area boundaries, and volume delta analysis. The system features intelligent visualization modes, real-time sentiment analysis, and flexible range selection to provide traders with clear, actionable volume-based market context.
🔶 Dynamic Range Analysis Engine
Implements dual-mode range selection with visible chart analysis and fixed period lookback, automatically adjusting to current market view or analyzing specified historical periods. The system intelligently calculates optimal bar counts while maintaining performance through configurable maximum limits, ensuring responsive profile generation across all timeframes with institutional-grade precision.
// Dynamic period calculation with intelligent caching
get_analysis_period() =>
if i_use_visible_range
chart_start_time = chart.left_visible_bar_time
current_time = last_bar_time
time_span = current_time - chart_start_time
tf_seconds = timeframe.in_seconds()
estimated_bars = time_span / (tf_seconds * 1000)
range_bars = math.floor(estimated_bars)
final_bars = math.min(range_bars, i_max_visible_bars)
math.max(final_bars, 50) // Minimum threshold
else
math.max(i_periods, 50)
🔶 Advanced Bull/Bear Volume Separation
Employs sophisticated candle classification algorithms to separate bullish and bearish volume at each price level, with weighted distribution based on bar intersection ratios. The system analyzes open/close relationships to determine volume direction, applying proportional allocation for doji patterns and ensuring accurate representation of buying versus selling pressure across the entire price spectrum.
🔶 Multi-Mode Volume Visualization
Features three distinct display modes for bull/bear volume representation: Split mode creates mirrored profiles from a central axis, Side by Side mode displays sequential bull/bear segments, and Stacked mode separates volumes vertically. Each mode offers unique insights into market participant behavior with customizable width, thickness, and color parameters for optimal visual clarity.
// Bull/Bear volume calculation with weighted distribution
for bar_offset = 0 to actual_periods - 1
bar_high = high
bar_low = low
bar_volume = volume
// Calculate intersection weight
weight = math.min(bar_high, next_level) - math.max(bar_low, current_level)
weight := weight / (bar_high - bar_low)
weighted_volume = bar_volume * weight
// Classify volume direction
if bar_close > bar_open
level_bull_volume += weighted_volume
else if bar_close < bar_open
level_bear_volume += weighted_volume
else // Doji handling
level_bull_volume += weighted_volume * 0.5
level_bear_volume += weighted_volume * 0.5
🔶 Point of Control & Value Area Detection
Implements institutional-standard POC identification by locating the price level with maximum volume accumulation, providing critical support/resistance zones. The Value Area calculation uses sophisticated sorting algorithms to identify the price range containing 70% of trading volume, revealing the market's accepted value zone where institutional participants concentrate their activity.
🔶 Volume Delta Analysis System
Incorporates real-time volume delta calculation with configurable dominance thresholds to identify significant bull/bear imbalances. The system visually highlights price levels where buying or selling pressure exceeds threshold percentages, providing immediate insight into directional volume flow and potential reversal zones through color-coded delta indicators.
// Value Area calculation using 70% volume accumulation
total_volume_sum = array.sum(total_volumes)
target_volume = total_volume_sum * 0.70
// Sort volumes to find highest activity zones
for i = 0 to array.size(sorted_volumes) - 2
for j = i + 1 to array.size(sorted_volumes) - 1
if array.get(sorted_volumes, j) > array.get(sorted_volumes, i)
// Swap and track indices for value area boundaries
// Accumulate until 70% threshold reached
for i = 0 to array.size(sorted_indices) - 1
accumulated_volume += vol
array.push(va_levels, array.get(volume_levels, idx))
if accumulated_volume >= target_volume
break
❓How It Works
🔶 Weighted Volume Distribution
Implements proportional volume allocation based on the percentage of each bar that intersects with price levels. When a bar spans multiple levels, volume is distributed proportionally based on the intersection ratio, ensuring precise representation of trading activity across the entire price spectrum without double-counting or volume loss.
🔶 Real-Time Profile Generation
Profiles regenerate on each bar close when in visible range mode, automatically adapting to chart zoom and scroll actions. The system maintains optimal performance through intelligent caching mechanisms and selective line updates, ensuring smooth operation even with maximum resolution settings and extended analysis periods.
🔶 Market Sentiment Analysis
Features comprehensive volume analysis table displaying total volume metrics, bullish/bearish percentages, and overall market sentiment classification. The system calculates volume dominance ratios in real-time, providing immediate insight into whether buyers or sellers control the current price structure with percentage-based sentiment thresholds.
🔶 Visual Profile Mapping
Provides multi-layered visual feedback through colored volume bars, POC line highlighting, Value Area boundaries, and optional delta indicators. The system supports profile mirroring for alternative perspectives, line extension for future reference, and customizable label positioning with detailed price information at critical levels.
Why Choose Volume Profile Grid
The Volume Profile Grid represents the evolution of volume analysis tools, combining traditional volume profile concepts with modern visualization techniques and intelligent analysis algorithms. By integrating dynamic range selection, sophisticated bull/bear separation, and multi-mode visualization with POC/Value Area detection, it provides traders with institutional-quality market structure analysis that adapts to any trading style. The comprehensive delta analysis and sentiment monitoring system eliminates guesswork while the flexible visualization options ensure optimal clarity across all market conditions, making it an essential tool for traders seeking to understand true market dynamics through volume-based price discovery.
VIX > 20/25 HighlightThis indicator tracks the CBOE Volatility Index (VIX) and highlights when volatility exceeds critical thresholds.
Plots the VIX with dashed reference lines at 20 and 25.
Background turns orange when the VIX is above 20.
Background turns bright red when the VIX is above 25.
Includes alert conditions to notify you when the VIX crosses above 20 or 25.
Use this tool to quickly visualize periods of elevated market stress and manage risk accordingly.
Candle Body Size AlertThis indicator monitors the body size of each candle (close minus open, ignoring wicks) and compares it to a user-defined threshold measured in ticks. If the candle body exceeds the threshold, the indicator triggers an alert condition at the close of the candle.
Features:
1. Adjustable threshold in ticks (default: 4000)
2. Adjustable timeframe (or use chart timeframe)
3. Alerts only at candle close (no intrabar signals)
Use Case:
Designed for traders who want to be notified when unusually large candles form, helping to identify strong momentum moves or volatility spikes.
Average True Range %The ATR% oscillator measures market volatility as a percentage of the closing price, smooths it using a chosen method (RMA, SMA, EMA, or WMA), and compares it to the threshold levels of 0.95% and 1.20%.
Calm before the StormCalm before the Storm - Bollinger Bands Volatility Indicator
What It Does
This indicator identifies and highlights periods of extremely low market volatility by analyzing Bollinger Bands distance. It uses percentile-based analysis to find the "quietest" market periods and highlights them with a gradient background, operating on the premise that low volatility periods often precede significant price movements.
How It Works
Volatility Measurement: Calculates the distance between Bollinger Bands upper and lower boundaries
Percentile Analysis: Analyzes the lowest X% of volatility periods over a configurable lookback period (default: lowest 40% over 200 bars)
Visual Highlighting: Uses gradient opacity to show volatility levels - the lower the volatility, the more opaque the background highlighting
Adaptive Threshold: Automatically calculates what constitutes "low volatility" based on recent market conditions
Who Should Use It
Primary Users:
Breakout Traders: Looking for consolidation periods that may precede significant moves
Options Traders: Seeking low implied volatility periods before volatility expansion
Swing Traders: Identifying accumulation/distribution phases before trend continuation or reversal
Range Traders: Spotting tight trading ranges for mean reversion strategies
Trading Styles:
Volatility-based strategies
Breakout and momentum trading
Options strategies (volatility plays)
Market timing approaches
When to Use It
Market Conditions:
Consolidation Phases: When price is moving sideways with decreasing volatility
Pre-Announcement Periods: Before earnings, economic data, or major events
Market Transitions: During shifts between trending and ranging markets
Low Volume Periods: When institutional participation is reduced
Strategic Applications:
Entry Timing: Wait for volatility compression before positioning for breakouts
Risk Management: Reduce position sizes during highlighted periods (anticipating volatility expansion)
Options Strategy: Sell premium during low volatility, buy during expansion
Multi-Timeframe Analysis: Combine with higher timeframe trends for confluence
Key Benefits
Objective Volatility Measurement: Removes subjectivity from identifying "quiet" markets
Adaptive Analysis: Automatically adjusts to current market conditions
Visual Clarity: Easy-to-interpret gradient highlighting
Customizable Sensitivity: Adjustable percentile thresholds for different trading styles
Best Used In Combination With:
Trend analysis tools
Support/resistance levels
Volume indicators
Momentum oscillators
This indicator is particularly valuable for traders who understand that periods of low volatility are often followed by periods of high volatility, allowing them to position ahead of potential significant price movements.
ArpitJainForex.comThis is one of the Leading Indicator I have sold To 30+ Forex Agencies In Dubai, Azerbaijan & Cyprus.
Looking forward in making you Profitable.
If you want access to my Indicator please dm on
www.instagram.com
My profile Has Blue High Rise buildings Behind me, Yah Its in Abu Dhabi.
Scalper ProCreated by 77
version 0.9 (Pre-release version)
Overview
The Scalper Pro Algo is a specialized day trading indicator optimized for the various timeframe, tailored for both stock and cryptocurrency markets. It delivers precise buy and sell signals, highlights dynamic overbought and oversold zones, and flags potential reversal points to support active traders.
At its core, the indicator blends a Kalman-filtered Super trend algorithm with VWMA (Volume-Weighted Moving Average) bands. This fusion enables trend-following and mean-reversion strategies by identifying high-probability entry and exit points. The Kalman filtering helps reduce market noise and minimize false signals, offering traders clearer, more dependable guidance for scalping and short-term trades.
London/NY Forex SessionDesigned for Forex traders who want a clear view of market dynamics.
This tool highlights the most active trading windows of the day, helping you align with institutional moves and avoid low-liquidity periods.
Ultron Indicator BTCUSDT Ultron BTCUSDT Indicator (invite-only).
• Clear trend & reversion signals
• Next-bar execution parity and frozen TSL visuals
• Run on 4hr Binance BTCUSDT chart
• Risk sizing that uses your equity input
Usage: Add to chart → Settings → Inputs → set “Your Current Trading Equity (USD)”.
⚠️ Software tool for educational/informational use only. Not financial advice.
Past performance is not indicative of future results. You are responsible for your trades.
Marcius Studio® - Trend Detector™Trend Detector™ — is an advanced trend detection indicator that combines statistical Z-Score analysis with a simplified ADF stationarity test .
It is designed to help traders identify strong directional moves while filtering out noise and false signals.
Unlike traditional moving average crossovers or momentum oscillators, this tool evaluates both trend direction and trend strength , giving you a clear visual overview of market conditions.
Important! This indicator is intended for educational and informational purposes . It does not guarantee future performance and should be used together with proper risk management.
Idea
Markets spend 70–80% of the time in consolidation and only 20–30% in trending phases . The key to profitable trading is spotting when a major trend shift begins. Trend Detector™ was built exactly for this purpose — to filter noise and highlight true trend reversals.
How It Works
Calculates the Z-Score of price to detect extreme deviations from the mean.
Applies a simplified ADF t-Statistic test to confirm trend validity.
Uses an ATR-based ribbon for clean visualization of bullish/bearish phases.
Generates Buy/Sell signals when trend switches are confirmed.
Displays an Info Panel with real-time metrics: Z-Score, ADF t-Stat, Trend Strength (0–100), ATR % of price.
Features
Trend Ribbon : visually highlights bullish, bearish, or neutral phases.
Confirmation Filter : avoids false flips by requiring multiple bars of validation.
Strength Score : quantifies how powerful the current trend is.
Signal Markers : “BUY” and “SELL” alerts appear directly on the chart.
Customizable Alerts : get notified when new uptrends or downtrends are detected.
Recommendations
Works well on swing trading timeframes (1H, 4H, Daily).
Use in combination with support/resistance zones or volume profile tools for higher accuracy.
The higher the Trend Strength Score , the more reliable the trend continuation.
Indicator Settings
Analysis Period : number of bars for Z-Score & ADF test.
ATR Length : used for ribbon visualization.
Min Bars to Confirm Trend : filters false trend flips.
Show/Hide options for Ribbon, Signals, and Info Panel.
Example Settings
Timeframe : 1H or 4H
Analysis Period : 20
ATR Length : 14
Min Confirmation Bars : 2–3
Disclaimer
Trading and investing involve risk — always do your own research (DYOR) and seek professional advice. We are not responsible for any financial losses.
Close Location Value (CLV)A script that calculates where price closes relative to its low range.
0.7-1= strong bullish
0.5 to -0.5 = mid range
-1 to -0.7 strong bearish