Indicator

Technical 4x4 MatrixTechnical 4x4 Matrix:
Can Rethinking Common Sense Bring New Insights?
Description:
Does reviewing existing common sense bring new insights? The "Technical 4x4 Matrix" challenges the traditional way we view technical analysis. Instead of stacking endless line charts or reading boring data tables, this indicator reimagines 16 classic technical indicators (RSI, MACD, Bollinger Bands, etc.) by projecting them onto a unified, 4x4 analog meter interface directly on your chart.
By standardizing completely different mathematical models into a single visual language, we can uncover hidden confluences and macro alignments that isolated indicators often miss.
To make this matrix function, the script performs heavy data normalization and correlation calculations behind the scenes. Here is why these calculations are used and what they actually output:
1. Data Normalization Engine (The Analog Meters)
Why it's used: You cannot simply average an RSI (measured 0 to 100) with a MACD (absolute price differences). To create a unified "Average Flow," every indicator must be converted to a uniform scale.
The Calculation: The script uses a custom normalization formula:
Normalized Value = (Current Value - Min Value) / (Max Value - Min Value)
Actual Output Value: Regardless of the indicator's native scale, the output value for every single meter is strictly constrained between 0.0 (Absolute Cold/Oversold) and 1.0 (Absolute Hot/Overbought). For example, a neutral RSI of 50 outputs exactly 0.5.
2. Master HUD Crosshair (Macro Correlation)
Why it's used: To determine if the current micro price action is actually aligned with the macro trend, rather than just reacting to short-term noise.
The Calculation:
First, it creates a ratio: Macro Ratio = SMA(Close, 250) / SMA(Close, 1)
Next, it calculates the correlation between the closing price and this ratio over 20 periods, scaling it for the HUD's Y-Axis:
Y-Axis Ratio = (Correlation + 1.0) / 2.0
Actual Output Value: The raw correlation ranges from -1.0 to 1.0. After scaling, the final Y-Axis output is a coordinate between 0.0 and 1.0. The X-Axis is the simple average of all active 0.0 to 1.0 normalized indicators. If the crosshair intersects at (0.8, 0.8), it outputs a mathematically backed signal of strong macro and micro bullish alignment.
16 togglable indicators rendered as square analog meters with dynamic needle tracking and LED status lights.
Garbage Collection: Efficient array clearing prevents memory leaks and visual ghosting.
Master Crosshair: A central HUD that tracks the aggregated flow of all 16 indicators (X-axis) against macro-trend correlation (Y-axis).
Indicator

Indicator

Linda Raschke MACD + Stochastic# Linda Raschke MACD + Stochastic
This indicator combines a fast **MACD (3,10,16)** with a **Stochastic Oscillator (7,10,3)**, inspired by trading concepts commonly associated with professional trader Linda Raschke.
Instead of relying on a standard MACD (12,26,9), this version uses a faster configuration to detect short-term momentum shifts and potential trend changes more quickly.
## Features
* MACD (3,10,16)
* Stochastic (7,10,3)
* Automatic BUY and SELL signals
* Momentum confirmation using both indicators
* Built-in alert conditions
* Designed for day trading and swing trading
## Buy Signal
A BUY signal is generated when:
* The MACD line crosses above the Signal line.
* The Stochastic forms a bullish Hook, indicating momentum is turning upward.
## Sell Signal
A SELL signal is generated when:
* The MACD line crosses below the Signal line.
* The Stochastic forms a bearish Hook, indicating momentum is turning downward.
Signals are displayed only when both conditions occur together, helping reduce false entries.
## Recommended Usage
This indicator is intended to be used as a momentum confirmation tool rather than a standalone trading system.
For better trade selection, consider combining it with:
* 3 EMA & 10 EMA
* ATR Trailing Stop
* Previous Day High / Low
* Support & Resistance
* Price Action Analysis
## Disclaimer
This indicator is provided for educational and informational purposes only. It does not guarantee profitable trades and should always be used alongside proper risk management and independent market analysis.
Indicator

Crypto Market RSI Heatmap [BigBeluga]🔵 OVERVIEW
The Crypto Market RSI Heatmap is a comprehensive, institutional-grade sector momentum matrix built for PulseWire. It consolidates relative strength metrics for up to 20 cross-sectional crypto assets into a single, highly readable multi-group pane. Instead of forcing you to open dozens of browser tabs or flip back and forth between charts, this system runs concurrent structural background queries to map real-time market overbought expansions and oversold depressions using an advanced, color-gradient visual framework.
🔵 FEATURES
The indicator tracks cross-asset momentum cycles through an isolated data processing engine:
1 — Multi-Asset Matrix Architecture
Modular Asset Grouping: Assets are automatically split into 4 distinct structural sectors (Group A through Group D). Each section handles up to 5 completely customizable tickers, allowing you to organize setups by Layer 1s, DeFi, Memes, or Major pairs.
Independent Timeframe Anchors: Every group has an isolated execution timeframe filter ( Timeframe ). This allows you to monitor short-term scalping momentum in one sector while simultaneously tracking macroscopic daily trend structures in another.
Dynamic Highlight Tracking: The background matrix scans the active workspace. The exact asset loaded on your current open chart is highlighted with a custom accent marker ( Current Chart Asset Highlight ) so you never lose your visual anchor.
2 — Momentum Filters & Statistical Computations
Flexible Core Oscillators: The engine isn't limited to standard RSI calculations. Users can instantly toggle between a classic Relative Strength Index, Money Flow Index (MFI) to capture volume distribution, or a fast-response Stochastic RSI.
Group Average Horizon Lines: Dotted real-time horizontal baselines calculate the mean historical mathematical score of each active group, providing an instant look at overall sector health.
Real-Time Cluster Stats: A live sub-label maps out the active average, minimum, and maximum value points for every cluster directly across the base of the indicator workspace.
// 3-Point Color Gradient Engine & Highlighting Mechanism
color dynamicCoinColor = colorMidYel
if coinRSI >= 50.0
dynamicCoinColor := color.from_gradient(coinRSI, 50.0, 75.0, colorMidYel, colorMaxRed)
else
dynamicCoinColor := color.from_gradient(coinRSI, 25.0, 50.0, colorMaxGrn, colorMidYel)
bool isActiveChartAsset = str.contains(str.split(symbol, ":").last(), syminfo.ticker)
if isActiveChartAsset
dynamicCoinColor := colorActive
🔵 HOW TO USE
Using the system to gauge sector rotation requires a systematic analysis flow:
Evaluating Sector Divergences: Monitor the separate group structures to identify relative market leaders and laggards. When Group A’s average baseline pushes deeply into the upper red expansion zone while Group B remains pinned inside the lower green oversold region, money is explicitly rotating out of one pocket and into the other.
Tracking Active Momentum Continuations: Watch the trailing dashed historical lines to catch velocity expansions. Assets that break heavily out of the neutral 50 level and carry an institutional-grade gradient color shift provide high-probability breakout opportunities.
Isolating Market Anomalies: Use the bottom statistics panel to hunt down structural outliers. If a major sector average is floating heavily at a overbought 75 reading, but an individual coin within that exact cluster is sitting at a depressed 35 minimum level, you have found an inefficiencies setup.
🔵 NOTES
Why this implementation is unique:
It completely replaces standard, bulky multi-pane monitor clusters by arranging up to 20 assets side-by-side using a clean, space-staggered horizontal charting layout.
The dual-layer label framework overlays readable ticker identifiers directly on top of real-time momentum tracking nodes, preserving chart real estate without sacrificing readability.
It bridges standard price-derived momentum structures with user-defined asset lists, creating a bespoke internal crypto index tracking workspace.
Indicator

X-trenderThis script is designed to identify the market trend, its momentum, and potential reversal points by combining Arnaud Legoux Moving Averages (ALMA) and the Relative Strength Index (RSI).
The indicator is plotted in a separate pane below the price chart (overlay=false).
Here is a detailed breakdown of how the script works:
1. Core Logic (The Calculation)
The indicator filters out market noise by combining two powerful tools:
- ALMA (Arnaud Legoux Moving Average): An advanced moving average that reduces lag while maintaining superior smoothness. The script allows you to choose your preferred price source (e.g., Close, HLC3, OHLC4).
- RSI (Relative Strength Index): Instead of applying RSI directly to raw prices, the script calculates the RSI of the smoothed ALMA values and subtracts 50. This centers the indicator around a zero (0) baseline:
x - Values above 0 signal a bullish (upward) trend.
x - Values below 0 signal a bearish (downward) trend.
2. Dual Time Horizons (Short vs. Long)
The indicator analyzes the market from two perspectives simultaneously, creating two overlapping histograms:
- ShortTermXtrender: Calculates the RSI based on the difference between two fast ALMA lines. This captures rapid, local changes in price momentum.
- LongTermXtrender: Calculates the RSI directly from a single long ALMA line. This tracks the more stable, macro market trend.
3. Visual Signals and Charting
- Histogram Colors: Bright green/dark green represents upward momentum, while bright red/dark red represents downward momentum. The color brightens when the move accelerates and darkens when it slows down.
- Signal Line: A further smoothed ALMA of the short-term indicator. It turns bright green when moving up and red when moving down.
- Reversal Dots (Tiny Circles): Plotted at the exact pivot points of the signal line. A green dot marks a local bottom (potential buy signal), and a red dot marks a local peak (potential sell signal).
- Fixed Levels: Horizontal lines at 30 / -30 and 40 / -40 help identify overbought and oversold conditions.
4. Dynamic ATR Bands
When enabled, orange bands are drawn around the short-term indicator based on market volatility (Average True Range). These work similarly to Bollinger Bands. When the histogram breaks outside these bands, it signals an extreme market condition and a high probability of a price correction.
5. Multi-Timeframe (MTF) Dashboard
The script features an MTF dashboard that creates a clean table in the corner of your chart. It fetches the long-term trend data from multiple higher timeframes (e.g., 15m, 1h, 4h, 1D) at the same time:
- Displays BULL (green) if the long-term trend on that timeframe is positive.
- Displays BEAR (red) if the trend on that timeframe is negative.This allows you to quickly check the "higher timeframe bias" without switching charts. Indicator

