VWAP Deviation Divergence OscillatorVWAP Deviation Divergence Oscillator
## Overview
The VWAP Deviation Divergence Oscillator turns the **deviation of price from its session-anchored Volume-Weighted Average Price (VWAP)** into a standardized, bounded oscillator, and then looks for **divergence between price and that deviation**. The idea it tests: when price makes a new extreme but sits less far from VWAP than before, the volume-weighted average is no longer confirming the move.
It is a single-pane oscillator. It requires real traded volume (use a futures contract; cash indices report none, in which case the dashboard shows "no volume"). Every data input is user-configurable, so it runs on any symbol that reports volume, in any market and on any timeframe. Defaults target NSE NIFTY index futures on intraday charts.
## What it plots
- A z-scored **VWAP deviation oscillator** (stretched above VWAP = up, stretched below = down), with a glow line and sigma-based overbought/oversold levels.
- **Extreme-zone bands** (default +/-3 sigma) with a gradient fill that deepens toward the edge.
- **Divergence lines and labels** on the oscillator - regular (reversal) and hidden (continuation), in two colors.
- **In-band reversal dots** where the oscillator turns inside an extreme zone.
- Optional **price-pane marks** at the confirmation bar (all generated by this one indicator).
- A **background-adaptive status dashboard** (oscillator value in sigma, zone, last divergence, last reversal, live distance to VWAP).
## Why these components are combined (mashup rationale)
This script combines a **derived measure**, a **normalization stage**, a **divergence engine** and a **reversal read**, because each answers a question the others cannot and none is useful here alone:
1. **VWAP deviation (price + volume).** VWAP is the volume-weighted "fair value" the session has actually transacted at - it blends price and traded volume, which a price-only oscillator does not. How far price sits from VWAP, in standardized terms, is a mean-reversion read: the deviation = price - session VWAP.
2. **Standardization (rolling z-score).** VWAP deviation differs in scale across instruments. The z-score expresses it in standard-deviation units, so "overbought/oversold" and the extreme bands mean the same thing on NIFTY, on a commodity future, or on a crypto instrument. Without this step the divergence thresholds would not transfer between symbols.
3. **Divergence engine.** The original payload is reading **price-versus-VWAP deviation disagreement at confirmed pivots**. The engine pairs each new price pivot with the oscillator value, then requires: a genuine new price extreme; the measure failing to confirm it; a minimum oscillator gap scaled to the oscillator own stdev; the two pivots within a maximum bar distance; and optionally an overbought/oversold reading at the pivot. These gates make the combination produce signal rather than noise.
4. **Reversal read.** Independently, the engine flags oscillator turns that occur inside the extreme bands - a complementary exhaustion cue.
Together the components form one pipeline: **build the signal -> make it comparable (z-score) -> surface where price and that signal disagree (divergence) and where it exhausts (reversal).** Each is incomplete alone.
## How it works (method)
deviation = price - session-anchored VWAP (which resets each session and requires real volume); this is standardized with a rolling z-score to the oscillator.
Regular and hidden divergence are detected from confirmed pivothigh/pivotlow pivots and filtered by the gates above; reversals are oscillator pivots that print inside the extreme bands. Pivots confirm a few bars after they occur, so a printed signal does not repaint. The confirmation lag equals the pivot length.
## How to use it
1. Add the indicator on a volume-bearing instrument (a futures contract); on a cash index it will read "no volume".
2. Read divergence as **context, not a trigger**: a bearish divergence (price higher high, deviation lower high) says price is less extended above VWAP than at the prior high; a bullish divergence says the opposite at lows. Confirm with your own structure, levels and risk process.
3. Tune the **pivot length**, **max gap** and **min oscillator gap** to your timeframe; raise them for fewer, cleaner signals.
## Originality
This is an original implementation - not a VWAP deviation line and not a generic divergence script, but the specific combination of VWAP deviation, sigma-standardization that makes the read portable across markets, a multi-gate divergence engine (magnitude + distance + extreme-zone), hidden-divergence and in-band reversal detection, and a background-adaptive dashboard. The code is written from scratch; helper functions use only their arguments and built-ins.
## Credits
The **Volume-Weighted Average Price (VWAP)** and **price/oscillator divergence** are standard, publicly documented techniques. This script is not affiliated with, nor endorsed by, any third party.
## Notes / limitations
- VWAP deviation needs real volume and is session-relative; it resets each session and is undefined without a volume feed.
- Divergence is descriptive context, never a guarantee of reversal.
- Confirmation lags each pivot by the pivot length.
## Disclaimer
Research and educational tool only. NOT financial advice and no guarantee of profitability or accuracy. Indicators describe past behaviour; they do not predict the future. Trading carries risk of loss. Test out-of-sample and make your own decisions. The author accepts no liability for any use of this script.
Indicator

Range Expansion Divergence OscillatorRange Expansion Divergence Oscillator
## Overview
The Range Expansion Divergence Oscillator turns **directional range expansion** - how large each bar range is versus its recent average, signed by the prevailing price direction - into a standardized, bounded oscillator, and then looks for **divergence between price and range**. The idea it tests: when price makes a new extreme on shrinking ranges, the move is "thin" and lacks effort behind it.
It is a single-pane oscillator. It needs no external data and no volume. Every data input is user-configurable, so it runs on any symbol, asset class or timeframe, in any market and on any timeframe. Defaults target NSE NIFTY index futures on intraday charts.
## What it plots
- A z-scored **range oscillator** (expanding range with the trend = up, contracting range = near zero), with a glow line and sigma-based overbought/oversold levels.
- **Extreme-zone bands** (default +/-3 sigma) with a gradient fill that deepens toward the edge.
- **Divergence lines and labels** on the oscillator - regular (reversal) and hidden (continuation), in two colors.
- **In-band reversal dots** where the oscillator turns inside an extreme zone.
- Optional **price-pane marks** at the confirmation bar (all generated by this one indicator).
- A **background-adaptive status dashboard** (oscillator value in sigma, zone, last divergence, last reversal, current range z-score).
## Why these components are combined (mashup rationale)
This script combines a **derived measure**, a **normalization stage**, a **divergence engine** and a **reversal read**, because each answers a question the others cannot and none is useful here alone:
1. **Directional range expansion (effort/participation).** Price geometry alone cannot show participation. A new high made on shrinking bar ranges is "thin"; a high on expanding ranges has effort behind it. The oscillator z-scores the bar range (high - low) versus its recent average and signs it by the net direction of price, giving the closest read to participation buildable from the bars of the instrument itself - with no volume required.
2. **Standardization (rolling z-score).** range differs in scale across instruments. The z-score expresses it in standard-deviation units, so "overbought/oversold" and the extreme bands mean the same thing on NIFTY, on a commodity future, or on a crypto instrument. Without this step the divergence thresholds would not transfer between symbols.
3. **Divergence engine.** The original payload is reading **price-versus-range disagreement at confirmed pivots**. The engine pairs each new price pivot with the oscillator value, then requires: a genuine new price extreme; the measure failing to confirm it; a minimum oscillator gap scaled to the oscillator own stdev; the two pivots within a maximum bar distance; and optionally an overbought/oversold reading at the pivot. These gates make the combination produce signal rather than noise.
4. **Reversal read.** Independently, the engine flags oscillator turns that occur inside the extreme bands - a complementary exhaustion cue.
Together the components form one pipeline: **build the signal -> make it comparable (z-score) -> surface where price and that signal disagree (divergence) and where it exhausts (reversal).** Each is incomplete alone.
## How it works (method)
bar range (high - low) is standardized to a rolling z-score, then signed by the net direction of price over the range window so that up = bullish; the result is the oscillator.
Regular and hidden divergence are detected from confirmed pivothigh/pivotlow pivots and filtered by the gates above; reversals are oscillator pivots that print inside the extreme bands. Pivots confirm a few bars after they occur, so a printed signal does not repaint. The confirmation lag equals the pivot length.
## How to use it
1. Add the indicator on any chart; no volume or external data is required.
2. Read divergence as **context, not a trigger**: a bearish divergence (price higher high, range lower high) says the new high lacks expanding range/effort; a bullish divergence says the opposite at lows. Confirm with your own structure, levels and risk process.
3. Tune the **pivot length**, **max gap** and **min oscillator gap** to your timeframe; raise them for fewer, cleaner signals.
## Originality
This is an original implementation - not a range line and not a generic divergence script, but the specific combination of range, sigma-standardization that makes the read portable across markets, a multi-gate divergence engine (magnitude + distance + extreme-zone), hidden-divergence and in-band reversal detection, and a background-adaptive dashboard. The code is written from scratch; helper functions use only their arguments and built-ins.
## Credits
Range-expansion / **effort-versus-result** analysis is a long-standing public technical-analysis approach (in the **Wyckoff** tradition). **Price/oscillator divergence** is likewise a standard, publicly documented technique. This script is not affiliated with, nor endorsed by, any third party.
## Notes / limitations
- Range is a participation proxy, not a direction call; the sign comes from a short price window, so very choppy segments can flip it.
- Divergence is descriptive context, never a guarantee of reversal.
- Confirmation lags each pivot by the pivot length.
## Disclaimer
Research and educational tool only. NOT financial advice and no guarantee of profitability or accuracy. Indicators describe past behaviour; they do not predict the future. Trading carries risk of loss. Test out-of-sample and make your own decisions. The author accepts no liability for any use of this script.
Indicator

Efficiency Divergence OscillatorEfficiency Divergence Oscillator
## Overview
The Efficiency Divergence Oscillator turns the **signed efficiency ratio** - net price displacement divided by the total path price actually travelled - into a standardized, bounded oscillator, and then looks for **divergence between price and the efficiency of its travel**. The idea it tests: when price makes a new extreme but reaches it on an increasingly choppy, inefficient path, the move is losing conviction.
It is a single-pane oscillator. It needs no external data and no volume. Every data input is user-configurable, so it runs on any symbol, asset class or timeframe, in any market and on any timeframe. Defaults target NSE NIFTY index futures on intraday charts.
## What it plots
- A z-scored **efficiency oscillator** (clean advance = up, clean decline = down, choppy travel = near zero), with a glow line and sigma-based overbought/oversold levels.
- **Extreme-zone bands** (default +/-3 sigma) with a gradient fill that deepens toward the edge.
- **Divergence lines and labels** on the oscillator - regular (reversal) and hidden (continuation), in two colors.
- **In-band reversal dots** where the oscillator turns inside an extreme zone.
- Optional **price-pane marks** at the confirmation bar (all generated by this one indicator).
- A **background-adaptive status dashboard** (oscillator value in sigma, zone, last divergence, last reversal, signed efficiency in %).
## Why these components are combined (mashup rationale)
This script combines a **derived measure**, a **normalization stage**, a **divergence engine** and a **reversal read**, because each answers a question the others cannot and none is useful here alone:
1. **Signed efficiency ratio (path quality).** Momentum tells you how FAR price moved; it does not tell you how DIRECTLY it got there. The signed efficiency ratio = (price - price ) / sum(|price - price |, len), a value in +/-1 that is positive for efficient up-moves and negative for efficient down-moves. It isolates path quality - a dimension a magnitude-only momentum oscillator cannot show.
2. **Standardization (rolling z-score).** efficiency differs in scale across instruments. The z-score expresses it in standard-deviation units, so "overbought/oversold" and the extreme bands mean the same thing on NIFTY, on a commodity future, or on a crypto instrument. Without this step the divergence thresholds would not transfer between symbols.
3. **Divergence engine.** The original payload is reading **price-versus-efficiency disagreement at confirmed pivots**. The engine pairs each new price pivot with the oscillator value, then requires: a genuine new price extreme; the measure failing to confirm it; a minimum oscillator gap scaled to the oscillator own stdev; the two pivots within a maximum bar distance; and optionally an overbought/oversold reading at the pivot. These gates make the combination produce signal rather than noise.
4. **Reversal read.** Independently, the engine flags oscillator turns that occur inside the extreme bands - a complementary exhaustion cue.
Together the components form one pipeline: **build the signal -> make it comparable (z-score) -> surface where price and that signal disagree (divergence) and where it exhausts (reversal).** Each is incomplete alone.
## How it works (method)
efficiency = (price - price ) / sum(abs(price - price ), len) over the efficiency window, a value in +/-1; this is standardized with a rolling z-score to the oscillator.
Regular and hidden divergence are detected from confirmed pivothigh/pivotlow pivots and filtered by the gates above; reversals are oscillator pivots that print inside the extreme bands. Pivots confirm a few bars after they occur, so a printed signal does not repaint. The confirmation lag equals the pivot length.
## How to use it
1. Add the indicator on any chart; no special data is required.
2. Read divergence as **context, not a trigger**: a bearish divergence (price higher high, efficiency lower high) says the advance is getting choppier; a bullish divergence says the decline is. Confirm with your own structure, levels and risk process.
3. Tune the **pivot length**, **max gap** and **min oscillator gap** to your timeframe; raise them for fewer, cleaner signals.
## Originality
This is an original implementation - not a efficiency line and not a generic divergence script, but the specific combination of efficiency, sigma-standardization that makes the read portable across markets, a multi-gate divergence engine (magnitude + distance + extreme-zone), hidden-divergence and in-band reversal detection, and a background-adaptive dashboard. The code is written from scratch; helper functions use only their arguments and built-ins.
## Credits
The Efficiency Ratio was introduced by **Perry J. Kaufman**. **Price/oscillator divergence** is a long-established, publicly documented technical-analysis technique. This script is not affiliated with, nor endorsed by, any third party.
## Notes / limitations
- Efficiency is a path-quality read, not a direction call; in strong clean trends it stays elevated without diverging.
- Divergence is descriptive context, never a guarantee of reversal.
- Confirmation lags each pivot by the pivot length.
## Disclaimer
Research and educational tool only. NOT financial advice and no guarantee of profitability or accuracy. Indicators describe past behaviour; they do not predict the future. Trading carries risk of loss. Test out-of-sample and make your own decisions. The author accepts no liability for any use of this script.
Indicator

