ASTRA: Liquidity Engine v0.1Astra
Astra is a specialized technical analysis tool designed to capture market momentum, trend exhaustion, and volatility shifts.
By publishing this script in open form, the goal is to share the underlying logic with the developer and trading community for transparency, optimization, and collaboration.
⚠️ CRITICAL WARNING & DISCLAIMER
Astra is NOT a standalone trading system. If you attempt to trade blindly based solely on Astra’s signals, you will likely experience significant drawdowns, especially during .
Context is Key: This indicator is engineered to highlight specific mathematical anomalies or market dynamics. It does not account for overall market structure, higher timeframe trends, or volume validation on its own.
Do Not Solo Trade: This tool is explicitly designed to function as a supporting component of a broader trading framework.
Best Practices: Confluence Over Isolation
To unlock Astra's true potential, it must be combined with complementary tools to filter out false signals. It works best when paired with:
Trend/Structure Filters: Pair it with a Higher Timeframe EMA, Moving Averages, or Market Structure (Market Highs/Lows) to ensure you are only trading in the direction of the primary trend.
Momentum & Volume Validation: Combine Astra with volume-based indicators (like Volume Profiles, VWAP) or structural oscillators (like a customized RSI) to confirm if a move has genuine institutional backing.
Your Own Discretion: Use this to find setups, but rely on solid price action and risk management for your actual entries and exits.
Note to the Community: The code is open. Feel free to fork it, adapt it into your own strategies, or build multi-indicator dashboards (HUDs) around it. If you find an incredible confluence combination with Astra, share your insights in the comments below! Indicator

Indicator

Micro Momentum Oscillator [DYNA]Micro Momentum Oscillator is a purpose-built momentum tool for scalpers who need to know the instant short-term momentum shifts direction. It doesn't just tell you whether RSI is high or low -- it measures how fast RSI is changing and fires a signal the moment that rate of change flips in an extreme zone.
Most oscillators lag behind price on micro timeframes. By the time a standard RSI or MACD prints a crossover on a 1-minute chart, the move is already half over. Micro Momentum Oscillator solves this by applying a rate-of-change calculation directly to RSI and smoothing the result with a weighted moving average. The output is a fast, responsive line that turns teal when momentum is accelerating upward and red when it is accelerating downward -- giving you a clean visual read on who is in control right now.
Key Features
RSI Rate-of-Change Pipeline -- Measures how quickly RSI itself is changing, not just its level. This catches momentum shifts before the RSI line visually turns.
OB/OS Zone Flip Detection -- Signals only fire when momentum flips direction while RSI was in an extreme zone (oversold or overbought), filtering out noise in the middle range.
Color-Coded Momentum Line -- Teal for bullish acceleration, red for bearish acceleration. No interpretation needed -- the color tells you the direction at a glance.
Zone Shading -- Soft red and teal fills in the overbought and oversold momentum zones so you can instantly see when the oscillator is in an extreme area.
Confirmed-Bar Logic -- All signals reference the previous bar's values, so flip markers never repaint or disappear after they print.
How It Works
The oscillator computes a short-period RSI (default 5), then calculates the rate of change of that RSI over the last 3 bars. This raw ROC is smoothed with a 3-period weighted moving average to filter out single-bar noise while keeping the reading fast.
The result is plotted as a line that oscillates around zero. When the line is above zero and teal, momentum is pushing RSI higher -- buyers are gaining strength. When the line is below zero and red, momentum is dragging RSI lower -- sellers are in control.
The key signal is the momentum flip . When the oscillator crosses above zero and RSI was recently in the oversold zone (below 30), a bullish FLIP marker appears. When it crosses below zero and RSI was in the overbought zone (above 70), a bearish FLIP marker appears. These flips highlight the moments when exhausted momentum reverses direction at an extreme -- exactly the kind of micro-reversal scalpers look for.
Micro Momentum Oscillator on a 1-minute BTC chart showing bullish and bearish flip signals at momentum extremes.
Visual Elements
The oscillator pane shows a teal/red momentum line, a gray zero line, and soft zone shading in the overbought and oversold areas. A thin orange reference line tracks the underlying RSI (scaled to fit the pane) so you can see at a glance whether price is stretched. Triangle markers with "FLIP" text appear at momentum reversal points in extreme zones.
Zone shading highlights overbought and oversold momentum areas. The orange RSI reference line shows underlying conditions.
Settings
The core settings control the speed of the oscillator. RSI Length (default 5) sets the underlying RSI period -- lower values make it more reactive. ROC Length (default 3) controls how many bars of RSI change are measured. Smoothing (default 3) applies a WMA to the ROC output to remove noise without adding significant lag.
Overbought and Oversold levels (default 70 and 30) define the RSI thresholds for flip detection. Only momentum reversals that occur when RSI was beyond these levels generate flip markers. You can tighten these thresholds (e.g., 75/25) for fewer but higher-conviction signals, or widen them (e.g., 65/35) for more frequent signals.
Visual toggles let you show or hide zone shading and flip markers. Alert toggles let you enable or disable each alert type independently.
Alerts
Momentum Flip Bullish -- Fires when the smoothed ROC crosses above zero while RSI was in the oversold zone. "Micro Momentum Oscillator : Bullish momentum flip detected. RSI was oversold, ROC now accelerating upward."
Momentum Flip Bearish -- Fires when the smoothed ROC crosses below zero while RSI was in the overbought zone. "Micro Momentum Oscillator : Bearish momentum flip detected. RSI was overbought, ROC now decelerating downward."
To set up alerts: click the PulseWire Alerts button, select "Micro Momentum Oscillator " from the indicator dropdown, choose "Any alert() function call" as the condition, and set your preferred notification method.
Best Practices
Use on 1-3 minute charts for best results. The default parameters are calibrated for micro-timeframe scalping.
Treat FLIP signals as timing cues, not standalone entries. Confirm with a supporting candle pattern, a volume spike, or a key support/resistance level.
Avoid trading flips during low-volume periods such as pre-market or lunch hours when momentum readings become noisy.
If moving to 5-minute charts, consider increasing RSI Length to 8-10 to maintain signal quality.
Pair with a volume indicator or tape reader for stronger confirmation on each flip.
Part of the DYNA Ecosystem
Micro Momentum Oscillator is a free indicator built with the same design standards as the DYNA premium suite. For complete trade management with automatic stop loss, break-even, trailing stops, and multi-target systems, explore the full DYNA indicator collection.
Disclaimer
This indicator is a technical analysis and educational tool only -- it is not financial advice and makes no guarantee of any outcome. Past performance does not predict future results. Always do your own research and use proper position sizing and risk management.
Created by Varun Nidhi · varunnidhi.com
A free DYNA indicator — self-contained, no repainting.
Indicator

