SOL RSI DCA Strategy [3Commas & QuantPilot]SOL RSI DCA Strategy
🔷 What it does:
This is a long-only DCA (Dollar-Cost Averaging) strategy for SOL / USDT that opens a position only in oversold conditions and then averages down on a fixed safety-order ladder. A base order fires when 4h RSI(14) drops below the entry threshold; 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 33 (oversold).
- Five averaging orders at fixed deviations (−2%, −5%, −9.5%, −16%, −25%) with 1.8× size scaling per rung.
- Fixed take-profit (4%) 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.
🔷 What changed — two parameters, tuned with QuantPilot:
This strategy started from a baseline configuration (RSI entry below 28, 3% take-profit). Running the same script, on the same market, over the same period through the QuantPilot Pine Script optimizer, two parameters were swept and re-selected: the RSI entry threshold moved from 28 to 33, and the take-profit moved from 3% to 4%. Everything else was left untouched — same five-order ladder, same deviations, same 1.8× sizing, same fees.
- Baseline (RSI < 28, TP 3%): Net +5,178.77 USDT (+5.18%), Max Drawdown 5.53%, 77 closed trades, 67.53% profitable, Profit Factor 4.582.
- Optimized (RSI < 33, TP 4%): Net +10,399.80 USDT (+10.40%), Max Drawdown 5.32%, , , .
The result: net profit roughly 2× higher (+5.18% → +10.40%), while maximum drawdown actually eased slightly (5.53% → 5.32%). The looser RSI entry (33) lets the strategy engage the dip earlier and more often, while the wider 4% target lets each recovery run a little further before the position is banked. The published defaults use the optimized values; the baseline metrics are shown here purely so the effect of the two parameter changes is transparent.
🔷 Who is it for:
- Swing traders accumulating SOL on RSI pullbacks 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 33 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 4% 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:
- Optimizer-Tuned Parameters: The RSI threshold (33) and take-profit (4%) are not arbitrary — they are the values the QuantPilot Pine Script optimizer selected as best-performing on the historical sample, with every other parameter held constant.
- 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, driving a 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.
🔷 Considerations Before Using the Strategy:
Optimization / Overfitting Risk: The RSI threshold and take-profit were selected by sweeping those parameters over the same historical window shown in the results. Values that were best in-sample are not guaranteed to be best out-of-sample — this is the standard caveat for any optimized parameter. Treat the optimized metrics as the ceiling of what this configuration achieved historically, not as a forward expectation, and re-validate on fresh data before committing capital.
Trade Volume — Below the Statistical Floor: The baseline produced 77 closed trades over ~30 months; the optimized configuration is in the same range. This is below the ~100-trade threshold often used as a floor for statistical relevance, so treat the win rate and profit factor as indicative rather than conclusive.
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If SOL 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.
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.
Fees: The default commission (0.06% per trade) should be matched to your exchange's actual taker fees.
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:SOLUSDT.P (Perpetual) — strategy is portable to any SOL / USDT pair.
Timeframe: 4H (RSI sampled on 4h).
Test Period: January 1, 2024 — July 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 33 (optimizer-tuned from 28).
Take Profit: 4% above average entry (optimizer-tuned from 3%).
Stop Loss: None — ladder allocation is the structural risk cap.
Trailing: None.
Strategy: Long Only.
🔷 STRATEGY RESULTS (Optimized — RSI < 33, TP 4%)
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +10,399.80 USDT (+10.40%)
Max Equity Drawdown: 5,751.73 USDT (5.32%)
Total Closed Trades:
Percent Profitable:
Profit Factor:
🔷 STRATEGY RESULTS (Baseline — RSI < 28, TP 3%, for comparison)
Net Profit: +5,178.77 USDT (+5.18%)
Max Equity Drawdown: 5,748.16 USDT (5.53%)
Total Closed Trades: 77
Percent Profitable: 67.53% (52 / 77)
Profit Factor: 4.582
🔷 How to Use It:
🔸 Adjust Settings: Open the strategy inputs and confirm the RSI level (default 33), the five AO deviations and sizes, and the Take Profit (default 4%) 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 the optimized configuration reached 5.32%. Keep in mind the trade sample is below the ~100-trade floor for statistical confidence, and the profit factor reflects that small, optimized 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 33 — optimizer-tuned).
Take Profit (%): Distance above average entry where the full position closes (default 4%, optimizer-tuned).
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 TradingView 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. Estrategia

Custom RSI Indicator Custom RSI Indicator
Overview
The Custom RSI Indicator v6 is a clean and easy-to-use momentum indicator built on the Relative Strength Index (RSI). It helps traders identify potential overbought and oversold market conditions while providing visual buy and sell signals based on RSI crossovers.
This indicator is designed for traders who want a simple, non-repainting RSI tool that can be used across multiple markets and timeframes.
Features
- Adjustable RSI length.
- Custom price source selection.
- Clearly marked Overbought (70), Oversold (30), and Midline (50) levels.
- Visual BUY and SELL signal markers.
- Background highlighting during overbought and oversold conditions.
- Alert conditions for TradingView notifications.
How the Indicator Works
The indicator calculates the Relative Strength Index (RSI), which measures the speed and strength of recent price movements.
- RSI above 70 indicates that price has entered an overbought zone, where bullish momentum may be becoming extended.
- RSI below 30 indicates that price has entered an oversold zone, where bearish momentum may be weakening.
- RSI around 50 represents a neutral momentum area.
The indicator also generates:
- BUY Signal: When RSI crosses above the 30 level, suggesting momentum is strengthening after an oversold condition.
- SELL Signal: When RSI crosses below the 70 level, suggesting momentum is weakening after an overbought condition.
These signals are momentum-based and should always be interpreted within the context of the overall market trend.
How to Use
1. Add the indicator to your TradingView chart.
2. Choose your preferred RSI length (14 is the default and widely used).
3. Watch the RSI movement relative to the key levels:
- Above 70
- Below 30
- Around 50
4. Use the generated BUY and SELL markers as potential trade opportunities.
5. Enable TradingView alerts if you want to receive notifications when new signals appear.
Trading Ideas
This indicator can be used in several ways:
Trend Trading
- Look for BUY signals when the overall market trend is bullish.
- Look for SELL signals when the overall market trend is bearish.
Momentum Reversals
When RSI moves into an extreme zone and then exits it, momentum may be shifting. Waiting for confirmation from price action can help filter weaker setups.
Range Markets
During sideways markets, RSI often reacts well between the overbought and oversold levels, making it useful for identifying potential swing opportunities.
Best Practices
- Combine RSI with market structure, support and resistance, or trend analysis.
- Avoid relying on RSI signals alone during highly volatile conditions.
- Consider waiting for candle confirmation before entering a trade.
- Always apply proper risk management and position sizing.
Timeframes
This indicator can be used on any timeframe, including:
- 1 Minute
- 5 Minutes
- 15 Minutes
- 1 Hour
- 4 Hours
- Daily
- Weekly
Different timeframes may produce different signal frequencies and should be selected according to your trading style. Indicador

RSI Divergence Indicator with Custom LevelsHere's a publish-ready description you can paste into TradingView's publishing form:
---
**RSI Divergence Indicator with Custom Levels**
This indicator combines a standard RSI oscillator with automatic divergence detection, plus fully customizable horizontal reference lines.
**Core Features:**
- **RSI Oscillator** — configurable period and source, plotted with standard 30/50/70 reference lines and an overbought/oversold shaded zone.
- **Automatic Divergence Detection** — identifies and labels four types of divergence directly on the RSI:
- Regular Bullish (price makes a lower low, RSI makes a higher low)
- Hidden Bullish (price makes a higher low, RSI makes a lower low)
- Regular Bearish (price makes a higher high, RSI makes a lower high)
- Hidden Bearish (price makes a lower high, RSI makes a higher high)
- **Built-in Alerts** — alert conditions are included for all four divergence types, so you can get notified the moment a new divergence forms.
**New: Custom Horizontal Lines**
Beyond the default 30/50/70 levels, you can now add up to 10 additional horizontal reference lines anywhere on the RSI scale — useful for marking your own thresholds, historical pivot levels, or extreme readings. Each line is fully independent and configurable:
- Enable/disable individually
- Set the exact level
- Choose the color and opacity
- Choose the line style (solid, dashed, dotted)
- Set the line width
This makes it easy to tailor the indicator to your own trading strategy without cluttering the chart with lines you don't need.
**How to Use:**
Add the indicator, then open its settings to adjust RSI period/source, toggle divergence types, and turn on any custom lines you want under "Custom Line 1" through "Custom Line 10."
Indicador

