Indicator

Indicator

Indicator

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

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

SMC Structures and FVG [Produced by Wanfeng]中文简介
SMC 结构综合指标 | FVG 公允价值缺口 + BOS/CHoCH 结构突破 + 趋势防守位 + 区间比例线
指标核心功能
FVG 公允价值缺口
自动识别传统 3 根 K 线标准供需缺口,区分看涨 / 看跌缺口;价格触碰缺口后自动变灰淡化,支持一键收缩被触碰区间,可自定义显示历史缺口数量;不适配跳空大缺口行情。
SMC 结构识别(BOS/CHoCH)
内置回溯周期算法自动判定市场结构:顺势突破 BOS、逆势转换 CHoCH;支持自定义线条颜色、线型、粗细,可限制图表留存历史突破标记数量。
假破待确认虚线
价格试探结构高低但未收盘突破时,自动绘制待确认虚线;区分普通顺势假破、防守位假破两种样式,直观分辨有效突破与诱多 / 诱空假破。
动态趋势防守位
跟随当前市场结构实时切换防守基准:上涨趋势以阶段低点为防守、下跌趋势以阶段高点为防守;出现防守位假破时自动切换至假破极值作为临时防守,加粗实线标注并附带文字标签。
区间比例分割线
基于当前完整结构区间自动计算自定义百分比分割线(默认 50% 中位线),同步适配假破后的区间重构;可显示百分比数值标签,辅助找订单流关键支撑阻力。
参数分组说明
公允价值缺口:控制 FVG 显示、配色、触碰收缩、历史数量
结构突破:结构回溯周期、BOS/CHoCH 线条、当前完整结构轮廓线、假破待确认线
防守位:防守实线配色粗细、防守位假破虚线开关与样式
结构比例线:自定义分割百分比、比例线样式、数值标签开关
使用提示
结构回溯 K 线参数为算法基准,不建议随意修改,修改会破坏防守位判定逻辑;
FVG 仅识别标准 3K 缺口,指数、外汇大幅跳空行情下缺口识别会失真;
突破触发自动警报,BOS 代表顺势延续、CHoCH 代表趋势反转信号;
所有线条、色块透明度、线型、线宽均可自由自定义适配个人图表风格。
English Introduction
SMC Market Structure All-in-One Toolkit | FVG + BOS & CHoCH Breakout + Dynamic Defense Level + Ratio Split Line
Core Features
Fair Value Gap (FVG)
Detect standard 3-bar institutional liquidity gaps (bullish & bearish). FVG boxes turn gray once mitigated, with optional shrink function for touched zones. Adjustable max historical FVG count. Not recommended for large gap/jump markets.
SMC Structure Detection (BOS / CHoCH)
Built-in lookback algorithm to identify institutional market structure: BOS (Break of Structure, trend continuation) & CHoCH (Change of Character, trend reversal). Fully customizable line color, style, width, and limited historical breakout markers to avoid chart clutter.
Pending Fake Breakout Dashed Line
Draw temporary pending lines when price tests swing high/low without close breakout. Separate styles for regular trend fakeouts and defense level fakeouts, easily distinguish valid breaks vs liquidity hunts.
Dynamic Trend Defense Level
Auto-switch defense baseline based on current market bias: swing low for uptrend, swing high for downtrend. Temporarily shift defense level to fakeout extreme when liquidity hunt occurs, with thick solid line and text label.
Range Ratio Split Line
Auto calculate user-defined percentage split level (default 50% midpoint) over active market range, compatible with post-fakeout restructured ranges. Optional percentage value label for key order flow support/resistance zones.
Input Groups
Fair Value Gap: Toggle FVG display, color palette, mitigate shrink, max historical boxes
Market Structure: Structure lookback period, BOS/CHoCH line settings, full swing structure outline, pending fake breakout lines
Defense Level: Solid defense line config, toggle & style for defense fakeout dashed lines
Range Ratio Line: Custom split percentage, ratio line appearance, value label switch
Important Notes
Structure lookback bar count is core algorithm parameter, DO NOT modify arbitrarily; wrong value breaks defense level calculation.
This FVG logic only works for standard 3-bar gaps; performance degrades on assets with massive overnight jumps/gaps.
Built-in alert triggers on confirmed breakouts: BOS = trend continuation signal, CHoCH = trend reversal signal.
Full customization of all line width, color transparency, dash/dot/solid styles to match your chart layout preference. Indicator

Indicator

Strategy

RichmondHillCM - PTJ Regime ChangePTJ Regime Change — Bull / Bear / Neutral Market Gauge
A composite market-regime indicator inspired by the trend-following, 200-day-moving-average philosophy popularised by Paul Tudor Jones. Instead of relying on a single signal, it polls s even independent technical components, each casting a +1 (bullish) or −1 (bearish) vote, then sums them into one score from −7 to +7 and classifies the market into a Bull, Bear, or Neutral regime.
The 7 components:
Price vs 200 MA — primary trend filter
Price vs 50 MA — intermediate trend filter
MA slope — are both averages rising?
RSI — momentum inside a healthy band (not weak, not euphoric)
MACD histogram — momentum expanding vs contracting
Volume — does volume confirm the day's direction?
ATR stress — is volatility calm or spiking?
How to use it:
• Background and candle colours show the live regime at a glance.
• The bottom-right table breaks down every component, its signal, and the total score.
• Optional labels mark the exact bar where the regime flips.
• Built-in alerts for regime changes, 200-MA crosses (above/below), and RSI blow-off/euphoria warnings.
Every input is configurable: MA type (SMA/EMA) and lengths, RSI/MACD/ATR settings, volume period, and the bull/bear score thresholds — so you can tune sensitivity to your symbol and timeframe.
Works on any symbol and any timeframe.
Credits: methodology inspired by Paul Tudor Jones' trend/200-MA approach; original scoring framework concept by RichmondHillCM.
Disclaimer: For educational purposes only. This is not financial advice and does not guarantee future performance. Always do your own research. Indicator