Basis Divergence OscillatorBasis Divergence Oscillator — PulseWire publication description
## Overview
The Basis Divergence Oscillator turns the **futures-versus-spot basis** (the premium or discount of a future to its cash market) into a standardized, bounded oscillator, and then looks for **divergence between price and that basis**. The idea it tests is simple: when price makes a new extreme but the premium does not confirm it, the move is more likely leverage being unwound than fresh demand.
It is a single-pane oscillator. By default it pairs NSE NIFTY index futures with the NSE:NIFTY cash index, but every data input is user-configurable, so it runs on any future that has a cash/spot counterpart, in any market and on any timeframe.
## What it plots
- A z-scored **basis oscillator** (premium expanding = up, premium shrinking toward discount = down), with a glow line and σ-based overbought/oversold levels.
- **Extreme-zone bands** (default ±3σ) with a gradient fill that deepens toward the edge.
- **Divergence lines and labels** drawn on the oscillator — regular (reversal) and hidden (continuation), in two colors.
- **In-band reversal dots** where the oscillator turns inside an extreme zone.
- Optional **price-pane marks** at the confirmation bar (all generated by this one indicator).
- A **background-adaptive status dashboard** (oscillator value in σ, zone, last divergence, last reversal, live basis in points).
## Why these components are combined (mashup rationale)
This script deliberately combines a **cross-symbol calculation**, a **normalization stage**, a **divergence engine** and a **reversal read**, because each one answers a question the others cannot, and none of them is useful here on its own:
1. **Cross-symbol basis (two instruments → one series).** The basis is `chart price − cash/spot reference`. It isolates the small premium/discount component of price, which is driven by cost of carry, financing and leverage/positioning demand — information that the instrument's own price and its own volume do not contain. This is the whole reason a second symbol is pulled: remove either symbol and the basis is undefined. The two-symbol construction is intrinsic, not decorative.
2. **Standardization (rolling z-score).** The raw basis drifts slowly with time-to-expiry and carry, and its scale differs by instrument. The z-score detrends that drift and expresses the basis in standard-deviation units, so "overbought/oversold" and the extreme bands mean the same thing on NIFTY, on a commodity future, or on a crypto perpetual. Without this step the divergence thresholds would not transfer between symbols.
3. **Divergence engine.** A plotted basis line is already common; the original payload here is reading **price-versus-basis disagreement at confirmed pivots**. The engine pairs each new price pivot with the basis oscillator's value, then requires (a) a genuine new price extreme, (b) the basis failing to confirm it, (c) a minimum oscillator gap scaled to the oscillator's own stdev, (d) the two pivots within a maximum bar distance, and (e) optionally an overbought/oversold reading at the pivot. These gates exist so the combination produces meaningful signals rather than noise.
4. **Reversal read.** Independently, the engine flags oscillator turns that occur inside the extreme bands — a complementary "exhaustion" cue to the divergence cue.
In short, the components form one pipeline: **build an independent signal (basis) → make it comparable (z-score) → surface where price and that signal disagree (divergence) and where it exhausts (reversal).** They are read together; each is incomplete alone.
## How it works (method)
- `basis = price − request.security(reference, close)` on the chart's timeframe (no lookahead).
- `oscillator = z-score(basis, normalization window)`, optionally EMA-smoothed.
- Regular and hidden divergence are detected from confirmed `pivothigh`/`pivotlow` pivots and filtered by the gates above.
- Reversals are oscillator pivots that print within the ±extreme bands.
- Pivots confirm a few bars after they occur, so a printed signal does not repaint afterward. The confirmation lag equals the pivot length.
## How to use it
1. Put the indicator on a **future** (e.g. NIFTY index futures).
2. In **Data source**, set **Reference (cash/spot) symbol** to that instrument's spot (default NSE:NIFTY). A mismatched reference makes the basis meaningless.
3. Read divergence as **context, not a trigger**: a bearish divergence (price higher high, basis lower high) says the advance is not backed by premium; a bullish divergence says the opposite. Confirm with your own structure, levels and risk process.
4. Tune the **pivot length**, **max gap** and **min oscillator gap** to your timeframe; raise them for fewer, cleaner signals.
## Originality
This is an original implementation. It is not a basis line and not a generic divergence script: it is the specific combination of a cross-symbol basis, σ-standardization that makes the read portable across markets, a multi-gate divergence engine (magnitude + distance + extreme-zone), hidden-divergence and in-band reversal detection, and a background-adaptive dashboard. The code is written from scratch; helper functions use only their arguments and built-ins.
## Credits
The basis (futures premium/discount) is explained by the **cost-of-carry / theory-of-storage** framework in futures-pricing economics — foundational work by N. Kaldor (1939) and H. Working (1948–49). **Price/oscillator divergence** is a long-established, publicly documented technical-analysis technique. This script is not affiliated with, nor endorsed by, any third party.
## Notes / limitations
- The basis needs a clean reference feed and a matched contract; on illiquid or mismatched references, or when spot and future trade on different clocks, it is noisy.
- Divergence is descriptive context, never a guarantee of reversal.
- If the reference symbol is unavailable the oscillator holds flat and the dashboard shows "n/a".
## Disclaimer
Research and educational tool only. NOT financial advice and no guarantee of profitability or accuracy. Indicators describe past behaviour; they do not predict the future. Trading carries risk of loss. Test out-of-sample and make your own decisions. The author accepts no liability for any use of this script.
Indicator

BocchiTheTrader | Quantum Trend Matrix# BocchiTheTrader | Quantum Trend Matrix
## 🚀 OVERVIEW
In modern electronic markets, retail traders suffer from cognitive overload. Managing multiple charts, fragmented timeframes, and dozens of conflicting indicators often leads to analysis paralysis and execution delays.
The **Quantum Trend Matrix** by **BocchiTheTrader** solves this structural problem. It is an enterprise-grade, localized Heads-Up Display (HUD) that synthesizes a high-fidelity technical matrix directly onto your active trading workspace. By evaluating macro trend direction, multi-oscillator momentum, volume health, and volatility boundaries simultaneously, the QTM provides traders with an instantaneous snapshot of market confluence. It functions as a single, centralized source of truth for directional bias, asset strength, and execution validation.
---
## 📐 THE MATHEMATICAL & LOGICAL CORE
The dashboard works as a multi-indicator consensus engine, evaluating individual variables every single tick to update a structural confluence matrix:
* **Tri-Horizon Trend Architecture:** Evaluates directional health by processing price action relative to an optimized Simple Moving Average (SMA) across three distinct temporal planes: Macro-Weekly, Swing-Daily, and Intraday-Current.
* **Linear & Non-Linear Momentum Ensemble:**
* **MACD Line/Signal Cross:** Decodes classic directional velocity shifts.
* **Relative Strength Index (RSI-14):** Evaluates oversold/overbought thresholds based on a centralized 50-level mid-line axis.
* **Stochastic Oscillator (14, 3):** Measures the location of the close relative to the high-low range to catch rapid cyclical swing turns.
* **Gaussian Normalized Fisher Transform:** Applies an algebraic log transform to normalized RSI values, sharpening the turning points into crisp, highly responsive leading triggers.
* **Money Flow Index (MFI-14):** Combines price action with volume to determine institutional capital absorption or distribution.
* **Volatility & Structural Boundaries:**
* **Bollinger Bands (20, 2.0):** Isolates extreme price extensions. If price pierces the lower band, an exhaustion "Buy" state triggers; if it pierces the upper band, a "Sell" state triggers; otherwise, it remains balanced ("Neutral").
* **Trend Strength & Direction Balance (DMI/ADX):**
* **Directional Movement Index (DMI):** Identifies whether the positive ($+DI$) or negative ($-DI$) trend force is dominant.
* **Average Directional Index (ADX):** Quantifies the absolute strength of the move. Values below 25 trigger a "Weak" warning, while values above 25 confirm a true trending market.
* **Dynamic Exponential Ribbon (EMA 20/50):** Monitors the fast-to-slow exponential moving average cross to confirm immediate mechanical trend acceleration.
---
## 🚦 HOW TO TRADE WITH IT
### 🔹 Long-Side Execution Matrix (Confluence Buying)
1. **Macro Validation:** Ensure that the *Daily Trend* and *Current Trend* cells display **Bullish** (Mint Green).
2. **Momentum Alignment:** Look for a cluster of **Buy** signals across leading indicators (specifically *Fisher*, *MACD*, and *RSI*).
3. **Volatility Confirmation:** Verify that the *ADX* row indicates **Trend** ($>25$). This confirms that the bullish move has institutional momentum backing it.
4. **Entry Trigger:** Execute when the *EMA 20/50* row transitions to **Buy**.
### 🔸 Short-Side Execution Matrix (Confluence Shorting)
1. **Macro Validation:** Ensure that the *Daily Trend* and *Current Trend* cells display **Bearish** (Crimson Red).
2. **Momentum Alignment:** Look for a cluster of **Sell** signals across *MACD*, *Stoch*, *MFI*, and *RSI*.
3. **Volatility Confirmation:** If price breaks down past a structural level and *Bollinger* shifts out of neutral into an extreme state or *DMI* reads **Sell**, the downward expansion is confirmed.
4. **Entry Trigger:** Execute when the *EMA 20/50* transitions to **Sell**.
### 🛡️ Risk Management & Trailing Protocol
* **Invalidation Point:** If an established Long trade is running and more than three momentum cells (e.g., MACD, Stoch, Fisher) flip rapidly from **Buy** to **Sell**, it signals an impending distribution phase. Use this as an early warning indicator to tighten stop-losses or harvest partial profits before visual price rotation occurs.
---
## ⚠️ RISK DISCLAIMER
Financial market trading involves substantial risk of capital loss. Quantum Trend Matrix is engineered exclusively as a statistical and analytical workflow assistant. Past performance configurations do not dictate, guarantee, or imply future algorithmic outcomes. Always utilize strict capital allocation and risk mitigation frameworks. Indicator

MTF Stoch RSI Snapshot 9 Timeframe OverviewThis indicator provides a compact multi-timeframe view of the Stochastic RSI across 9 different timeframes:
1m, 5m, 15m, 30m, 45m, 1h, 2h, 6h, 1D
Instead of switching between charts, the script displays all selected timeframes side by side in a clean column layout. Each column represents one timeframe and shows the current position of the two Stoch RSI lines, making it easier to quickly understand momentum conditions across multiple market structures.
Main Features
Multi-timeframe Stoch RSI visualization
9 fixed timeframe columns
K and D lines shown inside each column
Gradient background based on oscillator level
Quick visual identification of overbought and oversold areas
20 / 50 / 80 reference levels
Optional numeric K and D values
Compact layout designed for fast market reading
How to Read It
Each column represents a timeframe.
The vertical position of the lines shows where the Stoch RSI currently is:
Near the bottom: oversold / weak momentum area
Around the middle: neutral zone
Near the top: overbought / strong momentum area
The background gradient helps identify the oscillator zone immediately, while the two plotted lines allow you to see the current relationship between K and D.
This is useful when you want to compare short-term and higher-timeframe momentum at a glance.
Typical Use Cases
Scalping confirmation
Multi-timeframe momentum alignment
Spotting overbought / oversold conditions across timeframes
Filtering entries based on higher-timeframe context
Quickly checking whether short-term movement agrees with broader market structure
Notes
This indicator does not generate buy or sell signals by itself.
It is intended as a visual decision-support tool and should be used together with price action, trend analysis, support and resistance, and proper risk management.
Disclaimer
This script is for educational and informational purposes only.
It is not financial advice. Always test any trading approach carefully before using it in live markets. Indicator