RSI Candle ColorerWHAT IT DOES
Paints the candle itself when a classic reversal pattern fires with confirmation. Seven patterns are watched — bullish and bearish engulfing, hammer, shooting star, piercing line, dark cloud cover, harami, and harami cross — and a raw pattern alone is never enough. It must also agree with momentum (RSI position), participation (volume against its own average), and location (price versus a short trend EMA). All three must line up, or the candle stays unpainted. Most candles stay unpainted. That is the point.
HOW IT WORKS
- Bullish patterns only qualify when RSI is at or below your bullish threshold (default 40), volume is at least the 20-bar average, and the prior bar closed below the trend EMA — you are buying a dip, not chasing a top.
- Bearish patterns mirror it: RSI at or above 60, real volume, prior bar above the EMA.
- A confirmed pattern paints the bar green or red, prints a small label naming the pattern, and can fire an alert.
- Signals confirm on bar close by default — no repaint. A minimum-spacing setting stops clusters from stacking labels on top of each other.
HOW TO USE IT
Works on any symbol and any timeframe. Treat it as a bias and timing lens: when a painted candle appears at a level you already care about, you have pattern, momentum, and volume agreeing at the same moment. It pairs naturally with support and resistance or higher-timeframe structure.
WHAT IT CAN'T DO
It reads candles and momentum, not context. It does not know news is coming, and it will occasionally paint a perfect-looking candle right before the market disagrees. It is a filter for your eyes, not an autopilot.
SETTINGS
Pattern toggles for all seven, EMA length (9), RSI length (14) with bull/bear thresholds (40/60), volume lookback (20) and multiplier (1.0), minimum bars between signals (5), confirm-on-close (on).
Open source. Free. If it helps you read the tape faster, that's the job. Indicador

EGADE Research-Based RSI Threshold ConfigurationEGADE Research-Based RSI Threshold Configuration is an empirical RSI decision-support indicator based on the findings of research by Hatem Mabrouk , Federico Trigos , and Francisco Valderrey , Tecnologico de Monterrey, EGADE Business School, Mexico
The underlying study systematically evaluated nine RSI threshold configurations across nine major cryptocurrencies and the S&P 500 using weekly RSI(14) data. The findings challenge the conventional assumption that the standard 30/70 configuration is universally optimal and identify asset-specific dominant threshold configurations based on win rate, geometric weekly return, and average holding period.
This indicator operationalizes those empirical findings directly within TradingView. For assets included in the study, it automatically displays the research-based RSI threshold configuration identified by the empirical analysis.
The indicator provides three display modes:
• Research-Based: Displays the empirically identified threshold configuration for the selected asset.
• Conventional 30/70: Displays the traditional RSI 30/70 configuration.
• Compare Both: Displays the research-based and conventional configurations simultaneously for direct comparison.
The indicator uses weekly RSI(14) regardless of the chart timeframe and provides visual entry and exit zones, threshold-entry markers, alerts, and an information dashboard.
Assets currently supported by the empirical research: BTC, ETH, ADA, AVAX, BNB, DOGE, SOL, TRX, XRP, and the S&P 500.
Disclaimer: The findings and information presented through this indicator are intended exclusively for academic, research, educational, and decision-support purposes. Nothing contained in the underlying study or this indicator constitutes financial or investment advice, an investment recommendation, or a solicitation to buy or sell any financial instrument. Historical empirical performance does not guarantee future results. Users should conduct their own analysis and exercise independent judgment when making financial or investment decisions. Indicador

Enhanced RSIWhy this Enhanced RSI is better than the classic RSI
The classic RSI is a powerful momentum oscillator, but it has some limitations in real trading. This Enhanced RSI improves on the standard version by adding several useful visual and analytical features.
1. Momentum Fill (The Biggest Improvement)
The classic RSI only shows one line, so you have to mentally compare its slope and position. This Enhanced RSI plots both the RSI and its moving average (SMA or EMA), then fills the space between them with color. Green fill means the RSI is above its MA (bullish momentum is strong), while red fill means the RSI is below its MA (bearish momentum is strong). This gives you an instant visual read of momentum strength and direction.
2. RSI + Signal Line (Like a Mini MACD for RSI)
The moving average of the RSI acts as a signal line. Crossovers between the RSI and its MA often give cleaner and earlier signals than just waiting for the RSI to cross 50 or the classic 30/70 levels. It also helps filter out some of the noise and whipsaws that the raw RSI produces.
3. Better Overbought / Oversold Zones
The classic RSI uses thin horizontal lines at 70 and 30. This Enhanced version draws filled bands with adjustable width (default width = 10). This shows you how deeply price has moved into overbought or oversold territory, not just whether it crossed a line. It gives a better sense of exhaustion strength.
4. Much Better Visual Clarity
The Enhanced RSI offers significantly better visual clarity compared to the classic version. The colored momentum fill between the RSI and its moving average makes it very easy to instantly see whether momentum is bullish or bearish. The filled OB/OS bands are more informative than simple thin lines. Overall, the combination of the RSI line, its MA, the dynamic fill, and the visible zones allows traders to read the indicator much faster and with less effort than the standard RSI.
5. Practical Trading Advantages
Divergences are easier to spot because you have two lines instead of one. The colored fill helps you quickly see when momentum is accelerating or fading. It works well for both mean-reversion strategies (fading extremes) and trend-following (following strong momentum). Overall, it reduces noise compared to the raw RSI and provides more actionable information at a glance.
Summary – When to use which
Use the Enhanced RSI when you want faster visual interpretation of momentum, cleaner signals with fewer whipsaws, and better visualization of overbought/oversold strength. The classic RSI can still be useful if you prefer a simpler and more minimal chart. For most discretionary traders and those who like clear visual feedback, the Enhanced version is generally superior.
Bottom line
This Enhanced RSI doesn’t replace the classic RSI — it enhances it. By adding a signal line, a visual momentum fill, and better zone visualization, it allows traders to read momentum and potential reversals faster and with greater confidence. Indicador

RSI Multi Levels Pro (JPT)🔹 OVERVIEW
RSI Multi Levels Pro (JPT) is an enhanced Relative Strength Index (RSI) indicator that expands the traditional 70/30 approach by introducing multiple configurable RSI levels to help traders observe momentum shifts and potential reversal areas.
Instead of relying on a single overbought or oversold threshold, the indicator displays several RSI zones, allowing users to monitor how momentum develops as price moves through different strength levels.
The indicator also highlights potential exhaustion areas using optional visual markers when RSI reaches user-defined extreme level
🔹 HOW IT WORKS
The indicator calculates the standard RSI using a configurable period and plots it against multiple horizontal reference levels.
As RSI moves through these levels, traders can observe changes in market momentum and identify areas where price may begin slowing, reversing, or continuing its current move.
Optional markers are displayed when RSI reaches predefined upper or lower threshold values, helping users quickly identify extreme momentum conditions.
🔹 MULTI-LEVEL RSI STRUCTURE
Unlike a traditional RSI with only two reference levels, RSI ML Pro provides multiple zones including:
// RSI Levels
lvl90 = input.int(90, "Level 90")
lvl80 = input.int(80, "Level 80")
lvl70 = input.int(70, "Level 70")
lvl60 = input.int(60, "Level 60")
lvl50 = input.int(50, "Level 50")
lvl40 = input.int(40, "Level 40")
lvl30 = input.int(30, "Level 30")
lvl20 = input.int(20, "Level 20")
lvl10 = input.int(10, "Level 10")
These levels can help distinguish between moderate momentum and more extreme market conditions.
🔹 VISUAL FEATURES
• Standard RSI Line
• Configurable Multi-Level Reference Lines
• Upper Momentum Markers
• Lower Momentum Markers
• Customizable Colors
• Adjustable RSI Length
• Clean and Lightweight Display
• Compatible with Dark and Light Chart Themes
🔹 INDICATOR INPUTS
The indicator includes several customization options:
RSI Length
Adjust the RSI calculation period.
Reference Levels
Configure upper and lower RSI levels to match your trading style.
Signal Markers
Enable or disable momentum markers.
Colors
Customize the appearance of the RSI line, levels, and markers.
🔹 HOW TO USE
A common workflow is:
Observe the overall RSI trend.
Monitor how RSI reacts around the configured reference levels.
Watch for momentum markers when RSI reaches extreme values.
Combine RSI observations with your own price action or market structure analysis before making trading decisions.
🔹 SUITABLE MARKETS
RSI ML Pro can be used on:
• Forex
• Cryptocurrency
• Stocks
• Indices
• Commodities
• Gold
The indicator is designed to work across multiple timeframes depending on the user's trading approach.
🔹 COMBINING WITH OTHER TOOLS
Many traders choose to combine RSI ML Pro with other forms of technical analysis such as:
• Trend Analysis
• Support and Resistance
• Moving Averages
• Market Structure
• Volume Analysis
• Supply and Demand Zones
Using multiple forms of analysis may provide additional market context.
🔹 NOTES
RSI measures momentum and should not be interpreted as a standalone buy or sell signal. Strong trends can remain in higher or lower RSI regions for extended periods.
This indicator is intended as a technical analysis tool and should be used alongside appropriate risk management and independent market analysis. Indicador

Indicador