Technical Strength Gauge [HexaTrades]Most traders watch a handful of indicators and weigh them by gut feel. Technical Strength Meter does this objectively and at scale: It evaluates 74 indicator votes across 34 technical indicator families, turns each into a single Buy / Neutral / Sell vote, and aggregates those votes into three colour-graded strength gauges, each scored 0-100: Leading, Lagging, and an overall Summary. On top sits an analytics row that translates the raw votes into market context: regime, trend strength, volatility, confidence, probability and an A+ to D quality grade.
HOW IT WORKS - THE VOTING ENGINE
Each indicator votes : All 74 indicators are evaluated, and each casts exactly one vote:
+1 Buy (its bullish condition is met)
0 Neutral (no clear signal)
-1 Sell (its bearish condition is met)
The voting rule is matched to the indicator's nature:
• Oscillators vote by mean reversion, e.g. RSI must be below the oversold level AND turning back up to vote Buy; above the overbought level AND turning down to vote Sell; otherwise Neutral. The same "stretched, then turning" logic drives Stochastic, CCI, Williams %R, MFI, Ultimate, Stochastic RSI, TSI, Fisher and CMO.
• Moving averages vote by price location: close above the MA = Buy, below = Sell. This repeats for 10 MA families across 5 lengths (50 votes in total).
• Trend tools vote on their own state: Supertrend direction, price vs the Ichimoku cloud, +DI vs -DI, Parabolic SAR side, Linear-Regression slope, Vortex, and so on.
Votes are grouped & averaged : The votes split into a Leading set (early movers) and a Lagging set (trend confirmers). Each set is averaged into one number from -1 to +1, and the Summary is the average of the two halves.
Weighting & exclusions: By default every vote counts equally, but each gauge is a weighted average: you can scale whole categories (Oscillators / MAs / Trend) up or down, or switch any indicator off. A disabled indicator (weight 0) is dropped from both the average and the counts; it is NOT silently counted as Neutral. On symbols with no volume data, volume-based votes (VWMA, MFI) are auto-excluded the same way, so they don't dilute the score.
Score & verdict : Each -1…+1 average is rescaled to a 0-100 score and mapped to a five-step verdict:
0-25 Strong Sell · 25-45 Sell · 45-55 Neutral · 55-75 Buy · 75-100 Strong Buy
(Internally: rating <= -0.5 = Strong Sell, <= -0.1 = Sell, between = Neutral, >= 0.1 = Buy, >= 0.5 = Strong Buy.)
⭐️THREE GAUGES
• LEADING (16 indicators) momentum / early-mover tools that tend to turn before price: RSI, Stochastic, CCI, Williams %R, MFI, ROC, Momentum, Ultimate Oscillator, Awesome Oscillator, Stochastic RSI, TSI, Fisher Transform, CMO, plus Bollinger, Donchian and Aroon.
• LAGGING (58 indicators): trend-followers that confirm an established move: MACD histogram, 50 moving-average votes (10 MA types EMA, SMA, VWMA, WMA, HMA, RMA, ALMA, DEMA, TEMA, KAMA across 5 lengths), and Supertrend, ADX, Ichimoku, Parabolic SAR, Linear Regression, Vortex and DMI.
• SUMMARY: the balance of the Leading and Lagging halves; your one-number bias.
When the two halves agree, conviction is high; when Leading leads Lagging, a turn may be forming.
⭐️ANALYTICS ROW
• MARKET REGIME : Strong Bull / Bull / Sideways / Bear / Strong Bear. Combines five trend engines (Supertrend, Ichimoku, DMI, stacked-MA alignment, LinReg slope) into a directional bias, then gates it with ADX: low ADX = Sideways; high ADX + strong bias = a "Strong" trend.
• TREND STRENGTH % : how strong and aligned the trend is, blending the size of that directional bias with ADX magnitude.
• VOLATILITY : Low / Normal / High / Extreme, from the percentile rank of Bollinger Band width over the last 100 bars (so it adapts to each symbol).
• CONFIDENCE % : how trustworthy the current reading is: a blend of decisiveness (how far Summary is from neutral), Leading–Lagging agreement, and vote consistency.
• BULL / BEAR PROBABILITY % : the weighted balance of all votes, always summing to 100.
• SIGNAL-QUALITY GRADE : A+ to D, a composite of Confidence, Trend Strength and favourable volatility, for a quick "is this a clean setup?" read.
⭐️ SETTINGS GUIDE
Layout : anchor position, total width, summary size, height, compact mode, per-gauge show/hide, the five MA lengths, and toggles for the analytics row and breakdown table.
Signals & timeframe: analysis timeframe (MTF), confirm-on-close, Strong and normal Buy/Sell arrows, the signal trigger levels, the ADX whipsaw filter, background tint and the volatility alert.
Indicator periods : lengths for RSI, Stochastic, CCI, MFI, Williams %R, ROC, Momentum, ADX/DMI, Bollinger and MACD.
Overbought / Oversold: the OB/OS thresholds for RSI, Stochastic, MFI, Ultimate Oscillator, CCI and Williams %R.
Analytics thresholds: the ADX bands for regime and the percentile bands for volatility.
Weights & toggles: category weights (Oscillators / MAs / Trend) and an on/off switch for all 34 named indicators.
Colors: the full Strong-Sell to Strong-Buy palette and table colours.
Signals are calculated using closed-bar data when "Confirm on Close" is enabled. The indicator does not intentionally use future data or repaint historical signals.
⭐️How to use
Context first: read Market Regime and Volatility. "Strong" regimes favour trend-following; "Sideways" favours mean-reversion or standing aside; "Extreme" volatility means wider stops and more false breaks.
Bias: read the Summary gauge and its 0–100 score: your single-number lean.
Alignment:compare Leading vs Lagging. Both same side = confirmed conviction; Leading
ahead of Lagging = possible early turn; disagreement = mixed/choppy, so smaller size or wait.
Quality: check Confidence % and the A+…D Grade. An A-grade Strong Buy in a Strong Bull regime ≠ a borderline Buy in chop.
Execute: use the Buy/Sell arrows as visual triggers, or attach the built-in alerts.
Make it yours: shorter periods/lower triggers for scalping, longer/higher for swing; re-weight or disable indicators you don't trust; set an Analysis timeframe to read a higher TF from a lower chart.
⭐️ BEST USE CASES
Best suited for:
• Trend confirmation and trend-following strategies
• Market regime analysis (Bull, Bear, Sideways)
• Multi-indicator consensus and bias assessment
• Swing trading and position trading
• Day trading and intraday market analysis
• Higher-timeframe directional bias and confirmation
• Identifying alignment between momentum and trend indicators
Not designed for:
• Standalone trade entries without additional analysis
• Predicting exact tops, bottoms, or reversals
• Guaranteed market forecasts or future price predictions
• Fully automated trading systems without validation
• Replacing risk management, position sizing, or trading plans
Technical Strength Meter combines the signals of 74 widely used technical indicators into a single, transparent decision-support framework. By separating indicators into Leading and Lagging categories, the indicator helps traders identify potential turning points, confirm established trends, and understand the overall market bias at a glance. Rather than relying on a single indicator, it provides a structured consensus view supported by market regime, volatility, confidence, probability, and signal-quality analysis. Whether used for scalping, day trading, or swing trading, the goal is to simplify complex technical data into actionable market context while keeping every vote visible and explainable.
We would love to hear your suggestions. If you have ideas for new features, indicators, analytics, or improvements, please share your feedback. Your input helps guide future updates and improve the indicator for all traders.
For educational and informational purposes only. This indicator is designed to assist technical analysis and should not be considered financial, investment, or trading advice.
Indicator