[3Commas] BCH Overbought RSI Fade - Short Indicator BCH Overbought RSI Fade - Short Indicator
🔷 What it does:
This is the signal-only companion to the BCH Overbought RSI Fade Short strategy — it fires alerts without running a backtest engine. It tracks one virtual short at a time, opened when the 5-minute RSI(9) crosses back DOWN through 80 (an overbought rollover). Up to three averaging orders stack at +1%, +2%, and +3% above entry (equal size). The deal closes on a 1.3% Take Profit from the average with a 0.3% trailing lock, or a hard 8% Stop Loss. Running average entry, deployed capital, open PnL, and lifetime realized PnL are all kept from honest fill-by-fill bookkeeping. Every event emits a webhook-ready JSON payload for a DCA Bot.
- Entry on the RSI rollover: 5m RSI(9) crossing DOWN through 80.
- Uniform averaging ladder above entry: +1% / +2% / +3%.
- 1.3% Take Profit with a 0.3% trailing lock, plus a hard 8% Stop Loss.
- Live Open PnL and lifetime Total PnL on the chart.
🔷 Who is it for:
- Intraday traders fading blow-off spikes on BCH on lower timeframes.
- Bot operators wiring PulseWire alerts straight into a DCA Bot via per-event JSON.
- Traders who want a defined-risk short signal — averaging with a stop, not a stopless martingale.
- Operators who want to watch the virtual deal state (entry, fills, exit) directly on the chart.
🔷 How does it work:
Entry Trigger: A 5-minute RSI(9) is pulled with request.security and lookahead disabled (no repaint). The short fires when that RSI was ≥ 80 on the prior 5m close and drops below it on the current close.
Base Entry: On the trigger, the indicator marks a virtual short, records the entry, and seeds the cost-basis ledger with the base order size (default 500 USDT).
Averaging Ladder (uniform): Three safety orders at fixed +1% / +2% / +3% above base, 250 USDT each. Each fill updates the running cost-basis and dispatches its own webhook, raising the virtual average entry.
Honest Bookkeeping: Cost and quantity update on every event, so the average entry, deployed capital, Open PnL, and Total PnL in the status table reflect the true broker-equivalent state.
Exit (TP + Trailing): At 1.3% below the running average, a trailing exit arms; the indicator tracks the in-favor low and signals a close on a 0.3% retrace off it.
Stop Loss: A hard 8% stop above the average fires the close webhook, banks realized PnL, and resets the virtual position.
Lifetime Total PnL: Each closed cycle's realized PnL accumulates into a lifetime counter shown alongside the current-cycle Open PnL.
🔷 Why it's unique:
- Rollover, Not Just Overbought: Firing on the RSI cross-down through 80 skips trades that ignite while momentum is still rising — it waits for the turn.
- Stop-Bounded Averaging: A compact 3-rung ladder plus an explicit 8% stop keeps the worst-case loss known up front.
- Trailing Profit Lock: The 1.3% target arms a 0.3% trail, banking the snap-back while letting an extended drop run.
- Lifetime PnL Tracking: Open and lifetime Total PnL on the chart give strategy-tester-equivalent insight without a backtest.
- Plug-and-Play Webhooks: Base, each AO, and the exit each emit a complete JSON alert; one "Any alert() function call" alert drives a DCA Bot end-to-end.
🔷 Considerations Before Using the Indicator:
Sample Size: The companion strategy's backtest produced 160 closed trades — above the ~100-trade floor commonly used for statistical relevance. Still a single test window, so treat the metrics as indicative.
Short Execution Venue: This signals shorts. Live shorting of BCH requires a margin or perpetual venue — it cannot run on a spot account.
Lower-Timeframe Sensitivity: The trigger runs on a 5-minute RSI. Fast timeframes mean more signals and more fee/slippage drag — confirm both fit your venue.
Stop Loss Discipline: The 8% stop is the core risk control. Base plus three AOs deploy at most ~1,250 USDT (12.5% of the default reference equity); an 8% stop on that caps the worst case near ~1% of equity. Keep the stop on.
Trend Risk: Fading strength suits ranges and choppy tape. In a relentless uptrend the short can be stopped out repeatedly; the rollover trigger reduces, but does not remove, that risk.
Cross Detection Granularity: Entries, AO fills, and exits evaluate on bar close. A spike-and-revert within a single bar may be missed by design — matching realistic polling and avoiding intra-bar over-signaling.
Live vs Historical State: The virtual state is rebuilt from chart history on each recompile. If added mid-deployment or if the live bot diverges (manual interventions, partial fills), states may differ. Toggle the indicator off and on to reset.
Backtesting Note: This is an indicator, not a strategy. There is no built-in P&L tester — but the live Total PnL counter gives a running approximation. For full metrics over a ~4.8-month sample (160 closed trades, 84.38% win rate, 1.78% max drawdown, profit factor 2.207, +4.01% net return), use the companion strategy version on identical parameters.
🔷 How to Use It:
🔸 Add the indicator to a 5m BCH / USDT chart.
🔸 Review the RSI trigger level, the averaging-order count/deviation/size, the Take Profit, Trailing, and Stop Loss percentages. Defaults mirror the source DCA Bot configuration.
🔸 Set Base Order Size and AO sizes to match your bot's configuration (the avg-entry display becomes meaningful when virtual sizing matches real sizing).
🔸 In the DCA Bot Webhook group, paste the Bot ID, Email Token, and Pair (QUOTE_BASE format, e.g., USDT_BCH).
🔸 Create an alert on the indicator with "Any alert() function call". Paste the DCA Bot's webhook URL into the alert's Webhook field. The indicator emits JSON for entry, each averaging order, and the TP/SL exit.
🔷 INDICATOR SETTINGS
Base Order Size (USDT): Virtual order size for the avg-entry / open-PnL computation.
Averaging Orders per Trade: Number of safety orders (default 3).
First AO Size (USDT): Virtual size of each averaging order (uniform by default).
Deviation to First AO (%) / Deviation Step Multiplier: Spacing of the AO ladder above base entry. Defaults to uniform +1% steps.
Order Size Multiplier: Per-rung size scaling (1.0 = uniform).
RSI Timeframe / Length / Crossing Down Level: The RSI(9) crossing-down trigger (default 5m).
Take Profit (%) / Trailing (%): TP distance below average entry and the trailing retrace that closes the position.
Stop Loss (%): Hard stop above average entry.
Active Window: Optional date filter — when ON, the indicator only fires signals between From and To dates.
DCA Bot Webhook: Bot ID, Email Token, and Pair fields injected into every alert payload.
Visualization: Toggle DCA Ladder, Avg / TP / SL plot lines, fill labels, signal triangles, status table.
Brand Watermark: Configurable text, position, size, and transparency.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas PulseWire account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc. Indicator

Infinity Flow OscillatorInfinity Flow Oscillator — Rmi / Mfo Wave Energy & Range Compression
Flow is a momentum and pressure oscillator designed to help traders read directional flow, internal market pressure, wave movement and compression conditions in one clean lower-panel tool.
The oscillator combines several components into a single visual flow reading:
• RMI Flow
• MFI Pressure
• WaveTrend Energy
• Range Compression / Expansion
• Flow Score from -100 to +100
• Bullish and bearish confirmation dots
• Strong and extreme momentum zones
• Layered fills and cloud-style visual structure
The goal of this oscillator is to make momentum easier to read visually. It is not designed to predict price movement or replace a full trading plan. It should be used as a confirmation and context tool together with price action, market structure, support and resistance, volume conditions and risk management.
────────────────────────────
MAIN CONCEPT
────────────────────────────
The oscillator reads the market through a normalized flow scale.
The center line represents balance.
Above zero:
Bullish pressure is dominant.
Below zero:
Bearish pressure is dominant.
Near zero:
Market flow is neutral, mixed or indecisive.
The stronger the oscillator moves away from zero, the stronger the directional pressure becomes.
The tool uses layered fills and color transitions to make the state of the market visible at a glance.
Bullish flow is displayed with cyan / green-style visual pressure.
Bearish flow is displayed with pink / red-style visual pressure.
Compression or range conditions can be highlighted with a softer background layer.
────────────────────────────
WHAT THE OSCILLATOR SHOWS
────────────────────────────
1. Flow Line
The main flow line represents the final combined oscillator value. It blends momentum, money flow, wave movement and compression logic into one reading.
When the flow line rises above zero, bullish pressure is increasing.
When the flow line falls below zero, bearish pressure is increasing.
2. Signal Line
The signal line smooths the main flow reading.
When the flow line crosses above the signal line, bullish momentum may be improving.
When the flow line crosses below the signal line, bearish momentum may be improving.
3. Bullish and Bearish Dots
Bullish dots appear when the flow line crosses above the signal line under valid conditions.
Bearish dots appear when the flow line crosses below the signal line under valid conditions.
These dots are designed as visual confirmation markers, not automatic trade entries.
4. Strong Momentum Zones
The strong levels mark areas where momentum becomes more directional.
Above the positive strong level:
Bullish pressure is considered stronger.
Below the negative strong level:
Bearish pressure is considered stronger.
5. Extreme Zones
The extreme levels show areas where the market may be stretched.
A strong move into the upper extreme zone can show aggressive bullish pressure.
A strong move into the lower extreme zone can show aggressive bearish pressure.
Extreme readings do not automatically mean reversal. In strong trends, extreme conditions can continue longer than expected.
6. Compression / Range Background
The oscillator can highlight compression or range-like conditions.
Compression often means the market is building energy.
Expansion can happen after compression, especially when price breaks structure or a range.
This layer is useful for understanding when the market is quiet, compressed or preparing for a stronger directional move.
────────────────────────────
INPUT GUIDE
────────────────────────────
Show Oscillator
Enables or disables the main oscillator visual.
When enabled, the flow line, signal line, fills and zones are visible.
When disabled, the oscillator can be hidden without removing the script from the chart.
Show Dots
Enables or disables bullish and bearish confirmation dots.
Use this if you want a cleaner oscillator without signal markers.
Flow Length
Controls the sensitivity of the main flow calculation.
Lower values react faster but may create more noise.
Higher values are smoother but react later.
Beginner suggestion:
Use the default value first. Adjust only after watching how the oscillator behaves on your preferred market and timeframe.
Signal Length
Controls the smoothing of the signal line.
Lower values create faster crosses.
Higher values create slower, cleaner crosses.
Beginner suggestion:
A smoother signal line is usually easier to read when learning the tool.
RMI Length
Controls the RMI-based momentum component.
RMI helps identify directional pressure and momentum shifts. It is useful for detecting when the market starts to build bullish or bearish energy.
MFI Length
Controls the money flow component.
MFI adds a volume-weighted pressure reading to the oscillator. It helps show whether momentum is supported by volume activity.
WaveTrend Length
Controls the wave movement component.
WaveTrend helps create a smoother cyclic reading of market pressure. It can help identify changes in momentum rhythm.
Range / Compression Length
Controls the compression and expansion component.
This part of the oscillator is designed to show when movement is narrow, quiet or compressed compared with normal conditions.
Strong Level
Sets the level used to define strong bullish or bearish flow.
Example:
If the strong level is 50, readings above +50 represent stronger bullish pressure and readings below -50 represent stronger bearish pressure.
Extreme Level
Sets the level used to define extreme bullish or bearish flow.
Example:
If the extreme level is 80, readings above +80 are considered extreme bullish pressure and readings below -80 are considered extreme bearish pressure.
Bull Color
Controls the bullish visual color.
Bear Color
Controls the bearish visual color.
Neutral Color
Controls the neutral or balanced visual color.
Fill Transparency
Controls how visible the oscillator fills are.
Lower transparency makes fills stronger.
Higher transparency makes fills lighter.
Background Compression Highlight
Enables or disables the compression background.
Use this to identify moments where the market may be moving into a quieter range or preparing for a future expansion.
────────────────────────────
HOW TO READ THE TOOL
────────────────────────────
Basic reading:
Flow above zero:
Bullish pressure has the advantage.
Flow below zero:
Bearish pressure has the advantage.
Flow near zero:
No clear directional advantage.
Flow above signal:
Bullish momentum is improving.
Flow below signal:
Bearish momentum is improving.
Flow above strong level:
Bullish momentum is strong.
Flow below negative strong level:
Bearish momentum is strong.
Flow inside extreme zones:
Market pressure is stretched and should be interpreted carefully.
────────────────────────────
BEGINNER TUTORIAL
────────────────────────────
Step 1 — Start with the zero line
The first thing to watch is whether the oscillator is above or below zero.
If it stays mostly above zero, the market is showing bullish pressure.
If it stays mostly below zero, the market is showing bearish pressure.
If it keeps crossing zero, the market may be choppy or undecided.
Step 2 — Watch the flow and signal cross
A bullish cross happens when the flow line crosses above the signal line.
A bearish cross happens when the flow line crosses below the signal line.
These crosses are stronger when they happen in the direction of the broader trend.
Step 3 — Check the strong levels
A bullish cross below zero may be early.
A bullish cross above zero is usually cleaner.
A bullish cross followed by movement above the strong level shows stronger momentum.
The same logic applies in reverse for bearish conditions.
Step 4 — Respect the extreme zones
When the oscillator reaches an extreme zone, the market may be stretched.
This can mean two different things:
• strong trend continuation
• potential exhaustion
Do not assume every extreme reading is a reversal. Use price structure and support/resistance for confirmation.
Step 5 — Use compression as context
When compression appears, the market may be losing directional movement or preparing for expansion.
A compression zone followed by a strong flow breakout can be useful context for trend continuation or range breakout analysis.
────────────────────────────
EXAMPLE USE CASES
────────────────────────────
Example 1 — Bullish confirmation
Price is above a key support area.
The oscillator crosses above the signal line.
Flow moves above zero.
The bullish dot appears.
The flow line continues toward the strong bullish level.
This suggests bullish pressure is improving. A trader may use this as confirmation together with chart structure and risk planning.
Example 2 — Bearish confirmation
Price rejects a resistance area.
The oscillator crosses below the signal line.
Flow moves below zero.
The bearish dot appears.
The flow line continues toward the negative strong level.
This suggests bearish pressure is increasing. A trader may use this as confirmation together with structure and risk planning.
Example 3 — Avoiding weak signals
A bullish dot appears, but the flow line is still below zero.
Price is also under resistance.
The oscillator does not reach the strong bullish level.
This may indicate a weaker bullish attempt. A beginner may choose to wait for stronger confirmation.
Example 4 — Strong trend continuation
The oscillator stays above zero for a long period.
Pullbacks remain above the signal line or quickly recover.
Flow repeatedly returns toward the strong bullish zone.
This can indicate that bullish momentum remains active. In this situation, bearish crosses may be temporary pullbacks rather than full reversals.
Example 5 — Range or compression behavior
The oscillator stays near zero.
Bullish and bearish crosses appear frequently.
Compression background is visible.
Price is moving sideways.
This can indicate a range or low-direction environment. In this situation, signals may be less reliable unless price breaks out with confirmation.
────────────────────────────
SUGGESTED BEGINNER SETTINGS
────────────────────────────
For cleaner signals:
Use longer lengths.
Use a smoother signal line.
Keep dots enabled.
Watch only crosses that happen near or beyond the zero line.
For faster signals:
Use shorter lengths.
Use a faster signal line.
Expect more noise and more false moves.
For trend confirmation:
Focus on whether the oscillator remains above or below zero.
Use strong levels to confirm momentum expansion.
For range detection:
Watch the compression background and repeated crosses around zero.
────────────────────────────
HOW TO COMBINE WITH OTHER TOOLS
────────────────────────────
This oscillator works best as a confirmation tool.
Possible combinations:
1. Price action
Use the oscillator to confirm breakouts, pullbacks and reversals.
2. Support and resistance
Bullish signals are more meaningful near support.
Bearish signals are more meaningful near resistance.
3. Trend indicators
Use the oscillator to confirm trend strength and avoid entering against strong momentum.
4. Volume analysis
The MFI component helps include money flow pressure, but additional volume tools may still provide useful context.
5. Risk management
Always define stop loss, invalidation level and target logic before entering a trade.
────────────────────────────
ALERTS
────────────────────────────
The oscillator can be used with alert conditions such as:
Bullish dot
Bearish dot
Strong bullish flow
Strong bearish flow
Extreme bullish flow
Extreme bearish flow
Suggested alert workflow:
1. Add the oscillator to the chart.
2. Open the PulseWire alert window.
3. Select the oscillator as the alert source.
4. Choose the condition you want to monitor.
5. Use alerts as notifications, not as automatic trading decisions.
────────────────────────────
IMPORTANT NOTES
────────────────────────────
This script is an analytical oscillator. It is not a complete trading system.
It does not guarantee entries, exits or profitable results.
Market conditions can change quickly. Trend, volatility, liquidity, news and session behavior can affect all oscillator readings.
The tool should be tested on each market and timeframe before being used in live trading decisions.
Past signals do not guarantee future results.
Use proper risk management at all times. Indicator