Investment Circle Pro ICTv20 — Momentum signals, exit markers, position calculator & stability fix
This update reworks how entries are generated, adds exit markers, a position-size calculator, and fixes a memory issue that could cause the indicator to stop updating over long sessions.
New
Momentum signal engine (primary): buy/sell arrows now print when momentum turns up in an up-trend or down in a down-trend, with a selectable trend filter (EMA50 / Supertrend / multi-timeframe / none) and an adjustable cooldown. This replaces the old, rarely-firing zone-only trigger.
Exit markers (X): every long/short signal now also gets a "finished" marker when momentum rolls back against it — so you see both the start and the end of a move.
Flip on opposite signal: an opposing signal closes the active trade so you're never left in a stale position.
Position calculator: enter trade size, SL% and TP% (as % of stake), an optional "Buy 2" top-up and your leverage; the panel returns loss/profit in money, market exposure, the price move needed to reach SL/TP, and R:R. Optional auto-mode pulls SL%/TP% from the active signal.
Buyside/Sellside liquidity (BSL/SSL): equal highs/lows are marked as liquidity pools, flagged when swept, and used as take-profit targets.
Session levels: Asia / London / NY session highs and lows drawn as clean horizontal levels (no boxes).
Configurable macro asset: point the macro panel at gold, silver, oil, copper, OMX30, Nasdaq 100 or S&P 500.
Improved
OB and inverted-FVG zones are now toggleable independently, with a size filter to reduce clutter.
New-listing safeguard: no signals until enough history exists (useful on fresh IPOs).
Added a session filter, panel position/size controls, and a separate signal/performance panel (win rate, profit factor, expectancy, net PnL%).
Fixed
Stability: the dashboard and panels were being rebuilt on every tick, which could exhaust memory over a long session and make the indicator stop updating until re-added. Panels are now created once and only refreshed — this should resolve the "disappears after a day" issue.
This tool is for technical analysis and education only. It is not financial advice and does not predict future results. Always do your own research and manage your own risk. Indicator

Indicator

Round NumbersRound Numbers highlights the key psychological price levels around the current market by drawing round, half, and quarter number levels around price.
The goal is simple: make round numbers easier to see, improve chart readability, and help you stay visually oriented without cluttering the chart with unrelated logic.
How it works
Automatically adapts level spacing across different markets using daily range and decimal-place anchoring.
Works with Forex, cryptocurrencies, indices, commodities, and stocks.
Optional symbol-specific override multipliers are available for instruments that require custom spacing.
Displays
Round levels
Half levels
Quarter levels
Use cases
Visualize where price is trading relative to nearby psychological levels.
Improve chart structure and orientation.
Keep important price levels visible across different markets.
Settings
Visible Levels - Number of levels displayed around the current price.
Round / Half / Quarter - Individual visibility and style settings.
Overrides - Optional symbol-specific spacing multipliers.
This indicator is designed as a visual reference layer. It does not generate trade signals and does not attempt to identify support or resistance using order flow, liquidity, or reversal logic.
Indicator

