Artemis Squeeze Momentum🟦 Artemis Squeeze Momentum collapses an entire momentum-and-volatility workflow into a single oscillator pane. Eight analytical layers — Squeeze Momentum core, Directional Flux, three-tier compression detection with a release tracker, dual confluence gauges, dual anchor Regular + Hidden divergence with a Smart AI Filter, a composite Trend Strength Score (0–100), a four-timeframe MTF Confluence panel with alignment / divergence detection, and a theme-adaptive PRO dashboard — operate as one integrated system, all driven by a single theme dropdown across 12 cohesive palettes.
Most squeeze indicators ship as a strip of black-and-red dots with a lone momentum histogram, then require a separate ADX, a separate divergence tool and a separate confluence gauge to complete the read. Artemis Squeeze Momentum closes that gap: every compression tier, every directional cross, every divergence, every higher-timeframe bias reads from the same pane in the same colour language — no inline colour pickers, no palette drift, no pane-hopping. The result is a complete momentum workbench where compressions, breakouts, regime flips, divergences and multi-TF bias are all readable at a glance.
🟦 HOW THE CORE ENGINE WORKS
**Squeeze Momentum Engine**
Each bar, the engine builds three anchors over the Momentum Length window:
1. **Channel midpoint** — `(highest(high, len) + lowest(low, len)) / 2`
2. **Smoothed midline** — `SMA(HL2, len)`
3. **Channel ATR** — channel range plus the gap-to-prior-close component (matches Pine v5 `tr(true)` on the synthetic channel bar)
The raw momentum is then computed as:
mom_raw = (close − avg(channelMid, smaMid)) / channelATR × 100
This produces a channel-aware, ATR-normalized residual scaled to roughly the ±100 range. The result is then passed through `ta.linreg(mom_raw, len, 0)` to produce the visible momentum line — a linear-regression smoothing that gives the curve its characteristic forward-leaning shape. An SMA of length Signal Length builds the trigger line. Crossovers between momentum and signal mark momentum regime changes — the same convention used by classical MACD.
**Directional Flux**
A custom ADX-style oscillator running in parallel. Each bar, the engine measures positive high-changes vs. negative low-changes, each RMA-smoothed and ATR-normalized:
up = RMA(max(change(high), 0), len) / ATR(len)
dn = RMA(max(−change(low), 0), len) / ATR(len)
ratio = (up − dn) / (up + dn)
flux = RMA(ratio, len / 2) × 100
The result is a directional bias oscillator bounded to ±100. An overflow branch (values past ±25 — where the directional pressure becomes structurally significant) renders as a separate, brighter fill so traders read both raw direction and acceleration in one glance.
**Heiken Ashi Bias (Optional)**
When `Use Heiken Ashi Bias` is enabled, the Flux engine reads from a Heiken Ashi bar stream instead of raw OHLC. HA bars smooth body / wick noise and emphasise trend continuation — useful on lower timeframes where raw OHLC is noisy.
🟦 SQUEEZE DETECTION
A three-tier Bollinger-vs-ATR compression detector running on the same Length as the Momentum Core (so compression and momentum stay perfectly aligned):
| Tier | Condition | Visual |
|---|---|---|
| Tight | stdev < ATR × 0.5 | Deepest, most saturated theme tone |
| Mid | stdev < ATR × 0.75 | Middle-intensity theme tone |
| Loose | stdev < ATR × 1.0 | Lightest tier — broadest detection |
Tiers nest — tight implies mid implies loose. The bottom-of-pane squeeze column lights up whenever any tier is active and the colour escalates as compression tightens, using a theme-native ramp drawn from each palette's own colour family (so the column reads as part of the theme rather than an imported generic warning).
The standard deviation is computed via a single-pass Welford algorithm — numerically stable on long histories where naive sum-of-squares accumulators drift.
**♦ Squeeze Release Marker**
The signature feature of the engine. The bar after the loosest active tier (stdev < ATR × 1.0) finally drops off, a tiny ♦ diamond paints at the midline in the theme's vivid release accent — one step brighter and more saturated than the tight tier so the climax moment reads as the most luminous point in the squeeze cycle.
This is the canonical "spring uncoiled" moment: compression has fully ended, volatility expansion begins, breakout direction is about to reveal itself. Historically the highest-conviction breakout setup the squeeze model produces. Hovering on the marker surfaces:
- Current bar state (compression ended this bar)
- Meaning (volatility expansion incoming)
- Next steps (watch the next 1–5 bars, confirm with Momentum slope, cross-check Flux, prioritise MTF-aligned setups)
🟦 CONFLUENCE GAUGES
Two horizontal strips render at the top (Bull side, +70 to +75) and bottom (Bear side, −70 to −75) of the pane. Each strip lights up when momentum and flux agree on direction, with brightness reflecting the confluence tier:
| State | Condition | Opacity |
|---|---|---|
| Strong Bull | mom > 0 AND flux > 0 | Full |
| Weak Bull | mom > 0 OR flux > 0 | Half |
| Strong Bear | mom < 0 AND flux < 0 | Full |
| Weak Bear | mom < 0 OR flux < 0 | Half |
| Neutral | Neither side dominates | Transparent |
The display mode (Both / Bull / Bear / None) lets traders mute one half if they only trade one direction.
**Confluence Buy / Sell Triangles**
A separate signal layer rides outside the gauges. The detector fires only when momentum crosses its signal line WHILE in the opposite zone past the Signal Threshold AND with flux in the opposite direction (classic mean-reversion logic):
- **Buy ▲** (below bear gauge at −90) — `xMomUp AND momVal < −threshold AND fluxVal < 0`
- **Sell ▼** (above bull gauge at +85) — `xMomDn AND momVal > +threshold AND fluxVal > 0`
Each triangle pairs with an invisible label carrying a tooltip that lists current mom, signal, flux, the active threshold, and a one-line interpretation of the trigger. The Signal Threshold (default 40) is independent of the Divergence Sensitivity setting — the two engines need different thresholds (divergence wants permissive at 25 for pivot detection, confluence wants strict at 40 for deep mean-reversion triggers).
🟦 DIVERGENCE DETECTION
A cross-confirmed, dual-anchor detector that fires on signal-line crossovers (NOT on Pine pivots). Regular divergences signal exhaustion reversals, Hidden divergences signal trend continuation.
**Four divergence types:**
| Type | Price | Momentum | Signal |
|---|---|---|---|
| Regular Bull (D▲) | Lower Low | Higher Low | Potential reversal up |
| Regular Bear (D▼) | Higher High | Lower High | Potential reversal down |
| Hidden Bull (H▲) | Higher Low | Lower Low | Uptrend continuation |
| Hidden Bear (H▼) | Lower High | Higher High | Downtrend continuation |
Regular divergence uses solid lines; Hidden uses dashed lines — visually quieter to match the continuation signal's lower conviction tier. Labels (D▲ / D▼ / H▲ / H▼) each carry a tooltip-rich hover with price + momentum + meaning context.
**Dual-Anchor Logic**
The key engineering choice. Regular and Hidden divergences each maintain their own separate anchor pair:
- **Regular anchors** — stored only at extreme-zone crosses (|mom| > Sensitivity). Catches classical exhaustion reversals at deep extremes.
- **Hidden anchors** — stored at ANY signal-line cross, regardless of zone. Shallow pullbacks inside an established trend rarely push momentum past ±Sensitivity, so the Hidden detector must accept every cross to capture the classical "price HL + mom LL" / "price LH + mom HH" continuation pattern.
A detected divergence consumes its anchor (resets to na) so the next setup starts fresh.
**Smart Divergence Filter (AI)**
Optional pre-filter that rejects low-quality divergences before they render. Three independent gates:
1. **Min Momentum Swing** — minimum |momentum| difference between the two pivot momentum values (default: 10 units). Drops noise-level differences.
2. **Min Price Swing (%)** — minimum price swing between pivots as a percentage of the recent `Momentum Length × 4` high-low range (default: 0.3%). Drops divergences where price barely moved relative to recent volatility.
3. **Require Flux Confirmation** — Flux must agree with the divergence direction at the moment of detection (Bull div needs Flux > 0, Bear div needs Flux < 0). Filters out divergences that fire counter to the broader directional bias.
When the master toggle is OFF (default), all detected divergences render. When ON, only divergences that clear all three gates survive. The filter applies identically to chart rendering and alert conditions — no mismatch between visual and alert signals.
🟦 COMPOSITE TS SCORE (0–100)
A weighted blend of every analytical layer into a single RSI-style 0–100 reading. 50 is neutral, > 50 leans bull, < 50 leans bear.
| Component | Weight | Mapping |
|---|---|---|
| Momentum | 30% | mom value mapped from −100..+100 → 0..100 |
| Flux | 30% | flux value mapped the same way |
| Mom × Signal | 15% | 70 if mom > sig, else 30 (slope direction confirmation) |
| Confluence | 25% | 90 strong-bull / 65 weak-bull / 50 neutral / 35 weak-bear / 10 strong-bear |
The score is rounded to the nearest integer and labelled into five tiers in the dashboard: STRONG BULL (≥75) / BULL (≥60) / NEUTRAL (40–59) / BEAR (≥25) / STRONG BEAR (<25), each prefixed with a directional glyph (▲ ▼ ■). The tier label gives traders an executive summary at a glance — one row in the dashboard tells you what every other row collectively says.
🟦 MULTI-TIMEFRAME CONFLUENCE
A separate PRO panel that runs the full Momentum + Flux + Confluence stack on four higher timeframes simultaneously via `request.security()` and surfaces the overall alignment state. All MTF calls use `lookahead = barmerge.lookahead_off` — fully repaint-safe on every closed bar.
**Six Presets**
Pre-tuned four-timeframe packs matched to common trader profiles:
| Preset | TF 1 | TF 2 | TF 3 | TF 4 | Use case |
|---|---|---|---|---|---|
| Scalp | 1m | 5m | 15m | 1h | Fast scalper |
| Intraday | 5m | 15m | 1h | 4h | Day trader |
| Swing | 15m | 1h | 4h | 1D | Default — swing trader |
| Position | 1h | 4h | 1D | 1W | Position trader |
| Crypto | 5m | 15m | 1h | 4h | 24/7 markets |
| Forex | 15m | 1h | 4h | 1D | Session-based markets |
**Alignment Detection**
Each TF returns a bias tag (▲ STRONG / ▲ WEAK / ▼ STRONG / ▼ WEAK / ◈ NEUTRAL) and a direction code (+1 / 0 / −1). The header rolls up the four codes into one of three states:
- **▲▲▲▲ ALIGNED** — all four TFs bullish (highest-conviction long setup)
- **▼▼▼▼ ALIGNED** — all four TFs bearish (highest-conviction short setup)
- **◈ MIXED** — TFs disagree (no clean direction)
**Divergence Detection**
When the current chart's bias contradicts ≥ 3 of the 4 HTF biases (e.g., chart bullish but 3+ HTFs bearish), an MTF Divergence flag fires — a contrarian / counter-trend warning. Treat as a "current move may be a bull / bear trap" signal.
**Panel Style**
Direction is conveyed purely by the ▲ / ▼ glyphs in each row's tag — never by cell colour. Every cell uses a uniform `thBull` text colour matching the main Dashboard, so the two panels feel like one product across all twelve themes, light and dark alike.
🟦 BAR COLORING
Five mutually exclusive modes apply an oscillator-driven colour to every price bar on the chart:
| Mode | Behavior |
|---|---|
| None | Leave bars untouched (default) |
| Momentum | Bull when mom > 0, bear when mom < 0 |
| Flux | Bull when flux > 0, bear when flux < 0 |
| Squeeze | Theme-native ramp when compressed, neutral otherwise |
| Confluence | Strong / Weak / Neutral tiers via mom + flux agreement |
| Slope | Bull when mom > signal, bear when mom < signal |
Colours are pulled from the active theme — no per-mode color picker needed.
🟦 DASHBOARD
A compact 2-column, 8-row data panel renders on the last bar when enabled. Every value derives from variables already computed upstream, so the dashboard adds zero overhead until the final bar.
| Row | Left | Right |
|---|---|---|
| Header | Artemis Squeeze | ▲ STRONG BULL / ▲ WEAK BULL / ■ NEUTRAL / ▼ WEAK BEAR / ▼ STRONG BEAR |
| TS Score | TS Score | 0–100 composite + tier label (STRONG BULL / BULL / NEUTRAL / BEAR / STRONG BEAR) |
| Momentum | Momentum | Current value + trend arrow (▲ ▼ ■) |
| Flux | Flux | Current value + trend arrow (▲ ▼ ■) |
| Squeeze | Squeeze | TIGHT / MID / LOOSE / — |
| Confluence | Confluence | STRONG BULL / WEAK BULL / NONE / WEAK BEAR / STRONG BEAR |
| Div | Div | Most recent divergence within last 50 bars (▲ REG / ▼ REG / ▲ HID / ▼ HID / —) |
| Slope | Slope | ▲ UP / ▼ DOWN / ■ FLAT |
**Theme-Adaptive Chrome**
The dashboard auto-inverts its layout based on the active theme:
- **Dark themes** (Tropic, Amber, Pastel, Cyber, Helios, Electric, Candy, Bloomberg, Solar, Royal): header and footer use a faint `thBull` tint, middle rows stay solid dark, text uses full-saturation `thBull`. Border uses `thBull` at 20% transparency for strong theme presence.
- **Light themes** (Midnight, Graphite): backgrounds flip to white, text stays `thBull` (which is itself dark on these themes), border uses `thBull` at 40% transparency.
This guarantees text legibility against every palette without per-theme manual tuning. The MTF Confluence panel uses identical chrome rules so the two panels feel like one product.
**Position & Size**
Six anchor slots (Top / Middle / Bottom × Left / Right) and four text sizes (Tiny / Small / Normal / Large). The Dashboard defaults to Bottom Right and the MTF panel to Top Right — vertically opposite so the two never overlap.
🟦 COLOR THEMES
Twelve cohesive palettes, each resolving to four axis colours plus a four-step squeeze ramp:
| Theme | Character | Bull | Bear |
|---|---|---|---|
| Tropic | Cyan steel + deep orange | #00bcd4 | #ff6d00 |
| Amber | Warm amber + ember red | #ff9800 | #e53935 |
| Pastel | Sky blue + soft lavender | #4fc3f7 | #9575cd |
| Cyber | Neon lime + hot crimson | #00e676 | #ff1744 |
| Helios | Bright gold + scarlet | #ffd600 | #ef5350 |
| Electric | Electric aqua + magenta | #00e5ff | #e040fb |
| Candy | Neon green + hot pink | #69F0AE | #FF4081 |
| Bloomberg | Terminal orange + cyan | #ff8c00 | #00b0ff |
| Solar | Solarized olive + crimson | #859900 | #dc322f |
| Royal | Imperial gold + deep purple | #ffd700 | #6a0dad |
| Midnight | Deep navy + dark crimson | #0d47a1 | #b71c1c |
| Graphite | Near-black + silver grey | #1a1a1a | #757575 |
Beyond the four axis colours (bull / bear / neutral / signal), each theme also defines its own four-step squeeze ramp (tight / mid / loose / release) drawn from its own colour family — so the squeeze column and the ♦ release marker harmonise with the active theme rather than imposing a generic warning hue. Nothing below the theme resolver block references a raw hex literal, so a single dropdown selection drives every plot, fill, gauge, divergence line, dashboard cell, MTF panel and bar colour.
🟦 ALERT SYSTEM
Twenty-two alert conditions, all using `alert.freq_once_per_bar_close`. Each alert is gated by its own toggle in the Alerts group — hiding a feature on the chart silences its alerts automatically.
| Alert | Condition |
|---|---|
| Confluence Buy | Mom crossed UP through signal while below −Threshold AND Flux bearish |
| Confluence Sell | Mom crossed DOWN through signal while above +Threshold AND Flux bullish |
| Momentum Cross Up | Mom crossed above zero |
| Momentum Cross Down | Mom crossed below zero |
| Flux Cross Up | Flux crossed above zero |
| Flux Cross Down | Flux crossed below zero |
| Bullish Swing | Mom × signal upward cross (any zone) |
| Bearish Swing | Mom × signal downward cross (any zone) |
| Strong Bull Confluence | Mom AND flux both turned bullish |
| Strong Bear Confluence | Mom AND flux both turned bearish |
| Weak Bull Confluence | Mom OR flux turned bullish |
| Weak Bear Confluence | Mom OR flux turned bearish |
| Tight Squeeze | stdev < ATR × 0.5 |
| Mid Squeeze | stdev < ATR × 0.75 |
| Loose Squeeze | stdev < ATR × 1.0 |
| Regular Divergence | D▲ or D▼ detected (respects Smart Filter) |
| Hidden Divergence | H▲ or H▼ detected (respects Smart Filter) |
| Squeeze Release ♦ | stdev re-expanded above ATR × 1.0 |
| MTF Aligned | All four MTF timeframes agree on direction |
| MTF Divergence | Current chart bias contradicts ≥ 3 of 4 HTF biases |
Each alert fires through `alert()` so the message body carries live context — direction, current values, the trigger condition, and a one-line interpretation. Divergence alerts respect the Smart Filter — if the filter is ON and a divergence is rejected visually, the alert will also not fire.
🟦 SETTINGS REFERENCE
**Visual**
- Theme — 12 cohesive palettes. Default: Tropic
**Bar Coloring**
- Bar Color Mode — None / Momentum / Flux / Squeeze / Confluence / Slope. Default: None
**Momentum Core**
- Length — Lookback for both the Momentum engine and the Squeeze window. Range 7–50. Default: 20
- Signal Length — SMA smoothing for the signal line. Range 2–7. Default: 3
- Show Momentum — Toggle. Default: ON
**Directional Flux**
- Length — Lookback for the Flux engine. Range 7–50. Default: 30
- Use Heiken Ashi Bias — Toggle. Default: OFF
- Show Flux — Toggle. Default: ON
**Squeeze Engine**
- Show Squeeze — Toggle. Default: ON
- Show Squeeze Release — Toggle for the ♦ marker. Default: ON
**Confluence Gauges**
- Display Mode — Both / Bull / Bear / None. Default: Both
- Signal Threshold — |momentum| floor for Buy ▲ / Sell ▼ arrows. Range 10–80. Default: 40
**Divergence**
- Sensitivity — |momentum| floor for Regular div detection. Range 10–50. Default: 25
- Regular Divergence — Toggle. Default: ON
- Hidden Divergence — Toggle. Default: ON
- Show Divergence Lines — Toggle. Default: ON
- Show Divergence Labels — Toggle. Default: ON
- Label Size — Tiny / Small / Normal / Large. Default: Tiny
- Smart Divergence Filter (AI) — Master toggle. Default: OFF
- Min Momentum Swing — Default: 10.0
- Min Price Swing (%) — Default: 0.3%
- Require Flux Confirmation — Default: ON
**Multi-Timeframe**
- Show MTF Panel — Toggle. Default: ON
- Timeframe Preset — Scalp / Intraday / Swing / Position / Crypto / Forex. Default: Swing
- Panel Position — 6 anchor slots. Default: Top Right
- Panel Text Size — Tiny / Small / Normal / Large. Default: Small
**Dashboard**
- Show Dashboard — Toggle. Default: ON
- Panel Position — 6 anchor slots. Default: Bottom Right
- Panel Text Size — Tiny / Small / Normal / Large. Default: Small
**Alerts**
- 20 toggles covering all 22 alert conditions (Regular and Hidden divergence each drive two alerts — bull + bear — from one toggle).
- Defaults ON: Confluence Buy/Sell, Mom Cross Up/Dn, Flux Cross Up/Dn, Strong Bull/Bear Confluence, Tight Squeeze, Regular Divergence, Squeeze Release, MTF Aligned.
- Defaults OFF: Swings, Weak Confluences, Mid/Loose Squeeze, Hidden Divergence, MTF Divergence.
🟦 COMPATIBILITY
Works on all asset classes and all timeframes in PulseWire Pine Script v6.
- Crypto: Spot, futures, perpetual contracts
- Forex: All pairs
- Equities: Stocks, ETFs, indices
- Commodities: Metals, energy, agriculture
- Timeframes: 1m through Monthly
The channel-aware ATR normalization in the Momentum engine, the ATR-normalized Flux ratio, and the stdev / ATR squeeze tests make every layer volatility-agnostic. The same default settings work on a 1m BTC chart and a weekly index chart without retuning. The MTF presets cover the common scalp / intraday / swing / position profiles plus dedicated Crypto and Forex packs.
🟦 DISCLAIMER
This indicator is provided for educational and informational purposes only. It does not constitute financial advice. Past performance does not guarantee future results. Always conduct your own analysis and apply proper risk management. Indicator