BTC DCA Strategy [3Commas & QuantPilot]BTC Smart DCA Strategy
🔷 What it does:
This is a long-only DCA (Dollar-Cost Averaging) strategy for BTC / USDT that opens a position only in oversold conditions and then averages down on a fixed safety-order ladder. A base order fires when 4h RSI(14) drops below the entry threshold; 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 38 (oversold).
- Five averaging orders at fixed deviations (−2%, −5%, −9.5%, −16%, −25%) with 1.8× size scaling per rung.
- Fixed take-profit (5.5%) 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.
🔷 What changed — two parameters, tuned with QuantPilot:
This strategy started from a baseline configuration (RSI entry below 28, 3% take-profit). Running the same script, on the same market, over the same period through the QuantPilot Pine Script optimizer, two parameters were swept and re-selected: the RSI entry threshold moved from 28 to 38, and the take-profit moved from 3% to 5.5%. Everything else was left untouched — same five-order ladder, same deviations, same 1.8× sizing, same fees.
- Baseline (RSI < 28, TP 3%): Net +3,078.29 USDT (+3.08%), Max Drawdown 3.79%, 62 closed trades, 70.97% profitable, Profit Factor 4.028.
- Optimized (RSI < 38, TP 5.5%): Net +9,250.25 USDT (+9.25%), Max Drawdown 3.67%, 93 closed trades, 76.34% profitable, Profit Factor 10.454.
The result: net profit roughly 3× higher (+3.08% → +9.25%), profit factor up from 4.0 to 10.5, win rate up from 71% to 76% — all while maximum drawdown stayed essentially flat (3.79% → 3.67%). The looser RSI entry (38) lets the strategy engage the dip earlier and more often, while the wider 5.5% target lets each recovery run further before the position is banked. The published defaults use the optimized values; the baseline metrics are shown here purely so the effect of the two parameter changes is transparent.
🔷 Who is it for:
- Swing traders accumulating BTC on RSI pullbacks 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 38 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 5.5% 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:
- Optimizer-Tuned Parameters: The RSI threshold (38) and take-profit (5.5%) are not arbitrary — they are the values the QuantPilot Pine Script optimizer selected as best-performing on the historical sample, with every other parameter held constant.
- 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, driving a 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.
🔷 Considerations Before Using the Strategy:
Optimization / Overfitting Risk: The RSI threshold and take-profit were selected by sweeping those parameters over the same historical window shown in the results. Values that were best in-sample are not guaranteed to be best out-of-sample — this is the standard caveat for any optimized parameter. Treat the optimized metrics as the ceiling of what this configuration achieved historically, not as a forward expectation, and re-validate on fresh data before committing capital.
Trade Volume — Near the Statistical Floor: The optimized configuration produced 93 closed trades over ~30 months (62 on the baseline). This is approaching but still 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.
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If BTC trends hard below the −25% AO5 level without recovering to take-profit, the position sits fully loaded with no further adds and no stop — unrealized loss can grow until price reverts.
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.
Fees: The default commission (0.06% per trade) should be matched to your exchange's actual taker fees.
Demo Testing: Always demo-test before going live. Past results do not guarantee future performance, particularly for martingale-style averaging strategies whose risk profile is dominated by rare deep drawdowns.
🔷 STRATEGY PROPERTIES
Symbol: BYBIT:BTCUSDT.P (Perpetual) — strategy is portable to any BTC / USDT pair.
Timeframe: 4H (RSI sampled on 4h).
Test Period: January 1, 2024 — July 17, 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 38 (optimizer-tuned from 28).
Take Profit: 5.5% above average entry (optimizer-tuned from 3%).
Stop Loss: None — ladder allocation is the structural risk cap.
Trailing: None.
Strategy: Long Only.
🔷 STRATEGY RESULTS (Optimized — RSI < 38, TP 5.5%)
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +9,250.25 USDT (+9.25%)
Max Equity Drawdown: 3,980.36 USDT (3.67%)
Total Closed Trades: 93
Percent Profitable: 76.34% (71 / 93)
Profit Factor: 10.454
🔷 STRATEGY RESULTS (Baseline — RSI < 28, TP 3%, for comparison)
Net Profit: +3,078.29 USDT (+3.08%)
Max Equity Drawdown: 3,852.12 USDT (3.79%)
Total Closed Trades: 62
Percent Profitable: 70.97% (44 / 62)
Profit Factor: 4.028
🔷 How to Use It:
🔸 Adjust Settings: Open the strategy inputs and confirm the RSI level (default 38), the five AO deviations and sizes, and the Take Profit (default 6%) 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 the optimized configuration reached 3.67%. Keep in mind the 93-trade sample is just below the ~100-trade floor for statistical confidence, and the high profit factor reflects that small, optimized 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 38 — optimizer-tuned).
Take Profit (%): Distance above average entry where the full position closes (default 5.5%, optimizer-tuned).
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 TradingView 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. Estrategia

Indicador

Indicador

INJ DCA Long Strategy [3Commas & QuantPilot]INJ DCA Long Strategy
🔷 What it does:
This is a long-only DCA (Dollar-Cost Averaging) strategy for INJ / 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 (9%) 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.
🔷 The one change that mattered — Take Profit tuning:
This strategy started from a baseline configuration with a 3% fixed take-profit. Running the same script, on the same market, over the same period through the QuantPilot Pine Script optimizer, the take-profit parameter was swept and the best-performing value landed at 9%. Nothing else was touched — same RSI entry, same five-order ladder, same deviations, same 1.8× sizing, same fees. Only the Take Profit input changed from 3% to 9%.
- Baseline (Take Profit 3%): Net +6,888.76 USDT (+6.89%), Max Drawdown 4.39%, 84 closed trades, 71.43% profitable, Profit Factor 4.925.
- Optimized (Take Profit 9%): Net +15,830.72 USDT (+15.83%), Max Drawdown 5.65%, 90 closed trades, 82.22% profitable, Profit Factor 17.886.
Widening the target lets each recovery run further before the position is banked, capturing the fuller mean-reversion bounce instead of exiting on the first small pop. The trade-off is a modestly higher drawdown (4.39% → 5.65%) and longer average hold time. The published defaults use the optimized 9% value; the baseline metrics are shown here purely so the effect of the single parameter change is transparent.
🔷 Who is it for:
- Swing traders accumulating INJ 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 9% 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:
- Optimizer-Tuned Exit: The 9% take-profit is not an arbitrary round number — it is the value the QuantPilot Pine Script optimizer selected as best-performing on the historical sample, with every other parameter held constant.
- 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, driving a DCA Bot end-to-end with no glue layer.
🔷 Considerations Before Using the Strategy:
Optimization / Overfitting Risk: The 9% take-profit was selected by sweeping the parameter over the same historical window shown in the results. A value that was best in-sample is not guaranteed to be best out-of-sample — this is the standard caveat for any optimized parameter. Treat the optimized metrics as the ceiling of what this configuration achieved historically, not as a forward expectation, and re-validate on fresh data before committing capital.
Trade Volume — Below the Statistical Floor: The optimized configuration produced 90 closed trades over ~30 months (84 on the baseline). Both are below the ~100-trade threshold often used as a floor for statistical relevance, so treat the win rate and the high profit factor as indicative rather than conclusive. The strict RSI < 28 filter is what keeps the trade count low.
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If INJ 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. A wider 9% target also means positions are held longer, so the grid can sit loaded through deeper dips before the exit is reached.
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.
Fees: The default commission (0.06% per trade) should be matched to your exchange's actual taker fees.
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:INJUSDT.P (Perpetual) — strategy is portable to any INJ / USDT pair.
Timeframe: 4H (RSI sampled on 4h).
Test Period: January 1, 2024 — July 16, 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: 9% above average entry (optimizer-tuned from a 3% baseline).
Stop Loss: None — ladder allocation is the structural risk cap.
Trailing: None.
Strategy: Long Only.
🔷 STRATEGY RESULTS (Optimized — Take Profit 9%)
⚠️ Remember, past results do not guarantee future performance.
Net Profit: +15,830.72 USDT (+15.83%)
Max Equity Drawdown: 6,426.47 USDT (5.65%)
Total Closed Trades: 90
Percent Profitable: 82.22% (74 / 90)
Profit Factor: 17.886
🔷 STRATEGY RESULTS (Baseline — Take Profit 3%, for comparison)
Net Profit: +6,888.76 USDT (+6.89%)
Max Equity Drawdown: 4,429.13 USDT (4.39%)
Total Closed Trades: 84
Percent Profitable: 71.43% (60 / 84)
Profit Factor: 4.925
🔷 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 (default 9%) 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 the optimized configuration reached 5.65%. Keep in mind the 90-trade sample is below the ~100-trade floor for statistical confidence, and the high profit factor reflects that small, optimized 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 (default 9%, optimizer-tuned).
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 TradingView 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. Estrategia