Liquidity Propulsion Signals | ProjectSyndicateLiquidity Propulsion Signals catches the moment a liquidity grab fails — and instead of chasing the breakout, it fades it. Markets coil, then hunt the resting liquidity parked above swing highs and below swing lows. When price spears one of those pools and then snaps back inside the range, it traps the breakout crowd and loads a "spring." The engine measures the energy stored in that failed grab as a 0–100 Propulsion Charge, and fires contrarian — in the direction the trapped crowd is now forced to unwind. Every setup gets a structural invalidation level beyond the failed grab, fixed R-based targets, a 0–100 charge with a 1–5 star rank, and is tracked live on a full statistics dashboard — including honest stop-outs — so you can see exactly how the logic behaves on the symbol and timeframe you trade.
🧠 Liquidity-Spring Core — the core idea, expressed as a lifecycle: COIL ▸ GRAB ▸ LOAD ▸ IGNITE ▸ TARGET. Resting-liquidity pools are mapped from confirmed swing pivots — the highs and lows where stops cluster. A grab begins when price pierces one of those pools: a low driven below sell-side liquidity, or a high pushed above buy-side liquidity. If price then reclaims the pool — closes back inside the range within the reclaim window — the grab has failed, and that failure loads a spring on the opposite side. The spring later ignites into a signal when price pushes through the bar that armed it. Pools come from confirmed pivots and every transition is evaluated on the bar's close, so the pools and the signal do not repaint.
🔋 Charge Anatomy — a failed grab is not just true or false; it is scored for how much energy it carries. The Propulsion Charge fuses six breakout-native ingredients into a single 0–100 read: grab depth (how far price penetrated the pool, in ATR), reclaim velocity (how fast it snapped back within the window), rejection wick (the share of the bar spent rejecting the level), volume surge (the spike over a rolling baseline), coil compression (how tightly the market was wound before the grab — a loaded spring versus a loose one), and reclaim displacement (how decisively close pushed back past the level). Each component is independently weighted, so you can dial the engine toward depth, speed, volume, or compression as your edge demands.
🎯 Structural Invalidation + R-Based Targets — a loaded spring is invalidated before it fires if price falls back beyond the grab extreme, so weak grabs quietly disarm instead of trading. Once a discharge fires, the trade model builds a universal ATR-based zone height: the stop sits a fixed ATR distance from entry, so every signal draws the same SL/TP geometry — no super-wide or super-narrow zones to distort your risk. TP1, TP2, and TP3 are set at clean R multiples, defaulting to a balanced 1R / 2R / 3R and fully adjustable to your reward profile. Every signal plots its complete Entry / SL / TP1 / TP2 / TP3 line set, labeled level prices, and filled TP / SL zone boxes, with a result label on exit.
🧲 Opposing-Liquidity Magnet — because a discharge is fundamentally drawn toward the next pool of unswept liquidity, the engine can project the nearest opposing pool as a dotted magnet line: the obvious, structural target the move is being pulled toward. It is a context read for where the propulsion wants to go, sitting alongside your fixed R targets rather than replacing them.
🎚️ Conviction Controls — a compact set of dials sets how serious a failed grab must be before it counts: the Arm Threshold (the minimum charge that loads a spring at all), a Strong Tier cutoff, an optional Only Fire Strong-Tier Springs filter, the minimum grab depth, the reclaim window, and the ignition window that keeps an armed spring from waiting forever. Tighten them for fewer, cleaner discharges; loosen them for more activity. Combined with the six component weights, this is your main control over conviction versus frequency.
🧭 Ignition Gating & Single-Ticket Discipline — an armed spring is not a trade until it ignites: price must close through the ignition level set at load time. If the grab extreme is broken back the other way, the spring disarms; if the ignition window elapses with no trigger, it discharges unused and resets. Only one ticket is active at a time, so a single chaotic session can't stack overlapping trades, and resolution is SL-first pessimistic with honest partial-TP accounting — if a stop is hit after TP1 or TP2, that partial result is booked rather than rounded up.
⭐ 0–100 Charge with Star Tiers — every discharge is labeled with its numeric charge, a 1–5 star rank, and a tier ladder running FLAT → WEAK → PRIMED → STRONG → ELITE. Treat the charge as a cleanliness and confluence read for ranking and thinning setups — it describes how textbook a failed grab is, not a guaranteed outcome. The Arm Threshold and Only-Strong gate restrict what is displayed and alerted, while the dashboard keeps tracking every tier in the background.
📊 Live Statistics Dashboard — a non-intrusive panel tracks, in real time on your chart: the current bias (long spring / short spring / active / idle) and status (waiting → grab forming → spring loaded → discharging), a live charge meter with separate long- and short-spring readings, the magnet distance up and down in ATR, the last discharge with its star score, total signals, win rate, closed trades, profit factor, average R per trade, best-performing direction, long vs short win rate, current and max win/loss streaks, and a TP1 / TP2 / TP3 / SL outcome breakdown. Every filled trade that reaches an outcome is counted — winners and stop-outs alike — so the numbers are computed live from the real signals on your current symbol and timeframe, not a figure printed in a description.
🎨 Clean Themed Visuals — five coherent palettes (Midnight default, plus Emerald, Ice Blue, Gold Black, and Aqua Violet) shade the liquidity-pool lines, the ⚡ charge labels, the per-trade SL / TP ladder and zone boxes, and the dashboard to one look, so direction and quality read at a glance. Liquidity pools are drawn as color-keyed dotted levels; each discharge prints a ⚡ label with its charge, star tier, and direction arrow. The active ticket extends live to the right and then snaps cleanly back to its exit bar on close, so labels never float away — and a max-drawn-trades cap keeps only the most recent tickets on the chart while the statistics stay cumulative over the full history.
🔔 Detailed Alerts — fires on a long or short spring loaded (a qualifying failed grab), on long / short discharge (ignition), on any discharge, and on TP3 and SL events, formatted for manual or automated use. The strength gate can restrict alerts to higher-conviction springs.
🔧 Fully Customizable — every component is exposed: the pivot length that defines which pools count, the ATR length, the coil window and its looseness reference; the reclaim window, minimum grab depth, depth and volume energy references, volume baseline, and ignition window; the arm and strong thresholds, the only-strong filter, and all six charge weights; the universal risk distance and the three R targets; the opposing-liquidity magnet, level-shelf length, and max historical trades; the dashboard position, size, meter, and per-target breakdown; all five themes; and every pool, label, line, box, and star toggle.
🎯 Why this is different — most "liquidity" tools simply draw lines at old highs and lows and tell you a sweep happened. This one treats the failed sweep as the event, scores how much spring energy that failure stored across depth, velocity, wick, volume, compression, and displacement, and fires contrarian — fading the trapped breakout the way price actually tends to unwind — then anchors invalidation to the grab itself, projects the opposing pool the move is drawn toward, and layers an objective 0–100 ranking and a live, honest statistics panel that counts stop-outs in full. You tune and judge it on real, current data from your own chart instead of a marketing number.
🚀 Where to use it — the engine is symbol-agnostic and built on universal behavior: stop-runs and failed breakouts happen in every liquid market, so it can be applied to FX majors and crosses, metals, indices, and crypto, on intraday timeframes. Pivot length and the ATR-based stop adapt to each instrument's volatility automatically. Because it is a contrarian, mean-reversion engine, it shines in ranging and liquidity-hunting conditions and demands more care in strong one-way trends — let the dashboard tell you whether the logic suits the pair and timeframe before you commit.
🎯 How to trade it
Apply it to a liquid symbol on an intraday timeframe and let the dashboard populate. Read the live win rate, profit factor, and average R for your symbol and timeframe first — if the logic doesn't suit that market, you'll see it.
Wait for a ⚡ LONG / ⚡ SHORT discharge label — it marks a confirmed close through the ignition level after a failed grab, with the charge, star tier, and full Entry / SL / TP1 / TP2 / TP3 already plotted.
Use the opposing-liquidity magnet as a logical target read: it shows the unswept pool the discharge is being pulled toward.
Manage the trade with the plotted levels — the universal ATR stop defines your risk and TP1/2/3 sit at your chosen R multiples. Bank or trail however suits your style.
Use the Arm Threshold, Only-Strong gate, and the six charge weights to set your tempo — stricter for fewer, cleaner discharges; looser for more activity — and lean on the star tier to focus on the most textbook failed grabs.
⚠️ Important — this is a decision-support tool, not a standalone buy/sell system, and it makes no performance guarantees. Default settings were chosen on historical data and behavior will vary by symbol, timeframe, session, and configuration; the dashboard's statistics are historical and descriptive, not a forecast. The trade model resolves stop-first and books partial-target exits honestly, so some trades close for a fraction of a target rather than a full win or loss — these are counted in full, which is honest but means win rate alone is misleading; always weigh it together with average R and profit factor, and resize the R targets to your own risk profile. Signals confirm on the closed bar, so always wait for the labeled discharge on a closed candle. Because the system is contrarian by design, a sufficiently strong trend can run straight through a stop — combine it with your own analysis and risk management, and test it on your market before trading it live. Indicator