Indicator

Volume Weighted Momentum [forexobroker]Volume Weighted Momentum is a rate-of-change oscillator weighted by each bar's volume: moves made on heavy volume count more than moves on thin volume. The oscillator's zero line defines a momentum regime, and an ATR-normalised reading grades its strength. The regime sets the bias and a reclaim-EMA cross times entries, or a raw zero-line cross in Cross-Only mode.
🔶 ALGORITHM
1. ROC = close - close .
2. Volume-weighted ROC over the VW Average Window: VWM = sum(ROC * volume) / sum(volume).
3. ATR-normalised reading vwmN = VWM / ATR for strength grading.
4. Regime: VWM > 0 = momentum up (+1), VWM < 0 = momentum down (-1).
5. A magnitude gate optionally requires abs(VWM) >= Min |VWM| x ATR before entries are allowed.
6. A reclaim EMA times the entry: a confirmed close-cross in the regime direction triggers (or, in Zero-Cross-Only Mode, the VWM zero-line cross itself). Cooldown, bar-close confirmation and a position-lock finalise the signal so it never repaints intrabar.
🔶 SIGNAL LOGIC
- Buy: in-session AND magnitude OK AND (Zero-Cross-Only: VWM crosses above zero) OR (regime up AND close crosses over the reclaim EMA) AND position not already long AND cooldown elapsed AND barstate.isconfirmed.
- Sell: in-session AND magnitude OK AND (Zero-Cross-Only: VWM crosses below zero) OR (regime down AND close crosses under the reclaim EMA) AND position not already short AND cooldown elapsed AND barstate.isconfirmed.
Only fires while the volume-weighted momentum magnitude clears the optional ATR gate.
🔶 INPUTS
- Momentum group: ROC Length over which the rate of change is measured (default 10).
- Momentum group: VW Average Window the volume-weighted ROC is averaged over (default 20).
- Momentum group: Min |VWM| x ATR, an optional ATR-unit magnitude gate (default 0.0).
- Momentum group: ATR Length used for normalisation and the gate (default 14).
- Signal Logic group: Entry Reclaim EMA whose close-cross times entries (default 9).
- Signal Logic group: Zero-Cross-Only Mode and Cooldown Bars between signals (default 5).
- Filters group: optional session restriction with a configurable window (default off).
- Visual group: dashboard, 3-layer glow, reclaim-EMA plot and buy/sell colors (dashboard default on).
🔶 ALERTS
VWM Buy, VWM Sell, VWM Any Signal, VWM Zero Up, VWM Zero Down, VWM Bull Regime, VWM Bear Regime, VWM EMA Up, VWM EMA Down, VWM Strong, VWM Regime Flip, VWM Any Zero Cross, VWM Webhook JSON.
🔶 LIMITATIONS
- Needs warm-up bars before the ROC lookback and VW averaging window are fully populated.
- Volume-based, so it requires a real volume feed; on forex it falls back to broker tick-volume, which is a proxy only.
- Volume weighting reflects participation, not true bid/ask order flow.
- ATR-normalisation requires a valid ATR; very early bars may read zero magnitude.
- Defaults are tuned for liquid instruments and intraday/swing timeframes; thin symbols may need a longer averaging window.
Indicator

Indicator

