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.
Trend
Forecasting Quadratic Regression [UPDATED V6] Forecasting Quadratic Regression applies a second-degree polynomial regression model to price data, offering a non-linear alternative to traditional linear regression. By fitting a quadratic curve of the form:
y=a+bx+cx2
the indicator captures both directional trend and curvature, allowing traders to detect momentum shifts earlier than with straight-line models.
🔹 Core Features
Fits a quadratic regression curve to user-defined lookback periods
Extends the fitted curve forward to generate forecast projections
Calculates slope curvature to highlight trend acceleration or deceleration
Adapts dynamically as new bars are added
🔹 Trading Applications
Identify potential reversal zones when the curve inflects (2nd derivative sign change)
Forecast near-term mean reversion targets or extended trend continuations
Filter trades by measuring momentum curvature rather than linear slope
Visualize higher-order structure in price beyond standard regression lines
⚠️ Note: This model is statistical and assumes past curvature informs short-term future price paths. It should be combined with confirmation signals (volume, oscillators, support/resistance) to reduce false inflection points.
Zenith by JaeheeZenith (Invite-Only)
Overview
• This indicator is a trend-following, regime-aware signal tool designed to surface actionable long/short entries only when multiple, independent conditions align.
• It emphasizes trend initiation (not late trend chasing) and provides structured take-profit (TP1/TP2/TP3) cues when momentum weakens after entry.
• It is an indicator (not a strategy). It does not place trades, manage orders, or guarantee outcomes.
What makes it different
• Regime windowing: Signals are permitted only shortly after a regime flip and only if trend quality conditions persist (streak). This reduces signals that arrive too late in mature trends.
• Multi-filter consensus: Trend EMA slope/position, RSI state/slope, ADX/DI separation, volume expansion, and optional structure break (HH/LL) must agree before any entry is considered.
• Volatility & squeeze awareness: A TTM-style squeeze gate avoids chasing during compression unless a valid release is detected.
• Momentum-based TPs: After a valid entry, RSI divergence at confirmed pivots defines TP1→TP3 in the trend direction (price makes a new extreme while RSI momentum fails to confirm).
• Minimal repaint design: Signals and TPs are formed on confirmed pivots and bar close logic; HTF requests use lookahead_off. (See “Repainting & calculation notes.”)
How it works (signal engine)
• Trend filter:
• Baseline EMA and its slope define directional bias (price vs baseline, rising/falling baseline).
• RSI state & slope:
• RSI must be above/below its midpoint and (optionally) rising/falling to validate momentum alignment.
• Directional strength (ADX/DI):
• ADX must exceed a minimum; DI+ vs DI− alignment confirms directional pressure.
• Liquidity/participation:
• Volume must exceed its SMA×mult to avoid low-quality moves.
• Structure confirmation (optional):
• Break of recent highs/lows (windowed) helps filter range noise.
• Squeeze gate:
• During BB-inside-KC compression, entries are held back unless a valid release (KC breakout) or ATR expansion is present.
• Regime window:
• After Long/Short pass flips from 0→1, entries are allowed for a limited number of bars (window) and only after a streak (N consecutive bars meeting conditions).
• HTF alignment (optional):
• Higher-timeframe EMA trend must agree with the local setup (no lookahead).
Signals & labels
• Entry labels:
• Long Entry = “Long Entry” (below bar)
• Short Entry = “Short Entry” (above bar)
• Shapes:
• Diamonds mark entry points; optional “Macro-only” mode shows only regime-grade signals.
• Visual ribbon:
• A gradient band around the baseline provides context for volatility and bias; it does not alter signal logic.
Take-Profit framework (momentum weakening)
• After a Long Entry, the script tracks confirmed price pivot highs vs confirmed RSI pivot highs:
• TP trigger (Long): new price pivot high higher than prior, but RSI pivot high lower → bearish divergence (momentum weakening).
• Ordering: TP2 must print above TP1; TP3 must print above TP1/TP2.
• After a Short Entry, the script tracks confirmed price pivot lows vs confirmed RSI pivot lows:
• TP trigger (Short): new price pivot low lower than prior, but RSI pivot low higher → bullish divergence.
• Ordering: TP2 must print below TP1; TP3 must print below TP1/TP2.
• Why divergence?
• It captures fading momentum within an ongoing move, enabling staged partial exits without predicting tops/bottoms.
How traders typically use it
• Discretionary entries with rules:
• Confirm on bar close to avoid intrabar flips.
• Favor higher-timeframes for reliability; in practice, the 1-hour chart has been a balanced choice between responsiveness and noise.
• Risk & exits:
• Combine the indicator’s entries with independent risk management (fixed/ATR stops, volatility-scaled sizing).
• Use TP1→TP3 for partials; trail the remainder by structure/ATR or your preferred method.
Why it can add value (without hype)
• Noise rejection: By requiring simultaneous agreement across trend, momentum, participation, and compression, many low-quality whipsaws are filtered out.
• Timeliness: Limiting signal eligibility to a post-flip window seeks to capture the early phase of regime change instead of late escalations.
• Clarity: The gradient ribbon and explicit labels (“Long Entry”, “Short Entry”, “TP1–TP3”) make execution rules transparent and repeatable.
• Adaptability: Inputs (RSI length/midline, ADX/DI thresholds, squeeze, HTF alignment, structure, window/streak sizes) allow tuning for symbols/timeframes.
Best practices (recommended use)
① Confirm on bar close
• Signals can change intrabar; execute after the bar has closed.
② Validate across multiple timeframes
• Although the tool adapts to volatility, reliability improves on higher timeframes.
• In practice, the 1-hour chart has shown a stable balance between reactivity and noise.
③ Align with ribbon bias
• Trade in the same direction as the ribbon/baseline slope to reduce counter-trend exposure.
④ Combine with independent risk management
• Use stop-losses, position sizing, or ATR-based targets outside the script.
⑤ Use as confirmation, not prediction
• Treat entries as confirmation of regime change, not as a forecast of future price.
Inputs you may care about
• Trend/Structure: EMA length, slope lookback, structure window, cooldown bars.
• Momentum: RSI length/midline, rising/falling filter, ADX length/min, DI separation.
• Participation: Volume SMA length & multiplier.
• Compression: BB/KC lengths & multipliers; require-release toggle.
• Regime quality: Flip window, streak size, ATR expansion vs baseline, max extension (ATR×), optional ADX rising, optional HTF alignment.
• TP controls: Enable/disable per side, max TP count (1–3), label offset/color.
• Visuals: EMA and ribbon display, diamond sizes, optional vertical lines.
Repainting & calculation notes
• No future-bar references: The script does not use future data. HTF calls use barmerge.lookahead_off.
• Pivot confirmation: Entries and TPs use confirmed pivots (pivotRight bars later). Labels are placed at the pivot bar index once confirmed.
• Intrabar updates: Values can update before the bar closes; confirm on close for decisions.
• HTF security: Higher-timeframe values are requested without lookahead; still, HTF bars finalize only when the HTF bar closes.
Limitations & responsible use
• Not financial advice. No guarantees of profitability; markets involve risk.
• Not a strategy. It does not place, manage, or cancel orders; you must supply risk controls.
• Parameter sensitivity. Different symbols/timeframes may require tuning.
• Divergence scarcity. TP1–TP3 are divergence-based; in strong trends without momentum fade, fewer TP signals will occur.
Disclaimer
• This indicator is provided for educational and informational purposes only.
• It does not guarantee profits, predict future prices, or replace independent judgment.
• Trading involves risk, and all decisions remain solely the responsibility of the user.
• By using this tool, you acknowledge that it is intended as a study aid within TradingView, not as financial advice or an automated trading system.
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.
The Oracle by JaeheeThe Oracle
Summary
The Oracle is a volatility-adaptive trend indicator built on a smoothed range filter, persistence counters, and regime-flip logic. Signals appear only when price establishes a sustained move and flips from one regime to the other. An EMA(50)-anchored ribbon provides a flowing visual context but does not drive signals.
What it does
① Calculates a smoothed volatility-based range to adapt to market conditions
② Builds a filtered price path that reduces single-bar noise
③ Tracks persistence of upward or downward filter movement with counters
④ Confirms Buy/Sell signals only on regime flips, not on single ticks
⑤ Draws a multi-phase ribbon around EMA(50) to visualize slope and bias
How it works (concept level)
① Smoothed Range: Double EMA of absolute price change, scaled by multiplier
② Filtered Price: Range filter constrains price movement to reduce noise
③ Persistence Counters: Upward/Downward counters accumulate only if the filter continues in one direction
④ Signal Logic:
• Buy = price above filter AND prior regime was short
• Sell = price below filter AND prior regime was long
• Requires a full flip of state to confirm new signals
⑤ Ribbon: EMA(50) baseline with sinusoidal offsets creates a flowing ribbon, colored by EMA slope (visual only)
Why it is useful
① Noise resistance: Avoids whipsaws by requiring persistence + state flips
② Clarity: Ribbon visually encodes background trend for quick recognition
③ Balanced design: Combines volatility adaptation, persistence, and confirmation in one framework
④ Adaptable: Works across assets and timeframes without heavy parameter tuning
How to use it
① Signal reading:
• ✧ Buy marker = confirmed transition into an upward regime
• ✧ Sell marker = confirmed transition into a downward regime
• Use bar close confirmation
② Ribbon context: Align trades with ribbon slope/color to stay with the dominant trend
③ Timeframes:
• Higher (4H, Daily) = better swing bias
• Lower (5m, 15m) = faster signals but noisier
④ Combination: Pair with ATR stops, position sizing, or volume/momentum studies for added confirmation
Limitations
① Still possible to see false flips in choppy consolidations
② Smoothing introduces slight delay in regime confirmation
③ Signals can repaint intrabar — confirm on bar close
④ Indicator only — no built-in money management or strategy logic
Best Practices (Recommended Use)
① Confirm on bar close
• Signals can change intrabar; always make decisions after the bar has closed.
② Validate across multiple timeframes
• Although the tool adapts to volatility, reliability improves on higher timeframes.
• In practice, the 1-hour chart has shown the most stable balance between reactivity and noise.
③ Align with ribbon bias
• Trade in the same direction as the ribbon slope/color to reduce countertrend exposure.
④ Combine with independent risk management
• Use stop-losses, position sizing, or ATR-based targets outside the script.
• The indicator highlights transitions, but risk control must be user-defined.
⑤ Use as confirmation, not prediction
• Treat signals as confirmation of regime change, not as a forecast of future price.
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.
TrendLines with ATR and MA [KoTa]The "TrendLines with ATR and MA " indicator combines trend lines, breakout signals, ATR-based trend tracking, and moving averages (MA).
Input Settings and Customization:
After adding the indicator, click on its name at the top of the chart and open the "Settings" tab.
Main sections:
Trend Lines and Breakouts (Periods 1-5):
General Usage Tips:
Chart Timeframe: Works on any timeframe (from 1 minute to weekly). Shorter timeframes (e.g., 5-minute) generate more signals, while longer timeframes (e.g., daily) produce fewer but more reliable signals.
Compatibility: Overlay=true, meaning it is drawn directly on the candlestick chart. It can be combined with other indicators (e.g., RSI, MACD).
Advantages
This indicator outperforms standard trend line tools due to its automated, multi-period, and integrated features:
Automated Trend Line Drawing: Instead of manual drawing, it creates trend lines based on pivot highs/lows. Different periods (3-50) enable multi-timeframe analysis, allowing you to see short- and long-term trends on the same chart.
Breakout Detection and Labeling: Detects breakouts in real-time using dotted extensions. B (Buy) and S (Sell) labels (e.g., B1 for period1 up breakout) clarify signals. Historical breakouts are shown in gray for context.
ATR Integration: Volatility-based trend tracking (similar to SuperTrend). Calculates channel deviation to adapt to market volatility. Arrows highlight trend reversals quickly.
Moving Averages Integration: Flexible MA types (e.g., VWMA for volume-weighted analysis) for trend filtering. No Bollinger Bands option, but MAs can validate breakouts.
Performance and Visuals: Limits line count with max_lines_count for memory efficiency. Colors and line widths are customizable, and old elements are automatically managed (deleted or grayed out). Precision=0 ensures clean price formatting.
Flexibility: All components (trend lines, ATR, MA) can be toggled on/off, allowing for simple or complex usage.
Benefits Provided
This indicator speeds up trading decisions and reduces errors:
Trend and Support/Resistance Detection: Pivot-based lines provide automatic support (green, lows) and resistance (red, highs) levels. Benefit: Reduces manual analysis time, saving effort in scalping or swing trading.
Breakout Signals: Signals are triggered when the close price crosses over/under the extended line. Benefit: Catches potential trend starts early; ATR can filter false breakouts. B/S labels provide visual alerts, simplifying alert setup.
Volatility Adaptation (ATR): Adjusts trend lines based on market fluctuations. Benefit: Wider channels in high-volatility periods (e.g., crypto) and narrower in low volatility, reducing whipsaws (false signals). Arrows clearly show trend changes, ideal for position management.
MA Validation: MAs measure trend strength (e.g., EMA20 above indicates uptrend). Benefit: Filtering breakouts with MA crossovers improves accuracy. VWMA offers volume-based analysis to eliminate weak trends.
General Benefits:
Risk Management: Breakout levels can be used for stop-loss placement (e.g., below breakout).
Profit Potential: When tested on historical data (backtesting), it can be optimized by period—shorter periods for quick entries, longer for holding.
Educational Value: Visualizes fractal, pivot, and ATR concepts for new traders.
Time Savings: Automation eliminates hours of chart analysis; updates in real-time.
Multi-Asset Compatibility: Works for stocks, forex, and crypto; ATR shines in volatile assets.
Possible Strategies
This indicator supports various strategies, primarily focused on breakouts and trend following, enhanced by MA and ATR filtering.
Breakout Trading Strategy:
Rules: Enter long on B (Buy) label (crossover up line), short on S (Sell). For example, enter on B3 (period10), with stop-loss below the previous pivot low.
Filtering: Confirm with ATR arrow up (trend=0). Ensure price is above MA1 (20).
Exit: Profit target at ATR*2 or exit on reverse breakout (S).
Advantage: Ideal for scalping (p1-p2) or swing trading (p4-p5). Benefit: High win rate in volatile markets.
Trend Following Strategy:
Rules: Hold long if ATR trend line is green (up) and MA1 > MA2. Strengthen entry with breakout B.
Filtering: Use only larger period breakouts (p3-p5) with ATR in slow mode.
Exit: Exit on ATR arrow down (reversal) or MA crossover.
Advantage: Captures long-term trends with low drawdown. Benefit: Suitable for passive trading, especially on weekly charts.
Pullback Strategy:
Rules: In an uptrend (green ATR line), enter long when price pulls back to the downtrend line (green pivot low line).
Filtering: No breakout, supported by MA (price above MA). Set stop using ATR deviation.
Exit: New high breakout or ATR reversal.
Advantage: Low-risk entries, captures trend continuations. Benefit: Effective in range-bound markets.
Multi-Timeframe Combination:
Rules: Match short-period (p1) breakouts with long-period (p5) trends (e.g., p5 up + p1 B = long).
Filtering: ATR in medium mode, MAs in golden cross (20>50).
Advantage: Reduces false signals, validates H4 breakouts with D1 trends. Benefit: Suitable for professional traders, with backtesting showing 60%+ win rates.
Risk and Optimization Tips:
Position Sizing: Calculate using ATR (stop-loss distance / 1% risk).
Backtesting: Test in strategy mode; short periods may overtrade, while longer ones may miss opportunities.
EMA Trend Regime Filter by JaeheeOverview
This indicator defines bullish/bearish regimes using a five-EMA stack and emits one signal per confirmed regime flip. Optional ATR gap gating and an ADX gate require structure and strength before a switch is confirmed. An optional, subtle center line improves readability. This is not a strategy and it does not execute trades.
Note: This tool is not the ATR-based Supertrend; it uses EMA stacking with ATR/ADX gating.
Why this combination (originality & value)
• EMA stacking provides a clear directional framework.
• ATR gap gating filters compressed/fragile stacks by requiring each adjacent EMA distance to exceed ATR × multiplier.
• A state machine limits signals to one per direction change, reducing alert fatigue.
• Confirm bars + ADX gate elevate the quality of regime recognition under directional pressure.
Together, these components interact to emphasize durable regime shifts while curbing noise typical of sideways phases.
How it works (concept)
EMA stack: Bullish when EMA1 > EMA2 > EMA3 > EMA4 > EMA5; bearish is the reverse.
ATR spacing (optional): When enabled, each EMA gap must exceed ATR × k to qualify for a flip.
Confirmation streak: Conditions must persist for confirmBars before a flip is validated.
Trend-strength gate: A flip is allowed only when ADX ≥ adxMin.
Flip & signal: On validation, a single marker/label is emitted; duplicates are suppressed.
Visual layer (optional): Subtle background/center line for context; visuals do not affect logic.
Why it’s useful
• Regime clarity: A binary bullish/bearish state reduces decision fatigue and aligns your playbook with market context.
• Counter-trend filter: In a bullish regime, counter-trend shorts are discouraged; in a bearish regime, counter-trend longs are discouraged—until the regime flips.
• Signal economy: One signal per confirmed flip helps avoid alert fatigue and over-trading.
• Volatility awareness: ATR gap gating filters compressed EMA stacks that often precede whipsaws.
• Strength confirmation: The ADX gate requires directional pressure before a switch is allowed.
Practical workflows (how it can be used)
• HTF compass (e.g., H4): Use a higher timeframe such as the 4-hour chart to set directional bias; execute on your lower timeframe with your own triggers and risk rules.
• Alignment rule: Trade in the direction of the active regime—prefer long setups during a bullish regime and short setups during a bearish regime—until a confirmed flip occurs.
• Pullback playbook: In a bullish regime, consider pullbacks to structure/MA confluence; in a bearish regime, consider rallies into resistance. Always size risk independently of the indicator.
• Parameter tuning: Adapt confirmBars, ATR × multiplier, and ADX minimum to the instrument’s volatility. Higher thresholds generally reduce noise but may delay flips.
• Alerts/automation: Set alerts on regime flips but confirm on bar close; intrabar values can update.
Context note (BTC, H4)
On higher timeframes such as the 4-hour chart, trends are often more stable. For BTC, the regime can help distinguish whether the broader market is trending up or down: when the H4 regime is bullish, favor long-side opportunities even if lower-timeframe candles retrace; when the regime turns bearish, favor short-side opportunities. This is context, not signals—entries/exits and risk management remain your responsibility.
Key inputs
• EMA lengths (1–5), Confirm Bars, Min Spacing by ATR
• ADX Length, ADX Minimum
• Visualization toggles (background opacity, center line, label/marker colors)
Alerts
• EMA REGIME LONG — fires once on a confirmed bullish regime
• EMA REGIME SHORT — fires once on a confirmed bearish regime
Notes & limitations
• Designed without future-bar references. Values can update intrabar, so confirm on close before acting on signals.
• This is an indicator for study purposes; it does not place trades.
• Parameters may require tuning across symbols/timeframes.
• Publish with a clean chart so the indicator’s output is clearly identifiable.
• Use on standard bar types (e.g., candles). Non-standard chart types can yield unrealistic behavior for signal logic.
ALMA & UT Bot Confluence StrategyALMA & UT Bot Confluence Strategy
This is a comprehensive trend-following and momentum strategy designed to identify high-probability trade setups by combining multiple layers of confirmation. It is built around an ALMA (Arnaud Legoux Moving Average) and a long-term EMA, and then enhances signal quality with the popular UT Bot indicator, a Volume Filter, and an adaptive hold mechanism.
The primary goal of this strategy is to filter out market noise, avoid low liquidity traps, and provide more robust and selective trading logic by adapting its timing to changing market volatility.
Key Features and How It Works
This strategy is not a simple crossover system. An entry signal is generated by the confluence of only a few conditions:
Underlying Trend and Signal Engine:
ALMA (Arnaud Legoux Moving Average): Provides a responsive, low-latency signal line for entries. EMA (Exponential Moving Average): A longer-term EMA acts as a primary trend filter, ensuring trades are executed only in line with the overall market trend.
Confirmation Layer:
UT Bot Confirmation: A trade is considered valid only when the UT Bot indicator provides a relevant buy or sell signal. This acts as a strong secondary confirmation, reducing false entries.
Advanced Filters for Signal Quality:
Volume Filter: This is an important safety mechanism that prevents trades from being executed in low-volume, illiquid markets where price action can be erratic and unreliable.
Momentum Filter (ADX and RSI): The strategy uses the ADX to check for sufficient market momentum and the RSI to ensure it doesn't enter overbought/oversold zones.
Volatility Filter (Bollinger Bands): This helps prevent entries when the price deviates too far from its average, preventing "buying at the top" or "selling at the bottom." Adaptive Timing (Dynamic Cool-Down):
Instead of a fixed waiting period between trades, this strategy uses a dynamic cooling-down period based on the ATR. It automatically waits longer during periods of high volatility (to prevent volatility) and becomes more responsive in calmer markets. How to Use This Strategy:
Long Entry (BUY): When all bullish conditions align, a green "BUY" triangle appears below the price.
Short Entry (SELL): When all bearish conditions align, a red "SELL" triangle appears above the price.
Trend Visualization: The chart background is color-coded according to UT Bot's trend direction (Green for an uptrend, Red for a downtrend), allowing for at-a-glance market analysis.
Double Exit Strategy Options
You have full control over how you exit trades:
Classic SL/TP: Use a standard Stop-Loss and Take-Profit order based on ATR (Average True Range) multipliers. UT Bot Trailing Stop (Recommended): A dynamic exit mechanism that follows the price allows your winning trades to catch up to larger trends while protecting your profits.
Disclaimer
This script is for educational purposes only and should not be construed as financial advice. Past performance is not indicative of future results. All trades involve risk. Before risking any capital, we strongly recommend extensively backtesting this strategy across your preferred assets and timeframes to understand its behavior and find settings that suit your personal trading style.
The author recommends using this strategy with Heikin-Ashi candlesticks. Using this method will significantly increase the strategy's trading success rate and profitability in backtests.
You should change the settings according to your preferred chart time range. You can find the best value for you by observing the value changes you make on the chart.
JJ Thursday Expiry Highlighter - NiftyThursday Expiry Highlighter
This indicator shades the background of all Thursday trading sessions on your chart — ideal for Nifty, Bank Nifty, and other Indian markets where the weekly options expiry typically occurs on Thursdays.
Features:
Highlights entire Thursday columns on any timeframe (intraday or daily).
Adjustable highlight color and transparency for maximum visibility without obscuring candles.
Makes expiry days stand out for quick recognition in both live trading and historical analysis.
Use Cases:
Quickly identify weekly option expiry days for planning.
Visually backtest expiry-day patterns or volatility setups.
Combine with other indicators for expiry-specific strategies.
Disclaimer:
This tool is for educational and informational purposes only. It does not provide financial advice and should not be relied upon as a sole basis for making investment decisions. Market conditions can change, and there is no guarantee of accuracy. Always do your own research and consult a licensed financial professional before trading or investing.
LevelUp^ Up On Volume ScreenerThe Up On Volume Screener is a powerful scanner designed to identify stocks exhibiting strong bullish momentum, characterized by a higher close on the day or week accompanied by a significant spike in trading volume compared to the average. This screener allows traders to customize parameters such as moving average lengths, closing range requirements, and proximity to 52-week highs using multiples of the ATR (average true range).
By pinpointing stocks with robust buying pressure and high volume, the Up On Volume screener helps traders uncover potential breakout opportunities, early trend leaders, and stocks demonstrating relative strength, making it an essential tool for momentum, swing, and growth trading strategies.
🔹 Why Search For Up On Volume?
▪ Confirmation of Bullish Momentum: Stocks that close higher on the day/week signal buying pressure and bullish sentiment throughout the session. This helps traders and investors identify names that are attracting demand, possibly due to news, earnings, or sector strength.
▪ Volume Adds Conviction: When a stock closes up with increased volume, it suggests strong participation behind the move — not just a “head fake” or a thinly traded rally. High volume confirms that institutional players or multiple market participants are involved, which often leads to more reliable price trends.
▪ Early Stage Moves: Daily breakouts can often mark the beginning of a larger trend. Catching stocks on days they close up helps pinpoint emerging leaders and stocks transitioning from accumulation to bullish phases.
▪ Technical Strength: A bullish close (especially in the top half of the day’s price range) is a technical sign of demand. This is a favored criterion in many technical analysis strategies for swing trading, momentum trading, and even fundamental breakouts.
🔹 When Is Up On Volume Screen Most Helpful?
▪ After Market Close: Stocks that show strength and close up on high volume often show continued follow-through in the coming days/weeks.
▪ After Major News/Events: When stocks respond positively to news releases, earnings, or sector movements, searching for those that close up can help you catch momentum before it’s widely recognized.
▪ Trend Days: On days when the market is trending (not sideways or choppy), screening for stocks closing up helps you align with the strongest moves and avoid false signals.
▪ Early in Bullish Cycles: Searching for stocks closing up during the early stage of a market rally or sector rotation can help growth traders get in ahead of sustained upward moves.a
▪ Relative Strength Signals True Leadership: When most stocks decline in a weak market, those that hold firm or rise are showing clear relative strength. This means buyers are stepping in even when the broader mood is negative, often signaling institutional accumulation — these are the names likely to become tomorrow’s winners.
▪ Early Clues to New Cycles: Throughout history, the biggest winners in bull markets often began their runs during corrections and bear phases, not after the headlines turn positive. By focusing on stocks that close green on red days, you’re hunting for companies quietly building buying pressure, poised to break out when the tide turns.
▪ Faster Recoveries and Outperformance: Stocks that resist declines tend to rebound earlier and outpace the broader market once conditions improve. These resilient names frequently end up delivering outsized returns, often leading sector rallies or driving new market themes.
🔹 Screening Features - Setting Your Search Criteria
There are various search options that can be customized.
✓ Volume Gap Up %: Minimum volume percent change over the average volume.
✓ Moving Average: Set length for average volume calculations on daily and weekly timeframes.
✓ Closing Range %: Specify the preferred closing range on the day or week.
✓ Price With X ATR of 52-Week High: Filter for stocks within X ATRs of their 52-week highs.
🔹 Installation And Usage
▪ Mark this indicator as a Favorite.
▪ Use the Pine Screener to search for stocks.
▪ Save the search results to a watchlist.
▪ View the watchlist in TradingView.
🔹 Note
Some high-volume breakout scans rely on proprietary formulas. With this screener, every filter can be researched and verified - no black box! The only variables are price, volume % change, closing range and price within a specified ATR of the 52-week high.
ML Compressor Enhanced Trading Indicator# 🤖 ML Enhanced Trading Indicator - Advanced Market Analysis
## 📊 Overview
This is a comprehensive Machine Learning Enhanced Trading Indicator that combines multiple advanced analytical techniques to provide high-probability trading signals. The indicator uses artificial intelligence, pattern recognition, anomaly detection, and traditional technical analysis to identify optimal entry and exit points in the market.
## 🚀 Key Features
### 🧠 **Machine Learning Core**
- **Advanced Pattern Recognition**: Uses cosine similarity, Pearson correlation, and Spearman rank correlation to identify historical patterns
- **AI-Powered Predictions**: Implements multiple correlation methods to forecast price movements
- **Anomaly Detection**: Z-score based detection system for unusual market activities
- **Signal Confidence Scoring**: Reliability assessment for each trading signal
### 📈 **Technical Analysis Integration**
- **Multi-Timeframe RSI Analysis**: 14 and 21-period RSI with oversold/overbought detection
- **MACD Momentum**: Enhanced MACD histogram analysis for trend confirmation
- **Bollinger Bands Position**: Dynamic position tracking within BB channels
- **Volume Analysis**: Spike and dry volume detection with ratio calculations
- **Trend Strength Measurement**: EMA-based trend power analysis
### 🎯 **Perfect Zone Detection**
- **Ideal Buy Zone**: Identifies perfect buying opportunities when 7 conditions align:
- ML Score ≥ 0.60
- Bottom proximity detection
- RSI in 20-35 range
- Volume spike confirmation
- Positive price anomaly
- Bullish pattern match
- Positive MACD momentum
### 📊 **Comprehensive Display Table**
- **Real-time ML Analysis**: Complete breakdown of all indicators
- **Perfect Buy Conditions Tracker**: Visual checklist with completion percentage
- **Performance Metrics**: Win rate tracking and P&L analysis
- **Signal Strength Indicators**: Confidence levels for each signal
## 🔧 **Customizable Parameters**
### **ML Settings**
- **ML Lookback Period**: 20-500 bars (default: 100)
- **Anomaly Threshold**: 1.0-5.0 sensitivity (default: 2.0)
- **Pattern Similarity**: 0.5-0.99 matching threshold (default: 0.80)
- **AI Lookback Period**: 20-200 bars (default: 50)
### **AI Prediction Models**
- **Correlation Methods**: Spearman, Pearson, Cosine Similarity
- **Forecast Length**: 15-250 bars (default: 50)
- **Similarity Type**: Price or %Change analysis
### **Visual Options**
- **Table Position**: Top/Bottom Left/Right positioning
- **Table Size**: Small, Normal, Large options
- **Signal Display**: Toggle buy/sell signals on/off
- **AI Visualization**: Optional prediction paths and ZigZag
## 📋 **How to Use**
### **For Beginners**
1. Add the indicator to your chart
2. Look for "PERFECT BUY" signals in the table
3. Wait for completion percentage ≥ 85% for highest probability trades
4. Use the background color changes as visual confirmation
### **For Advanced Traders**
1. Analyze individual ML components in the detailed table
2. Monitor anomaly detection for unusual market conditions
3. Use pattern confidence levels for trade timing
4. Combine with your existing strategy for confirmation
### **Signal Interpretation**
- **🟢 PERFECT BUY**: All 7 conditions met - highest probability reversal
- **🟡 NEAR BOTTOM**: Close to ideal conditions - monitor closely
- **🔴 NOT READY**: Wait for better setup
- **Strong Buy/Sell Signals**: ML score-based entries with high confidence
## ⚠️ **Important Notes**
### **Risk Management**
- This indicator provides analysis and signals, not guaranteed outcomes
- Always use proper risk management and position sizing
- Consider market conditions and fundamental factors
- Backtest the strategy on your preferred timeframes and assets
### **Best Practices**
- Use multiple timeframe analysis for confirmation
- Combine with support/resistance levels
- Monitor volume confirmation for all signals
- Set appropriate stop-losses and profit targets
### **Performance Tracking**
- The indicator tracks its own performance with win rate calculations
- Monitor the "AI Prediction" accuracy percentage
- Use the P&L tracking to assess signal quality over time
## 🔄 **Updates and Improvements**
This indicator is continuously evolving with:
- Enhanced machine learning algorithms
- Improved pattern recognition capabilities
- Additional correlation methods for better accuracy
- Performance optimization for faster calculations
- New visualization features based on user feedback
## 📚 **Technical Details**
### **Machine Learning Implementation**
- **Pattern Matching**: 20-bar normalized price patterns with historical comparison
- **Correlation Analysis**: Mathematical similarity scoring between current and historical patterns
- **Anomaly Detection**: Statistical Z-score analysis across price, volume, and RSI
- **Signal Weighting**: Multi-factor scoring system with optimized weights
### **Algorithm Components**
1. **Feature Extraction**: Price, volume, momentum, volatility, and trend features
2. **Pattern Recognition**: Historical pattern database with similarity matching
3. **Anomaly Detection**: Multi-dimensional Z-score threshold analysis
4. **Signal Generation**: Weighted scoring system with confidence intervals
5. **Performance Tracking**: Real-time win rate and accuracy monitoring
### **Calculation Methods**
- **Trend Strength**: (EMA8 - EMA21) / EMA21 * 100
- **Volume Ratio**: Current Volume / 20-period SMA Volume
- **BB Position**: (Close - BB_Lower) / (BB_Upper - BB_Lower)
- **Anomaly Score**: Average of normalized Z-scores for price, volume, and RSI
## 🎨 **Visual Elements**
### **Background Colors**
- **Light Green**: Perfect buy zone detected
- **Light Red**: Perfect sell zone detected
- **Light Blue**: Near bottom proximity
- **Green/Red Transparency**: Price anomaly detection
### **Signal Shapes**
- **Green Triangle Up**: Strong buy signal
- **Red Triangle Down**: Strong sell signal
- **Aqua Diamond**: Perfect buy zone entry
- **Purple Diamond**: Perfect sell zone entry
### **Table Information**
- **ML Complete Analysis**: 16 comprehensive metrics
- **Perfect Buy Conditions**: 7-point checklist with status indicators
- **Real-time Values**: Live updating of all calculations
- **Color-coded Status**: Green (good), Yellow (moderate), Red (caution)
## 🔍 **Troubleshooting**
### **Common Issues**
- **Table Not Showing**: Enable "Show ML Table" in settings
- **No Signals Appearing**: Check "Show Buy/Sell Signals" option
- **Performance Issues**: Reduce ML Lookback Period for faster calculation
- **Too Many/Few Signals**: Adjust Anomaly Threshold sensitivity
### **Optimization Tips**
- **For Day Trading**: Use lower timeframes (1m, 5m, 15m) with reduced lookback periods
- **For Swing Trading**: Use higher timeframes (1h, 4h, 1D) with standard settings
- **For Scalping**: Enable only strong signals and reduce pattern similarity threshold
- **For Long-term**: Increase all lookback periods and use daily/weekly timeframes
## 📖 **Disclaimer**
This indicator is for educational and informational purposes only. It should not be considered as financial advice. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results.
### **Risk Warning**
- All trading involves risk of substantial losses
- Never risk more than you can afford to lose
- This indicator does not guarantee profitable trades
- Always use proper risk management techniques
- Consider consulting with a financial advisor
### **Liability**
The creator of this indicator is not responsible for any losses incurred from its use. Users should thoroughly test and understand the indicator before using it with real money.
### **Feature Requests**
- Suggest improvements through TradingView comments
- Report bugs with detailed descriptions
- Share successful strategies using the indicator
- Contribute to community discussions
## 🏆 **Credits and Acknowledgments**
This indicator builds upon various open-source libraries and mathematical concepts:
- TradingView ZigZag library for visualization
- Statistical correlation methods from academic research
- Machine learning concepts adapted for financial markets
- Community feedback and testing contributions
## 📈 **Performance Metrics**
The indicator includes built-in performance tracking:
- **Win Rate Calculation**: Percentage of profitable signals
- **Signal Accuracy**: ML prediction vs actual price movement
- **Drawdown Tracking**: Current unrealized P&L from last signal
- **Completion Percentage**: How many perfect conditions are met
## 🔬 **Mathematical Foundation**
### **Correlation Calculations**
- **Pearson**: Measures linear correlation between patterns
- **Spearman**: Rank-based correlation for non-linear relationships
- **Cosine Similarity**: Vector-based similarity for pattern matching
### **Statistical Methods**
- **Z-Score**: (Value - Mean) / Standard Deviation
- **Pattern Normalization**: Price / Price
- **Volatility Percentile**: Historical ranking of current volatility
- **Momentum Calculation**: Price change over multiple periods
## 🎯 **Trading Strategies**
### **Conservative Approach**
- Wait for Perfect Buy Zone (85%+ completion)
- Use higher timeframes for confirmation
- Set stop-loss at recent swing low
- Take profits at resistance levels
### **Aggressive Approach**
- Trade on Strong Buy/Sell signals
- Use lower completion thresholds (70%+)
- Tighter stop-losses with faster exits
- Higher position sizes with confirmed trends
### **Hybrid Strategy**
- Combine with other indicators for confirmation
- Use different settings for different market conditions
- Scale in/out based on signal strength
- Adjust parameters based on market volatility
Squeeze Momentum Regression Clouds [SciQua]╭──────────────────────────────────────────────╮
☁️ Squeeze Momentum Regression Clouds
╰──────────────────────────────────────────────╯
🔍 Overview
The Squeeze Momentum Regression Clouds (SMRC) indicator is a powerful visual tool for identifying price compression , trend strength , and slope momentum using multiple layers of linear regression Clouds. Designed to extend the classic squeeze framework, this indicator captures the behavior of price through dynamic slope detection, percentile-based spread analytics, and an optional UI for trend inspection — across up to four customizable regression Clouds .
────────────────────────────────────────────────────────────
╭────────────────╮
⚙️ Core Features
╰────────────────╯
Up to 4 Regression Clouds – Each Cloud is created from a top and bottom linear regression line over a configurable lookback window.
Slope Detection Engine – Identifies whether each band is rising, falling, or flat based on slope-to-ATR thresholds.
Spread Compression Heatmap – Highlights compressed zones using yellow intensity, derived from historical spread analysis.
Composite Trend Scoring – Aggregates directional signals from each Cloud using your chosen weighting model.
Color-Coded Candles – Optional candle coloring reflects the real-time composite score.
UI Table – A toggleable info table shows slopes, compression levels, percentile ranks, and direction scores for each Cloud.
Gradient Cloud Styling – Apply gradient coloring from Cloud 1 to Cloud 4 for visual slope intensity.
Weight Aggregation Options – Use equal weighting, inverse-length weighting, or max pooling across Clouds to determine composite trend strength.
────────────────────────────────────────────────────────────
╭──────────────────────────────────────────╮
🧪 How to Use the Indicator
1. Understand Trend Bias with Cloud Colors
╰──────────────────────────────────────────╯
Each Cloud changes color based on its current slope:
Green indicates a rising trend.
Red indicates a falling trend.
Gray indicates a flat slope — often seen during chop or transitions.
Cloud 1 typically reflects short-term structure, while Cloud 4 represents long-term directional bias. Watch for multi-Cloud alignment — when all Clouds are green or red, the trend is strong. Divergence among Clouds often signals a potential shift.
────────────────────────────────────────────────────────────
╭───────────────────────────────────────────────╮
2. Use Compression Heat to Anticipate Breakouts
╰───────────────────────────────────────────────╯
The space between each Cloud’s top and bottom regression lines is measured, normalized, and analyzed over time. When this spread tightens relative to its history, the script highlights the band with a yellow compression glow .
This visual cue helps identify squeeze zones before volatility expands. If you see compression paired with a changing slope color (e.g., gray to green), this may indicate an impending breakout.
────────────────────────────────────────────────────────────
╭─────────────────────────────────╮
3. Leverage the Optional Table UI
╰─────────────────────────────────╯
The indicator includes a dynamic, floating table that displays real-time metrics per Cloud. These include:
Slope direction and value , with historical Min/Max reference.
Top and Bottom percentile ranks , showing how price sits within the Cloud range.
Current spread width , compared to its historical norms.
Composite score , which blends trend, slope, and compression for that Cloud.
You can customize the table’s position, theme, transparency, and whether to show a combined summary score in the header.
────────────────────────────────────────────────────────────
╭─────────────────────────────────────────────╮
4. Analyze Candle Color for Composite Signals
╰─────────────────────────────────────────────╯
When enabled, the indicator colors candles based on a weighted composite score. This score factors in:
The signed slope of each Cloud (up, down, or flat)
The percentile pressure from the top and bottom bands
The degree of spread compression
Expect green candles in bullish trend phases, red candles during bearish regimes, and gray candles in mixed or low-conviction zones.
Candle coloring provides a visual shorthand for market conditions , useful for intraday scanning or historical backtesting.
────────────────────────────────────────────────────────────
╭────────────────────────╮
🧰 Configuration Guidance
╰────────────────────────╯
To tailor the indicator to your strategy:
Use Cloud lengths like 21, 34, 55, and 89 for a balanced multi-timeframe view.
Adjust the slope threshold (default 0.05) to control how sensitive the trend coloring is.
Set the spread floor (e.g., 0.15) to tune when compression is detected and visualized.
Choose your weighting style : Inverse Length (favor faster bands), Equal, or Max Pooling (most aggressive).
Set composite weights to emphasize trend slope, percentile bias, or compression—depending on your market edge.
────────────────────────────────────────────────────────────
╭────────────────╮
✅ Best Practices
╰────────────────╯
Use aligned Cloud colors across all bands to confirm trend conviction.
Combine slope direction with compression glow for early breakout entry setups.
In choppy markets, watch for Clouds 1 and 2 turning flat while Clouds 3 and 4 remain directional — a sign of potential trend exhaustion or consolidation.
Keep the table enabled during backtesting to manually evaluate how each Cloud behaved during price turns and consolidations.
────────────────────────────────────────────────────────────
╭───────────────────────╮
📌 License & Usage Terms
╰───────────────────────╯
This script is provided under the Creative Commons Attribution-NonCommercial 4.0 International License .
✅ You are allowed to:
Use this script for personal or educational purposes
Study, learn, and adapt it for your own non-commercial strategies
❌ You are not allowed to:
Resell or redistribute the script without permission
Use it inside any paid product or service
Republish without giving clear attribution to the original author
For commercial licensing , private customization, or collaborations, please contact Joshua Danford directly.
Fundur - Trend LinesFundur - Trend Lines: Complete Trading Indicator Guide
Indicator Overview
The Fundur - Trend Lines is an advanced multi-layered trend analysis system that combines adaptive trend line technology, momentum analysis, and intelligent signal generation into one comprehensive trading tool. This indicator goes beyond traditional moving averages by utilizing volatility-adjusted trend lines that dynamically adapt to market conditions, providing traders with precise trend strength measurements and actionable trading signals.
What Makes Trend Lines Unique?
The Trend Lines indicator introduces Adaptive Trend Line Technology - a sophisticated methodology that uses Average True Range (ATR) calculations to create trend lines that respond intelligently to market volatility. Unlike static indicators, Trend Lines provides dynamic analysis that adapts its sensitivity based on current market conditions, offering more accurate trend identification and strength assessment.
Core Methodology
The indicator operates on the principle that trend strength can be quantified by analyzing the relationship between multiple adaptive trend lines, momentum indicators, and market structure. By combining Alignment Analysis , Distance Measurements , Momentum Confirmation , and Volatility Expansion Potential , the system generates a comprehensive trend strength score from 0-100% with corresponding trading signals.
Key Features
🎯 Adaptive Trend Line System Slow Trend Line : Primary trend direction with lower sensitivity for major trend identification Fast Trend Line : Higher sensitivity trend line for early trend change detection Volatility Adaptation : Both lines automatically adjust to market volatility using ATR calculations Cloud Visualization : Colored areas between trend lines show trend strength and direction
📊 Comprehensive Trend Strength Analysis Quantified Strength (0-100%) : Precise trend strength measurement combining multiple factors Alignment Score : Measures agreement between multiple trend line systems Distance Analysis : Evaluates price proximity to trend lines using ATR normalization Momentum Integration : Incorporates Awesome Oscillator for momentum confirmation Squeeze Factor : Identifies volatility expansion potential for breakout opportunities
🧠 Intelligent Signal Generation Position Signals : Clear ADD LONG, ADD SHORT, REDUCE, HOLD recommendations Risk Zone Classification : STRONG, MEDIUM, WEAK trend categorization Trend Direction : Bullish, Bearish, or Neutral trend identification Dynamic Updates : Real-time signal adjustments based on changing conditions
⚡ Enhanced Momentum Analysis Smoothed Momentum : Configurable momentum smoothing to reduce noise Acceleration Detection : Identifies momentum acceleration and deceleration Divergence Alerts : Detects price-momentum divergences for reversal warnings Directional Bias : Momentum confirmation for trend direction validation
🔍 Advanced Market Structure Detection Momentum Squeeze : Identifies low-volatility periods preceding major moves Volatility Expansion : Detects when markets break out of consolidation phases Trend Weakness Detection : Early warning system for deteriorating trends Structure Transition : Identifies when trends change character or direction
🎨 Professional Visual Interface Comprehensive Analysis Table : All key metrics displayed in organized format Visual Strength Bar : Graphical representation of trend strength Color-Coded Components : Intuitive color scheme for quick analysis Customizable Display : Flexible positioning and sizing options
Setup Guide
Step 1: Adding the Indicator
Open TradingView and navigate to your desired chart Click the "Indicators" button or press "/" key Search for "Fundur - Trend Lines" Add the indicator to your chart
Step 2: Basic Configuration
Main Features Settings ✅ Show Trend Analysis Table : ON (Essential for comprehensive analysis) ✅ Enable Trend Strength Analysis : ON (Core functionality) ✅ Generate Trading Signals : ON (For position management guidance)
Trend Lines Display ✅ Show Slow Trend Line : ON (Primary trend identification) ✅ Show Fast Trend Line : ON (Early signal detection) Trend Cloud Transparency : 89% (Default recommended, adjust for visibility)
Table Positioning Table Position : Top Right (recommended for most setups) Table Size : Normal (adjust based on screen size)
Step 3: Advanced Analysis Configuration
Enhanced Features (Optional) ✅ Enhanced Momentum Analysis : ON (for more accurate signals) ✅ Divergence Detection : ON (for reversal warnings) ⚠️ Momentum Squeeze Analysis : OFF initially (can add visual complexity)
Sensitivity Settings Divergence Sensitivity : 5 (Default - lower = more sensitive) Momentum Smoothing : 3 (Default - higher = smoother signals)
Step 4: Alert Configuration
Essential Alerts (Recommended) Trading Signal Alerts : Enable for position changes Trend Strength Change Alerts : Enable for trend monitoring Strength Change Threshold : 15% (Default recommended)
Advanced Alerts (Optional) Divergence Alerts : Enable for reversal warnings Early Weakness Alerts : Enable for risk management Momentum Squeeze Alerts : Enable for breakout opportunities Trend Line Cross Alerts : Enable for level-based signals
Basic Trading Guide
Understanding Trend Strength
The indicator's foundation is the Trend Strength Score - a quantified measurement (0-100%) that combines four key factors:
Strong Trends (75%+ Strength) 🟢 Characteristics : High alignment, close price-to-trend proximity, strong momentum Signals : ADD LONG (bullish) or ADD SHORT (bearish) Strategy : Aggressive position building, trend continuation trades Risk : Lower risk due to strong trend confirmation
Medium Trends (35-75% Strength) 🟡 Characteristics : Mixed signals, moderate alignment, transitional phases Signals : HOLD current positions Strategy : Conservative approach, wait for clearer signals Risk : Medium risk, requires careful monitoring
Weak Trends (Below 35% Strength) 🔴 Characteristics : Poor alignment, distant from trend lines, weak momentum Signals : REDUCE positions or CLOSE Strategy : Risk reduction, position unwinding Risk : High risk, trend likely changing or failing
Entry Strategies
Primary Strategy: Trend Continuation Entries Setup : Strong trend strength (75%+) with clear directional bias Entry Trigger : ADD LONG or ADD SHORT signal confirmation Direction : Follow the trend direction (Bullish ⬆ or Bearish ⬇) Timing : Enter on signal generation or price pullback to trend lines
Stop Loss Placement Conservative Method : Beyond the opposite trend line Aggressive Method : Below/above recent swing points For Long Positions : Below the Slow Trend Line For Short Positions : Above the Slow Trend Line Dynamic Adjustment : Move stops with trend line progression
Profit Taking Strategy
For Long Positions (Bullish Trend): Take 50% profits when trend strength begins declining from peak Take another 25% when trend strength drops below 60% Close remaining position when REDUCE signal appears Trail stops using Fast Trend Line for remaining position
For Short Positions (Bearish Trend): Take 50% profits when trend strength begins declining from peak Take another 25% when trend strength drops below 60% Close remaining position when REDUCE signal appears Trail stops using Fast Trend Line for remaining position
Alternative Strategy: Divergence-Based Reversal Entries Setup : Bullish or bearish divergence detected with weakening trend strength Entry : On trend direction change confirmation Risk Management : Tight stops due to counter-trend nature Targets : Opposite trend line or previous swing levels
Risk Management Framework
Position Sizing Based on Trend Strength Strong Trends (75%+) : Full position size (within risk tolerance) Medium Trends (35-75%) : Reduced position size (50-75% of normal) Weak Trends (Below 35%) : Minimal or no new positions Transitional Periods : Smallest position sizes due to uncertainty
Dynamic Risk Adjustment Increasing Strength : Can add to positions gradually Decreasing Strength : Begin profit-taking and position reduction Rapid Strength Loss : Quick position reduction or exit Divergence Warning : Tighten stops and prepare for reversal
Analysis Setups
Setup 1: Scalping Configuration (1-5 minute charts)
Settings Optimization: Momentum Smoothing: 2 (more responsive) Divergence Sensitivity: 3 (higher sensitivity) Enhanced Momentum Analysis: ON All alerts: ON for rapid signal updates
Visual Settings: Table Size: Small (less screen space) Table Position: Top Right Trend Cloud Transparency: 85% (subtle background)
Trading Approach: Focus on quick ADD signals in strong trends Use Fast Trend Line for entry timing Quick profit-taking at first sign of strength decline Very tight risk management due to lower timeframe noise
Setup 2: Day Trading Configuration (5-15 minute charts)
Settings Optimization: All default settings work well Enable Momentum Squeeze Analysis for breakout identification Divergence Detection: ON for reversal warnings Trend Strength Change Threshold: 12% (more sensitive)
Visual Settings: Table Size: Normal Show all trend analysis components Trend Cloud Transparency: 89% (default)
Trading Approach: Wait for clear trend strength above 65% before entering Use momentum squeeze breakouts for early entries Hold positions through medium strength phases Exit on REDUCE signals or strength below 40%
Setup 3: Swing Trading Configuration (1-4 hour charts)
Settings Optimization: Momentum Smoothing: 4 (smoother for higher timeframe) Divergence Sensitivity: 7 (less sensitive, higher quality signals) Enhanced Momentum Analysis: ON Early Weakness Alerts: ON (important for swing trades)
Visual Settings: Table Size: Normal or Large Focus on trend strength and direction components Enable all visual features for comprehensive analysis
Trading Approach: Require trend strength above 70% for new positions Hold through temporary strength dips if above 50% Use divergence signals for early exit warnings Focus on major trend changes for position adjustments
Setup 4: Position Trading Configuration (4H-Daily charts)
Settings Optimization: Momentum Smoothing: 5 (maximum smoothing) Divergence Sensitivity: 10 (only high-quality divergences) Strength Change Threshold: 20% (major changes only) Focus on trend direction and strength alerts
Visual Settings: Table Size: Large (detailed analysis) Clean visual setup focusing on major components Minimal clutter for long-term perspective
Trading Approach: Only enter on very strong trends (80%+ strength) Hold through significant strength fluctuations Focus on major trend direction changes Use weekly/monthly trend alignment for confirmation
Setup 5: Multi-Asset Analysis Configuration
For Forex Pairs: Standard settings work well due to 24-hour markets Pay attention to session-based strength changes Use momentum squeeze for breakout trading Enable all alert types for continuous monitoring
For Cryptocurrency: Reduce momentum smoothing (2-3) due to high volatility Increase divergence sensitivity (3-4) for early warnings Focus on strength changes above 20% threshold Use squeeze analysis for breakout opportunities
For Stock Indices: Standard settings appropriate for most indices Enable early weakness alerts for risk management Consider market hours for signal validity Use higher timeframes for better signal quality
Visual Components
Trend Analysis Table Trend Strength : Percentage with visual strength bar Trend Signal : Current position recommendation Risk Zone : STRONG/MEDIUM/WEAK classification Alignment : Trend line agreement analysis Distance : Price proximity to trend lines Momentum : Current momentum direction and strength
Trend Lines and Clouds Colored Clouds : Green for bullish trends, red for bearish trends Cloud Intensity : Opacity reflects trend strength Dynamic Colors : Automatically adjust based on trend direction
Momentum Squeeze Visualization Yellow Highlights : Above and below price during squeeze periods Squeeze Indication : Identifies low-volatility consolidation Breakout Preparation : Visual cue for potential explosive moves
Alert System
Trading Signal Alerts ADD LONG : Strong bullish trend confirmed ADD SHORT : Strong bearish trend confirmed REDUCE : Trend weakness detected, position reduction recommended HOLD : Maintain current positions, no change needed
Trend Analysis Alerts Strength Increase : Trend gaining momentum Strength Decrease : Trend losing momentum Early Weakness : Warning of potential trend deterioration Trend Direction Change : Major trend shift detected
Technical Alerts Bullish Divergence : Price falling but momentum rising Bearish Divergence : Price rising but momentum falling Momentum Squeeze Start : Volatility contraction beginning Momentum Squeeze End : Breakout from low volatility period Trend Line Cross : Price crossing above/below trend lines
Setting Up Alerts Enable desired alert types in indicator settings Create TradingView alerts using "Fundur - Trend Lines" as source Configure notification methods (email, SMS, app notifications) Test alerts with paper trading before live implementation Adjust alert frequency settings to avoid spam
Best Practices
Trend Strength Interpretation Above 75% : High confidence trades, full position sizes 50-75% : Moderate confidence, reduced positions Below 50% : Low confidence, minimal or no positions Rapid Changes : Pay attention to sudden strength shifts
Signal Management Don't Chase : Wait for clear signals rather than predicting Confirm with Price Action : Use chart patterns for additional confirmation Respect Risk Zones : Adjust position sizes based on trend classification Monitor Alignment : Strong alignment increases signal reliability
Multi-Timeframe Integration Higher Timeframe Bias : Use daily/weekly for overall trend direction Lower Timeframe Entries : Use hourly/15min for precise entry timing Confirmation Requirement : Ensure alignment between timeframes Conflict Resolution : Higher timeframe takes precedence
Common Mistakes to Avoid
Signal Misinterpretation Ignoring Trend Strength : Don't trade weak signals (below 60%) Fighting the Trend : Don't go against strong trend directions Overreliance on Single Component : Consider all analysis factors Impatience : Wait for clear STRONG trend classification
Risk Management Errors Fixed Position Sizes : Adjust sizes based on trend strength Ignoring REDUCE Signals : Take profits when indicator suggests No Stop Losses : Always use stops beyond trend lines Overleveraging Weak Signals : Use smaller positions in MEDIUM zones
Technical Analysis Errors Ignoring Divergences : Pay attention to momentum warnings Missing Squeeze Opportunities : Watch for breakout setups Poor Timeframe Selection : Match timeframe to trading style Alert Fatigue : Don't enable too many alerts simultaneously
Advanced Techniques
Divergence Trading Early Reversal Detection : Use divergences to anticipate trend changes Confirmation Required : Wait for trend strength decline confirmation Tight Risk Management : Use smaller positions for counter-trend trades Quick Exits : Take profits rapidly on divergence trades
Momentum Squeeze Strategies Breakout Preparation : Position before squeeze resolution Direction Bias : Use trend direction for breakout direction Volume Confirmation : Combine with volume analysis when possible False Breakout Protection : Use tight stops for failed breakouts
Multi-Component Analysis Alignment Priority : Perfect alignment (100%) provides highest confidence Distance Consideration : Closer to trend lines = higher probability Momentum Confirmation : Rising momentum supports trend direction Squeeze Integration : High squeeze factor increases breakout potential
Dynamic Position Management Scaling In : Add to positions as trend strength increases Scaling Out : Reduce positions as trend strength decreases Stop Trailing : Move stops with Fast Trend Line progression Profit Optimization : Use strength peaks for profit-taking timing
Conclusion
The Fundur - Trend Lines indicator represents a sophisticated approach to trend analysis, combining adaptive trend line technology with comprehensive strength measurement and intelligent signal generation. By quantifying trend strength through multiple analytical components, this indicator provides traders with objective, data-driven insights for making informed trading decisions.
The indicator's strength lies in its ability to adapt to changing market conditions while providing clear, actionable signals. The comprehensive trend strength analysis removes guesswork from trend trading, allowing traders to size positions appropriately and manage risk effectively based on quantified market conditions.
Success with the Trend Lines indicator comes from understanding that trend strength is dynamic and requires continuous monitoring. The 0-100% strength scale provides an objective framework for position management, while the multi-component analysis ensures robust signal generation across different market conditions.
Remember that this indicator works best when combined with proper risk management, position sizing, and market context awareness. Start with conservative settings and smaller position sizes while learning the indicator's behavior in different market environments. The comprehensive alert system helps maintain awareness of changing conditions, but successful trading still requires discipline and adherence to your trading plan.
For optimal results, practice with the indicator across different timeframes and market conditions, always prioritizing risk management over profit potential, and maintaining realistic expectations about market behavior and indicator performance.
Smooth Cloud + RSI Liquidity Spectrum + Zig Zag Volume ProfileSmooth Cloud + RSI Liquidity Spectrum + Zig Zag++ Volume Profile" Indicator
| Advanced Trend & Liquidity Analysis.
---
📌 Key Features & Enhancements (Zig Zag++)
This advanced indicator combines **trend-following moving averages, RSI momentum with liquidity factors, and an improved Zig Zag++ algorithm with volume profiling** for precise swing detection.
🔹 Zig Zag++ Upgrades:
✅ **Dynamic Reversal Detection** – Adapts to volatility using percentage-based pivots.
✅ **Volume-Weighted Swing Points** – Highlights high-liquidity turning points.
✅ **Multi-Timeframe Confirmation** – Uses historical pivots for stronger signals.
✅ **Volume Profile Clustering** – Reveals key support/resistance zones based on traded volume.
---
📊 Indicator Components Breakdown
1️⃣ Smooth Cloud (Trend Filter)
- **Fast MA (20-period) & Slow MA (50-period)** – Configurable as EMA, SMA, or WMA.
- **Cloud Coloring** – Green when fast MA > slow MA (bullish), red otherwise (bearish).
- **Purpose**: Acts as a trend filter—only take trades in the direction of the cloud.
2️⃣ RSI Liquidity Spectrum (Momentum + Volume)
- **RSI (14-period default)** – Standard momentum oscillator.
- **Liquidity-Adjusted Momentum** = `(RSI + ROC(RSI,3)) * (Volume / SMA(Volume, RSI Length))`
- **Purpose**: Identifies overbought/oversold conditions with volume confirmation (high volume = stronger signal).
3️⃣ Zig Zag++ (Swing Detection & Volume Profiling)
📈 Zig Zag Logic:**
- **Percentage-Based Reversals** (default: 5%) – Only plots swings exceeding this threshold.
- **Pivot Tracking** – Stores price & bar index of each swing point in arrays.
- **Dynamic Line Drawing** – Connects swing points with yellow trendlines.
📊 Volume Profile at Swings:
- **Lookback Period** (200 bars default) – Analyzes volume distribution between Zig Zag turns.
- **10-Price Bin Clustering** – Splits the price range into 10 levels and calculates traded volume at each.
- **Transparency Scaling** – Higher volume zones appear darker (stronger support/resistance).
---
🎯 Step-by-Step Trading Strategies
📈 Strategy 1: Trend-Following with RSI Liquidity Confirmation**
1. **Enter Long** when:
- Smooth Cloud is **green** (fast MA > slow MA).
- RSI Liquidity Momentum crosses above **30** (bullish momentum + volume).
- Price pulls back to the **Volume Profile high-volume zone** (demand area).
2. **Enter Short** when:
- Smooth Cloud is **red** (fast MA < slow MA).
- RSI Liquidity Momentum crosses below **70** (bearish momentum + volume).
- Price rallies into the **Volume Profile high-volume zone** (supply area).
3. **Exit** when:
- Zig Zag++ detects a new reversal (5% move against position).
- RSI Liquidity Momentum crosses back mid-level (50).
---
📉 Strategy 2: Swing Trading with Zig Zag++ Pivots**
1. **Buy at Swing Lows** when:
- Zig Zag++ prints a **higher low** (bullish structure).
- Volume Profile shows **strong absorption** (high volume at the low).
- RSI Liquidity Momentum is rising from oversold (<30).
2. **Sell at Swing Highs** when:
- Zig Zag++ prints a **lower high** (bearish structure).
- Volume Profile shows **distribution** (high volume at the top).
- RSI Liquidity Momentum is falling from overbought (>70).
3. **Stop Loss**:
- Below the recent Zig Zag low (for longs).
- Above the recent Zig Zag high (for shorts).
---
📌 Additional Enhancements (Pro Tips)**
- **Combine with Higher Timeframe (HTF) Cloud** – Use a 4H/1D cloud to filter trades.
- **Divergence Detection** – Hidden bullish/bearish divergences between Zig Zag & RSI Liquidity.
- **Volume Spike Confirmation** – Only trade if volume exceeds SMA(volume, 20) at reversal points.
---
🚀 Conclusion
This **all-in-one indicator** provides:
✔ **Trend direction** (Smooth Cloud)
✔ **Momentum + Liquidity strength** (RSI Spectrum)
✔ **Precise swing points** (Zig Zag++)
✔ **Volume-based S/R zones** (Profile Clustering)
Best used on **15M-4H timeframes** for swing/day trading. Adjust parameters based on asset volatility.
ZigZag Volume Profile [ChartPrime]⯁ OVERVIEW
ZigZag Volume Profile combines swing structure with volume analytics by plotting a ZigZag of major price swings and overlaying a detailed volume profile around each swing. At the end of each swing, it highlights the Point of Control (POC) — the price level with the highest traded volume — and extends it forward to identify key areas of potential support or resistance.
⯁ KEY FEATURES
ZigZag Swing Detection:
Automatically detects swing highs and lows based on a user-defined length, creating clean visual segments of market structure.
These segments act as boundaries for volume profile calculations.
swingHigh = ta.highest(swingLength)
swingLow = ta.lowest(swingLength)
ZigZag Channel Visualization:
The ZigZag structure is connected with sloped lines, forming a visual “channel” of the price movement.
The ZigZag can optionally, scaled by ATR.
Volume Profile Around Each Swing:
For every completed swing (high to low or low to high), the indicator constructs a full volume profile using user-defined bin counts.
It scans volume across price levels in the swing and plots histogram-style bins using a gradient color to indicate volume magnitude.
Dynamic Bin Width and Slope Adjustment:
Bins are distributed across a vertical ATR-based range, and their width is adjusted based on the percentage of total swing volume.
The volume fill direction is adapted to the swing’s slope for visually aligned plotting.
POC Detection and Extension:
The highest volume bin in each swing is identified as the Point of Control (POC).
This level is plotted with a thicker line and extended horizontally into the future as a key reaction level.
Automatic POC Expiry on Price Interaction:
POC lines are continuously extended unless breached by price.
When price crosses the POC level, the extension is terminated — signaling that the level may have been absorbed.
Clean Volume Bin Visualization:
Bin colors range from green (low volume) to blue (higher volume), with the POC always marked in red by default for easy identification.
Volume percentages are optionally labeled at each bin level.
Flexible Swing Profile Parameters:
Users can control:
Number of volume bins
Bin width
Channel width (ATR factor)
Visibility of the swing channel or POC lines
Efficient Memory Handling:
Old POC lines and volume profiles are automatically removed from memory after a threshold to keep charts clean and performant.
⯁ USAGE
Use ZigZag swings to define market structure visually.
Analyze volume profile around each swing to understand where most trading activity occurred.
Use POC extensions as dynamic support/resistance zones for entries, stops, or take-profits.
Watch for price interaction with extended POC lines — breaks may suggest absorbed liquidity or breakout potential.
Use the ATR-based channel width to adapt profiles based on market volatility.
⯁ CONCLUSION
ZigZag Volume Profile offers a powerful fusion of structure and volume. By plotting detailed volume profiles over each price swing and extending the POC as actionable S/R levels, this tool provides deep insight into market participation zones — giving traders a tactical edge in both ranging and trending environments.
Time-Decaying Percentile Oscillator [BackQuant]Time-Decaying Percentile Oscillator
1. Big-picture idea
Traditional percentile or stochastic oscillators treat every bar in the look-back window as equally important. That is fine when markets are slow, but if volatility regime changes quickly yesterday’s print should matter more than last month’s. The Time-Decaying Percentile Oscillator attempts to fix that blind spot by assigning an adjustable weight to every past price before it is ranked. The result is a percentile score that “breathes” with market tempo much faster to flag new extremes yet still smooth enough to ignore random noise.
2. What the script actually does
Build a weight curve
• You pick a look-back length (default 28 bars).
• You decide whether weights fall Linearly , Exponentially , by Power-law or Logarithmically .
• A decay factor (lower = faster fade) shapes how quickly the oldest price loses influence.
• The array is normalised so all weights still sum to 1.
Rank prices by weighted mass
• Every close in the window is paired with its weight.
• The pairs are sorted from low to high.
• The cumulative weight is walked until it equals your chosen percentile level (default 50 = median).
• That price becomes the Time-Decayed Percentile .
Find dispersion with robust statistics
• Instead of a fragile standard deviation the script measures weighted Median-Absolute-Deviation about the new percentile.
• You multiply that deviation by the Deviation Multiplier slider (default 1.0) to get a non-parametric volatility band.
Build an adaptive channel
• Upper band = percentile + (multiplier × deviation)
• Lower band = percentile – (multiplier × deviation)
Normalise into a 0-100 oscillator
• The current close is mapped inside that band:
0 = lower band, 50 = centre, 100 = upper band.
• If the channel squeezes, tiny moves still travel the full scale; if volatility explodes, it automatically widens.
Optional smoothing
• A second-stage moving average (EMA, SMA, DEMA, TEMA, etc.) tames the jitter.
• Length 22 EMA by default—change it to tune reaction speed.
Threshold logic
• Upper Threshold 70 and Lower Threshold 30 separate standard overbought/oversold states.
• Extreme bands 85 and 15 paint background heat when aggressive fade or breakout trades might trigger.
Divergence engine
• Looks back twenty bars.
• Flags Bullish divergence when price makes a lower low but oscillator refuses to confirm (value < 40).
• Flags Bearish divergence when price prints a higher high but oscillator stalls (value > 60).
3. Component walk-through
• Source – Any price series. Close by default, switch to typical price or custom OHLC4 for futures spreads.
• Look-back Period – How many bars to rank. Short = faster, long = slower.
• Base Percentile Level – 50 shows relative position around the median; set to 25 / 75 for quartile tracking or 90 / 10 for extreme tails.
• Deviation Multiplier – Higher values widen the dynamic channel, lowering whipsaw but delaying signals.
• Decay Settings
– Type decides the curve shape. Exponential (default 1.16) mimics EMA logic.
– Factor < 1 shrinks influence faster; > 1 spreads influence flatter.
– Toggle Enable Time Decay off to compare with classic equal-weight stochastic.
• Smoothing Block – Choose one of seven MA flavours plus length.
• Thresholds – Overbought / Oversold / Extreme levels. Push them out when working on very mean-reverting assets like FX; pull them in for trend monsters like crypto.
• Display toggles – Show or hide threshold lines, extreme filler zones, bar colouring, divergence labels.
• Colours – Bullish green, bearish red, neutral grey. Every gradient step is automatically blended to generate a heat map across the 0-100 range.
4. How to read the chart
• Oscillator creeping above 70 = market auctioning near the top of its adaptive range.
• Fast poke above 85 with no follow-through = exhaustion fade candidate.
• Slow grind that lives above 70 for many bars = valid bullish trend, not a fade.
• Cross back through 50 shows balance has shifted; treat it like a micro trend change.
• Divergence arrows add extra confidence when you already see two-bar reversal candles at range extremes.
• Background shading (semi-transparent red / green) warns of extreme states and throttles your position size.
5. Practical trading playbook
Mean-reversion scalps
1. Wait for oscillator to reach your desired OB/ OS levels
2. Check the slope of the smoothing MA—if it is flattening the squeeze is mature.
3. Look for a one- or two-bar reversal pattern.
4. Enter against the move; first target = midline 50, second target = opposite threshold.
5. Stop loss just beyond the extreme band.
Trend continuation pullbacks
1. Identify a clean directional trend on the price chart.
2. During the trend, TDP will oscillate between midline and extreme of that side.
3. Buy dips when oscillator hits OS levels, and the same for OB levels & shorting
4. Exit when oscillator re-tags the same-side extreme or prints divergence.
Volatility regime filter
• Use the Enable Time Decay switch as a regime test.
• If equal-weight oscillator and decayed oscillator diverge widely, market is entering a new volatility regime—tighten stops and trade smaller.
Divergence confirmation for other indicators
• Pair TDP divergence arrows with MACD histogram or RSI to filter false positives.
• The weighted nature means TDP often spots divergence a bar or two earlier than standard RSI.
Swing breakout strategy
1. During consolidation, band width compresses and oscillator oscillates around 50.
2. Watch for sudden expansion where oscillator blasts through extreme bands and stays pinned.
3. Enter with momentum in breakout direction; trail stop behind upper or lower band as it re-expands.
6. Customising decay mathematics
Linear – Each older bar loses the same fixed amount of influence. Intuitive and stable; good for slow swing charts.
Exponential – Influence halves every “decay factor” steps. Mirrors EMA thinking and is fastest to react.
Power-law – Mid-history bars keep more authority than exponential but oldest data still fades. Handy for commodities where seasonality matters.
Logarithmic – The gentlest curve; weight drops sharply at first then levels off. Mimics how traders remember dramatic moves for weeks but forget ordinary noise quickly.
Turn decay off to verify the tool’s added value; most users never switch back.
7. Alert catalogue
• TD Overbought / TD Oversold – Cross of regular thresholds.
• TD Extreme OB / OS – Breach of danger zones.
• TD Bullish / Bearish Divergence – High-probability reversal watch.
• TD Midline Cross – Momentum shift that often precedes a window where trend-following systems perform.
8. Visual hygiene tips
• If you already plot price on a dark background pick Bullish Color and Bearish Color default; change to pastel tones for light themes.
• Hide threshold lines after you memorise the zones to declutter scalping layouts.
• Overlay mode set to false so the oscillator lives in its own panel; keep height about 30 % of screen for best resolution.
9. Final notes
Time-Decaying Percentile Oscillator marries robust statistical ranking, adaptive dispersion and decay-aware weighting into a simple oscillator. It respects both recent order-flow shocks and historical context, offers granular control over responsiveness and ships with divergence and alert plumbing out of the box. Bolt it onto your price action framework, trend-following system or volatility mean-reversion playbook and see how much sooner it recognises genuine extremes compared to legacy oscillators.
Backtest thoroughly, experiment with decay curves on each asset class and remember: in trading, timing beats timidity but patience beats impulse. May this tool help you find that edge.
Ultimate Precision Buy/Sell with SL - Clean Labels FIXThis is a premium indicator designed for traders who demand accuracy, simplicity, and clean visual signals.
✅ Key Features:
📈 Precise Buy/Sell entries based on trend confirmation (EMA) and momentum (RSI)
🛡️ Automatic Stop Loss (SL) drawn for every trade, calculated from ATR
🔄 SL line dynamically moves with each new candle to reflect live action
❗ Only one active signal at a time – no clutter, no repaints
⏱ Optimized for 1H timeframe
💰 Best for Forex pairs, Gold (XAUUSD), Silver (XAGUSD), Platinum (XPTUSD)
🧠 How it works:
Buy Signal: When fast EMA > slow EMA & RSI crosses above 30
Sell Signal: When fast EMA < slow EMA & RSI crosses below 70
A single SL line is drawn per trade and remains until either:
Opposite signal appears, or
SL is hit
⚠️ No repainting. No noise. Just precision.
If you want to trade smart, clean and with confidence – this indicator is built for you.
Composite Trend Trader Module [BackQuant]Composite Trend Trader Module
Overview and Purpose
The Composite Trend Trader Module (CTM) is an invite-only Pine Script indicator designed to provide traders with a comprehensive tool for trend-following, dip-buying, and market strength assessment. By integrating multiple market data inputs—price momentum, volatility, volume, and statistical baselines—the CTM generates actionable outputs for trend identification, swing trade entries, and dip-buying opportunities. The indicator is intended for traders seeking a systematic approach to market analysis with customizable settings, while maintaining simplicity in its user interface. As a closed-source script, the underlying calculations remain proprietary, but this description outlines its functionality, features, and practical applications in trading.
Visual Components
The CTM provides the following visual elements on the chart:
• Signal Spine – A colored line (default 25-period weighted moving average) that reflects the dominant trend—green for bullish, red for bearish, and grey for neutral or transitional periods.
• Swing Triggers – Unicode markers ("𝕃" for long, "𝕊" for short) appear below or above bars when the trend shifts, signaling potential swing trade entries.
• Dip-Hunter Signals – Green arrows mark dip-buying opportunities, accompanied by faint green background highlights and forward-projecting entry lines for precise entry levels.
• Heat Meter – A horizontal strip at the bottom of the chart, graded from -50 (overheated) to +50 (deep dip), visually indicates the strength of dip conditions using a red-to-green gradient.
Core Features
The CTM comprises several components that work together to deliver a cohesive trading framework. Below is a detailed explanation of each, without disclosing proprietary calculations.
1. Universal Trend Tracking (UTT)
The UTT combines multiple momentum and statistical indicators into a single composite score ranging from -1 to +1. This score is derived from:
• Price-based momentum metrics.
• Volatility-adjusted thresholds.
• Statistical measures of price deviation and market structure.
When the UTT score exceeds +0.2, the market is considered in an actionable uptrend; below -0.2, a downtrend is identified. Values between these thresholds indicate a neutral or choppy market, helping traders avoid low-probability setups during consolidation.
2. Signal Spine
The signal spine is a 25-period weighted moving average of price, colored according to the UTT score (green for bullish, red for bearish, grey for neutral). This line serves as a visual anchor for tracking the prevailing trend and highlights regime changes in real time, enabling traders to align their strategies with market direction.
3. Swing Triggers (𝕃/𝕊)
Swing trade signals are generated when the UTT crosses the zero line, indicating a shift in market regime. A "𝕃" marker appears below the bar for a bullish crossover (potential long entry), and a "𝕊" marker appears above for a bearish crossover (potential short entry). These signals incorporate volatility-adaptive thresholds to minimize false triggers during low-volatility periods, improving reliability compared to traditional moving-average crossovers.
4. Dip-Hunter Engine
The Dip-Hunter subsystem identifies high-probability dip-buying opportunities by evaluating five conditions:
• Dip Magnitude – The price must have fallen by a user-defined percentage (default 2%) from a recent swing high, calculated over a specified lookback period (default 5 bars).
• Volume Burst – Current volume must exceed the average volume over a user-defined lookback (default 65 bars) by a specified multiplier (default 2x).
• Volatility Spike – The intraday range or Average True Range (ATR) must exceed a statistical baseline by a user-defined multiplier (default 1.5x).
• Structural Permission – Price must be below a fast Exponential Moving Average (EMA, default 20 periods), and the market structure must be bearish (fast EMA below slow EMA, default 50 periods).
• Trend Filter (Optional) – When enabled, dip signals are only generated if the UTT indicates a bullish trend, preventing trades against a bearish macro environment.
When these conditions align, the Dip-Hunter plots a green arrow, highlights the candle background, and draws a forward-projecting horizontal line at a user-selected price level (Low, Close, or calculated dip percentage).
5. Strength Score and Heat Meter
Each bar is assigned a strength score (0 to 5, or -50 to +50 when scaled for the heat meter) based on the following criteria:
• +1 for meeting the dip threshold.
• +1 for a volume spike.
• +1 for a volume momentum spike (based on rate-of-change).
• +1 for a confirmed volatility spike.
• +1 if price is below the fast EMA.
• +2 if the macro trend filter is bullish (when enabled).
The heat meter visualizes this score as a pointer on a red-to-green gradient strip, enabling traders to quickly assess the intensity of dip conditions and prioritize high-quality setups.
6. Entry-Line Generator
For each dip signal, the CTM draws a forward-projecting horizontal line to mark potential entry levels. Traders can configure:
• The price level for the line (Low, Close, or exact dip percentage).
• The duration of the line (default 100 bars).
• A minimum gap between signals (default 5 bars) to prevent overlapping lines during clustered events.
These lines serve as visual guides for setting limit orders or stop-loss levels.
7. Alerts
The CTM includes seven pre-configured alert conditions to support automated workflows:
• CTM Long/Short – Triggered on bullish or bearish UTT zero-line crossovers for swing trades.
• Market Overheated – Activates when the strength score falls below -40, indicating potential exhaustion.
• Close to Dip – Signals when the strength score reaches 0.6, suggesting an impending dip opportunity.
• Dip Confirmed – Fires on the first bar meeting all dip conditions.
• Dip Active – Triggers while dip conditions remain valid.
• Dip Fading – Activates when the strength score crosses below 0.5, indicating a weakening dip.
• Trend-Blocked – Alerts when dip conditions are met but blocked by the trend filter.
These alerts can be routed to brokers or trading bots for seamless execution.
"CPM Long Signal {{exchange}}:{{ticker}}")
"CPM Short Signal {{exchange}}:{{ticker}}")
"Market overheated {{ticker}}")
"Close to a dip {{ticker}}")
"Dip confirmed {{ticker}}")
"Dip active {{ticker}}")
"Dip strength fading {{ticker}}")
"Signal blocked by trend filter {{ticker}}")
User Controls
The CTM offers extensive customization to adapt to different trading styles and preferences:
• Signal Settings – Toggle the signal spine, composite score plot, swing triggers, and bar coloring. Adjust line width for visibility.
• Display Settings – Customize bullish, bearish, and neutral colors to match chart templates.
• Dip-Hunter Settings – Configure volume lookback, spike multipliers, EMA periods, volatility thresholds, dip percentage, and lookback bars.
• Trend Filter – Enable or disable the requirement for a bullish UTT before dip signals are generated.
• Strength & Meter – Toggle bar coloring based on the strength score, adjust the number of meter cells (default 60), and select meter position (e.g., bottom-center).
• Entry Settings – Control entry line visibility, length, and price source (Low, Close, or dip percentage).
Trading Applications
The CTM supports multiple trading strategies, each leveraging its outputs for specific market conditions:
• Trend-Ride Mode – Trade in the direction of the signal spine. Enter long positions on the first "𝕃" marker in a green (bullish) regime, and scale out when the UTT returns to grey (neutral). This is ideal for trend-following traders seeking to capture sustained moves, with the first signal in a new trend regime offering high statistical expectancy.
• Forced Dip Entries – Enable the trend filter and focus on dip signals (green arrows). Place limit orders at the entry line, set stops below the line, and target the midpoint of the prior value area (e.g., using support/resistance levels). This suits mean-reversion traders aiming to buy dips in bullish trends, with clear risk management via entry lines.
• Scalp Confirmation – Hide the signal spine and use bar coloring to identify short-term momentum. Green bars indicate broad buying pressure, while red bars warn against long scalps in oversold conditions. This is useful for intraday scalpers seeking confirmation of momentum before entering trades.
• Event Guardrails – Avoid trading when the heat meter is below -40 before major economic releases (e.g., FOMC, CPI), as spreads and slippage may widen. This enhances risk management by flagging high-risk periods during macroeconomic events.
• Multi-Timeframe Analysis – Apply the CTM on a daily timeframe in a secondary pane and a lower timeframe (e.g., hourly) on the primary chart. Trade only when both timeframes align (e.g., both in bullish regimes). This increases conviction for swing or position traders by confirming trend alignment across timeframes.
Frequently Asked Questions
• How does the CTM differ from a moving-average ribbon? The CTM integrates multiple momentum, volatility, and statistical indicators, using adaptive thresholds and proprietary calculations to respond faster to structural changes while filtering noise more effectively than traditional dual-EMA systems.
• Can the underlying formulas be accessed? No, the script is closed-source, and calculations are protected to preserve intellectual property. Users receive all outputs, alerts, and customizable parameters.
• Does the indicator repaint? No, all calculations use confirmed historical data without look-ahead bias. Entry lines are static from the signal bar.
• Which markets is it suitable for? The CTM is optimized for equities, futures, and cryptocurrencies. Adjust dip percentage and volume multipliers for low-liquidity markets.
• What about latency? The script uses efficient Pine Script functions and lightweight loops, ensuring minimal performance impact.
Limitations and Best Practices
• Market-Specific Tuning – Thinly traded markets may require adjustments to dip percentage and volume thresholds to avoid excessive signals.
• Complementary Tools – Combine the CTM with price action, support/resistance levels, or order flow analysis to confirm signals and avoid over-reliance on the indicator.
• Event Risk – Be cautious during high-impact news events, as volatility spikes may trigger signals that are quickly reversed.
• Trend Filter Use – Enabling the trend filter reduces false dip signals in bearish markets but may delay entries in rapidly reversing markets.
Conclusion
The Composite Trend Trader Module consolidates trend-following, dip-buying, and strength assessment into a single, customizable indicator. By providing clear visual cues, actionable alerts, and flexible settings, it equips traders with a robust framework for navigating various market conditions. While the proprietary calculations remain protected, the CTM’s outputs enable traders to make informed decisions, align strategies with market regimes, and manage risk effectively. Use it as a strategic tool alongside sound risk management and complementary analysis for optimal results.
Time-Price Velocity [QuantAlgo]🟢 Overview
The Time-Price Velocity indicator uses advanced velocity-based analysis to measure the rate of price change normalized against typical market movement, creating a dynamic momentum oscillator that identifies market acceleration patterns and momentum shifts. Unlike traditional momentum indicators that focus solely on price change magnitude, this indicator incorporates time-weighted displacement calculations and ATR normalization to create a sophisticated velocity measurement system that adapts to varying market volatility conditions.
This indicator displays a velocity signal line that oscillates around zero, with positive values indicating upward price velocity and negative values indicating downward price velocity. The signal incorporates acceleration background columns and statistical normalization to help traders identify momentum shifts and potential reversal or continuation opportunities across different timeframes and asset classes.
🟢 How It Works
The indicator's key insight lies in its time-price velocity calculation system, where velocity is measured using the fundamental physics formula:
velocity = priceChange / timeWeight
The system normalizes this raw velocity against typical price movement using Average True Range (ATR) to create market-adjusted readings:
normalizedVelocity = typicalMove > 0 ? velocity / typicalMove : 0
where "typicalMove = ta.atr(lookback)" provides the baseline for normal price movement over the specified lookback period.
The Time-Price Velocity indicator calculation combines multiple sophisticated components. First, it calculates acceleration as the change in velocity over time:
acceleration = normalizedVelocity - normalizedVelocity
Then, the signal generation applies EMA smoothing to reduce noise while preserving responsiveness:
signal = ta.ema(normalizedVelocity, smooth)
This creates a velocity-based momentum indicator that combines price displacement analysis with statistical normalization, providing traders with both directional signals and acceleration insights for enhanced market timing.
🟢 How to Use
1. Signal Interpretation and Threshold Zones
Positive Values (Above Zero): Time-price velocity indicating bullish momentum with upward price displacement relative to normalized baseline
Negative Values (Below Zero): Time-price velocity indicating bearish momentum with downward price displacement relative to normalized baseline
Zero Line Crosses: Velocity transitions between bullish and bearish regimes, indicating potential trend changes or momentum shifts
Upper Threshold Zone: Area above positive threshold (default 1.0) indicating strong bullish velocity and potential reversal point
Lower Threshold Zone: Area below negative threshold (default -1.0) indicating strong bearish velocity and potential reversal point
2. Acceleration Analysis and Visual Features
Acceleration Columns: Background histogram showing velocity acceleration (the rate of change of velocity), with green columns indicating accelerating velocity and red columns indicating decelerating velocity. The interpretation depends on trend context: red columns in downtrends indicate strengthening bearish momentum, while red columns in uptrends indicate weakening bullish momentum
Acceleration Column Height: The height of each column represents the magnitude of acceleration, with taller columns indicating stronger acceleration or deceleration forces
Bar Coloring: Optional price bar coloring matches velocity direction for immediate visual trend confirmation
Info Table: Real-time display of current velocity and acceleration values with trend arrows and change indicators
3. Additional Features:
Confirmed vs Live Data: Toggle between confirmed (closed) bar analysis for stable signals or current bar inclusion for real-time updates
Multi-timeframe Adaptability: Velocity normalization ensures consistent readings across different chart timeframes and asset volatilities
Alert System: Built-in alerts for threshold crossovers and direction changes
🟢 Examples with Preconfigured Settings
Default : Balanced configuration suitable for most timeframes and general trading applications, providing optimal balance between sensitivity and noise filtering for medium-term analysis.
Scalping : High sensitivity setup with shorter lookback period and reduced smoothing for ultra-short-term trades on 1-15 minute charts, optimized for capturing rapid momentum shifts and frequent trading opportunities.
Swing Trading : Extended lookback period with enhanced smoothing and higher threshold for multi-day positions, designed to filter market noise while capturing significant momentum moves on 1-4 hour and daily timeframes.
PSAR LRC [CRT Trader]
SAR (Stop and Reverse) is a technical indicator used in financial markets to track trends and identify potential reversal points.
The indicator plots SAR calculations at three different speeds as dot markers above or below the candlesticks. If all three dots are below, it is considered a bullish signal; if they are above, it is considered a bearish signal.
In addition to the indicator, a Linear Regression Channel has been added. These lines can provide information such as trend direction, support, resistance, and potential breakouts.
Custom Multiple SMAs (Trend Structure Visualizer)This indicator displays 16 consecutive Simple Moving Averages (SMAs), from SMA 8 to SMA 23, plotted simultaneously on the chart. Together, they form a color-coded SMA fan that allows you to clearly visualize the current market structure.
What you can observe in the chart:
– When the lines are flat and tightly clustered , the market is likely consolidating or moving sideways
– When the lines fan out and expand , a trend or directional momentum is building
– When the lines start converging or crossing again , it may indicate a trend pause or potential reversal
A 100-period EMA (yellow line) serves as a basic trend filter:
– Price above the EMA suggests an long-biased market
– Price below the EMA suggests a short-biased market
What makes this tool unique:
Unlike traditional single-SMA indicators, this tool also highlights phases when it's better to stay out of the market – such as during flat, unstructured sideways conditions.
Transitions from low activity to trending phases become clearly and early visible, without relying on additional signals or indicator noise.
The indicator works across all markets and timeframes and remains visually stable even during fast market movements. It is a visual decision-making tool and does not generate automatic signals or alerts.
Price Widget on ScreenSimple yet useful script, to see the PRICE/CHANGE of the chart you are on. I use it in my 6/8 charts screen, so you can see the graph and the price.