Indicator

Indicator

Indicator

Rising & Falling Wedge Detector [HexaTrades]Overview
Wedge Detector automatically identifies and draws the two most actionable wedge patterns: the Rising Wedge (bearish) and the Falling Wedge (bullish). It marks each as a converging cone, validates the geometry, waits for a bar-close breakout, then plots a measured-move target and a structure-based stop without repainting the pattern structure.
It is built around quality over quantity: a strict, perfect-shape gate ensures only genuinely converging, textbook wedges appear. Every part of the logic is transparent and tunable. Ideal for swing and intraday traders who trade chart patterns and want an objective, rules-based way to spot wedges and define risk.
What it detects
Rising Wedge( bearish)
Higher highs and higher lows, but the lows rise faster than the highs (the lines converge upward). Signals a likely breakdown confirmed on a close below the lower trendline.
Falling Wedge ( bullish)
Lower highs and lower lows, but the highs fall faster than the lows (the lines converge downward). Signals a likely breakout confirmed on a close above the upper trendline.
How the Indicator Works
- Pivots: confirmed swing highs/lows (locked pivotLen bars after they occur).
- Boundaries: upper line from the two most recent swing highs; lower line from the two most recent swing lows, projected as straight lines.
- Slope & convergence: rising = both up, lows rising faster; falling = both down, highs falling faster (set by Convergence strictness).
- Perfect-shape gate: no crossing inside, real narrowing, minimum contraction, apex ahead, sensible duration, minimum ATR height.
- Forming preview: dashed shaded cone while developing.
- Breakout: bar-close below lower line (rising → bearish) / above upper line (falling → bullish).
- Filters: optional EMA trend, volume, breakout-candle ATR size.
- Targets/stops: measured-move target + opposite-boundary stop, drawn as persistent right-extending lines.
Features
- Automatic detection of rising & falling wedges from confirmed pivots.
- Perfect-shape validation rejects crossing, barely-narrowing, diverging, past-apex, too-small or too-long shapes.
- Forming preview dashed shaded cone before breakout.
- Bar-close breakout confirmation, no intrabar fakes.
- Measured-move target + structure stop (opposite boundary).
- EMA trend filter, volume filter, breakout-candle ATR filter (all optional).
- Theme-aware dashboard + shaded wedge zone + 3 alerts.
Dashboard
Status: Forming while developing → Confirmed on breakout
Last wedge: Rising Wedge / Falling Wedge
Bias: Bearish / Bullish
Target: Projected take-profit level
Stop: Structure-based invalidation level
Filters: EMA / Volume / ATR shown as On / Off
Settings
Detection:
Pivot length: swing sensitivity. Lower = more (and smaller) wedges.
Min wedge height (ATR): rejects wedges smaller than this many ATR.
Convergence strictness: how strongly the lines must converge (higher = stricter).
Min width contraction: minimum narrowing from start to breakout.
Max wedge duration: rejects over-stretched patterns.
Show forming wedge: preview wedges before breakout.
Filters:
EMA trend filter: only confirm breakouts aligned with the EMA (falling wedge above EMA, rising wedge below).
Volume confirmation: requires above-average volume on the breakout candle.
Min breakout candle size: require a breakout candle of at least N×ATR.
Visuals
Toggle target/stop lines, colors for bullish/bearish / forming, and the dashboard.
Alerts:
Rising Wedge breakdown:bearish confirmation.
Falling Wedge breakout: bullish confirmation.
Any wedge confirmed - either of the above.
Create alerts with “Once per bar close” for non-repainting behaviour.
Trading Guide
- Identify: dashboard Status = Forming + clean dashed cone.
- Enter: on the bar-close breakout (▲/▼) in the wedge's direction.
- Avoid: when filters reject the breakout, or in choppy ranges.
- Stop: the drawn SL (opposite boundary). Target: the drawn TP (measured move).
- Risk: size so breakout→stop is an acceptable risk; R:R = (TP−entry) ÷ (entry−SL).
Bullish Example (Falling Wedge)
Down-trend forms a dashed falling cone → a candle closes above the upper line → ▲ prints, wedge turns solid green, Status = Confirmed → enter, SL = lower line, TP = breakout + wedge height.
Bearish Example (Rising Wedge)
Up-grind forms a dashed rising cone → a candle closes below the lower line → ▼ prints, wedge turns solid red → enter short, SL = upper line, TP = breakout − wedge height.
Best Markets & Timeframes
Markets: works on crypto, forex, stocks, indices, futures, commodities. Best on liquid instruments with clean swings (the volume filter is most meaningful on stocks/indices).
Timeframes: 5m/15m = more signals, more noise (use stricter filters); 1H/4H = the sweet spot; Daily/Weekly = highest quality, fewer & slower.
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.
Wedge pattern detector indicator is for educational and analytical purposes only. It is not financial advice. Trading involves risk. Always use proper risk management and combine this indicator with your own analysis before taking any trade.
Indicator