Multi-Oscillator Divergence Scanner [Quantum Algo]Multi-Oscillator Divergence Scanner
====================================================
🔶 OVERVIEW
Multi-Oscillator Divergence Scanner is a confluence-based divergence indicator that scans up to seven classic oscillators simultaneously — Relative Strength Index, Moving Average Convergence Divergence, Stochastic Oscillator, Commodity Channel Index, On Balance Volume, Money Flow Index, and Momentum — and displays the result on two synchronized canvases at once. Divergence lines, graded labels, and reaction zones are drawn directly on the price chart, while a dedicated pane below plots a Composite Oscillator built from every enabled engine, with the same divergence lines mirrored onto the composite itself. You see both slopes of every divergence — price disagreeing with momentum — in one glance.
The problem this script solves is selective divergence trading. Any single oscillator produces frequent divergences, and most of them fail. Requiring multiple mathematically independent engines — momentum-based, volume-based, and volatility-normalized — to diverge at the same confirmed swing filters the noise down to setups where disagreement between price and participation is broad, not incidental.
🔶 WHAT IS A DIVERGENCE?
A divergence occurs when price prints a new extreme but an oscillator refuses to confirm it. A regular bullish divergence forms when price makes a lower low while the oscillator makes a higher low — a classic reversal condition. A regular bearish divergence forms when price makes a higher high while the oscillator makes a lower high. Hidden divergences are the continuation counterparts: price makes a higher low while the oscillator makes a lower low (hidden bullish), or price makes a lower high while the oscillator makes a higher high (hidden bearish). This scanner detects all four types on confirmed swing pivots.
🔶 WHAT IS THE COMPOSITE OSCILLATOR?
The Composite Oscillator is the consensus reading of every engine you enable. Bounded oscillators (Relative Strength Index, Stochastic, Money Flow Index) contribute their native zero-to-one-hundred values; unbounded engines (Moving Average Convergence Divergence histogram, On Balance Volume, Momentum) are range-normalized over a configurable lookback; the Commodity Channel Index is rescaled onto the same axis. The average of all enabled engines plots as a single gradient line with overbought and oversold guides, a midline fill, and divergence lines drawn directly on it — so the pane shows aggregate momentum from the same engines that vote on every signal, not a separate calculation.
🔶 WHY THIS SCRIPT IS ORIGINAL
1. True multi-engine confluence. Divergences are not detected on one oscillator and decorated with others. All seven engines are evaluated independently at every confirmed pivot, and a signal only exists when the minimum confluence count you set is reached.
2. Dual-canvas mirroring. Every qualified divergence is drawn twice: on price, and on the Composite Oscillator in the pane, connected at the same two pivots. Both slopes of the disagreement are visible simultaneously — the visual proof that defines a divergence.
3. Consensus composite pane. The pane line is not one more oscillator; it is the averaged, normalized voice of the exact engines doing the scanning, colored by a gradient between the oversold and overbought guides.
4. Full transparency on every label. Each signal prints its strength as a diamond meter and lists the exact oscillators that diverged (for example: RSI · OBV · MFI). You always know why a signal exists — nothing is a black box.
5. Strength-scaled visuals. Divergence lines thicken with confluence on both canvases, and signals reaching the Strong threshold upgrade to the accent color, so chart hierarchy communicates quality instantly.
6. Reaction zones with a life cycle. Every regular divergence projects a volatility-sized zone around its pivot (measured in Average True Range). Zones gray out automatically the moment price invalidates them, so the chart always distinguishes live zones from dead ones.
7. Divergence pressure gauge. A decaying pressure model accumulates bullish and bearish divergence weight over time, giving a one-glance read on which side has been stacking disagreement with price.
🔶 HOW IT WORKS
Pivot scanning: Swing highs and swing lows are confirmed with a symmetric pivot lookback. All divergence checks are evaluated on closed bars at pivot confirmation, so historical signals do not repaint. Confirmation lag equals the right-side pivot length by design.
Confluence evaluation: At each confirmed pivot, every enabled oscillator's value at that pivot is compared against its value at the previous same-side pivot. The four divergence types are tested independently per oscillator, and contributions are counted.
Signal grading: Signals meeting the Minimum Oscillator Confluence print with strength diamonds (one per contributing oscillator). Signals reaching the Strong Signal Threshold upgrade to the accent color and thicker geometry on both the price chart and the composite pane.
Composite rendering: The pane plots the consensus line with a gradient fill to the midline, dashed overbought and oversold guides, tinted extreme bands, triangle marks at divergence bars, and the mirrored divergence lines.
Reaction zones: Each regular divergence projects a box around its pivot sized by Average True Range, extended a configurable number of bars. A bullish zone grays out when price closes below it; a bearish zone grays out when price closes above it.
Dashboard: A fully themeable panel on the price chart shows the last signal, a live divergence pressure meter, and one row per engine with its live value — color-coded for overbought, oversold, or directional state — plus each engine's most recent divergence side. Text size (four steps), position, and every color (title band, background, frame, grid, header, body, muted) are adjustable.
Chart hygiene: The number of divergences kept is capped by input, on both canvases. Older lines, labels, and zones are deleted automatically, keeping the chart readable and the auto-scale anchored to current price.
🔶 HOW TO USE IT
1. Works on any market — cryptocurrency, forex, gold, indices, stocks, futures — and any timeframe. Higher timeframes produce fewer, larger-structure signals.
2. Start with Minimum Oscillator Confluence at 2 and the Strong threshold at 4. Raise the minimum to 3 for a strict, low-frequency reversal tool; lower it to 1 to study single-oscillator behavior.
3. Read the pane and the chart together: a valid signal shows price sloping one way and the composite sloping the other, connected at the same pivots.
4. Regular divergences are reversal-oriented: treat them as exhaustion evidence at swing extremes, strongest when the composite is also inside an overbought or oversold band.
5. Hidden divergences are continuation-oriented: treat them as trend re-entry evidence during pullbacks, and do not read them like reversal signals.
6. Use the reaction zone as the decision area: a live zone holding on retest supports the signal; a grayed zone means the divergence failed.
7. The pressure meter is context, not a trigger — persistent one-sided pressure alongside fresh strong signals is the highest-quality condition.
🔶 SETTINGS
- Pivot Left / Right Length — swing size; larger values scan bigger structures.
- Independent toggles and lengths for all seven oscillator engines.
- Composite pane: normalization lookback, overbought and oversold levels, pane marks, and mirrored divergence lines toggle.
- Regular and hidden divergence toggles, minimum confluence, strong threshold.
- Reaction zone height (Average True Range ratio) and extension.
- Divergences To Keep — caps historical drawings on both canvases for chart cleanliness and stable auto-scale.
- Dashboard with adjustable text size, position, live oscillator values, and full color theming.
- Full color customization for all chart drawings and pivot markers.
🔶 ALERTS
- Bullish Divergence / Bearish Divergence — a regular divergence met the confluence minimum.
- Hidden Bullish Divergence / Hidden Bearish Divergence — a continuation divergence met the minimum.
- Strong Divergence — a regular divergence reached the strong threshold.
🔶 FREQUENTLY ASKED QUESTIONS
Does the indicator repaint? No. Divergences are evaluated only on confirmed pivots at bar close. The trade-off is intentional confirmation lag equal to the right-side pivot length.
Why does a pane divergence line sometimes start slightly off the composite's visual peak? Divergence is measured at price structure points. The line connects the composite's values at the two confirmed price pivots, which is the correct comparison even when the composite made its own extreme a bar or two away.
Why do some obvious divergences not print? Either the confluence minimum was not reached, the oscillator involved is disabled, or the swing did not confirm as a pivot under the current lengths.
Which oscillators should I enable? The default set mixes momentum and volume perspectives, which is the point of confluence: independent evidence, not seven copies of the same math.
Is a Strong signal a guaranteed reversal? No. Strength counts agreement between engines; it is a transparency measure, not a probability of profit.
🔶 CREDITS
This script builds its scanning and composite engine on classic, public-domain oscillators, and gratefully credits their creators: the Relative Strength Index by J. Welles Wilder Jr. (1978), Moving Average Convergence Divergence by Gerald Appel, the Stochastic Oscillator popularized by George C. Lane, the Commodity Channel Index by Donald Lambert (1980), On Balance Volume by Joseph Granville (1963), and the Money Flow Index by Gene Quong and Avrum Soudack. All oscillator calculations use standard built-in formulas. Drawing divergence lines on an oscillator is a long-established charting convention popularized by many community authors, acknowledged here as shared prior art. The multi-engine confluence scanner, the consensus Composite Oscillator, the dual-canvas mirroring, transparency labeling, strength grading, reaction zone life cycle, pressure model, and all code in this script are original work — no third-party or open-source script code was reused.
🔶 LIMITATIONS
Divergence can persist or fail entirely during strong trends; regular divergences against a powerful trend are the weakest application. Volume-based engines (On Balance Volume, Money Flow Index) are less meaningful on symbols with unreliable volume reporting. The composite's normalized components depend on the normalization lookback. Pivot confirmation introduces intentional delay. No indicator replaces independent analysis.
🔶 DISCLAIMER
This script is provided strictly for educational and informational purposes. It is not financial advice, an investment recommendation, or a solicitation to buy or sell any financial instrument. Past behavior of any signal does not guarantee future results. Trading involves substantial risk. Always do your own research and manage risk independently.
Indicador