CTZ BTC ULTIMATE CYCLE v3.3 Vector
CTZ BTC Ultimate Cycle v3.3 — Vector Edition
Two frameworks. One chart. Cycle timing tells you when a low is due — regime analysis tells you whether the market agrees. v3.3 fuses them.
The Cycle Engine tracks Bitcoin's rhythm across four nested cycles — Daily (~30 days), Intermediate (~80 days), Yearly (~365 days), and the 4-Year cycle — detecting each low as it forms, learning from actual cycle lengths, and projecting forward: cycle lines, projection boxes with price targets, countdown timers, and progress bars for every degree. Star-rated confidence on every DCL and ICL (divergence, volume, regularity, translation), cycle failure detection with bull/bear context, invalidation levels, win/fail streaks, and multi-cycle sync detection.
The Vector Engine runs a six-component regime model alongside — trend structure, momentum, MACD, rate of change, drawdown, and Supertrend — scored into a composite that classifies the market as Strong Risk-On, Risk-On, Risk-Off, or Strong Risk-Off, with a live count of how many internals are improving. The regime also powers smarter bull/bear detection for the cycle engine's failure logic (toggleable).
Where they agree is where it matters:
⚡★ CONFLUENCE LOW — a cycle timing window is active and the Vector confirms: deep capitulation, internals turning up together, composite rising. The clock says a low is scheduled; the internals say it's actually forming.
⚠ V-TOP — the regime flips Risk-On → Risk-Off within bars of a fresh cycle high while translation is weak. Timing and condition both warning at once.
A full dashboard covers everything: cycle progress for all four degrees, translation, MA breakout status, upcoming low countdowns, zone alerts, invalidation prices, signal quality, and a dedicated Vector section with regime, score, and improvement breadth.
Comprehensive alerts: confluence signals, new cycle lows, high-conviction setups, cycle failures, sync events, zone entries, and MA breakouts.
Designed for BTCUSD daily.
Cycle projections and regime signals describe probabilities, not certainties. Not financial advice. Indicator

Swell - Fast/Slow Consensus OscillatorThis oscillator plots one statistic at two speeds and trades their consensus. Both lines measure the same thing — the volatility-normalized deviation of price from a moving mean, a z-score. The fast line is raw Bollinger percent-B; the slow line is the same deviation passed through triple smoothing, in the style of the Firefly oscillator. Think of one sea surface decomposed into two frequencies: the slow line is the swell, the long-wavelength energy that sets the direction of the water; the fast line is the chop on top of it. Consensus signals ride the chop in the direction of the swell — the century-old tide-and-wave reading of markets, made spectral. The slow line defines the directional regime and wears its verdict as color: teal when it sits above the midline and rises, red when it sits below and falls, amber when position and slope disagree — the regime is on hold and regime-gated signals disarm until the two agree again.
Markers are emoji, and every extreme marker sits directly on the boundary that fired it. A bull prints when the fast line reclaims the midline inside a bullish regime; a bear prints on the mirror event. A sprout prints when the fast line turns up through an oversold boundary, a diamond when that happens inside a bullish regime. A fire prints when the fast line rolls over through an overbought boundary, a trap when that happens inside a bearish regime, and a siren when the rollover coincides with the slow line stalling at elevated levels. Overbought and oversold are hybrid by default: enclosing bands drawn from the fast line's own recent statistics, lagged one bar so a spike is judged against pre-spike conditions, tighten the definition of extreme in quiet stretches, while the fixed levels stay armed as an absolute safety net — a crossback fires on either boundary. All four trigger boundaries are drawn as thin lines, so every marker can be traced to the exact line it crossed.
Background tints follow the short-term motion and carry small labels with the judgment, drawn along the top of the pane and horizontally centered on each episode; the ongoing episode's label slides until the episode closes, then freezes. A red tint marks a pullback zone — the slow line bullish while the fast line sits below the midline, a dip within an uptrend. A green tint marks a suspect rally — the slow line bearish while the fast line pushes above the midline, a bounce to distrust. A violet tint marks a volatility squeeze, when Bollinger bandwidth sits below a percentile threshold of its own history — quiet stretches that tend to precede expansions. An optional filter restricts the four entry signals to a release window after a squeeze; advisories and regime alerts are never filtered. Every event on the chart is subscribable as an alert: each of the seven markers fires exactly when its emoji prints, plus regime turns, zone starts, squeeze start and release, and a catch-all condition covering any marker.
Inputs. The fast side takes the usual Bollinger length and multiplier. The slow side takes the Firefly lookback and smoothing length, with optional double smoothing and a ZLEMA variant. The consensus block sets the midline, the adaptive band length and multiplier, the fixed overbought and oversold levels, the elevated threshold for exhaustion, and a toggle requiring slope agreement for the regime, which makes signals stricter and later. The squeeze block sets the bandwidth lookback, the percentile threshold, and the release window.
Scope. An oscillator reads stretch, not regime-appropriateness: in a strong trend, extreme readings often mark strength rather than reversal, and the overheat cue in particular will fire repeatedly while price keeps running. Treat the markers as cues to investigate, not as a trading system, and let the slow line's color arbitrate which side of the book is open. The fast line is based on BBPCT% by AlgoAlpha; the slow line is based on the Firefly Oscillator by LazyBear, from an original idea by Yasu. Indicator