RichmondHillCM - DXY vs BTC Lagged and RescaledDXY vs BTC — Lagged & Rescaled
This indicator compares Bitcoin against a time-shifted, inverted US Dollar Index (DXY) to visualize the inverse relationship between dollar strength and risk assets — with the dollar shifted forward so its past moves line up against where Bitcoin tends to follow.
How it works
- Both DXY and BTC are normalized to a 0–100 range over a rolling window, putting two very differently-scaled instruments on the same axis so they can be read side by side.
- DXY is lagged forward by an adjustable number of bars (default 18 ≈ 4.5 months on the weekly), reflecting the idea that dollar moves tend to lead Bitcoin rather than move with it.
- DXY is inverted by default, so the two lines track together whenever the historical inverse correlation is holding.
- The shaded fill marks divergence: green when BTC is running above the projected dollar path, red when it's below.
- A rolling correlation line is rescaled onto the same 0–100 axis: 50 = no correlation, below 50 = inverse (the normal regime for these two), above 50 = positive. It tells you how much to trust the overlay at any given moment.
Inputs
- DXY Lag — bars to shift the dollar forward
- Normalization Window — lookback used for the 0–100 rescaling
- Correlation Lookback — window for the rolling correlation
- Invert DXY — toggle the inverse view on/off
- Show Divergence Fill / Show Rolling Correlation — visibility toggles
- Configurable DXY and BTC symbols
Reading it
When the inverted, lagged DXY line and BTC line track closely and the correlation line sits well below 50, the dollar overlay is acting as a rough roadmap for price. When the correlation line drifts toward or above 50, the relationship has weakened and the overlay should be discounted. Large green/red divergences flag where BTC is leading or lagging the dollar's implied path.
Notes
The lag is a heuristic, not a fixed law — the optimal shift drifts across market regimes, so experiment with the lag and lookback values. This is a research and visualization tool, not a trading signal, and nothing here is financial advice. Indicator

RichmondHillCM - BTC vs Business Cycle (ISM PMI)BTC vs Business Cycle (ISM PMI)
This indicator overlays the U.S. ISM Manufacturing PMI against Bitcoin price to help you frame BTC within the broader macro/business cycle. The idea is simple: manufacturing activity is a classic gauge of economic momentum, and BTC has historically behaved differently in expansionary versus contractionary macro environments. This tool makes that relationship visible at a glance.
What it does
It pulls monthly PMI data and monthly BTC price, then normalizes Bitcoin into the PMI's 40–70 range so both can be read on the same scale. The PMI line is color-coded by regime, and Bitcoin is plotted alongside it for easy comparison.
Regime classification
Expansion — PMI at or above 50 (amber)
Strong Expansion / Bull — PMI at or above the Bull Threshold, default 55 (green)
Contraction — PMI below 50 (red)
The 50 level marks the expansion/contraction boundary, and a configurable Bull Threshold marks the stronger-momentum zone. Background shading highlights contraction and strong-bull periods, and labels mark the moments PMI crosses 50 in either direction.
Reading the panel
A live info table (top-right) summarizes the current PMI value, the active regime, whether BTC is in a "bull-supportive" macro environment, and the latest BTC price.
Inputs
PMI Symbol — the data feed for PMI. Availability depends on your PulseWire data access. If the default doesn't load, try alternates such as FRED:NAPM, ECONOMICS:USPMI, or another ISM/PMI source your plan supports.
Bull PMI Threshold — adjusts where the "strong expansion" zone begins.
Shade Regimes — toggles background shading on/off.
Notes
This is a macro-context tool, not a timing or entry/exit signal generator. PMI is monthly and released with a lag, so treat it as a regime backdrop rather than a trade trigger. Not financial advice — do your own research. Indicator

Indicator

Indicator