True RSITrue RSI | MisinkoMaster
The True RSI is a sophisticated reimagining of classical momentum. While the standard Relative Strength Index has served as a cornerstone of technical analysis for decades, it possesses a fundamental limitation: it treats all price movements equally, regardless of the time elapsed since the market made its last major peak or trough. The True RSI solves this structural blind spot by merging price magnitude with temporal trend strength, weighting gains and losses according to their cyclical maturity.
By dynamically scaling price changes against the time-distance of local extremes, this indicator filters out lateral market noise, reduces false overbought and oversold readings during strong trends, and delivers highly responsive execution signals.
How It Works (The Core Architecture)
Instead of relying solely on arithmetic averages of upward and downward price closes, True RSI filters raw market data through a multi-dimensional momentum matrix:
Temporal Trend Weighting: The algorithm continuously tracks how recently the market has formed local highs and lows. Gains are mathematically weighted against the strength of the upward cycle, while losses are weighted against the strength of the downward cycle.
Cycle-Weighted Ratio: The accumulated, time-weighted gains and losses are calculated over your lookback period to establish a true relative strength ratio. If gains occur during an actively surging upward cycle, they are heavily amplified; if they occur during a dying trend, they are heavily discounted.
Smoothing and Normalization: This ratio is translated into a normalized scale bounded between 0 and 100, providing an incredibly smooth yet responsive oscillator curve alongside a secondary momentum velocity histogram.
Key Features
Time-Weighted Velocity: True RSI prevents premature exhaustion signals during strong, healthy trends because it understands the cyclical age of the current market move.
On-Chart Candle Morphing: The system automatically tracks the oscillator state and alters the colors of your main price bars to keep you visually aligned with the macro trend.
Overlay Execution Labels: Prints pristine Long and Short labels directly on your price pane the moment the underlying structural momentum shifts past your designated thresholds.
Internal Divergence Histogram: Built directly behind the main oscillator is a custom acceleration histogram that monitors the rate of change of the index, pinpointing hidden momentum shifts before they reflect in the price.
Input Parameters & Optimization Guide
Lookback Period: Controls the baseline window for both the cycle-strength calculations and the price change evaluations. A default of 21 bars balances macro trend stability with immediate short-term utility.
Long / Short Thresholds: The structural boundaries that dictate trend shifts. By default, crossing above 50 signals a bullish regime, while dropping below 50 initiates a bearish regime.
Overbought / Oversold Thresholds: Tailored extremes designed to isolate true premium and discount zones. The default 80 and 20 boundaries act as high-probability mean-reversion targets.
Trading Strategies & Execution
Trend Regime Shift
When momentum builds structural backing, the indicator updates its trend state:
A crossing of the True RSI above the Long Threshold triggers a green Long label on the chart, changing candle colors to vibrant green.
A crossing of the True RSI below the Short Threshold triggers a pink Short label, shifting candle colors to pink.
Exhaustion Reversals
Because price movement is weighted against cycle time, entering the overbought (80) or oversold (20) zones represents a market that is genuinely overstretched both in terms of price velocity and time. Reversals from these zones carry high statistical significance for counter-trend scalps or trailing-stop targets.
Acceleration Divergences
Watch the central histogram centered around the 50 line. When the price is grinding flat but the histogram starts to rise or fall aggressively, it shows that the internal speed of the True RSI is accelerating. This hidden momentum often foreshadows explosive breakout expansions.
Disclaimer: Trading financial markets involves high risk. This technical script is designed as an informational analytical tool to support your rule-based mechanical execution system and does not constitute financial advice. Indicador

Indicador

SOL RSI Strategy [3Commas]SOL RSI Long Strategy
🔷 What it does:
This is a long-only DCA (Dollar-Cost Averaging) strategy for SOL / 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 SOL on deep RSI flushes rather than chasing momentum.
- Bot operators who want a chart-driven signal source with base / safety-order / close webhook JSON ready to drive a DCA Bot.
- Traders comfortable with martingale-style averaging who size their capital to the worst-case ladder fill.
- Range / mean-reversion traders who prefer mechanical oversold entries over discretionary timing.
🔷 How does it work:
Entry (Base Order): On each closed 4h bar the strategy reads RSI(14). When RSI falls below 28 and there is no open position, it opens the base order at market (or limit, optionally) and dispatches the entry webhook.
Averaging Orders: Once in a position, the strategy watches price relative to the original base entry. The five safety orders are armed at fixed deviations from that base entry — not cumulatively — at −2%, −5%, −9.5%, −16%, and −25%. As each threshold is crossed on bar close, the corresponding averaging order fires. Order sizes scale 1.8× per rung ($900 → $1,620 → $2,916 → $5,249 → $9,448 from a $500 base), pulling the blended average entry down toward the latest fill.
Exit (Take Profit): While in a position, the strategy computes a take-profit price a fixed percentage above the current average entry. When price closes at or above that level, the entire position is closed at market and the close webhook fires. There is no trailing and no stop loss.
Capital Bounds: Total deployed capital cannot exceed the base order plus the five safety orders. Once all five averaging orders are filled, no further adds occur — the position simply waits for the take-profit. This ladder cap is the strategy's primary risk control.
🔷 Why it's unique:
- Deep-Oversold-Only Entries: A single, strict RSI(14) < 28 filter on 4h keeps the strategy out of the market in normal conditions and only commits capital after a meaningful flush.
- Fixed-Deviation Martingale Ladder: Safety orders are placed at fixed percentages from the base entry with deliberate 1.8× size scaling, so each rung has progressively more influence on the average — a transparent, fully-specified averaging schedule rather than an opaque adaptive grid.
- Full Webhook Chain: Base order, each safety order, and the close all emit dedicated JSON payloads. The strategy can drive a 3Commas DCA Bot end-to-end with no glue layer.
- On-Chart Transparency: The AO ladder, average entry, and take-profit target are plotted live, and the status table reports RSI, AOs filled, base/average entry, TP target, and max deployable capital — so the position state is always visible.
🔷 Considerations Before Using the Strategy:
Trade Volume — Below the Statistical Floor: The reference backtest produced 77 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 profit factor as indicative rather than conclusive. The strict RSI < 28 filter is what keeps the trade count low.
Martingale Tail Risk: Order sizes scale 1.8× per rung, so the deepest fills are by far the largest. If SOL trends hard below the −25% AO5 level without recovering to take-profit, the position sits fully loaded with no further adds and no stop — unrealized loss can grow until price reverts. The 1.8× scaling amplifies both the recovery speed and the downside.
No Stop Loss Justification: There is no exit on adverse moves. Per-order risk is bounded by the fixed ladder allocation; aggregate exposure is capped at base + five AOs (≈ $20,633 on the default $100k account, ~20.6% of equity). Size the base/AO inputs down to match the worst-case exposure you are willing to hold.
Capital Deployment & Drawdown: The reference backtest reached a 5.53% maximum equity drawdown at default sizing — but that depends on the configured ladder fitting within SOL'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:SOLUSDT.P (Perpetual) — strategy is portable to any SOL / USDT pair.
Timeframe: 4H (RSI sampled on 4h).
Test Period: January 1, 2024 — July 13, 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: +5,178.77 USDT (+5.18%)
Max Equity Drawdown: 5,748.16 USDT (5.53%)
Total Closed Trades: 77
Percent Profitable: 67.53% (52 / 77)
Profit Factor: 4.582
🔷 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 5.53%. Keep in mind the 77-trade sample is below the ~100-trade floor for statistical confidence.
🔸 Create alerts to trigger the DCA Bot: Add one alert on the strategy using "Any alert() function call". Paste your DCA Bot's webhook URL into the alert's Webhook field, and fill the Bot ID, Email Token, and Pair inputs on the script. The base order, each safety order, and the close will each emit a dedicated JSON payload.
🔷 INDICATOR SETTINGS
Base Order Size: Capital committed on the first (base) entry.
AO Deviations: Fixed percentage distances from the base entry where each safety order fires.
AO Sizes: Capital per safety order (1.8× scaling by default).
RSI Timeframe / Length / Level: Oversold filter for the base entry (default 4h, 14, below 28).
Take Profit (%): Distance above average entry where the full position closes.
Bot ID / Email Token / Pair: Webhook fields injected into every alert payload.
Visualization: Toggle the AO ladder, fill labels, avg/TP lines, and status table.
Brand Watermark: Configurable text, position, size, and transparency.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas TradingView 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. Estrategia

RS Rating (Relative Strength) - Clean Table UIThis indicator calculates the Relative Strength (RS) Rating of a stock compared to the S&P 500 (SPY) and displays it as a clean, simple numerical value in a customizable table on your chart.
Unlike many complex swing data indicators that clutter your screen with moving averages, background colors, and multiple data points, this script is specifically designed for minimalist traders, day traders, and scalpers who only need to see the core RS Rating score at a single glance.
How It Works:
Core Calculation: It uses the standard weighted formula for 1-year performance (40% for the most recent quarter, and 20% for each of the previous three quarters) compared against the S&P 500 benchmark.
Percentile Ranking (1-99): Using market environment seed data, the raw score is converted into a true 1 to 99 percentile ranking. For example, an RS Rating of 85 means the stock is currently outperforming 85% of the overall market.
Color-Coded Signals: The numerical value automatically changes color based on the stock's momentum:
Green (>= 80): Strong market leader.
Red (<= 40): Weak laggard.
Custom/White: Neutral performance.
Features:
Zero Chart Clutter: No lines or shapes plotted over your candles. Just a single, elegant table.
Fully Customizable: You can easily change the table's position (Top/Bottom, Left/Right) and text size (Normal, Large, Huge) directly from the indicator settings to fit your exact workspace layout.
(Credits to the original open-source community and Fred6724 for the percentile mapping seed function utilized to power this clean UI version). Indicador

Indicador