HBAR RSI Indicator [3Commas]HBAR RSI Indicator
🔷 What it does:
This is a signal-only indicator that mirrors a long-only DCA workflow on HBAR / USDT. It tracks a single virtual position: a base entry opens when 4h RSI(14) drops below 28; if price keeps falling, five averaging orders add to the virtual position at fixed deviations from the base entry, each larger than the last; the position is then closed at a fixed take-profit above the blended average entry. The indicator computes running average entry, deployed capital, open PnL, and lifetime realized PnL from honest fill-by-fill bookkeeping, and emits a webhook-ready JSON alert payload on the base order, every safety order, and the close.
- Single entry filter: 4h RSI(14) below 28 (deep oversold).
- Five averaging orders at fixed deviations (−2%, −5%, −9.5%, −16%, −25%) with 1.8× size scaling per rung.
- Fixed take-profit on the blended average entry; no trailing, no stop loss.
- Honest virtual bookkeeping: avg entry, deployed capital, Open PnL, and cumulative realized PnL displayed live on the chart.
🔷 Who is it for:
- Swing traders accumulating HBAR on deep RSI flushes who want a chart-driven signal source.
- Bot operators who want base / safety-order / close webhook JSON ready to drive a DCA Bot.
- Traders comfortable with martingale-style averaging who size their capital to the worst-case ladder fill.
- Traders who want strategy-tester-equivalent insight (live realized / unrealized PnL) without running a backtest engine.
🔷 How does it work:
Base Entry: On each closed 4h bar the indicator reads RSI(14). When RSI falls below 28 and there is no open virtual position, it marks a virtual base order at the close price and dispatches the entry webhook.
Averaging Orders: Once in a virtual position, the indicator watches price relative to the original base entry. The five safety orders are armed at fixed deviations from that base entry — not cumulatively — at −2%, −5%, −9.5%, −16%, and −25%. As each threshold is crossed on bar close, the corresponding safety order is recorded and its webhook fires. Order sizes scale 1.8× per rung ($900 → $1,620 → $2,916 → $5,249 → $9,448 from a $500 base), pulling the blended average entry down toward the latest fill.
Honest Virtual Bookkeeping: Total cost and qty are updated incrementally on every event, so the avg entry, deployed capital, and Open PnL displayed in the status table reflect the actual broker-equivalent position state — no shortcut, no synthetic averaging.
Take Profit & Lifetime PnL: When price closes at or above the take-profit level (a fixed percentage above the average entry), the virtual position is closed, its round-trip profit is added to a persistent realized-PnL counter, and the close webhook fires. The status table displays both Open PnL (current unrealized state) and cumulative realized PnL, so live performance is visible directly on the chart.
Capital Bounds: Total virtual deployed capital cannot exceed the base order plus the five safety orders. Once all five are filled, no further adds occur — the position simply waits for the take-profit.
🔷 Why it's unique:
- Deep-Oversold-Only Entries: A single, strict RSI(14) < 28 filter on 4h keeps the signal quiet in normal conditions and only fires after a meaningful flush.
- Fixed-Deviation Martingale Ladder: Safety orders are placed at fixed percentages from the base entry with deliberate 1.8× size scaling — a transparent, fully-specified averaging schedule rather than an opaque adaptive grid.
- Full Webhook Chain: Base order, each safety order, and the close all emit dedicated JSON payloads. One PulseWire alert with "Any alert() function call" drives a 3Commas DCA Bot end-to-end.
- Live PnL Tracking: Open PnL and cumulative realized PnL are displayed live on the chart — the indicator gives strategy-tester-equivalent insight without running a backtest.
🔷 Considerations Before Using the Indicator:
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If HBAR trends hard below the −25% AO5 level without recovering to take-profit, the virtual position sits fully loaded with no further adds and no stop — Open PnL can grow deeply negative until price reverts.
No Stop Loss: There is no exit signal on adverse moves. Risk is bounded only by the fixed ladder allocation (base + five AOs ≈ $20,633 at default sizing). If a hard exchange-side stop is required, configure it on the bot directly.
Match Sizing to Your Bot: The avg-entry and PnL display becomes meaningful only when the indicator's base/AO sizing matches your real DCA Bot configuration.
Cross Detection Granularity: Base, safety-order, and take-profit events 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 is rebuilt from chart history each time the indicator is recompiled. If the indicator is added mid-deployment or the live bot diverges from the signal stream (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 realized-PnL counter in the status table gives a running approximation. For full metrics over the reference ~30-month sample (81 closed trades, 82.72% win rate, 0.92% max drawdown, profit factor 11.248, +3.90% net return over January 1, 2024 – July 2, 2026), use the companion strategy version on identical parameters. Note the 81-trade sample is below the ~100-trade floor for statistical confidence — treat those metrics, including the high profit factor, as indicative.
🔷 How to Use It:
🔸 Add the indicator to a 4h HBAR / USDT chart.
🔸 Confirm the RSI level (28), the five AO deviations and sizes, and the take-profit percentage match your bot's configuration. Match the base/AO sizing so the avg-entry and PnL display stays meaningful.
🔸 In the DCA Bot Webhook group, paste the Bot ID, Email Token, and Pair (QUOTE_BASE format, e.g., USDT_HBAR).
🔸 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 base order, each safety order, and the close will each emit a dedicated JSON payload formatted for direct DCA Bot consumption.
🔷 INDICATOR SETTINGS
Base Order Size: Virtual capital committed on the first (base) entry.
AO Deviations: Fixed percentage distances from the base entry where each safety order fires.
AO Sizes: Virtual capital per safety order (1.8× scaling by default).
RSI Timeframe / Length / Level: Oversold filter for the base entry (default 4h, 14, below 28).
Take Profit (%): Distance above average entry where the full position closes.
DCA Bot Webhook: Bot ID, Email Token, and Pair fields injected into every alert payload.
Visualization: Toggle the AO ladder, fill labels, avg/TP lines, and status table (shows status, AOs filled, base/avg entry, TP target, deployed capital, open PnL, RSI, and cumulative realized PnL).
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

HBAR RSI Strategy [3Commas]HBAR Long Strategy
🔷 What it does:
This is a long-only DCA (Dollar-Cost Averaging) strategy for HBAR / USDT that opens a position only in deep-oversold conditions and then averages down on a fixed safety-order ladder. A base order fires when 4h RSI(14) drops below 28; if price keeps falling, five averaging orders add to the position at fixed deviations from the base entry, each larger than the last. The full position is closed at a fixed take-profit above the blended average entry. There is no trailing exit and no stop loss — the position is structurally bounded by the five-order ladder.
- Single entry filter: 4h RSI(14) below 28 (deep oversold).
- Five averaging orders at fixed deviations (−2%, −5%, −9.5%, −16%, −25%) with 1.8× size scaling per rung.
- Fixed take-profit on the blended average entry; no trailing, no stop loss.
- Every fill and close emits a webhook-ready JSON alert payload for a DCA Bot.
🔷 Who is it for:
- Swing traders accumulating HBAR on deep RSI flushes rather than chasing momentum.
- Bot operators who want a chart-driven signal source with base / safety-order / close webhook JSON ready to drive a DCA Bot.
- Traders comfortable with martingale-style averaging who size their capital to the worst-case ladder fill.
- Range / mean-reversion traders who prefer mechanical oversold entries over discretionary timing.
🔷 How does it work:
Entry (Base Order): On each closed 4h bar the strategy reads RSI(14). When RSI falls below 28 and there is no open position, it opens the base order at market (or limit, optionally) and dispatches the entry webhook.
Averaging Orders: Once in a position, the strategy watches price relative to the original base entry. The five safety orders are armed at fixed deviations from that base entry — not cumulatively — at −2%, −5%, −9.5%, −16%, and −25%. As each threshold is crossed on bar close, the corresponding averaging order fires. Order sizes scale 1.8× per rung ($900 → $1,620 → $2,916 → $5,249 → $9,448 from a $500 base), pulling the blended average entry down toward the latest fill.
Exit (Take Profit): While in a position, the strategy computes a take-profit price a fixed percentage above the current average entry. When price closes at or above that level, the entire position is closed at market and the close webhook fires. There is no trailing and no stop loss.
Capital Bounds: Total deployed capital cannot exceed the base order plus the five safety orders. Once all five averaging orders are filled, no further adds occur — the position simply waits for the take-profit. This ladder cap is the strategy's primary risk control.
🔷 Why it's unique:
- Deep-Oversold-Only Entries: A single, strict RSI(14) < 28 filter on 4h keeps the strategy out of the market in normal conditions and only commits capital after a meaningful flush.
- Fixed-Deviation Martingale Ladder: Safety orders are placed at fixed percentages from the base entry with deliberate 1.8× size scaling, so each rung has progressively more influence on the average — a transparent, fully-specified averaging schedule rather than an opaque adaptive grid.
- Full Webhook Chain: Base order, each safety order, and the close all emit dedicated JSON payloads. The strategy can drive a 3Commas DCA Bot end-to-end with no glue layer.
- On-Chart Transparency: The AO ladder, average entry, and take-profit target are plotted live, and the status table reports RSI, AOs filled, base/average entry, TP target, and max deployable capital — so the position state is always visible.
🔷 Considerations Before Using the Strategy:
Trade Volume — Below the Statistical Floor: The reference backtest produced 81 closed trades over ~30 months. This is below the ~100-trade threshold often used as a floor for statistical relevance, so treat the win rate and the high profit factor as indicative rather than conclusive. The strict RSI < 28 filter is what keeps the trade count low.
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If HBAR trends hard below the −25% AO5 level without recovering to take-profit, the position sits fully loaded with no further adds and no stop — unrealized loss can grow until price reverts. The 1.8× scaling amplifies both the recovery speed and the downside.
No Stop Loss Justification: There is no exit on adverse moves. Per-order risk is bounded by the fixed ladder allocation; aggregate exposure is capped at base + five AOs (≈ $20,633 on the default $100k account, ~20.6% of equity). Size the base/AO inputs down to match the worst-case exposure you are willing to hold.
Capital Deployment & Drawdown: The reference backtest reached a 0.92% maximum equity drawdown at default sizing — but that depends on the configured ladder fitting within HBAR's observed swings. A deeper or more prolonged decline than the test sample would produce a larger drawdown.
Fees: The default commission (0.06% per trade) should be matched to your exchange's actual taker fees. With a fixed 3% take-profit the per-trade edge is modest, so a fee mismatch matters.
Demo Testing: Always demo-test before going live. Past results do not guarantee future performance, particularly for martingale-style averaging strategies whose risk profile is dominated by rare deep drawdowns.
🔷 STRATEGY PROPERTIES
Symbol: BYBIT:HBARUSDT.P (Perpetual) — strategy is portable to any HBAR / USDT pair.
Timeframe: 4H (RSI sampled on 4h).
Test Period: January 1, 2024 — July 2, 2026 (~30 months).
Initial Capital: 100,000 USDT.
Base Order Size: 500 USDT.
Averaging Orders: 5, at −2% / −5% / −9.5% / −16% / −25% from base entry.
AO Sizing: 1.8× per rung — 900 / 1,620 / 2,916 / 5,249 / 9,448 USDT.
Max Deployed Capital: ≈ 20,633 USDT (~20.6% of equity, all AOs filled).
Commission: 0.06% per trade.
Slippage: 3 ticks.
Entry Filter: 4h RSI(14) below 28.
Take Profit: 3% above average entry.
Stop Loss: None — ladder allocation is the structural risk cap.
Trailing: None.
Strategy: Long Only.
🔷 STRATEGY RESULTS
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +3,902.32 USDT (+3.90%)
Max Equity Drawdown: 938.07 USDT (0.92%)
Total Closed Trades: 81
Percent Profitable: 82.72% (67 / 81)
Profit Factor: 11.248
🔷 How to Use It:
🔸 Adjust Settings: Open the strategy inputs and confirm the RSI level (28), the five AO deviations and sizes, and the take-profit percentage match your risk profile. Scale the base/AO sizes down for lower exposure.
🔸 Results Review: Run a full-period backtest and confirm Max Drawdown stays within your personal risk band — note this configuration reached just 0.92%. Keep in mind the 81-trade sample is below the ~100-trade floor for statistical confidence, and the 11.248 profit factor reflects that small, favorable sample.
🔸 Create alerts to trigger the DCA Bot: Add one alert on the strategy using "Any alert() function call". Paste your 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 base order, each safety order, and the close will each emit a dedicated JSON payload.
🔷 INDICATOR SETTINGS
Base Order Size: Capital committed on the first (base) entry.
AO Deviations: Fixed percentage distances from the base entry where each safety order fires.
AO Sizes: Capital per safety order (1.8× scaling by default).
RSI Timeframe / Length / Level: Oversold filter for the base entry (default 4h, 14, below 28).
Take Profit (%): Distance above average entry where the full position closes.
Bot ID / Email Token / Pair: Webhook fields injected into every alert payload.
Visualization: Toggle the AO ladder, fill labels, avg/TP lines, and 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

Triple Confluence Navigator [MarkitTick]💡 A highly sophisticated analytical framework designed to identify high-probability market setups by demanding alignment across three distinct dimensions of market data: momentum crossovers, adaptive volatility momentum tracking, and structural price action. Instead of relying on a single lagging variable, this system synthesizes traditional oscillators, advanced digital signal processing (such as Kalman filtering), and structural swing analysis. By integrating automated risk management, multi-take-profit targeting, and a real-time tracking dashboard, it operates as a comprehensive suite for systematic market analysis.
✨ Originality and Utility
● A Multi-Dimensional Consensus Model
Most standard technical tools assess the market through a single lens, such as pure price action or pure momentum. The originality of this system lies in its stringent confluence requirements. It isolates three independent mathematical models and requires all of them to agree within a user-defined chronological window. This significantly filters out market noise and reduces the frequency of false positive signals commonly associated with sideways or choppy conditions.
● Oscillatory Supertrend Application
While a Supertrend is traditionally overlaid on raw price action, this script innovates by calculating an Average True Range (ATR) directly on the Adaptive RSI (ARSI) oscillator. By establishing a Supertrend over momentum rather than price, the tool identifies the structural trend of the underlying momentum itself, offering a preemptive view of market shifts before they fully materialize in physical price movement.
● Dynamic Risk-Bounding
The utility is heavily elevated by its integrated risk management architecture. Rather than relying on static pip/tick stops, the system calculates dynamic risk parameters comparing structural pivot ranges against ATR-capped maximums. This ensures that the generated stop-loss levels are mathematically sound, adapting to prevailing market volatility while adhering to strict structural invalidation points.
🔬 Methodology and Concepts
• Pillar One: The Cardwell Momentum Averages
The first confluence pillar focuses on moving average crossovers applied to the Relative Strength Index (RSI). Instead of standard Simple Moving Averages, the system utilizes advanced smoothing algorithms—specifically Kalman Filters or Low Latency Adaptive Moving Averages (LLAMA). This separates the underlying momentum signal from high-frequency market noise, establishing a primary directional bias.
• Pillar Two: Adaptive RSI and Oscillator Supertrend
The second pillar generates an Adaptive RSI (ARSI), normalizing the absolute differences of price movement against historical highest highs and lowest lows. This adaptive data stream is then heavily filtered and paired with a momentum-based Supertrend. A crossover between the ARSI and its own moving/volatility band dictates the secondary momentum confirmation.
• Pillar Three: Market Structure and Swing Pivots
The third pillar grounds the mathematical momentum in tangible price action. The engine calculates precise pivot highs and pivot lows over a specified lookback period. A confirmed signal requires price to physically breach these structural swing levels, registering a Break of Structure (BoS) or a Change of Character (ChoCh).
• The Confluence Window and HTF Bias
Signals from these three pillars rarely occur on the exact same bar. The system tracks the bars elapsed since each respective signal. If all three pillars trigger in the same direction within the defined confluence window, a master setup is generated. Furthermore, an overarching Higher Timeframe (HTF) security check ensures that these local confluences do not contradict the macro directional trend.
🎨 Visual Guide
• On-Chart Trade Mapping
Entry Line: A dashed line indicating the exact closing price of the signal bar.
Stop Loss (SL) Line: A dashed line representing the structural or volatility-based invalidation point, labeled with an X.
Take Profit (TP) Lines: Three distinct dashed lines projecting the target levels based on the calculated risk multiplier.
• Signal Markers and Fills
Labels: Distinct textual markers reading BUY or SELL highlight the precise candle where the triple confluence is met.
Risk Zone: A translucent shaded area bridging the Entry line and the Stop Loss line, visualizing the total capital exposure.
Reward Zone: A differently colored translucent shading extending from the Entry to the final Take Profit (TP3) level.
• Real-Time Dashboard
The Heads-Up Display (HUD) is a table anchored to the chart corner. It outputs the live status of the Cardwell MA, Adaptive ARSI, and Structure modules. It includes dynamic visual bars indicating current RSI and ADX levels, displays the state of the HTF bias, and calculates the live floating risk-to-reward ratio of an active setup.
📖 How to Use
• Identifying Setups
Monitor the chart for the appearance of the signal labels. When a setup is validated, the system will immediately draft the Entry, SL, and TP lines on the chart. Assess the Risk Zone and Reward Zone visuals to ensure the potential setup aligns with your personal risk tolerance.
• Dashboard Monitoring
Use the dashboard to evaluate the health of the confluence. If the ADX visual bar is extremely low, it indicates market chop, suggesting that even a confluence signal might suffer from lack of follow-through. Monitor the structural trend state in the dashboard to understand the broader context of the immediate signal.
• Trade Management
The predefined TP1, TP2, and TP3 lines serve as partial profit-taking areas. As price achieves TP1, consider shifting risk to breakeven, utilizing the subsequent lines as trailing markers. The HUD's Live R metric tracks the real-time fractional gain or loss based on the initial risk unit.
⚙️ Inputs and Settings
• Momentum & Averages
RSI Len: Defines the lookback period for the base oscillator.
Fast/Slow Len: Defines the lookback for the moving averages applied to the oscillator.
Filter Type: Dropdown to select between standard RMA, recursive Kalman Filtering, or adaptive LLAMA.
• Adaptive Volatility
Kalman Process & Measurement Noise: Granular inputs adjusting the responsiveness and smoothness of the Kalman state estimation.
LLAMA Min/Max Alpha: Bounds for the dynamic efficiency ratio used in the adaptive moving average.
ST Factor: The volatility multiplier that determines the width of the ARSI Supertrend band.
• Structure & Trade Configuration
Swing Len: The number of bars required to confirm a structural high or low.
SL ATR Mult: The maximum allowable distance for a stop loss, based on True Range.
SL Struct Buffer: The fractional ATR distance placed beyond a swing pivot to prevent premature stop outs.
TP1/TP2/TP3 R:R: The dynamic risk multiples used to project the take profit levels.
Confluence Window: The maximum number of bars allowed to pass between the three distinct pillar signals for them to remain valid together.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
• Recursive State Estimation (Kalman Filter)
The inclusion of a Kalman-inspired filter applies concepts from control theory and digital signal processing. Unlike simple averaging which inherently introduces phase lag, this algorithm estimates the true state of the momentum by predicting the next value and updating its estimation based on the actual measured value. By weighing the process noise against the measurement noise, the script aggressively smooths erratic momentum spikes while instantly snapping to genuine directional shifts.
• Adaptive Linear Regression (LLAMA)
The Low Latency Adaptive Moving Average applies statistical regression to determine the current market phase. It calculates the slope of the data over a set period and compares it to the absolute range of that period to derive an Efficiency Ratio. This ratio acts as a dynamic alpha coefficient. In highly efficient, directional markets, the alpha increases, forcing the average to tightly track the data. In inefficient, mean-reverting markets, the alpha decreases, flattening the average to ignore statistical noise.
• Statistical Variance and Orthogonal Agreement
By mandating a Triple Confluence, the system relies on the reduction of statistical variance. The three pillars—price structure, base momentum, and adaptive momentum bands—are mathematically orthogonal; they calculate market state using distinctly different algorithms. The probability of all three aligning purely by chance (random walk) is exceptionally low. Therefore, when confluence is achieved, it represents a statistically significant deviation from market equilibrium, highlighting a high-probability directional vector.
⚠️ 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

Order Flow OBV MACDOverview
Order Flow OBV MACD is an open-source oscillator that extends the classic OBV-style MACD idea with Pine Script v6 order-flow tools. It can run from a traditional OBV-style cumulative volume source or from CVD built with PulseWire footprint delta. The script then transforms that cumulative flow into a MACD-style oscillator, applies a T-channel style direction line, and adds an adaptive confidence score that weighs recent signal components by how well they have aligned with price direction.
This is not a strategy and it does not place trades. It is intended as a market structure and confirmation tool for studying momentum, volume flow, and order-flow agreement.
What Makes It Different
The indicator combines four layers:
A selectable cumulative volume engine: OBV-style signed volume or CVD from footprint delta.
Optional footprint-adjusted CVD using Point of Control, Value Area, and POC row imbalance context.
A MACD-style oscillator derived from the transformed cumulative flow.
An adaptive confidence score that estimates bullish/bearish agreement from MACD direction, channel direction, delta direction, and footprint bias.
The goal is not to predict the future or claim a fixed win rate. The goal is to show when several volume and order-flow components are aligned, conflicting, or neutral.
How It Works
1. Cumulative Volume Source
The script starts by building a cumulative flow series.
OBV mode uses close direction multiplied by volume, then cumulates it.
CVD mode uses footprint delta, which is buy volume minus sell volume for the bar, then cumulates it.
OBV mode is broadly compatible. CVD mode uses PulseWire's `request.footprint()` data, so footprint availability and account plan support matter.
2. Footprint-Adjusted CVD
When CVD Mode is set to Footprint-adjusted, the raw delta can be boosted or softened by row-level footprint context:
Price relative to the footprint Point of Control row.
Price relative to Value Area High and Value Area Low.
Buy or sell imbalance on the POC row.
If delta and footprint context agree, delta can be strengthened. If they conflict, delta can be reduced. The Footprint Row Influence setting controls how strong this adjustment is.
3. MACD Layer
The selected cumulative flow source is normalized through the original OBV-MACD style transformation and smoothed. The script then compares the transformed fast order-flow line against a slow EMA-based MACD leg.
The slow MACD leg can optionally adapt based on the previous bar's adaptive confidence. Strong confidence makes it more responsive. Weak confidence makes it smoother. This uses the prior bar's score to avoid circular logic.
4. T-Channel Direction Line
The main plotted blue/red line is a channel-style directional line based on the slope of the MACD output. Blue indicates positive channel direction and red indicates negative channel direction. Optional cross markers can show direction changes.
5. Adaptive Confidence
The Adaptive Confidence plot is a centered score:
Above 0 favors bullish agreement.
Below 0 favors bearish agreement.
+25 and -25 are guide levels for stronger directional confidence.
The score weighs four components:
MACD direction.
T-channel direction.
Delta/CVD direction.
Footprint bias.
Each component receives an adaptive reliability weight based on how well its previous signal aligned with the current bar's price direction over the selected lookback.
Key Inputs
Cumulative Volume Source
Choose OBV for classic compatibility or CVD for footprint delta-based flow.
CVD Mode
Raw delta uses footprint delta directly. Footprint-adjusted adds row-level POC, Value Area, and imbalance context.
Footprint Ticks Per Row
Controls the price height of each footprint row. Lower values create finer detail. Higher values smooth noisy row behavior.
Footprint Value Area %
Controls the amount of volume used to define the footprint Value Area. 70 is a common default.
Footprint Imbalance %
Controls how strong a row imbalance must be before it is considered meaningful. Higher values are stricter.
Footprint Row Influence %
Controls how much row-level footprint context can adjust bar delta in Footprint-adjusted mode.
Adaptive Weight Lookback
Controls how quickly component weights adapt. Shorter values react faster but can be noisy. Longer values are smoother.
Adapt MACD With Confidence
When enabled, the slow MACD leg adjusts using the previous bar's adaptive confidence. Disable it to keep the MACD closer to classic fixed-length behavior.
Suggested Use
Look for stronger bullish conditions when the channel is blue, the confidence score is above zero, and CVD/footprint settings support the move.
Look for stronger bearish conditions when the channel is red, the confidence score is below zero, and delta/footprint context agrees.
Treat low or mixed confidence as a warning that the components are not aligned.
Use the indicator with price structure, support/resistance, market context, and risk management. Do not use it as a standalone trading system.
Limitations
This is an indicator, not a strategy.
It does not guarantee accuracy, profitability, or future performance.
CVD and footprint-adjusted features depend on PulseWire footprint data availability.
PulseWire states that scripts using `request.footprint()` require Premium or Ultimate access.
The adaptive confidence score is a heuristic based on recent alignment, not machine learning training.
Like any oscillator, it can lag, whipsaw, or conflict with price during chop, news events, thin liquidity, or unusual volume conditions.
Credits
This script builds on an OBV MACD concept and includes a T-channel style directional component inspired by Alex Grover's T-Channels work. The v6 version extends the idea with footprint delta, CVD, row-level footprint context, adaptive confidence scoring, and optional confidence-adjusted MACD smoothing.
Disclaimer
This script is for educational and analytical use only. It is not financial advice, investment advice, or a recommendation to buy or sell any asset. Always test settings on your own symbol and timeframe, and use independent risk management. Indicator

xKen-t Williams %R + EMA w/COT Bias GateWhat's original here
This isn't a Williams %R repaint. Standard %R gives a level; this script converts it into a filtered, context-aware timing engine through four combined mechanisms: (1) exit-from-extreme triggers that fire when %R crosses back out of −80/−20 rather than when it reaches them, so signals mark the reversal instead of the ongoing move; (2) EMA-side confirmation that validates the exit against the 13-EMA; (3) a −50 regime filter that blocks counter-regime signals; and (4) a directional-bias gate that normalizes any external series you feed it (e.g. a COT commercial-net line) to a 0–100 position-in-range index and suppresses every signal that disagrees with that bias. The gate is the core idea — it makes the oscillator time entries only in a separately chosen direction, turning a reversal oscillator into a with-context pullback tool. A status table surfaces %R, its EMA, the regime, the active bias, the higher-timeframe read, and the last signal in one place.
Overview
A Williams %R momentum tool rebuilt around three ideas: it signals on the exit from an extreme rather than the touch, confirms that exit with the %R/EMA relationship, and can gate every signal by an external directional bias (such as Commitments of Traders positioning) so only signals agreeing with that bias are shown. This targets the two classic Williams %R weaknesses — catching falling knives at the band, and firing endless counter-trend reversals during strong trends.
What it calculates
- Williams %R (default 21): the standard oscillator (0 to −100) measuring where the close sits within the lookback's high-low range.
- 13-EMA of %R: a smoothing/confirmation line.
- Triggers: in "Band exit" mode a long fires when %R crosses back up through −80 (leaving oversold) and a short when it crosses back down through −20 (leaving overbought). In "EMA cross in zone" mode the trigger is %R crossing its EMA while in the lower/upper half. Either way, it marks the turn, not the extreme reading itself.
- EMA confirmation (optional): requires %R on the trigger side of its EMA at signal time.
Regime filter (optional): longs only when the %R EMA is above the −50 midline, shorts only when below.
- COT Bias Gate: point the "COT source" input at any external series on the chart — e.g. a Commitments of Traders commercial-net or COT-index line. The script converts it to a 0–100 position-in-range index over a lookback; ≥80 is treated as bullish bias, ≤20 as bearish. With the gate on, longs show only in a bullish bias and shorts only in a bearish one; opposite-bias signals are suppressed. You can also set the bias manually or turn the gate off for standalone %R.
- Divergence (optional): regular bull/bear divergence between price pivots and %R pivots.
Higher-timeframe read (optional): shows a higher-timeframe %R value in the table for top-down context.
How to use it
1. Add it on your entry timeframe (defaults: %R 21, EMA 13, band-exit, EMA confirmation on).
2. Set the bias — manually (Bullish/Bearish), or "Auto" pointed at a COT/context line, or Off.
3. Trade the markers: green up-triangle = confirmed long trigger, red down-triangle = confirmed short. Combine with your own levels and risk management.
Notes and limitations
- Divergence markers are drawn back at the confirmed pivot using an offset — they plot in the past and can repaint until the pivot forms. Treat them as context, not a standalone trigger.
- The gate reads whatever series feeds the source input; on the default (Close) the "bias" is computed from price, not COT — point it at a real COT/context line for it to be meaningful.
- The higher-timeframe read uses non-lookahead requests (no future data).
- Analysis tool for timing within a chosen bias. It does not predict outcomes and is not financial advice. Indicator

Kurdistani Macro Regime# Kurdistani Macro Regime
## Overview
Kurdistani Macro Regime is a comprehensive macroeconomic dashboard designed to help traders evaluate the current global macro environment using publicly available economic data.
Rather than predicting future prices, the script converts multiple macroeconomic indicators into a rule-based market regime model that helps identify whether current conditions favor:
• Expansion
• Recovery
• Slowdown
• Stagflation
• Recession
The indicator combines inflation, monetary policy, liquidity, labor market conditions, yield curve dynamics, credit spreads and volatility into a single analytical framework.
This script is intended for macro analysis and portfolio positioning rather than short-term price forecasting.
---
# Data Sources
The indicator retrieves macroeconomic information directly from the FRED (Federal Reserve Economic Data) database whenever available.
Main datasets include:
• CPI Inflation
• Federal Funds Rate
• ECB Policy Rate
• GDP
• Unemployment Rate
• M2 Money Supply
• Treasury Yields
• Credit Spreads
• VIX
• Inflation Breakevens
• Oil Prices
Because macroeconomic releases occur weekly, monthly or quarterly, values update only when new official data become available.
---
# Macro Regime Engine
The script evaluates three major components of the economy.
## 1. Growth
Growth is estimated using:
• GDP Growth
• PMI Trend
• Labor Market
• Growth Momentum
Higher scores indicate stronger economic expansion.
---
## 2. Inflation
Inflation analysis includes:
• CPI Level
• CPI Trend
Higher inflation increases the probability of restrictive monetary policy.
---
## 3. Liquidity
Liquidity considers:
• M2 Growth
• Federal Funds Rate
• Yield Curve
• Market Volatility
Higher liquidity generally supports risk assets.
---
These components are combined into five macro regimes.
Expansion
Strong growth with controlled inflation.
Recovery
Improving growth following economic weakness.
Slowdown
Moderating economic activity.
Stagflation
High inflation combined with weak growth.
Recession
Broad deterioration across multiple macro indicators.
---
# Advanced Macro Indicators
The dashboard includes several composite indicators.
## Macro Health Score
A composite score between 0 and 100 summarizing overall macro conditions.
Higher values indicate healthier macro environments.
---
## Recession Risk Score
A rule-based composite using:
• Yield Curve
• GDP
• PMI
• Labor Market
• Credit Spreads
• Real Interest Rates
This score is **not** a statistical recession probability.
---
## Fed Pivot Score
Measures whether macro conditions are becoming more favorable for future monetary easing.
Inputs include:
• Inflation
• GDP
• Unemployment
• Yield Curve
• Interest Rates
This is an analytical score rather than a forecast.
---
## Dollar Milkshake Score
Estimates relative USD strength using:
• Interest Rate Differential
• Credit Stress
• Emerging Market Stress
• Volatility
• Real Rates
Higher values suggest stronger demand for USD liquidity.
---
# Asset Outlook
The indicator estimates macro conditions for several asset classes.
## Gold
Gold generally benefits from:
• Negative Real Rates
• Higher Inflation
• Recession Risk
• Easier Liquidity
---
## Bitcoin
Bitcoin is evaluated primarily through:
• Global Liquidity
• Risk Appetite
• Real Rates
• Monetary Conditions
---
## US Dollar
The Dollar score reflects:
• Rate Differentials
• Risk-Off Conditions
• Real Rates
• Credit Stress
---
## US Equities
The equity model incorporates:
• Growth
• Liquidity
• Yield Curve
• Credit Conditions
---
## Long-Term Treasury Bonds
Bond scoring focuses on:
• Recession Risk
• Fed Pivot
• Yield Curve
• Real Rates
---
# Dashboard
The dashboard summarizes:
Current Macro Regime
Risk-On / Risk-Off Environment
Macro Health
Recession Risk
Fed Pivot Score
Dollar Milkshake Score
Yield Curve
Interest Rates
Inflation
GDP
PMI
Employment
Oil Trend
Asset Scores
Signal History
Upcoming Economic Calendar
---
# Trading Signals
The script generates several informational signals.
Gold Macro Bullish
Appears when macro conditions become favorable for gold.
Bitcoin Risk-On
Appears when liquidity and risk conditions support Bitcoin.
Yield Curve Inversion
Highlights significant inversion events.
Fed Pivot
Indicates improving conditions for potential future monetary easing.
Oil Shock
Flags unusually large oil price movements.
These signals are informational and should be confirmed with market structure and price action.
---
# Risk Management
This indicator is designed to complement—not replace—technical analysis.
Possible workflow:
1. Determine the current macro regime.
2. Evaluate risk appetite.
3. Compare asset scores.
4. Wait for technical confirmation.
5. Execute trades according to your own trading plan.
---
# Inputs
Users can customize:
• Macro thresholds
• Dashboard visibility
• Signal visibility
• Calendar dates
• Watermark
• Risk profile
• Alert system
• Bullish thresholds
---
# Limitations
This script uses macroeconomic data that update less frequently than market prices.
Economic releases may be revised after publication.
Some FRED series may be unavailable depending on PulseWire data availability.
The model is deterministic and rule-based.
It does not employ machine learning or statistical forecasting.
---
# Disclaimer
This indicator is intended solely as an educational and analytical tool.
All scores, regimes, probabilities and signals are generated using predefined rule-based logic and should not be interpreted as predictions or guarantees of future market performance.
Always combine macro analysis with technical analysis, sound risk management and your own independent research before making trading decisions. Indicator

RSI Divergence ProRSI Divergence Pro
WHAT IT DOES
RSI Divergence Pro is a self-contained RSI that detects all four divergence types (regular bullish, regular bearish, hidden bullish, hidden bearish), draws them on both the RSI pane and the main price chart, and — unlike most divergence tools — keeps a live scoreboard of how each divergence type has actually behaved on the current symbol and timeframe.
It reproduces the standard RSI (same calculation and pane visuals as the built-in: band background, overbought/oversold gradient fills, optional smoothing MA and Bollinger Bands) so it can replace an existing RSI pane one-for-one, then layers divergence detection on top.
WHY IT'S DIFFERENT
1. RSI-anchored pivots. Divergences are detected from pivots on the RSI itself (ta.pivotlow / ta.pivothigh applied to the RSI series), not on price. Marker and line endpoints therefore sit exactly on the RSI curve instead of floating mid-slope, and the RSI — the thing actually diverging — is the source of truth. Price at those same bars supplies the price leg.
2. Built-in outcome tracking. Every confirmed divergence spawns a simulated bracket (entry at the confirmation close, ATR-multiple target and stop, fixed bar horizon). Results are tallied per type into a table: sample size (N), win rate, and average R. This turns the indicator into a measurement instrument — you can see, per symbol and timeframe, whether a given divergence type has shown any edge before you weight it in your analysis.
3. Honest mechanics. Signals confirm a fixed number of bars after the pivot (the right lookback) and never earlier; alerts fire on bar close; the simulator resolves on confirmed bars only, checks the stop before the target when both are touched inside one bar (conservative tie-break), and is gap-aware — a bar opening beyond the stop or target fills at the open, not at the ideal price.
HOW DETECTION WORKS
A pivot low/high on RSI is confirmed after "Pivot Lookback Right" bars. Each newly confirmed pivot is compared to the previous same-side pivot, subject to a minimum/maximum bar-distance gate:
- Regular bullish: price lower low + RSI higher low
- Hidden bullish: price higher low + RSI lower low
- Regular bearish: price higher high + RSI lower high
- Hidden bearish: price lower high + RSI higher high
Each type toggles independently and is styled independently (color, line style, width, transparency).
THE OUTCOME TABLE — READ BEFORE TRUSTING ANY DIVERGENCE
Defaults: entry at the confirmation close, target 2×ATR(14), stop 1×ATR(14), 20-bar horizon (expiry marks to close). All adjustable. With the default 2:1 bracket, average R ≈ 3 × win rate − 1 for non-gap resolutions, so the table's internal consistency can be sanity-checked by eye. These statistics measure raw divergence behavior under one fixed mechanical rule on the loaded chart history. They are not a backtest of a complete trading plan, they are not predictive of future results, and small samples are noise. Open (unresolved) simulations are shown in the table header and excluded from N.
DISPLAY & CUSTOMIZATION
- Lines on the RSI pane, the price chart, or both; info tags toggle per pane independently of the lines
- Tag styles: colored bubble or clean floating text; compact or detailed text (RSI change and price %); hover any tag for the full tooltip (type, RSI from→to, price from→to, bars apart, position vs the 50 line)
- Optional forward projection ray per divergence line, with its own color source, style, width, and transparency
- Optional freshness fade: older lines grow progressively more transparent so the newest stands out
- Discreet pivot tick marks on the RSI curve and on candles, styled per side
- The stock RSI visuals (band background, OB/OS gradients) can each be hidden for a clean pane
- Info table (RSI value, 50-line bias, last pivots, last divergence and its age) and outcome table, each position-selectable; both flash green or red for a configurable number of bars when a new bullish or bearish divergence confirms
- Array-managed object pools with configurable caps keep the script inside Pine's drawing limits; oldest drawings trim automatically and statistics are never trimmed
ALERTS
Five alertcondition triggers (one per type plus "Any RSI Divergence") for the standard alert dialog, and an optional dynamic alert() payload ("Any alert() function call") carrying live detail: ticker, timeframe, type, RSI from→to, price from→to, bars apart.
HOW TO USE IT
Works on any symbol and adapts to the chart timeframe. A reasonable workflow: run all four types with outcome tracking on, let the table accumulate, then disable the types showing no edge on your market and keep those that do. Regular divergences are conventionally read as reversal context and hidden divergences as continuation context; treat both as context alongside your own structure and trend analysis, not as standalone entries.
KNOWN BEHAVIOR / LIMITATIONS
- Confirmation lag is by design: a divergence cannot exist until its pivot confirms, so the signal appears "Pivot Lookback Right" bars after the pivot bar. After confirmation, signals do not repaint.
- Divergence lines and labels connect back to past pivots by nature; the drawing extends into the past, the signal timing does not.
- The outcome simulator works from confirmed OHLC bars; intrabar sequence is unknowable from OHLC, hence the conservative stop-first rule.
- Intended for standard candle/bar charts; synthetic chart types (Heikin Ashi, Renko, etc.) distort the price legs and the simulation.
The base RSI calculation and pane visuals reproduce PulseWire's built-in RSI so the script can serve as a drop-in replacement; the divergence detection, drawing system, outcome tracking, and alert logic are original to this script.
For education and analysis only. Nothing here is financial advice, and past behavior of any signal does not guarantee future results. Indicator

Participation-Adjusted Momentum [TradeDots]Participation-Adjusted Momentum
Summary
This indicator computes a momentum oscillator that has been adjusted by participation quality . Raw momentum (standardized rate-of-change) is multiplied by a quality blend derived from volume percentile, close-location alignment within the bar, and range-per-volume efficiency. The intent is to differentiate strong momentum supported by participation from moves that look impressive on price alone but occur on thin volume or wide ranges with little net travel. The histogram is colored by one of five interpretable states (Strong Bull, Strong Bear, Thin, Quiet Accumulation, Noisy) so users see at a glance whether to trust a momentum reading.
What is original here
Momentum oscillators (rate-of-change, MACD, RSI) and volume oscillators (volume percentile, MFI) are widely available. This script's contribution is the deliberate combination into a single adjusted reading, plus the five-state classification that maps raw-momentum / participation combinations to labelled regimes. The "Quiet Accumulation" state (low momentum but rising volume percentile) and the "Thin" state (strong momentum but low participation) are specifically called out because they are the most actionable readings — both indicate that the price reading and the order-flow reading disagree, and that disagreement deserves a label.
How it works
Each bar, the following quantities are computed.
Raw momentum. Rate-of-change of close over a configurable length, then z-scored (subtract the mean, divide by the standard deviation) over the normalization lookback. The result is approximately bounded but can exceed plus or minus 3 in extreme moves.
EMA slope. A 50-period EMA's change over a configurable lookback, min-max normalized to 0-100. Used as a secondary directional bias (computed and exposed as a hidden plot, but not directly added to the displayed oscillator).
Volume percentile. Volume rank over the normalization lookback (typically 100 bars).
Close-location value. Where the close sits within the bar's high-low range, expressed as a percentage. For an upward-direction reading, a close near the bar's high indicates buyers won the bar; for a downward-direction reading, a close near the bar's low indicates sellers won.
Participation. Volume percentile (divided by 100) multiplied by direction-aligned close-location value (also normalized to 0-1). Result is in ; higher means "good participation".
Range per volume. Bar range divided by volume. High range per volume means a wide candle moved on thin flow — typical of news spikes, illiquid prints, or false moves. The percentile rank of range-per-volume is inverted (low range-per-volume gives a high "efficiency score") and used as a quality factor.
Quality blend. A weighted combination: 0.4 * participation + 0.4 * range_efficiency + 0.2. The +0.2 floor ensures that even with zero participation and zero efficiency, the adjusted momentum retains 20% of the raw signal so the oscillator does not flatline completely.
Adjusted momentum = raw momentum × quality blend.
State classification (mutually exclusive):
Strong Bull : raw momentum at or above +threshold and participation at or above 0.55
Strong Bear : raw momentum at or below −threshold and participation at or above 0.55
Thin : absolute raw momentum at or above threshold and participation below 0.35 — momentum without volume, a warning state
Quiet Accumulation : absolute raw momentum below the quiet threshold and volume percentile above the quiet-volume floor — flat price but rising participation
Noisy / Low Quality : the catch-all when none of the above apply
The histogram bar color reflects the current state.
Repainting and data integrity
All factors are computed on confirmed bar values; alerts are gated by barstate.isconfirmed. No request.security() calls are made — the script operates entirely on the chart timeframe.
How to read the chart
The primary plot is the adjusted-momentum histogram, colored by state.
A thin overlay line shows the same value with continuous color for easy zero-line reading.
Reference lines at zero and at ±1 standard deviation provide context for how extreme the current reading is.
Hidden plots expose raw momentum, participation, volume percentile, and direction so they are available in the Data Window.
The dashboard panel shows the current state in the header, then numeric readings for raw momentum (in z-units), adjusted momentum, volume percentile, participation, range efficiency, and the quality blend.
Inputs
Inputs are grouped into three sections.
Core Settings : ROC length, percentile / z-score lookback, EMA slope length, slope lookback bars, strong-momentum z-threshold, quiet-accumulation maximum z, quiet-accumulation minimum volume percentile.
Visual Settings : zero-line toggle, ±1σ band toggle, dashboard toggle, panel position and size, panel background color.
Any Alert() function call conditions : per-alert toggles.
Alerts
Four alert conditions are provided, each firing on the first bar the state is entered:
Strong Bull Momentum
Strong Bear Momentum
Quiet Accumulation Detected
Momentum Without Volume (the "Thin" warning state)
Each is declared via alertcondition() and is fired programmatically through alert() when the corresponding input toggle is enabled, with alert.freq_once_per_bar_close. Alert messages include {{ticker}} and {{interval}} placeholders.
How to use this script
This is a confirmation indicator. It does not generate entries on its own.
When considering an entry on price strength alone, check this indicator. A Strong Bull or Strong Bear state confirms that volume and close location support the move.
The "Thin" state is a warning. A breakout that prints during a Thin reading should be treated more cautiously than the same breakout during Strong Bull.
The Quiet Accumulation state can identify periods of base-building before a move and is useful as a "watchlist" signal.
Use alongside a setup-specific indicator for entry timing.
Limitations and honest caveats
Volume quality varies dramatically between markets. On crypto exchanges, wash-trading and bot-driven order flow can produce misleading volume percentile readings. Apply with awareness.
Z-score normalization requires the lookback to contain a representative variety of states. On instruments with strong regime changes, early-bar z-scores may be unreliable until the lookback fills.
The close-location alignment factor reads single-bar close behavior. On gappy markets or after market closes, the alignment may not reflect intraday order flow.
The script does not signal direction independently; it adjusts and labels momentum that is already present.
The +0.2 floor in the quality blend is a design choice to avoid flat-lining the oscillator. Users who want a strict "zero adjustment when participation is zero" reading can set the participation weights higher and adjust the floor by modifying the source code.
Disclaimer
This script is published for informational and educational purposes. It is not investment advice and is not a recommendation to buy or sell any instrument. Adjusted momentum is a descriptive measure, not a prediction of future price. Users are solely responsible for their own trading decisions and risk management.
Indicator

ATR Stop Oscillator**What This Indicator Does — In Plain Terms**
This is a trend-following tool that measures how far price has moved away from its own volatility-based "safety line" (the ATR trailing stop), and displays that distance as a bar chart (histogram) below your main price chart — similar in spirit to how RSI or MACD sits below the chart, except this one is tracking distance from a trailing stop instead of momentum.
Here's the core idea in one sentence: **the indicator draws an invisible line that trails behind price and adjusts itself based on volatility (ATR), and the oscillator shows you how many "ATR units" price currently is above or below that line.**
- When the bars are **green and above the zero line**, price is above its trailing stop — meaning the trend is currently bullish/long-favoring.
- When the bars are **red and below the zero line**, price is below its trailing stop — meaning the trend is currently bearish/short-favoring.
- The **farther the bar is from zero**, the more "stretched" price is from its stop, in multiples of ATR (e.g., a reading of 3.0 means price is 3 full ATR units away from the stop line).
- When the bars **flip from red to green (or vice versa)**, that's a trend change — and that's exactly what triggers your alert.
---
**Input-by-Input Breakdown**
**Non-Repainting Signals (`ConfirmOnClose`)**
- **What it does:** Controls whether the trend-change alert waits for the current candle to fully close before firing, or fires immediately as soon as the condition is met — even mid-candle.
- **Why it matters:** If left ON (default), you avoid false or "fake" signals that flip back and forth while a candle is still forming — the alert only confirms once the bar is locked in. If turned OFF, you'll get faster signals, but some of them may reverse or disappear before the candle actually closes, since price is still moving. Think of it as a tradeoff between speed and reliability.
- **Practical use:** Leave this ON for swing trading or anything where you can't watch the chart constantly. Turn it OFF only if you're actively watching the screen and want the earliest possible warning, accepting the risk of a signal that later gets invalidated.
**ATR Period (`Atr`)**
- **What it does:** Sets how many bars are used to calculate the Average True Range (ATR) — the volatility measurement this whole indicator is built on. Default is 5.
- **Why it matters:** A shorter period (like 5) makes the ATR — and therefore the trailing stop and oscillator — more reactive to recent price swings, so it adjusts quickly but can feel "twitchy" or noisy. A longer period (like 20 or 50) smooths things out, making the stop line and oscillator move more slowly and steadily, but it'll lag behind sudden volatility changes.
- **Practical use:** Lower values suit fast-moving or short-timeframe trading (scalping, day trading). Higher values suit slower, longer-term trend following where you don't want to be shaken out by every small wiggle.
**Multiplier (`Mult`)**
- **What it does:** Multiplies the ATR value to determine how far away the trailing stop sits from price. Default is 5.
- **Why it matters:** This directly controls how "loose" or "tight" your trailing stop is. A higher multiplier (like 5 or higher) gives price more room to breathe before the trend is considered reversed — fewer false flips, but bigger moves against you before you get an alert. A lower multiplier (like 1 or 2) tightens the stop, giving you faster trend-change signals, but at the cost of more false flips during choppy/sideways price action.
- **Practical use:** This is your single biggest lever for tuning sensitivity. Tighten it if you're getting alerts too late or missing moves; loosen it if you're getting whipsawed by too many false trend-change alerts during sideways markets.
**Above Stop Color (`PosColor`)**
- **What it does:** Sets the color of the oscillator bars when price is above the trailing stop (positive/bullish readings). Default is green.
- **Why it matters:** Purely visual — it does not affect any calculation, alert, or signal logic. It only changes what you see on the chart.
- **Practical use:** Adjust this to match your personal chart theme or color-blind-friendly palette if needed. No functional impact either way.
**Below Stop Color (`NegColor`)**
- **What it does:** Sets the color of the oscillator bars when price is below the trailing stop (negative/bearish readings). Default is red.
- **Why it matters:** Same as above — cosmetic only, no effect on calculations or alerts.
- **Practical use:** Same as above — purely a visual preference setting.
---
**What You'll See on the Chart**
- A **histogram (bar chart)** oscillating above and below a dashed gray zero line, in your own separate pane below the price chart.
- **Green bars** = price above the ATR trailing stop (bullish state).
- **Red bars** = price below the ATR trailing stop (bearish state).
- **No labels or markers** on the price chart itself — you removed those. All the trend information lives in this oscillator pane only.
**What Triggers an Alert**
- The alert fires only on an actual **trend flip** — meaning the internal trend direction changed from bullish to bearish or vice versa, not just because the oscillator crossed zero on a fluke tick.
- You'll get one alert message telling you whether it flipped **BULLISH** or **BEARISH**, plus two separate alert conditions in PulseWire's alert menu if you'd rather set them up individually.
If any of this doesn't match how you're actually planning to use it (e.g., you want the color inputs to also influence something functional, or you want a numeric readout of the current ATR-multiple value), tell me and I'll adjust — I didn't want to assume beyond what's in the script. Indicator

Indicator

Structural Divergence [Proozac]Structural Divergence — Pine Script v6 — Overlay Indicator
What It Does
Structural Divergence merges two of the most reliable concepts in technical analysis into a single confluence-based signal: Market Structure (HH/HL/LH/LL, BOS/CHoCH) and RSI/MACD divergence detected precisely at structural swing points — not anywhere on the chart, but exactly where it matters.
Most divergence indicators flag every RSI/price disagreement, drowning traders in low-quality signals. Structural Divergence only calculates divergence at confirmed swing highs and lows, then cross-references it against real structural breaks. A signal only fires when both align.
## How It Works
Swing Detection: identifies significant highs and lows using a configurable pivot length, then labels each one HH, HL, LH, or LL relative to the prior swing of the same type.
BOS / CHoCH: automatically draws Break of Structure and Change of Character lines whenever price closes beyond the last confirmed swing level, tracking trend direction in real time.
Divergence Engine: at every swing high/low, RSI (and optionally MACD histogram, for stricter confirmation) is compared against the prior swing of the same type to detect classic bearish/bullish divergence.
Confluence Signal: when a divergence and a BOS/CHoCH occur within a configurable bar window in the same direction, a triangle signal fires with a built-in alert — filtering out the noise of standalone divergence or structure signals used alone.
Why It's Different
Instead of stacking indicators and hoping for visual confluence, this script computes it algorithmically. The result is fewer, higher-conviction signals: you're not just seeing "RSI diverged" or "structure broke" — you're seeing both happen together, which historically marks higher-probability reversal and continuation zones.
## Settings
Swing Detection Length (pivot sensitivity)
RSI Length
Optional MACD confirmation (stricter mode)
Confluence window (max bars between divergence and structural break)
Full color customization for bullish/bearish elements
Alerts
Two ready-to-use alert conditions: Confluence Buy Signal and Confluence Sell Signal — plug straight into PulseWire's alert system or your own webhook automation. Indicator

Smart Swing Trend Stochastic RSI - TPAbsolutely friend. Here is a **PulseWire rule-abiding publication description** you can use.
---
## Smart Swing Trend Stochastic RSI
**Smart Swing Trend Stochastic RSI** is a trend-aware Stochastic RSI indicator designed to help traders interpret momentum extremes with better market context.
Traditional Stochastic RSI often treats readings above 80 as “overbought” and readings below 20 as “oversold.” However, in strong trends, these extreme zones can remain extended for a long time. This script adds swing-trend context so the 80/20 zones are interpreted differently depending on whether the market is in a swing uptrend or swing downtrend.
The goal is to help traders avoid automatically fading strong momentum and instead separate trend strength from potential turning points.
---
## Core Concept
This indicator combines:
1. **Stochastic RSI**
2. **Swing-based trend direction**
3. **Trend-aware shaded zones**
4. **Simple table interpretation**
5. **Momentum turn and warning signals**
The script does not treat every overbought or oversold reading as a reversal. Instead, it asks:
> Is this Stoch RSI extreme showing trend power, or is it starting to become a possible pullback/bounce warning?
---
## How the Trend Logic Works
The trend logic is based on swing direction, adapted from the swing logic concept used in Zeiierman’s Dynamic Swing Anchored VWAP.
The script identifies recent swing highs and swing lows using the selected **Swing Period**.
In simple terms:
* **Swing Uptrend** means the current swing structure favors the upside.
* **Swing Downtrend** means the current swing structure favors the downside.
* **Swing Neutral** can appear when the optional neutral mode is enabled after a recent direction change.
This allows the Stochastic RSI to be interpreted based on the current swing environment instead of using a fixed moving average trend filter.
---
## Signal Meanings
### Bullish Turn
A **Bullish Turn** appears when the swing trend is up and Stochastic RSI recently reached the lower zone, then starts turning upward.
This can suggest that short-term momentum may be turning back up after a pullback.
Simple meaning:
> Momentum may be turning up in a swing uptrend.
---
### Bearish Turn
A **Bearish Turn** appears when the swing trend is down and Stochastic RSI recently reached the upper zone, then starts turning downward.
This can suggest that short-term momentum may be turning back down after a bounce.
Simple meaning:
> Momentum may be turning down in a swing downtrend.
---
### Pullback Warning
A **Pullback Warning** appears when the market is in a swing uptrend, Stochastic RSI is in the upper zone, and momentum starts rolling over while price is extended.
This does not automatically mean the trend is over. It is a caution signal.
Simple meaning:
> Price may be stretched in an uptrend. Be careful chasing late.
---
### Bounce Warning
A **Bounce Warning** appears when the market is in a swing downtrend, Stochastic RSI is in the lower zone, and momentum starts turning upward while price is extended.
This does not automatically mean a new uptrend has started. It is a caution signal for shorts.
Simple meaning:
> Price may be stretched in a downtrend. Be careful shorting late.
---
## Shaded Zone Interpretation
The shaded areas are trend-aware:
* **Gray upper zone**: Stoch RSI is above 80, but in an uptrend this can still represent bullish power.
* **Red upper zone**: Momentum may be rolling over and pullback risk may be increasing.
* **Gray lower zone**: Stoch RSI is below 20, but in a downtrend this can still represent bearish power.
* **Green lower zone**: Momentum may be turning up and bounce potential may be increasing.
This helps avoid the common mistake of assuming:
* Above 80 always means sell.
* Below 20 always means buy.
In strong trends, extremes can remain extended.
---
## Read Table
The table provides a simplified summary of the current condition:
* **Trend**: Current swing trend direction.
* **Zone**: Current Stoch RSI zone interpretation.
* **Signal**: Recent valid signal, if one is active.
* **Interpretation**: Simple plain-English read of the current condition.
The signal can be held for a selected number of bars using the **Hold Signal For Bars** setting.
---
## Key Settings
### RSI Length / Stochastic Length
Controls the sensitivity of the Stochastic RSI calculation.
Lower values react faster.
Higher values are smoother but slower.
### Swing Period
Controls how large or small the swing structure should be.
Lower values react faster but can create more noise.
Higher values focus on larger swing moves.
### Price Extension ATR Multiplier
Used to help identify when price may be stretched away from its swing anchor.
### Shaded Zone Transparency
Allows users to adjust the brightness/opacity of the gray, red, and green shaded areas.
### Table Text Size
Allows users to adjust the size of the table text.
---
## How to Use
This indicator is best used as a momentum and timing tool, not as a standalone trading system.
A possible bullish interpretation:
> Swing trend is up, Stoch RSI pulled into the lower zone, then a Bullish Turn appears.
A possible bearish interpretation:
> Swing trend is down, Stoch RSI bounced into the upper zone, then a Bearish Turn appears.
A caution example:
> In an uptrend, Stoch RSI above 80 may remain bullish power. A Pullback Warning only appears when momentum starts rolling over and price is extended.
---
## Important Notes
This indicator is for educational and analytical purposes only.
It does not guarantee future price movement and should not be used as financial advice. Traders should combine it with price structure, volume, support/resistance, risk management, and broader market context.
When the **Confirm Signals On Closed Bar** option is enabled, signals are designed to confirm only after the candle closes. Live candles can still change before closing.
---
## Attribution
Swing-direction trend logic is adapted from the concept used in **Dynamic Swing Anchored VWAP by Zeiierman**.
Original work licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International:
(creativecommons.org)
Indicator

Order Flow Delta Proxy (Tick-Rule)This indicator approximates buy-side versus sell-side trading pressure, commonly referred to as order flow delta or cumulative volume delta, using a tick-rule method applied to lower-timeframe price data. True bid and ask tick data is not available for most index and cash market symbols on this platform, so this script provides a volume-based directional approximation instead.
How it works:
For each bar on the chart, the script pulls a configurable lower-timeframe series of closes and volumes using request.security_lower_tf(). Each lower-timeframe close is compared to the prior lower-timeframe close: if price ticked up, that portion of volume is classified as buy-side; if price ticked down, it is classified as sell-side; unchanged ticks are split evenly, following standard tick-rule convention. These classified volumes are summed per chart bar to produce a per-bar delta value, plotted as a histogram, alongside a running cumulative delta line. If lower-timeframe data is unavailable, the script falls back to a close-position-within-range volume split as an approximation.
Notes and limitations:
This is a volume-based directional proxy, not real bid or ask order flow data. The currently forming bar's values can update intrabar as new lower-timeframe data arrives, which is expected behavior for any real-time order-flow style tool; once a bar closes, its value is fixed. This script does not generate trade signals and does not guarantee profitability. It is intended as a supplementary analytical tool and should be used alongside sound risk management. Past patterns in delta do not guarantee future price behavior. Indicator

BTC RSI Indicator [3Commas]BTC RSI Indicator
🔷 What it does:
This is a signal-only indicator that mirrors a long-only DCA workflow on BTC / USDT. It tracks a single virtual position: a base entry opens when 4h RSI(14) drops below 28; if price keeps falling, five averaging orders add to the virtual position at fixed deviations from the base entry, each larger than the last; the position is then closed at a fixed take-profit above the blended average entry. The indicator computes running average entry, deployed capital, open PnL, and lifetime realized PnL from honest fill-by-fill bookkeeping, and emits a webhook-ready JSON alert payload on the base order, every safety order, and the close.
Single entry filter: 4h RSI(14) below 28 (deep oversold).
Five averaging orders at fixed deviations (−2%, −5%, −9.5%, −16%, −25%) with 1.8× size scaling per rung.
Fixed take-profit on the blended average entry; no trailing, no stop loss.
Honest virtual bookkeeping: avg entry, deployed capital, Open PnL, and cumulative realized PnL displayed live on the chart.
🔷 Who is it for:
Swing traders accumulating BTC on deep RSI flushes who want a chart-driven signal source.
Bot operators who want base / safety-order / close webhook JSON ready to drive a DCA Bot.
Traders comfortable with martingale-style averaging who size their capital to the worst-case ladder fill.
Traders who want strategy-tester-equivalent insight (live realized / unrealized PnL) without running a backtest engine.
🔷 How does it work:
Base Entry: On each closed 4h bar the indicator reads RSI(14). When RSI falls below 28 and there is no open virtual position, it marks a virtual base order at the close price and dispatches the entry webhook.
Averaging Orders: Once in a virtual position, the indicator watches price relative to the original base entry. The five safety orders are armed at fixed deviations from that base entry — not cumulatively — at −2%, −5%, −9.5%, −16%, and −25%. As each threshold is crossed on bar close, the corresponding safety order is recorded and its webhook fires. Order sizes scale 1.8× per rung ($900 → $1,620 → $2,916 → $5,249 → $9,448 from a $500 base), pulling the blended average entry down toward the latest fill.
Honest Virtual Bookkeeping: Total cost and qty are updated incrementally on every event, so the avg entry, deployed capital, and Open PnL displayed in the status table reflect the actual broker-equivalent position state — no shortcut, no synthetic averaging.
Take Profit & Lifetime PnL: When price closes at or above the take-profit level (a fixed percentage above the average entry), the virtual position is closed, its round-trip profit is added to a persistent realized-PnL counter, and the close webhook fires. The status table displays both Open PnL (current unrealized state) and cumulative realized PnL, so live performance is visible directly on the chart.
Capital Bounds: Total virtual deployed capital cannot exceed the base order plus the five safety orders. Once all five are filled, no further adds occur — the position simply waits for the take-profit.
🔷 Why it's unique:
Deep-Oversold-Only Entries: A single, strict RSI(14) < 28 filter on 4h keeps the signal quiet in normal conditions and only fires after a meaningful flush.
Fixed-Deviation Martingale Ladder: Safety orders are placed at fixed percentages from the base entry with deliberate 1.8× size scaling — a transparent, fully-specified averaging schedule rather than an opaque adaptive grid.
Full Webhook Chain: Base order, each safety order, and the close all emit dedicated JSON payloads. One PulseWire alert with "Any alert() function call" drives a 3Commas DCA Bot end-to-end.
Live PnL Tracking: Open PnL and cumulative realized PnL are displayed live on the chart — the indicator gives strategy-tester-equivalent insight without running a backtest.
🔷 Considerations Before Using the Indicator:
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If BTC trends hard below the −25% AO5 level without recovering to take-profit, the virtual position sits fully loaded with no further adds and no stop — Open PnL can grow deeply negative until price reverts.
No Stop Loss: There is no exit signal on adverse moves. Risk is bounded only by the fixed ladder allocation (base + five AOs ≈ $20,633 at default sizing). If a hard exchange-side stop is required, configure it on the bot directly.
Match Sizing to Your Bot: The avg-entry and PnL display becomes meaningful only when the indicator's base/AO sizing matches your real DCA Bot configuration.
Cross Detection Granularity: Base, safety-order, and take-profit events 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 is rebuilt from chart history each time the indicator is recompiled. If the indicator is added mid-deployment or the live bot diverges from the signal stream (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 realized-PnL counter in the status table gives a running approximation. For full metrics over the reference ~30-month sample (62 closed trades, 70.97% win rate, 3.79% max drawdown, profit factor 4.028, +3.08% net return over January 1, 2024 – June 29, 2026), use the companion strategy version on identical parameters. Note the 62-trade sample is below the ~100-trade floor for statistical confidence — treat those metrics as indicative.
🔷 How to Use It:
🔸 Add the indicator to a 4h BTC / USDT chart.
🔸 Confirm the RSI level (28), the five AO deviations and sizes, and the take-profit percentage match your bot's configuration. Match the base/AO sizing so the avg-entry and PnL display stays meaningful.
🔸 In the DCA Bot Webhook group, paste the Bot ID, Email Token, and Pair (QUOTE_BASE format, e.g., USDT_BTC).
🔸 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 base order, each safety order, and the close will each emit a dedicated JSON payload formatted for direct DCA Bot consumption.
🔷 INDICATOR SETTINGS
Base Order Size: Virtual capital committed on the first (base) entry.
AO Deviations: Fixed percentage distances from the base entry where each safety order fires.
AO Sizes: Virtual capital per safety order (1.8× scaling by default).
RSI Timeframe / Length / Level: Oversold filter for the base entry (default 4h, 14, below 28).
Take Profit (%): Distance above average entry where the full position closes.
DCA Bot Webhook: Bot ID, Email Token, and Pair fields injected into every alert payload.
Visualization: Toggle the AO ladder, fill labels, avg/TP lines, and status table (shows status, AOs filled, base/avg entry, TP target, deployed capital, open PnL, RSI, and cumulative realized PnL).
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

BTC RSI Strategy [3Commas]BTC RSI Strategy
🔷 What it does:
This is a long-only DCA (Dollar-Cost Averaging) strategy for BTC / USDT that opens a position only in deep-oversold conditions and then averages down on a fixed safety-order ladder. A base order fires when 4h RSI(14) drops below 28; if price keeps falling, five averaging orders add to the position at fixed deviations from the base entry, each larger than the last. The full position is closed at a fixed take-profit above the blended average entry. There is no trailing exit and no stop loss — the position is structurally bounded by the five-order ladder.
- Single entry filter: 4h RSI(14) below 28 (deep oversold).
- Five averaging orders at fixed deviations (−2%, −5%, −9.5%, −16%, −25%) with 1.8× size scaling per rung.
- Fixed take-profit on the blended average entry; no trailing, no stop loss.
- Every fill and close emits a webhook-ready JSON alert payload for a DCA Bot.
🔷 Who is it for:
- Swing traders accumulating BTC on deep RSI flushes rather than chasing momentum.
- Bot operators who want a chart-driven signal source with base / safety-order / close webhook JSON ready to drive a DCA Bot.
- Traders comfortable with martingale-style averaging who size their capital to the worst-case ladder fill.
- Range / mean-reversion traders who prefer mechanical oversold entries over discretionary timing.
🔷 How does it work:
Entry (Base Order): On each closed 4h bar the strategy reads RSI(14). When RSI falls below 28 and there is no open position, it opens the base order at market (or limit, optionally) and dispatches the entry webhook.
Averaging Orders: Once in a position, the strategy watches price relative to the original base entry. The five safety orders are armed at fixed deviations from that base entry — not cumulatively — at −2%, −5%, −9.5%, −16%, and −25%. As each threshold is crossed on bar close, the corresponding averaging order fires. Order sizes scale 1.8× per rung ($900 → $1,620 → $2,916 → $5,249 → $9,448 from a $500 base), pulling the blended average entry down toward the latest fill.
Exit (Take Profit): While in a position, the strategy computes a take-profit price a fixed percentage above the current average entry. When price closes at or above that level, the entire position is closed at market and the close webhook fires. There is no trailing and no stop loss.
Capital Bounds: Total deployed capital cannot exceed the base order plus the five safety orders. Once all five averaging orders are filled, no further adds occur — the position simply waits for the take-profit. This ladder cap is the strategy's primary risk control.
🔷 Why it's unique:
- Deep-Oversold-Only Entries: A single, strict RSI(14) < 28 filter on 4h keeps the strategy out of the market in normal conditions and only commits capital after a meaningful flush.
- Fixed-Deviation Martingale Ladder: Safety orders are placed at fixed percentages from the base entry with deliberate 1.8× size scaling, so each rung has progressively more influence on the average — a transparent, fully-specified averaging schedule rather than an opaque adaptive grid.
- Full Webhook Chain: Base order, each safety order, and the close all emit dedicated JSON payloads. The strategy can drive a 3Commas DCA Bot end-to-end with no glue layer.
- On-Chart Transparency: The AO ladder, average entry, and take-profit target are plotted live, and the status table reports RSI, AOs filled, base/average entry, TP target, and max deployable capital — so the position state is always visible.
🔷 Considerations Before Using the Strategy:
Trade Volume — Below the Statistical Floor: The reference backtest produced 62 closed trades over ~30 months. This is below the ~100-trade threshold often used as a floor for statistical relevance, so treat the win rate and profit factor as indicative rather than conclusive. The strict RSI < 28 filter is what keeps the trade count low — and BTC is less volatile than smaller alts, so deep flushes below the entry threshold are relatively rare.
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If BTC trends hard below the −25% AO5 level without recovering to take-profit, the position sits fully loaded with no further adds and no stop — unrealized loss can grow until price reverts. The 1.8× scaling amplifies both the recovery speed and the downside.
No Stop Loss Justification: There is no exit on adverse moves. Per-order risk is bounded by the fixed ladder allocation; aggregate exposure is capped at base + five AOs (≈ $20,633 on the default $100k account, ~20.6% of equity). Size the base/AO inputs down to match the worst-case exposure you are willing to hold.
Capital Deployment & Drawdown: The reference backtest reached a 3.79% maximum equity drawdown at default sizing — but that depends on the configured ladder fitting within BTC's observed swings. A deeper or more prolonged decline than the test sample would produce a larger drawdown.
Fees: The default commission (0.06% per trade) should be matched to your exchange's actual taker fees. With a fixed 3% take-profit the per-trade edge is modest, so a fee mismatch matters.
Demo Testing: Always demo-test before going live. Past results do not guarantee future performance, particularly for martingale-style averaging strategies whose risk profile is dominated by rare deep drawdowns.
🔷 STRATEGY PROPERTIES
Symbol: BYBIT:BTCUSDT.P (Perpetual) — strategy is portable to any BTC / USDT pair.
Timeframe: 4H (RSI sampled on 4h).
Test Period: January 1, 2024 — June 29, 2026 (~30 months).
Initial Capital: 100,000 USDT.
Base Order Size: 500 USDT.
Averaging Orders: 5, at −2% / −5% / −9.5% / −16% / −25% from base entry.
AO Sizing: 1.8× per rung — 900 / 1,620 / 2,916 / 5,249 / 9,448 USDT.
Max Deployed Capital: ≈ 20,633 USDT (~20.6% of equity, all AOs filled).
Commission: 0.06% per trade.
Slippage: 3 ticks.
Entry Filter: 4h RSI(14) below 28.
Take Profit: 3% above average entry.
Stop Loss: None — ladder allocation is the structural risk cap.
Trailing: None.
Strategy: Long Only.
🔷 STRATEGY RESULTS
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +3,078.29 USDT (+3.08%)
Max Equity Drawdown: 3,852.12 USDT (3.79%)
Total Closed Trades: 62
Percent Profitable: 70.97% (44 / 62)
Profit Factor: 4.028
🔷 How to Use It:
🔸 Adjust Settings: Open the strategy inputs and confirm the RSI level (28), the five AO deviations and sizes, and the take-profit percentage match your risk profile. Scale the base/AO sizes down for lower exposure.
🔸 Results Review: Run a full-period backtest and confirm Max Drawdown stays within your personal risk band — note this configuration reached 3.79%. Keep in mind the 62-trade sample is below the ~100-trade floor for statistical confidence.
🔸 Create alerts to trigger the DCA Bot: Add one alert on the strategy using "Any alert() function call". Paste your 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 base order, each safety order, and the close will each emit a dedicated JSON payload.
🔷 INDICATOR SETTINGS
Base Order Size: Capital committed on the first (base) entry.
AO Deviations: Fixed percentage distances from the base entry where each safety order fires.
AO Sizes: Capital per safety order (1.8× scaling by default).
RSI Timeframe / Length / Level: Oversold filter for the base entry (default 4h, 14, below 28).
Take Profit (%): Distance above average entry where the full position closes.
Bot ID / Email Token / Pair: Webhook fields injected into every alert payload.
Visualization: Toggle the AO ladder, fill labels, avg/TP lines, and 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