HA Daily Bias & EMA SetupDisclaimer
This indicator is inspired by the trading concepts discussed by Animesh K in "Learn Dual Edge Trading and Mindset."
This indicator is an independent implementation of selected concepts and should not be considered an official version of his strategy.
Trading involves risk. This indicator is intended as a decision-support tool and does not guarantee profitable trades.
Indicator Objective
The purpose of this indicator is to combine:
Daily Heikin Ashi Trend Bias
34 EMA Dynamic Trend Levels
Entry Confirmation
Exit Confirmation
Trend Filtering
to provide a clean trend-following trading system.
The indicator attempts to keep traders aligned with the higher timeframe trend while using the current timeframe for entries.
Core Trading Logic
The strategy is built around two ideas:
Determine the higher timeframe market bias.
Only take trades in the direction of that bias.
Instead of predicting reversals, the indicator follows momentum.
Daily Heikin Ashi Bias
The indicator first checks the previous day's Heikin Ashi candle.
Bullish Bias
Previous HA Close > Previous HA Open
Market Bias = Bullish
Only LONG trades are allowed.
Bearish Bias
Previous HA Close < Previous HA Open
Market Bias = Bearish
Only SHORT trades are allowed.
Neutral
If neither condition exists,
No directional bias exists.
Daily Support and Resistance
The indicator plots:
Previous Daily HA High
Previous Daily HA Low
These become important reference levels for:
Support
Resistance
Trend continuation
Risk management
Green Dots
= Previous HA Low
Red Dots
= Previous HA High
EMA Setup
The indicator uses two separate EMAs.
EMA 1
Length: 34
Default Source:
High
Purpose:
Bullish confirmation.
EMA 2
Length: 34
Default Source:
Low
Purpose:
Bearish confirmation.
Long Entry Rules
A LONG signal appears only when all conditions are true.
Condition 1
Daily Bias = Bullish
AND
Condition 2
Previous candle crosses above EMA High
AND
Condition 3
Current candle closes above EMA High
If all three conditions are satisfied,
A LONG label is printed.
Long Exit
The position exits when
Previous candle crosses below EMA Low
AND
Current candle closes below EMA Low
EXIT label appears.
Short Entry Rules
A SHORT signal appears only when:
Daily Bias = Bearish
AND
Previous candle crosses below EMA Low
AND
Current candle closes below EMA Low
SHORT label appears.
Short Exit
Exit occurs when
Previous candle crosses above EMA High
AND
Current candle closes above EMA High
EXIT label appears.
Signal Filtering
The indicator contains a built-in state management system.
Possible states:
Flat
Long
Short
This prevents duplicate entries.
Example:
LONG
LONG
LONG
LONG
Instead, only the first LONG signal is displayed until an EXIT occurs.
Likewise,
SHORT
SHORT
SHORT
SHORT
Only one SHORT signal is displayed.
Historical Signals
Option:
Show Historical Signals
ON
Displays every historical signal.
OFF
Displays only the latest signal.
Useful for clean charts.
Dashboard
The dashboard displays:
Previous Day HA Bias
Bullish
Bearish
Neutral
and
Previous HA Support Level
User Inputs
EMA Settings
Setting Default
EMA Length 34
EMA High Source High
EMA Low Source Low
Style Settings
Option Description
Show Daily HA Levels Display previous HA High and Low
Show Historical Signals Display all signals
Filter Consecutive Signals Prevent repeated LONG or SHORT signals
Recommended Timeframes
The indicator works best on:
5 Minute
15 Minute
30 Minute
1 Hour
4 Hour
The Daily Heikin Ashi bias remains constant throughout the trading day while entries are generated from the selected chart timeframe.
Suggested Workflow
Step 1
Determine Daily Bias.
If Bullish
Only look for LONG trades.
If Bearish
Only look for SHORT trades.
Step 2
Wait for EMA confirmation.
Do not anticipate the signal.
Step 3
Enter only after the label appears.
Step 4
Allow the trend to continue.
Step 5
Exit only when the opposite EMA confirmation occurs.
Risk Management Suggestions
Although this indicator generates entry and exit signals, every trade should include predefined risk controls.
Common approaches include:
Risk a fixed percentage of account equity per trade (e.g., 1–2%).
Place a protective stop below the recent swing low for long trades or above the recent swing high for short trades.
Consider taking partial profits at predetermined risk-reward levels while allowing the remainder to follow the exit signal.
Avoid forcing trades when the market is range-bound or during unusually low liquidity.
Best Market Conditions
This indicator generally performs best in:
Trending markets
Strong directional momentum
Stocks, ETFs, Index Futures, and Forex pairs with sustained trends
It may generate more false signals during sideways or choppy markets.
Indicator Summary
Feature Description
Higher Timeframe Filter Previous Day Heikin Ashi Bias
Trend Filter 34 EMA (High) & 34 EMA (Low)
Long Entries Bullish bias + EMA breakout confirmation
Short Entries Bearish bias + EMA breakdown confirmation
Exits Opposite EMA confirmation
Daily Levels Previous HA High & Low
Dashboard Current Daily Bias and HA Support
Signal Filter Prevents duplicate consecutive signals
Indicator