MACD & Stoch RSI Confluence S/RMACD & Stoch RSI Confluence S/R
MACD & Stoch RSI Confluence S/R draws horizontal support and resistance
levels from MACD and Stochastic RSI crossover points, then automatically
merges levels that cluster close together into a single confluence zone.
Instead of treating every crossover as an isolated signal, it highlights
the price areas where two independent momentum oscillators historically
agreed on a turning point.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BACKGROUND — WHY CROSSOVER-BASED LEVELS?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MACD and Stochastic RSI are both momentum oscillators, but they measure
momentum differently — MACD from the relationship between two EMAs,
Stochastic RSI from the position of RSI within its own recent range.
Because of this difference, the two oscillators don't always cross at the
same time or the same price, but when they do cross near the same price
level, it suggests that two independent calculations both detected a
shift in momentum at that point.
Traditional crossover indicators only mark the moment of the crossover
itself and then move on — the price level where it happened is rarely
preserved or revisited. This indicator instead treats every crossover
price as a potential support or resistance level going forward, on the
logic that price has already shown a reaction (a momentum shift) at that
level once, and may do so again if it returns there.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW IT WORKS — TECHNICAL DETAIL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CROSSOVER DETECTION
The indicator calculates a standard MACD (fast EMA, slow EMA, signal line)
and a standard Stochastic RSI (RSI smoothed through a Stochastic
calculation, then K/D smoothing) independently. Bullish crossovers occur
when MACD crosses above its signal line, or when Stochastic RSI's K line
crosses above its D line. Bearish crossovers are the inverse.
Each time a valid crossover occurs, the indicator looks back a
user-defined number of bars (How many bars before crossover?) and records
the low of that bar for bullish crossovers, or the high for bearish
crossovers. This offset exists because the actual turning point in price
often occurs slightly before the oscillator confirms it — anchoring the
line to the prior bar's extreme captures the reaction point more
accurately than the bar where the crossover is technically confirmed.
PROXIMITY FILTERING (PER OSCILLATOR)
Before a new level is recorded, it's checked against existing levels from
the same oscillator and same direction using an ATR-based distance
threshold. If a new crossover price falls too close to an already-recorded
level, it's discarded. This prevents a single trending move that triggers
several crossovers in quick succession from flooding the chart with
near-identical lines.
CONFLUENCE MERGING (ACROSS OSCILLATORS)
After proximity filtering, all surviving levels from both oscillators —
MACD support, MACD resistance, Stoch RSI support, Stoch RSI resistance —
are pooled together. Any levels within a percentage threshold of each
other are merged into a single line, positioned at their average price.
The merged line is labeled with the count of crossovers that contributed
to it, so a label showing "⬡3" indicates three separate crossover events —
potentially from different oscillators — all landed within the merge
threshold of one another.
This merge threshold is calculated automatically based on the chart's
timeframe: wider on higher timeframes (where price ranges are naturally
larger) and tighter on lower timeframes. A manual override is available if
you prefer a fixed percentage regardless of timeframe.
DYNAMIC COLORING
Every line — merged or single — is colored based on its position relative
to the current close. A line below price is colored as support; a line
above price is colored as resistance. Because lines extend forward in
time, a single line can change from resistance to support (or vice versa)
as price crosses through it, and the color updates automatically.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INFO TABLE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A table in the corner of your choice displays, for the most recent bar:
— The number of support and resistance lines currently shown for each
oscillator separately
— The nearest support and nearest resistance level to current price,
calculated from the same merged lines drawn on the chart — not a
separate calculation, so the table always matches what you see
— Whether the MACD zero-line filter and Stoch RSI overbought/oversold
filter are currently active
— Whether each oscillator is enabled
— The current merge threshold percentage and whether it was set
automatically or manually
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. CHOOSE WHICH OSCILLATORS TO USE
Both MACD and Stochastic RSI are enabled by default. You can disable
either one independently if you only want levels from a single
oscillator, or run both for confluence.
2. SET THE BAR OFFSET
How many bars before crossover? controls how far back from the
confirmed crossover the indicator anchors the level. Start with the
default and increase it if you find levels are consistently anchored
slightly too late relative to the actual price reaction.
3. TUNE THE PROXIMITY FILTER
The ATR Multiplier controls how close a new crossover has to be to an
existing level of the same type before it's discarded. Increase this on
choppy assets to reduce clutter; decrease it if you feel valid levels
are being filtered out.
4. APPLY OPTIONAL FILTERS IF NEEDED
The MACD Zero Line Filter restricts bullish crossovers to above the
zero line and bearish crossovers to below it, filtering out weaker
signals that occur against the broader momentum direction. The Stoch
RSI Overbought/Oversold Filter restricts crossovers to occur only in
oversold or overbought territory, focusing on reversal-type signals
rather than mid-range noise. Both are off by default — enable them if
you want fewer, more selective levels.
5. ADJUST THE MERGE THRESHOLD IF NEEDED
The automatic threshold works well across most timeframes, but if you
trade a single timeframe consistently and want more control, switch to
Manual Threshold and set a fixed percentage that matches your
instrument's typical price behavior.
6. READ THE LABELS
Single-oscillator lines are labeled "M" (MACD) or "S" (Stoch RSI).
Merged lines are labeled with a count (e.g. "⬡2", "⬡3") showing how many
crossovers — and potentially how many different oscillators — agreed on
that level. Higher counts represent stronger confluence.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHERE TO USE IT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The indicator works on any asset class and any timeframe, since both
oscillators and the merge threshold are calculated directly from the
chart you have open. It's particularly useful for:
— Identifying support/resistance levels that are backed by momentum
shifts rather than purely price-action-based pivots
— Spotting confluence zones where MACD and Stoch RSI crossovers
historically aligned, which may carry more weight than a level
identified by either oscillator alone
— Confirming reactions at prior turning points — if price returns to a
level where a crossover previously occurred, the level provides context
for whether momentum may shift again
— Combining with other structure or volume-based tools as part of a
broader confluence-based approach, rather than as a standalone signal
generator
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS REFERENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MACD: Fast/Slow/Signal EMA lengths, source, bar offset, max support/
resistance lines kept, line width, colors, extend mode, ATR-based
proximity filter, zero-line filter
Stochastic RSI: RSI period, Stochastic period, K/D smoothing, source, and
the same set of line/extend/proximity/zone options as MACD
Merging: enable/disable, automatic or manual threshold, merged line color
and width
Table: show/hide, position
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORIGINALITY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MACD and Stochastic RSI crossovers are both well-established concepts
individually, but this script's specific contribution is treating
crossover prices as persistent support/resistance levels rather than
one-off signals, combined with a cross-oscillator confluence merge that
identifies where two independently-calculated momentum tools agreed on
the same price area. The ATR-based proximity filter and timeframe-adaptive
merge threshold are the author's own approach to keeping this practical
and readable on a live chart rather than producing chart clutter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is intended for educational and analytical purposes only.
No indicator can predict future market movements with certainty. Always
use proper risk management and combine multiple forms of analysis before
making trading decisions. Indicator

Multi Factor Divergence Confluence OscillatorMulti-Factor Divergence Confluence Oscillator
What it is
This indicator detects price/oscillator divergence on four independent indicator families at the same price pivots and reports how many of them agree. The lower-pane histogram shows the signed agreement count — positive (bullish) above the zero line, negative (bearish) below — and a signal is flagged only when at least N independent families diverge at the same swing. It is a context tool that measures agreement, not a buy/sell system, and it places no orders.
Why these components are combined (and why it is not just stacked indicators)
Divergence on a single oscillator is a weak, noisy signal. The instinctive "fix" is to stack several oscillators and look for agreement — but stacking RSI, Stochastic, MACD and similar tools does not create real confluence, because they are all rate-of-change of price. They are highly correlated, so a divergence on one almost always coincides with the others. That is one witness counted several times, which feels like confirmation while adding almost no new information.
Meaningful confluence requires independent witnesses. This script therefore measures divergence on four families chosen specifically because each looks at a different dimension of the same bar, and each covers a blind spot of the others:
Momentum — Relative Strength Index. The classic rate-of-change read. It says nothing about who is transacting or how far price has travelled.
Volume — Normalized Cumulative Volume Delta. Detrended, standardized signed volume — an order-flow read that is independent of price geometry. (Signed volume is estimated; see Limitations.)
Volatility — Parabolic-SAR-to-price extension, in ATR units. How stretched the current trend leg is relative to its trailing stop, normalized by volatility — a read that ignores both momentum and volume.
Forecast — price minus its linear-regression forecast. A z-scored "how far has price departed from its own fitted path" term, independent of the three above.
All four are rescaled to share polarity (up = bullish), so a single divergence rule applies to every engine and the counts are directly comparable. Counting agreement across these families is information; counting it within one family is not — that independence is the entire reason these four are combined, rather than four momentum clones.
How the parts work together
Each enabled family is reduced to one bounded, bullish-up oscillator.
At every confirmed price swing (the families share the same price pivots), each family is asked whether it diverges there. Bearish = price makes a higher high while the oscillator makes a lower high; bullish = price makes a lower low while the oscillator makes a higher low.
The number of agreeing families becomes the signed confluence histogram, with glowing tip dots on flagged signals and a connecting line/label on the pane.
A signal flag is raised only at or above the chosen agreement threshold. That threshold can adapt to the chart timeframe — lower timeframes are noisier, so by default 1–5m require four families, 15–60m require three, and above 60m require two.
How to use it
Read the height and sign of the histogram: how many independent families diverge, and in which direction. The flag lines and the optional shaded zones mark where agreement is strong (three or more).
Treat it as context that qualifies your own analysis, not a standalone trigger. A divergence marks where price and a flow/momentum read disagree; it can resolve either way. More agreement is rarer, not guaranteed-better.
The dashboard summarizes the last signal, which families diverged, the active engines, the current threshold, and whether the signed-volume estimate is using lower-timeframe data or the proxy.
Enable/disable any family, switch between regular (reversal) and hidden (continuation) divergence, and tune the pivot, gap and threshold settings to your instrument and style.
What is original
The originality is the integration discipline, not the individual techniques: divergence is measured only across deliberately independent families on one shared set of price pivots and one comparable axis, with an explicit rule that within-family agreement is excluded. The result is a single confluence read that resists the double-counting that ordinary multi-oscillator "confluence" tools fall into, plus a timeframe-adaptive agreement threshold and an honest, configurable, multi-market implementation.
Universal across markets (configurable data source)
The Price / High / Low sources are user-selectable in Settings, so the engine runs on any symbol, asset class or timeframe — equities, futures, forex, crypto or indices. The Volume family needs a symbol that reports real volume; otherwise it falls back to a high/low/close proxy, and the dashboard shows which is active. Defaults are tuned for NSE NIFTY index futures on intraday charts; change the sources, lengths and lower timeframe for any other instrument.
Concept credits
Relative Strength Index and Parabolic SAR — J. Welles Wilder Jr. Cumulative Volume Delta, linear-regression forecasting and price/oscillator divergence are standard, publicly documented techniques. This is an original integration built around those public concepts and is not affiliated with, nor endorsed by, any originator.
Limitations (honest)
Divergence is context, not a trigger. Signed volume is estimated from lower-timeframe sub-bars (or an intrabar proxy), not exchange aggressor data, so the Volume family is an approximation and is unreliable on instruments without real volume. Divergence confirms a few bars after its pivot — inherent to honest, non-repainting pivot detection. Past behaviour does not predict future results.
Disclaimer
For research and educational purposes only. This is not financial advice and carries no guarantee of profitability or accuracy. Indicators describe past behaviour; they do not predict the future. Trading involves risk of loss. Test out-of-sample and make your own decisions.
Indicator

Indicator