Momentum Consensus Heatmap [StrixEDGE]█ MOMENTUM CONSENSUS HEATMAP
A multi-timeframe momentum aggregation system that scans 6 oscillators across 4 customizable timeframes and fires high-conviction BUY/SHORT signals only when a critical mass of indicators reach overbought or oversold consensus simultaneously.
█ CONCEPT
Most momentum-based strategies rely on a single oscillator on a single timeframe — a setup prone to false signals and noise. This indicator solves that by requiring cross-timeframe and cross-indicator agreement before generating a signal.
The core logic works in two layers:
Layer 1 — Timeframe Consensus (per indicator):
Each oscillator is evaluated across 4 timeframes (default: 15m, 1H, 4H, 1D). An indicator only qualifies as "Overbought" or "Oversold" when at least 3 out of 4 timeframes agree (configurable: 2/4, 3/4, or 4/4).
Layer 2 — Indicator Consensus (overall signal):
A chart signal fires only when a user-defined number of indicators (default: 4 out of 6) have all independently reached Layer 1 consensus in the same direction.
This dual-filter architecture dramatically reduces noise and isolates moments of genuine, broad-based momentum exhaustion.
█ OSCILLATORS USED
• RSI (Relative Strength Index) — Classic momentum oscillator measuring speed and magnitude of price changes. Default OB/OS: 70/30.
• Stochastic RSI — Stochastic formula applied to RSI values, more sensitive to short-term momentum shifts than raw RSI. Default OB/OS: 80/20.
• Stochastic Oscillator — Compares closing price to the high-low range over a lookback period. Independent from Stoch RSI. Default OB/OS: 80/20.
• CCI (Commodity Channel Index) — Measures deviation from the statistical mean. Unbounded, making it useful for detecting extreme momentum. Default OB/OS: +100/−100.
• Williams %R — Reflects where the current close sits relative to the highest high. Inverted scale (−100 to 0). Default OB/OS: −20/−80.
• MFI (Money Flow Index) — Volume-weighted RSI. Adds a volume confirmation dimension that pure price-based oscillators lack. Default OB/OS: 80/20.
█ HEATMAP TABLE
The on-chart heatmap table provides a real-time dashboard of all 24 data points (6 indicators × 4 timeframes):
• Each cell shows the live oscillator value with color-coded background:
🔴 Red = Overbought zone
🟢 Green = Oversold zone
⚫ Gray = Neutral
• SCORE column shows how many timeframes agree for each indicator (e.g., "3/4 OB").
• SIGNAL column shows whether that individual indicator has reached consensus ("SHORT ▼" / "BUY ▲" / "—").
• CONSENSUS row at the bottom shows the overall verdict with a percentage score of indicator agreement.
Table position and text size are fully customizable through the settings panel.
█ CHART SIGNALS
When the overall consensus threshold is met:
▲ Green triangle below bar = BUY signal (oversold consensus)
▼ Red triangle above bar = SHORT signal (overbought consensus)
Signals fire only on the first bar of a new consensus event (no repeated signals while conditions persist). A subtle background color flash highlights the signal bar.
█ OPTIONAL TREND FILTER (EMA)
When enabled, signals are filtered by an EMA trend bias:
• BUY signals require price above the EMA (buying in an uptrend)
• SHORT signals require price below the EMA (shorting in a downtrend)
This is disabled by default to keep the indicator pure momentum-based, but can significantly improve signal quality in trending markets.
█ SETTINGS OVERVIEW
⏱ Timeframes — All 4 timeframes are independently configurable.
⚙ Indicator Lengths — Full control over each oscillator's lookback period.
📊 OB/OS Thresholds — Adjust overbought/oversold levels for every oscillator independently.
🎯 Signal Rules:
• Min TF Consensus: How many timeframes must agree per indicator (2-4, default 3).
• Min Indicators: How many indicators must reach consensus for a chart signal (1-6, default 4).
🎨 Table Appearance — Position, size, and full color customization (OB color, OS color, neutral, header, text).
🔔 Alerts — Native TradingView alerts with detailed messages including ticker, timeframe, and consensus count.
█ HOW TO USE
1. Apply the indicator to any chart (works on all instruments and timeframes).
2. The heatmap table updates in real time — use it as a momentum dashboard.
3. Watch for chart signals:
• When 4+ indicators show oversold consensus across 3+ timeframes → BUY signal.
• When 4+ indicators show overbought consensus across 3+ timeframes → SHORT signal.
4. Set up TradingView alerts to get notified when signals fire.
5. For higher conviction:
• Increase "Min Indicators" to 5 or 6 (fewer but stronger signals).
• Require 4/4 timeframe agreement instead of 3/4.
• Enable the EMA trend filter.
█ IMPORTANT NOTES
• This indicator uses request.security() to fetch multi-timeframe data. On the current timeframe, values update in real time. Higher timeframe values reflect the last closed bar of that timeframe.
• Signals are non-repainting once the bar closes. Intrabar, the table values and potential signals update as new ticks arrive (expected behavior for a real-time dashboard).
• This tool is designed for identifying momentum exhaustion zones. It does not predict direction — use it in confluence with price action, support/resistance, and your broader trading plan.
• Past performance is not indicative of future results. Always use proper risk management.
█ CREDITS & LICENSE
Open source under Mozilla Public License 2.0.
Built with Pine Script™ v6. Indicador

RSI Levels & Regime Map Heatmap & Cardwell Reversal SignalsOVERVIEW
RSI is the most-used oscillator in the world, and almost nobody trades it — because "RSI is 62" is not something you can place an order against.
This tool moves RSI onto price.
RSI IS INVERTIBLE. Wilder's smoothing can be solved backwards, so for any RSI value there is an EXACT price that would produce it on the next bar. Instead of "RSI is 62", the chart tells you:
Close above 24,278 -> RSI 70 (resistance)
Close below 24,193 -> RSI 30 (support)
Those are real levels. You can put a stop there. You can put a target there.
The script draws the full ladder (30 / 40 / 50 / 60 / 70, all configurable), shades the bands between them into a regime heatmap, measures the Cardwell range regime, marks Cardwell positive and negative reversals with projected targets, shows a multi-timeframe strip — and then does the thing nobody else does: IT FORWARD-TESTS WHETHER ANY OF IT ACTUALLY HOLDS.
This is a research and framing tool. It is NOT a strategy, NOT a signal service, and NOT a validated edge.
THE MATHS (exact, not an approximation)
RSI = 100 - 100/(1 + AG/AL), where AG and AL are the Wilder-smoothed average gain and loss.
For a target T, let RSt = T/(100 - T). Solving the next bar's RSI for the move x required:
an UP move needs x = (n-1) * (RSt*AL - AG)
a DOWN move needs x = (n-1) * (AL - AG/RSt)
Level = close + x. The up form applies when it is non-negative; otherwise the down form does.
This is algebra, not curve fitting. Feed the derived price back through RSI and you get the target value back exactly. The levels are not estimates — they are the precise prices at which the RSI state changes, recomputed every bar. The ladder breathes with volatility on its own: it tightens in quiet markets and widens in violent ones, with no smoothing parameter to tune.
WHY THESE PARTS ARE ONE TOOL (mashup rationale)
1. THE INVERSE-RSI LADDER — the core. Every rung is the exact price at which RSI would print a chosen value.
2. THE HEATMAP — the bands between the rungs, shaded by regime. It shows at a glance how far price must travel to change the RSI story, which is the one question the oscillator pane can never answer.
3. THE CARDWELL REGIME — Andrew Cardwell's observation: in a BULL market RSI holds roughly 40-80, and 40 becomes SUPPORT. In a BEAR market it holds 20-60, and 60 becomes RESISTANCE. So "RSI 40" means the OPPOSITE thing in the two regimes. A tool that ignores this will cheerfully tell you to buy oversold all the way down a trend. The regime here is MEASURED over a lookback, not assumed — and the rung the script watches follows the regime rather than a fixed number.
4. CARDWELL REVERSALS — the signal almost nobody implements. A POSITIVE REVERSAL is RSI making a LOWER low while PRICE makes a HIGHER low. That is the mirror image of classic divergence, and it is a CONTINUATION signal, not a trend reversal. A NEGATIVE REVERSAL is the bearish mirror. A measured target is projected from each.
5. THE HONESTY LAYER — everyone says RSI 30 is support. Nobody checks. Every level test and every Cardwell reversal is logged and graded with a triple barrier against an unconditional control.
Remove any one and you are left with a prettier RSI that still cannot tell you whether RSI works.
THE CALIBRATION — AND THE TWO TRAPS IT TOOK A LIVE TEST TO FIND
Two subtle biases can make a level tool look brilliant while it is doing nothing at all. Both are handled explicitly here, and both are worth understanding whichever tool you use.
TRAP 1 — THE FILL ADVANTAGE.
A support test fires when price dips INTO the rung and closes back ABOVE it. If you enter the event AT THE RUNG (below the close) but compare it with a control entered at the CLOSE, the event gets a strictly better fill on EVERY trade. It then "beats" the control by construction — not because the level held, but because it bought lower. That is a rigged comparison, and it produces a large fake edge.
THE FIX: the level test is treated as a SIGNAL, NOT A FILL. The event and the control enter at the SAME reference price — the bar's close. The only thing that differs is which bars were selected.
TRAP 2 — DIRECTIONAL DRIFT.
Indices drift upward. If level tests are mostly LONG while the control is 50/50, the events win on drift alone and prove nothing.
THE FIX: longs are compared only with control longs, shorts only with control shorts, then blended back using the events' OWN direction mix. The panel also reports the baseline drift directly, so you can see whether the instrument is simply going up.
The control is UNCONDITIONAL: the same trade geometry taken on arbitrary bars, selected by no signal at all. If the levels cannot beat that, they carry no edge.
Results are reported as EXPECTANCY IN R, not hit rate. A Welch t-test decides whether the difference is real or luck — the panel does not say PROVEN unless t > 1.96.
Other conventions, all chosen so the tool cannot flatter itself:
· Both barriers touched on one bar -> the STOP is assumed first.
· Expired trades are marked to market, not booked as losses.
· The level tested is the one computed at the END OF THE PREVIOUS BAR — the price a trader could actually have rested an order at. Using the current bar's own level would be a look-ahead.
· Everything is logged and resolved on confirmed bars only.
HOW TO USE IT
1. READ THE REGIME FIRST. In a bull regime the 40 rung is support and you are hunting long tests of it. In a bear regime the 60 rung is resistance. In neutral, the ladder is simply a map.
2. The rungs are LEVELS. Price closing through one changes the RSI state, by definition.
3. A CARDWELL REVERSAL is a continuation signal with a projected target.
4. READ THE CALIBRATION BEFORE YOU WEIGHT ANY OF IT — and read the baseline-drift row next to it. If level tests show no proven edge on your instrument, the ladder is a MAP, not a probability.
5. Entry, stop and target are drawn at the same price the calibration measures. They are arithmetic, not advice.
DATA / SCOPE
Any symbol, any timeframe. No volume required. The source is an input, so the ladder can be built from close, hlc3, or even another indicator's plot.
NON-REPAINTING
The ladder is computed from confirmed values and projects FORWARD — it is a statement about what the NEXT bar would need to do, so it necessarily moves as new bars arrive. That is a projection, not a repaint, and it is stated plainly rather than hidden.
Level tests are evaluated against the PREVIOUS bar's level, so no future information is used. Reversal pivots use ta.pivot* and confirm a few bars after the fact; once printed, they do not move. The calibration harness logs AND resolves on confirmed bars only, so its statistics cannot inflate intrabar.
HONEST LIMITATIONS — PLEASE READ
The ALGEBRA is exact. THE CLAIMS ABOUT RSI ARE NOT.
"RSI 30 is support" is folklore until it is measured, which is exactly why this script measures it — and why it is built to be able to return "not proven".
Calibration figures are IN-SAMPLE, with no costs or slippage, and use overlapping windows. A proven in-sample edge is NOT a guarantee out-of-sample. Real fills, spreads and commissions will all reduce it.
Cardwell's rules are discretionary in origin and are mechanised here in one particular way. A different mechanisation would give different numbers.
Small samples are unreliable even when they look good. If the edge is near zero, negative, or unstable across timeframes, the honest conclusion is that it is not there.
Nothing here predicts price.
CONCEPT CREDITS
Relative Strength Index and its Wilder smoothing — J. Welles Wilder Jr.
Range rules, positive and negative reversals, and the measured-move projection — Andrew Cardwell.
Triple-barrier forward labelling — Marcos López de Prado.
Welch's t-test — B. L. Welch.
The inverse-RSI level engine, the regime map, the unconditional direction-matched control and the significance testing are the author's own. Clean-room implementation; no third-party code is reused. Not affiliated with, nor endorsed by, any of the above.
DISCLAIMER
Research and educational tool only. NOT financial advice, NOT a recommendation, and NO guarantee of results. Indicators describe past behaviour; they do not predict the future. Entry, stop and target output is arithmetic, not advice. Trading carries a risk of loss. Test out-of-sample and make your own decisions. The author accepts no liability for any use of this script. Indicador