MACD RSI Signal [XWiseTrade]MACD RSI Signal
The classic MACD settings — 12, 26, 9 — were chosen decades ago for daily stock charts, where they roughly meant "half a month, one month, and a week." Almost everyone then copies those exact numbers onto 5-minute, 15-minute and hourly charts, where they no longer correspond to anything meaningful. This indicator rebuilds the MACD/RSI combination for intraday trading, with periods anchored to how the global trading day is actually structured, and with RSI graded in zones rather than a single overbought/oversold line.
Why simple moving averages, not exponential
Most MACD implementations use exponential moving averages, which deliberately weight recent bars more heavily than older ones. That weighting is a built-in assumption — that the latest price matters more. This indicator uses simple moving averages instead: every bar in the window counts equally. The result is a less manipulated, more faithful read of raw price action, with no human assumption about which bars "should" matter more. For intraday decisions, that neutrality lets the price structure speak for itself rather than through a weighting curve.
Why the periods are 12 / 24 / 8
Read on the 1-hour scale these map to real session structure: 12 ≈ the split between the Euro/US half of the day and the rest; 24 ≈ a full intraday higher-timeframe day; 8 ≈ the length of a single major session (London, New York, Asia). The point isn't that these numbers are magic — it's that the original 12/26/9 only ever made sense as "days," and on intraday charts that meaning is lost. Anchoring to sessions restores a reason for the numbers. You can apply it to higher or lower timeframes, but the 1-hour scale is its reference point.
How the signal is graded
A signal is not a single MACD cross. It requires momentum to be persisting: the MACD histogram must be positive and expanding for a bull case (negative and expanding for a bear case) — momentum actually accelerating, not a one-bar cross that fades.
RSI then grades that momentum, using zones based on familiar ratios (0.214 / 0.382 / 0.618 / 0.786) instead of plain 30/70 — finer resolution for intraday work:
Pass (solid Bull/Bear) — RSI between 0.382 and 0.618 (38.2–61.8): healthy core, room to run.
Warning (small marker) — RSI outside that core but not extreme: momentum persists, but the move is stretched — lower quality.
Veto (no signal) — RSI beyond 0.786 or below 0.214: too extreme, the signal is rejected rather than shown.
How to use it
Add it to a chart — built for intraday, with the 1-hour scale as the reference. Solid Bull/Bear labels are momentum that passed the RSI grade. Faint bull? / bear? markers are persisting momentum that RSI flagged as stretched — treat with caution. No label means the setup was either too weak or vetoed as overextended. The MACD here is built on simple (unweighted) moving averages rather than the usual exponential ones — every period is given equal weight, a more neutral read — and every zone bound is adjustable.
What makes it different
Standard MACD+RSI scripts copy daily-era settings onto every timeframe and use RSI as a single yes/no filter. This one re-anchors the periods to real session structure for intraday use, defines a signal as persisting, expanding momentum rather than a momentary cross, lets RSI grade and veto that momentum across zones instead of a binary line, and uses unweighted moving averages so no single bar is given outsized influence.
Inputs: MACD fast/slow/signal,RSI length, Fibonacci-style zone bounds, cooldown.
These are descriptive signals for discretionary use, not buy/sell recommendations. Indicator