[3Commas] BCH Overbought RSI Fade - Short Strategy BCH Overbought RSI Fade - Short Strategy
🔷 What it does:
A short-only, momentum-fade DCA system for Bitcoin Cash. The deal arms the moment a fast push higher exhausts itself: the 5-minute RSI(9) must cross back DOWN through the 80 line. From that base short, up to three averaging orders stack at +1%, +2%, and +3% above entry (equal size), so a continued push higher simply improves the average. The position is then released on a 1.3% Take Profit from the average with a 0.3% trailing lock, while a hard 8% Stop Loss defines the worst case in advance.
- One base short plus a 3-rung uniform averaging ladder placed above entry.
- Entry only on the RSI rollover (cross down through 80) — not on a static overbought reading.
- Take Profit at −1.3% from average with a 0.3% trailing retrace to extend winners.
- Hard 8% Stop Loss — a real, bounded per-trade risk rather than an open-ended martingale.
- Every base fill, averaging order, and exit emits a webhook-ready JSON payload for a DCA Bot.
🔷 Who is it for:
- Intraday traders who like to fade blow-off spikes on BCH on lower timeframes.
- Bot operators wiring PulseWire alerts straight into a DCA Bot via per-event JSON.
- Traders who want averaging with a stop attached, not a stopless grind.
- Portfolio builders adding a high-win-rate short-side sleeve with capped risk.
🔷 How does it work:
Entry Trigger: A 5-minute RSI(9) is pulled with request.security and lookahead disabled (no repaint). The short fires when that RSI was ≥ 80 on the prior 5m close and drops below it on the current close — the overbought-to-neutral rollover.
Base Order: 500 USDT default (5% of 10k capital), placed Limit at the signal bar's close (a Market toggle is available).
Averaging Ladder (uniform): Three safety orders sit at fixed +1% / +2% / +3% above the base, each 250 USDT (half the base). They average the short up if price keeps climbing, shrinking the bounce needed to reach target.
Exit (TP + Trailing): Once price reaches 1.3% below the running average, a trailing exit arms; the strategy then tracks the in-favor low and closes on a 0.3% retrace off it.
Stop Loss: A hard 8% stop above the average closes the deal at market if the short keeps running against the position.
🔷 Why it's unique:
- Rollover, Not Just Overbought: Firing on the RSI cross-down through 80 skips trades that ignite while momentum is still rising — it waits for the turn.
- Stop-Bounded Averaging: A compact 3-rung ladder plus an explicit 8% stop keeps the worst-case loss known up front, unlike classic stopless martingale shorts.
- Trailing Profit Lock: The 1.3% target arms a 0.3% trail, banking the snap-back while still letting an extended drop run.
- Plug-and-Play Webhooks: Base, each AO, and the exit each emit a complete JSON alert; one "Any alert() function call" alert drives a DCA Bot end-to-end.
🔷 Considerations Before Using the Strategy:
Sample Size: The backtest produced 160 closed trades — above the ~100-trade floor commonly used for statistical relevance. The 84.38% win rate and 2.207 profit factor still reflect a single test window, so treat them as indicative and broaden the test (longer period or more assets) before sizing up.
Lower-Timeframe Sensitivity: Tested on 5m with a 5m RSI trigger. Fast timeframes mean more signals and more fee/slippage drag — verify both fit your venue.
Stop Loss Discipline: The 8% stop is the core risk control. Base + three AOs deploy at most ~1,250 USDT (12.5% of equity); an 8% stop on that caps the worst case near ~1% of equity. Keep the stop on — without it this becomes an unbounded short.
Trend Risk: Fading strength suits ranges and choppy tape. In a relentless uptrend the short can be stopped out repeatedly; the rollover trigger reduces, but does not remove, that risk.
Commission Calibration: Default commission is 0.06% (Bybit perpetual taker). Align it with your venue's real fees — on a high-frequency short this materially moves the result.
🔷 STRATEGY PROPERTIES
Symbol: BYBIT:BCHUSDT.P (Perpetual) — portable to any BCH / USDT pair.
Timeframe: 5M chart (5M RSI trigger).
Test Period: January 26, 2026 — June 19, 2026 (~4.8 months).
Initial Capital: 10,000 USDT.
Order Size: 500 USDT base (5%) + 3 averaging orders of 250 USDT each (uniform).
Max Capital Deployed: ~1,250 USDT per trade (~12.5% of equity).
Commission: 0.06% per trade.
Slippage: 3 ticks.
Margin for Short Positions: 100% (1× leverage, Isolated in source config).
Indicator Settings: Default Configuration.
Base Order: 500 USDT, Limit by default (Market toggle available).
Entry Trigger: 5m RSI(9) Crossing Down 80.
Averaging Orders: 3 with fixed deviations +1% / +2% / +3% above base entry; uniform 250 USDT sizing.
Take Profit: 1.3% below average entry, with 0.3% trailing.
Stop Loss: 8% above average entry (hard close).
Strategy: Short Only.
🔷 STRATEGY RESULTS
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +401.25 USDT (+4.01%)
Max Equity Drawdown: 179.15 USDT (1.78%)
Total Closed Trades: 160
Percent Profitable: 84.38% (135 / 160)
Profit Factor: 2.207
🔷 How to Use It:
🔸 Adjust Settings: Review the Base Order Size, the AO count/deviation/size, the RSI trigger level, the Take Profit/Trailing, and the Stop Loss. Defaults mirror the source DCA Bot configuration — recalibrate per asset and timeframe.
🔸 Results Review: 160 closed trades clears the ~100-trade floor for statistical relevance — still validate across a longer window or more assets, and confirm drawdown and trade frequency fit your tolerance before going live.
🔸 Create alerts to trigger the DCA Bot: Add one alert on the strategy using "Any alert() function call". Paste the DCA Bot's webhook URL into the alert's Webhook field, and fill the Bot ID, Email Token, and Pair inputs. The strategy emits JSON for entry, each averaging order, and exit.
🔷 INDICATOR SETTINGS
Base Order Size (USDT): USDT amount opened on the initial short.
Use LIMIT for Base: Toggle between Limit (default) and Market entry.
Averaging Orders per Trade: Number of safety orders (default 3).
First AO Size (USDT): Size of each averaging order (uniform by default).
Deviation to First AO (%) / Deviation Step Multiplier: Spacing of the AO ladder above base entry. Defaults to uniform +1% steps.
Order Size Multiplier: Per-rung size scaling (1.0 = uniform).
RSI Timeframe / Length / Crossing Down Level: The 5m RSI(9) crossing-down trigger for the base short.
Take Profit (%) / Trailing (%): TP distance below average entry and the trailing retrace that closes the position.
Stop Loss (%): Hard stop above average entry.
DCA Bot Webhook: Bot ID, Email Token, and Pair fields injected into every alert payload.
Visualization: Toggle DCA Ladder, Avg / TP / SL plot lines, fill labels, status table.
Brand Watermark: Configurable text, position, size, and transparency.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas PulseWire account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc. Strategy

