Green*DiamondGreen*Diamond (GD1)
Unleash Dynamic Trading Signals with Volatility and Momentum
Overview
GreenDiamond is a versatile overlay indicator designed for traders seeking actionable buy and sell signals across various markets and timeframes. Combining Volatility Bands (VB) bands, Consolidation Detection, MACD, RSI, and a unique Ribbon Wave, it highlights high-probability setups while filtering out noise. With customizable signals like Green-Yellow Buy, Pullback Sell, and Inverse Pullback Buy, plus vibrant candle and volume visuals, GreenDiamond adapts to your trading style—whether you’re scalping, day trading, or swing trading.
Key Features
Volatility Bands (VB): Plots dynamic upper and lower bands to identify breakouts or reversals, with toggleable buy/sell signals outside consolidation zones.
Consolidation Detection: Marks low-range periods to avoid choppy markets, ensuring signals fire during trending conditions.
MACD Signals: Offers flexible buy/sell conditions (e.g., cross above signal, above zero, histogram up) with RSI divergence integration for precision.
RSI Filter: Enhances signals with customizable levels (midline, oversold/overbought) and bullish divergence detection.
Ribbon Wave: Visualizes trend strength using three EMAs, colored by MACD and RSI for intuitive momentum cues.
Custom Signals: Includes Green-Yellow Buy, Pullback Sell, and Inverse Pullback Buy, with limits on consecutive signals to prevent overtrading.
Candle & Volume Styling: Blends MACD/RSI colors on candles and scales volume bars to highlight momentum spikes.
Alerts: Set up alerts for VB signals, MACD crosses, Green*Diamond signals, and custom conditions to stay on top of opportunities.
How It Works
Green*Diamond integrates multiple indicators to generate signals:
Volatility Bands: Calculates bands using a pivot SMA and standard deviation. Buy signals trigger on crossovers above the lower band, sell signals on crossunders below the upper band (if enabled).
Consolidation Filter: Suppresses signals when candle ranges are below a threshold, keeping you out of flat markets.
MACD & RSI: Combines MACD conditions (e.g., cross above signal) with RSI filters (e.g., above midline) and optional volume spikes for robust signals.
Custom Logic: Green-Yellow Buy uses MACD bullishness, Pullback Sell targets retracements, and Inverse Pullback Buy catches reversals after downmoves—all filtered to avoid consolidation.
Visuals: Ribbon Wave shows trend direction, candles blend momentum colors, and volume bars scale dynamically to confirm signals.
Settings
Volatility Bands Settings:
VB Lookback Period (20): Adjust to 10–15 for faster markets (e.g., 1-minute scalping) or 25–30 for daily charts.
Upper/Lower Band Multiplier (1.0): Increase to 1.5–2.0 for wider bands in volatile stocks like AEHL; decrease to 0.5 for calmer markets.
Show Volatility Bands: Toggle off to reduce chart clutter.
Use VB Signals: Enable for breakout-focused trades; disable to focus on Green*Diamond signals.
Consolidation Settings:
Consolidation Lookback (14): Set to 5–10 for small caps (e.g., AEHL) to catch quick consolidations; 20 for higher timeframes.
Range Threshold (0.5): Lower to 0.3 for stricter filtering in choppy markets; raise to 0.7 for looser signals.
MACD Settings:
Fast/Slow Length (12/26): Shorten to 8/21 for scalping; extend to 15/34 for swing trading.
Signal Smoothing (9): Reduce to 5 for faster signals; increase to 12 for smoother trends.
Buy/Sell Signal Options: Choose “Cross Above Signal” for classic MACD; “Histogram Up” for momentum plays.
Use RSI Div + MACD Cross: Enable for high-probability reversal signals.
RSI Settings:
RSI Period (14): Drop to 10 for 1-minute charts; raise to 20 for daily.
Filter Level (50): Set to 55 for stricter buys; 45 for sells.
Overbought/Oversold (70/30): Tighten to 65/35 for small caps; widen to 75/25 for indices.
RSI Buy/Sell Options: Select “Bullish Divergence” for reversals; “Cross Above Oversold” for momentum.
Color Settings:
Adjust bullish/bearish colors for visibility (e.g., brighter green/red for dark themes).
Border Thickness (1): Increase to 2–3 for clearer candle outlines.
Volume Settings:
Volume Average Length (20): Shorten to 10 for scalping; extend to 30 for swing trades.
Volume Multiplier (2.0): Raise to 3.0 for AEHL’s volume surges; lower to 1.5 for steady stocks.
Bar Height (10%): Increase to 15% for prominent bars; decrease to 5% to reduce clutter.
Ribbon Settings:
EMA Periods (10/20/30): Tighten to 5/10/15 for scalping; widen to 20/40/60 for trends.
Color by MACD/RSI: Disable for simpler visuals; enable for dynamic momentum cues.
Gradient Fill: Toggle on for trend clarity; off for minimalism.
Custom Signals:
Enable Green-Yellow Buy: Use for momentum confirmation; limit to 1–2 signals to avoid spam.
Pullback/Inverse Pullback % (50): Set to 30–40% for small caps; 60–70% for indices.
Max Buy Signals (1): Increase to 2–3 for active markets; keep at 1 for discipline.
Tips and Tricks
Scalping Small Caps (e.g., AEHL):
Use 1-minute charts with VB Lookback = 10, Consolidation Lookback = 5, and Volume Multiplier = 3.0 to catch $0.10–$0.20 moves.
Enable Green-Yellow Buy and Inverse Pullback Buy for quick entries; disable VB Signals to focus on Green*Diamond logic.
Pair with SMC+ green boxes (if you use them) for reversal confirmation.
Day Trading:
Try 5-minute charts with MACD Fast/Slow = 8/21 and RSI Period = 10.
Enable RSI Divergence + MACD Cross for high-probability setups; set Max Buy Signals = 2.
Watch for volume bars turning yellow to confirm entries.
Swing Trading:
Use daily charts with VB Lookback = 30, Ribbon EMAs = 20/40/60.
Enable Pullback Sell (60%) to exit after rallies; disable RSI Color for cleaner candles.
Check Ribbon Wave gradient for trend strength—bright green signals strong bulls.
Avoiding Noise:
Increase Consolidation Threshold to 0.7 on volatile days to skip false breakouts.
Disable Ribbon Wave or Volume Bars if the chart feels crowded.
Limit Max Buy Signals to 1 for disciplined trading.
Alert Setup:
In TradingView’s Alerts panel, select:
“GD Buy Signal” for standard entries.
“RSI Div + MACD Cross Buy” for reversals.
“VB Buy Signal” for breakout plays.
Set to “Once Per Bar Close” for confirmed signals; “Once Per Bar” for scalping.
Backtesting:
Replay on small caps ( Float < 5M, Price $0.50–$5) to test signals.
Focus on “GD Buy Signal” with yellow volume bars and green Ribbon Wave.
Avoid signals during gray consolidation squares unless paired with RSI Divergence.
Usage Notes
Markets: Works on stocks, forex, crypto, and indices. Best for volatile assets (e.g., small-cap stocks, BTCUSD).
Timeframes: Scalping (1–5 minutes), day trading (15–60 minutes), or swing trading (daily). Adjust settings per timeframe.
Risk Management: Combine with stop-losses (e.g., 1% risk, $0.05 below AEHL entry) and take-profits (3–5%).
Customization: Tweak inputs to match your strategy—experiment in replay to find your sweet spot.
Disclaimer
Green*Diamond is a technical tool to assist with trade identification, not a guarantee of profits. Trading involves risks, and past performance doesn’t predict future results. Always conduct your own analysis, manage risk, and test settings before live trading.
Feedback
Love Green*Diamond? Found a killer setup?
Trendanalyse
Phantom Trigger Phantom Trigger – Precision Trend Execution with TP1/TP2 and Weak Trend Exits
Phantom Trigger is a professional-grade trend-following strategy designed for crypto and high-volatility assets. It combines advanced trend detection with precise risk-managed exits using a multi-level take-profit system.
🔍 What It Does
Identifies strong directional moves using a multi-stage smoothed trend model
Confirms entries using structure-based logic and volume pressure
Filters trades using bias zones, confirmation levels, and trend acceleration
Automatically manages trades with two-stage take-profits (TP1 and TP2)
Exits early on trend weakness before reversal
Includes a styled real-time dashboard and bar coloring for visual guidance
Sends bot-compatible alerts for multi-exchange automation
⚙️ Core Components
Trend Engine: A smoothed dynamic filter detects real-time trend direction and momentum shifts
Bias Structure: Mid-high/low range-based logic determines if price is favoring bullish or bearish structure
Confirmation Levels: Short- and long-term zone crossovers confirm directional alignment
Volume Filter: Detects volume expansion spikes to validate strong breakout potential
TP1/TP2 Logic: Dynamically sets two profit targets and executes partial and full exits automatically
Weak Trend Exit: Closes positions one bar before reversal using directional filters
🧠 How to Use
Works best on crypto (1H, 4H) and high-volume instruments
Use dashboard stats to monitor position status, PnL, and TP1/TP2 progression
Alerts are pre-labeled and compatible with bots like 3Commas, Wunderbit, etc.
Can be adapted for both scalping and swing trading
📊 Dashboard
The built-in real-time dashboard displays current trade status, entry price, TP1/TP2 progress, win rate, profit factor, and bars since entry. It updates live with every candle and provides a quick-glance overview to support your decision-making during active trades.
🧠 How to Use
Works best on crypto (1H, 4H) and high-volume instruments
Use dashboard stats to monitor position status, PnL, and TP1/TP2 progression
Alerts are pre-labeled and compatible with bots like 3Commas, Wunderbit, etc.
Can be adapted for both scalping and swing trading
⚠️ Disclaimer
This script is for educational purposes only and does not constitute financial advice. Always test strategies thoroughly using demo or backtesting environments before applying to live markets. Past performance is not indicative of future results.
Market OracleMarket Oracle Indicator: User Guide
Market Oracle is a powerful, all-in-one trading indicator for TradingView that combines multiple technical signals into a clear, actionable dashboard. Built for traders seeking a reliable edge, it analyzes trend, momentum, volatility, volume, and more to generate high-confidence buy and sell signals. With features like dynamic position sizing, market regime performance tracking, and customizable settings, it’s perfect for stocks, forex, crypto, or any market on any timeframe.
What It Does
Market Oracle evaluates market conditions using a blend of proven indicators (RSI, Stochastic RSI, EMAs, SuperTrend, MACD, Ichimoku Cloud, Bollinger Bands, ATR, ADX, and candlestick patterns) to produce a Composite Score (0-100) that reflects bullish or bearish strength. It generates:
Buy/Sell Signals: Triggered when the score crosses user-defined thresholds, filtered by volume, ADX, and trading hours.
Dynamic Position Sizing: Adjusts trade size based on volatility (ATR), reducing risk in choppy markets.
Market Regime Insights: Tracks performance in trending vs. ranging markets to highlight strategy strengths.
Comprehensive Dashboard: Displays real-time metrics like signal confidence, stop/take-profit levels, win rates, and more.
Whether you’re a day trader, swing trader, or long-term investor, Market Oracle simplifies decision-making with clear insights and robust backtesting.
Key Features
Composite Score:
Combines trend (EMAs, SuperTrend, MACD), momentum (RSI, Stochastic RSI), volatility (Bollinger Bands, ATR), volume (OBV, MA), Ichimoku Cloud, divergences, multi-timeframe trends, and candlestick patterns.
Score > 50 indicates bullishness; < 50 indicates bearishness. Extreme values (>90 or <10) flag overbought/oversold conditions.
Smart Signals:
Buy signals trigger when the score exceeds a threshold (default 70), with filters for volume, ADX strength, and Ichimoku/pattern confirmation.
Sell signals trigger below 100-threshold (default 30), with similar filters.
Signals include confidence levels (0-100%) based on indicator alignment.
Dynamic Position Sizing:
Scales trade size using ATR to limit risk in volatile markets (e.g., smaller positions when ATR is high).
Caps volatility adjustments (default 3x ATR) to maintain reasonable sizing.
Bases risk on a user-defined percentage (default 1% per trade).
Market Regime Performance:
Identifies trending (high ADX or wide Bollinger Bands) vs. ranging markets.
Tracks win rates separately for each regime, helping you optimize strategies for specific conditions.
Backtesting Metrics:
Shows buy/sell win rates, recent win rate, trending/ranging win rates, profit factor, max drawdown, and equity trend.
Helps evaluate strategy performance over time.
Customizable Dashboard:
Displays key metrics: Composite Score, Trend, Momentum, Volatility, Ichimoku, ADX, Divergences, Signal Status, Confidence, Stop/Take-Profit, Position Size, and more.
Toggles to show/hide backtest stats, Ichimoku Cloud, or multi-timeframe trends.
Clean layout with no clutter (e.g., no unnecessary “!” markers).
Alerts:
Set alerts for Buy/Sell Signals, Signal Exits, High Scores, or Overbought/Oversold conditions.
Messages include score and confidence (e.g., “Oracle+: Buy signal (Score: 75.2, Confidence: 80%)”).
Flexible Settings:
Adjust thresholds, indicator lengths, weights, risk parameters, and more.
Enable/disable features like trailing stops, market regime filters, or trading hour restrictions.
How to Use It
1. Add to TradingView
Copy the Market Oracle script into TradingView’s Pine Editor.
Click “Add to Chart” to apply it to your chosen market (e.g., BTC/USD, EUR/USD, SPY).
The dashboard appears in the bottom-right corner, showing real-time data.
2. Read the Dashboard
The dashboard is split into three sections:
Market State:
Composite Score: Current score and confidence (e.g., “75.2 (50.4%)”). “(OB)” or “(OS)” flags overbought/oversold.
Adjusted Threshold: Signal trigger level, adjusted for market regime.
Trend/MTF Trend: Bullish, Bearish, or Neutral (based on EMAs, SuperTrend, higher timeframe).
Momentum: Bullish, Bearish, or Neutral (RSI, Stochastic RSI).
Volatility: High or Low (Bollinger Bands, ATR).
Ichimoku Cloud: Bullish, Bearish, or Neutral (if enabled).
ADX Strength: Strong or Weak.
Divergence: Bullish, Bearish, or None (RSI, MACD).
Signals:
Signal Status: “Buy”, “Sell”, or “None”.
Signal Confidence: Percentage (e.g., “80%”) based on indicator agreement.
Stop Level/Take-Profit: Price levels for risk management.
Position Size: Units to trade, adjusted for volatility.
Avg Trade Duration: Average bars per trade.
Signal History: Recent signals/exits (e.g., “Buy | Buy Win”).
Backtest (optional):
Buy/Sell Win Rate: Percentage of winning trades.
Recent Win Rate: Win rate for recent trades.
Trending/Ranging Win Rate: Performance by market condition.
Profit Factor: Profit-to-loss ratio.
Max Drawdown: Largest equity drop.
Equity Trend: Up, Down, or Flat.
3. Customize Settings
Access the indicator’s settings by clicking the gear icon:
Signal Sensitivity:
Base Signal Threshold (default 70): Higher = stricter signals.
Min Confidence for Alerts (default 60%): Filters weaker alerts.
Risk Management:
Risk % per Trade (default 1%): Sets base risk.
Max ATR Multiplier (default 3.0): Caps position size reduction.
Take-Profit Ratio (default 2.0): Sets reward-to-risk ratio.
Use Trailing Stop (default false): Enable for dynamic stops.
Filters:
Use Volume Filter (default true): Requires above-average volume.
Use ADX Filter (default true): Requires strong trend (ADX > 25).
Use Market Regime Filter (default true): Adjusts thresholds for trending/ranging markets.
Avoid Specific Hours (default false): Skip signals during set hours (e.g., 0-6 UTC).
Indicators:
Adjust lengths for RSI (14), EMAs (20/50), MACD (12/26/9), etc.
Enable/disable Use Candlestick Patterns (default true) and choose type (Hammer, Engulfing, etc.).
Display:
Show Backtest Metrics (default true): Show win rates and stats.
Show Ichimoku Cloud (default true): Include cloud signals.
Show MTF Trend (default true): Include higher timeframe trend.
4. Set Alerts
In TradingView, click the alarm icon and select Market Oracle conditions:
Buy/Sell Signal: Triggers on new signals with sufficient confidence.
Signal Exit: Triggers when a trade closes (stop or take-profit hit).
High Score Alert: Triggers when score exceeds a threshold (default 80).
Overbought/Oversold: Warns of extreme conditions (if enabled).
Alerts include details for easy tracking (e.g., score, confidence).
5. Test and Trade
Test Markets: Try on forex (EUR/USD 1H), crypto (BTC/USD 4H), or stocks (AAPL daily).
Check Volatility: Monitor Position Size in volatile markets (e.g., XAU/USD); it shrinks to reduce risk.
Evaluate Regimes: Use “Trending Win Rate” and “Ranging Win Rate” to see where the strategy shines.
Backtest: Review Profit Factor and Max Drawdown to assess performance.
Start Small: Use a demo account to test signals before trading live.
Tips for Success
Match Your Style: Adjust scoreThreshold and timeframe to suit day trading (e.g., 15m, stricter threshold) or swing trading (e.g., 4H, looser threshold).
Monitor Regimes: If “Trending Win Rate” is higher, focus signals during strong trends (high ADX).
Manage Risk: Keep riskPerTrade low (e.g., 0.5-2%) and review Position Size for sanity.
Combine with Analysis: Use signals alongside support/resistance or news events for confirmation.
Tune Parameters: Experiment with atrVolatilityCap (e.g., 2.0 for tighter sizing) or adxThreshold (e.g., 30 for stronger trends).
Avoid Overtrading: Filter signals with minConfidenceForAlert (e.g., 70%) to focus on high-probability setups.
Example Scenarios
Crypto Breakout (BTC/USD 4H):
Composite Score jumps to 82, Signal Status shows “Buy” with 80% confidence.
Position Size is moderate due to high ATR during a rally.
“Trending Win Rate” is 65%, suggesting strength in directional moves.
Set an alert and enter with a 2:1 take-profit (e.g., stop at 60,000, target at 62,000).
Forex Range (EUR/USD 1H):
Score hovers near 45, no signal (Neutral).
“Ranging Win Rate” is 55%, indicating decent performance in consolidation.
Wait for a score above 70 or use a higher timeframe (e.g., Daily MTF Trend).
Stock Swing (AAPL daily):
Score hits 75, “Buy” signal with a small Position Size (low ATR).
Dashboard shows Bullish Ichimoku and MTF Trend.
Trade with a trailing stop to capture a multi-day move.
Why Choose Market Oracle?
All-in-One: Combines multiple indicators into one easy-to-read dashboard, saving you time.
Adaptive: Adjusts signals and sizing for market conditions (trending, ranging, volatile).
Transparent: Shows confidence, win rates, and risk levels to build trust in trades.
Customizable: Tailor to any market, timeframe, or trading style with dozens of settings.
No Clutter: Clean interface with no distracting visuals, just actionable data.
Getting Started
Add Market Oracle to your chart and explore the dashboard.
Test on a market you trade (e.g., ETH/USD 1H) with default settings.
Adjust scoreThreshold or riskPerTrade to match your risk tolerance.
Set alerts for Buy/Sell Signals and monitor performance via “Trending Win Rate” and “Profit Factor”.
Join TradingView communities to share setups and tips!
For questions or tweaks (e.g., adding VWAP, changing alert conditions), consult your indicator’s developer or TradingView’s Pine Script resources. Happy trading!
Supply & Demand Histogram and Lines [BerlinCode42]Happy Trade,
This is a Supply & Demand Histogram—also referred to as a Heatmap—that highlights key S&D levels on the chart. Unlike traditional approaches that use volume, this script identifies specific chart patterns and evaluates them to generate the Supply & Demand Histogram. It analyzes the Supply and the Demand separately.
The script is equipped with trade signals for external use (Indicator on Indicator) and is fully compatible with my strategy template script. This allows you to easily create backtests and combine it with other indicators to build a custom strategy.
Intro
Calculation of the Supply & Demand Histogram
Usage and Settings Menu
Declaration for Tradingview House Rules on Script Publishing
Disclaimer
1. Calculation of the Supply & Demand Histogram
Initially, the total price range—spanning from the absolute minimum to the absolute maximum observed price—is discretized into 10,000 equally sized intervals. For each interval, the algorithm performs the following:
It detects chart patterns that typically emerge in zones of varying volatility, categorizing them accordingly. Each identified pattern is assigned a individual weight based on its structural parameters, such as amplitude or slope. Lets call them Structural Weights. These weighted occurrences are then aggregated per interval, resulting in a quantitative representation of supply and demand pressure across the price spectrum, visualized as a histogram.
This pattern-based methodology facilitates the quantitative estimation of supply and demand zones without reliance on volume metrics.
2. Usage and Settings Menu
Initially, the user can configure the granularity of the price segmentation used in the Supply & Demand Histogram. This is achieved by enabling the 'Show Price Range' option, as illustrated in Image 1. Activating this feature overlays a gray-shaded region on the chart, visually representing the defined price range.
Image 1
The vertical position of this range can be adjusted using the 'Price Range Offset' parameter, while the interval widths are modifiable via the 'Step Factor' setting. It is critical to ensure that the specified range encapsulates the entirety of historical and anticipated price movements; failure to do so may result in calculation errors if price action extends beyond the defined bounds. Nevertheless, the default Step Factor has been conservatively chosen to accommodate most price dynamics.
Due to performance considerations, the indicator does not render all 10,000 discrete intervals comprising the full histogram. Instead, it selectively displays a subset of 100 intervals centered around the most recent price."
Once the price range has been configured, disable the “Show Price Range” option again in order to display the Supply & Demand Histogram.
Subsequently, users can fine-tune the histogram computation via two key settings, shown in Image 2:
Volume Count – This option allows selection between a pattern-based structural weighting method and a traditional volume-based approach for histogram construction. The structural method estimates significance through pattern characteristics rather than traded volume.
Supply + Demand – This toggle determines whether Supply and Demand levels are calculated and displayed independently or merged into a unified histogram. If one subscribes to the principle that a breached Supply zone can transform into a Demand zone (and vice versa), enabling this option will reflect that assumption by aggregating both into a single composite structure.
Image 2
Once this setup is complete, the Supply & Demand Histogram along with its most significant price levels will be visualized on the chart. Users can further refine the display settings to tailor the visual output.
In the settings menu, refer to the section illustrated in Image 3. There, you can adjust the number of displayed price levels by increasing or decreasing the S&D Line Filter percentage. A lower percentage results in fewer, more prominent levels being shown, while a higher percentage includes more levels.
The S&D histogram itself can also be hidden if desired.
Image 3
This indicator supports external integration via Indicator on Indicator Functionality or alerts. Specifically, when a price level is either touched or broken, an alert can be triggered. To visually identify where such alerts would occur, enable Show Alert Labels, which marks the respective bars on the chart.
If you want to import the trade signals into a Backtest or Strategy Template script, simply use the two signal outputs: "Break Signals" and "Touch Signals".
A value of zero indicates that no touching or breaking event is occurring.
A positive value signifies that a supply level has been touched or broken.
A negative value indicates a demand level interaction.
The absolute value of each signal corresponds to the price level of the respective Supply or Demand line.
The colors used to represent Supply and Demand levels can be customized to your preference.
Additionally, a Time and Session Filter has been added. This feature allows you to exclude specific time periods and dates from the analysis, enabling a better understanding of which trading times and market sessions are responsible for the formation of particular Supply & Demand levels.
To activate the filter, check the leftmost checkbox, then define the desired Date, Time, and Session parameters accordingly as shown in image 4.
Image 4
3. Declaration for Tradingview House Rules on Script Publishing
The unique feature of this Supply & Demand Histogram is its pattern-based calculation methodology. This approach enables the estimation of Supply and Demand levels even for assets that do not provide volume data. Additionally, it allows for separate computation of Supply and Demand. That means a broken Demand level does not necessarily convert into a Supply level, and vice versa.
This script is closed-source and invite-only to support and compensate for months long development work.
4. Disclaimer
Trading is risky, and traders do lose money, eventually all. This script is for informational and educational purposes only. All content should be considered hypothetical, selected post-factum and is not to be construed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results. Using this script on your own risk. This script may have bugs and I declare don't be responsible for any losses.
Now it’s your turn!
ICT MACRO MAX RETRI ( ALERT )🖤 ICT Reversal Detector – Minimalist Edition
This indicator is designed for traders who follow Inner Circle Trader (ICT) concepts, particularly focused on liquidity sweeps and displacement reversals.
It detects:
• Swing Highs & Lows that occur during the most reactive windows of each hour
→ Specifically the last 20 minutes and first 15 minutes
(ICT teaches these moments often reveal macro-level reversals. I’ve expanded the window slightly to give the indicator more room to catch valid setups.)
• Liquidity Sweeps of previous highs/lows
• Displacement (State Change): defined as a manipulation wick followed by 1–3 strong candles closing in the opposite direction
Visually:
• Clean black lines pointing right from the liquidity sweep wick
• White triangle markers inside black label boxes only when valid displacement occurs
• No clutter, no unnecessary shapes — just focused signal
Built for:
• 5-minute charts, especially NASDAQ (NAS100) and S&P 500 (SPX500)
• Confirm setups manually on the 15-minute chart for extra precision
This is a partial automation tool for ICT-style reversal traders who prefer clarity, minimalism, and sharp intuition over noise.
Let it alert you to setups — then decide like a sniper.
Global M2 Money+ Supply Input Lead (USD)Global M2 Money Supply + INR+CAD Input Lead (USD)
This indicator calculates the global M2 money supply in USD by aggregating M2 data from multiple economies, converted to USD using their respective exchange rates. It overlays the scaled M2 data on the chart with a user-defined time shift to analyze potential correlations with asset prices, such as Bitcoin. The indicator is designed to help traders assess global liquidity trends with a customizable lead or lag.
Countries Included:
Eurozone (EUM2)
North America: United States (USM2), Canada (CAM2)
Non-EU Europe: Switzerland (CHM2), United Kingdom (GBM2), Finland (FIM2), Russia (RUM2)
Pacific: New Zealand (NZM2)
Asia: China (CNM2), Taiwan (TWM2), Hong Kong (HKM2), India (INM2), Japan (JPM2), Philippines (PHM2), Singapore (SGM2)
Latin America: Brazil (BRM2), Colombia (COM2), Mexico (MXM2)
Middle East: United Arab Emirates (AEM2), Turkey (TRM2)
Africa: South Africa (ZAM2)
Input for Lead/Lag:
Time Shift (days): Adjust this input to shift the M2 data forward (positive values) or backward (negative values) on the chart. For example, setting a lead of 85 days shifts the M2 data 85 days into the future, helping traders analyze potential leading indicators for price movements.
Triple Confirmation Scalper v2 - Alarm CompatibleTriple Confirmation Scalper Strategy
A high-probability scalping strategy combining trend momentum, overbought/sold conditions, and volume confirmation to filter low-noise signals.
📊 Strategy Logic
Trend Direction
Dual EMA crossover (9 & 21 periods) for momentum and trend bias.
Overbought/Oversold Zones
RSI (14-period) to avoid entries at extremes.
Volume Spike Filter
OBV + 20-period volume average to confirm breakout validity.
Dynamic Risk Management
Stop-loss: Adaptive to recent price action (5-candle low/high ±1%).
Take-profit: 1.5% target (1.5:1 risk/reward).
🔍 Advanced Features
Precision VWAP (20-period, HLC3-based) for dynamic S/R levels.
Visual Aids:
EMA/VWAP bands + trend-colored background.
Volume spike alerts.
TradingView Alerts pre-configured for long/short signals.
⚙️ Default Settings
Commission: 0.1% factored into backtests.
Mode: Supports both long/short positions.
⚠️ Disclaimer
This is a technical analysis tool, not financial advice.
Past performance ≠ future results. Test thoroughly in a demo account.
Adjust parameters (e.g., EMA periods, RSI thresholds) to match your risk tolerance.
✅ TradingView Compliance Notes:
No exaggerated claims (e.g., "100% win rate").
Clear disclaimer included.
Focus on objective strategy logic (no promotional language).
Stealth Trigger X🔰 Stealth Trigger X — Smart Divergence & Breakout Strategy with Trend Weakness Exit
Stealth Trigger X is a precision-engineered, non-repainting strategy designed for traders who rely on high-conviction breakouts and trend confirmation. Rather than relying on lagging or oversimplified signals, this strategy fuses divergence logic, volatility detection, volume filtering, and slope-based trend validation into one clean system — making it both responsive and reliable.
📌 Core Components (How It Works):
1. ZLEMA (Zero-Lag Exponential Moving Average):
Used as the primary trend baseline. Unlike a standard EMA, ZLEMA compensates for lag by using a double-smoothing technique that allows the strategy to detect trend direction changes sooner — especially useful in crypto and fast-moving markets.
2. Gradient Filter (Slope of ZLEMA):
Rather than waiting for price to cross a moving average, the strategy measures the slope of the ZLEMA itself. Positive slope = uptrend, negative slope = downtrend. This gives us early trend validation and exit signals based on weakening momentum.
3. Vortex Indicator (Directional Volatility):
A diff-based implementation of the Vortex Indicator is used to validate whether volatility is expanding in favor of the trend. This prevents false entries during indecision phases or low-momentum conditions.
4. White Line Bias Filter (Structural Trend):
The strategy calculates the midpoint of the highest high and lowest low over a user-defined period. This “White Line” serves as a structural trend bias, ensuring entries align with the broader context — not just momentary momentum.
5. Volume Spike Confirmation:
To avoid manipulation and choppy conditions, the strategy confirms breakouts only when the current bar’s volume exceeds the median volume of recent candles by a set multiplier. This filters out noise and ensures only high-conviction moves trigger entries.
6. Breakout with Divergence Timing:
A hybrid logic checks for price breaking previous range highs/lows (breakouts), combined with simulated divergence behavior based on RSI-like momentum. This helps align entry timing with areas where price is likely to accelerate.
⚙️ Trade Management Logic:
Entry Conditions:
Triggered when all conditions align: ZLEMA slope, Vortex confirmation, White Line bias, volume spike, and divergence-based breakout.
Take Profits:
TP1: 50% of position is closed using a limit order
TP2: Remaining 50% closed with another limit order
This split exit approach lets profits run while locking in gains early.
Exits on Trend Weakness:
If trend conditions weaken (slope flip or vortex flip), the position is exited before a full reversal occurs — helping protect capital during exhaustion phases.
Reentry Delay:
Enforces a 1-bar cooldown between exit and new entries to avoid “ping-pong” signals and maintain clean backtest results.
📊 Real-Time Dashboard (On-Chart):
Displays critical stats including:
Current position (Long, Short, or Flat)
Entry price
TP1 and TP2 hit status
Win rate (%)
Profit factor
Bars since entry
This makes live trading or visual backtesting easy to interpret and track.
✅ Key Facts:
Non-Repainting: All signals are calculated using confirmed bar data only. No future bars or security() functions are used.
Original Logic: This is not a generic mashup. Each component (ZLEMA slope, vortex diff, breakout divergence, volume spike filtering, White Line structure) is optimized to work in tandem.
Best Timeframes: 1H – 4H
Markets: Crypto, Forex, Indices — any market with trending behavior and measurable volume
⚠️ Disclaimer:
This strategy is for educational purposes only. It is not financial advice or a recommendation to trade. Past performance does not guarantee future results. Always trade with proper risk management and backtest strategies before live deployment.
🧠 Summary:
Stealth Trigger X is built for traders who want:
Precision entries
Early trend exits
Reliable backtest integrity
Clean logic with no repainting
It is especially effective in breakout environments where volume and momentum align — and excels at avoiding weak or manipulated trends.
Weekly Open (Current Week Only)📘 Indicator Name: Weekly Open (Current Week Only)
📝 Description:
This indicator plots a horizontal line representing the weekly open price, visible only during the current trading week. At the beginning of each new week (based on TradingView’s weekly time segmentation), the indicator captures the open price of the first candle and draws a constant line across the chart until the week ends. Once the new week begins, the line resets and updates with the new weekly open.
🎯 How to Use – ICT Concepts Integration (Weekly Profile):
This tool is designed to complement ICT (Inner Circle Trader) trading strategies, particularly within the weekly profile framework, by offering a clear and persistent visual of the weekly open, which is a critical reference point in ICT’s market structure theory.
✅ Use Cases:
Directional Bias:
According to ICT concepts, price trading above the weekly open suggests a bullish bias for the week, while trading below it implies bearish conditions.
Traders can use the weekly open line to align their intraweek trades with higher timeframe directional bias.
Dealing Ranges:
Weekly open helps frame the weekly dealing range, especially when combined with other levels like weekly high/low or previous week’s range.
It allows traders to identify potential liquidity pools or areas where price may seek to rebalance.
Mean Reversion Entries:
Price often reverts to or reacts from the weekly open. Traders may use this as a target or entry level, particularly during Monday/Tuesday setups.
Works well in conjunction with concepts like OTE (Optimal Trade Entry) and Judas Swings.
Risk Management:
Acts as a clean and visual anchor to structure stop losses or take-profits based on weekly bias shifts.
Volume & ATR Projection Tracker w/ Table & Alerts# README: Volume & ATR Projection Tracker (Pine Script Indicator)
## Overview
This Pine Script indicator for TradingView is designed to help traders analyze volume activity and potential short-term price volatility. It plots volume bars, calculates a moving average of volume, highlights unusual volume spikes (differentiating between up and down bars), and projects potential price ranges for upcoming hours based on Average True Range (ATR). It also provides a status table and configurable alerts.
**Disclaimer:** This indicator provides informational analysis and projections based on historical data and volatility. It does **not** provide guaranteed price predictions or financial advice. Trading involves substantial risk. Always do your own research and consult with a qualified financial advisor.
## Features
* **Volume Plotting:** Displays volume as a histogram in a separate panel.
* **Volume Moving Average:** Calculates and plots a configurable MA (SMA, EMA, WMA) of volume.
* **Unusual Volume Detection:** Identifies bars where volume significantly exceeds its moving average (based on a user-defined multiplier).
* **Differentiated Volume Analysis:**
* Colors volume bars differently based on whether unusual volume occurred on an up-bar (Close > Open), down-bar (Close < Open), or neutral bar (Close == Open).
* Plots different spike markers (up/down triangles) on the price chart for unusual volume on up/down bars.
* **ATR Volatility Projections:**
* Calculates the Average True Range (ATR) as a measure of recent volatility.
* Projects a potential price range (Close +/- ATR \* Multiplier) for a specified number of future hours.
* Plots these ranges as dashed lines and labels on the price chart.
* **Important:** These are volatility-based *ranges*, not directional predictions.
* **Status Table:** Displays a concise summary table on the chart including:
* Current Volume Status (Normal, High (Up), High (Down), High (Neut)).
* Current Volume compared to its MA (as a percentage).
* The projected ATR range for the next hour.
* **Configurable Alerts:** Provides alert conditions for:
* Unusual Volume detection.
* Volume crossing above its MA.
* Volume crossing below its MA.
* **Customizable Inputs:** Allows users to configure MA settings, volume threshold, ATR settings, projection hours, trading session times, and colors.
## How it Works
1. **Volume Analysis:**
* Calculates a Moving Average (SMA, EMA, or WMA) of the volume over a specified length (`MA Length`).
* Compares the current bar's volume to this MA. If `Volume > MA * Unusual Vol Multiplier`, the volume is flagged as "unusual".
* Checks if the unusual volume occurred on a bar where `Close > Open` (Up), `Close < Open` (Down), or `Close == Open` (Neutral).
* Colors the volume bars and plots spike markers based on this differentiated status.
2. **ATR Projections:**
* Calculates the ATR over a specified length (`ATR Length`).
* At the start of each hour *within the defined Trading Session*:
* Calculates an upper projection level: `Current Close + (Current ATR * ATR Multiplier)`.
* Calculates a lower projection level: `Current Close - (Current ATR * ATR Multiplier)`.
* Stores these levels for the specified number of `Projection Hours Ahead`.
* Draws dashed lines and labels on the price chart representing these hourly ranges for the future, but only if they are within TradingView's 500-bar drawing limit from the current bar.
3. **Status Table:**
* Updates on the last bar of the chart.
* Displays the current differentiated volume status, the percentage difference between current volume and its MA, and the calculated ATR range for the *next* hour.
4. **Alerts:**
* Uses `alertcondition()` to create trigger conditions based on `unusualVolumeBase`, `vol_cross_above`, and `vol_cross_below`. Users can create alerts based on these conditions in the TradingView UI.
## Input Settings
The indicator settings are organized into groups:
**Group 1: Volume Analysis Settings**
* **MA Length:** (Default: 20) Number of bars for the volume MA calculation.
* **MA Type:** (Default: SMA) Type of moving average (SMA, EMA, WMA).
* **Unusual Vol Multiplier:** (Default: 2.0) Threshold for detecting unusual volume (Volume > MA * Multiplier).
* **Show Volume Spikes:** (Default: true) Toggle visibility of triangle markers on the price chart.
* **Show Volume MA:** (Default: true) Toggle visibility of the MA line on the volume panel.
**Group 2: ATR Projection Settings**
* **ATR Length:** (Default: 14) Number of bars for the ATR calculation.
* **ATR Multiplier:** (Default: 1.5) Factor applied to ATR to determine the projection range width. Higher values create wider ranges.
* **Projection Hours Ahead:** (Default: 8) How many hours forward to calculate and display projections.
* **Show Projections:** (Default: true) Toggle visibility of projection lines and labels on the price chart.
**Group 3: Session & Colors**
* **Trading Session:** (Default: "0930-1600") Defines the hours during which projections are calculated. **Crucial:** Format is HHMM-HHMM based on the exchange timezone (see Timezone Note below).
* **Normal Vol Color:** (Default: blue) Color for volume bars when volume is not unusual.
* **Volume MA Color:** (Default: yellow) Color of the volume MA line.
* **Unusual Vol (Up Bar) Color:** (Default: light green) Color for unusual volume bars where Close > Open.
* **Unusual Vol (Down Bar) Color:** (Default: light red) Color for unusual volume bars where Close < Open.
* **Unusual Vol (Neutral Bar) Color:** (Default: light gray) Color for unusual volume bars where Close == Open.
* **Projection Line Color:** (Default: orange) Color of the dashed projection range lines.
* **Proj Label Bg Color:** (Default: semi-transparent gray) Background color for projection labels.
* **Proj Label Text Color:** (Default: white) Text color for projection labels.
## Timezone Note
The `Trading Session` input relies on a timezone setting within the `is_in_session` function in the code (currently hardcoded to `"UTC-4"` as an example for US Eastern Time). **You may need to edit the script code** to change this timezone string (e.g., `"America/New_York"`, `"Europe/London"`, `"Asia/Tokyo"`) to match the exchange time of the instrument you are trading. Consult Pine Script documentation for valid timezone strings.
## Limitations
* **Drawing Limit:** TradingView limits drawing objects (lines, labels) to a maximum of ~500 bars into the future from the current bar. On lower timeframes, the script automatically stops drawing projections that exceed this limit.
* **Projection vs. Prediction:** The ATR ranges are based on past volatility and are *not* price predictions. The market can easily move outside these projected ranges.
* **Alerts:** Alerts for price crossing the projected future levels are not implemented due to technical complexity in Pine Script.
## Disclaimer
Trading financial markets involves substantial risk of loss and is not suitable for all investors. The information provided by this indicator is for educational and informational purposes only and does not constitute financial advice, investment advice, trading advice, or any other sort of advice. You should not make any investment decision based solely on the information provided by this indicator. Past performance is not indicative of future results.
Moving Average Shift WaveTrend StrategyMoving Average Shift WaveTrend Strategy
🧭 Overview
The Moving Average Shift WaveTrend Strategy is a trend-following and momentum-based trading system designed to be overlayed on TradingView charts. It executes trades based on the confluence of multiple technical conditions—volatility, session timing, trend direction, and oscillator momentum—to deliver logical and systematic trade entries and exits.
🎯 Strategy Objectives
Enter trades aligned with the prevailing long-term trend
Exit trades on confirmed momentum reversals
Avoid false signals using session timing and volatility filters
Apply structured risk management with automatic TP, SL, and trailing stops
⚙️ Key Features
Selectable MA types: SMA, EMA, SMMA (RMA), WMA, VWMA
Dual-filter logic using a custom oscillator and moving averages
Session and volatility filters to eliminate low-quality setups
Trailing stop, configurable Take Profit / Stop Loss logic
“In-wave flag” prevents overtrading within the same trend wave
Visual clarity with color-shifting candles and entry/exit markers
📈 Trading Rules
✅ Long Entry Conditions:
Price is above the selected MA
Oscillator is positive and rising
200-period EMA indicates an uptrend
ATR exceeds its median value (sufficient volatility)
Entry occurs between 09:00–17:00 (exchange time)
Not currently in an active wave
🔻 Short Entry Conditions:
Price is below the selected MA
Oscillator is negative and falling
200-period EMA indicates a downtrend
All other long-entry conditions are inverted
❌ Exit Conditions:
Take Profit or Stop Loss is hit
Opposing signals from oscillator and MA
Trailing stop is triggered
🛡️ Risk Management Parameters
Pair: ETH/USD
Timeframe: 4H
Starting Capital: $3,000
Commission: 0.02%
Slippage: 2 pips
Risk per Trade: 2% of account equity (adjustable)
Total Trades: 224
Backtest Period: May 24, 2016 — April 7, 2025
Note: Risk parameters are fully customizable to suit your trading style and broker conditions.
🔧 Trading Parameters & Filters
Time Filter: Trades allowed only between 09:00–17:00 (exchange time)
Volatility Filter: ATR must be above its median value
Trend Filter: Long-term 200-period EMA
📊 Technical Settings
Moving Average
Type: SMA
Length: 40
Source: hl2
Oscillator
Length: 15
Threshold: 0.5
Risk Management
Take Profit: 1.5%
Stop Loss: 1.0%
Trailing Stop: 1.0%
👁️ Visual Support
MA and oscillator color changes indicate directional bias
Clear chart markers show entry and exit points
Trailing stops and risk controls are transparently managed
🚀 Strategy Improvements & Uniqueness
In-wave flag avoids repeated entries within the same trend phase
Filtering based on time, volatility, and trend ensures higher-quality trades
Dynamic high/low tracking allows precise trailing stop placement
Fully rule-based execution reduces emotional decision-making
💡 Inspirations & Attribution
This strategy is inspired by the excellent concept from:
ChartPrime – “Moving Average Shift”
It expands on the original idea with advanced trade filters and trailing logic.
Source reference:
📌 Summary
The Moving Average Shift WaveTrend Strategy offers a rule-based, reliable approach to trend trading. By combining trend and momentum filters with robust risk controls, it provides a consistent framework suitable for various market conditions and trading styles.
⚠️ Disclaimer
This script is for educational purposes only. Trading involves risk. Always use proper backtesting and risk evaluation before applying in live markets.
RTH and ETH RangesKey Functions :
Visualizes Regular Trading Hours (RTH) and Extended Trading Hours (ETH) price ranges
Tracks session highs, lows, and 50% levels where significant market reactions occur
Detects breakouts beyond previous session extremes
Trading Applications :
Exposes potential liquidity raids at session boundaries where smart money targets stop orders
Identifies critical price thresholds where institutional activity concentrates
Highlights divergences between RTH and ETH behavior that precede directional moves
Provides measurement of session volatility differences
Maps key price levels for objective entry and exit parameters
Reveals market dynamics at session transitions where institutional positioning changes
Hyperion Crypto Matrix: Ultimate Market Sentinel
// 🔰 HYPERION CRYPTO MATRIX: ULTIMATE MARKET SENTINEL
// ─────────────────────────────────────────────────────────────────────────────
/*
The **Hyperion Crypto Matrix** is an advanced crypto trend-following strategy built from the ground up for precision, not just performance. Unlike traditional “mashups” of indicators, this system was **engineered around synergy**—each module is purpose-driven and non-redundant, delivering fast, filtered, high-probability signals in volatile crypto markets.
─────────────────────────────────────────────────────────────
📌 STRATEGY PURPOSE
─────────────────────────────────────────────────────────────
Hyperion is built for **1-hour crypto trading** and optimizes for:
- High Win Rate
- Early Exits on Trend Weakness
- Partial Position Scaling (TP1/TP2)
- Real-time trade performance tracking
It is ideal for traders who want **real-time trade logic** with:
- No repainting
- No overfitting
- Realistic entry/exit structure
- No same-bar entry & exit (enforces 1-bar delay)
─────────────────────────────────────────────────────────────
🧠 WHAT MAKES IT ORIGINAL
─────────────────────────────────────────────────────────────
Each component is **custom-integrated** with strict role separation:
- **Trend Direction:** Enhanced Wave Oscillator (EWO) with adaptive band filtering
- **Trend Strength Memory:** Relative Momentum Index (RMI) with threshold locking
- **Volume Confirmation:** Historical relative volume spike filter using SMA multiplier
- **Momentum Weakness Exit:** Combined ROC and CCI to detect early reversal before price turns
- **Position Tracking:** TP1 (50% exit), TP2 (100% close) with cooldown to prevent whipsaws
- **Dynamic Dashboard:** Real-time stats including win rate, PnL efficiency, and TP hit status
These aren’t just “plugged in” indicators—they are synchronized to **filter, confirm, and adapt** to price action with timing logic that prevents premature entries or late exits.
─────────────────────────────────────────────────────────────
📊 INDICATOR LOGIC OVERVIEW
─────────────────────────────────────────────────────────────
1. **📈 Enhanced Wave Oscillator (EWO):**
- Calculates the delta between a fast and slow EMA (5 vs. 34 by default)
- Uses a dynamic banding system to detect peaks/troughs and prevent entries during exhaustion
- Filters only active, accelerating trends — reducing false positives
2. **🧠 Relative Momentum Index (RMI):**
- Similar to RSI but with a forward-looking momentum comparison
- Confirms trend *persistence* over time, preventing entries on short-term flips
- Long entries only allowed when RMI > threshold (default 55), short if RMI < 45
3. **🔊 Volume Spike Filter:**
- Uses 20-bar SMA of volume and a multiplier (1.5x default) to detect **relative volume breakouts**
- Prevents trades in low-liquidity environments (e.g., chop, overnight sessions)
4. **📉 Weak Trend Close Logic:**
- Combines Rate of Change (ROC) and Commodity Channel Index (CCI)
- Detects early signs of momentum deterioration, often before the trend visually reverses
- Triggers exit before price falls into sideways zones
5. **🎯 Take Profit System (TP1/TP2):**
- TP1: 50% position closed at +2% (default)
- TP2: Full close at +4% (default)
- Uses `strategy.exit()` with limit orders based on entry price
6. **⏱️ Reentry Cooldown:**
- After TP2 or weak trend exit, system enforces a 1-bar delay before reentry
- Avoids frequent churn in flat or noisy environments
7. **📋 Real-Time Dashboard (Optional):**
- Displays live trade status, PnL metrics, TP1/TP2 hit status, bars since entry, win rate %, and profit factor
- Color-coded background to highlight active trade direction (green for long, red for short)
─────────────────────────────────────────────────────────────
⚙️ HOW TO USE
─────────────────────────────────────────────────────────────
1. Load on a 1H chart of a crypto asset with good liquidity (e.g., BTC, ETH, LINK)
2. Toggle between \"Long Only\", \"Short Only\", or \"Both\" in the settings
3. Use default TP1/TP2 percentages, or tune them for the asset’s volatility
4. Observe trade execution and live stats on the optional dashboard
5. Review the bar coloring for EWO trend bias confirmation
> Stop-loss logic is not included. This strategy assumes exits occur at TP2 or on trend/momentum failure.
─────────────────────────────────────────────────────────────
⚖️ TRADINGVIEW COMPLIANCE & USAGE DISCLAIMER
─────────────────────────────────────────────────────────────
This strategy does **not repaint**, is fully compatible with **TradingView backtesting**, and adheres to all known Pine Script execution rules.
⚠️ **Disclaimer:** This script is for educational purposes only and does not constitute financial advice. Trading cryptocurrencies involves significant risk. Always test strategies on a demo account and consult with a financial advisor before live trading.
─────────────────────────────────────────────────────────────
🧪 CONCLUSION
─────────────────────────────────────────────────────────────
The **Hyperion Crypto Matrix** is not a mashup—it’s a **modular, optimized, logic-driven system** crafted for real-world crypto trading. Every component has been tuned for function, not fluff. Whether you're backtesting or live trading, this system is designed to give you **structured, actionable edge** with live feedback every step of the way.
*/
POF🔶 Smoothed POF Profile – Multi-Session Market Structure Tool 🔶
The Smoothed POF Profile is a precision-engineered market structure indicator that identifies the Point of Focus (POF) — the price level where market participation was most active — across Daily, Weekly, and Monthly sessions and plots them with smoothed over form to avoid whipsaws.
🔍 Powered by a custom-built algorithm for session profiling, this tool highlights:
🔶 POF: The most frequently traded or accepted price during a session
🟩 VAH / VAL: Dynamic Value Area High and Low markers (no cluttered lines — clean label-only display)
📐 The core logic utilizes a proprietary data refinement method that adapts to session volatility and filters out insignificant noise to avoid false shifts in structure. This results in smoothed POF readings that remain stable and meaningful — even during high-volatility periods.
🧠 Designed for traders who want to track evolving value, this tool provides a high-level view of where the market is finding agreement — and where price is likely to revert or expand from.
✅ Key Features:
Fully automated: Tracks Daily, Weekly, and Monthly sessions in real-time
Session-aware calculation of key structure levels
Elegant, non-obtrusive chart visuals (no histogram or volume bars)
Fully configurable Value Area % and display toggles
Multi-session color-coding (🟧 Daily, 🔵 Weekly, 🟣 Monthly)
🧭 Trading Applications:
POF Bias: Use POF as an evolving balance point. Price above = bullish lean, price below = bearish tilt
VAH/VAL Zones: Anticipate rejection or consolidation when price re-enters the value area. Use breakouts for continuation bias
Session Stack Confluence: When Daily, Weekly, and Monthly POFs cluster, it often signals strong interest zones and potential turning points
🧩 Use alongside your preferred price action, volume, or trend confirmation tools. This is not a signal-based system — it’s a contextual framework to help you align with market intent and structure.
⚠️ Disclaimer: This tool is intended for educational and informational purposes only. It is not financial advice. Use with proper risk management and your own due diligence.
Machine Learning RSI ║ BullVisionOverview:
Introducing the Machine Learning RSI with KNN Adaptation – a cutting-edge momentum indicator that blends the classic Relative Strength Index (RSI) with machine learning principles. By leveraging K-Nearest Neighbors (KNN), this indicator aims at identifying historical patterns that resemble current market behavior and uses this context to refine RSI readings with enhanced sensitivity and responsiveness.
Unlike traditional RSI models, which treat every market environment the same, this version adapts in real-time based on how similar past conditions evolved, offering an analytical edge without relying on predictive assumptions.
Key Features:
🔁 KNN-Based RSI Refinement
This indicator uses a machine learning algorithm (K-Nearest Neighbors) to compare current RSI and price action characteristics to similar historical conditions. The resulting RSI is weighted accordingly, producing a dynamically adjusted value that reflects historical context.
📈 Multi-Feature Similarity Analysis
Pattern similarity is calculated using up to five customizable features:
RSI level
RSI momentum
Volatility
Linear regression slope
Price momentum
Users can adjust how many features are used to tailor the behavior of the KNN logic.
🧠 Machine Learning Weight Control
The influence of the machine learning model on the final RSI output can be fine-tuned using a simple slider. This lets you blend traditional RSI and machine learning-enhanced RSI to suit your preferred level of adaptation.
🎛️ Adaptive Filtering
Additional smoothing options (Kalman Filter, ALMA, Double EMA) can be applied to the RSI, offering better visual clarity and helping to reduce noise in high-frequency environments.
🎨 Visual & Accessibility Settings
Custom color palettes, including support for color vision deficiencies, ensure that trend coloring remains readable for all users. A built-in neon mode adds high-contrast visuals to improve RSI visibility across dark or light themes.
How It Works:
Similarity Matching with KNN:
At each candle, the current RSI and optional market characteristics are compared to historical bars using a KNN search. The algorithm selects the closest matches and averages their RSI values, weighted by similarity. The more similar the pattern, the greater its influence.
Feature-Based Weighting:
Similarity is determined using normalized values of the selected features, which gives a more refined result than RSI alone. You can choose to use only 1 (RSI) or up to all 5 features for deeper analysis.
Filtering & Blending:
After the machine learning-enhanced RSI is calculated, it can be optionally smoothed using advanced filters to suppress short-term noise or sharp spikes. This makes it easier to evaluate RSI signals in different volatility regimes.
Parameters Explained:
📊 RSI Settings:
Set the base RSI length and select your preferred smoothing method from 10+ moving average types (e.g., EMA, ALMA, TEMA).
🧠 Machine Learning Controls:
Enable or disable the KNN engine
Select how many nearest neighbors to compare (K)
Choose the number of features used in similarity detection
Control how much the machine learning engine affects the RSI calculation
🔍 Filtering Options:
Enable one of several advanced smoothing techniques (Kalman Filter, ALMA, Double EMA) to adjust the indicator’s reactivity and stability.
📏 Threshold Levels:
Define static overbought/oversold boundaries or reference dynamically adjusted thresholds based on historical context identified by the KNN algorithm.
🎨 Visual Enhancements:
Select between trend-following or impulse coloring styles. Customize color palettes to accommodate different types of color blindness. Enable neon-style effects for visual clarity.
Use Cases:
Swing & Trend Traders
Can use the indicator to explore how current RSI readings compare to similar market phases, helping to assess trend strength or potential turning points.
Intraday Traders
Benefit from adjustable filters and fast-reacting smoothing to reduce noise in shorter timeframes while retaining contextual relevance.
Discretionary Analysts
Use the adaptive OB/OS thresholds and visual cues to supplement broader confluence zones or market structure analysis.
Customization Tips:
Higher Volatility Periods: Use more neighbors and enable filtering to reduce noise.
Lower Volatility Markets: Use fewer features and disable filtering for quicker RSI adaptation.
Deeper Contextual Analysis: Increase KNN lookback and raise the feature count to refine pattern recognition.
Accessibility Needs: Switch to Deuteranopia or Monochrome mode for clearer visuals in specific color vision conditions.
Final Thoughts:
The Machine Learning RSI combines familiar momentum logic with statistical context derived from historical similarity analysis. It does not attempt to predict price action but rather contextualizes RSI behavior with added nuance. This makes it a valuable tool for those looking to elevate traditional RSI workflows with adaptive, research-driven enhancements.
Trend MatrixFinal TradingView-Compliant Description for Trend Matrix
Trend Matrix is a precision-engineered trend-following strategy built for high-confidence entries and tactical trade management.
This strategy combines multiple non-repainting filters, each with a distinct role, to form a unified "trend matrix" that confirms directional bias, volume commitment, and momentum strength — all before entry is considered.
🔍 Core Components & Why They’re Used
🧠 Gaussian Filter (Custom)
A smoothed Gaussian-weighted moving average is used to detect trend direction changes. Unlike standard EMAs, this filter minimizes lag while retaining smooth transitions — ideal for confirming trend shifts without false reversals.
📈 RMI Trend Memory
A Relative Momentum Index is used to validate trend direction persistence. RMI's ability to filter out short-term oscillations makes it ideal for confirming whether a trend is still active.
📊 Gradient Filter (ZLEMA-based)
Measures the slope of a ZLEMA-smoothed close. If slope flips, it signals a potential trend weakness. This provides real-time confirmation for entry or exit bias.
📉 Volume Spike Detection
Confirms that breakouts or trend continuations are supported by volume commitment. Uses a dynamic SMA-based volume filter with a user-defined multiplier.
🟦 White Line (Bias Midpoint)
This structural component calculates the midpoint of the highest high and lowest low over a range — providing directional context and helping eliminate trades in consolidation zones.
🎯 Entry Conditions
Long entries require:
Gaussian trend flip to the upside
RMI > 50 (bullish memory)
Volume spike confirmation
Positive gradient (ZLEMA slope)
Price above White Line (bias filter)
Short entries use the inverse logic.
All entries enforce a cooldown bar to prevent same-bar reversals or whipsaw trades.
🎯 Exit Conditions
Take Profit 1: 50% of position at +2%
Take Profit 2: Remaining 50% at +4%
Early Exit on Trend Weakness:
Position closes fully if the trend weakens (RMI flip or gradient reversal)
📊 Dashboard + Performance Tracking
The built-in dashboard shows:
Current Position
Entry Price
TP1/TP2 Hit Status
Bars Since Entry
Win Rate (%)
Profit Factor
Useful for manual tracking or live trading review.
🌐 Multi-Exchange Bot Compatibility
Trend Matrix is built with universal trade alerts using customizable comment= fields. This makes it compatible with any exchange-connected bot platform such as:
WunderTrading
3Commas
Alertatron
Cornix
Or any webhook-based trading system
Alerts are sent using the {{strategy.order.comment}} placeholder, allowing you to route entries and exits through your preferred exchange account on Binance, Bybit, OKX, Kraken, and others.
🛠️ Customization
All components are modular:
TP1/TP2 levels
Gaussian length & sigma
Volume spike filter sensitivity
Gradient & White Line length
RMI settings
You can tailor the strategy for different assets or timeframes — optimized for crypto 1H, but works with stocks, FX, or lower timeframes with adjusted parameters.
✅ Final Notes
Trend Matrix is not just a mashup — it's a synchronized system of filters with clear roles, designed to maximize trade confidence and minimize noise. Every layer of confirmation serves a purpose, making this a highly adaptive trend-following tool for any market environment.
⚠️ Disclaimer (as required by TradingView)
This script is for educational purposes only and does not constitute financial advice. Use at your own risk. Always test strategies thoroughly before applying them in live trading environments. Past performance is not indicative of future results.
TOMOs Consolidation Indicator using Bar Heightswhat this is: This indicator creates an alert (see green arrow) when there are periods of consolidation in the chart. YOU define what consolidation means. It looks at BOTH candle heights (wicks included by default) AND checks the lowest and highest of those candles.
> Number of candles to check: you define how many candles you want to use to calculate consolidation. For instance, if you select 3 candles and you're on a 5-min chart, that's 15 mins of consolidation.
> Max Candle Height: You define what consolidation height or range is considered consolidation to you. So if you put in a value of 15. That means the last X number of candles are examined for whether OR NOT they are at or below that height. If they are, then it checks to see if the lowest and highest point among those candles are within that height as well. IF they are, then you see a green arrow. That is consolidation in this indicator. And you can use it for an alarm.
> the blue shade just means consolidation is continuing BEYOND the green-arrow when it was indicated. It's just a visual indicator. that's it.
> Include Wicks in Candle Height? Maybe you just want the body of the candle and not it's wicks. Your call.
Trigger Starts and stops: hour/min. This is ALL Eastern time (NYSE's time) and NOT your own timezone. You can simply tell the script you ONLY want the trigger alert to happen between the the start and end time. So if you're using it to trigger a trade, maybe you don't want to trigger it too early or late in the day.
Inputs in Status Line: This is tradingview default. I can't remove it.
Return-to-Trend Wick Scalper — Full Control VersionReturn-to-Trend Wick Scalper — Modular Scalping Strategy for Gold (XAUUSD) & Indices
This is a precision-engineered scalping strategy designed primarily for high-volatility instruments such as Gold (XAUUSD), NASDAQ, and indices.
The system focuses on counter-trend pullbacks within the dominant daily trend, utilizing wick-based liquidity grabs (commonly referred to as “John Wick” candles) to identify high-probability return-to-trend opportunities.
Key Features:
✅ Dynamic Wick Reversal Detection: Detects reversal setups based on wick dominance and body ratio.
✅ Multiple Take Profit Levels: TP1, TP2, TP3 with individual enable/disable toggles and adjustable exit percentages.
✅ Time-Based Stop-Loss: Optional failsafe to close trades after exceeding a defined number of bars.
✅ VWAP Proximity Filter: Ensures entries happen near volume-weighted average price for precision.
✅ Pullback Depth Control: Filter for significant pullbacks using percentage of daily ATR.
✅ Dynamic Support & Resistance Validation: Confirms setups at key reactive levels.
✅ Volatility Filter: Avoids entries in overly volatile or dead market conditions.
✅ Aggressive Entry Mode: Optional early entry at pullback zones for faster fills.
✅ Paper Trading & Backtest Ready: Fully compatible with TradingView’s Paper Trading simulator.
Usage Notes:
Optimized for 5-minute chart entries.
Use in conjunction with Paper Trading for forward testing before live execution.
Can be connected to live brokers via alert webhooks and external bridges like PineConnector.
Instrument Focus:
Gold (XAUUSD) ✅
NASDAQ ✅
Dow Jones (US30) ✅
Other liquid indices ✅
Risk Note:
Always test thoroughly in Paper Trading before going live.
Optimize TP levels and filters according to market volatility conditions.
Designed for traders who want precision entries, flexibility in scaling out positions, and professional-grade risk control.
Market Structure - HH, HL, LH, LL with Trendlines & AlertsMarket Structure Script – HH, HL, LH, LL with Trendlines & Alerts
This Pine Script is designed to help identify key market structure patterns such as Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) on price charts. It also draws trendlines connecting the respective swing points and provides alerts when these important price patterns occur.
Key Features:
Swing High and Low Detection:
The script uses the ta.pivothigh and ta.pivotlow functions to identify significant swing highs and swing lows based on the pivot length (pivotLen). These points mark local peaks and troughs in the price action.
Dynamic Pivot Length:
The script adjusts the pivotLen (which defines the number of bars used to calculate swing points) based on the current timeframe of the chart. For example, for a 15-minute chart, it uses a pivot length of 5 bars, while for a daily chart, it uses 10 bars. This dynamic adjustment ensures that the script works across different timeframes.
Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), Lower Lows (LL):
Higher High (HH): Identifies a price peak that is higher than the previous swing high, indicating an uptrend.
Higher Low (HL): Identifies a price trough that is higher than the previous swing low, supporting the idea of an ongoing uptrend.
Lower High (LH): Identifies a price peak that is lower than the previous swing high, suggesting a potential reversal or downtrend.
Lower Low (LL): Identifies a price trough that is lower than the previous swing low, indicating a downtrend.
Trendlines:
For each identified Higher High, Higher Low, Lower High, or Lower Low, the script automatically draws a trendline connecting the corresponding swing points. These trendlines provide a visual representation of the market’s price structure, showing support and resistance levels.
Labels:
The script places labels on the chart next to the respective swing points. These labels mark whether the point is a Higher High (HH), Higher Low (HL), Lower High (LH), or Lower Low (LL). This helps traders easily visualize the price pattern at a glance.
Alerts:
Alert conditions are set for when a Higher High (HH), Higher Low (HL), Lower High (LH), or Lower Low (LL) is detected. Users can set up alerts to be notified whenever one of these key market structure patterns forms. Alerts are an essential feature for traders who want to act quickly when important trend changes are happening.
STH-MVRV Bollinger BandsSTH-MVRV Bollinger Bands
🛠️ Detailes
This proprietary indicator seamlessly integrates on-chain data with advanced volatility metrics to construct adaptive Bollinger Bands that overlay directly on the price chart. Here’s a breakdown of its technical components:
Data Integration:
On-chain & Index Data: Utilizes BTC_MVRV (on-chain metric) and INDEX:BTCUSD (market index) to compute the STH-MVRV ratio.
Smoothing: Data series are smoothed with a configurable SMA (Simple Moving Average) over a user-defined period to reduce noise.
Ratio Computation:
Forms: Calculates three ratio variants:
STH-MVRV (MVRV)
STH-MVRV (Price)
STH-MVRV (AVG)
Dynamic Selection: The user can select the desired ratio from a dropdown menu.
Bollinger Bands Construction:
Basis & Deviation:
The basis is derived using the SMA of the selected ratio (or price, if substituted).
The standard deviation is scaled by a multiplier to form the upper and lower bands.
🟢 Green: When the selected ratio is ≥ 1 (bullish condition).
🔴 Red: When the selected ratio is < 1 (bearish condition).
Usage Recommendations:
Parameter Tuning: Adjust the moving average period, band length, and standard deviation multiplier to tailor the indicator to specific market conditions.
Multi-Timeframe Analysis: Combine with other technical indicators for a comprehensive risk management and trade execution strategy.
Dskyz (DAFE) MAtrix with ATR-Powered Precision Dskyz (DAFE) MAtrix with ATR-Powered Precision
This cutting‐edge futures trading strategy built to thrive in rapidly changing market conditions. Developed for high-frequency futures trading on instruments such as the CME Mini MNQ, this strategy leverages a matrix of sophisticated moving averages combined with ATR-based filters to pinpoint high-probability entries and exits. Its unique combination of adaptable technical indicators and multi-timeframe trend filtering sets it apart from standard strategies, providing enhanced precision and dynamic responsiveness.
imgur.com
Core Functional Components
1. Advanced Moving Averages
A distinguishing feature of the DAFE strategy is its robust, multi-choice moving averages (MAs). Clients can choose from a wide array of MAs—each with specific strengths—in order to fine-tune their trading signals. The code includes user-defined functions for the following MAs:
imgur.com
Hull Moving Average (HMA):
The hma(src, len) function calculates the HMA by using weighted moving averages (WMAs) to reduce lag considerably while smoothing price data. This function computes an intermediate WMA of half the specified length, then a full-length WMA, and finally applies a further WMA over the square root of the length. This design allows for rapid adaptation to price changes without the typical delays of traditional moving averages.
Triple Exponential Moving Average (TEMA):
Implemented via tema(src, len), TEMA uses three consecutive exponential moving averages (EMAs) to effectively cancel out lag and capture price momentum. The final formula—3 * (ema1 - ema2) + ema3—produces a highly responsive indicator that filters out short-term noise.
Double Exponential Moving Average (DEMA):
Through the dema(src, len) function, DEMA calculates an EMA and then a second EMA on top of it. Its simplified formula of 2 * ema1 - ema2 provides a smoother curve than a single EMA while maintaining enhanced responsiveness.
Volume Weighted Moving Average (VWMA):
With vwma(src, len), this MA accounts for trading volume by weighting the price, thereby offering a more contextual picture of market activity. This is crucial when volume spikes indicate significant moves.
Zero Lag EMA (ZLEMA):
The zlema(src, len) function applies a correction to reduce the inherent lag found in EMAs. By subtracting a calculated lag (based on half the moving average window), ZLEMA is exceptionally attuned to recent price movements.
Arnaud Legoux Moving Average (ALMA):
The alma(src, len, offset, sigma) function introduces ALMA—a type of moving average designed to be less affected by outliers. With parameters for offset and sigma, it allows customization of the degree to which the MA reacts to market noise.
Kaufman Adaptive Moving Average (KAMA):
The custom kama(src, len) function is noteworthy for its adaptive nature. It computes an efficiency ratio by comparing price change against volatility, then dynamically adjusts its smoothing constant. This results in an MA that quickly responds during trending periods while remaining smoothed during consolidation.
Each of these functions—integrated into the strategy—is selectable by the trader (via the fastMAType and slowMAType inputs). This flexibility permits the tailored application of the MA most suited to current market dynamics and individual risk management preferences.
2. ATR-Based Filters and Risk Controls
ATR Calculation and Volatility Filter:
The strategy computes the Average True Range (ATR) over a user-defined period (atrPeriod). ATR is then used to derive both:
Volatility Assessment: Expressed as a ratio of ATR to closing price, ensuring that trades are taken only when volatility remains within a safe, predefined threshold (volatilityThreshold).
ATR-Based Entry Filters: Implemented as atrFilterLong and atrFilterShort, these conditions ensure that for long entries the price is sufficiently above the slow MA and vice versa for shorts. This acts as an additional confirmation filter.
Dynamic Exit Management:
The exit logic employs a dual approach:
Fixed Stop and Profit Target: Stops and targets are set at multiples of ATR (fixedStopMultiplier and profitTargetATRMult), helping manage risk in volatile markets.
Trailing Stop Adjustments: A trailing stop is calculated using the ATR multiplied by a user-defined offset (trailOffset), which captures additional profits as the trade moves favorably while protecting against reversals.
3. Multi-Timeframe Trend Filtering
The strategy enhances its signal reliability by leveraging a secondary, higher timeframe analysis:
15-Minute Trend Analysis:
By retrieving 15-minute moving averages (fastMA15m and slowMA15m) via request.security, the strategy determines the broader market trend. This secondary filter (enabled or disabled through useTrendFilter) ensures that entries are aligned with the prevailing market direction, thereby reducing the incidence of false signals.
4. Signal and Execution Logic
Combined MA Alignment:
The entry conditions are based primarily on the alignment of the fast and slow MAs. A long condition is triggered when the current price is above both MAs and the fast MA is above the slow MA—complemented by the ATR filter and volume conditions. The reverse applies for a short condition.
Volume and Time Window Validation:
Trades are permitted only if the current volume exceeds a minimum (minVolume) and the current hour falls within the predefined trading window (tradingStartHour to tradingEndHour). An additional volume spike check (comparing current volume to a moving average of past volumes) further filters for optimal market conditions.
Comprehensive Order Execution:
The strategy utilizes flexible order execution functions that allow pyramiding (up to 10 positions), ensuring that it can scale into positions as favorable conditions persist. The use of both market entries and automated exits (with profit targets, stop-losses, and trailing stops) ensures that risk is managed at every step.
5. Integrated Dashboard and Metrics
For transparency and real-time analysis, the strategy includes:
On-Chart Visualizations:
Both fast and slow MAs are plotted on the chart, making it easy to see the market’s technical foundation.
Dynamic Metrics Dashboard:
A built-in table displays crucial performance statistics—including current profit/loss, equity, ATR (both raw and as a percentage), and the percentage gap between the moving averages. These metrics offer immediate insight into the health and performance of the strategy.
Input Parameters: Detailed Breakdown
Every input is meticulously designed to offer granular control:
Fast & Slow Lengths:
Determine the window size for the fast and slow moving averages. Smaller values yield more sensitivity, while larger values provide a smoother, delayed response.
Fast/Slow MA Types:
Choose the type of moving average for fast and slow signals. The versatility—from basic SMA and EMA to more complex ones like HMA, TEMA, ZLEMA, ALMA, and KAMA—allows customization to fit different market scenarios.
ATR Parameters:
atrPeriod and atrMultiplier shape the volatility assessment, directly affecting entry filters and risk management through stop-loss and profit target levels.
Trend and Volume Filters:
Inputs such as useTrendFilter, minVolume, and the volume spike condition help confirm that a trade occurs in active, trending markets rather than during periods of low liquidity or market noise.
Trading Hours:
Restricting trade execution to specific hours (tradingStartHour and tradingEndHour) helps avoid illiquid or choppy markets outside of prime trading sessions.
Exit Strategies:
Parameters like trailOffset, profitTargetATRMult, and fixedStopMultiplier provide multiple layers of risk management and profit protection by tailoring how exits are generated relative to current market conditions.
Pyramiding and Fixed Trade Quantity:
The strategy supports multiple entries within a trend (up to 10 positions) and sets a predefined trade quantity (fixedQuantity) to maintain consistent exposure and risk per trade.
Dashboard Controls:
The resetDashboard input allows for on-the-fly resetting of performance metrics, keeping the strategy’s performance dashboard accurate and up-to-date.
Why This Strategy is Truly Exceptional
Multi-Faceted Adaptability:
The ability to switch seamlessly between various moving average types—each suited to particular market conditions—enables the strategy to adapt dynamically. This is a testament to the high level of coding sophistication and market insight infused within the system.
Robust Risk Management:
The integration of ATR-based stops, profit targets, and trailing stops ensures that every trade is executed with well-defined risk parameters. The system is designed to mitigate unexpected market swings while optimizing profit capture.
Comprehensive Market Filtering:
By combining moving average crossovers with volume analysis, volatility thresholds, and multi-timeframe trend filters, the strategy only enters trades under the most favorable conditions. This multi-layered filtering reduces noise and enhances signal quality.
-Final Thoughts-
The Dskyz Adaptive Futures Elite (DAFE) MAtrix with ATR-Powered Precision strategy is not just another trading algorithm—it is a multi-dimensional, fully customizable system built on advanced technical principles and sophisticated risk management techniques. Every function and input parameter has been carefully engineered to provide traders with a system that is both powerful and transparent.
For clients seeking a state-of-the-art trading solution that adapts dynamically to market conditions while maintaining strict discipline in risk management, this strategy truly stands in a class of its own.
****Please show support if you enjoyed this strategy. I'll have more coming out in the near future!!
-Dskyz
Caution
DAFE is experimental, not a profit guarantee. Futures trading risks significant losses due to leverage. Backtest, simulate, and monitor actively before live use. All trading decisions are your responsibility.
PBOC Balance Sheet (Approx USD Trillions)This indicator displays the People's Bank of China (PBOC) Balance Sheet in approximate USD trillions, converted from CNY data (ECONOMICS:CNCBBS) using a fixed exchange rate of 1 USD ≈ 7 CNY. The data is smoothed with a 3-month SMA and plotted as a black line in a separate pane, with a reference line at 6.0 USD trillions. Ideal for analyzing long-term macroeconomic trends and correlations with other financial metrics like bond yields or asset prices, it includes error handling for missing data to ensure reliable visualization.
China 10-Year Yield Inverted with Time Lead (Months)The "China 10-Year Yield Inverted with Time Lead (Months)" indicator is a Pine Script tool for TradingView that displays the inverted China 10-Year Government Bond Yield (sourced from TVC:CN10Y) with a user-defined time lead or lag in months. The yield is inverted by multiplying it by -1, making a rising yield appear as a downward movement and vice versa, which helps visualize inverse correlations with other assets. Users can input the number of months to shift the yield forward (lead) or backward (lag), with the shift calculated based on the chart’s timeframe (e.g., 20 bars per month on daily charts). The indicator plots the shifted, inverted yield as a blue line in a separate pane, with a zero line for reference, enabling traders to analyze leading or lagging relationships with other financial data, such as the PBOC Balance Sheet or Bitcoin price.
Relative Strength MatrixThe Relative Strength Matrix (RSPS M) is a powerful comparison tool that analyzes and ranks up to 10 selected assets based on their relative performance. It does this by calculating price ratios between all asset pairs and applying a consistent strength criterion across each comparison. The results are displayed in a live-updating matrix, showing how each asset performs relative to the rest of the group.
By default, the indicator uses a momentum-based approach (via RSI) to evaluate strength, but it’s fully customizable. Users can modify the valuation logic by replacing the built-in ta.rsi function under the “Inputs your criterion below” section in the code. This makes the tool highly flexible—allowing for different styles of comparison such as trend-following, volatility-adjusted, or custom factor-based ranking methods.
Each asset’s total dominance score is color-coded and ranked, making it easy to spot outperformers and underperformers within any chosen basket. Whether you're tracking crypto pairs, sectors, or other groups, RSPS M provides a clear, objective framework for relative strength monitoring and rotation strategies—perfect for spotting leaders, laggards, and shifts in momentum across markets.