Indicator

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

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

Trend Efficiency Exhaustion Regime-Gated & CalibratedTrend Efficiency Exhaustion — Regime-Gated & Calibrated
What it is
A single-pane oscillator that measures when a trend is losing efficiency and turns that into graded, forward-calibrated exhaustion and ignition signals. It is built around one question — "is this efficiency-exhaustion event actually worth acting on?" — and every component in the script exists to answer that one question rather than to add an independent signal.
It plots, in one pane: an efficiency-gap histogram, a fast efficiency line, event markers, a regime "weather-strip" ribbon, and an information table that states the read in plain language. It is symbol- and timeframe-agnostic; defaults are tuned for NIFTY / BANKNIFTY but a Source input and a VIX-symbol input let you use it on any instrument in any market.
The core idea — efficiency, not a magic multiplier
The Efficiency Ratio is the net move divided by the total path travelled over a window: ER = |close − close | / Σ|close − close |, bounded 0–1. A value near 1 means price moved in a straight, efficient line (trend); near 0 means it wandered (chop).
Reading efficiency at two horizons gives the central signal:
Efficiency Gap = ER_fast − ER_slow. When the fast read rolls over while the slow read is still elevated, the trend is losing efficiency under an otherwise intact trend — the classic exhaustion tell.
Displacement percentile ranks the current leg's travel against recent completed legs on this symbol and timeframe, so "stretched" is defined by the instrument's own recent behaviour rather than a fixed price > k·ATR multiplier.
Exhaustion = a stretched leg with fast efficiency rolling over, under a genuine trend. Ignition = fast efficiency surging from a young leg (continuation).
Why these components belong in ONE script (how the mashup works together)
This is a mashup by design, but it is not a stack of indicators each drawing its own signal. Every layer is a gate or a grade on the same event, feeding one decision pipeline:
Efficiency (dual-horizon Efficiency Ratio) — detects the candidate event (exhaustion / ignition).
Regime engine (Efficiency + ADX + a self-exciting volatility-cluster intensity) — decides when the event is even allowed to fire. Exhaustion is only meaningful inside a real trend; it is suppressed in chaotic, news-driven volatility. The regime is rendered as a continuous 5-state read (strong-trend / trend / neutral / reversion / chaos).
Variance ratio (Lo-MacKinlay) — a second, short-window-reliable lens that confirms a real trend existed to exhaust (VR > 1 = trending, < 1 = mean-reverting, ≈ 1 = random walk), with a significance z-statistic.
Ornstein-Uhlenbeck half-life — quality gate: if the estimated mean-reversion half-life is longer than the evaluation horizon, the expected reversion is too slow to pay off in time, so the exhaustion call is rejected.
Implied-volatility (VIX) state — quality gate: exhaustion is more reliable when implied volatility is elevated but stable (fear present, not spiking). The gate blocks exhaustion during a volatility spike.
Divergence quality — grades each exhaustion on the price↔efficiency divergence at the extreme: the slope of the efficiency drop between successive same-side pivots, how developed the swing is, and whether volume waned into the extreme. Weak-divergence setups are filtered out.
Forward calibration — the scorekeeper. Each fired event is logged as a hypothesis and resolved a fixed number of bars later against an ATR-scaled move, then summarised as a realised hit-rate versus an unconditional base rate.
Take any single layer away and the remaining pipeline still describes the same one event — they are complementary measurements of a single hypothesis (a trend running out of efficiency), which is precisely why they belong together rather than as separate scripts. The regime, variance-ratio, OU and VIX layers never plot their own buy/sell calls; they only decide whether the efficiency-exhaustion event is trustworthy.
The part most scripts skip — forward calibration
Most indicators emit a score and never check whether that score was right. Here, every event is queued and resolved N bars later against moveATR × ATR, in R-multiples. The information table reports, per class (Exhaustion / Ignition):
n — resolved sample size
Hit% with a Wilson 95% interval (so you see how stable the rate is)
Base% — the unconditional same-horizon move rate (the honest benchmark)
Edge = Hit% − Base%, marked * when a z-test clears 95%
MFE / MAE in R (how far it ran for you vs against you)
a recency-weighted hit-rate and a regime-conditional hit-rate for the current regime
If Edge is not positive, the signal is not adding information over chance on your chart — and the script tells you so instead of hiding it.
How to use it
Ribbon = context. Don't fade a strong trend; stand aside in chaos.
Histogram rolling over + a marker = the trigger.
Verdict line = the plain-language call (e.g. "TREND · watch for exhaustion", "EXHAUSTION ↓ · fade the up-move (edge +12%*)", "CHAOS · stand aside"), with the calibrated edge appended when the live class is calibrated.
Chart View: Clean (default) shows only the decision elements; Full adds the slow-ER line, displacement %, all reference levels and the divergence glow for analysis.
Information Table: Compact (default) is the key-info panel — verdict, efficiency/displacement/regime, variance-ratio/OU/VIX, best calibrated edge. Pro adds the full per-class calibration table with confidence intervals, recency and regime-conditional rows.
Treat it as a context-and-confirmation overlay on your own process, not an autotrading signal. Paper-trade first and confirm the Edge column is positive on your symbol and timeframe before relying on a class.
Originality
The novelty is not any single formula — those are credited below — but the closed loop: a self-referential displacement percentile (no fixed multiplier), a regime engine and four independent quality gates that all condition one event, and a forward-calibration layer that scores that event against its own base rate with confidence intervals, recency weighting and regime conditioning. Everything is original Pine; no third-party script code is reused.
Inputs, data & markets
Source (group 1) sets the raw series the whole engine reads — change it to use any instrument in any market.
Defaults are tuned for NIFTY / BANKNIFTY; the VIX Symbol defaults to NSE:INDIAVIX. For other markets, change the Source, the ER horizons and the VIX symbol (e.g. CBOE:VIX). A missing VIX symbol auto-disables that gate.
Inputs are organised institutionally: Source & Efficiency · Regime & Variance-Ratio · Displacement · Events · Quality Gates · Calibration · Display · Theme · Exports. The table colour scheme adapts automatically to a light or dark chart background.
Non-repaint
Efficiency is read on confirmed closes, legs are taken from confirmed pivots, events fire on barstate.isconfirmed, and there are no dynamic-length ta.* calls. Forward statistics are in-sample, close-to-close, with no costs, slippage or stops — a study aid, not a backtest.
Concept credits (original Pine re-derivations)
Efficiency Ratio — Perry Kaufman
Variance-ratio test — Andrew Lo & Craig MacKinlay (1988)
ADX / Directional Movement — J. Welles Wilder
Self-exciting (Hawkes) intensity — Alan G. Hawkes (1971)
Mean-reversion half-life — Ornstein & Uhlenbeck process
Score confidence interval — Edwin B. Wilson (1927)
Dominant-cycle homodyne discriminator — John F. Ehlers
Disclaimer
For education and information only. Not financial advice and not a recommendation to buy or sell anything. Past performance does not guarantee future results. The forward statistics are in-sample and idealised (close-to-close, no costs/slippage/stops). Always do your own analysis and manage your own risk; paper-trade before risking real money. Indicator