Phase Exhaustion Reversal [BullByte]Phase Exhaustion Reversal (PXR) is an intraday reversal engine that measures one specific market phenomenon: the moment a short-horizon directional burst exhausts itself against a broader structural gradient. It is built on a single mathematical primitive - directional efficiency - applied at two horizons, and turns the gap between them into an exhaustion-detection framework.
This is not a mashup of existing indicators. The entire engine is derived from one calculation family: how cleanly price travels over a window. The regime classifier, the signal trigger, the risk engine, and the dashboard are all layers of that single concept rather than separate components.
---
Why This Indicator Exists
Most reversal tools fire on oscillator extremes or candlestick patterns. They answer the question "is price stretched?" but not "has the energy actually run out? " A market can stay stretched for a long time before reverting. PXR was built to answer a more precise question: when has a short-horizon momentum burst exhausted its energy against the prevailing structural direction? That moment - the exhaustion-and-recede - is what PXR isolates.
The phenomenon being studied can be observed on historical price data.
When price moves with high short-horizon efficiency in a direction that contradicts the medium-horizon efficiency gradient, that move is consuming energy faster than structure supports. Such bursts can appear to exhaust and then realign with the broader gradient on historical data. PXR visualizes that potential realignment as an observation worth studying.
---
Why a Trader Might Use It
Intraday traders on 5-minute and 15-minute charts frequently face counter-trend bursts that look like reversals but are actually just temporary dislocations. PXR offers a structured way to read those bursts: it waits for the burst to peak, confirms the peak has begun receding, and only then marks the realignment as armed. The next-bar open execution model means the entry price on the chart matches what a real-time observer could actually have achieved.
PXR is designed for traders who want a single coherent reading of market state - regime, bias, setup progression, and signal - rather than juggling multiple unrelated indicators.
---
The Concept
Imagine price as a hiker walking through terrain. Two things can be measured about that hiker over any window of time:
One - how far they ended up from where they started. This is transport.
Two - how much total ground they covered while getting there. This is agitation.
The ratio of transport to agitation is efficiency. If a hiker walked 100 meters in a straight line, transport equals agitation, and efficiency is 1.0 - perfectly directional. If a hiker zigzagged 500 meters total but ended up only 100 meters away, efficiency is 0.2 - most of the energy was wasted on the zigzag.
PXR computes this efficiency at two horizons simultaneously. The short horizon (around 35 minutes of bars, regardless of timeframe, by default) captures reactive bursts. The medium horizon (around 2 hours of bars by default) captures the structural gradient - the broader direction price is actually flowing in.
When the short-horizon efficiency spikes far from the medium-horizon efficiency, the two have dislocated. PXR normalizes this dislocation into a value called the Phase Gap. When the Phase Gap stretches to an extreme and then begins to recede, the short-horizon burst is exhausting. If the medium-horizon gradient points the opposite direction at that moment, PXR marks a realignment signal - the observed behavior is a possible realignment with the structural gradient.
---
What Makes This Different From a Standard Momentum Tool
Three architectural choices separate PXR from typical oscillator-based reversal tools.
First, the use of two-horizon efficiency phase-gap normalization. The raw difference between two efficiency readings is rescaled by its own rolling maximum so the threshold stays meaningful across all volatility regimes. A 0.6 reading means the same thing on a quiet day as on a volatile one.
Second, regime-conditional adaptive thresholds. The signal threshold is not a fixed constant. It adapts based on whether the market is currently classified as Extended (clean trend), Compressed (range), Transitioning (regime shifting), or Neutral. Each regime gets a different sensitivity, and each timeframe gets its own scaling on top of that.
Third, an exhaustion-and-recede state machine gated by structural gradient sign. The signal does not fire when the Phase Gap simply crosses a level. It fires only when the gap has first reached a qualified peak and then receded by a meaningful fraction of that peak - confirming exhaustion has begun - and only when that exhaustion direction opposes the sign of the medium-horizon efficiency. This is a directional fade of short-horizon energy against the prevailing structural gradient.
---
Mathematical Foundation
The script is built from three primitive calculations. All other logic flows from these.
Transport over n bars equals close minus close n bars ago. This measures net displacement.
Agitation over n bars equals the sum of absolute bar-to-bar price changes across that window. This measures total path length.
Efficiency over n bars equals transport divided by agitation. This produces a signed value bounded between -1 and +1. Positive values indicate net upward directional purity, negative values indicate net downward directional purity, and values near zero indicate chop.
The Phase Gap is the short-horizon efficiency minus the medium-horizon efficiency, divided by the rolling maximum of the absolute raw gap. This normalization keeps the Phase Gap roughly within plus or minus one regardless of market conditions.
A realignment signal fires when the Phase Gap has peaked beyond a regime-adjusted threshold and then receded by a meaningful fraction of that peak, AND the sign of the medium-horizon efficiency points in the direction opposite to the burst that just exhausted.
This calculation family is conceptually related to efficiency-ratio style measurements. PXR's originality lies in the multi-horizon phase-gap construction, the regime-adaptive thresholding, and the exhaustion-and-recede state machine.
---
Recommended Timeframes and Markets
PXR is built for intraday operation. The timeframe-adaptive logic is tuned for 1-minute through 15-minute charts. The default Auto-Scale setting recalibrates the horizons so the same physical time window of analysis is used regardless of timeframe.
The phenomenon PXR studies appears most cleanly on liquid intraday instruments. Crypto majors such as BTCUSDT and ETHUSDT on 5-minute and 15-minute charts work well because crypto exhibits meaningful path tortuosity - the agitation-to-transport ratio carries real information. Index futures such as NQ and ES on 5-minute and 15-minute charts also work, though session boundaries can affect the normalization window on overnight sessions.
PXR is built for intraday use. Higher timeframes such as 1H, 4H, or daily may behave differently because the regime thresholds and recede fractions are tuned for intraday energy cycles rather than multi-day structural shifts.
---
Chart Examples
The two examples below are illustrative historical signals chosen to show the engine's mechanics and visual elements. They are not representative of typical or expected outcomes. Many signals fail and reach the INVALIDATION level instead. These examples are educational only.
1. Example - Bull Realignment on BTCUSDT 15m
The annotated chart shows a complete PXR realignment cycle.
Price experienced a sharp short-horizon bearish burst from roughly 77,650 down to 76,150. During this drop, the medium-horizon efficiency gradient remained bullish - the slower 24-bar window still carried the structural upward bias from earlier hours. The yellow diagonal line traces this bullish medium-horizon gradient that the bearish burst was working against.
At the bottom of the move, the Phase Gap reached its negative peak . The bearish burst's energy was fully spent. The yellow rectangle marks the exhaustion zone where two indecision candles stalled the fall.
Beginning shortly after, the Phase Gap began receding from its negative peak. Once it had receded by the configured fraction, the exhaustion-and-recede condition was satisfied. The medium-horizon efficiency was still positive, so the structural gradient gate qualified the direction. The state machine flipped upward and the signal armed on the close of the trigger bar.
On the next bar, the entry executed at the open at 76,410. The four rails drew automatically - INVALIDATION at 75,982, TARGET 1 at 76,923, TARGET 2 at 77,351.
In this illustrative example, the price moved upward after the signal and later reached TARGET 1 and TARGET 2. This is one historical instance only. Outcomes vary, and many signals reach the INVALIDATION level instead.
2. Example - Bear Realignment and Engine
This chart illustrates three aspects of PXR that complement the phenomenon view.
First, the engine is bidirectional. The red downward callout marks a BEAR realignment signal. A short-horizon bullish burst pushed price upward over several hours. When that burst exhausted near 77,400, the Phase Gap reached its positive peak . As the gap began receding and the medium-horizon gradient pointed bearish, the exhaustion-and-recede condition triggered a BEAR signal . The four rails drew at INVALIDATION 77,465, ENTRY 76,765, TARGET 1 75,925, and TARGET 2 75,226.
Second, the regime ribbon is visible across the background. Subtle orange tints mark COMPRESSED periods where both efficiencies are low and the market is consolidating. Subtle cyan tints mark TRANSITIONING periods where the Phase Gap has stretched far and a regime shift is underway. These background colors give an at-a-glance read of market state without requiring a glance at the dashboard.
Third, the live dashboard in the top-right shows engine state in real time. State, Setup, Bias, Phase Gap, and Last all update on every bar. The five-line legend overlay explains what each field represents. At the moment of this screenshot, the BEAR signal was Triggered, the regime was COMPRESSED , and the Phase Gap reading was -0.07 - a sign the dislocation had largely normalized after the signal fired.
Together with the dashboard and regime ribbon, the engine provides a continuous reading of market state - not just point-in-time signals, but a live framework that contextualizes each signal as it forms.
---
How to Read the Chart
PXR draws several elements. Each one represents something specific.
The PHASE EXHAUSTION label, marked with an upward or downward arrow, appears at the bar where the signal arms. An upward arrow with the text " Realign Up " means a short-horizon bearish burst has exhausted against a bullish gradient , and the studied behavior is upward realignment. A downward arrow means the opposite. The label is anchored outside the bar's price extreme so it does not clash with other chart elements.
The ENTRY rail is a dashed line drawn at the open of the bar immediately after the signal armed. This is the reference entry level. The script does not place orders - it visualizes the reference level a real-time user could have acted on.
The INVALIDATION rail is a solid red line. If price reaches this level, the realignment thesis is rejected. This level is calculated as the worse of two values: a structural swing high or low with an ATR buffer, or a minimum ATR-floored distance from entry. Whichever is further from entry is used. This guarantees the invalidation level is never crammed inside short-term noise.
The TARGET 1 and TARGET 2 rails are teal solid lines placed at user-configurable R-multiples of the invalidation distance. These represent profit objectives. The defaults are 1.2R and 2.2R, which can be modified in the Risk Settings group.
All four rails extend forward bar by bar while the trade is conceptually active, and their labels trail slightly ahead of the live bar so they remain visible at the right edge of the chart.
The regime ribbon is a subtle background tint. Red indicates an Extended regime, orange indicates Compressed, cyan indicates Transitioning, and faint grey indicates Neutral. The ribbon helps users see at a glance which regime the engine currently classifies the market in.
The active tint colors bars green during an active long observation and red during an active short observation. This is purely visual and can be toggled off.
---
How to Read the Dashboard
The dashboard sits in the top-right of the chart and shows six live readings.
State shows the current regime classification. Extended means the medium-horizon efficiency is high - the market has a clean directional gradient. Compressed means both efficiencies are low - the market is ranging. Transitioning means the Phase Gap has stretched far - a regime change is in progress. Neutral means none of the above.
Setup shows the realignment setup progress. No Setup means nothing is forming. Forming means the Phase Gap has reached 60 percent of the threshold. Watching means the Phase Gap has reached 85 percent of the threshold - a setup is building but no signal has fired yet. Armed means a confirmed signal has fired and is awaiting next-bar execution. Triggered means a trade observation is currently active.
Bias shows the direction of the medium-horizon efficiency gradient. BULL means the structural gradient points up. BEAR means it points down. A dash means it is neutral.
Phase Gap shows the live normalized Phase Gap value, roughly bounded within plus or minus one. The color brightens when the absolute value exceeds the threshold.
Last shows the direction of the most recently triggered realignment.
---
Settings Explained
Core Settings.
Auto-Scale Horizons: when on, the Short and Medium horizons are automatically recomputed per timeframe so the analysis covers similar physical time on every chart. When off, the manually entered horizon lengths are used. Recommended on for users who switch between timeframes.
Short Horizon: bars used to measure short-horizon efficiency. Lower values are more reactive but noisier. Default 7. Ignored when Auto-Scale is on.
Medium Horizon: bars used to measure the structural efficiency gradient. Should span one meaningful intraday cycle. Default 24. Ignored when Auto-Scale is on.
Phase Gap Threshold: the normalized Phase Gap level required for a peak to qualify as exhaustion-grade. Higher values yield fewer but stronger signals. Default 0.58.
Cooldown Bars: minimum bars between two consecutive signals. Prevents clustering during noisy regimes. Default 3.
Risk Settings.
ATR Length: the ATR window used for the volatility-based stop floor. Default 14.
ATR Floor Multiplier: minimum stop distance expressed as a multiple of ATR. Ensures the stop is never inside short-term noise. Default 1.0.
TP1 R-Multiple: first profit target expressed as a multiple of the invalidation distance. Default 1.2.
TP2 R-Multiple: final profit target expressed as a multiple of the invalidation distance. Default 2.2.
Visuals.
Show Regime Ribbon: toggles the background regime tint.
Show Active Tint: toggles the green or red bar coloring during an active observation.
Show Dashboard: toggles the top-right state dashboard.
---
Execution Model - Why This Is Honest
PXR uses a strict two-bar workflow. The signal arms only on the close of a confirmed bar - this is enforced by a barstate-confirmed gate inside the engine. The entry then executes at the open of the next bar. This means the entry price shown on the chart matches what a real-time user could have achieved by placing a market order the moment the signal arms.
This workflow prevents the most common form of repaint illusion. The script does not use lookahead data. It does not use future bars. It does not modify past signal positions. Historical signals on the chart represent the same logic that fires in real time.
---
What the Indicator Does Not Do
PXR does not predict future price. It identifies a measurable energy state and labels the observation. It does not place trades. It does not guarantee outcomes. It does not work on all markets in all conditions. It is not a substitute for risk management, position sizing, or contextual judgment.
The realignment behavior is an observed tendency on historical data, not a certainty or guarantee.
The invalidation rail exists precisely because failure is expected and must be bounded.
---
Limitations You Should Know
Session boundaries on instruments such as NQ and ES can compress the rolling normalization window during overnight low-liquidity periods. This can make the Phase Gap appear weaker than it would on a continuous session.
The engine is intentionally reversal-focused. It does not generate continuation signals. In strong trending markets, reversal signals may underperform compared to a continuation tool because the structural gradient is not exhausting - it is reinforcing itself.
Auto-Scale produces horizon values that may differ substantially from the manual input defaults. If a user toggles Auto-Scale off after operating with it on, the manual values will be used immediately and behavior will shift.
On very long historical lookbacks at 1-minute resolution, the efficiency calculation may require additional processing time due to the bar-by-bar path-length computation. If performance is a concern, reducing the Medium Horizon input or enabling Auto-Scale on faster timeframes will reduce the load.
---
Disclaimer
This script is provided for educational and analytical use only. It does not provide financial, investment, or trading advice. It does not guarantee any specific outcome. Past behavior of the indicator on historical data does not imply future results. Markets carry risk. Use independent judgment, sound risk control, and full market context before acting on any signal or observation produced by this tool. The author is not responsible for any decisions made on the basis of this script.
Indicator