Supertrend - EMA Cloud - Divergence - ADX [StrixEDGE]Overview
Apex Trend Engine is a 5-layer confluence system that combines trend-following, momentum, and reversal detection into a single overlay indicator. Each layer operates independently and feeds into a unified scoring engine that generates high-conviction BUY and SELL signals only when multiple confirmations align.
Layer 1 — Supertrend (Trend Direction)
An ATR-based adaptive trend filter that hugs price during trends and flips cleanly on reversals. The Supertrend line is plotted directly on the chart with a subtle fill between price and the stop level, making the current trend direction visible at a glance.
Bull & Bear SuperTrend :
Layer 2 — EMA Cloud (Momentum & Entries)
A fast/slow EMA pair (default 9/21) with a filled cloud between them. The cloud color shows momentum direction: green when fast EMA is above slow, red when below. Crossovers serve as entry triggers when confirmed by other layers.
Bull & Bear EMA :
Layer 3 — RSI Divergence Scanner (Reversals)
Automatic detection of regular bullish and bearish divergences between price and RSI using pivot-confirmed swing points. When price makes a lower low but RSI makes a higher low, a bullish divergence line is drawn on the chart. The reverse for bearish.
Bull Div.
Bear Div.
Layer 4 — ADX Trend Strength (Filter)
The Average Directional Index measures whether the market is trending or ranging. ADX above the threshold (default 25) confirms a trending market. The directional indicators (DI+ vs DI-) determine if the trend is bullish or bearish.
Bull & Bear ADX :
Layer 5 — Combined Signal Engine
Each layer contributes one point to a bull score and one to a bear score (5 points maximum each):
Point 1 — Supertrend direction
Point 2 — EMA fast/slow alignment
Point 3 — Price position relative to 200 EMA
Point 4 — Recent RSI divergence (within 20 bars)
Point 5 — ADX trending with directional confirmation
Signal generation requires both a score threshold AND a trigger event:
STRONG BUY — 4 or more bullish points with an EMA crossover or Supertrend flip
BUY — 3 or more bullish points with a trigger
STRONG SELL — 4 or more bearish points with a trigger
SELL — 3 or more bearish points with a trigger
This dual requirement (score plus trigger) prevents signals from firing on every bar during a trend and limits them to actionable moments.
Chart visuals
Supertrend: colored line with transparent fill to price showing the trend zone
EMA Cloud: fast and slow EMA lines with filled cloud between them
EMA 200: gold line for macro trend reference
Divergence lines: green lines connecting bullish divergence pivots, red for bearish
Signal arrows: double arrows for strong signals, single triangles for regular
Background highlight: subtle bar coloring on strong signal bars
Dashboard table
The on-chart dashboard shows each layer's current reading:
Supertrend — stop level and direction
EMA Cross — values and cross status
EMA 200 — value and price position
RSI — value with overbought/oversold warnings
Divergence — type and how many bars ago
ADX — value with trending/ranging status
Score — X/5 BULL and X/5 BEAR
Signal — combined verdict
Settings
Every component is independently configurable with sensible defaults:
Supertrend: ATR length 10, multiplier 3.0
EMA Cloud: fast 9, slow 21, trend 200
RSI Divergence: length 14, pivot lookback 5
ADX: length 14, smoothing 14, trending threshold 25
Signals: buy/sell arrows and background highlights toggleable
Dashboard: position and text size adjustable
Alerts : 10 alert conditions covering every signal type:
Strong Buy, Buy, Strong Sell, Sell
Supertrend flip bullish/bearish
EMA cross up/down
Bullish/Bearish divergence detected
Disclaimer
This indicator is a technical analysis tool for educational and informational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management and never risk capital you cannot afford to lose. Indicador