RSI Slope Divergence HelperRSI Slope Divergence Helper compares the rolling slope of price with the rolling slope of RSI.
This is not a classic pivot-divergence detector. It does not wait for confirmed swing pivots. Instead, it compares rolling price behavior and rolling RSI behavior directly by converting both slopes into normalized, unitless values and displaying them in the same pane.
The purpose of this script is to help users observe when price slope and RSI slope are moving together, moving against each other, or moving with low slope. It is a context and visualization tool only. It does not provide trade-action instructions and it is not a trading system.
What it shows
- Normalized price slope.
- Normalized RSI slope.
- A spread histogram between the two normalized slopes.
- Neutral slope-relationship states.
- A compact dashboard.
- Optional factual markers.
- A neutral Divergence Footprint layer.
How the calculation works
The script first calculates RSI using the selected RSI source and RSI length.
For price, it estimates a rolling linear-regression slope by comparing the current linear-regression value with the prior linear-regression value. The price slope is expressed as a percentage of the prior fitted price value so it can be compared across different symbols and price levels.
For RSI, the script estimates a rolling linear-regression slope from RSI itself. Since RSI is already bounded from 0 to 100, its slope is measured in RSI points.
The two slope series have different units, so they are normalized separately:
- price slope is divided by its own rolling standard deviation
- RSI slope is divided by its own rolling standard deviation
This converts both slopes into comparable unitless values.
The displayed spread is:
normalized price slope - normalized RSI slope
A positive spread means the normalized price slope is above the normalized RSI slope. A negative spread means the normalized price slope is below the normalized RSI slope.
No request.security() is used. The script uses current chart bars only and does not use lookahead or future data.
Why it is different from classic RSI divergence scripts
Many RSI divergence scripts compare confirmed price pivots with confirmed RSI pivots. This script takes a different approach.
It focuses on rolling slope behavior:
- price slope
- RSI slope
- normalized slope spread
- duration of the current disagreement episode
- peak spread during the current episode
- spread motion
- phase gap
Because it is slope-based, it is intended as a visual helper for observing disagreement between price movement and RSI movement. It is not a reversal detector and it does not forecast future price behavior.
Divergence Footprint
The Divergence Footprint is a neutral context layer that describes the current slope-disagreement episode.
It can show:
- whether slope disagreement is active
- how many bars the current disagreement episode has persisted
- the peak absolute spread reached during the current episode
- whether the absolute spread is expanding, cooling, or holding
- the phase gap between normalized price slope and normalized RSI slope
The phase gap is calculated by applying an angle transform to each normalized slope and then comparing the two angles. It is descriptive only. It is not a probability, score, forecast, or confirmation tool.
Optional phase-gap and duration plots are off by default to keep the pane clean.
State model
The dashboard uses neutral state names:
- Warming up
- Aligned upward
- Aligned downward
- Upper disagreement
- Lower disagreement
- Flat / low slope
- Mixed slopes
Upper disagreement means price slope is positive while RSI slope is negative.
Lower disagreement means price slope is negative while RSI slope is positive.
These states describe the current relationship between the two slopes. They do not imply reversal or continuation.
Markers and alerts
Markers are optional and off by default.
The marker display mode can be set to:
- Off
- Disagreement only
- All events
When enabled, markers are small and factual:
- P+ R- means price slope is positive while RSI slope is negative.
- P- R+ means price slope is negative while RSI slope is positive.
- Align marks slope agreement returning after a prior slope-disagreement episode, when enabled.
Alerts use the same neutral event logic:
- Upper slope disagreement
- Lower slope disagreement
- Slope agreement restored
- Spread crossed above threshold
- Spread crossed below threshold
Alerts are confirmed on bar close by default. Intrabar mode is available, but realtime values can update until the bar closes.
Dashboard
The default dashboard is compact and auto-sized. It is designed to stay readable without covering the indicator pane.
Compact layout shows:
- State
- Price slope
- RSI slope
- Spread
- Footprint
- Event mode
Standard and Detailed layouts add more context, including RSI value, spread motion, phase gap, disagreement bars, episode peak spread, active warm-up bars, and bar status.
Visual customization
Users can adjust:
- table layout
- table position
- table text size
- header text size
- table colors
- row backgrounds
- state-row highlighting
- plot colors
- histogram transparency
- marker colors
- background tint
- fixed table sizing, when desired
By default, fixed table cell sizing is off, so the dashboard auto-sizes to its content. Markers and background tint are also off by default to keep the pane clean.
Visual settings do not affect the calculations.
Live behavior and robustness
The script includes:
- automatic warm-up floor
- guarded denominators
- minimum normalized slope threshold
- optional spread-threshold filter for events
- optional minimum persistence for disagreement events
- optional event cooldown
- confirmed-bar event handling by default
- realtime / confirmed bar status disclosure in the table
If there is not enough history, or if the normalization denominator is not usable, the script avoids producing misleading slope states and displays safe fallback text such as n/a or Warming up.
Limitations
This script is not financial advice and not a trading system.
Slope disagreement can persist.
Slope disagreement can disappear without a major price move.
Slope disagreement does not predict reversal or continuation.
RSI is a bounded oscillator and can remain extended while price continues moving.
Default settings are starting points, not optimized settings.
Normalization length, slope length, smoothing length, and thresholds affect sensitivity.
Japanese notes
価格の傾きとRSIの傾きを正規化して比較し、両者の乖離をスプレッドとDivergence Footprintで表示する補助ツールです。通常のピボット型RSIダイバージェンス検出ではありません。売買判断や将来の値動きを示すものではなく、状況把握のための可視化ツールです。既定ではCompact表示、マーカーと背景色はオフ、確定足イベント処理がオンです。 Indicator