Volume Flow Divergence OscillatorVolume Flow Divergence Oscillator (VFDO)
Volume Flow Divergence Oscillator
A bounded order-flow oscillator that measures whether buying or selling pressure dominates and how stretched it is, then detects price/flow divergences with statistical filtering. Three interchangeable flow engines share one axis so the same read can be cross-checked three independent ways.
Why these components are combined (and why this is not a generic mashup)
Order-flow pressure can be measured several ways, and each has blind spots. The problem this script solves is specific: raw Cumulative Volume Delta (CVD) trends without bound, so classic "swing-high vs swing-high" divergence on it is unreliable — the comparison ends up dominated by the accumulated drift instead of local buying/selling conviction. Stacking more momentum tools (a second RSI, a MACD) would only double-count the same information.
Instead, this tool (a) detrends and standardizes the flow into a bounded, mean-reverting oscillator so divergence becomes valid, and (b) offers three orthogonal lenses on one question — is buying or selling winning, and is it stretched?:
Normalized CVD — cumulative signed volume, detrended (minus its EMA) and divided by the residual's standard deviation. The reading is a z-score of how stretched flow is versus its own recent trend.
CVD-RSI — Wilder's RSI applied to the detrended CVD (not raw CVD, which would pin near 0/100 in a sustained trend). A 0–100 momentum-of-flow read.
MFI (Money Flow Index) — a volume-weighted RSI that does not depend on the signed-volume estimate, so it acts as a genuine independent cross-check.
These three are not redundant: they are different constructions of the same idea. A divergence that appears on all three is far more robust than one that appears on only one — and if they disagree, the "divergence" is construction-dependent noise. That cross-checking is the core purpose of putting them on a shared bounded axis.
Four context modules sit on top, each adding what the raw line cannot:
Filtered divergence — regular and hidden divergence between price pivots and the flow oscillator, gated by a minimum magnitude (marginal wiggles don't count), a maximum bar-distance between pivots (no stale comparisons), and an optional extreme-zone requirement (only count divergences forming from overbought/oversold, where they carry the most meaning). Lines are drawn on the oscillator curve; price marks print at the confirmation bar.
Gradient extreme zones — ±4σ (or 90/10) bands that shade lighter at the edge and darker as flow pushes further out, marking genuinely stretched conditions.
In-band reversal dots — a red/green dot when the oscillator makes a local turn inside an extreme band, flagging that stretched flow is unwinding.
Adaptive dashboard — a compact panel (oscillator value, zone, last divergence, last reversal, data source) that auto-themes to the chart background for legibility on any color scheme.
How signed volume is estimated (honesty)
True aggressor-tagged delta is unavailable on most PulseWire feeds, so signed volume here is estimated: per bar it is summed from lower-timeframe sub-bars (each sub-bar's volume signed by whether it closed up or down), falling back to an intrabar OHLC proxy when sub-bar data isn't available. The dashboard's Delta source row shows which is live ("LTF" vs "proxy"). This is the standard approach CVD tools use; it is an estimate, not exchange-tagged order flow.
How to use
Add to any symbol that reports volume. Read it like a bounded flow gauge: above the upper band = buying stretched; below the lower band = selling stretched; midline = balance.
Treat divergences as context, not standalone triggers. A bearish divergence at the upper extreme means buying conviction is fading as price makes a new high.
Cross-check with the Engine selector: confirm a divergence by switching between Normalized CVD, CVD-RSI and MFI. Agreement across all three is the strong case.
Reversal dots mark stretched-flow unwinding — combine with your own price structure and risk rules.
Settings overview
Data Source — lower-timeframe for the delta estimate; selectable High/Low sources for divergence, so the engine fits any instrument.
Flow Oscillator — engine selector, detrend/normalize window, OB/OS, smoothing, RSI/MFI lengths.
Extreme Zones & Reversals — ±4σ band level, band display, reversal dots.
Divergence — magnitude, pivot length, max bar-distance, extreme-zone gate, regular/hidden.
Dashboard & Theme — colors, position, and Auto/Dark/Light theme.
Defaults are tuned for NSE NIFTY futures on intraday timeframes (1-minute sub-bar delta). For other assets or timeframes, adjust the lower timeframe, normalize window, and band levels — every parameter is exposed.
Originality
This is not a re-skin of a single public indicator. The original contributions are: the detrend-then-standardize normalization that makes CVD divergence valid; three interchangeable flow engines on one shared bounded axis for cross-checking; and a divergence engine with magnitude + distance + extreme-zone gating drawn on the oscillator curve, with in-band reversal detection.
Concept credits
Relative Strength Index — J. Welles Wilder Jr.
Money Flow Index — Gene Quong & Avrum Soudack.
Cumulative Volume Delta and divergence analysis are standard public order-flow / technical-analysis concepts.
This script is an original implementation built around those public concepts and is not affiliated with, nor endorsed by, their originators.
Disclaimer
For research and educational purposes only. Not financial advice and no guarantee of profitability or accuracy. Signed volume is estimated, not exchange-tagged. Indicators describe past price behavior; they do not predict the future. Trading carries risk of loss. Test on out-of-sample data and make your own decisions. The author accepts no liability for any use of this script.
Indicator

SMI Multi-Timeframe OscillatorOVERVIEW
The SMI Multi-Timeframe Oscillator combines up to eight independently configurable Stochastic Momentum Index timeframes in one clean oscillator pane. It is designed to make momentum alignment, disagreement, and turning points across fast and slow timeframes easier to compare at a glance.
CONFIGURABLE TIMEFRAMES
• Eight individual timeframe slots
• A separate on/off toggle for every slot
• A timeframe dropdown for every slot
• Defaults: 1m, 3m, 5m, 15m, 30m, 1H, 2H, and 4H
Users can replace any default with their own preferred timeframe without editing the source code.
HOW IT WORKS
The indicator uses the standard double-EMA Stochastic Momentum Index calculation. SMI measures where price sits relative to the midpoint of its recent high-low range, then smooths both momentum and range before producing a naturally normalized oscillator.
• +100 represents the upper end of the scale
• 0 is the momentum midpoint
• -100 represents the lower end of the scale
• Default overbought and oversold references are +40 and -40
The %K length, %D smoothing, signal EMA length, source, and threshold levels are adjustable.
VISUAL DESIGN
Each timeframe slot receives a distinct color. Faster timeframes use thinner, more subdued lines, while slower timeframes are slightly stronger to create a readable visual hierarchy.
The current chart-timeframe SMI is shown as a thin soft-silver line. Optional signal lines are available but disabled by default. The indicator intentionally uses no channel fills or background shading.
INTERPRETATION
When several timeframes rise or fall together, momentum is broadly aligned. Divergence between fast and slow lines can reveal developing transitions or timeframe disagreement.
Readings above zero indicate positive momentum relative to the recent range midpoint. Readings below zero indicate negative momentum. Moves near or beyond the overbought and oversold references should be interpreted in context; strong trends can keep SMI elevated or depressed for extended periods.
NOTES
Higher-timeframe values can change until their corresponding candles close. Lower-timeframe information displayed on a higher-timeframe chart is sampled according to PulseWire's multi-timeframe behavior.
This indicator is intended for informational and educational purposes only. It is not financial advice and does not guarantee future results. Indicator

Keltner Channel MTF OscillatorOVERVIEW
The Keltner Channel MTF Oscillator brings eight intraday Keltner Channels into one normalized oscillator pane, making it easier to compare trend, volatility, and price location across multiple timeframes without stacking indicators.
INCLUDED TIMEFRAMES
• 1 minute
• 3 minutes
• 5 minutes
• 15 minutes
• 30 minutes
• 1 hour
• 2 hours
• 4 hours
Every timeframe can be enabled or disabled independently.
HOW IT WORKS
Each channel uses an EMA centerline with ATR-based upper and lower bands. The EMA length, ATR length, ATR multiplier, and source are adjustable.
All plotted values are normalized against the 4-hour Keltner Channel:
• 4H upper band = +100
• 4H basis = 0
• 4H lower band = -100
The thick white line represents the current chart-timeframe price source. The colored envelopes display the upper band, basis, and lower band for each enabled timeframe.
FEATURES
• Eight independently toggleable timeframes
• Colored multi-timeframe channel envelopes
• Optional basis lines and channel fills
• Adjustable EMA and ATR settings
• Optional strict -100 to +100 clamping
• Clear 4-hour reference levels
• Separate oscillator pane
INTERPRETATION
Values above zero place price above the 4-hour Keltner basis, while values below zero place it beneath the basis. Readings near +100 approach the 4-hour upper channel, and readings near -100 approach the lower channel.
Channel compression can highlight volatility contraction. Expansion or separation between timeframe channels can help reveal increasing volatility or disagreement across timeframes.
When clamping is disabled, values may exceed +/-100, allowing breakouts beyond the 4-hour envelope to remain visible.
NOTES
Higher-timeframe values can change until their corresponding candles close. Lower-timeframe information displayed on a higher-timeframe chart is sampled according to PulseWire's multi-timeframe behavior.
This indicator is intended for informational and educational purposes only. It is not financial advice and does not guarantee future results. Indicator

Multi Cycle KST OscillatorMulti-Cycle KST Oscillator — Publication Description
What it does
The Multi-Cycle KST Oscillator is a momentum oscillator built on the Know Sure Thing (KST) — a summed, weighted blend of four smoothed Rate-of-Change series. The standard KST plots one line. This script computes three KSTs at short, intermediate and long cycle lengths, reads their alignment, and wraps the plotted short-term KST in five decision-support modules so the momentum reading is filtered, contextualized and scored rather than read at face value. A single 0–100 Confidence value summarizes everything, and the oscillator line is colored by it.
Why these components are combined (the reason for the mashup)
KST on its own is a momentum (rate-of-change) factor, and it lags by construction. Adding more momentum tools such as RSI, MACD or Stochastic would only restate the same information. So every module added here is deliberately orthogonal to momentum — each answers a question the KST cannot answer by itself:
Long-term KST direction — the regime gate. A slower KST decides which side to trade. Short-term buy crosses are only trusted when the long-term cycle is rising, short crosses only when it is falling. This is the core of the multi-cycle idea: trade the shorter cycle in the direction of the longer one.
ADX/DMI regime filter — trade only in a real trend. Momentum crosses whipsaw in sideways markets, so signals are suppressed and the background is shaded while ADX is below threshold.
Higher-timeframe filter — alignment with the bigger picture. The same momentum direction is read from a higher, confirmed (non-repainting) timeframe to drop counter-trend crosses.
Price/KST divergence — early warning. Because the oscillator measures momentum, a price high against a lower oscillator high (or the inverse) flags fading momentum before the signal-line cross. Regular and hidden divergences are detected from confirmed pivots.
Efficiency-Ratio conviction scaler — how much to trust it now. A Kaufman Efficiency Ratio scales the Confidence up in clean trends and down in chop. It is a magnitude scaler, never a direction vote, so it cannot double-count momentum.
How the parts work together
Each module feeds one combined output. The plotted oscillator is the short-term KST (optionally standardized). A Buy or Sell is raised only when the short-term KST crosses its signal line AND the long-term cycle agrees AND the regime and higher-timeframe filters agree AND Confidence clears its threshold. Confidence itself is a weighted vote across the four orthogonal inputs (KST-vs-signal, long-term direction, price location, divergence), scaled by the Efficiency Ratio and clamped to 0–100. Divergence labels and the ATR stop/target are context around that one decision.
What makes it original
It is not a KST with other indicators drawn beside it. It turns a single KST line into a three-cycle alignment model with a long-term regime gate, then standardizes the result so its bands carry a consistent statistical meaning across instruments, and fuses five orthogonal checks into one bounded Confidence reading with explicit buy/sell gating. The combined output — "is momentum turning, in a real trend, in line with the larger cycle, and how much should I trust it" — does not exist in the source indicator.
How to use it
Pick an Oscillator mode: Raw (native KST), Z-Score, or Robust Z (median/MAD, least sensitive to spikes).
Green = up-cycle momentum, red = down-cycle; further from zero and brighter = stronger and higher conviction. Warn / Extreme bands mark stretched readings.
Buy / Sell triangles fire only when the cross, the long-term gate, the regime and higher-timeframe filters, and the Confidence threshold all agree. Treat them as points to investigate, not automatic entries.
Use divergences as early warning of fading momentum, and the two dashboards for the full read: right panel = Bias, Confidence, Signal, Cycle alignment, Oscillator; left panel = Long-term KST, Regime, Divergence, ATR Stop and Target.
The dashboards adapt to your chart's background brightness so both stay legible on dark or light themes.
Settings and defaults
Inputs are grouped and numbered: Data Source, the three KST cycles, Normalization & Display, Threshold Bands, Confirmation Filters, Divergence, Confidence Engine, Risk Targets, Signals & Alerts, and Visuals & Dashboard. Defaults follow the classic KST values and are tuned for NSE NIFTY on intraday charts. Because the Price / High / Low sources are user-selectable, the engine works on any instrument or even another indicator's output — for other assets, adjust the ROC/SMA lengths, the higher timeframe and the ATR period to suit.
Concept credit
The Know Sure Thing (KST) oscillator was created by Martin J. Pring. This script is an original multi-cycle implementation built around that public concept and is not affiliated with, nor endorsed by, its originator.
Honest limitations
KST is lagging by construction; this confirms moves, it does not predict them. Confidence (0–100) is an ordinal heuristic for how aligned the components are — it is not a probability or a win rate. Divergence is computed on confirmed pivots and therefore prints a few bars after the pivot forms; that latency is inherent to honest pivot detection. Signals confirm on bar close (non-repainting) by default, and the higher-timeframe filter uses the previous confirmed higher-timeframe bar. Backtest any settings on your own market before relying on them.
Disclaimer
For research and educational purposes only. This is not financial advice, not an investment recommendation, and not a solicitation to trade. Indicators describe past price behavior; they do not predict the future. Trading involves substantial risk of loss. Test on out-of-sample data and make your own decisions. The author accepts no liability for any use of this script. Indicator

Quantum Entropy Oscillator [QEO]🚀 QUANTUM ENTROPY OSCILLATOR
The Quantum Entropy Oscillator (QEO), engineered by gunebak4n, is a high-resolution market dynamics oscillator designed to quantify directional pressure through entropy-normalized energy dispersion and momentum coherence.
QEO is built on the principle that price action is not random movement but a structured imbalance between energy accumulation and directional displacement. By measuring the relationship between volatility-derived energy and directional momentum, the oscillator isolates statistically meaningful wave behavior from market noise.
Unlike conventional oscillators that rely solely on price smoothing or fixed-period momentum, QEO introduces an entropy-aware normalization layer that dynamically adjusts signal sensitivity based on market turbulence and structural compression.
💡 CORE DESIGN PRINCIPLE
🧭 Entropy-Normalized Market Flow
QEO interprets price movement as a probabilistic energy field. High entropy represents disordered, low-conviction movement, while low entropy indicates structured directional flow.
🧬 Energy–Momentum Duality Model
The system models price behavior using two interacting forces:
• Energy: magnitude of displacement (volatility intensity)
• Momentum: directional bias of price change
The interaction between these components defines the wave structure of the market.
💡 KEY FEATURES
🎯 Entropy-Weighted Oscillator Core
The main QEO line is derived from a normalized wave function that adjusts momentum strength relative to volatility energy, producing a cleaner directional signal under varying market regimes.
📊 Signal Line Structural Filter
A secondary smoothed signal line acts as a structural baseline, allowing crossovers to represent regime shifts rather than simple momentum fluctuations.
📉 Histogram Pressure Mapping
The histogram visualizes the divergence between QEO and its signal line, representing acceleration or deceleration of directional force in real time.
🧠 Regime-Sensitive Cross Detection
Cross signals are filtered using positional constraints relative to zero-line equilibrium, distinguishing early reversals from continuation structures.
🏹 Directional Trigger System
Bullish and bearish triggers are generated only when momentum crosses structural equilibrium zones, reducing noise-driven false signals.
🔬 MATHEMATICAL STRUCTURE
Price displacement:
ΔP(t) = Close(t) − Close(t−1)
Energy field (volatility intensity):
E(t) = SMA(ΔP², n)
Momentum field (directional bias):
M(t) = SMA(ΔP, n)
Entropy-normalized wave function:
Q(t) = M(t) / √E(t)
Smoothed oscillator:
QEO = SMA(Q(t), smoothing)
Signal line:
Signal = SMA(QEO, signalLength)
Histogram:
H = QEO − Signal
This structure ensures that directional strength is always evaluated relative to current volatility conditions rather than static thresholds.
🛠️ USAGE FRAMEWORK
1. Trend Regime Detection
Sustained positive or negative QEO deviation indicates directional regime expansion.
2. Reversal Identification
Crossovers near equilibrium (zero line) signal potential structural transitions between trend states.
3. Momentum Exhaustion Zones
Histogram divergence weakening while QEO remains extended suggests diminishing directional energy.
4. Confirmation Layer Usage
QEO should be used in conjunction with structural price levels for higher-probability decision zones.
⚙️ SYSTEM CHARACTERISTICS
• Non-repainting structural oscillator logic
• Volatility-adaptive normalization layer
• Noise-filtered momentum extraction
• Regime-sensitive signal interpretation
• Multi-layer smoothing architecture
📌 CREDIT
Quantum Entropy Oscillator (QEO) is developed by gunebak4n as a volatility-normalized momentum framework for structured market interpretation on PulseWire.
The system is designed for traders requiring statistically consistent signal behavior across varying volatility regimes without relying on rigid overfitted thresholds.
⚠️ DISCLAIMER
QEO is a probabilistic analytical tool. It does not predict future price movement or guarantee trading outcomes. Market behavior is stochastic, and all signals must be evaluated within a disciplined risk management framework. Indicator

Indicator

Sin RSI Footprint (with Volume, CVD & VWAP)[ALT_analyst]
█ Overview
The Sin RSI Footprint brings the concept of professional order flow and footprint charting directly into momentum oscillators.
Instead of mapping traditional trading volume at raw price levels, this script peers inside the current higher-timeframe candle to map the internal momentum distribution and structural shifts using Lower Timeframe (LTF) RSI Crossovers, Volume, and Cumulative Volume Delta (CVD) data.
By visualizing exactly where and how momentum transitions occurred within a single bar, traders can identify hidden exhaustion, hidden accumulation/distribution, and intra-bar divergences that are completely invisible on standard candlestick charts.
█ Why is this one unique
This is not a normal RSI indicator. It is an intra-bar market structure mapping engine.
Most indicators treat every price level within a single candlestick as equal. This script uses a Fast/Slow RSI Cross Trigger mechanism to filter out ambient market noise, isolating the exact coordinates where momentum definitively shifts. It transforms these structural shifts into a multi-dimensional footprint matrix, combining them with localized transaction metrics.
⚪ What it does
At a high level:
• Retrieves LTF Crossover Data: Uses request.security_lower_tf to fetch an array of LTF Fast/Slow RSI crosses, Close prices, Volume, and CVD for the duration of the current chart's bar.
• Bins the data: Groups the validated LTF momentum nodes into precise price levels or vertical stacks.
• Calculates localized momentum: Identifies exactly where the definitive momentum shifts occurred inside the wick or body.
• Applies VWAP Trend Discipline: Dynamically filters out counter-trend noise based on a multi-band session VWAP.
█ Core Engines & How It Works
⚪ 1. The Matrix Engine (Traditional Price Level)
This mode acts like a traditional volume profile or footprint chart, but optimized for RSI crossover nodes and localized liquidity.
The script divides the high-to-low range of the current candle into user-defined bins (e.g., 10 rows). It calculates the step size dynamically:
float _st = _bh > _bl ? (_bh - _bl) / _i21 : syminfo.mintick
For each LTF crossover point, it determines the correct row and calculates the localized average RSI, accumulated Volume, and CVD.
Why this matters: It maps definitive momentum shifts to specific price levels. You can instantly see if buyers were exhausting their momentum at the absolute highs or absorbing pressure in the middle of the candle.
⚪ 2. The Stack Engine (Vertical Momentum)
This mode stacks validated LTF RSI crossover prints vertically above or below the candle based on a baseline threshold.
If the triggered LTF RSI is > 50, it is categorized as bullish and stacked above the candle's high. If <= 50, it is stacked below the candle's low. The height of each box is calculated dynamically using the Average True Range (ATR):
float _bhg = _ba * _i22
Why this matters: Separating crossover prints above and below the candle isolates bullish vs. bearish momentum bursts. Using ATR for box height ensures the boxes remain visually proportionate across different assets and timeframes regardless of absolute price volatility.
⚪ 3. The Adaptive VWAP Filter Engine & Multi-Bands
To enforce strict trading discipline ("No position is the third position"), the script includes an adaptive VWAP transparency filter and a dynamic multi-band system.
If a localized footprint box generates a "Sell" signal (overbought RSI) but the price level is ABOVE the session VWAP (bullish regime), the script automatically increases the transparency of that box, fading it into the background. It does the same for "Buy" signals below VWAP.
This ensures you are only presented with high-probability exhaustion or continuation signals that align with the true intraday value.
█ Key Features
• Micro Momentum Analysis: Displays localized RSI, Volume (K), and CVD directly inside the footprint boxes only when a momentum shift is confirmed.
• VWAP Trend Gate & Gradient Bands: Counter-trend signals are visually faded to prevent fighting the primary trend, visualized alongside 3 dynamic standard deviation bands.
• Noise Filter (Hide Range): Clean up the chart by hiding neutral RSI values (e.g., hiding everything between 30 and 70).
• Responsive Text Scaling: Box text size automatically adapts based on box height and user-defined scaling adjustments.
• Custom Color Themes: Choose from heavily optimized palettes including Neon Cyber, Monochrome Dark, Oceanic Deep, Toxic Alert, and Classic TV.
█ Settings
• Mode: Select the rendering engine (Stack or Matrix).
• Fast/Slow RSI Length (Cross Trigger): Defines the sensitivity of the LTF momentum shift detection.
• Matrix Rows: Specifies how many segments the candle is divided into.
• Lower Timeframe (LTF): Specifies the lower timeframe for data collection. Shorter LTFs provide higher precision but increase historical loading requirements.
• Counter-Trend Signal Transparency Filter: Toggles the adaptive VWAP filter.
• Hide Range Min / Max: Filters out neutral momentum values to isolate true extreme nodes.
█ How to Use
⚪ Spotting Reversals (Matrix Mode)
Look for deep red (overbought) RSI footprints concentrated at the very top of a bullish candle's wick. If the next candle fails to break that high, combined with a negative CVD print in the box, it highly suggests momentum exhaustion and trapped buyers at resistance.
⚪ Confirming Breakouts (Stack Mode)
When price breaks a key level, look at the Stack Mode. A large stack of green/blue boxes above the candle, supported by high relative volume, confirms sustained LTF bullish momentum shifting in your favor.
⚪ Filtering Noise
Set the "Hide Range" to 30-70 and enable the "VWAP Filter". The indicator will now only display footprint boxes when the LTF momentum shift reaches true extremes in the direction of the daily trend.
█ Developer's Note & Timeframe Guidelines
As a fundamental characteristic of market structure, momentum patterns observed on higher timeframes tend to carry greater reliability due to the natural reduction of market noise. To achieve optimal performance and prevent technical limitations (PulseWire limits), follow these recommended timeframe ratios:
• For Stack Mode (Recommended Ratio: 1:5 to 1:12)
Best paired as 1m LTF on 5m/10m chart, or 5m LTF on 30m/1H chart.
• For Matrix Mode (Recommended Ratio: 1:12 to 1:60)
Best paired as 1m LTF on 15m/1H chart.
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information. All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make.
Indicator

Market Weariness Spectrum Indicator [MarkitTick]💡 This advanced technical tool is engineered to evaluate the exhaustion of price trends by synthesizing volume, volatility, and price action into a single, comprehensive oscillator. By tracking how much effort the market is expending relative to the actual ground gained by price, this framework helps analysts identify periods of trend fatigue and potential reversals. Rather than relying solely on traditional price-based overbought or oversold levels, it looks deeper into market friction, signaling when a trend is mathematically likely to run out of steam and when a structural recovery is probable.
✨ Originality and Utility
Traditional momentum oscillators and standard volume metrics often operate in isolated silos, which can lead to false signals during strong, prolonged trends. This script bridges that gap by creating a multi-dimensional composite weariness score.
It detects structural exhaustion where high trading volume results in minimal price movement, indicating heavy absorption.
It measures the frequency of directional hesitation within recent price action.
It tracks effort density to provide a dynamic view of trend fatigue that single-metric indicators cannot achieve.
This multifaceted approach reduces false positives and provides a highly nuanced understanding of market mechanics during extreme conditions.
🔬 Methodology and Concepts
The core logic relies on the continuous calculation of three distinct dimensions, which are dynamically weighted and smoothed into the final composite oscillator.
● Dimension 1: Phantom Volume
This component measures the volume expended per unit of price movement.
It calculates the average volume divided by the average absolute price move over a specified lookback window.
Elevated values indicate that massive trading volume is generating very little forward progress, a classic sign of market friction.
The result is strictly normalized on a scale from 0 to 100 based on historical highest and lowest bounds over a derived lookback.
● Dimension 2: Directional Hesitation
This metric tracks the frequency of indecision in the market structure.
It evaluates the size of each candle's real body relative to the underlying Average True Range (ATR).
If a candle's body is less than a specific threshold of the ATR, it is flagged mathematically as a hesitation period.
The algorithm scores the percentage of these hesitation candles over the lookback window, normalizing the output from 0 to 100.
● Dimension 3: Effort Density
Effort Density compares the raw trading volume directly against the prevailing volatility range.
It identifies periods where the market is churning heavily without expanding its dynamic range.
Like the other dimensions, this value is smoothed, tracked against its historical extremes, and normalized to a 100-point scale for seamless integration.
● Composite Calculation and Signal Logic
The three dimensions are blended using precise, user-defined weights to form the raw weariness score.
A Simple Moving Average is applied to smooth the raw data, creating the primary indicator trajectory.
The script continuously evaluates the mathematical velocity and acceleration of this smoothed line to detect structural deceleration in weariness.
This logic triggers specific reversal signals only when extreme exhaustion mathematically begins to wane, rather than at the absolute peak.
🎨 Visual Guide
The system provides a rich, multi-layered visual experience to ensure all data is instantly readable directly on the chart.
● Chart Elements and Overlays
Candle Coloring: The main chart candles are dynamically colored based on the current weariness level, transitioning through a gradient of green, yellow, orange, and red.
Reversal Labels: Explicit downward-pointing labels appear on the chart when the weariness metric peaks above the critical threshold and structural deceleration is confirmed.
Recovery Labels: Upward-pointing labels signify that the market has recovered from a state of severe exhaustion, crossing back into baseline operational zones.
● Oscillator Panel
Oscillator Line: The thick main oscillator line representing the composite weariness score, dynamically colored.
Dimension Lines: Three distinct lines representing the individual calculations for Phantom Volume, Directional Hesitation, and Effort Density.
Threshold Fills: A semi-transparent visual fill highlights the specific zone between the critical alert level and the recovery baseline.
Critical Backgrounds: The oscillator panel background shifts color dynamically when weariness exceeds absolute critical limits.
● On-Chart Dashboard
Data Table: An intuitive, heavily formatted table tracks the exact percentage and text status of the current calculation.
Progress Bars: Text-based visual progress bars represent the isolated weight of each dimension in real-time.
Acceleration Trackers: Directional arrows track the direct acceleration vector of the current trend state.
📖 How to Use
The primary application of this system is identifying when a market move has exhausted its underlying momentum, regardless of the immediate price action.
● Identifying Exhaustion
Monitor the primary oscillator as it climbs toward the upper boundary.
When the line enters this critical zone, the current trend is expending maximum effort for minimal reward. Caution is advised for trend-continuation setups.
● Evaluating Reversals
Wait for the structural acceleration to turn negative.
When a reversal label manifests, it suggests that the exhaustion has structurally peaked and the market may be susceptible to a shift in directional momentum.
● Confirming Recoveries
After a period of extreme weariness, wait for the oscillator to fall back below the defined recovery threshold.
The appearance of a recovery label indicates the market has absorbed the previous friction, signaling a return to baseline conditions.
⚙️ Inputs and Settings
The script provides granular control over all internal weighting and lookback mechanisms.
● Core Parameters
Lookback: Defines the primary window for all moving averages and historical normalization extremes.
Smooth: Adjusts the sensitivity of the final composite score to reduce standard market noise.
ATR Len: The specific period used for calculating the volatility benchmarks essential to the Hesitation and Density formulas.
● Dimension Weights
W1 Phantom Vol: The proportional weight assigned to the volume-per-move calculation.
W2 Dir Hesit: The proportional weight assigned to the structural hesitation calculation.
W3 Effort Den: The proportional weight assigned to the volume-to-volatility calculation.
● Signal and Visual Thresholds
Crit Exh %: The strict upper boundary that defines extreme structural weariness.
Recovery %: The lower boundary that defines a complete return to standard market flow.
Confirm Bars: The sustained duration required for the indicator to remain in exhaustion before any subsequent reversal signals can be mathematically validated.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
The theoretical foundation of this logic rests heavily on established volume spread principles and statistical volatility analysis.
● Effort vs. Result Mechanics
In objective terms, when a system applies maximum input volume but achieves minimal price displacement, the energy is being absorbed by opposing liquidity.
The script quantifies this exact friction mathematically through specialized density formulas, filtering out traditional momentum illusions.
● Volatility Clustering
The hesitation frameworks rely on the statistical observation of volatility clustering.
By measuring continuous body size constraints relative to an evolving volatility band, the formulas isolate periods where directional conviction fundamentally collapses.
● Derivative Logic
The internal signal engine evaluates the specific velocity and acceleration vectors of the underlying weariness curve.
By requiring structural acceleration to turn decisively negative after a local maximum, the mathematical algorithm ensures the statistical apex of the exhaustion phase has cleanly passed before printing confirmation markers.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator

Macro Liquidity Z-Score (Smoothed)Overview
The Global Liquidity Z-Score Index is a macro-analytical tool designed to track, smooth, and visualise the expansions and contractions of global fiat liquidity. Central bank interventions and monetary policy print the ultimate "tide" that lifts or lowers all risk assets. This indicator standardises global money supply expansion into a clean standard deviation oscillator (Z-Score), helping macro investors identify generational market bottoms and structural cycle peaks.
Unlike traditional economic charts that suffer from heavy month-to-month seasonal reporting noise, this script applies a dual-stage filtering system to isolate the true multi-year structural trend.
How It Works & Calculations
This indicator functions best when applied to a combined custom global M2 ticker string (such as summing the M2 figures of the US, Eurozone, China, Japan, and the UK).The calculation follows two distinct mechanical steps:
1. Seasonality Smoothing: Raw monthly macro data inherently has annual jagged noise due to holiday spending cycles and uneven central bank reporting dates. The script applies a localised Simple Moving Average (SMA) filter to smooth these short-term discrepancies.
2. Statistical Variance (Z-Score): The script then calculates the standard deviation of the smoothed liquidity trend against a long-term rolling baseline. The final formula plots how many standard deviations current global liquidity is deviating from its multi-year mean:
Z = ( x - µ ) / σ
Z = (Where x is the smoothed M2 data, µ is the rolling mean lookback, and σ is the standard deviation).
How to Use & Interpret the Signals
To align this script with major asset class cycles (like the 4-year crypto halving cycles or structural equity regimes), it is highly recommended to use it on the Monthly (1M) time frame with a Z-Score Lookback of 36 or 48 months.
• The Upper "Overheated" Threshold (+1.2 Zone): When the indicator line spikes deep into the upper band and turns red, global central banks are injecting capital at a rate significantly higher than the multi-year average. This represents peak monetary expansion, historically correlating with late-stage bull market euphoria and asset overvaluation. This is a zone to scale out of risk.
• The Lower "Liquidity Floor" Threshold (-1.2 Zone): When the indicator bottoms out into a deep valley and turns green, it highlights severe quantitative tightening or liquidity contraction relative to the trend. Historically, when the line stabilises in this zone and begins curling back upward, it signals a structural market pivot—marking exceptional, low-risk periods for long-term spot asset accumulation.
• The Current Regime: The baseline (0.0) represents perfectly neutral liquidity expansion. Watch for clean, rolling cross-overs of the baseline to identify mid-cycle momentum shifts.
Inputs & Customisation
• Source Data: Defaults to close. Ensure your active chart is loaded with a global M2 tracking formula.
• Seasonality Smoothing: Controls the short-term smoothing filter. Recommended setting: 3 to 6 months to erase reporting noise.
• Z-Score Lookback: Controls the multi-year statistical lens. Recommended setting: 36 to 48 months for macro market cycles.
Indicator

[3Commas] POL RSI Reversal DCA - Short Indicator POL RSI Reversal DCA - Short Indicator
🔷 What it does:
This is a signal-only indicator that mirrors a short-side mean-reversion workflow on POL / USDT. It tracks one virtual short position at a time, opened when the 5-minute RSI(9) crosses down through 80 (overbought momentum rollover). Up to three averaging orders fill at fixed deviations ABOVE base entry (+1%, +2%, +3%) with uniform sizing. Exit is a 1.3% Take Profit with a 0.3% trailing retrace, plus a hard 8% Stop Loss. The indicator computes running average entry, deployed capital, open PnL, and lifetime realized PnL — all from honest fill-by-fill bookkeeping. Every event emits a webhook-ready JSON alert payload for direct DCA Bot consumption.
- Momentum-exhaustion trigger: 5m RSI(9) crossing DOWN through 80.
- Uniform DCA ladder: +1% / +2% / +3% above base entry, equal sizing.
- Tight 1.3% Take Profit with a 0.3% trailing lock, and a hard 8% Stop Loss.
- Honest virtual bookkeeping: Open PnL and lifetime Total PnL displayed live on the chart.
🔷 Who is it for:
- Intraday traders fading overbought spikes on POL on lower timeframes.
- Bot operators who want a chart-driven signal source that emits per-event JSON ready for a DCA Bot.
- Traders who want a defined-risk short signal — modest averaging plus a hard stop — rather than an open-ended martingale.
- Operators tracking staged position management (entry, up to three averaging fills, single exit) directly on the chart without the strategy-tester overhead.
🔷 How does it work:
Entry Trigger: A 5-minute RSI(9) is sampled via request.security with lookahead disabled (no repaint). The base short opens when that RSI crosses DOWN through 80 — the prior 5m close was ≥ 80 and the current is below it, marking the moment overbought momentum rolls over.
Base Entry: When the trigger fires, the indicator marks a virtual short, captures the base entry price, and seeds the cost-basis ledger with the configured base order size (default 500 USDT).
Averaging Orders (Uniform DCA Ladder): After base fill, the indicator monitors price deviation above the base entry. Each averaging order has a fixed deviation — +1%, +2%, +3% — with uniform sizing (250 USDT each). Each fill updates the running cost-basis and dispatches its own webhook payload, raising the virtual average entry.
Honest Virtual Bookkeeping: Total cost and qty are updated incrementally on every event, so the avg entry, deployed capital, Open PnL, and Total PnL displayed in the status table reflect the actual broker-equivalent position state — no shortcut from base entry, no synthetic averaging.
Exit (TP + Trailing): A 1.3% Take Profit below the running average entry arms a trailing exit. Once price trades through the TP level, the indicator tracks the in-favor low and signals a close when price retraces 0.3% off that low.
Stop Loss: A hard 8% Stop Loss above the average entry. If price runs against the short past that level, the close webhook fires, realized PnL accumulates, and the virtual position resets.
Lifetime Total PnL: When a cycle closes, its realized PnL accumulates into a lifetime counter. The status table displays both Open PnL (current cycle, resets on exit) and Total PnL (lifetime, persists across chart history).
🔷 Why it's unique:
- Momentum-Exhaustion Trigger: Rather than signaling on any overbought reading, the short opens specifically on the RSI crossing DOWN through 80 — the rollover moment — filtering out signals that fire while momentum is still climbing.
- Defined-Risk DCA: A modest 3-rung uniform ladder AND an 8% hard stop, so the worst-case loss per cycle is bounded and known in advance.
- Trailing Take Profit: The 1.3% target arms a 0.3% trailing exit rather than a fixed limit — capturing the reversion snap and then riding any follow-through.
- Lifetime PnL Tracking: Open PnL and Total PnL are displayed live on the chart — strategy-tester-equivalent insight without running a backtest.
- Per-Event Webhook Ledger: Up to six discrete events per cycle (entry + 3 AO fills + TP or SL), each with its own JSON alert payload. One PulseWire alert with "Any alert() function call" drives a DCA Bot end-to-end.
🔷 Considerations Before Using the Indicator:
Sample Size: The companion strategy's backtest produced 87 closed trades — just below the ~100-trade floor commonly used for statistical relevance. The high win rate and profit factor reflect favorable conditions over the test period; treat them as indicative, not a forward-performance guarantee.
Short Execution Venue: This signals shorts. Live shorting of POL requires a margin or perpetual venue — it cannot run on a spot account.
Lower-Timeframe Sensitivity: The trigger runs on a 5-minute RSI. Lower timeframes generate more signals but are more sensitive to noise and fees. Confirm trade frequency and fee drag fit your execution venue.
Stop Loss Discipline: The 8% Stop Loss is the defining risk control. With base plus three averaging orders, maximum deployed capital is ~1,250 USDT (12.5% of the default reference equity); an 8% stop on that bounds the worst-case loss to roughly 1% of equity. Keep the stop enabled — removing it converts this into an unbounded martingale short.
Trend Risk: Fading overbought conditions works best in ranges and choppy regimes. In a strong sustained uptrend the short can hit the 8% stop repeatedly. The RSI-crossing-down trigger reduces but does not eliminate this.
Cross Detection Granularity: Entries, AO fills, and exits are evaluated on bar close. A bar that spikes through a level and returns within the same bar may be missed by design — this matches realistic polling behavior and avoids over-signaling on intra-bar wicks.
Live vs Historical State: The virtual position state is rebuilt from chart history each time the indicator is recompiled. If added mid-deployment or if the live bot diverges (manual interventions, partial fills), the indicator state may not match the live bot. Toggle the indicator off and on to reset.
Backtesting Note: This is an indicator, not a strategy. There is no built-in P&L tester — but the live Total PnL counter gives a running approximation. For full metrics over a ~4.7-month sample (87 closed trades, 90.80% win rate, 1.62% max drawdown, profit factor 4.183, +3.38% net return), use the companion strategy version on identical parameters.
🔷 How to Use It:
🔸 Add the indicator to a 5m POL / USDT chart.
🔸 Review the RSI trigger level, the averaging-order count/deviation/size, the Take Profit, Trailing, and Stop Loss percentages. Defaults mirror the source DCA Bot configuration.
🔸 Set Base Order Size and AO sizes to match your bot's configuration (the avg-entry display becomes meaningful when virtual sizing matches real sizing).
🔸 In the DCA Bot Webhook group, paste the Bot ID, Email Token, and Pair (QUOTE_BASE format, e.g., USDT_POL).
🔸 Create an alert on the indicator with "Any alert() function call". Paste the DCA Bot's webhook URL into the alert's Webhook field. The indicator will emit JSON payloads for entry, each averaging order, and the TP/SL exit — formatted for direct DCA Bot consumption.
🔷 INDICATOR SETTINGS
Base Order Size (USDT): Virtual order size for the avg-entry / open-PnL computation.
Averaging Orders per Trade: Number of safety orders (default 3).
First AO Size (USDT): Virtual size of each averaging order (uniform by default).
Deviation to First AO (%) / Deviation Step Multiplier: Spacing of the AO ladder above base entry. Defaults to uniform +1% steps.
Order Size Multiplier: Per-rung size scaling (1.0 = uniform).
RSI Timeframe / Length / Crossing Down Level: The RSI(9) crossing-down trigger (default 5m).
Take Profit (%) / Trailing (%): TP distance below average entry and the trailing retrace that closes the position.
Stop Loss (%): Hard stop above average entry.
Active Window: Optional date filter — when ON, the indicator only fires signals between From and To dates.
DCA Bot Webhook: Bot ID, Email Token, and Pair fields injected into every alert payload.
Visualization: Toggle DCA Ladder, Avg / TP / SL plot lines, fill labels, signal triangles, status table.
Brand Watermark: Configurable text, position, size, and transparency.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas PulseWire account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc. Indicator

[3Commas] POL RSI Reversal DCA - Short Strategy POL RSI Reversal DCA - Short Strategy
🔷 What it does:
This is a short-only DCA strategy that fades overbought momentum on POL / USDT. A short deal opens when the 5-minute RSI(9) crosses down through 80 — a momentum-exhaustion signal after a fast push higher. Up to three averaging orders then fill at fixed deviations ABOVE the base entry (+1%, +2%, +3%) with uniform sizing, pulling the average entry up if price keeps rising. Exit is a 1.3% Take Profit from the average entry with a 0.3% trailing retrace, and a hard 8% Stop Loss caps the downside.
- Single base order plus up to three uniform averaging orders on a fixed +1% / +2% / +3% ladder.
- Tight 1.3% Take Profit with a 0.3% trailing lock — captures the mean-reversion snap-back, then trails to squeeze a little extra.
- Hard 8% Stop Loss closes the trade if the short keeps running against the position — a real, bounded per-trade risk.
- Every entry, averaging order, and exit emits a webhook-ready JSON alert payload for direct DCA Bot consumption.
🔷 Who is it for:
- Intraday traders fading overbought spikes on POL on lower timeframes.
- Bot operators who want to drive a DCA Bot short deal from PulseWire alerts with per-event JSON payloads.
- Traders who want a mechanical short with a defined stop, modest averaging, and a quick profit target rather than an open-ended hold.
- Portfolio operators looking for a high-win-rate, short-side contributor with bounded risk.
🔷 How does it work:
Entry Trigger: A 5-minute RSI(9) is sampled via request.security with lookahead disabled (no repaint). The base short opens when that RSI crosses DOWN through 80 — i.e., the prior 5m close was ≥ 80 and the current is below it, marking the moment overbought momentum rolls over.
Base Order: Sized at 500 USDT default (5% of 10k capital), placed as a Limit order at the signal bar's close (Market toggle available).
Averaging Orders (Uniform DCA Ladder): After the base fill, the strategy monitors price deviation above the base entry. Each averaging order has a fixed deviation — +1%, +2%, +3% — with uniform sizing (250 USDT each, half the base). If price rises against the short, each rung adds size and raises the average entry, so a smaller reversal is needed to reach Take Profit.
Exit (TP + Trailing): A 1.3% Take Profit below the running average entry arms a trailing exit. Once price trades through the TP level, the strategy tracks the in-favor low and closes when price retraces 0.3% off that low — locking the move while letting it extend.
Stop Loss: A hard 8% Stop Loss above the average entry. If price runs against the short past that level, the position closes at market. This is the strategy's defined, bounded per-trade risk.
🔷 Why it's unique:
- Momentum-Exhaustion Trigger: Rather than shorting any overbought reading, the deal opens specifically on the RSI crossing DOWN through 80 — the rollover moment — which filters out trades that fire while momentum is still climbing.
- Defined-Risk DCA: Most martingale DCA shorts run without a stop. This one keeps a modest 3-rung uniform ladder AND an 8% hard stop, so the worst-case loss per deal is bounded and known in advance.
- Trailing Take Profit: The 1.3% target arms a 0.3% trailing exit rather than a fixed limit — capturing the reversion snap and then riding any follow-through.
- DCA Bot Integration: Every event (base, AO 1–3, exit) emits a fully-formed JSON alert payload. Connect one alert to a DCA Bot's webhook URL and the strategy drives the bot end-to-end without any glue layer.
🔷 Considerations Before Using the Strategy:
Sample Size: The backtest produced 87 closed trades — just below the ~100-trade floor commonly used for statistical confidence. The 90.80% win rate and 4.183 profit factor reflect favorable conditions over the test window; treat them as indicative rather than a forward-performance guarantee. Extend the window or run across multiple assets to build a larger sample.
Lower-Timeframe Sensitivity: Tested on a 5-minute chart with a 5-minute RSI trigger. Lower timeframes generate more signals but are more sensitive to noise and fees. Confirm the trade frequency and fee drag fit your execution venue before deploying.
Stop Loss Discipline: The 8% Stop Loss is the defining risk control. With the base plus three averaging orders, maximum deployed capital is ~1,250 USDT (12.5% of default equity); an 8% stop on that position bounds the worst-case loss to roughly 1% of equity. Keep the stop enabled — removing it converts this into an unbounded martingale short.
Trend Risk: Fading overbought conditions works best in ranges and choppy regimes. In a strong, sustained uptrend the short can hit the 8% stop repeatedly. The RSI-crossing-down trigger reduces but does not eliminate this; pair with regime awareness.
Commission Calibration: The default 0.06% commission is calibrated for Bybit perpetual taker conditions. Match it to your exchange's actual fees — on a high-frequency lower-timeframe strategy, fee mismatch materially shifts results.
🔷 STRATEGY PROPERTIES
Symbol: BYBIT:POLUSDT.P (Perpetual) — portable to any POL / USDT pair.
Timeframe: 5M chart (5M RSI trigger).
Test Period: March 26, 2026 — June 18, 2026 (~2.7 months).
Initial Capital: 10,000 USDT.
Order Size: 500 USDT base (5%) + 3 averaging orders of 250 USDT each (uniform).
Max Capital Deployed: ~1,250 USDT per trade (~12.5% of equity).
Commission: 0.06% per trade.
Slippage: 3 ticks.
Margin for Short Positions: 100% (1× leverage, Isolated in source config).
Indicator Settings: Default Configuration.
Base Order: 500 USDT, Limit by default (Market toggle available).
Entry Trigger: 5m RSI(9) Crossing Down 80.
Averaging Orders: 3 with fixed deviations +1% / +2% / +3% above base entry; uniform 250 USDT sizing.
Take Profit: 1.3% below average entry, with 0.3% trailing.
Stop Loss: 8% above average entry (hard close).
Strategy: Short Only.
🔷 STRATEGY RESULTS
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +337.89 USDT (+3.38%)
Max Equity Drawdown: 164.93 USDT (1.62%)
Total Closed Trades: 87
Percent Profitable: 90.80% (79 / 87)
Profit Factor: 4.183
🔷 How to Use It:
🔸 Adjust Settings: Open the strategy inputs and review the Base Order Size, the averaging-order count/deviation/size, the RSI trigger level, the Take Profit and Trailing percentages, and the Stop Loss. Defaults mirror the source DCA Bot configuration — recalibrate per asset and timeframe.
🔸 Results Review: This configuration produced 87 closed trades over the test window — just below the ~100-trade floor for statistical relevance. Extend the window or test across multiple assets to firm up confidence, and confirm the win rate, drawdown, and trade frequency fit your risk tolerance before deploying capital.
🔸 Create alerts to trigger the DCA Bot: Add one alert on the strategy using "Any alert() function call". Paste the DCA Bot's webhook URL into the alert's Webhook field, and fill the Bot ID, Email Token, and Pair inputs on the script. The strategy will emit JSON payloads for entry, each averaging order, and exit — formatted for direct DCA Bot consumption.
🔷 INDICATOR SETTINGS
Base Order Size (USDT): USDT amount opened on the initial short.
Use LIMIT for Base: Toggle between Limit (default) and Market entry.
Averaging Orders per Trade: Number of safety orders (default 3).
First AO Size (USDT): Size of each averaging order (uniform by default).
Deviation to First AO (%) / Deviation Step Multiplier: Spacing of the AO ladder above base entry. Defaults to uniform +1% steps.
Order Size Multiplier: Per-rung size scaling (1.0 = uniform).
RSI Timeframe / Length / Crossing Down Level: The 5m RSI(9) crossing-down trigger for the base short.
Take Profit (%) / Trailing (%): TP distance below average entry and the trailing retrace that closes the position.
Stop Loss (%): Hard stop above average entry.
DCA Bot Webhook: Bot ID, Email Token, and Pair fields injected into every alert payload.
Visualization: Toggle DCA Ladder, Avg / TP / SL plot lines, fill labels, status table.
Brand Watermark: Configurable text, position, size, and transparency.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas PulseWire account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc. Strategy