Dashboard Pro | RSI - Fib - S/R - VolumeOverview
MTF Dashboard Pro is a multi-timeframe confluence engine that scans four timeframes simultaneously — 15-minute, 1-hour, 4-hour, and daily — and evaluates four independent technical conditions on each one. When all conditions align in the same direction, the dashboard issues a high-conviction LONG or SHORT signal. Everything is displayed inside a professional color-coded table directly on your chart, with optional S/R lines and a projected Golden Zone overlay.
What makes this different
Most multi-timeframe dashboards simply display RSI or MACD values across timeframes and leave interpretation to you. This indicator goes further: it defines explicit bullish and bearish conditions for each metric, scores them per timeframe, and only triggers a signal when a configurable number of conditions agree. The result is a systematic, rules-based directional bias — not a subjective reading of scattered numbers.
The four conditions
Each timeframe is scored on these four independent tests:
1 — RSI Momentum (Default: 14-period)
RSI above 50 registers as bullish. RSI below 50 registers as bearish. This captures the underlying momentum direction without relying on overbought/oversold extremes, which lag in trending markets.
🟢 Bullish: RSI > 50
🔴 Bearish: RSI < 50
2 — Fibonacci Golden Zone (0.618 – 0.786)
Calculated from the highest high and lowest low of the last N candles (default: 20 bars). The Golden Zone sits between the 0.618 and 0.786 Fibonacci retracement levels of that range. Price position relative to this zone determines the condition:
🟢 Bullish: Price at or above the 0.618 level (inside or above the Golden Zone)
🔴 Bearish: Price below the 0.618 level (rejected from the zone)
The Golden Zone is drawn on the chart as a projected box extending 20 bars to the right of the current candle, with dashed borders at 0.618 and 0.786, and a dotted midline at 0.702.
3 — Support / Resistance Positioning
Strong Support is the lowest low of the lookback period. Strong Resistance is the highest high. The midpoint between them defines the range center.
🟢 Bullish: Price above the midpoint (upper half of range — strength)
🔴 Bearish: Price below the midpoint (lower half of range — weakness)
Support and Resistance lines are drawn on the chart starting from the exact candle where the high or low occurred, extending to the right of the current bar. A subtle zone band (ATR-based) highlights each level as a zone rather than a single line.
4 — Volume Confirmation (USDT-denominated)
Volume is calculated as volume × close to approximate USDT-denominated volume. This is compared against a simple moving average (default: 20 periods).
🟢 Confirmed: Current volume above the average
🔴 Not confirmed: Current volume below the average
Volume confirmation applies equally to both LONG and SHORT signals — high volume validates the move regardless of direction.
Signal logic
For each timeframe, the indicator counts how many of the four conditions are bullish and how many are bearish.
LONG ▲ — Triggered when the bullish count reaches the minimum threshold (default: 4 out of 4)
SHORT ▼ — Triggered when the bearish count reaches the minimum threshold
NEUTRAL — Mixed conditions, no clear directional consensus
You can lower the threshold to 3 for more frequent signals with slightly less conviction, or keep it at 4 for maximum confluence.
Dashboard table
The on-chart table displays 13 rows across 5 columns (one label column + four timeframe columns):
Row 1 — RSI value with color-coded background (green > 50, red < 50)
Row 2 — Golden Zone status: ABOVE, IN ZONE, or BELOW
Row 3 — Golden Zone price range (0.618 and 0.786 levels)
Row 4 — Strong Support price (green text)
Row 5 — Strong Resistance price (red text)
Row 6 — S/R Position: BULLISH or BEARISH
Row 7 — Volume USDT with formatted K/M/B suffix
Row 8 — Individual condition checklist (✓ or ✗ for each of the 4 conditions)
Row 9 — Score (e.g. "4/4 BULL" or "3/4 BEAR")
Row 10 — Final signal: LONG ▲ / SHORT ▼ / NEUTRAL
Every data cell is background-colored to show its directional bias at a glance. Hover over any label cell to see a tooltip explaining the logic.
Chart overlay
Strong Support and Strong Resistance are drawn as horizontal lines originating from the exact candle where the extreme price occurred within the lookback period. Each line includes a subtle zone band for visual clarity and price labels at the right edge.
The Golden Zone is projected as a filled box extending 20 bars to the right of the current candle. The box includes dashed borders at 0.618 and 0.786, a dotted midline at 0.702, and a centered "GOLDEN ZONE" label.
You can choose which timeframe's levels to display on the chart — Current, 15M, 1H, 4H, or Daily. When plotting a higher timeframe on a lower timeframe chart, bar offsets are automatically scaled to the correct chart positions.
Settings
Table Display
— Position: 9 options (Top/Middle/Bottom × Left/Center/Right)
— Text Size: Tiny, Small, Normal, Large
Indicator Settings
— RSI Period: Default 14 (range 2–100)
— S/R and Golden Zone Lookback: Default 20 bars (range 5–500)
— Volume SMA Period: Default 20 (range 2–200)
Signal Logic
— Minimum Conditions: Default 4 (range 1–4). Controls how many conditions must agree for a signal.
Chart Lines
— Show/Hide toggle for all chart drawings
— Timeframe selection for plotted levels
— Individual color pickers for Support, Resistance, and Golden Zone
— Line width and style (Solid, Dashed, Dotted)
— Show/Hide price labels
— Golden Zone fill toggle and transparency control
Alerts
10 pre-configured alert conditions:
— LONG and SHORT alerts for each individual timeframe (8 alerts)
— "Any TF LONG" — fires when at least one timeframe triggers LONG
— "Any TF SHORT" — fires when at least one timeframe triggers SHORT
Set these up in TradingView's alert dialog to receive notifications when signals change.
Best practices
— Use this as a confluence filter alongside your own price action analysis, not as a standalone entry signal.
— When multiple timeframes show the same signal simultaneously, conviction is significantly higher than a single-timeframe signal.
— For crypto pairs, the Volume USDT calculation is most accurate. For forex and equities, the volume column still shows relative volume strength but does not represent actual USDT value.
— The 20-bar lookback on a 15-minute chart covers roughly 5 hours. On a daily chart, it covers 20 trading days. Keep this asymmetry in mind when comparing timeframe signals.
— Start with the default threshold of 4/4 to learn the indicator's behavior before experimenting with lower thresholds.
Disclaimer
This indicator is a technical analysis tool for educational and informational purposes. It does not constitute financial advice, and past performance does not guarantee future results. Always use proper risk management. Never risk capital you cannot afford to lose. The signals generated are mathematical calculations based on historical price and volume data and should be used as one component of a broader, well-tested trading strategy. Indicador

Cyclic RSI Adaptive Length & Dynamic BandsOverview
A fixed RSI length of 14 is an arbitrary choice — it fits some markets and fights others. Cyclic RSI measures the market's dominant cycle directly from the data and sets the RSI length to half of it, so the read auto-tunes across symbols and timeframes. On top of that it does two more things a plain RSI can't: it draws overbought/oversold bands that adapt to the recent distribution instead of an assumed 70/30, and it applies a cycle-strength gate — because a cyclic oscillator's turns only mean something when a real cycle is actually present. When the spectrum is flat, the pane greys out and the reversal reads are suppressed. It is a momentum/timing tool, not a signal to trade alone.
Why these components are ONE tool (mashup justification)
Each stage exists to fix a specific weakness in the stage before it:
Dominant-cycle measurement. A roofing filter (a high-pass to strip trend plus a smoother to strip noise) isolates the cycle band, and an autocorrelation periodogram over a range of lags produces a power spectrum. Its centre of mass is the dominant cycle; how sharply it peaks is a confidence reading. This is the measurement most cycle work considers more robust than phase-based methods.
Adaptive length. The RSI length is set to half the measured cycle (clamped). This is the whole point — it removes the overfit of a fixed lookback. Because Pine's built-in RSI needs a constant length, the RSI here is summed by hand over the varying half-cycle.
Cyclic smoothing. An optional phasing filter reduces lag so turns are timelier, then a SuperSmoother cleans the line.
Adaptive bands. Overbought and oversold are percentiles of the oscillator's own recent distribution, so the thresholds fit the instrument and regime instead of an assumed 70/30.
Cycle gate + calibration harness. Turns fire only when cycle confidence clears the gate, and a forward harness measures whether those gated turns actually led a move versus the base rate. The cycle read is the picture; the gate says when to trust it; the harness is the proof. Remove any one and you're back to a fixed-length RSI firing overbought/oversold turns in a trend, where they fail most.
How it works
The roofing filter isolates the cycle band. Autocorrelation across lags, projected onto a small set of frequencies, yields a per-period power spectrum smoothed across bars; its centre of mass (over the significant peaks) is the dominant cycle, and its concentration — one sharp peak versus a flat spread — is the confidence. RSI length = half that cycle. The RSI is summed directly over that length, optionally phase-smoothed, then smoothed again. The overbought/oversold bands are recent percentiles of the smoothed oscillator, and a turn off a band is only flagged when confidence clears the gate.
How to use it
Read the oscillator against its adaptive bands, not fixed lines. A turn up off the lower band is a potential reversion long; a turn down off the upper band a potential short — but only trust them when the pane is not greyed (a cycle is present). When the gate is closed, the market is trending or has no clear cycle, and mean-reversion reads are unreliable — that's the tool telling you to stand down, which is exactly when a naive RSI would keep firing losing signals. Gated turns are marked in the pane and, optionally, mirrored on the price chart (up/down triangles) so you can read them without leaving the price. Watch the Edge row: it reports whether gated turns have actually led moves on this instrument. It is never a standalone trigger.
Universal & non-repainting
The source is an input, so it runs on any symbol and timeframe. The oscillator updates live like any RSI; the calibration harness logs and resolves only on closed (confirmed) bars, so its Edge never inflates intrabar. Edge figures are in-sample, close-to-close, with no costs — a study aid, not a backtest. The heaviest part is the periodogram (a bounded lag × frequency scan); if load is slow on very low timeframes, lower the max lag.
Originality
The parts are public: the RSI, roofing filters, autocorrelation-periodogram cycle estimation, half-cycle adaptive RSI length, cyclic smoothing, and distribution-based bands. What's assembled here that isn't sitting on a shelf is the combination: an adaptive-length cyclic RSI wrapped in a spectral-concentration confidence gate that greys the pane and suppresses turns when no cycle is present, plus a forward-calibration harness that scores those gated turns against their base rate. The gate and the harness are this script's own; the rest is credited below. This is an independent Pine v6 implementation — no third-party code is copied verbatim.
Concept credits
Relative Strength Index — J. Welles Wilder.
Roofing filter (high-pass + SuperSmoother), the autocorrelation-periodogram dominant-cycle estimate, and the half-cycle adaptive RSI — John Ehlers (Cycle Analytics for Traders, Rocket Science for Traders).
Cyclic phasing smoother and distribution-based dynamic bands — after Lars von Thienen's cyclic-smoothed RSI (cRSI), from Decoding the Hidden Market Rhythm (whentotrade). That work is licensed Creative Commons Attribution 4.0 International (CC BY 4.0) — creativecommons.org . This script is an independent implementation adapted from that method, with changes (v6 rewrite, spectral-concentration gate, percentile bands, calibration harness); attribution is given as the licence requires.
Disclaimer
Research and educational tool only. Not financial advice, no recommendation, no guarantee of results. Markets are only intermittently cyclic; the cycle estimate lags and gets noisy at regime shifts, which is exactly why the gate exists. 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. Indicador