Reversion Setup - Bollinger Bands + RSI Live Dashboard📊 REVERSION SETUP — Bollinger Bands + Live RSI Dashboard
A focused mean-reversion tool combining Bollinger Bands with a real-time
RSI dashboard — built to spot potential reversal zones without cluttering
your chart or burning extra indicator slots.
✅ Bollinger Bands — fully configurable (period, deviation, source, color)
✅ Live RSI Dashboard — current RSI value, overbought/oversold levels,
and real-time alert status, shown in a clean table instead of a
separate pane
🎯 WHY THIS COMBO
Bollinger Bands highlight when price stretches to a statistical extreme,
while the RSI dashboard confirms whether momentum actually backs up that
move. When price tags a band AND RSI flags overbought/oversold at the
same time, that's your reversion signal — two confirmations, one chart.
🔧 FULLY CONFIGURABLE
— Adjust Bollinger period, deviation, source, and color
— Set your own RSI period and overbought/oversold levels
— Adjust dashboard text size
💡 HOW IT WORKS
The RSI dashboard updates live as new candles form, showing:
— Current RSI value
— Upper/Lower band levels
— Alert status (Overbought ↑ / Oversold ↓ / Neutral →)
🔗 PAIRS WELL WITH
Check out my Trend Setup (EMA 50/100/200 + RSI Dashboard) for the
trend-following counterpart to this mean-reversion tool.
💬 Suggestions for the next setup? Drop a comment below — more tools
coming based on community feedback.
If this helped your charts, a like goes a long way 🙏 Indicator