Roy CCI Price BandRoy CCI Price Band
Roy CCI Price Band is a momentum-volatility indicator that combines the strength of the Commodity Channel Index (CCI) with a dynamic Bollinger-style price band system to help traders identify bullish pressure, bearish pressure, volatility expansion, and potential reversal zones directly on the price chart.
Unlike traditional CCI indicators that appear in a separate lower panel, this indicator transforms CCI momentum into a live adaptive price wave that reacts dynamically to market conditions.
The bands expand during strong momentum and volatility, and contract during slow or sideways market conditions.
This indicator is highly suitable for:
Trend following
Momentum breakout trading
Pullback trading
Volatility analysis
Scalping and intraday trading
Mobile PulseWire users
━━━━━━━━━━━━━━━━━━
FEATURES
━━━━━━━━━━━━━━━━━━
• Dynamic CCI Price Band
• Bullish & Bearish Volatility Wave
• Adaptive ATR Expansion System
• Dynamic Momentum Pressure Detection
• Trend Balance Middle Line
• Reversal Dot Signals
• Mobile Friendly Visualization
• Adjustable Opacity & Color System
• Smooth Cinematic Band Display
━━━━━━━━━━━━━━━━━━
HOW TO READ THE INDICATOR
━━━━━━━━━━━━━━━━━━
GREEN BAND = BULLISH MOMENTUM
When the band turns green, it indicates bullish momentum is dominating the market.
The larger and wider the green band becomes:
→ the stronger the buying pressure.
━━━━━━━━━━━━━━━━━━
RED BAND = BEARISH MOMENTUM
When the band turns red, it indicates bearish momentum is dominating the market.
The larger and wider the red band becomes:
→ the stronger the selling pressure.
━━━━━━━━━━━━━━━━━━
EXPANDING BAND
When the upper and lower bands move further apart:
→ market volatility is increasing.
→ this often happens during strong trends or breakout movements.
━━━━━━━━━━━━━━━━━━
CONTRACTING BAND
When the band becomes narrow:
→ the market is slowing down or moving sideways.
This condition often appears before a major breakout occurs.
━━━━━━━━━━━━━━━━━━
WHITE MIDDLE LINE
The white middle line represents the equilibrium or trend balance area.
Price above the white line:
→ bullish bias.
Price below the white line:
→ bearish bias.
━━━━━━━━━━━━━━━━━━
SIGNAL DOTS
Green dot:
→ potential bullish momentum recovery.
Red dot:
→ potential bullish weakness or bearish reversal.
━━━━━━━━━━━━━━━━━━
SUGGESTED USAGE
━━━━━━━━━━━━━━━━━━
• Use together with market structure or support & resistance
• Highly effective when combined with EMA or trend filters
• Suitable for XAUUSD, Forex, Crypto, and Indices
• Works best in trending market conditions
• Recommended timeframes:
Scalping: M1–M5
Intraday: M15–H1
Swing Trading: H4–D1
━━━━━━━━━━━━━━━━━━
RECOMMENDED SETTINGS
━━━━━━━━━━━━━━━━━━
Band Fill Opacity: 85
Band Line Opacity: 50
Middle Line Opacity: 40
Band Strength: 1.5
━━━━━━━━━━━━━━━━━━
DISCLAIMER
━━━━━━━━━━━━━━━━━━
This indicator is designed to assist market analysis and does not guarantee profits. Always apply proper risk management before entering any trade. Indicator

RocketFlowRocketFlow is a volatility-compression breakout indicator designed to identify when price is preparing to aggressively challenge or cross the Ichimoku Cloud. The system combines cloud structure, ATR-based resistance proximity, momentum acceleration, candle expansion, RSI pressure, trend behavior, and compression analysis to detect high-pressure market conditions before expansion moves occur. Signals are graded into multiple strength tiers based on breakout quality, momentum force, and structural alignment, helping traders identify early pressure buildup as well as stronger breakout attempts. The indicator is built around the idea that explosive moves often originate from compressed price action positioned just beneath key resistance zones, particularly near the Ichimoku Cloud and ATR-defined pressure areas.
In addition to the Rocket breakout system, the indicator also includes ATR-based LONG signals designed to detect reclaim setups, support holds, and momentum continuation opportunities near dynamic ATR support zones.
The visual system is designed to show the different stages of breakout development and post-signal behavior:
Red, yellow, and dark green circles represent “Pre-Rocket” formation stages, showing when pressure and momentum are beginning to build beneath the cloud before a full breakout signal is confirmed.
Green and aqua triangles represent Rocket breakout signals. Smaller green triangles indicate weaker or earlier breakout attempts, while larger aqua triangles represent the strongest “God Rocket” expansion conditions with the highest momentum and breakout quality.
LONG triangles below price represent ATR Support LONG signals triggered from reclaim or support continuation setups.
Orange and red squares monitor post-breakout behavior. Orange squares warn of weakening momentum or rejection behavior after a launch, while red squares indicate more serious breakdown or stop-risk conditions.
Yellow and green lower squares track healthy pullbacks and potential re-entry opportunities after an initial breakout move.
The purple ATR line acts as a dynamic volatility-based support and trailing structure level.
The Ichimoku Cloud itself functions as the primary resistance and pressure zone the system is attempting to predict price crossing through. Indicator

Indicator

Price to Sales Ratio [Gabremoku]Price to Sales Ratio is a valuation indicator designed to help investors analyze how expensive or cheap a stock is relative to its revenue.
The script calculates the P/S ratio using market capitalization divided by total trailing-twelve-month revenue, then enriches that raw valuation with historical averages, rolling Z-score, percentile ranking, 52-week extremes, and sector benchmark comparison. The price-to-sales ratio is commonly used as a revenue multiple, especially for companies where earnings may be weak, negative, or highly variable.
This makes the indicator useful for growth stocks, cyclical companies, and early-stage businesses where price-to-earnings can be less informative than revenue-based valuation.
What it shows
📊 Current P/S Ratio — the live valuation multiple based on:
current stock price
total shares outstanding
trailing-twelve-month revenue
📈 Historical Average — choose between:
Cumulative Average for the full available history
Rolling Average based on a user-defined lookback in years
🧮 Z-Score Mode — switch from raw P/S to a statistical valuation view that shows how far the current ratio is from its rolling average in standard deviations.
📍 Historical Percentile — shows where the current P/S sits within its historical range over the selected lookback.
📅 52-Week High / Low — provides a fast valuation range reference for the last trading year.
🏭 Sector Benchmark — compare the company’s P/S ratio against a benchmark using:
Auto-detected sector
Sector index
Manual sector value
Why P/S matters
The P/S ratio tells you how much investors are paying for each dollar of company revenue. A lower P/S ratio is often considered more attractive when comparing similar companies in the same industry, but sector differences matter a lot.
That last part is important: P/S should not be judged in isolation. Technology companies often trade at much higher revenue multiples than energy, materials, or consumer businesses, so comparing a stock only against a generic threshold can be misleading. Sector-relative comparison is generally more meaningful than absolute comparison.
Benchmark logic
This indicator includes one of its strongest features: sector context.
It can automatically estimate a sector benchmark through:
exact ticker lookup
keyword-based sector detection
manual fallback sector selection
That matters because P/S multiples vary materially by industry, and valuation comparison is most useful when done against companies or sectors with similar economic characteristics.
The script then colors the main P/S line with a practical valuation model:
🟢 Green — P/S below benchmark, potentially undervalued relative to sector
🟠 Orange — P/S above benchmark but below historical average, more neutral / fair-value zone
🔴 Red — P/S above historical average, potentially expensive relative to its own history
Features
✅ Live Price-to-Sales ratio calculation
✅ Uses total shares outstanding and TTM revenue
✅ Cumulative or rolling historical average
✅ Z-score mode for statistical valuation
✅ Historical percentile ranking
✅ 52-week valuation high/low
✅ Sector benchmark comparison
✅ Auto sector detection with hybrid logic
✅ Manual and sector-index benchmark options
✅ Dynamic color coding based on valuation regime
✅ Ultra-smooth gradient fill between current P/S and benchmark
✅ Dashboard with key statistics
✅ Last-value chart label
How to use
A practical way to read the script is:
🔎 Start with the current P/S ratio.
📊 Compare it with the sector benchmark to see whether the stock trades richer or cheaper than its industry.
🧮 Check the Z-score to understand whether the current valuation is stretched versus its own historical behavior.
📍 Use the percentile to see where today’s valuation sits within the selected lookback window.
This approach combines absolute valuation, relative valuation, and historical context in one screen, which is much more useful than reading the raw P/S ratio alone.
Operational suggestion
💡 Suggested workflow
🟢 Value watchlist setup: look for stocks with current P/S below sector benchmark and below their own historical average. A lower P/S relative to peers can indicate more attractive valuation, provided the business quality is not deteriorating.
🟠 Neutral zone: if the stock is above benchmark but still below or near its historical average, it may be in a fairer valuation zone rather than clearly cheap or expensive.
🔴 Stretch zone: if the stock is trading with a high Z-score, high percentile, and above both benchmark and average, it may be priced aggressively relative to its own history and sector context.
📈 Best use case: this indicator is especially useful for companies with unstable earnings, where P/E may be less reliable and revenue multiples can provide a cleaner valuation anchor.
A strong practical rule:
use P/S for initial screening
use sector benchmark for context
use Z-score and percentile for timing
then confirm with margins, growth, debt, and cash flow
Because revenue alone does not tell you whether that revenue is profitable.
Notes
This indicator is best suited for relative valuation analysis, not for making a final investment decision on its own. A low P/S ratio can reflect undervaluation, but it can also reflect weak margins, declining sales quality, or poor business outlook, so it should always be paired with profitability and growth analysis.
Author: Gabremoku Indicator

