Reversal Trend by S B PrasadReversal Trend by S B Prasad (Reversal Pro v3.0)
📝 TradingView Publish Description
Reversal Trend by S B Prasad – Reversal Pro v3.0 is a high-precision, non-repainting reversal detection system designed to identify major market turning points in real time.
This indicator combines:
Adaptive ZigZag logic
ATR + Percentage-based volatility filtering
EMA trend structure
Optional early preview signals
to deliver reliable bullish and bearish reversal signals across all markets and timeframes.
🚀 Key Features
✅ 1. Non-Repainting Confirmed Reversals
Confirmed reversal signals are generated only after price has moved beyond a dynamic volatility-adjusted threshold.
Once plotted, these signals never repaint.
🔍 2. Adaptive Volatility Threshold
Reversal detection automatically adjusts to market conditions using:
ATR (Average True Range)
Percentage price movement
Absolute minimum reversal distance
This ensures:
Fewer false signals in choppy markets
Faster detection in trending markets
⚙️ 3. Sensitivity Presets + Custom Mode
Choose from built-in presets:
Very High
High
Medium
Low
Very Low
Or use Custom Mode to fine-tune:
ATR Multiplier
Percentage Reversal
Absolute Reversal
ATR Length
📈 4. EMA Trend Filter
Integrated triple-EMA structure (9 / 14 / 21):
Identifies bullish, bearish, and neutral trend states
Helps align reversals with dominant trend direction
Reduces counter-trend false signals
👀 5. Preview Mode (Early Reversal Detection)
Optional preview signals highlight potential upcoming reversals before full confirmation.
Signal Modes:
Confirmed Only
Confirmed + Preview
Preview Only
⚠️ Preview signals are exploratory and may disappear if price invalidates the reversal.
🧠 6. Smart Signal State Engine
Maintains a clean bullish / bearish reversal state:
Bullish reversal → trend flips upward
Bearish reversal → trend flips downward
Automatically resets when structure is invalidated
🔔 7. Built-in Alerts
Alerts available for:
Bullish Reversal
Bearish Reversal
Any Reversal
EMA Buy Signal
EMA Sell Signal
📌 How to Use
▶️ Trend-Following Strategy
Wait for EMA trend alignment
Enter on a confirmed reversal in trend direction
Use recent swing high/low for stop-loss
Trail profits using higher-low / lower-high structure
🔄 Counter-Trend Reversal Strategy
Use higher sensitivity
Look for strong extended moves
Enter on confirmed reversal
Exit at next EMA cross or opposite reversal
⚙️ Recommended Settings
Style Sensitivity Confirmation Bars
Scalping High 0–1
Intraday Medium 0–2
Swing Low 1–3
📎 Best Markets
Crypto
Forex
Indices
Stocks
Commodities
Works on all timeframes (1m → 1D+).
Trend Analysis
SMC Study: Buy & Sell Traps (Pro) - Levels OnlySMC Study: Buy & Sell Traps (Pro) — Levels Only
SMC Study: Buy & Sell Traps (Pro) — Levels Only is a Smart Money Concepts (SMC) based indicator designed to display key Support & Resistance levels on the chart. It helps traders identify important price zones where liquidity and market reactions are likely.
How it works:
- Pivot Highs are plotted as Resistance levels (red lines).
- Pivot Lows are plotted as Support levels (blue lines).
- Levels are filtered by ATR buffer, candle body strength, and optional volume confirmation.
- Lines automatically extend and update as new pivots form.
- No buy/sell signals, arrows, or alerts; clean structural levels only.
How to use:
- Use the levels as key reaction zones for potential entries.
- Support lines can indicate potential bullish bounces.
- Resistance lines can indicate potential bearish reversals.
- Combine with price action, market structure, and higher timeframe analysis.
- Suitable for all timeframes and markets.
Visuals:
- Blue horizontal lines: Support
- Red horizontal lines: Resistance
- Solid, dashed, or dotted lines (customizable)
- Lines extend dynamically with price movement
Important Notes:
- This indicator is for analysis only and does not generate trading signals.
- Proper risk management is required before taking any trades.
- Best used in conjunction with price action and structural analysis.
License:
Creative Commons BY-NC 4.0 (Open Source)
Free to use, modify, and share with attribution. Commercial use prohibited.
Disclaimer:
Educational purposes only. Trading involves risk.
Live Daily HA Background (RTH)This indicator paints the backsground with the daily heikin ashi color
cephxs + fadi / HTF PSPHTF PSP - PRECISION SWING POINTS
Detect divergence-based Precision Swing Points (PSPs) across multiple higher timeframes with automatic correlated asset detection.
WHAT'S NEW (vs Original HTF Candles)
This indicator builds on @fadizeidan's excellent ICT HTF Candles foundation with significant new functionality, depending on who you ask of course:
✨ PSP Divergence Detection: Automatically identifies Precision Swing Points where price diverges from correlated assets—the original has no divergence analysis
✨ Auto Asset Correlation: Uses AssetCorrelationUtils library to detect and pair correlated assets (ES↔NQ↔DXY, BTC↔ETH, Gold↔Silver, etc.)—no manual setup required
✨ Multi-Asset Comparison: Tracks up to 3 correlated assets simultaneously with divergence relationships between all pairs
✨ Dynamic Asset Reordering: When you switch charts, the indicator automatically reorders assets so your chart is always primary
✨ Inverse Correlation Support: Properly handles inversely correlated assets like DXY (bullish DXY = bearish signal for risk assets)
✨ HTF Sweep Detection: New sweep line feature highlights when HTF candles take out previous highs/lows and close back inside. One of my followers asked me for this, there you go anon.
🔧 Streamlined to 3 HTFs: Focused design with 3 HTF slots (vs 6) for cleaner charts and better performance
The original remains excellent for pure HTF candle visualization. This version adds institutional flow analysis through divergence detection.
WHAT IT DOES
This indicator displays Higher Timeframe (HTF) candles to the right of your chart and highlights Precision Swing Points—pivots where price diverges from correlated assets. When ES makes a new high but NQ doesn't follow, or gold pushes higher while DXY fails to confirm, you're looking at institutional repositioning.
PSPs mark these moments on your HTF candles, giving you a clean visual signal for potential reversals.
HOW IT WORKS
Divergence Detection
The indicator compares price action between your chart and up to two correlated assets. A divergence occurs when one asset makes a directional move (bullish/bearish candle) while a correlated asset moves the opposite direction.
Three divergence relationships are tracked:
Primary vs Secondary (e.g., ES vs NQ)
Primary vs Tertiary (e.g., ES vs DXY)
Secondary vs Tertiary (e.g., NQ vs DXY)
PSP Confirmation
A candle is marked as a PSP when:
A divergence exists between correlated assets
A swing pivot forms (high > previous high AND high > next high, or vice versa for lows)
This dual confirmation filters noise and highlights only meaningful institutional activity.
Automatic Asset Detection
In Auto mode, the indicator uses the AssetCorrelationUtils library to detect your chart's asset class and automatically select the most relevant correlated pairs:
Indices: ES ↔ NQ ↔ DXY, YM ↔ ES ↔ NQ
Forex: EURUSD ↔ DXY ↔ GBPUSD, USDJPY ↔ DXY ↔ US10Y
Crypto: BTC ↔ ETH ↔ DXY
Metals: Gold ↔ Silver ↔ DXY
Energy: CL (Oil) ↔ NG ↔ DXY
HTF Sweep Detection
Sweeps are detected when an HTF candle (C2) takes out the high or low of the previous candle (C1) and then closes back inside. This marks liquidity grabs on the higher timeframe.
HOW TO USE
Enable HTF timeframes: Select 1-3 higher timeframes relevant to your trading style (e.g., 30m, 90m, 4H for intraday traders)
Watch for PSP candles: When a candle body color changes to the divergence color, a PSP has formed
Note the direction: Bullish divergence (your asset bullish while correlated asset bearish) suggests upside; bearish divergence suggests downside
Combine with LTF structure: Use PSPs as bias, then look for entry on lower timeframes (CHoCH, FVG, etc.)
Sweeps confirm liquidity: A sweep followed by a PSP is a strong reversal signal
INPUTS
HTF Selection
HTF 1/2/3: Enable/disable each HTF slot with timeframe and candle count
Custom Daily Open: Use Midnight, 8:30, or 9:30 ET as daily candle open
Styling
Body/Border/Wick Colors: Customize bullish and bearish candle appearance
Padding/Buffer/HTF Buffer: Control spacing between candles and timeframe groups
Labels
HTF Label: Show timeframe name above/below candles
Remaining Time: Countdown to candle close
Label Position: Top, Bottom, or Both
Label Alignment: Align across timeframes or follow individual candles
Interval Value: Show interval details on candles
Imbalance
Fair Value Gap: Highlight FVGs on HTF candles
Volume Imbalance: Highlight VIs on HTF candles
HTF Sweeps: Show sweep lines when C2 takes out C1's high/low
Trace
Trace Lines: Draw lines from HTF candle OHLC levels back to chart price
Anchor: Anchor to first or last timeframe
PSP Divergence Detection
Precise Mode: Only highlight pivots on current asset (stricter confirmation)
Divergence Body Colors: Custom colors for bullish/bearish divergence candles
Asset Selection
Correlation Preset: Auto (library-detected) or Manual
Manual Assets 1/2/3: Specify custom correlated assets
Invert Asset 3: Flip the bullish/bearish interpretation for inverse correlations (e.g., DXY)
KEY FEATURES
Multi-HTF Display: Up to 3 higher timeframes displayed simultaneously
Auto Asset Detection: Automatically finds relevant correlated assets for your chart
Dynamic Reordering: When you switch charts, assets reorder so the chart is always primary
Inverse Correlation Support: Properly handles DXY and other inversely correlated assets
HTF Sweep Detection: Highlights liquidity grabs on higher timeframes
FVG/VI Detection: Fair Value Gaps and Volume Imbalances on HTF candles
Remaining Time Counter: Know exactly when the next HTF candle closes
BEST PRACTICES
Use PSPs as directional bias, not direct entries—wait for LTF confirmation
A PSP at a key level (previous day high, weekly open) carries more weight
Multiple PSPs across different HTFs pointing the same direction = stronger signal
Sweeps that fail to hold (sweep + PSP) often mark significant reversals
In Auto mode, trust the library's asset selection—it's been tuned for common correlations
DISCLAIMER
This indicator is for educational purposes only and does not constitute financial advice. Divergences and PSPs do not guarantee reversals—always use proper risk management and confirm signals with your own analysis. Past performance does not guarantee future results.
CREDITS
Original HTF candle plotting concept by @fadizeidan. PSP divergence detection and asset correlation logic by cephxs & fstarcapital. Uses the AssetCorrelationUtils library by fstarcapital.
Open Sourced For all.
Enjoy.
Made with ❤️ by cephxs + fadi
cephxs + fadi / Previous Time Based Dealing RangesPREVIOUS TIME BASED DEALING RANGES
Visualize previous and current higher timeframe dealing ranges with dual-box OHLC representation, extending reference lines, and HTF candle displays.
Open Source Fork of @fadizeidan 's HTF Candles Indicator
OVERVIEW
This indicator displays time-based dealing ranges from higher timeframes directly on your chart. It shows the complete price action structure of previous (or current/forming) periods using a dual-box system: one box for the full High-Low range and another for the Open-Close body. Reference lines extend from key levels to help identify potential support, resistance, and mean reversion zones.
Perfect for traders who use ICT concepts, market structure analysis, or any methodology that relies on understanding where price has been relative to previous dealing ranges.
KEY FEATURES
Dual-Box Range Visualization: Each range displays two boxes - the full H-L range (outer) and the O-C body (inner) - giving immediate visual context of candle structure
Multiple Timeframes: Support for 90m, 4H, 6H, 1D, 1W, 1M, and 3M ranges
Previous/Current Mode: View completed ranges (Previous) or the forming range (Current) with real-time updates
Auto Mode: Automatically selects the appropriate range based on your chart timeframe
Reference Lines: Extending lines from High, Mid, Low (or Quadrants: H/75/M/25/L) with trade-into detection
HTF Candle Display: Visual HTF candles positioned to the right of price for context
6H Session Support: Session-aware ranges for Asia, London, NY AM, and NY PM with labeled names
Open Line: Vertical line marking the range's opening price/time
Imbalance Detection: Fair Value Gaps and Volume Imbalances highlighted on HTF candles
MODE OPTIONS
Previous/Current: Previous shows the last completed range. Current shows the forming range with dynamic H/L/C updates
Auto/Manual: Auto selects range by chart TF. Manual lets you choose specific ranges
Extend Box (Current): In Current mode, extends the box's right edge as price develops
AUTO MODE TIMEFRAME LOGIC
Auto mode now selects up to 3 ranges automatically based on chart timeframe, providing multi-timeframe context:
Chart ≤ 3m → 90m + 6H + 1D
Chart 4m-14m → 6H + 1D + 1W
Chart 15m-59m → 1D + 1W (+ 1M available)
Chart 1H-3H → 1D + 1W + 1M
Chart 4H-23H → 1W + 1M + 3M
Chart ≥ 1D → 1M + 3M
INPUTS
Mode
Mode: Previous/Current - Choose completed or forming range
Auto/Manual: Auto selects range by chart TF, Manual lets you choose
Extend Box (Current): Extends box right edge with price (Current mode only)
Show Range Boxes: Toggle box visibility (lines remain visible when off)
Filter Lines by Distance: When boxes are hidden, hide reference lines that are too far from current price (Really Close / Balanced / Slightly Far)
Previous Ranges
Range 1: Enable/disable, select timeframe (90m/4H/6H/1D/1W/1M/3M), max display count (1-2)
Range 2: Second range layer for multi-timeframe analysis
Range 3: Third range layer for additional context
Reference Lines
Line Mode: Levels (H/M/L) or Quadrants (H/75/M/25/L)
Line Style: Solid, dashed, or dotted
Line Thickness: 1-4 pixels
Show Labels: Toggle reference line labels
Label Offset: Distance of labels from current price (1-20 bars)
HTF Candle Levels: Show mini H/M/L lines on HTF candles
Open Line: Vertical line at range open with customizable style
Range Boxes & Colors
Per-Range Colors: Customize box and line colors for each timeframe (90m, 4H, 6H, 1D, 1W, 1M, 3M)
HTF Candle Styling
Show HTF Candles: Toggle HTF candle display
Body/Border/Wick Colors: Customize bull and bear candle appearance
Padding/Buffer/Width: Control candle spacing and size
Labels
HTF Label: Show timeframe label above/below candles
Remaining Time: Countdown timer to candle close
Label Position: Top, Bottom, or Both
Label Alignment: Align across timeframes or follow individual candles
Imbalance
Fair Value Gap: Highlight FVGs on HTF candles
Volume Imbalance: Highlight VIs on HTF candles
HOW TO USE
Add the indicator to your chart
Choose Previous or Current mode based on your analysis preference
Use Auto mode for intelligent range selection, or Manual to select specific timeframes
Reference lines extend from range levels - watch for price reactions at H/M/L
In Current mode, observe how the range develops with real-time updates
Use the HTF candles on the right for quick multi-timeframe context
REFERENCE LINE LABELS
Labels follow this format:
Previous mode: pD-H (previous Daily High), pW-M (previous Weekly Mid), p6H-London-L (previous 6H London Low)
Current mode: D-H (Daily High), W-M (Weekly Mid), 6H-Asia-L (6H Asia Low)
6H SESSION NAMES
Asia: 18:00-00:00 ET
London: 00:00-06:00 ET
NYAM: 06:00-12:00 ET
NYPM: 12:00-18:00 ET
RECOMMENDED TIMEFRAMES
Tick/Second charts: 90m ranges
1-5 minute charts: 6H or 1D ranges
15-60 minute charts: 1D or 1W ranges
4H charts: 1W or 1M ranges
Daily charts: 1M or 3M ranges
Or simply use Auto mode to let the indicator choose the optimal range.
TIPS
The Mid (M) level often acts as equilibrium - watch for mean reversion plays
High and Low levels are natural support/resistance zones
In Current mode, watch how price interacts with the forming range boundaries
Combine with your existing analysis for confluence
The Open Line helps identify the "true open" of each range for gap analysis
DISCLAIMER
This indicator is for educational and informational purposes only.
Past performance does not guarantee future results.
Always use proper risk management and never risk more than you can afford to lose.
Trading involves substantial risk of loss and is not suitable for all investors.
CREDITS
Original indicator by @fadizeidan.
Enhanced by cephxs/fstarcapital
CHANGELOG
Pro + v1.1: Reupload + Added 90m ranges for ultra-low timeframe analysis, distance-based line filtering (lines-only mode), third range slot.
Open sourced so users can add more slots.
Enjoy 🤙
Top 40 Best Performing Nasdaq Stocks with Advanced Stats ScreenWelcome to the CustomQuantLabs Advanced Stats Screener. This dashboard is designed for traders who need more than just price action—it provides a comprehensive, institutional-grade view of the "Top 40" performing assets in the Nasdaq (or any watchlist of your choice) at a single glance.
Instead of flipping through 40 different charts, this screener aggregates Performance Metrics and Advanced Statistical Risk Models into one clean, heatmap-style dashboard. It helps you instantly identify outliers, trend leaders, and potential mean-reversion setups.
Key Features
1. Multi-Timeframe Performance Heatmap Instantly spot momentum. The dashboard tracks returns across 5 key timeframes, color-coded with a dynamic heatmap (Bright Green for leaders, Bright Red for laggards):
Week% (Short-term momentum)
Month% & Quarter% (Medium-term trend)
6M% & 12M% (Long-term secular trend)
2. Institutional Risk Metrics (Advanced Stats) We go beyond simple percentage changes. This screener calculates complex statistical formulas for every single ticker in real-time:
Kelly Criterion (%): A money management formula used to determine optimal position size based on win probability and return ratio. A higher Kelly % suggests a statistically stronger "edge" based on recent history.
Sharpe Ratio: Measures risk-adjusted return. How much return are you getting for every unit of risk? (Values > 1.0 are generally considered good).
Sortino Ratio: Similar to Sharpe, but only penalizes downside volatility. This is crucial for distinguishing between "good volatility" (upside pumps) and "bad volatility" (crashes).
Z-Score: A mean-reversion metric. It measures how many standard deviations the current price is from its 20-day mean.
High Positive Z-Score (>2): Price may be overextended to the upside.
Low Negative Z-Score (<-2): Price may be oversold.
Volatility (%): A dynamic measure of the asset's daily range, helping you gauge the "personality" of the stock before entering.
Customization & Settings
Fully Customizable Watchlist: While pre-loaded with top Nasdaq performers (like NVDA, AMD, PLTR, MU), you can easily edit the "Symbols" input in the settings to track Crypto, Forex, or your own custom stock portfolio.
Smart Theme Detection: Includes a toggle for Dark Mode (ProjectSyndicate style) and Light Mode (Clean white style).
Compact Mode: You can toggle specific columns on or off to fit the table on smaller screens.
How to Use
Add the script to your chart.
Open Settings (Gear Icon).
Paste your list of 40 tickers into the "Ticker List" text area (separated by commas).
Use the Z-Score to find overbought/oversold setups and the Relative Strength (Week/Month) to find breakout candidates.
Disclaimer: This tool is for informational purposes only. The "Top 40" list requires manual updating if the market leaders change. All statistical metrics (Kelly, Sharpe, etc.) are based on historical data and do not guarantee future performance.
Built by CustomQuantLabs.
Daily & Weekly Levels (Sticky + Individual Alerts)🚀 Sticky Levels: PDH/PDL & Weekly High/Low
💡 Overview
This lightweight Pine Script v6 utility is designed for high-frequency traders and scalpers who require key Daily and Weekly levels without cluttering their price action. Optimized for speed and clarity, it ensures your most important S/R zones are always exactly where you need them.
🌟 Key Features
📌 Sticky Right Alignment – Labels are anchored to the right price scale using a customizable offset. They stay perfectly visible on mobile devices (Android/iOS) regardless of zoom level or scrolling.
⚡ Performance Optimized – Specifically built for low timeframes (15s, 1m, 5m). By using barstate.islast and tuple-based request.security calls, it ensures zero lag and minimal resource usage.
📅 Daily Levels – Instantly plot Previous Day High (PDH) and Previous Day Low (PDL).
🗓️ Weekly Levels – Monitor Previous Week High (PWH), Previous Week Low (PWL), and Current Weekly Open (WO).
🔔 Individual Alert Management – Granular control over notifications. You can manually enable/disable alerts for each specific level to avoid "alert fatigue."
💎 Clean Visuals – Uses elegant dashed lines and non-intrusive labels with an optional price display for pinpoint accuracy.
🛠️ How to Customize Your Setup
1. Visibility & Visuals
Toggle Levels: Turn each level on or off independently in the settings.
Label Offset: Adjust the "3cm" margin by changing the bar offset to fit your screen perfectly.
Price Toggle: Show or hide exact price values next to the labels.
2. Individual Alert Toggles In the settings menu, you will find a 🔔 icon next to each level. You can manually choose which specific levels should trigger a notification:
Enable PDH alerts for breakout trades.
Keep Weekly Open alerts off if you only use it as a visual bias.
Focus only on what matters for your strategy!
❓ Why use this script?
Standard horizontal lines often disappear when you scroll back in time or clutter the immediate price action on lower timeframes. This script solves that by keeping labels fixed at the right margin, providing a professional trading interface similar to high-end institutional platforms. Whether you are at your desk or trading on the go, your key levels remain clear and "sticky."
🚦 Quick Setup Guide
Add to Chart: Save the script and add it to your favorite symbols.
Configure: Open settings and check the "Alert" box for your desired levels.
Create Alert: Press Alt+A, set Condition to this indicator, and select "Any alert() function call".
Trade: Receive precise, non-spammy notifications directly to your phone or desktop.
ANTS MVP Indicator David Ryan's Institutional Accumulation🚀 ANTS MVP Indicator – David Ryan's Legendary Accumulation Signal
Discover stocks under heavy **institutional buying** before they explode — just like 3-time U.S. Investing Champion David Ryan used to crush the markets!
This is a faithful, open-source recreation of the famous **ANTS (Momentum-Volume-Price)** pattern popularized by David Ryan (protégé of William O'Neil / IBD / CAN SLIM fame). It scans for the classic 15-day "MVP" setup that often appears in early stages of massive winners.
Key Features:
• Colored "Ants" diamonds show signal strength:
- Gray: Momentum only (12+ up days in 15)
- Yellow: Momentum + Volume surge (≥20% avg volume increase)
- Blue: Momentum + Price gain (≥20% rise)
- Green: FULL MVP (all three!) – the strongest institutional demand signal!
• Toggle to show ONLY green ants for cleaner charts
• Position ants above or below bars
• Built-in alert for NEW green ants (copy the alert condition or use alert() triggers)
• Optional background highlight + label on the last bar for quick spotting
Why ANTS Works:
- Flags consistent up-days + volume explosion + solid price advance
- Often clusters before major breakouts (cup-with-handle, flat bases, etc.)
- Used by pros to find leaders early (think NVDA, TSLA, CELH runs)
- Great for daily charts + combining with RS Rating, earnings growth, and market uptrends
How to Use:
1. Add to daily stock charts
2. Watch for GREEN ants (full MVP) in bases or near pivots
3. Wait for volume breakout above resistance for entry
4. Set alerts for "GREEN ANTS MVP detected!" to catch them live
Fully open code – feel free to tweak thresholds (lookback, % gains, etc.)!
Inspired by public descriptions from IBD, Deepvue, and Ryan's teachings.
If this helps you spot winners, drop a ❤️ like, comment your biggest ANTS catch, and follow for more CAN SLIM-style tools!
Questions? Want screener tweaks or strategy version? Comment below!
#ANTS #DavidRyan #MVPPattern #InstitutionalAccumulation #CANSLIM #TradingView #MomentumTrading #StockScanner The time it takes for a stock to rise significantly after a green ANTS (full MVP) signal appears varies widely — there is no fixed or guaranteed timeframe. The ANTS indicator (developed by David Ryan) flags strong institutional accumulation over a rolling ~3-week (15-day) period, but the actual price breakout or major advance often comes later, after further consolidation or a proper setup.
Typical Timings from Real-World Usage and Examples
Short-term (days to weeks): Sometimes the green ants appear during or right at the start of a breakout — price can rise 10–30%+ in the following 1–4 weeks if momentum continues and volume supports it (e.g., Rocket Lab (RKLB) showed ANTS strength ahead of a powerful breakout in examples from IBD).
Medium-term (weeks to months): More commonly, green ants signal early accumulation while the stock is still building or tightening in a base (e.g., cup-with-handle, flat base, high tight flag, or pullback to 10/21 EMA). The big move (often 50–200%+) happens after the stock forms a proper buy point (pivot breakout on high volume), which can take 2–12 weeks after the first green ants.
Longer-term leaders: In historical CAN SLIM winners, ANTS often appeared during the stealth accumulation phase (before the stock became obvious), with the major multi-month/year run starting 1–6 months later once the market confirmed an uptrend and the stock broke out.
Key points from David Ryan/IBD sources:
ANTS is a demand confirmation tool, not a precise timing signal.
Many stocks with green ants are extended when the signal fires — wait for a pullback/consolidation before expecting the next leg up.
In strong bull markets, clusters of green ants over several bars increase the odds of an imminent or near-term move.
If no breakout follows within ~1–3 months (and market weakens), the signal may fizzle — cut losses or move on.
Bottom line: Expect 0–3 months for meaningful upside in good setups, but always wait for a classic buy point (breakout above resistance on volume) rather than buying the ants alone. Backtest examples (e.g., via TradingView replay on past leaders like NVDA, TSLA, or CELH during their runs) to see the lag in action.
Swing Trading Screener v2Updated Version of the Swing Trading Screener v1 due to the new Pinescript memory restrictions
Multi-Timeframe Trend Indicator with RSIEnhanced version of the original Multi-Timeframe Trend Indicator by @Ox_kali
This indicator analyzes trend direction across multiple timeframes using moving average crossovers. The original version by @Ox_kali has been enhanced with RSI (Relative Strength Index) functionality for more comprehensive market analysis.
Key Features:
- Multi-Timeframe Trend Analysis : Compares short-term vs. long-term moving averages across 14 different timeframes
- RSI Enhancement : Adds RSI readings for each timeframe with configurable overbought/oversold levels
- Visual Table Display : Shows trend direction (Up/Down) and RSI values in a color-coded table
- Average Trend Calculation : Computes an overall market bias from all active timeframes
- Customizable Alerts : Notifies on trend reversals and RSI extremes
Credits:
Original Multi-Timeframe Trend Indicator by @Ox_kali • RSI enhancement added for improved momentum analysis.
Smart Auto-Step Open (1H Base)The "Big Brother" to the 15m Open: While the 15m Open is perfect for scalping entries, this indicator is designed for Trend Direction & Bias. It automatically identifies the major Hourly and Daily opening levels, giving you the "Big Picture" context instantly.
🧠 Smart Auto-Step Logic: This script detects your timeframe and automatically upgrades the level to the next major resistance:
Intraday Mode (1s – 1H): Locks to the 1-Hour Open. This is your primary "Bull/Bear" line for the session.
Swing Mode (4H): Automatically switches to the 4-Hour Open.
Daily Mode (D): Automatically switches to the Daily Open.
Noise Filter: Hides automatically on intermediate frames (like 2H or 3H) to keep your chart clean.
✨ Luxury Visuals:
Floating Labels: No ugly boxes. Text floats cleanly in the right-side margin.
Custom Typography: Includes a "Luxury" setting that uses Bold Serif Unicode characters (e.g., 𝟏𝐇 𝐎𝐩𝐞𝐧) for a high-end, institutional look.
Dark Mode Optimized: Defaulted to Bright White for maximum contrast.
🚀 Key Features:
Zero-Lag Anchor: Uses time-based coordinates to ensure the line never repaints.
Smart Visibility: Works perfectly even if you are viewing the 1H chart itself (prevents the "disappearing line" bug).
Price Tags: Displays the exact price with a $ symbol.
PRO Strategy (The "Confluence" Setup): Load this indicator together with the "15m Open" version.
When Price is above the 15m Open AND the 1H Open → Strong Buy Signal.
When Price is below both → Strong Sell Signal.
Settings:
Font Style: Modern, Luxury, or Hacker.
Offset: Move the label right/left.
Color: Fully customizable.
EMA200 Momentum ZoneEMA200 Momentum Zone is a clean and minimal momentum-based indicator designed for intraday trading and scalping.
The script combines:
EMA200 as a fair value and trend filter
Parabolic SAR for timing
MACD momentum cross for confirmation
ATR-based zone filter to avoid chop near EMA and late entries at extremes
ATR-based take profit projection for quick decision-making
The indicator highlights only those moments when price is inside the optimal momentum zone — not too close to the mean, and not too far from it.
How it works:
Buy signals appear only in bullish conditions above EMA200
Sell signals appear only in bearish conditions below EMA200
Signals are filtered by minimum and maximum ATR distance from EMA200
A visual take-profit line is drawn using 1× ATR and remains active for a limited number of bars
TP labels show the projected move shown as a percentage for instant evaluation
Recommended use:
Designed for 1-minute charts
Works best on indices, gold, and liquid futures
Can be used as a signal tool or a momentum scanner
Alerts are supported
Important note:
This indicator is for educational purposes only and does not provide financial advice.
Always manage risk and confirm signals with your own analysis.
Key levels by Chav3zNY-Time Anchored Sessions
Visualizes the Asia, London, and New York sessions using customizable boxes or high/low lines. Unlike standard session indicators, this tool uses the America/New York time zone to ensure your session start and end times remain accurate throughout Daylight Savings changes.
2. Dynamic HTF Key Levels (PDH/PDL, PWH/PWL, PMH/PML)
Automatically plots the Previous Daily, Weekly, and Monthly Highs and Lows.
Clean Intraday Origin: To prevent "chart clutter," these lines do not drag across the entire historical data. They originate at the start of the current day (NY Midnight), providing a clean horizontal reference for the current trading session.
Lookback Control: Choose how many days of historical key levels you want to remain visible on your chart.
3. Custom Time-Anchored Levels
Includes two fully customizable "Price Anchors" (e.g., Midnight Open, 09:30 AM NY Open).
Origin Point Precision: Lines start exactly at the candle of the specified time (e.g., 09:30) and extend forward, rather than drawing through the pre-market.
Price Capture: Choose to anchor to the Open, High, or Low of that specific timestamp.
4. Full Aesthetic Customization
Every level (Daily, Weekly, Monthly, and Custom) can be individually styled:
Color & Visibility: Set each level to your preferred color (Defaulted to Black for a clean look).
Line Style: Toggle between Solid, Dashed, or Dotted lines.
Thickness: Adjust the line width (1px, 2px, etc.) for better visibility on high-resolution screens.
How to Use
Midnight Open: Set Level 1 to 0000 to track the Daily Open, a crucial level for determining daily bias.
NY Open: Set Level 2 to 0930 to mark the "Opening Range" anchor for the New York session.
Liquidity Targets: Use the PDH/PDL and PWH/PWL levels to identify draw-on-liquidity areas for intraday scalp or swing setups.
Supertrend + Stochastic StrategySUPERTREND + STOCHASTIC STRATEGY
═══════════════════════════════════════════════════════════════
📊 OVERVIEW
═══════════════════════════════════════════════════════════════
A professional trading indicator that combines the trend-following power of Supertrend with the momentum analysis of Stochastic Oscillator. This dual confirmation system helps traders identify high-probability entry and exit points by requiring both trend alignment and momentum confirmation.
═══════════════════════════════════════════════════════════════
🎯 HOW IT WORKS
═══════════════════════════════════════════════════════════════
The strategy uses two core components working together:
1. SUPERTREND INDICATOR (Trend Filter)
• Identifies the overall market direction
• Green line = Bullish trend
• Red line = Bearish trend
• Acts as the primary filter to avoid counter-trend trades
2. STOCHASTIC OSCILLATOR (Momentum Confirmation)
• Measures the strength of price movement
• K Line (fast) crosses D Line (slow) to generate signals
• Identifies oversold/overbought conditions
• Works behind the scenes to confirm trend changes
═══════════════════════════════════════════════════════════════
📈 SIGNAL LOGIC
═══════════════════════════════════════════════════════════════
BUY SIGNALS:
A buy signal is generated when ALL conditions are met:
✓ Supertrend changes from red to green (trend reversal)
✓ Price closes above the Supertrend line
✓ Stochastic K line crosses above D line
✓ Minimum distance from previous signal has passed
STRONG BUY SIGNALS:
Same as regular buy + coming from oversold zone (below 20)
• Considered more reliable
• Displayed as larger filled circle (●)
SELL SIGNALS:
A sell signal is generated when ALL conditions are met:
✓ Supertrend changes from green to red (trend reversal)
✓ Price closes below the Supertrend line
✓ Stochastic K line crosses below D line
✓ Minimum distance from previous signal has passed
STRONG SELL SIGNALS:
Same as regular sell + coming from overbought zone (above 80)
• Considered more reliable
• Displayed as larger filled circle (●)
═══════════════════════════════════════════════════════════════
⚙️ CUSTOMIZABLE SETTINGS
═══════════════════════════════════════════════════════════════
SUPERTREND SETTINGS:
• ATR Period (default: 10) - Controls sensitivity to price changes
• ATR Multiplier (default: 3.0) - Adjusts distance from price
STOCHASTIC SETTINGS:
• K Period (default: 14) - Lookback period for calculation
• D Period (default: 3) - Smoothing for signal line
• K Smoothing (default: 3) - Additional smoothing for K line
• Oversold Level (default: 20) - Defines oversold zone
• Overbought Level (default: 80) - Defines overbought zone
SIGNAL SETTINGS:
• Show Buy/Sell Signals - Toggle signal visibility
• Show Labels - Display text labels (when enabled, replaces circles)
• Professional Signal Style - Choose between circles (modern) or triangles (classic)
• Minimum Candles Between Signals (default: 5) - Reduces noise
• Strong Signals Only - Filter to show only high-quality signals
═══════════════════════════════════════════════════════════════
💡 HOW TO USE
═══════════════════════════════════════════════════════════════
FOR BEGINNERS:
1. Wait for a signal to appear on the chart
2. Verify price is moving in the signal direction
3. Enter the trade when the signal candle closes
4. Place stop loss below/above recent swing low/high
5. Exit when opposite signal appears or target is reached
FOR ADVANCED TRADERS:
1. Use "Strong Signals Only" for higher quality trades
2. Combine with support/resistance levels
3. Apply proper risk management (1-2% per trade)
4. Consider higher timeframe trend alignment
5. Avoid trading during major news events
BEST PRACTICES:
⚠️ Strong signals (●) are more reliable than regular signals (○)
📊 Works best on H1 timeframe and above
🎯 Enable "Strong Signals Only" to reduce false signals
📈 Most effective in trending markets
🔔 Set up alerts for instant notifications
═══════════════════════════════════════════════════════════════
🎨 VISUAL DISPLAY
═══════════════════════════════════════════════════════════════
DEFAULT MODE (Professional Style):
• Supertrend Line: Green (bullish) / Red (bearish)
• Strong Buy: Large green circle ●
• Regular Buy: Small green circle ○
• Strong Sell: Large red circle ●
• Regular Sell: Small red circle ○
• Dashboard: Live status display (top right)
WITH LABELS ENABLED:
• Text labels replace circles completely
• "STRONG BUY" / "BUY" / "STRONG SELL" / "SELL"
• Clean and clear text-based signals
CLASSIC MODE (Professional Style OFF):
• Traditional triangle arrows (▲ ▼)
• Larger triangles for strong signals
• Smaller triangles for regular signals
═══════════════════════════════════════════════════════════════
📊 RECOMMENDED TIMEFRAMES
═══════════════════════════════════════════════════════════════
✅ EXCELLENT: 4H, Daily, Weekly
⚠️ GOOD: 1H, 2H
❌ NOT RECOMMENDED: Below 1H (too much noise)
═══════════════════════════════════════════════════════════════
🎓 UNIQUE FEATURES
═══════════════════════════════════════════════════════════════
1. SMART FILTERING: Prevents repetitive signals within short periods
2. DUAL CONFIRMATION: Combines trend and momentum for stronger signals
3. SIGNAL CLASSIFICATION: Distinguishes between strong and regular signals
4. COMPREHENSIVE ALERTS: Instant notifications for all signal types
5. CLEAN INTERFACE: Professional design that doesn't clutter the chart
6. FULL FLEXIBILITY: All settings customizable to match your trading style
7. VISUAL OPTIONS: Choose between circles, triangles, or text labels
8. LIVE DASHBOARD: Real-time indicator status at a glance
═══════════════════════════════════════════════════════════════
⚠️ RISK DISCLOSURE
═══════════════════════════════════════════════════════════════
This indicator is a technical analysis tool and does NOT guarantee profits. Trading financial markets involves substantial risk and you may lose your entire capital.
IMPORTANT REMINDERS:
❌ Do not rely solely on this indicator
✅ Use strict risk management rules
✅ Test the strategy on a demo account first
✅ Combine with other technical analysis tools
✅ Never risk money you cannot afford to lose
✅ Past performance does not guarantee future results
This indicator is for educational and informational purposes only and should not be considered as financial advice.
═══════════════════════════════════════════════════════════════
📝 VERSION NOTES
═══════════════════════════════════════════════════════════════
VERSION 1.0 - Initial Release
• Supertrend + Stochastic integration
• Dual confirmation signal system
• Strong vs regular signal classification
• Smart signal filtering to reduce noise
• Professional circular display (default)
• Classic triangle display (optional)
• Text label display (optional)
• Live dashboard with indicator status
• Customizable alert system
• Full parameter flexibility
═══════════════════════════════════════════════════════════════
🔗 SUPPORT
═══════════════════════════════════════════════════════════════
If you have questions or suggestions for improving this indicator, please leave a comment below. Feedback is always appreciated!
═══════════════════════════════════════════════════════════════
Developed by: mfsz2015
Language: Pine Script v5
Type: Trading Indicator
License: Mozilla Public License 2.0
═══════════════════════════════════════════════════════════════
TAGS: #Supertrend #Stochastic #Strategy #Trading #TechnicalAnalysis #Signals #Forex #Crypto #Stocks #Momentum #Trend
US Recessions - ShadingThis indicator shades the chart background during every U.S. recession as dated by the National Bureau of Economic Research (NBER). Recessions are defined using NBER’s business cycle peak-to-trough months, and the script shades from the peak month through the trough month (inclusive) using monthly boundaries.
What it does
* Applies a shaded overlay on your chart **only during recession periods**.
* Works on any symbol and any timeframe (crypto, equities, FX, commodities, bonds, indices).
* Includes options to:
- Toggle shading on/off
- Choose your preferred shading colour
- Adjust transparency for readability
Why this overlay is important for analysing any asset class
Even if you trade or invest in assets that aren’t directly tied to U.S. GDP (like crypto or commodities), U.S. recessions often coincide with major shifts in:
-Risk appetite (risk-on vs risk-off behaviour)
-Liquidity conditions (credit availability, financial stress)
-Interest-rate expectations and central bank response
-Earnings expectations and corporate defaults
-Volatility regimes (large, sustained changes in volatility)
Having recession shading directly on the price chart helps you quickly see whether price action is happening in a historically “normal” expansion environment, or in a macro regime where behaviour can change dramatically. This is particularly useful in a deeper analysis like comparing GOLD to SPX. This chart makes it clear how in recessions the S&P bleeds against Gold therefor making the concept more visual and better for understanding.
Of course this is just an example of how it can be used, there are plenty of other factors which can be overlayed like unemployment and interest rates for an even better understanding.
Please DM majordistribution.inc on Instagram for any info - FREE - NO Course
Imbalance & Liquidity SweepOverview:
The Imbalance & Liquidity Sweep indicator is a technical analysis tool designed to help traders visualize potential institutional footprints in price action. It combines two key Smart Money Concepts (SMC):
Fair Value Gaps (FVG / Imbalance Zones)
Liquidity Sweeps (Stop Run Detection)
All signals are filtered using a trend bias based on a configurable EMA. This helps reduce counter-trend noise and highlights areas of potential price interest.
This script is for educational and analytical purposes only.
How It Works:
1️⃣ Trend Filter (EMA)
A configurable EMA (default 200) is used as the trend filter.
The indicator highlights bullish structures above the EMA and bearish structures below.
Optional higher timeframe EMA allows better trend alignment.
2️⃣ Imbalance / Fair Value Gap (FVG) Detection
Detects gaps in a 3-candle sequence where price leaves unfilled areas.
Zones are dynamically drawn as boxes and automatically invalidated once price trades through them.
Helps traders visualize potential areas of price reaction.
3️⃣ Liquidity Sweep Detection
Monitors swing highs and lows over a user-defined lookback period.
A "sweep" occurs when price briefly pierces these levels but closes back inside, suggesting a potential stop-loss run.
Bullish sweeps occur above swing lows in an uptrend; bearish sweeps occur below swing highs in a downtrend.
4️⃣ Auto-Invalidation
FVG zones dynamically close when filled by price.
Keeps charts clean and relevant for intraday analysis.
How to Use:
Observe a liquidity sweep label near recent highs/lows.
Confirm alignment with EMA trend filter (green = uptrend, red = downtrend).
Monitor nearby FVG boxes as potential areas of interest for price interaction.
Note: This indicator does not provide buy or sell signals. It only provides visual decision-support.
This indicator does not repaint.
Inputs / Customization:
EMA Length & Timeframe
Lookback for Swing High/Low
FVG Box Color
FVG Forward Bars & Live Extension
Minimum Sweep Size (to filter minor noise)
Optional FVG Box Padding
Alerts:
Bullish Sweep Detected
Bearish Sweep Detected
Alerts can be configured for notifications or webhook integration for educational tracking.
Disclaimer:
This indicator is intended solely for educational purposes. It does not constitute financial advice, trading recommendations, or signals. Users should perform their own analysis before making trading decisions.
I am a Pine Script developer focused on creating educational and analytical tools. This script complies with TradingView’s publishing guidelines and does not provide direct trading instructions.
RSI + KVO TriggerRSI + KVO Trigger is a momentum‑and‑volume indicator that combines a standard RSI with the Klinger Volume Oscillator’s trigger line in the same pane. It helps you see whether price momentum (RSI) and volume‑based money flow (KVO) are confirming each other or starting to diverge, using the same central 50/0 line for quick visual decisions.
-------------------------------
What the indicator shows.
In this script, the RSI 50 line is also the KVO “zero” line, so when:
RSI is above 50, price momentum is bullish.
KVO trigger is above that same line, volume/money flow is bullish.
Either one dipping below the line shows weakening in that dimension.
-------------------------------
Using it for entries.
You can think of the RSI as your main trend/momentum filter and the KVO trigger as confirmation (or a warning) from volume. Typical entry ideas:
Long setups:
RSI above 50 and rising, showing bullish momentum.
KVO trigger also above the midline or crossing up toward/through it, showing volume backing the move.
Extra aggressive: buy on pullbacks where RSI stays above 50 while KVO trigger turns back up above the line after a dip.
Short setups:
RSI below 50 and falling, showing bearish momentum.
KVO trigger below the midline or crossing down through it, showing selling pressure dominating.
Extra aggressive: short on bounces where RSI stays below 50 and KVO trigger rolls back down from near the midline.
-------------------------------------
Using it for exits and trade management.
You can also use the combination to manage open trades, watching for disagreement between price, RSI, and KVO. For example:
Exiting longs:
You’re in a long while RSI is above 50 and KVO trigger is above midline.
If KVO trigger drops below the midline first while RSI is still above 50, it can be an early warning that the trend is losing volume support, so you might tighten stops or scale out.
If RSI then also breaks below 50, that’s stronger confirmation to close the position or be very defensive.
Exiting shorts:
You’re in a short while RSI is below 50 and KVO trigger is below midline.
If KVO trigger pops above the midline ahead of RSI, it can signal selling pressure is fading; consider reducing size or tightening your stop.
A later RSI cross back above 50 can be your hard exit rule.
-------------------------------------
Divergences and “late‑trend” signals.
Because both lines share the same center level, it’s easy to spot situations where price is still trending but one of the components is lagging:
Bullish risk signal:
Price pushes higher, RSI stays above 50, but KVO trigger spends more time below the midline or fails to follow price higher.
This suggests a maturing/uptrend with weaker participation, making new longs riskier and encouraging partial profit‑taking or tighter stops.
Bearish risk signal:
Price makes lower lows, RSI stays below 50, but KVO trigger keeps drifting above the midline.
That can hint at hidden accumulation, where you might be more cautious with new shorts and watch for a trend reversal.
------------------------------------
Used this way, the indicator is not a standalone “buy/sell arrow,” but a structured way to demand agreement between momentum (RSI) and volume (KVO trigger) for entries, and to notice early when that agreement starts to break down for exits or risk management.
Weekly + Monthly Vertical Separator + LabelsA visual aid to organize your chart into clear time-based sections.
Vertical Dividers:
Distinct dashed lines for both new weeks and months.
Smart Labels:
Displays the Month name (Jan, Feb, etc.) and the Week number (W1, W2, etc.) at the top of the chart.
Hierarchy Logic:
Monthly indicators take priority to keep the chart clean.
CET/Berlin Time:
Perfectly synced for traders following European market sessions.
Candle Rush ProCandle Rush Pro highlights strong directional price moves formed by consecutive candles of the same direction.
The indicator tracks runs of bullish or bearish candles and measures the total price displacement of each run.
When the movement exceeds a user-defined threshold (in ticks/pipettes), it marks the chart with a clear visual signal.
🔹 Core features:
• Detects consecutive bullish and bearish candle runs
• Measures total displacement using Open–Close or High–Low range
• Signals only once per run (no repeated spam)
• Optional doji handling (ignore or break the run)
• Clean triangle markers anchored to candles
• Optional display of bar count per run
• Adjustable marker and text size
• Works on any timeframe and any symbol
• Non-repainting
🔹 Doji handling:
Users can choose whether doji candles should:
• Break the run
• Or be ignored (treated as neutral)
🔹 Typical use cases:
• Momentum detection
• Impulse move identification
• Breakout confirmation
• Trade filtering
• Market structure analysis
🔹 How it works:
A signal is plotted when:
• A minimum number of consecutive candles move in the same direction
• The total price displacement of the run exceeds the selected threshold
• The run has not already been signaled
This indicator does not predict direction.
It visually highlights significant directional price movement already in progress.
Best used together with:
• Trend filters
• Support & resistance
• Moving averages
• Market structure tools
Michael LipsiusTitle: Michael Multi-Timeframe Trend Dashboard (HTF Bias & LTF Execution)
Description:
Overview This indicator is a specialized Top-Down Analysis tool designed to assist traders in identifying the dominant market direction across multiple timeframes instantly. Built around the principles of Michael's Trading Strategy and institutional trend following, this dashboard eliminates the noise and provides a clear, color-coded directional bias (Prognosis) for both High Time Frame (HTF) structure and Low Time Frame (LTF) momentum.
Core Functionality The dashboard generates a real-time matrix displayed directly on the chart, analyzing price action relative to the 50-period Exponential Moving Average (EMA). This specific metric is chosen to filter out minor fluctuations and reveal the true institutional flow of money.
1. High Time Frame (HTF) Prognosis – The "Compass" The indicator monitors the Daily (D1) and 4-Hour (H4) timeframes to establish the macro trend.
Bullish 🟢: Price is holding above the 50 EMA. This indicates that Smart Money is accumulating, and traders should focus primarily on Long setups.
Bearish 🔴: Price is trading below the 50 EMA. This suggests institutional distribution, meaning Short setups have a higher probability of success.
Purpose: The HTF modules act as your safety filter. By respecting the D1/H4 signals, you avoid trading against the major trend, significantly reducing the risk of being stopped out by macro flows.
2. Low Time Frame (LTF) Execution – The "Trigger" Simultaneously, the indicator analyzes the 1-Hour (H1) and 15-Minute (M15) timeframes.
These timeframes are crucial for timing entries and managing intraday volatility.
Conflict Warning: If the HTF is Bullish (Green) but the LTF is Bearish (Red), the market is likely in a pullback phase. This warns the trader to wait for the LTF to realign with the HTF before entering.
How to Use This Tool This dashboard is designed to be the first step in your trading routine:
Check Confluence: Look for a "Full Green" or "Full Red" board. When D1, H4, and H1 align, the probability of a successful trade increases exponentially.
Identify Pullbacks: If D1/H4 are Green, but M15 is Red, do not sell. Instead, treat this as a discount phase and wait for the M15 to flip back to Green for a high-precision entry.
Risk Management: Use the HTF bias to determine your risk exposure. Trade with full risk only when HTF and LTF are aligned.
Settings & Customization
Table Position: Fully adjustable (Top Right, Bottom Right, etc.) to fit your workspace.
EMA Period: Default is set to 50 (Standard Michael Strategy), but can be adjusted to fit other strategies.
Visuals: Clean, non-intrusive design with clear color coding for instant readability.
Disclaimer This tool is for informational purposes only and serves as a trend-confirmation aid. It should be used in conjunction with price action analysis, key levels, and proper risk management.
BTC/XAU Correlation Crossing Delay PerformanceOVERVIEW
The BTC/XAU Correlation Crossing Delay Performance indicator is a specialized macro-tool designed to track the structural relationship between Bitcoin (Digital Gold) and Physical Gold. In institutional finance, these two assets represent the "Scarcity Complex." While they are often viewed as similar, they move in distinct Regime Shifts . This script identifies the exact moments of correlation decoupling—historically a lead indicator for major Bitcoin volatility and catch-up rallies.
THE IDEA: THE DECOUPLING SIGNAL
Traditional safe havens like Gold often act as a "Smoke Alarm" for geopolitical fear. Bitcoin, however, functions more as a "Fire Department" for global liquidity expansion. When the 52-week correlation between the two drops to zero or below, it signals a structural divergence.
Data from the past can suggest that such "Zero-Cross" events occur when Gold has front-run a price move, leaving Bitcoin at a relative valuation discount. This script marks these "Regime Shifts" (M-Markers) and measures the subsequent performance during a customizable Alpha Window .
CALCULATIONS & METHODOLOGY
The script utilizes the following logic to generate its data points:
• Purchasing Power Ratio: Calculated as Bitcoin Price divided by Gold Price. This shows exactly how many ounces of gold 1 BTC can buy.
• Pearson Correlation: A rolling 52-week calculation measuring the linear relationship between BTC and Gold prices.
• Zero-Cross Signal: A logic trigger/Marker that fires when the correlation value drops from a positive state to zero or a negative value.(M1 - M-n)
• Alpha Performance: A secondary calculation that captures the BTC price at the signal bar and compares it to the price exactly N-weeks later.
HOW TO READ THE CHART
• Orange Line: The current BTC/Gold ratio. A rising line means Bitcoin is gaining purchasing power against Gold.
• Orange Vertical Shapes (M-n): These mark the "M-Signals" where correlation broke (correlation ratio turned from positive to 0 or below on that bar). This is the "coiled spring" phase.
• Blue Vertical Shapes (Result): These appear after your defined Alpha Window (e.g., 12 weeks). They display the percentage change for both the Ratio and BTC/USD price since the M-n-signal.
• Blue Area (middle Lane): A visualization of the raw correlation value. When this cloud disappears toward the zero-level, a regime shift is in progress.
USER INPUTS
• Tickers: Choose your preferred Bitcoin and Gold sources (e.g., INDEX:BTCUSD or TVC:GOLD).
• Correlation Lookback: Default is 52 weeks, the institutional standard for measuring annual macro cycles.
• Alpha Window: Define the number of weeks (e.g., 12) you wish to track after a decoupling signal to verify historical catch-up trends.
TIMEFRAME
I view the data on the weekly timeframe. The script is optimized to run on this timeframe.
DISCLAIMER
This script is provided for educational and research purposes only. Correlation shifts are indicators of market structure changes and do not guarantee future price direction. Past performance of the BTC/Gold ratio is not an indicator of future results. Always use comprehensive risk management when trading high-volatility assets.
TAGS
Rob Maths, robmaths, Rob_Maths, Bitcoin, Gold, Ratio, Correlation, Macro
Trend Strength [OmegaTools]Trend Strength is a quantitative regime oscillator designed to measure directional pressure and trend quality by blending price structure, return-dependence, realized intrabar expansion, and volume participation into a single normalized signal. The goal is not to predict, but to classify market state: when price action is in an expansionary/distributionary phase versus when it is in a contractionary/accumulation phase, so you can align execution and risk with the prevailing environment.
Core concept and methodology
The indicator aggregates four components computed on stable rolling windows and mapped into comparable ranges:
1. Price location / structural positioning (100-bar range)
A normalized price-location metric (position of close within the rolling high–low range) is transformed into a non-linear “strength” profile. This emphasizes meaningful departures from the middle of the range and penalizes indecision, producing a structure-aware contribution rather than a raw oscillator.
2. Return-dependence / directional persistence (100 bars)
A correlation term measures the relationship between the current return (close − close ) and the prior price level (close ). This helps detect environments where movement is more persistent or more mean-reverting, providing a statistical component that complements pure price-location signals.
3. Realized expansion / volatility proxy (50-bar accumulation, 300-bar normalization)
Intrabar expansion is approximated via the absolute candle body relative to the full range, aggregated over a short window to represent realized “effort” and then normalized over a longer window. This captures whether price is moving with meaningful body expansion versus compressing and stalling.
4. Volume participation (11-bar accumulation, 300-bar normalization)
A rolling volume sum is normalized over a longer window to quantify participation. This helps separate “thin” moves from moves supported by broader activity, without relying on exchange-specific volume assumptions.
The final oscillator is a weighted blend of these four normalized components, scaled for readability. The output is intentionally centered around two actionable regimes rather than a symmetric overbought/oversold framework.
How to read the oscillator
Trend Strength is designed around two main thresholds:
- Distribution / Expansion regime (oscillator above 0)
When the oscillator is above 0, the market is classified as being in a higher-pressure expansion regime. This often corresponds to directional continuation potential, stronger impulse behavior, and reduced suitability for tight mean-reversion tactics.
- Accumulation / Contraction regime (oscillator below −1.3)
When the oscillator is below −1.3, the market is classified as being in a contraction/accumulation regime. This frequently corresponds to compression, rotation, and lower directional efficiency, where breakouts may be more fragile and mean-reversion tactics may be more appropriate (depending on instrument and session conditions).
Values between 0 and −1.3 are treated as transitional/neutral, where the market is not clearly committing to either regime.
Continuous Mode vs Standard Mode
Trend Strength includes an optional Continuous Mode to improve interpretability during regime transitions:
- Standard Mode colors only when the oscillator is firmly in one of the two regimes (above 0 or below −1.3). Neutral zones remain uncolored, keeping the display conservative.
- Continuous Mode adds persistence logic: once a regime is confirmed, intermediate values are rendered with a lighter shade of the last confirmed regime until the opposite regime is confirmed. This reduces visual noise, helps maintain a consistent directional bias framework, and is particularly useful for intraday execution and session trend management.
Visual design and bar coloring
The oscillator line is color-coded:
- Purple: distribution / expansion regime
- Orange: accumulation / contraction regime
Neutral/transitional values are displayed in grey (or lightly shaded in Continuous Mode based on last confirmed regime).
Optionally, the indicator can color price bars using the same regime logic, allowing rapid at-a-glance regime recognition directly on the chart.
Practical use cases
- Regime filter for strategies: enable trend-following logic only in expansion regimes; enable mean-reversion or range logic in contraction regimes.
- Risk adjustment: increase/decrease position sizing or tighten/widen stops based on regime classification.
- Confirmation layer: combine with structure tools (market structure, VWAP, key levels) to validate whether conditions support continuation or imply compression.
- Session management: identify when a session is behaving as a trend day versus a rotational day, improving trade selection and reducing overtrading.
Notes
Trend Strength is a regime classifier and contextual tool. It does not guarantee future direction and should be integrated into a complete decision process (risk management, market structure, session context, and instrument-specific behavior).
© OmegaTools






