Trend Setup - 3 EMA + RSI Dashboard📊 TREND SETUP — EMAs + Live RSI Dashboard
A clean, all-in-one trend tool combining the 3 most-used EMAs with a
real-time RSI dashboard — no need to load multiple indicators separately.
✅ EMA 50 / 100 / 200 — fully configurable (period, source, color, on/off)
✅ Live RSI Dashboard — shows current RSI value, overbought/oversold
levels, and a real-time status alert, displayed in a sleek table
instead of a cluttered separate pane
🎯 WHY THIS COMBO
EMAs give you the big-picture trend direction, while the RSI dashboard
tells you instantly if price is stretched (overbought/oversold) —
without needing a second indicator slot, perfect if you're on a free
PulseWire plan and want to save your indicator limit.
🔧 FULLY CONFIGURABLE
— Toggle each EMA on/off independently
— Set your own RSI period and overbought/oversold levels
— Adjust dashboard text size
💡 HOW IT WORKS
The RSI dashboard updates live as new candles form, showing:
— Current RSI value
— Upper/Lower band levels
— Alert status (Overbought ↑ / Oversold ↓ / Neutral →)
💬 Got a suggestion for the next version? Drop a comment below —
I'm actively building more setups based on community feedback.
If this helped your charts, a like goes a long way 🙏 Indicator