Z-Score OscillatorZ-Score Oscillator is a statistical momentum tool that measures how far the current price is from its rolling mean in standard-deviation units, then optionally normalizes that measurement into a fixed-range oscillator for clean overbought/oversold reading. It combines classical statistical rigor with modern enhancements — robust calculation methods, multi-period adaptive thresholds, low-lag smoothing, and built-in divergence detection — into a single configurable indicator.
── What It Measures ──
The core calculation is the z-score: the number of standard deviations the current source value sits above or below its rolling mean. A z-score of +2 means price is two standard deviations above its average; -2 means two below. This converts raw price action into a statistically grounded measure of extremity that adapts automatically to changing volatility regimes.
Unlike traditional oscillators with arbitrary fixed scales (RSI 0–100, Stochastic 0–100), z-score is grounded in the actual statistical distribution of the data. A reading of +2.5 has the same statistical meaning across any asset, timeframe, or volatility environment.
── What It's For ──
Identifying statistical extremes for mean-reversion setups
Confirming trend strength via persistent z-score elevation
Spotting divergences between price and underlying momentum
Cross-asset and cross-timeframe comparison on a normalized scale
Filtering signals from other indicators based on statistical context
══════════════ FEATURES ══════════════
── Three Display Modes ──
Oscillator Mode (default) — Normalizes the z-score into a fixed-scale oscillator where the upper and lower percentile thresholds map to +100 and -100 respectively. Provides familiar overbought/oversold semantics with consistent visual scale regardless of volatility regime.
Z-Score Mode — Classic floating z-score display with dynamic percentile threshold lines that adapt to the current distribution. Best for users who want to see raw statistical extremity values.
Percentile Rank Mode — Plots the rank of the current z-score within the lookback window, centered on zero. Range spans roughly ±50, with bands marking the configured percentile cutoffs. Distribution-free; ideal for non-Gaussian data.
── Calculation Methods ──
Mean / StDev (classic) — Standard z-score using rolling arithmetic mean and standard deviation. Statistically conventional but sensitive to outliers — a single price spike can inflate the standard deviation and suppress future readings.
Median / MAD (robust) — Robust z-score using the rolling median and median absolute deviation (scaled by 1.4826 for Gaussian consistency). Outlier-resistant and dramatically more stable on instruments prone to wicks, gaps, or volume spikes. Recommended for crypto, futures, and any data with non-Gaussian tails.
── Smoothing System ──
Five smoothing algorithms available, applied to the raw z-score before normalization so both Oscillator and Z-Score modes inherit the smoothed series cleanly:
ALMA — Gaussian-weighted moving average with configurable offset and sigma
LinReg — Linear regression endpoint
Hull MA — Low-lag weighted moving average (default)
Super Smoother — Ehlers 2-pole Butterworth filter
Two-Pole Gaussian — Ehlers Gaussian filter with minimal phase distortion
Default is Hull MA at length 5 — fast, low-lag, and effective for reducing bar-to-bar jitter without dampening genuine moves.
── Multi-Period Percentile Blend ──
Rather than relying on a single lookback window to define overbought/oversold thresholds, the indicator can blend percentile calculations across three configurable periods (default 50/100/200 bars, equally weighted). This creates more stable, regime-aware threshold levels:
Short period reacts quickly to recent volatility shifts
Medium period provides intermediate context
Long period anchors the thresholds against deeper history
Each period's weight is user-adjustable and auto-normalized. Set any weight to zero to exclude that period from the blend. Enabled by default for more sophisticated threshold behavior out of the box.
── Divergence Detection ──
Detects four types of divergence between price and the displayed oscillator value:
Regular Bullish — Price makes a lower low while oscillator makes a higher low (potential reversal up)
Regular Bearish — Price makes a higher high while oscillator makes a lower high (potential reversal down)
Hidden Bullish — Price makes a higher low while oscillator makes a lower low (trend continuation up)
Hidden Bearish — Price makes a lower high while oscillator makes a higher high (trend continuation down)
Pivot detection uses configurable left/right lookback bars with a range filter for the distance between pivots. Optional repaint-prevention mode delays plotting until the candle closes. Divergence detection runs against the active display mode, so divergences are detected against the same series being shown to the user.
The divergence detection logic is based on the open-source Divergence Indicator (any oscillator) by yatrader2 , adapted to v6 and integrated into the unified plotting and theming system.
── Theme & Visual System ──
Six color themes — Modern (default cyan/red), Classic (green/red), Neon (high-contrast green/magenta), Monochrome (grayscale), Sunset (warm orange/coral), Ocean (full-blue palette). The theme applies to every visual element: line color, zone fills, threshold lines, divergence labels, glow, and background tint.
Gradient line coloring — Optional smooth color transition through the theme palette based on position within the threshold range, replacing binary sign-based coloring.
Glow effect on extremes — Multi-layer concentric halo around the main line when in overbought/oversold territory, drawing attention to actionable moments.
Background tint — Optional pane-wide background wash when in extreme zones, matching the OB/OS fill color.
OB/OS color fill — Toggleable fill between the main line and the upper/lower bands when in extreme territory.
══════════════ ATTRIBUTION ══════════════
Divergence detection adapted from the open-source Divergence Indicator (any oscillator) by yatrader2 . Indicator