CQ_(-)_MTF Countdown Table================================================================================
CQ_(-)_MTF COUNTDOWN TABLE — USER MANUAL
© CQuevedo345
================================================================================
Pine Script v6 | Overlay Indicator | Multi-Timeframe Candle Timer
────────────────────────────────────────────────────────────────────────────────
OVERVIEW
────────────────────────────────────────────────────────────────────────────────
The CQ MTF Countdown Table is a real-time, multi-timeframe candle progress
monitor that displays how far into — and how far from the close of — each
major candle period you currently are. It renders a compact table directly
on your chart showing elapsed time, remaining time, and progress percentages
for up to four timeframes simultaneously: 1H, 4H, 1D, and 1W.
The table updates live on every bar close and on the last bar using timenow,
so the countdown is always accurate to the second.
────────────────────────────────────────────────────────────────────────────────
FEATURE SUMMARY
────────────────────────────────────────────────────────────────────────────────
• Multi-Timeframe Coverage
Tracks candle progress across 1H, 4H, 1D, and 1W simultaneously.
Each timeframe can be independently shown or hidden.
• Elapsed Percentage Column
Shows what percentage of the current candle has already elapsed,
displayed as a whole number (e.g. 73%). The cell background uses a
color gradient that transitions from a user-defined "low" color at 0%
to a user-defined "high" color at 100%, giving an instant visual read
of candle age at a glance.
• Elapsed Time Columns (Days + Time)
For 1H, 4H, and 1D rows, the Days column is intentionally left blank
(those candles don't span multiple days) and the Time column shows
elapsed time formatted as MM m (1H) or HH h : MM m (4H, 1D).
For the 1W row, both the Days column (e.g. 03D) and the Time column
(e.g. 14h : 22m) are populated to reflect the full weekly structure.
• Remaining Time Columns (Days + Time)
Mirror of the elapsed columns, but counting down toward the candle
close. The 1W row shows remaining days and remaining intraday time
separately. The remaining columns have their own independent text-size
setting so they can be made larger or smaller than the rest of the
table without affecting other columns.
• Seconds Alert Column
When remaining time on any row drops below a user-configured threshold
(0–5 minutes), a dedicated RMNG SECS cell lights up showing the exact
remaining seconds (e.g. 47s). The cell and text color change to a
high-contrast alert style automatically. Above the threshold the cell
stays blank and dim.
• Bullish / Bearish TF Label Color
The leftmost cell of each row (the TF label: 1H, 4H, 1D, 1W) is
colored green or red depending on whether the current close is at or
above the candle's open (bullish) or below it (bearish). Colors are
fully customizable.
• Active Timeframe Marker
When the chart's current timeframe matches one of the table rows, that
row's label is prefixed with a ▶ arrow so you can instantly see which
row corresponds to the candle you are currently trading on.
• Gradient on Time Cells (Optional)
When the gradient toggle is enabled, elapsed time cells adopt the same
low→high gradient as the percentage column. Remaining time cells use
the inverse (high→low). When the gradient is enabled, the otherwise-
empty "Days" cells on 1H/4H/1D rows are also filled with the matching
gradient color, keeping the row visually cohesive instead of leaving
dead dark gaps. When the toggle is off, all time cells use a uniform
dim background.
• Orientation Toggle
The entire table can be switched between Horizontal (timeframes as
rows, columns as data fields — the default) and Vertical (timeframes
as columns, data fields as rows). All cell logic, merging, and
alignment adapts automatically.
• Position, Size, and Color Customization
Every visual aspect of the table is configurable: table position
(8 anchor points), global text size, remaining-column text size
(independent), title background, header background, text colors for
elapsed and remaining fields, gradient low/high colors, bullish and
bearish background colors, and seconds-alert text color.
• Week Anchor — Monday 00:00 UTC
The 1W candle is anchored to Monday midnight UTC regardless of the
broker or exchange session, matching PulseWire's standard weekly
candle definition. The calculation uses timenow and UTC dayofweek to
derive the exact open timestamp of the current week dynamically.
• Accurate 4H and 1D Duration
Rather than assuming fixed 4-hour or 24-hour durations, the indicator
reads time_close from request.security for 4H and 1D so that DST
shifts, session gaps, and exchange-specific candle lengths are handled
correctly.
────────────────────────────────────────────────────────────────────────────────
TABLE LAYOUT
────────────────────────────────────────────────────────────────────────────────
Horizontal orientation (default):
┌─────────────────────────────────────────────────────────────────────┐
│ MTF ELAPSED/REMAINING CANDLE TIME │
├────────┬───────────┬────────────┬────────────┬───────────┬──────────┤
│ TF │ ELPSD % │ ELPSD DAYS │ ELPSD TIME │ RMNG DAYS │ RMNG TIME│ RMNG SECS
├────────┼───────────┼────────────┼────────────┼───────────┼──────────┤
│ 1H │ 73% │ │ 43m │ │ 17m │
│▶ 4H │ 18% │ │ 00h : 43m │ │ 03h : 17m│
│ 1D │ 62% │ │ 14h : 52m │ │ 09h : 07m│
│ 1W │ 44% │ 03D │ 14h : 22m │ 04D │ 09h : 37m│
└────────┴───────────┴────────────┴────────────┴───────────┴──────────┘
Column index reference:
Col 0 — TF label (bull/bear colored)
Col 1 — Elapsed percentage (gradient colored)
Col 2 — Elapsed days (1W only; gradient-filled on other rows if gradient ON)
Col 3 — Elapsed time (formatted per TF)
Col 4 — Remaining days (1W only; gradient-filled on other rows if gradient ON)
Col 5 — Remaining time (formatted per TF)
Col 6 — Remaining seconds alert (appears only near candle close)
In Vertical orientation the rows and columns are transposed: each
timeframe becomes a column and each data field becomes a row.
────────────────────────────────────────────────────────────────────────────────
INPUT SETTINGS REFERENCE
────────────────────────────────────────────────────────────────────────────────
── Timeframes ──
Show 1H Toggle the 1-hour row on or off.
Show 4H Toggle the 4-hour row on or off.
Show 1D Toggle the daily row on or off.
Show 1W Toggle the weekly row on or off.
── Display ──
Show Elapsed Time Shows/hides the Elapsed Days and Elapsed Time
(Col 2) columns (cols 2–3). When hidden both cells are
rendered as blank dim cells.
Show Remaining Time Shows/hides the Remaining Days and Remaining
(Col 3) Time columns (cols 4–5). When hidden both cells
are rendered as blank dim cells.
Seconds Alert Sets the threshold in whole minutes (0–5) below
Threshold (min) which the RMNG SECS column activates. At 0 the
seconds column never appears. At 5 it lights up
during the final 5 minutes of every candle.
Table Orientation Horizontal (default) — timeframes as rows.
Vertical — timeframes as columns.
Table Position Anchor point for the table on the chart.
Options: top-left, top-center, top-right,
middle-left, middle-right, bottom-left,
bottom-center, bottom-right.
Text Size Size of text in the title row and all data
cells except the remaining-time columns.
Options: tiny, small, normal, large.
Remaining Time Independent text size for cols 4, 5, and 6
Columns Text Size (remaining days, remaining time, seconds alert).
Options: tiny, small, normal, large.
Useful for making the countdown more prominent
without enlarging the rest of the table.
── Colors ──
Bullish Background Cell background for the TF label when
close >= open on that timeframe.
Bearish Background Cell background for the TF label when
close < open on that timeframe.
Elapsed % Low (0%) The gradient start color shown when a candle
has just opened (0% elapsed).
Elapsed % High (100%) The gradient end color shown when a candle is
nearly complete (100% elapsed).
Title Background Background of the merged title row.
Header Background Background of the column header row.
Text Color Default text color used across most cells.
Text Color (Elapsed) Color of elapsed header labels and elapsed cell
text values.
Text Color (Remaining) Color of remaining header labels and remaining
cell text values.
Seconds Alert Text Text color inside the RMNG SECS cell when the
alert threshold is active.
Use Gradient on OFF (default): elapsed and remaining time cells
Elapsed/Remaining use a uniform dim background regardless of
Time Cells candle progress.
ON: elapsed time cells use the same low→high
gradient as the % column. Remaining time cells
use the inverse high→low gradient. Additionally,
the empty "Days" cells on 1H, 4H, and 1D rows
are filled with the matching gradient color
(elapsed gradient for col 2, remaining gradient
for col 4) instead of staying as dark gaps.
────────────────────────────────────────────────────────────────────────────────
TIME FORMATTING REFERENCE
────────────────────────────────────────────────────────────────────────────────
1H elapsed / remaining → MM m (e.g. 43m, 17m)
4H elapsed / remaining → HH h : MM m (e.g. 00h : 43m)
1D elapsed / remaining → HH h : MM m (e.g. 14h : 52m)
1W days column → DD D (e.g. 03D, 04D)
1W time column → HH h : MM m (e.g. 14h : 22m)
Seconds alert → SS s (e.g. 47s)
All values are floored to whole minutes or seconds; no rounding up occurs
so the display never shows a value higher than the actual remaining time.
────────────────────────────────────────────────────────────────────────────────
NOTES AND TIPS
────────────────────────────────────────────────────────────────────────────────
• The table renders only on the last bar (barstate.islast). It does not
paint on historical bars and adds no visual noise to your chart history.
• timenow is used for all live calculations, so the indicator reflects
real wall-clock time even when the chart is not actively ticking (e.g.
outside regular session hours on session-limited instruments).
• The 1H row uses a simplified lookahead=off request to avoid peeking at
future hour opens. The 4H, 1D, and 1W rows use lookahead=on so that
time_close values are correctly available on the current bar.
• For instruments with irregular sessions (futures, crypto, forex) the
1D duration is derived from the actual time_close returned by the
exchange feed, so DST and session-length variations are handled
automatically.
• If all four timeframe rows are hidden the table will still render its
title and header row. Toggle at least one timeframe on for meaningful
output.
• Setting both "Show Elapsed Time" and "Show Remaining Time" to OFF will
leave only the TF label, percentage, and seconds alert columns visible,
producing a compact minimal layout useful for small screen areas.
────────────────────────────────────────────────────────────────────────────────
VERSION HISTORY
────────────────────────────────────────────────────────────────────────────────
v1.0 Initial release. 1H/4H/1D/1W timers, gradient %, bull/bear colors,
orientation toggle, seconds alert, elapsed/remaining columns.
v1.1 Added independent text size control for remaining-time columns
(cols 4, 5, 6). Gradient fill extended to empty "Days" cells on
1H/4H/1D rows when the gradient toggle is enabled, eliminating
dark gaps and keeping row backgrounds visually consistent.
────────────────────────────────────────────────────────────────────────────────
© CQuevedo345 — Mozilla Public License 2.0
================================================================================ Indicator