Indicator

ORB ORB V2 plots the Opening Range Breakout for the Asia, London, or New York session, using the high and low of a selectable timeframe candle (1 to 240 min) captured at the exact session open in New York time.
What it draws:
High, midpoint (50%), and low lines of the opening range, extended live for the duration of the session
Color-coded labels showing the exact price of each level
A vertical opening marker at session start
Built-in bias filter:
A configurable EMA (default 20-period on the 1H timeframe, both adjustable) is calculated independently of the chart timeframe via request.security, and compared to price to display a simple Bullish/Bearish bias — useful for filtering ORB breakout trades in the direction of the higher-timeframe trend rather than trading every breakout blindly.
Dashboard:
A bottom-right table shows the total range size and the distance to the 50% level, converted into your choice of units (ticks, pips, or % for crypto), plus the previous day's high and low for additional context, and the current bias reading.
How to use it:
Select your session (Asia / London / NY) and the opening candle timeframe.
Watch for price to break above/below the ORB high/low.
Use the EMA bias reading to favor breakouts aligned with the higher-timeframe trend, and the 50% level as a mid-range reference for partial targets or re-entries.
Use the dashboard to gauge range size in your preferred unit before sizing a trade.
All colors, label sizes, and the dashboard display can be customized from the indicator settings. Indicator

Indicator

Undertow BacktestSTRATEGY — UNDERTOW BACKTEST
SHORT SUMMARY
The backtest engine for Undertow. Simulate the buy/sell dots across any asset and timeframe, and choose whether to trade only the strong signals or every crossover.
WHAT IT IS
Undertow Backtest is the strategy version of the Undertow indicator. It applies Undertow's buy and sell logic to historical data and reports how a simple long-only approach would have performed — net profit, win rate, drawdown, and a full trade list — in PulseWire's Strategy Tester.
HOW IT WORKS
— Entry (long): on an Undertow buy signal
— Exit: on an Undertow sell signal
— You independently choose, via dropdowns, whether buys fire on strong dots only (crosses beyond the oversold bound) or on all dots (every upward cross), and likewise for sells.
This lets you compare four behaviors: patient (strong/strong), active (all/all), aggressive long-bias (all buys / strong sells), and defensive (strong buys / all sells).
SETTINGS
— All the same WaveTrend and threshold inputs as the indicator
— Buy On: Strong dots only / All dots
— Sell On: Strong dots only / All dots
— Default starting capital, position sizing, and commission are set in the strategy properties and can be edited
IMPORTANT LIMITATIONS — PLEASE READ
— The backtest fills orders at bar close and does NOT model slippage; real-world results would typically be worse.
— It is long-only and goes effectively all-in per signal by default; this is a simplification, not a recommended position-sizing method.
— Higher timeframes (weekly, monthly) produce few trades, which is too small a sample to draw firm conclusions from. Test across multiple assets and timeframes.
— Optimizing the settings until the backtest looks great ("curve fitting") usually produces results that fall apart on live data. Prefer settings that are robust across many markets over ones that are perfect on one.
CREDITS & BASIS
Based on the open-source WaveTrend Oscillator concept (LazyBear) plus a standard RSI. Published open-source.
DISCLAIMER
For educational purposes only. Not financial advice. Backtested performance is hypothetical and does not represent actual trading. No system guarantees future profits. Trade at your own risk and never risk more than you can afford to lose. Strategy

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

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

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

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

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

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

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