Crypto Ultimate Indicator v2═══════════════════════════════════════════════
CRYPTO ULTIMATE INDICATOR (CUI)
═══════════════════════════════════════════════
A multi-layer confluence system for crypto traders. Stacks 12+ independent technical layers — trend, momentum, volume, regime, multi-timeframe bias, and Smart Money Concepts — and fires Buy/Sell signals only when enough of them agree. Every signal comes with a confidence score, three take-profit levels, position size recommendation, and live outcome tracking.
Built for 4H and Daily crypto charts. No proprietary "secret sauce" — every component is documented and every input is exposed.
━━━━━━━ WHY THIS EXISTS ━━━━━━━
Most multi-indicator scripts stack correlated trend filters (more EMAs, more oscillators) and call it "confluence." That just adds the illusion of agreement without adding independent information.
CUI's filter stack is built from genuinely different signal sources, so when they align, that alignment carries real weight:
• Trend regime — HMA + Supertrend + EMA Ribbon
• Momentum — RSI with proper pivot-to-pivot divergence
• Volume flow — body-weighted Volume Delta + CVD divergence
• Volatility state — Bollinger squeeze + squeeze-release timing
• Market structure — composite of ADX, Choppiness Index, BB-width percentile
• Multi-timeframe — weighted Daily / Weekly / Custom HTF (all offset, no repaint)
• Liquidity & gaps — Fair Value Gaps + Liquidity Sweep detection
• External context — optional BTC trend filter for alt trading
A Buy or Sell only fires when the relevant subset of these align. A built-in "Why-Not" diagnostic table shows you exactly which filter is blocking a near-signal at any moment — turning the indicator into a tunable system rather than a black box.
━━━━━━━ CORE FEATURES ━━━━━━━
TREND & MOMENTUM
▸ Hull Moving Average (configurable length)
▸ Supertrend with ATR factor
▸ 5-EMA Ribbon (8/13/21/34/55) with stacking score
▸ RSI with consecutive-pivot divergence detection
▸ MACD and Stochastic RSI (data window)
VOLUME
▸ Body-weighted Volume Delta (not naive close-position)
▸ Cumulative Volume Delta (CVD)
▸ CVD divergence at confirmed pivots
VOLATILITY & REGIME
▸ Bollinger Bands with squeeze detection and release timing
▸ Composite regime classifier (ADX × CHOP × BB-width)
▸ Background tint for trending vs ranging states
▸ Regime transition labels
SMART MONEY CONCEPTS
▸ Fair Value Gap zones (bullish and bearish)
▸ Liquidity Sweep detection
MULTI-TIMEFRAME
▸ Daily / Weekly / User-defined custom HTF
▸ Weighted confluence score (D 1.0x + W 1.5x + Custom 0.75x)
▸ Optional HTF pivot-based S/R lines
BTC CONTEXT (for alt traders)
▸ Optional BTC trend filter
▸ Relative strength vs BTC
SIGNAL ENGINE
▸ 0-100 confidence score
▸ Configurable minimum confidence threshold
▸ Auto-tune presets (Aggressive / Balanced / Conservative / Custom)
▸ Confirmation bar requirement
▸ Minimum spacing between signals
TRADE MANAGEMENT
▸ Three take-profit levels (TP1/TP2/TP3) with configurable ATR multipliers
▸ Custom % allocation per target
▸ Adaptive SL/TP — different distances in trending vs ranging conditions
▸ Break-even stop activation after TP1
▸ Chandelier ATR trailing stop on runner portion
▸ Position size calculator (account size × risk % × confidence multiplier)
LIVE TRACKING & DIAGNOSTICS
▸ Main dashboard with all current state
▸ Signal log table — last N trades with live TP/SL outcomes
▸ Why-Not diagnostic — which filter is currently blocking each direction
▸ Regime stats — win rate broken down by trending vs ranging
ALERTS
▸ 15+ classic alertcondition triggers
▸ Optional JSON webhook payload for bot integration
━━━━━━━ HOW A BUY SIGNAL FIRES ━━━━━━━
All of the following must be true on the signal bar:
1. HMA trending up
2. RSI above 50
3. Volume delta positive
4. EMA Ribbon score ≥ +3 (at least 4 of 5 aligned bullish)
5. Supertrend bullish
6. HTF confluence score ≥ +1.5
7. Confidence score ≥ user minimum
8. BTC trend bullish (if BTC filter enabled)
9. Price not inside opposing FVG zone (if FVG filter enabled)
10. Market not in strong ranging mode
11. Price more than 0.5 ATR from upper resistance zone
12. Candle body > 50% of range
13. Minimum bars elapsed since last signal
14. Confirmation bar (if enabled)
A Sell signal requires the inverse. On 4H BTC expect roughly 1-3 signals per week in normal conditions. If you see fewer, drop the confidence floor or switch to the Aggressive preset.
━━━━━━━ RECOMMENDED USE ━━━━━━━
▸ Primary: 4H on BTC/USDT, ETH/USDT, and majors
▸ Also works: Daily, 12H, 8H
▸ Use caution below 1H — noise increases, news spikes can trigger wicks
▸ Low-liquidity alts: bump ATR period to 21
WORKFLOW
1. Start on the Balanced preset
2. Watch the dashboard and Why-Not panel for a few sessions
3. Adjust the confidence floor based on signal frequency
4. Enable Regime Stats after chart history accumulates
5. For bots: enable JSON webhook alerts, route via "Any alert() function call"
━━━━━━━ REPAINT DISCLOSURE ━━━━━━━
Full transparency on what does and doesn't repaint:
▸ HMA, Supertrend, EMA Ribbon: repaint on the developing current bar (use bar-close confirmation for live trading)
▸ HTF confluence (D/W/Custom): all use offset — fetch last closed HTF bar only — NO intra-period repaint, NO lookahead
▸ RSI and CVD divergence labels: plotted at confirmed pivot bar (5 bars after the actual pivot). Do NOT appear and disappear.
▸ FVG zones: drawn on confirmation bar of the 3-bar gap pattern. Do not repaint once drawn.
▸ Liquidity sweeps: detected on bar close
▸ Trade outcomes (signal log): evaluated on each closing bar
▸ Regime transition labels: confirmed on bar close
━━━━━━━ HONEST LIMITATIONS ━━━━━━━
▸ This is a decision-support tool, not a complete trading system. Risk management, position discipline, and execution matter more than any indicator.
▸ Signal outcomes in the Regime Stats table are based on bar-close evaluation. Real-fill slippage is not modeled.
▸ Volume Delta is approximated from candle structure, not true tick-level bid/ask (PulseWire doesn't expose that without premium feeds).
▸ FVG and liquidity sweep are simplified interpretations of those concepts — pure SMC purists may prefer dedicated tools.
▸ The regime classifier is a heuristic composite. It works well on liquid crypto pairs but can lag at sharp inflection points.
▸ Past performance does not predict future results.
━━━━━━━ SETTINGS OVERVIEW ━━━━━━━
The script has many inputs, grouped by function. For first-time users, the most important groups are:
▸ Preset & Theme → pick Balanced to start
▸ UI Sizing → table text and label sizes
▸ Signal Engine → set Minimum Confidence Score
▸ Tiered Exits → TP/SL multipliers and % allocation
▸ Position Sizing → account size and risk per trade
▸ Alerts & Webhooks → enable JSON for bot trading
Default state shows a clean chart: HMA, Supertrend, BB, regime tint, signal labels, plus three tables (dashboard, signal log, HTF panel). Everything else is one toggle away — EMA Ribbon, FVG boxes, ATR zones, HTF S/R lines, CVD divergence labels, sweep markers, Why-Not diagnostic, Regime Stats.
━━━━━━━ WHAT'S NOT INCLUDED ━━━━━━━
▸ Full strategy() backtest — this is an indicator(). A companion strategy script may be released separately.
▸ Funding rate / open interest overlays — require specific tickers not universally available
▸ Chart pattern recognition (H&S, wedges, etc.)
━━━━━━━ CREDITS ━━━━━━━
Built on Pine Script v6. Uses PulseWire built-ins: ta.supertrend, ta.dmi, ta.bb, ta.macd, ta.rsi, ta.pivothigh, ta.pivotlow, ta.valuewhen. Choppiness Index, CVD, FVG detection, liquidity sweep logic, regime classifier, confidence scoring, trade tracking, and confluence weighting are custom implementations.
═══════════════════════════════════════════════
Indicator

Indicator

TRIX Chart DivergenceTRIX Chart Divergence is based on one of my favorite oscillators.
The main feature of this indicator is that TRIX divergences are drawn not only in the oscillator pane, but also directly on the price chart.
This makes divergence much easier to read, especially for intraday trading and scalping. Instead of looking back and forth between price and the oscillator, you can immediately see where price made a new high or low and where TRIX failed to confirm that move.
For me, this is the most useful way to work with TRIX.
A bullish divergence appears when price makes a lower low, but TRIX does not confirm that move and forms a higher low. A bearish divergence appears when price makes a higher high, but TRIX does not confirm it and forms a lower high.
This type of divergence can warn about a possible correction or trend reversal. I especially like watching TRIX divergences on higher timeframes, because they can mark important exhaustion points. The indicator includes alerts for bullish and bearish divergences, so you can monitor multiple instruments and timeframes without watching every chart all the time.
I also use TRIX on the 1-minute gold chart for intraday trading. On lower timeframes, I use it together with my own setups, price action, levels and other confirmation tools.
TRIX is simple and clean. When the TRIX line crosses the signal line in the lower area, it can show a possible bullish momentum shift. When the cross appears in the upper area, it can show a possible bearish momentum shift. In this indicator, bullish and bearish TRIX crosses are marked with small green and red dots.
TRIX does not have fixed overbought and oversold levels like RSI or Stochastic. That is why I added adaptive range levels. These levels show where TRIX is trading compared to its recent range. When TRIX moves outside this adaptive range, it can highlight stronger momentum extremes.
The adaptive range levels are optional. You can use the indicator in the classic way without them, or keep them on as an additional visual guide.
Main features:
- TRIX and signal line
- Histogram
- Small green and red dots on TRIX crossovers
- Bullish and bearish TRIX divergences
- Divergence lines in the oscillator pane
- Optional divergence lines directly on the price chart
- Optional adaptive TRIX range levels
- Alerts for TRIX crosses and divergences
Settings:
TRIX Length / Signal Length
Controls the basic TRIX calculation and signal line. Lower values make the oscillator more sensitive. Higher values make it smoother.
Adaptive Range Levels
Optional dynamic levels that show where TRIX is trading compared to its recent range. They can help identify stronger momentum extremes. You can turn them off if you prefer the classic TRIX view.
Range Lookback Bars
Defines how many previous bars are used to calculate the adaptive range. A larger value makes the range smoother and more stable. A smaller value makes it react faster.
Range Smoothing
Smooths the adaptive range levels.
TRIX Pivot Sensitivity
Controls how sensitive divergence detection is. Lower values find more divergences. Higher values show fewer but cleaner divergences.
Price Search Radius
Allows the script to search around the TRIX pivot and find the closest price high or low for drawing the divergence line.
Max Bars Between Points
Defines the maximum distance between two TRIX pivot points used for divergence detection.
Draw divergence line on TRIX
Shows the divergence line in the oscillator pane.
Draw divergence line on price chart
Shows the same divergence directly on the price chart.
Important:
This indicator is not a standalone trading system.
TRIX crosses and divergences are designed to help identify momentum shifts, exhaustion points and possible correction zones.
For best results, use it together with price action, support and resistance, trend structure, higher timeframe context and your own confirmation setup.
A divergence can warn about a possible correction or reversal, but it does not mean that price must reverse immediately. Indicator

Indicator

Institutional Momentum & Liquidity Matrix
Institutional Momentum & Liquidity Matrix
■Overview
This tool is a quantitative analysis suite designed to bridge the gap between price momentum and market liquidity structure. Moving away from the traditional approach of monitoring "where the RSI is currently," it calculates the exact price required for the RSI to reach overbought/oversold levels on the next candle and visualizes it directly on the chart. This projection is overlaid with an RSI-Anomaly Volume Profile to highlight true structural exhaustion.
■1. Originality and Design Philosophy
While RSI and Volume Profile are widely used, they are typically viewed in isolation, leading to false signals. This script is original because it mathematically merges them:
1. It projects the theoretical elastic limits of momentum directly onto the price scale using algebraic reversal of Wilder's Smoothing.
// Algebraic Reversal of Wilder's Smoothing (RMA)
f_get_reverse_price(target_rsi) =>
float target_rs = target_rsi / (100.0 - target_rsi)
float req_up = (target_rs * prev_rma_d * (rsi_len - 1)) - (prev_rma_u * (rsi_len - 1))
float req_down = (prev_rma_u * (rsi_len - 1) / target_rs) - (prev_rma_d * (rsi_len - 1))
float rev_price = req_up > 0 ? prev_c + req_up : (req_down > 0 ? prev_c - req_down : prev_c)
rev_price
2. It filters a Lower Timeframe (LTF) Volume Profile using LTF RSI data, discarding neutral volume and coloring only the specific price nodes where momentum reached extreme anomalies.
// RSI Anomaly Matrix & Peak Retention Logic
bool is_significant = (intensity * 100.0) >= vol_threshold
color base_c = color_prof_neutral
if is_significant
if rsi_color_mode == "Peak Retention"
if max_rsi >= rsi_ob and min_rsi <= rsi_os
base_c := (max_rsi - 50.0) > (50.0 - min_rsi) ? color_ob : color_os
else if max_rsi >= rsi_ob
base_c := color_ob
else if min_rsi <= rsi_os
base_c := color_os
■2. Core Mechanism 1: Reverse RSI Projection (The Math)
Instead of tracking an oscillator bounded between 0 and 100, this script mathematically reverses J. Welles Wilder Jr.'s Smoothed Moving Average (RMA) formula.
To calculate the exact closing price required on the next bar to achieve a specific Target RSI (e.g., 70 or 30), the script uses the following logic:
RS = Target_RSI / (100 - Target_RSI)
Required_Up =
(RS * Prev_RMA_D * (Length - 1)) - (Prev_RMA_U * (Length - 1))
Required_Down =
(Prev_RMA_U * (Length - 1) / RS) - (Prev_RMA_D * (Length - 1))
It plots these calculated prices as horizontal projection lines, allowing traders to evaluate momentum limits directly on the price action.
■3. Core Mechanism 2: RSI Anomaly Liquidity Matrix
Momentum limits require structural backing to be reliable. This engine aggregates LTF data to generate a filtered Volume Profile.
・Dynamic Sessions: Generates profiles based on Daily, Weekly, Monthly, or Custom Market Sessions (Defaults are set to UTC for Oceania, Asia, London, and NY).
・RSI Anomaly Coloring: Instead of plotting standard volume, the script calculates the average LTF RSI for each price node. It only applies color to nodes where the average momentum reached extreme Overbought or Oversold levels, keeping the rest of the profile neutral. This eliminates visual noise and isolates true areas of structural exhaustion.
・Point of Control (POC): Automatically extracts and highlights the price level with the highest liquidity concentration.
■4. Configuration & Parameters
・Profile Generation Mode: Determines time boundaries. Day traders can use Custom Sessions (UTC), while swing traders benefit from Daily/Weekly structures.
・Liquidity Data Source: While 'Volume' is the standard input, 'Price Delta' is provided as a proxy to ensure the profile functions on assets lacking raw volume data (e.g., certain Forex feeds).
・Max LTF Samples per Bar: Limits how many LTF candles are processed per higher timeframe candle to optimize performance and prevent calculation limits.
・RSI Coloring Mode: Controls sensitivity. "Volume-Weighted Average" is mathematically strict but colors may neutralize over time. "Peak Retention" ensures that if a price node hits an RSI extreme at any point during the session, it permanently retains that warning color, preventing dilution.
・Significance Threshold & Hide Weak Nodes: Filters out price nodes that lack sufficient volume (e.g., under 30% of the POC volume). Graying out or hiding low-volume nodes removes noise.
・POC Proximity Filter: Fades the RSI projection lines if no historical POC is nearby, utilizing ATR to define a dynamic "safe zone." Momentum extremes without structural support are prone to false breakouts.
■5. Usage & Mindset
・Best Suited For: High-liquidity instruments (Major Forex, Indices, Large-cap Crypto) on 15M to 1H charts.
・Execution: Do not enter blindly when price hits the RSI projection line. Wait for confluence: "Is this momentum extreme backed by a colored, structural POC wall?" Use the confluence zone to define strict Stop Loss levels.
■Disclaimer
This script is a quantitative analysis tool designed for educational purposes to visualize mathematical momentum and liquidity data. It does not guarantee future profits and is not intended as a signal service. Always employ strict risk management and conduct comprehensive market analysis.
Institutional Momentum & Liquidity Matrix
概要
本ツールは、価格モメンタムと市場流動性の構造的差異を統合的に分析するための定量分析スイートです。「RSIの現在値」に依存するアプローチから脱却し、「特定のRSI水準に到達するために必要な要請価格」を逆算してチャート上に直接可視化します。さらに、RSI異常値を反映した流動性マトリックスを展開し、構造的な枯渇点を浮き彫りにします。
1. 独創性と設計思想
RSIと出来高プロファイルは広く普及していますが、単体での使用はダマシを誘発します。本スクリプトはこれらを数学的に統合した点に独創性があります。
1. Wilderの平滑化移動平均(RMA)を代数的に逆算し、モメンタムの限界値を価格スケール上に直接投影します。
2. 下位足(LTF)の出来高プロファイルをLTFのRSIデータでフィルタリングし、極端な異常値(過熱感)を記録した価格帯のみを色付けして視覚化します。
2. コア・メカニズム1: 逆算RSIプロジェクション(計算根拠)
オシレーターを監視するのではなく、RMAの計算式を逆算します。次期のローソク足で指定のRSI極値(例: 70または30)に到達するための終値を、以下のロジックで算出します。
RS = 目標RSI / (100 - 目標RSI)
必要な上昇幅 =
(RS * 前回のRMA下落幅 * (期間 - 1)) - (前回のRMA上昇幅 * (期間 - 1))
必要な下落幅 =
(前回のRMA上昇幅 * (期間 - 1) / RS) - (前回のRMA下落幅 * (期間 - 1))
算出された価格を水平線として描画し、価格アクション上でモメンタムの限界を評価可能にします。
3. コア・メカニズム2: RSI異常値・流動性マトリックス
LTFデータを集計し、高度なフィルターを備えた価格帯別出来高を生成します。
・動的セッション: 日次、週次、月次、または特定の市場セッションに対応(※セッション時間はすべてUTC基準です)。
・RSI異常値カラーリング: 各価格帯の平均LTF RSIを算出し、買われすぎ/売られすぎの極限領域に達した価格帯のみを色付けします。通常の価格帯をニュートラルカラーに保つことで視覚的ノイズを排除します。
・Point of Control (POC): 最大流動性が集中する価格帯を自動抽出し、強力なレジサポとしてハイライトします。
4. パラメーター設定
・Generation Mode (生成モード): デイトレーダーには特定の市場セッションが、スイングトレーダーには日次・週次の構造が適しています。
・Liquidity Data Source (流動性データ): 「出来高」を基本としますが、出来高データがない銘柄(一部のFX等)でも機能するよう、「価格変動幅(Price Delta)」を選択可能です。
・Max LTF Samples per Bar (最大LTF参照数): 上位足1本に対して参照する下位足の本数を制限し、計算処理を最適化します。
・RSI Coloring Mode (カラーリング感度・保持): プロファイルの色付け基準を選択します。「出来高加重平均 (Volume-Weighted)」は厳格ですが、その後の通常取引によって色が中和される性質があります。「ピーク保持 (Peak Retention)」を選択すると、セッション中に一度でもRSI異常値を記録した価格帯は、その極値カラーを履歴として保持し続けます(高感度モード)。
・Significance Threshold (有意性閾値): POCに対して一定割合に満たない価格帯をグレーアウトまたは非表示にし、真の壁のみを残します。
・POC Proximity Filter (近接フィルター): 過去のPOCが近くにない場合、プロジェクションラインをフェードアウトさせます。構造的な支持を持たない極値はダマシになりやすいため、ATRを利用したリスク管理レイヤーとして機能します。
5. 使い方と環境
・得意な環境: 流動性の高いメジャー通貨ペア、主要株価指数、大型暗号資産の15分足〜1時間足。
・思考プロセス: 価格がRSIプロジェクションに到達したからといって盲目的にエントリーせず、「その極値の背後に、色付けされたPOCの壁が存在するか」を確認してください。コンフルエンス領域を基準に、厳格な損切りを設定してください。
免責事項
本スクリプトは、数学的モメンタムおよび流動性データを可視化し、市場構造の理解を深めるための教育用ツールです。将来の利益を保証するものではなく、シグナル配信ツールではありません。常に適切なリスク管理と独自の市場分析を行ってください。
Indicator

Buy Sell Pressure Oscillator [forexobroker]Buy Sell Pressure Oscillator splits each bar's volume into estimated buy volume and estimated sell volume using where price closed within the bar's range, then smooths the net difference into a normalised -100..100 pressure oscillator. The oscillator's sign sets a pressure regime; a reclaim-EMA cross times entries, or the raw zero-line cross in Zero-Cross-Only mode. It turns raw volume into a directional read of who is in control.
🔶 ALGORITHM
1. Compute the close position in range: (close - low) / (high - low), defaulting to 0.5 on a zero-range bar.
2. Estimate buy volume = volume x close-position, and sell volume = volume x (1 - close-position).
3. Take the net buy-minus-sell volume and smooth it with an EMA over the Pressure Smoothing length.
4. Normalise the smoothed net by average volume over the Volume Norm Length and scale to a -100..100 oscillator.
5. The oscillator sign sets the pressure regime (positive = buy, negative = sell); |oscillator| above Strong Pressure flags a strong regime.
6. Inside the active regime, a close-cross of the Entry Reclaim EMA times the entry; in Zero-Cross-Only mode the oscillator's zero-line cross fires instead.
🔶 SIGNAL LOGIC
- Buy: in-session AND regime tradable AND (Zero-Cross-Only: oscillator crosses above zero; else buy regime AND close crosses over reclaim EMA) AND not already long AND cooldown elapsed AND barstate.isconfirmed (position-locked).
- Sell: in-session AND regime tradable AND (Zero-Cross-Only: oscillator crosses below zero; else sell regime AND close crosses under reclaim EMA) AND not already short AND cooldown elapsed AND barstate.isconfirmed (position-locked).
Only fires when the pressure regime is tradable (or strong, if Require Strong Pressure is on).
🔶 INPUTS
- Pressure: EMA smoothing applied to net buy-minus-sell volume; default Pressure Smoothing = 14.
- Pressure: average-volume length the pressure is normalised by; default Volume Norm Length = 20.
- Pressure: Strong Pressure threshold on the |oscillator|; default Strong Pressure = 25.0.
- Pressure: ATR length for context; default ATR Length = 14.
- Signal Logic: Entry Reclaim EMA that times the entry inside the regime; default Entry Reclaim EMA = 9.
- Signal Logic: Zero-Cross-Only mode and Require Strong Pressure toggles; both default off.
- Signal Logic: Cooldown bars between signals; default Cooldown Bars = 5.
- Filters / Visual: optional session window, dashboard, 3-layer glow, reclaim-EMA plot, and colors; dashboard default on.
🔶 ALERTS
BSP Buy, BSP Sell, BSP Any Signal, BSP Zero Up, BSP Zero Down, BSP Strong Buy, BSP Strong Sell, BSP EMA Up, BSP EMA Down, BSP Bull Regime, BSP Bear Regime, BSP Any Zero Cross, BSP Webhook JSON.
🔶 LIMITATIONS
- The buy/sell split is an estimate from close-in-range, not true order-flow tick data.
- Requires a real volume feed; symbols with no or synthetic volume produce a meaningless oscillator.
- Needs warm-up bars for the smoothing EMA and the volume normalisation window.
- Strong-pressure default is tuned for liquid instruments; thin markets may need a different threshold.
- The reclaim EMA adds deliberate entry lag versus the raw zero-cross, by design. Indicator

Indicator

Indicator

Indicator

Currency Strength RoC Panels (RoC Only) + TriggersCurrency Strength Slope (ROC)
Currency Strength Slope is a relative currency momentum indicator designed to measure and rank the rate of change across the major currency basket.
Instead of looking at one Forex pair in isolation, this indicator evaluates the underlying momentum of each major currency individually: EUR, USD, JPY, CHF, GBP, AUD, CAD, and NZD. By comparing currency strength movement across a full FX basket, it helps identify which currencies are accelerating, weakening, or showing meaningful shifts in relative momentum.
The goal is to provide a clearer view of currency flow, momentum rotation, and potential strength/weakness relationships across the market.
Features:
• Tracks RoC/momentum for 8 major currencies
• Includes EUR, USD, JPY, CHF, GBP, AUD, CAD, and NZD
• Uses a full FX basket comparison approach
• Customizable broker/feed selection
• Adjustable anchor timeframe and lookback
• Optional last-closed-bar mode for cleaner confirmed values
• Optional z-score normalization
• Ranking panel for strongest to weakest momentum
• Optional flag display
• Positive and negative trigger lines
• Fixed or auto StDev-based trigger thresholds
• Signal dots on trigger crosses
• Basket shift marker when leading currencies flip
• Zero line and top absolute RoC line options
Alerts Included:
• Any RoC Trigger Cross
• Basket Shift: Top 2 Absolute RoC Flip
Potential use cases:
• Identify the strongest and weakest currencies
• Find momentum rotation across the FX basket
• Spot currency acceleration and deceleration
• Confirm directional bias on Forex pairs
• Build strong-vs-weak pair ideas
• Detect major shifts in currency leadership
• Add confluence to existing Forex strategies
Interpretation:
Positive RoC
The currency is gaining momentum relative to the broader basket.
Negative RoC
The currency is losing momentum relative to the broader basket.
Ranking Panel
Shows which currencies are currently leading or lagging by momentum.
Trigger Crosses
Highlight when a currency’s momentum moves beyond a meaningful positive or negative threshold.
Basket Shift Marker
Appears when the top 2 currencies by absolute RoC flip direction, which may signal a broader shift in currency flow.
This indicator is intended to help traders move beyond single-pair analysis and understand the broader currency strength environment.
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market. Indicator

Simple USD PressureSimple USD Pressure
Simple USD Pressure is a market pressure and directional regime indicator designed to measure broad U.S. Dollar strength and weakness by analyzing multiple USD-related instruments simultaneously.
Rather than relying on a single source such as DXY alone, this indicator evaluates the directional alignment of major USD currency pairs and can optionally incorporate additional confirming instruments including DXY, Gold, US10Y yields, and SPX risk sentiment to build a broader view of USD behavior.
The goal is to provide a cleaner view of underlying dollar pressure and identify shifts in overall market conditions that may influence Forex pairs, indices, commodities, and risk assets.
Features:
• Multi-pair USD pressure analysis
• Uses major USD pairs including:
EURUSD
GBPUSD
AUDUSD
NZDUSD
USDJPY
USDCHF
USDCAD
• Optional confirmation instruments:
DXY
Gold
US10Y
SPX
• Composite USD scoring system
• Customizable calculation timeframe
• Optional "Wait Until Bar Close" confirmation logic
• Adjustable trend thresholds
• Market regime detection:
USD Strong
USD Weak
USD Mixed
• Visual background highlighting
• Regime transition markers
• Summary table including:
Bull pair votes
Bear pair votes
USD pressure score
Confirmation score
Composite score
Current regime
Alerts Included:
• USD Strong Shift
• USD Weak Shift
• USD Mixed Shift
• Active USD Strong
• Active USD Weak
• Active USD Mixed
Potential use cases:
• Gauge broad USD strength or weakness
• Add directional bias to Forex trades
• Confirm risk-on or risk-off environments
• Identify changes in market conditions
• Use as a higher-level market filter
• Add confluence to existing systems
Interpretation:
USD Strong
Broad alignment suggests stronger dollar participation across selected instruments
USD Weak
Broad alignment suggests weaker dollar participation across selected instruments
USD Mixed
Signals are relatively balanced and directional pressure may be less defined
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market. Indicator

SixShooterSixShooter (6SHOT)
A multi-timeframe POC compression and breakout engine for PulseWire.
SixShooter combines anchored VWAPs, rolling volume-profile POCs, compression analytics, trend-regime filters, and breakout acceleration logic into a single institutional-style framework.
Built to detect:
Coiled breakout setups before expansion
Trend continuation acceleration (“THRUST”)
Structural rollover tops
Multi-timeframe support/resistance stacking
Regime transitions between accumulation and distribution
Core Concept
6SHOT tracks six major market structure levels simultaneously:
Rank Level Description
1 dPOC Current day anchored VWAP
2 pdPOC Prior day VWAP
3 wPOC Current week volume-profile POC
4 pwPOC Prior week POC
5 mPOC Current month POC
6 pmPOC Prior month POC
These levels form a live structural “stack”.
When the stack compresses tightly and directional alignment emerges, the indicator searches for:
breakout conditions,
trend acceleration,
or rollover failure structures.
What Makes SixShooter Different
Unlike traditional indicators that only react to price:
6SHOT measures market structure compression directly.
Uses multi-timeframe POC migration as the primary signal source.
Detects “energy loading” before expansion.
Separates trend continuation from true structural reversals.
Uses higher-timeframe regime filters to reduce noise.
The result is fewer but significantly higher-quality signals.
Price Pane Features
Multi-Timeframe POC Levels
The indicator draws six persistent horizontal support/resistance levels:
Daily VWAP structures
Weekly volume-profile structures
Monthly volume-profile structures
Each level:
extends across the chart,
updates only at current values,
and includes right-edge ranked labels.
The ranking system lets traders instantly visualize:
shallow vs deep support,
stacked bullish structure,
or stacked bearish structure.
Stack Score
6SHOT continuously scores the ordering of all six POCs.
Bullish Stack
Perfect bullish alignment:
dPOC > pdPOC > wPOC > pwPOC > mPOC > pmPOC
Bearish Stack
Perfect bearish alignment:
pmPOC > mPOC > pwPOC > wPOC > pdPOC > dPOC
The score ranges from:
+1.0 → fully bullish structure
0.0 → mixed / transitional
-1.0 → fully bearish structure
A live color-coded readout displays:
BULL
MIXED
BEAR
directly above the POC stack.
Lower Pane Analytics
Compression Engine
6SHOT measures:
(max POC − min POC) / ATR
Then percentile-ranks it over time.
This creates a normalized compression score:
100 = tightest structural compression
0 = widest structural dispersion
Compression alone is not enough for signals.
The indicator additionally requires:
directional alignment,
price coiling,
trend validation,
and regime confirmation.
Signal Types
1. POP Signals
Primary breakout engine.
POP UP
Triggers when:
compression is extreme,
POCs align upward,
price is tightly coiled,
higher-timeframe regime agrees,
and chop filters are cleared.
Designed to detect:
explosive upside expansions,
trend initiations,
and continuation launches.
POP DOWN
Two mechanisms:
Coil Breakdown
Symmetric bearish version of POP UP.
Rollover Breakdown
Independent structural-top detector using:
failed swing highs,
lower highs,
lower lows,
ATR-based drawdown,
and down-sloping structure.
Rollover logic is one-shot and re-arms only after a new swing high.
2. THRUST Signals
Trend acceleration engine.
Designed for:
continuation moves after the original breakout,
momentum expansion,
volatility expansion,
and runaway trends.
Requirements include:
ATR expansion,
decisive candle closes,
directional POC agreement,
and multi-bar momentum thrust.
Useful for catching:
late-stage trend acceleration,
squeeze continuations,
and momentum cascades.
3. PRE-READY Signals
Early-warning compression detector.
Appears before full READY conditions when:
compression is rapidly tightening,
but hasn’t yet reached breakout thresholds.
Useful for:
stalking setups,
preparing alerts,
or anticipating imminent POP conditions.
Disabled by default.
4. Strict Canonical Pattern
The highest-conviction bullish structure in the system.
Requires:
all POCs stacked beneath price,
ideal monthly/weekly/daily ordering,
price glued tightly to dPOC,
and sufficient structural support depth.
When active:
the chart receives a lime structural tint,
and breakout confirmation fires on expansion above prior highs.
This is designed to identify:
loaded continuation structures,
institutional support stacking,
and pre-expansion equilibrium zones.
Regime & Noise Filters
Higher-Timeframe PSAR Filter
Automatically steps one timeframe higher than the current chart.
Examples:
5m → 1H regime
1H → Daily regime
Daily → Weekly regime
Used to suppress:
countertrend coil signals,
weak reversals,
and noisy breakdowns.
PSAR Proximity Gate
Suppresses signals when price is too close to PSAR flip zones.
Purpose:
avoid signals during unstable trend transitions,
reduce chop noise,
and prevent one-bar fakeouts.
Chop Detection
Measures net movement relative to ATR.
If price is oscillating without meaningful progress:
POP signals are blocked,
unless a true range breakout occurs.
Strong Trend Lockout
Prevents countertrend fires in clear macro trends.
Example:
suppress bearish signals during strong long-term uptrends,
suppress bullish signals during strong downtrends.
Built specifically to eliminate:
repeated fake reversals inside runaway trends.
Recency-Weighted POC Engine
Optional decay weighting allows newer volume activity to dominate POC calculations.
ON
More adaptive and predictive.
OFF
Traditional full-period volume-profile behavior.
This creates a balance between:
responsive modern structure tracking,
and classic static POC analysis.
Best Use Cases
6SHOT performs best on:
equities,
crypto,
futures,
and momentum-driven instruments.
Particularly effective for:
swing breakouts,
volatility expansions,
trend continuation,
squeeze detection,
and structural reversals.
Designed Philosophy
Quality over quantity.
6SHOT intentionally filters aggressively:
higher thresholds,
cooldown systems,
anti-flip protection,
trend lockouts,
and regime filters
all exist to suppress low-quality noise.
The goal is not maximum signal frequency.
The goal is:
structurally meaningful signals,
cleaner trend participation,
and earlier recognition of expansion regimes.
Included Features
Multi-timeframe POC stacking
Anchored VWAP integration
Weekly & monthly rolling volume profiles
Compression percentile analytics
Trend acceleration detection
Structural rollover detection
Regime-aware breakout filtering
Anti-whipsaw cooldown engine
Higher-timeframe PSAR confirmation
Dynamic support/resistance labeling
Canonical stacked-support detection
Real-time structural score readout
Recommended Workflow
Many traders use 6SHOT as:
Trend Structure Layer
Use POCs + stack score to understand market positioning.
Setup Detection Layer
Use PRE-READY + READY compression states to stalk opportunities.
Execution Layer
Use POP / THRUST fires for entries.
Risk Layer
Use stacked POCs as dynamic support/resistance zones.
Important Notes
6SHOT is not a standalone trading system.
It is a structural-analysis framework designed to:
identify high-energy market conditions,
classify trend regimes,
and surface asymmetric breakout opportunities.
Best results come when combined with:
market context,
volume analysis,
macro structure,
and disciplined risk management. Indicator

ATR with Volatility MarkersPulseWire Indicator Manual: ATR with Volatility Markers
Author: hkpress@CANSLIM Research
Overview
The ATR with Volatility Markers indicator is designed to measure the "heartbeat" of the market. Rather than predicting price direction, it measures the *energy* and *size* of price movements. By comparing the current short-term volatility (14-period ATR) against a long-term historical baseline (100-period ATR), this script automatically flags periods where the market is "coiling up" or actively "breaking out."
The Theory: Volatility, Price, and Volume
To use this indicator effectively, you must understand how Average True Range (ATR) interacts with price patterns and trading volume. Markets naturally cycle between periods of high volatility (expansion) and low volatility (contraction).
1. Volatility Contraction (The Setup)
Before a major move occurs, markets typically consolidate. Buyers and sellers reach a temporary equilibrium.
* Price: Moves sideways in a tight range (forming patterns like bull flags, flat bases, or pennants).
* Volume: Dries up significantly, often dropping below its 50-day average. This indicates that large institutions are quietly accumulating (or distributing) shares without aggressively pushing the price.
* ATR Change: The daily candles get smaller, causing the 14-period ATR to drop. When it falls below its historical normal baseline, your script flags this as a deep contraction. Think of this as a spring being compressed.
2. Volatility Expansion (The Breakout)
A breakout occurs when new catalysts or aggressive institutional orders shatter the equilibrium.
* Price: Pierces firmly through a known support or resistance level with a large-range candle.
* Volume: Surges well above its average, confirming heavy participation and conviction.
* ATR Change: The size of the daily moves rapidly increases. The 14-period ATR hooks sharply upward. When it aggressively crosses above its historical baseline, your script flags this as a high-volatility event. The compressed spring has been released.
How to Read the Indicator
The indicator uses four primary visual elements to communicate market conditions:
1. Solid Red Line
Represents: Current ATR (14-period)
How to Interpret It: The current, real-time measurement of price movement size.
2. Solid Gray Line
Represents: Normal Baseline (100-period)
How to Interpret It: The long-term average volatility. Used as a benchmark to define what is "normal" for this specific asset.
3. Red Dots
Represents: Low Volatility Drop
How to Interpret It: Fires when current ATR drops below your defined threshold for contraction. Signals consolidation.
4. Green Dots
Represents: High Volatility Spike
How to Interpret It: Fires when current ATR spikes above your defined threshold for expansion. Signals breakouts.
Trading Application: Step-by-Step Observation
This indicator is most powerful when combined with your standard price and volume charts. Here is how to use them together:
Step 1: Hunt for Red Dots (The Watchlist Phase)
* Scan your charts for assets printing Red Dots on the bottom of the indicator pane.
* Check the price chart: Is the asset forming a tight, constructive base or pattern?
* Check the volume: Is the volume noticeably lower than normal?
* *Action:* Put this asset on your immediate watchlist. Do not enter yet; the market is still deciding which way to break.
Step 2: Wait for the Trigger (The Breakout Phase)
* Monitor the assets on your watchlist for a sudden price move that breaks the tight range (either up through resistance or down through support).
* Check the volume: You want to see a massive spike in volume on the breakout candle.
* Check the ATR indicator: The red ATR line should be hooking upward sharply.
* *Action:* This is your entry signal. The market has chosen a direction with conviction.
Step 3: Look for the Green Dot (Confirmation Phase)
* Within a few candles of the breakout, a Green Dot should appear at the top of the indicator pane.
* *Action:* This confirms that the volatility expansion is severe enough to be a mathematically significant trend change. It validates that your breakout trade has genuine momentum behind it.
Adapting to Different Asset Classes (The 5 Volatility Profiles)
The percentage change in ATR behaves very differently depending on a stock's inherent volatility (its "Beta" or personality). Because this script looks at *relative* change, you will see different magnitude shifts across different asset classes.
To get accurate signals, use the built-in dropdown menu to select the profile that matches the asset you are trading:
* Level 1: Extreme (Penny/Meme): Requires massive ATR shifts (2.0x for breakout, 0.4x for contraction). Perfect for filtering out the normal daily chaos of wild crypto altcoins or penny stocks.
* Level 2: High (Tech/Crypto): Requires 1.75x breakouts and 0.6x contractions. Ideal for fast movers like TSLA or NVDA.
* Level 3: Medium (S&P 500 Avg): The balanced default (1.35x and 0.85x) for everyday mid-to-large cap trading.
* Level 4: Low (Blue Chips/ETFs): Tightened thresholds (1.20x and 0.90x) to catch more subtle moves in established, stable companies like KO or AAPL.
* Level 5: Very Low (Utilities/Bonds): Extremely sensitive thresholds (1.10x and 0.95x) designed for assets that rarely make large percentage moves.
How to Determine a Stock's Volatility Level
If you are unsure which of the 5 Levels to apply to a specific stock, use one of these three methods:
Method 1: The Visual Calibration Test (Fastest)
Let the indicator tell you what settings to use right on your chart:
1. Load your stock and set the indicator to Level 3: Medium.
2. Zoom out and look at the last 1–2 years of price action.
* Too Many Dots ("The Christmas Tree"): If dots fire constantly during standard, choppy price action, the stock is too volatile for Level 3. Shift up to Level 2 or Level 1.
* Zero Dots ("The Desert"): If the stock has clearly made bases and breakouts but the indicator didn't fire *any* dots, the stock is too stable. Shift down to Level 4 or Level 5.
* Just Right: If the dots only trigger at the tightest squeezes and most violent breakouts, you have found the perfect level.
Method 2: Check the "Beta" (The Industry Standard)
Beta measures how volatile a stock is compared to the S&P 500 (which has a Beta of 1.0). You can find Beta on Yahoo Finance, Finviz, or via a PulseWire indicator. Match it here:
* Beta > 2.0 $\rightarrow$ Level 1 (Extreme) * Beta 1.3 to 2.0 $\rightarrow$ Level 2 (High) * Beta 0.9 to 1.3 $\rightarrow$ Level 3 (Medium) * Beta 0.5 to 0.9 $\rightarrow$ Level 4 (Low) * Beta < 0.5 $\rightarrow$ Level 5 (Very Low) Method 3: Calculate the "ATR Percentage" (The CANSLIM Way)
Measure how much a stock moves relative to its own price.
Formula: `(14-Day ATR / Current Stock Price) * 100`
* > 5% daily movement $\rightarrow$ Level 1 or 2
* 2% to 4% daily movement $\rightarrow$ Level 3
* < 2% daily movement $\rightarrow$ Level 4 or 5
Indicator Settings Guide
You can fully customize the script's behavior via the PulseWire inputs menu:
* ATR Length (Default: 14): Defines the speed of the red ATR line. A lower number (e.g., 7) makes it highly sensitive to recent days. A higher number (e.g., 20) smooths it out.
* Smoothing (Default: RMA): The mathematical formula used for the ATR. RMA is the industry standard created by J. Welles Wilder, but you can switch to SMA, EMA, or WMA.
* Normal ATR Baseline Length (Default: 100): The lookback period for the gray baseline. 100 periods provide a highly stable long-term average.
* Asset Volatility Profile: Use the dropdown to select Levels 1-5, or select "Custom Profile" to manually set your own Multipliers using the fields below it. Indicator
