Volume Conversion IndicatorVolume Conversion Indicator 
The volume conversion indicator is much like the in-built volume indicator. This particular volume indicator allows you to find out how much of something has been traded in a given timeframe.
This is done by multiplying volume by the average price at that point.
 What does this mean? 
Well, say, for example, you were watching DGB/BTC (DigiByte/Bitcoin). Instead of the volume being displayed in the amount of DGB traded, the amount of BTC traded is displayed instead.
 Feel free to comment... Hope this helps :D
Wyszukaj w skryptach "电脑桌面显示BTC"
Indicator: Schaff Trend Cycle (STC)Another new indicator for TV community :)
STC detects up and down trends long before the MACD. It does this by using the same exponential moving averages (EMAs), but adds a cycle component to factor instrument cycle trends. STC gives more accuracy and reliability than the MACD.
More info: www.investopedia.com
Feel free to "Make mine" this chart and use the indicator in your charts. Appreciate any feedback on how effective this is for your instrument  (I have tested this only with BTC). 
 
For people trading BTC: 
------------------------------- 
Try 3/10 or 9/30 for MACD (fastLength/slowLength). They seem to catch the cycles better than the defaults. :)
US/SPY- Financial Regime Index Swing Strategy Credits: concept inspired by EdgeTools Bloomberg Financial Conditions Index (Proxy)
 
Improvements: eight component basket, inverse volatility weights, winsorization option( statistical technique used to limit the influence of outliers in a dataset by replacing extreme values with less extreme ones, rather than removing them entirely), slope and price gates, exit guards, table and gradients.
 Summary in one paragraph
 A macro regime swing strategy for index ETFs, futures, FX majors, and large cap equities on daily calculation with optional lower time execution. It acts only when a composite Financial Conditions proxy plus slope and an optional price filter align. Originality comes from an eight component macro basket with inverse volatility weights and winsorized return z scores that produce a portable yardstick. 
 Scope and intent 
Markets: SPY and peers, ES futures, ACWI, liquid FX majors, BTC, large cap equities.
Timeframes: calculation daily by default, trade on any chart.
Default demo: SPY on Daily.
Purpose: convert broad financial conditions into clear swing bias and exits.
 Originality and usefulness
 
Unique fusion: return z scores for eight liquid proxies with inverse volatility weighting and optional winsorization, then slope and price gates.
Failure mode addressed: false starts in chop and early shorts during easy liquidity.
Testability: all knobs are inputs and the table shows components and weights.
Portable yardstick: z scores center at zero so thresholds transfer across symbols.
 Method overview in plain language
 Base measures
Return basis: natural log return over a configurable window, standardized to a z score. Winsorization optional to cap extremes.
 Components
 EQ US and EQ GLB measure equity tone.
CREDIT uses LQD over HYG. Higher credit quality outperformance is risk off so sign is flipped after z score.
RATES2Y uses two year yield, sign flipped.
SLOPE uses ten minus two year yield spread.
USD uses DXY, sign flipped.
VOL uses VIX, sign flipped.
LIQ uses BIL over SPY, sign flipped.
Each component is smoothed by the composite EMA.
 Fusion rule 
Weighted sum where weights are equal or inverse volatility with exponent gamma, normalized to percent so they sum to one.
 Signal rule
 Long when composite crosses up the long threshold and its slope is positive and price is above the SMA filter, or when composite is above the configured always long floor.
Short when composite crosses down the short threshold and its slope is negative and price is below the SMA filter.
Long exit on cross down of the long exit line or on a fresh short signal.
Short exit on cross up of the short exit line or on a fresh long signal, or when composite falls below the force short exit guard.
 What you will see on the chart
 
Markers on suggestion bars: L for long, S for short, LX and SX for exits.
Reference lines at zero and soft regime bands at plus one and minus one.
Optional background gradient by regime intensity.
Compact table with component z, weight percent, and composite readout.
Table fields and quick reading guide
Component: EQ US, EQ GLB, CREDIT, RATES2Y, SLOPE, USD, VOL, LIQ.
Z: current standardized value, green for positive risk tone where applicable.
Weight: contribution percent after normalization.
Composite: current index value.
Reading tip: a broadly green Z column with slope positive often precedes better long context.
 Inputs with guidance
Setup
 
Calc timeframe: default Daily. Leave blank to inherit chart.
Lookback: 50 to 1500. Larger length stabilizes regimes and delays turns.
EMA smoothing: 1 to 200. Higher smooths noise and delays signals.
Normalization
Winsorize z at ±3: caps extremes to reduce one off shocks.
Return window for equities: 5 to 260. Shorter reacts faster.
Weighting
Weight lookback: 20 to 520.
Weight mode: Equal or InvVol.
InvVol exponent gamma: 0.1 to 3. Higher compresses noisy components more.
Signals
Trade side: Long Short or Both.
Entry threshold long and short: portable z thresholds.
Exit line long and short: soft exits that give back less.
Slope lookback bars: 1 to 20.
Always long floor bfci ≥ X: macro easy mode keep long.
Force short exit when bfci < Y: macro stress guard.
 Confirm 
Use price trend filter and Price SMA length.
 View 
Glow line and Show component table.
 Symbols 
SPY ACWI HYG LQD VIX DXY US02Y US10Y BIL are defaults and can be changed.
 Realism and responsible publication
 
No performance claims. Past is not future.
Shapes can move intrabar and settle on close.
Execution is on standard candles only.
 Honest limitations and failure modes
 
Major economic releases and illiquid sessions can break assumptions.
Very quiet regimes reduce contrast. Use longer windows or higher thresholds.
Component proxies are ETFs and indexes and cannot match a proprietary FCI exactly.
 Strategy notice
 Orders are simulated on standard candles. All security calls use lookahead off. Nonstandard chart types are not supported for strategies.
 Entries and exits
 
Long rule: bfci cross above long threshold with positive slope and optional price filter OR bfci above the always long floor.
Short rule: bfci cross below short threshold with negative slope and optional price filter.
Exit rules: long exit on bfci cross below long exit or on a short signal. Short exit on bfci cross above short exit or on a long signal or on force close guard.
 Position sizing
 Percent of equity by default. Keep target risk per trade low. One percent is a sensible starting point. For this example we used 3% of the total capital
 Commisions 
We used a 0.05% comission and 5 tick slippage
 Legal 
Education and research only. Not investment advice. Test in simulation first. Use realistic costs.
8x Heikin Ashi Streak (1m) by Bitcoin Benito🧭 Indicator Description: “8x Heikin Ashi Streak (1m) by Bitcoin Benito”
**Purpose:**
The *8x Heikin Ashi Streak* indicator helps traders quickly identify strong short-term momentum on the **1-minute timeframe**. It automatically tracks Heikin Ashi candles and alerts you whenever **8 consecutive bullish or bearish candles** appear — a visual cue that a strong intraday trend or exhaustion point might be forming.
---
🔍 **How It Works**
* The indicator continuously counts Heikin Ashi candles in real-time.
* When it detects **8 bullish (green)** or **8 bearish (red)** candles in a row:
  * A green ▲ marker appears **below** the 8th candle for bullish streaks.
  * A red ▼ marker appears **above** the 8th candle for bearish streaks.
* You can set alerts to automatically notify you when these streaks occur.
This makes it ideal for **momentum traders**, **scalpers**, and **trend-reversal spotters** who want to:
* Catch strong intraday moves early.
* Identify potential overextension zones before pullbacks.
* Automate alert signals for short-term trading setups.
IMPORTANT: Only trade when most of the 8 candles are below/above the EMA 8 Line respectively. Add an EMA 8 indicator to see if this is the case
---
⚙️ **How to Use**
1. **Apply to a 1-minute chart** (this script is optimized for 1m timeframes).
2. When the indicator plots a green or red triangle:
   * **Green triangle (8 bullish candles):** Trend momentum is strong upward.
   * **Red triangle (8 bearish candles):** Downward momentum is dominant.
3. Optionally, combine with volume or EMA filters to confirm breakouts or exhaustion.
---
🔔 **Setting Up Alerts**
* Click the **Alert (🔔)** icon on TradingView.
* Under *Condition*, select:
  * “8x Heikin Ashi Streak (1m)” → “8 Bullish Heikin Ashi (1m)”
  * OR “8x Heikin Ashi Streak (1m)” → “8 Bearish Heikin Ashi (1m)”
* Choose **Once per bar close** to trigger the alert when the 8th candle completes.
* Add your custom message, e.g.
  > “🚀 8 bullish Heikin Ashi candles in a row on 1-minute chart!”
  > “🔻 8 bearish Heikin Ashi candles in a row on 1-minute chart!”
---
 📊 **Best Practices**
* Works best on **liquid assets** (major forex pairs, indices, BTC/USD, etc.).
* Pair with **RSI**, **EMA**, or **Volume** indicators for stronger confirmation.
* Not a standalone buy/sell signal — treat it as a **momentum or exhaustion alert**.
* Can be adapted to other timeframes by changing chart resolution.
---
⚠️ **Disclaimer**
This indicator is for **educational and analytical purposes only**.
Trading carries risk — always test on demo accounts and use proper risk management.
No indicator guarantees profit; this is a tool for insight and timing, not financial advice.
Opening Range Breakout with Multi-Timeframe Liquidity]═══════════════════════════════════════
 OPENING RANGE BREAKOUT WITH MULTI-TIMEFRAME LIQUIDITY 
═══════════════════════════════════════
A professional Opening Range Breakout (ORB) indicator enhanced with multi-timeframe liquidity detection, trading session visualization, volume analysis, and trend confirmation tools. Designed for intraday trading with comprehensive alert system.
───────────────────────────────────────
 WHAT THIS INDICATOR DOES 
───────────────────────────────────────
This indicator combines multiple trading concepts:
- Opening Range Breakout (ORB) - Customizable time period detection with automatic high/low identification
- Multi-Timeframe Liquidity - HTF (Higher Timeframe) and LTF (Lower Timeframe) key level detection
- Trading Sessions - Tokyo, London, New York, and Sydney session visualization
- Volume Analysis - Volume spike detection and strength measurement
- Multi-Timeframe Confirmation - Trend bias from higher timeframes
- EMA Integration - Trend filter and dynamic support/resistance
- Smart Alerts - Quality-filtered breakout notifications
───────────────────────────────────────
 HOW IT WORKS 
───────────────────────────────────────
 OPENING RANGE BREAKOUT (ORB): 
Concept:
The Opening Range is a period at the start of a trading session where price establishes an initial high and low. Breakouts beyond this range often indicate the direction of the day's trend.
Detection Method:
- Default: 15-minute opening range (configurable)
- Custom Range: Set specific session times with timezone support
- Automatically identifies ORH (Opening Range High) and ORL (Opening Range Low)
- Tracks ORB mid-point for reference
Range Establishment:
1. Session starts (or custom time begins)
2. Tracks highest high and lowest low during the period
3. Range confirmed at end of opening period
4. Levels extend throughout the session
Breakout Detection:
- Bullish Breakout: Close above ORH
- Bearish Breakout: Close below ORL
- Mid-point acts as bias indicator
Visual Display:
- Shaded box during range formation
- Horizontal lines for ORH, ORL, and mid-point
- Labels showing level values
- Color-coded fills based on selected method
Fill Color Methods:
1. Session Comparison:
   - Green: Current OR mid > Previous OR mid
   - Red: Current OR mid < Previous OR mid
   - Gray: Equal or first session
   - Shows day-over-day momentum
2. Breakout Direction (Recommended):
   - Green: Price currently above ORH (bullish breakout)
   - Red: Price currently below ORL (bearish breakout)
   - Gray: Price inside range (no breakout)
   - Real-time breakout status
MULTI-TIMEFRAME LIQUIDITY:
Two-Tier System for comprehensive level identification:
HTF (Higher Timeframe) Key Liquidity:
- Default: 4H timeframe (configurable to Daily, Weekly)
- Identifies major institutional levels
- Uses pivot detection with adjustable parameters
- Suitable for swing highs/lows where large orders rest
LTF (Lower Timeframe) Key Liquidity:
- Default: 1H timeframe (configurable)
- Provides precision entry/exit levels
- Finer granularity for intraday trading
- Captures minor swing points
Calculation Method:
- Pivot high/low detection algorithm
- Configurable left bars (lookback) and right bars (confirmation)
- Timeframe multiplier for accurate multi-timeframe detection
- Automatic level extension
Mitigation System:
- Tracks when levels are swept (broken)
- Configurable mitigation type: Wick or Close-based
- Option to remove or show mitigated levels
- Display limit prevents chart clutter
Asset-Specific Optimization:
The indicator includes quick reference settings for different assets:
- Major Forex (EUR/USD, GBP/USD): Default settings optimal
- Crypto (BTC/ETH): Left=12, Right=4, Display=7
- Gold: HTF=1D, Left=20
 TRADING SESSIONS: 
Four Major Sessions with Full Customization:
Tokyo Session:
- Default: 04:00-13:00 UTC+4
- Asian trading hours
- Often sets daily range
London Session:
- Default: 11:00-20:00 UTC+4
- Highest liquidity period
- Major institutional activity
New York Session:
- Default: 16:00-01:00 UTC+4
- US market hours
- High-impact news events
Sydney Session:
- Default: 01:00-10:00 UTC+4
- Earliest Asian activity
- Lower volatility
Session Features:
- Shaded background boxes
- Session name labels
- Optional open/close lines
- Session high/low tracking with colored lines
- Each session has independent color settings
- Fully customizable times and timezones
VOLUME ANALYSIS:
Volume-Based Trade Confirmation:
Volume MA:
- Configurable period (default: 20)
- Establishes average volume baseline
- Used for spike detection
Volume Spike Detection:
- Identifies when volume exceeds MA * multiplier
- Default: 1.5x average volume
- Confirms breakout strength
Volume Strength Measurement:
- Calculates current volume as percentage of average
- Shows relative volume intensity
- Used in alert quality filtering
High Volume Bars:
- Identifies bars above 50th percentile
- Additional confirmation layer
- Indicates institutional participation
MULTI-TIMEFRAME CONFIRMATION:
Trend Bias from Higher Timeframes:
HTF 1 (Trend):
- Default: 1H timeframe
- Uses EMA to determine intermediate trend
- Compares current timeframe EMA to HTF EMA
HTF 2 (Bias):
- Default: 4H timeframe
- Uses 50 EMA for longer-term bias
- Confirms overall market direction
Bias Classifications:
- Bullish Bias: HTF close > HTF 50 EMA AND Current EMA > HTF1 EMA
- Bearish Bias: HTF close < HTF 50 EMA AND Current EMA < HTF1 EMA
- Neutral Bias: Mixed signals between timeframes
EMA Stack Analysis:
- Compares EMA alignment across timeframes
- +1: Bullish stack (lower TF EMA > higher TF EMA)
- -1: Bearish stack (lower TF EMA < higher TF EMA)
- 0: Neutral/crossed
Usage:
- Filters false breakouts
- Confirms trend direction
- Improves trade quality
 EMA INTEGRATION: 
Dynamic EMA for Trend Reference:
Features:
- Configurable period (default: 20)
- Customizable color and width
- Acts as dynamic support/resistance
- Trend filter for ORB trades
Application:
- Above EMA: Favor long breakouts
- Below EMA: Favor short breakouts
- EMA cross: Potential trend change
- Distance from EMA: Momentum gauge
SMART ALERT SYSTEM:
Quality-Filtered Breakout Notifications:
Alert Types:
1. Standard ORB Breakout
2. High Quality ORB Breakout
Quality Criteria:
- Volume Confirmation: Volume > 1.2x average
- MTF Confirmation: Bias aligned with breakout direction
Standard Alert:
- Basic breakout detection
- Price crosses ORH or ORL
- Icon: 🚀 (bullish) or 🔻 (bearish)
High Quality Alert:
- Both volume AND MTF confirmed
- Stronger probability setup
- Icon: 🚀⭐ (bullish) or 🔻⭐ (bearish)
Alert Information Includes:
- Alert quality rating
- Breakout level and current price
- Volume strength percentage (if enabled)
- MTF bias status (if enabled)
- Recommended action
One Alert Per Bar:
- Prevents alert spam
- Uses flag system to track sent alerts
- Resets on new ORB session
───────────────────────────────────────
 HOW TO USE 
───────────────────────────────────────
 OPENING RANGE SETUP: 
Basic Configuration:
1. Select time period for opening range (default: 15 minutes)
2. Choose fill color method (Breakout Direction recommended)
3. Enable historical data display if needed
Custom Range (Advanced):
1. Enable Custom Range toggle
2. Set specific session time (e.g., 0930-0945)
3. Select appropriate timezone
4. Useful for specific market opens (NYSE, LSE, etc.)
 LIQUIDITY LEVELS SETUP: 
Quick Configuration by Asset:
- Forex: Use default settings (Left=15, Right=5)
- Crypto: Set Left=12, Right=4, Display=7
- Gold: Set HTF=1D, Left=20
HTF Liquidity:
- Purpose: Major support/resistance levels
- Recommended: 4H for day trading, 1D for swing trading
- Use as profit targets or reversal zones
LTF Liquidity:
- Purpose: Entry/exit refinement
- Recommended: 1H for day trading, 4H for swing trading
- Use for position management
Mitigation Settings:
- Wick-based: More sensitive (default)
- Close-based: More conservative
- Remove or Show mitigated levels based on preference
TRADING SESSIONS SETUP:
Enable/Disable Sessions:
- Master toggle for all sessions
- Individual session controls
- Show/hide session names
Session High/Low Lines:
- Enable to see session extremes
- Each session has custom colors
- Useful for range trading
Customization:
- Adjust session times for your broker
- Set timezone to match your location
- Customize colors for visibility
 VOLUME ANALYSIS SETUP: 
Enable Volume Analysis:
1. Toggle on Volume Analysis
2. Set MA length (20 recommended)
3. Adjust spike multiplier (1.5 typical)
Usage:
- Confirm breakouts with volume
- Identify climactic moves
- Filter false signals
MULTI-TIMEFRAME SETUP:
HTF Selection:
- HTF 1 (Trend): 1H for day trading, 4H for swing
- HTF 2 (Bias): 4H for day trading, 1D for swing
Interpretation:
- Trade only with bias alignment
- Neutral bias: Be cautious
- Bias changes: Potential reversals
EMA SETUP:
Configuration:
- Period: 20 for responsive, 50 for smoother
- Color: Choose contrasting color
- Width: 1-2 for visibility
Usage:
- Filter trades: Long above, Short below
- Dynamic support/resistance reference
- Trend confirmation
ALERT SETUP:
TradingView Alert Creation:
1. Enable alerts in indicator settings
2. Enable ORB Breakout Alerts
3. Right-click chart → Add Alert
4. Select this indicator
5. Choose "Any alert() function call"
6. Configure delivery method (mobile, email, webhook)
Alert Filtering:
- All alerts include quality rating
- High Quality alerts = Volume + MTF confirmed
- Standard alerts = Basic breakout only
───────────────────────────────────────
 TRADING STRATEGIES 
───────────────────────────────────────
CLASSIC ORB STRATEGY:
Setup:
1. Wait for opening range to complete
2. Price breaks and closes above ORH or below ORL
3. Volume > average (if enabled)
4. MTF bias aligned (if enabled)
Entry:
- Bullish: Buy on break above ORH
- Bearish: Sell on break below ORL
- Consider retest entries for better risk/reward
Stop Loss:
- Bullish: Below ORL or range mid-point
- Bearish: Above ORH or range mid-point
- Adjust based on volatility
Targets:
- Initial: Range width extension (ORH + range width)
- Secondary: HTF liquidity levels
- Final: Session high/low or major support/resistance
ORB + LIQUIDITY CONFLUENCE:
Enhanced Setup:
1. Opening range established
2. HTF liquidity level near or beyond ORH/ORL
3. Breakout occurs with volume
4. Price targets the liquidity level
Entry:
- Enter on ORB breakout
- Target the HTF liquidity level
- Use LTF liquidity for position management
Management:
- Partial profits at ORB + range width
- Move stop to breakeven at LTF liquidity
- Final exit at HTF liquidity sweep
ORB REJECTION STRATEGY (Counter-Trend):
Setup:
1. Price breaks above ORH or below ORL
2. Weak volume (below average)
3. MTF bias opposite to breakout
4. Price closes back inside range
Entry:
- Failed bullish break: Short below ORH
- Failed bearish break: Long above ORL
Stop Loss:
- Beyond the failed breakout level
- Or beyond session extreme
Target:
- Opposite end of opening range
- Range mid-point for partial profit
SESSION-BASED ORB TRADING:
Tokyo Session:
- Typically narrower ranges
- Good for range trading
- Wait for London open breakout
London Session:
- Highest volume and volatility
- Strong ORB setups
- Major liquidity sweeps common
New York Session:
- Strong trending moves
- News-driven volatility
- Good for momentum trades
Sydney Session:
- Quieter conditions
- Suitable for range strategies
- Sets up Tokyo session
EMA-FILTERED ORB:
Rules:
- Only take bullish breaks if price > EMA
- Only take bearish breaks if price < EMA
- Ignore counter-trend breaks
Benefits:
- Reduces false signals
- Aligns with larger trend
- Improves win rate
───────────────────────────────────────
CONFIGURATION GUIDE
───────────────────────────────────────
OPENING RANGE SETTINGS:
Time Period:
- 15 min: Standard for most markets
- 30 min: Wider range, fewer breakouts
- 60 min: For slower markets or swing trades
Custom Range:
- Use for specific market opens
- NYSE: 0930-1000 EST
- LSE: 0800-0830 GMT
- Set timezone to match exchange
Historical Display:
- Enable: See all previous session data
- Disable: Cleaner chart, current session only
LIQUIDITY SETTINGS:
Left Bars (5-30):
- Lower: More frequent, sensitive levels
- Higher: Fewer, more significant levels
- Recommended: 15 for most markets
Right Bars (1-25):
- Confirmation period
- Higher: More reliable, less frequent
- Recommended: 5 for balance
Display Limit (1-20):
- Number of active levels shown
- Higher: More context, busier chart
- Recommended: 7 for clarity
Extension Options:
- Short: Levels visible near formation
- Current: Extended to current bar (recommended)
- Max: Extended indefinitely
VOLUME SETTINGS:
MA Length (5-50):
- Shorter: More responsive to spikes
- Longer: Smoother baseline
- Recommended: 20 for balance
Spike Multiplier (1.0-3.0):
- Lower: More sensitive spike detection
- Higher: Only extreme spikes
- Recommended: 1.5 for day trading
MULTI-TIMEFRAME SETTINGS:
HTF 1 (Trend):
- 5m chart: Use 15m or 1H
- 15m chart: Use 1H or 4H
- 1H chart: Use 4H or 1D
HTF 2 (Bias):
- One level higher than HTF 1
- Provides longer-term context
- Don't use same as HTF 1
EMA SETTINGS:
Length:
- 20: Responsive, more signals
- 50: Smoother, stronger filter
- 200: Long-term trend only
Style:
- Choose contrasting color
- Width 1-2 for visibility
- Match your trading style
───────────────────────────────────────
BEST PRACTICES
───────────────────────────────────────
Chart Timeframe Selection:
- ORB Trading: Use 5m or 15m charts
- Session Review: Use 1H or 4H charts
- Swing Trading: Use 1H or 4H charts
Quality Over Quantity:
- Wait for high-quality alerts (volume + MTF)
- Avoid trading every breakout
- Focus on confluence setups
Risk Management:
- Position size based on range width
- Wider ranges = smaller positions
- Use stop losses always
- Take partial profits at targets
Market Conditions:
- Best results in trending markets
- Reduce position size in choppy conditions
- Consider session overlaps for volatility
- Avoid trading near major news if inexperienced
Continuous Improvement:
- Track win rate by session
- Note which confluence factors work best
- Adjust settings based on market volatility
- Review performance weekly
───────────────────────────────────────
PERFORMANCE OPTIMIZATION
───────────────────────────────────────
This indicator is optimized with:
- max_bars_back declarations for efficient processing
- Conditional calculations based on enabled features
- Proper memory management for drawing objects
- Minimal recalculation on each bar
Best Practices:
- Disable unused features (sessions, MTF, volume)
- Limit historical display to reduce rendering
- Use appropriate timeframe for your strategy
- Clear old drawing objects periodically
───────────────────────────────────────
EDUCATIONAL DISCLAIMER
───────────────────────────────────────
This indicator combines established trading concepts:
- Opening Range Breakout theory (price action)
- Liquidity level detection (pivot analysis)
- Session-based trading (time-of-day patterns)
- Volume analysis (confirmation technique)
- Multi-timeframe analysis (trend alignment)
All calculations use standard technical analysis methods:
- Pivot high/low detection algorithms
- Moving averages for trend and volume
- Session time filtering
- Timeframe security functions
The indicator identifies potential trading setups but does not predict future price movements. Success requires proper application within a complete trading strategy including risk management, position sizing, and market context.
───────────────────────────────────────
USAGE DISCLAIMER
───────────────────────────────────────
This tool is for educational and analytical purposes. Opening Range Breakout trading involves substantial risk. The alert system and quality filters are designed to identify potential setups but do not guarantee profitability. Always conduct independent analysis, use proper risk management, and never risk capital you cannot afford to lose. Past performance does not indicate future results. Trading intraday breakouts requires experience and discipline.
───────────────────────────────────────
CREDITS & ATTRIBUTION
───────────────────────────────────────
ORIGINAL SOURCE:
This indicator builds upon concepts from LuxAlgo's-ORB
Market SessionsMarket Sessions (Asian, London, NY, Pacific) 
 Summary 
This indicator plots the main global market sessions (Asian, European, American, Pacific) as boxes on your chart, complete with dynamic high/low tracking.
It's an essential tool for intraday traders to track session-based volatility patterns and visualize key support/resistance levels (like the Asian Range) that often define price action for the rest of the day.
 Who it’s for 
Intraday traders, scalpers, and day traders who need to visualize market hours and session-based ranges. If your strategy depends on the London open, the New York close, or the Asian range, this script will map it out for you.
 What it shows 
Customizable Session Boxes: Four fully configurable boxes for the Asian, European (London), American (New York), and Pacific (Sydney) sessions.
Session High & Low: The script tracks and boxes the highest high and lowest low of each session, dynamically updating as the session progresses.
Session Labels: Clear labels (e.g., "AS", "EU") mark each session, anchored to the start time.
 Key Features 
Powerful Timezone Control: This is the core feature.
Use Exchange Timezone (Default): Simply enter session times (e.g., 8:00 for London) relative to the exchange's timezone (e.g., "NASDAQ" or "BINANCE").
Use UTC Offset: Uncheck the box and enter a UTC offset (e.g., +3 or -5). Now, all session times you enter are relative to that specific UTC offset. This gives you full control regardless of the chart you're on.
Fully Customizable: Toggle any session on/off.
Style Control: Change the fill color, border color, transparency, border width, and line style (Solid, Dashed, Dotted) for each session individually.
Smart Labels: Labels stay anchored to the start of the session (no "sliding") and float just above the session high.
 Why this helps 
Track Volatility & Market Behavior: Visually identify the "personality" of each session. Some sessions might consistently produce powerful pumps or dumps, while others are prone to sideways "chop" or accumulation. This indicator helps you see these repeating patterns.
Find Key Support/Resistance Levels: The High and Low of a session (e.g., the Asian Range) often become critical support and resistance levels for the next session (e.g., London). This script makes it easy to spot these "session-to-session" S/R flips and reactions.
Aid Statistical Analysis: The script provides the core visual data for your statistical research. You can easily track how often the London session breaks the Asian high, or which session is most likely to reverse the trend, helping you build a robust trading plan.
Context is King: Instantly see which market is active, which are overlapping (like the high-volume London-NY overlap), and which have closed.
 Quick setup 
Go to Timezone Settings.
 Decide how you want to enter times: 
Easy (Default): Leave Use Exchange Timezone checked. Enter session times based on the chart's native exchange (e.g., for BTC/USDT on Binance, use UTC+0 times).
Manual (Pro): Uncheck Use Exchange Timezone. Enter your UTC Offset (e.g., +2 for Berlin). Now, enter all session times as they appear on the clock in Berlin.
Go to each session tab (Asian, European...) to enable/disable it and set the correct start/end hours and minutes.
Style the colors to match your chart theme.
 Disclaimer 
 For educational/informational purposes only; not financial advice. Trading involves risk—manage it responsibly.
Scissors&Knifes V3.1✂️ The Scissors (PAG Chop V4 Engine)
🧠 Core idea
Scissors measure market compression and breakout readiness.
They use a modified Choppiness Index that looks at the relationship between:
True Range volatility (ATR × period length)
The total high–low range over the same window.
The smaller the ratio (sum of TR vs range), the more directional and impulsive the market is.
The higher the ratio, the more “sideways” the market trades.
This version smooths the result over PAG_SMOOTHLEN bars and applies several color bands that correspond to volatility states.
🎨 Color code meaning
Range	State	Color	Interpretation
≤ 30	Strong Red	#8B0000	Momentum exhaustion on downside, sellers dominating — about to reverse or already strong down-trend.
30 – 38	Brick Red	#A52A2A	Fading downside pressure; often the “bleeding edge” of a bearish climax.
38 – 55	Transparent	black (α≈100)	Neutral chop zone — indecision, range-building.
55 – 61.8	Yellow (optional)	#DAA520	Early compression pocket where volatility starts contracting; the calm before a trend.
61.8 – 70	Bright Green	#556B2F	Energy release phase: volatility breaking out upward.
≥ 70	Strong Green	#355E3B	Sustained bullish drive, often continuation leg of a trend.
🪶 Secret nuance:
The transition bands (38–45 and 45–55) are treated as fully transparent to mark “dead zones.”
When PAG Chop sits here, all label activity pauses — the system resets its cluster memory so the next colored print begins a new “cluster”, letting you clearly see where fresh directional momentum starts.
🧩 Cluster logic
Every time a colored (non-transparent) reading appears, it belongs to a “color cluster.”
Grey labels (= count 1) mark the genesis of a new cluster, and following counts 2, 3, 4 … represent the internal continuity of that trend state.
You can optionally hide the first N grey or count 2 labels to reduce clutter on the initial stabilization bars.
✂️ Label meaning
Each label shows:
Emoji ✂️
Current count (e.g. ✂️ = 3 means 3 timeframes are simultaneously firing)
Optional list of the timeframes that contribute.
So a high count (e.g. 8–10) means many lower TFs are synchronizing volatility breakout — a multiframe alignment, often just before an acceleration burst.
🔪 The Knife (Mr Blonde V4 Engine)
🧠 Core idea
Mr Blonde converts the slope of a long EMA into an angle-of-attack metric — literally the “tilt” of market momentum.
It computes the EMA gradient relative to price span and rescales it into degrees (-5 ° to +5 °).
The steeper the angle, the stronger the directional push.
🎨 Color code meaning
Angle range	Color	Interpretation
≥ +5 °	Transparent (Black 1)	Fully over-extended up move — wait for reset.
+3.57 – +5 °	Dark Red	Strong upward slope, momentum apex.
+2.14 – +3.57 °	Orange	Medium upward slope, trend acceleration zone.
+0.71 – +2.14 °	Light Orange	Mild upward bias, pre-momentum phase.
0 to -0.71 °	Yellow	Neutral transition.
-0.71 – -2.14 °	Olive Green	Soft bearish slope.
-2.14 – -3.57 °	Olive Drab	Building bearish momentum.
-3.57 – -5 °	Hunter Green	Strong downward angle, aggressive push.
≤ -5 °	Transparent (Black 2)	Oversold/over-tilted — likely exhaustion.
🪶 Secret nuance:
Mr Blonde uses a “span normalization” factor that divides EMA slope by the dynamic range of highs and lows.
This lets it compare angles fairly across assets with different volatility profiles (e.g. BTC vs ES) — it’s one of the rare EMA-angle implementations that self-scales properly.
🗡 Label meaning
Emoji 🔪
Count = how many TFs share the same momentum angle bias.
When many TFs show the same slope polarity (e.g. knife = 8), you’re in a deep momentum cascade — a “knife trend.”
💫 Yellow knife
The yellow state marks neutrality or slope flattening.
If you enable yellow visibility (mb_show_yellow), you can see where momentum cools off — often the earliest reversal hint.
⚙️ Shared mechanics between ✂️ and 🔪
Multi-timeframe sweep
The script cycles through 1 m → 10 m by default, running both engines once per TF.
Each returning true adds +1 to the count.
So:
sc_hits = count of timeframes where PAG fires + 1
knife_hits = count of timeframes where MB fires + 1
That “+1 shift” means there’s always at least 1, letting count = 1 represent the local TF itself.
Cluster limiter
If Limit max labels per cluster is on, you cap how many total symbols (both ✂️ & 🔪, including trails) can appear within one color phase — avoiding chart spam during extended trends.
Trails
Each printed label seeds a short-lived “trail” sequence — faded copies extending N bars forward.
Trails visualize the linger effect of the last signal, useful for visually connecting bursts in momentum.
Grey or count = 1 labels can have shorter or longer trails depending on your overrides (*_trail_bars_grey).
They’re purely visual and do not affect alerting.
Alerts
Alerts fire independently of whether you hide labels — unless you enable “respect filters”.
This guarantees you never miss a structural signal even if you suppress visuals for clarity.
🌈 Interpreting Both Together
Scenario	Interpretation
✂️ = low (1–2) + 🔪 rising (red/orange)	Market just leaving chop, early thrust stage.
✂️ = high (≥ 5) + 🔪 green	Fully aligned breakout continuation — trend in progress.
✂️ = yellow cluster + 🔪 yellow	Volatility squeeze, energy buildup — next expansion near.
✂️ = green cluster → 🔪 turns red	Cross-state conflict; likely transition or correction.
✂️ = grey + 🔪 grey	Reset condition — both engines cooling; stand aside.
💡 Hidden edge:
Scissors signal potential, Knife measures kinetic force.
The perfect storm is when ✂️ goes from yellow→green one bar before 🔪 shifts from orange→green — it catches the birth of directional flow while volatility is still tight.
🧭 Reading the labels intuitively
Grey ✂️/🔪 = 1 → embryonic state, may fizzle or bloom.
✂️/🔪 = 2 or 3 → expansion taking hold.
✂️/🔪 ≥ 4 (mid black) → strong synchronized drive across TFs.
Transparent gap → cluster reset; prepare for new phase.
Trail lines → echo of previous cluster strength.
Final secret tip 🗝
Because both engines are mathematically uncorrelated (volatility vs EMA angle), when they agree in color polarity on multiple TFs, you have one of the cleanest probabilistic trend windows possible.
If you ever see ✂️ = 6 + 🔪 = 6 both pointing the same way — that’s a “knife-through-the-scissors” moment: volatility expansion and directional slope synchronized — those are the bars where institutional algorithms tend to add size.
Pullback Levels from ATH# ATH Pullback Levels  
**Assess correction depth with precision – 5%, 10%, 15%, 20% below All-Time High**
---
### Overview  
This indicator draws **horizontal support lines** at **5%, 10%, 15%, and 20%** below the **All-Time High (ATH)** of any asset. Perfect for **swing traders**, **long-term investors**, and **bull market participants** who want to:
- Measure **pullback depth** in real-time  
- Identify **potential support zones**  
- Set **alerts** when price enters key retracement levels  
---
### Features  
| Feature | Description |
|--------|-------------|
| **Dynamic ATH Tracking** | Automatically updates with every new high |
| **4 Pullback Levels** | 5%, 10%, 15%, 20% below ATH |
| **Live Pullback % Label** | Shows current % drop from ATH (top-right) |
| **Customizable Lines** | Toggle visibility, change colors & styles |
| **Built-in Alerts** | Trigger on entry into each zone |
| **No Errors** | Works on 50k+ bar charts (BTC, SPX, etc.) |
| **Time-Based Lines** | Uses `xloc.bar_time` – no 500-bar future limit |
---
### How to Use  
1. Apply to any chart (stocks, crypto, forex, indices)  
2. Watch the **info box** for current pullback %  
3. Use lines as **potential buy zones** during corrections  
4. Set **alerts** to be notified when price enters a level  
> Example: If ATH = $100 →  
> - 5% = $95  
> - 10% = $90  
> - 15% = $85  
> - 20% = $80  
---
### Inputs  
- **Show 5% / 10% / 15% / 20% Level** → Toggle on/off  
- **Line Colors** → Fully customizable  
- **Line Style** → Solid, Dashed, or Dotted  
---
### Alerts  
Create alerts directly from the indicator:  
- `"Entered 5% Pullback"`  
- `"Entered 10% Pullback"`  
- etc.  
---
### Best For  
- Bull market corrections  
- Long-term position sizing  
- Risk management in uptrends  
- Swing entries on dips  
---
### Notes  
- Works on **all timeframes**  
- **Log scale compatible** (lines adjust correctly)  
- No repainting – ATH only updates on confirmed highs  
---
**Built with Pine Script v6 – Clean, fast, reliable.**
*Happy trading!*  
EXTPO TRENDIndicator designed for traders who prefer quick scalping or day trading.
Applicable to timeframes below M15.
Currently, I’m using it on BTC M1.
Note:
When the status is Buy, only buy signals will appear.
When the status is Sell, only sell signals will appear.
When the status is Off, no signals will appear because one of the entry conditions is not met.
5-Year Returns Chart BTCvsSPXvsGOLDvsNVDACompare between thes 4 assets:
BTC
NVDA
SPX
GOLD
With an initial 1000$ investment in the last 5 years each return
Buy And Hold Performance Screener - [JTCAPITAL]Buy And Hold Performance Screener –   is a script designed to track and display multi-asset “buy and hold” performance curves and performance statistics over defined timeframes for selected symbols. It doesn’t attempt to time entries or exits; rather, it shows what would happen if one simply bought the asset at the defined start date and held it.
 The indicator works by calculating in the following steps: 
 
   Start Date Definition 
The script begins by reading an input for the start date. This defines the bar from which the equity curves begin.
   Symbol Definitions & Close Price Retrieval 
The script allows the user to specify up to ten tickers. For each ticker it uses request.security() on the “1D” timeframe to retrieve the daily close price of that symbol.
   Plot Enable Inputs 
For each ticker there is an input boolean controlling whether the equity curve for that ticker should be plotted.
   Asset Name Cleaning 
The helper function clean_name(string asset) => … takes the asset string (e.g., “CRYPTO:SOLUSD”) and manipulates it (via string splitting and replacements) to derive a cleaned short name (e.g., “SOL”). This name is used for visuals (labels, table headers).
   Equity Curve Calculation (“HODL”) 
The helper function f_HODL(closez) defines a variable equity that assumes a starting equity of 1 unit at the start date and then multiplies by the ratio of each bar’s close to the prior bar’s close: i.e. daily compounding of returns.
   Performance Metrics Calculation 
The helper function f_performance(closez) calculates, for each symbol’s close series, the percentage change of the current close relative to its close 30 days ago, 90 days ago, 180 days ago, 1 year ago (365 days), 2 years ago (730 days) and 3 years ago (1095 days).
   Equity Curve Plots 
For each ticker, if the corresponding plot input is true, the script assigns a plotted variable equal to the equity curve value. Its then drawing each selected equity curve on the chart, each in a distinct color.
   Table Construction 
If the plottable input is true, the script constructs a table and populates it with rows and column corresponding to the assigned tickers and the set 6 timeframes used for display.
 Buy and Sell Conditions: 
Since this is strictly a “buy-and-hold” performance screener, there are no explicit buy or sell signals generated or plotted. The script assumes: buy at the defined start_date, hold continuously to present. There are no filters, no exit logic, no take-profit or stop-loss. The benefit of this approach is to provide a clean benchmark of how selected assets would have performed if one simply adopted a passive “buy & hold” approach from a given start date.
 Features and Parameters: 
 start_date (input.time) : Defines the date from which performance and equity curves begin.
 ticker1 … ticker10 (input.symbol) : User-selectable asset symbols to include in the screener.
 plot1 … plot10 (input.bool) : Boolean flags to enable/disable plotting of each asset’s equity curve.
 plottable (input.bool) : Flag to enable/disable drawing the performance table.
 Colored plotting + Labels for identifying each asset curve on the chart. 
 Specifications: 
Here is a detailed breakdown of every calculation/variable/function used in the script and what each part means:
 start_date 
This is defined via input.time(timestamp("1 Jan 2025"), title = "Start Date"). It allows the user to pick a specific calendar date from which the equity curves and performance calculations will start.
 ticker1 … ticker10 
These inputs allow the user to select up to ten different assets (symbols) to monitor. The script uses each of these to fetch daily close prices.
 plot1 … plot10 
Boolean inputs controlling which of the ten asset equity curves are plotted. If plotX is true, the equity curve for ticker X will be visible; otherwise it will be not plotted. This gives the user flexibility to include or exclude specific assets on the chart.
Returns the cleaned asset short name.
This provides friendly text labels like “BTC”, “ETH”, “SOL”, etc., instead of full symbol codes.
The choice of distinct colours for each asset helps differentiate curves visually when multiple assets are overlaid.
 Colour definitions 
Variables color1…color10 are explicitly defined via color.rgb(r,g,b) to give each asset a unique colour (e.g., red, orange, yellow, green, cyan, blue, purple, pink, etc.).
 What are the benefits of combining these calculations? 
By computing equity curves for multiple assets from the same start date and overlaying them, you can visualise comparative performance of different assets under a uniform “buy & hold” assumption.
The performance table adds multi-horizon returns (30 D, 90 D, 180 D, 1 Y, 2 Y, 3 Y) which helps the user see both short-term and longer-term performance without having to manually compute returns.
The use of daily close data via request.security(..., "1D") removes dependency on the chart’s timeframe, thereby standardising the comparison across assets.
The equity curve and table together provide both visual (curve) and numerical (table) summaries of performance, making it easier to spot trends, divergences, and cross-asset comparisons at a glance.
Because it uses compounding (equity := equity * (closez / closez )), the curves reflect the real growth of a 1-unit investment held over time, rather than only simple returns.
The labelling of curves and the color-coding make the multi-asset overlay easier to interpret.
Using a clean start date ensures that all curves begin at the same point (1 unit at start_date), making relative performance intuitive.
Because of this, the script is useful as a benchmarking tool: rather than trying to pick entries or exit points, you can simply compare “what if I had held these assets since Jan 1 2025” (or your chosen date), and see which assets out-/under-performed in that period. It helps an investor or trader evaluate the long-term benefits of passive vs. active management, or of allocation decisions.
Please note:
The script assumes continuous daily data and does not account for dividends, fees, slippage, or tax implications.
It does not attempt to optimise timing or provide trading signals.
Returns prior to the start date are ignored (equity only begins once time >= start_date).
For newly listed assets with fewer than 365 or 730 or 1095 days of history, the longer-horizon returns may return na or misleading values.
Because it uses request.security() without specifying lookahead, and on “1D” timeframe, it complies with standard usage but you should verify there is no look-ahead bias in your particular setup.
 ENJOY!
Crypto Index Price# Crypto Index Price - Indicator Description
## 📊 What is this indicator?
**Crypto Index Price** is an indicator for creating your own cryptocurrency index based on an equal-weighted portfolio. It allows you to track the overall dynamics of the cryptocurrency market through a composite index of selected assets.
## 🎯 Key Features
- **Up to 20 assets in the index** — create an index from any trading pairs
- **Equal-weighted methodology** — each asset has the same weight in the index
- **Moving average** — optional trend filter for the index
- **Flexible visualization settings** — customizable colors and line thickness
## 📈 How to Use
The indicator is displayed in a separate pane below the chart and shows:
1. **Blue line** — crypto index value
2. **Orange line** (optional) — moving average of the index
### Trading Applications:
- **Identify overall market trend** — if the index is rising, most coins are in an uptrend
- **Divergences** — divergence between your asset and the index may signal local opportunities
- **Signal confirmation** — use the index to confirm trading decisions on individual coins
- **Market condition filter** — trade longs when index is above MA, shorts when below
## ⚙️ Settings
### Assets (Symbols)
- **Asset 1-10** — main cryptocurrencies (default: BTC, ETH, BNB, SOL, XRP, ADA, AVAX, LINK, DOGE, TRX)
- **Asset 11-20** — additional slots for index expansion
### Visual Parameters
- **Index line color** — main line color (default: blue)
- **Line width** — from 1 to 5 pixels
- **Show moving average** — enable/disable MA
- **MA period** — moving average calculation period (default: 20)
- **MA color** — moving average line color (default: orange)
## 💡 Recommendations
- For a top coins index, use 5-10 largest cryptocurrencies by market cap
- For an altcoin index, add medium and small coins from your sector
- Use MA to filter false signals and identify the global trend
- Compare individual asset behavior with the index to find anomalies
## ⚠️ Important
The indicator uses equal-weighted methodology — each coin contributes equally regardless of price or market cap. This differs from cap-weighted indices and may provide a different market perspective.
---
*This indicator is intended for analysis and is not trading advice. Always conduct your own analysis before making trading decisions.*
---
Fib OscillatorWhat is Fib Oscillator and How to Use it?
🔶 1. Conceptual Overview
The Fib Oscillator is a Fibonacci-based relative position oscillator.
Instead of measuring momentum (like RSI or MACD), it measures where price currently sits between the recent swing high and swing low, expressed as a percentage within the Fibonacci range.
In other words:
It answers: “Where is price right now within its most recent dynamic range?”
It visualizes retracement and extension zones numerically, providing continuous feedback between 0% and 100% (and beyond if extended).
🔶 2. What the Script Does
The indicator:
Automatically detects recent high and low levels using an adaptive lookback window, which depends on ATR volatility.
Calculates the current price’s position between those levels as a percentage (0–100).
Plots that percentage as an oscillator — showing visually whether price is near the top, middle, or bottom of its recent range.
Overlays Fibonacci retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) as reference zones.
Generates alerts when the oscillator crosses key Fib thresholds — which can signal retracement completion, breakout potential, or pullback exhaustion.
🔶 3. Technical Flow Breakdown
(a) Inputs
Input	Description	Default	Notes
atrLength	ATR period used for volatility estimation	14	Used to dynamically tune lookback sensitivity
minLookback	Minimum lookback window (candles)	20	Ensures stability even in low volatility
maxLookback	Maximum lookback window	100	Limits over-expansion during high volatility
isInverse	Inverts chart orientation	false	Useful for inverse markets (e.g. shorts or inverse BTC view)
(b) Volatility-Adaptive Lookback
Instead of using a fixed lookback, it calculates:
lookback
=
SMA(ATR,10)
/
SMA(Close,10)
×
500
lookback=SMA(ATR,10)/SMA(Close,10)×500
Then it clamps this between minLookback and maxLookback.
This makes the oscillator:
More reactive during high volatility (shorter lookback)
More stable during calm markets (longer lookback)
Essentially, it self-adjusts to market rhythm — you don’t have to constantly tweak lookback manually.
(c) High-Low Reference Points
It takes the highest and lowest points within the dynamic lookback window.
If isInverse = true, it flips the candle logic (useful if viewing inverse instruments like stablecoin pairs or when analyzing bearish setups invertedly).
(d) Oscillator Core
The main oscillator line:
osc
=
(
close
−
low
)
(
high
−
low
)
×
100
osc=
(high−low)
(close−low)
	
×100
0% = Price is at the lookback low.
100% = Price is at the lookback high.
50% = Midpoint (balanced).
Between Fibonacci percentages (23.6%, 38.2%, 61.8%, etc.), the oscillator indicates retracement stages.
(e) Fibonacci Levels as Reference
It overlays horizontal reference lines at:
0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
These act as support/resistance bands in oscillator space.
You can read it similar to how traders use Fibonacci retracements on charts, but compressed into a single line oscillator.
(f) Alerts
The script includes built-in alert conditions for crossovers at each major Fibonacci level.
You can set TradingView alerts such as:
“Oscillator crossed above 61.8%” → possible bullish continuation or breakout.
“Oscillator crossed below 38.2%” → possible pullback or correction starting.
This allows automated monitoring of fib retracement completions without manually drawing fib levels.
🔶 4. How to Use It
🔸 Visual Interpretation
Oscillator Value	Zone	Market Context
0–23.6%	Deep Retracement	Potential exhaustion of a down-move / early reversal
23.6–38.2%	Shallow retracement zone	Possible continuation phase
38.2–50%	Mid retracement	Neutral or indecisive structure
50–61.8%	Key pivot region	Common trend resumption zone
61.8–78.6%	Late retracement	Often “last pullback” area
78.6–100%	Near high range	Possible overextension / profit-taking
>100%	Range breakout	New leg formation / expansion
🔸 Practical Application Steps
Load the indicator on your chart (set overlay = false, so it’s below the main price chart).
Observe oscillator position relative to fib bands:
Use it to determine retracement depth.
Combine with structure tools:
Trend lines, swing points, or HTF market structure.
Use crossovers for timing:
Crossing above 61.8% in an uptrend often confirms breakout continuation.
Crossing below 38.2% in a downtrend signals renewed downside momentum.
For range markets, oscillator swings between 23.6% and 78.6% can define accumulation/distribution boundaries.
🔶 5. When to Use It
During Retracements: To gauge how deep the pullback has gone.
During Range Markets: To identify relative overbought/oversold positions.
Before Breakouts: Crossovers of 61.8% or 78.6% often precede impulsive moves.
In Multi-Timeframe Contexts:
LTF (15M–1H): Detect intraday retracement exhaustion.
HTF (4H–1D): Confirm major range expansions or key reversal zones.
🔶 6. Ideal Companion Indicators
The Fib Oscillator works best when contextualized with structure, volatility, and trend bias indicators.
Below are optimal pairings:
Companion Indicator	Purpose	Integration Insight
Market Structure MTF Tool	Identify active trend direction	Use Fib Oscillator only in trend direction for cleaner signals
EMA Ribbon / Supertrend	Trend confirmation	Align oscillator crossovers with EMA bias
ATR Bands / Volatility Envelope	Validate breakout strength	If oscillator >78.6% & ATR rising → valid breakout
Volume Oscillator	Confirm retracement strength	Volume contraction + oscillator under 38.2% → potential reversal
HTF Fib Retracement Tool	Combine LTF oscillator with HTF fib confluence	Powerful multi-timeframe setups
RSI or Stochastic	Measure momentum relative to position	RSI divergence while oscillator near 78.6% → exhaustion clue
🔶 7. Understanding the Settings
Setting	Function	Practical Impact
ATR Period (14)	Controls volatility sampling	Higher = smoother lookback adaptation
Min Lookback (20)	Smallest window allowed	Lower = more reactive but noisier
Max Lookback (100)	Largest window allowed	Higher = smoother but slower to react
Inverse Candle Chart	Flips oscillator vertically	Useful when analyzing bearish or inverse scenarios (e.g. short-side fib mapping)
Recommended Configs:
For scalping/intraday: ATR 10–14, lookback 20–50
For swing/position trading: ATR 14–21, lookback 50–100
🔶 8. Example Trade Logic (Practical Use)
Scenario: Uptrend on 4H chart
Oscillator drops to below 38.2% → retracement zone
Price consolidates → oscillator stabilizes
Oscillator crosses above 50% → pullback ending
Entry: Long when oscillator crosses above 61.8%
Exit: Near 78.6–100% zone or upon divergence with RSI
For Short Bias (Inverse Setup):
Enable isInverse = true to visually flip the oscillator (so lows become highs).
Use the same thresholds inversely.
🔶 9. Strengths & Limitations
✅ Strengths
Dynamic, self-adapting to volatility
Quantifies Fib retracement as a continuous function
Compact oscillator view (no clutter on chart)
Works well across all timeframes
Compatible with both trending and ranging markets
⚠️ Limitations
Doesn’t define trend direction — must be used with structure filters
Can whipsaw during choppy consolidations
The “lookback auto-adjust” may lag in sudden volatility shifts
Shouldn’t be used standalone for entries without structural confluence
🔶 10. Summary
The “Fib Oscillator” is a dynamic Fibonacci-relative positioning tool that merges retracement theory with adaptive volatility logic.
It gives traders an intuitive, quantified view of where price sits within its recent fib range, allowing anticipation of pullbacks, reversals, or breakout momentum.
Think of it as a "Fibonacci RSI", but instead of momentum strength, it shows positional depth — the vibrational location of price within its natural swing cycle.
Relative Momentum Rotation [CHE]  Relative Momentum Rotation   — Ranks assets by multi-horizon momentum for guided rotational selection with regime overlay
  Summary 
This indicator evaluates a universe of assets using a blended momentum measure across three time horizons, then ranks them to highlight top performers for potential portfolio rotation. It incorporates a regime filter to contextualize signals, tinting the background to indicate favorable or unfavorable market conditions and labeling transitions for awareness. By focusing on relative strength within a selectable universe, it helps identify leaders without relying on absolute thresholds, reducing noise from isolated trends and promoting disciplined asset switching.
  Motivation: Why this design? 
Traders often struggle with momentum signals that perform unevenly across market phases, such as overreacting in volatile periods or lagging in steady uptrends, leading to suboptimal rotations in multi-asset portfolios. The core idea of relative momentum rotation addresses this by comparing assets head-to-head within a defined group, blending short- and long-term changes to capture sustained strength while a regime overlay adds a macro layer to avoid fighting broader trends. This setup prioritizes peer-relative outperformance over standalone measures, aiding consistent selection in rotational strategies.
  What’s different vs. standard approaches? 
- Reference baseline: Traditional rate-of-change indicators track absolute price shifts over a single window, which can generate whipsaws in sideways markets or miss cross-asset opportunities.
- Architecture differences:
  - Blends three distinct horizons into one composite score for a fuller momentum picture, rather than isolating one period.
  - Applies ranking across a customizable universe (e.g., crypto or tech stocks) to emphasize relatives, not absolutes.
  - Integrates a simple regime check via moving average crossover on a reference symbol, gating selections without overcomplicating the core logic.
  - Outputs a dynamic table for visual ranking, plus subtle visual cues like background tints, instead of cluttered plots.
- Practical effect: Charts show clearer hierarchy among assets, with regime tints providing at-a-glance context—top ranks stand out more reliably in bull regimes, helping traders focus rotations without constant recalibration.
  How it works (technical) 
The indicator starts by assembling a list of symbols from the selected universe, including only those marked as active to keep the group focused. For each symbol, it gathers change rates over three specified horizons on a higher timeframe, blends them using user-defined weights (automatically normalized if they do not sum to one), and computes a single composite score. Scores are then ranked to select the top performers up to a set number, forming a rotation candidate list.
To add context, a regime state is determined by comparing the reference symbol's price to its moving average on daily bars—above signals a positive environment, below a negative one, with an option to invert this logic. The current chart's symbol is checked against the top list for inclusion status. All higher-timeframe data pulls are set to avoid lookahead bias, though updates may shift slightly until bars close. Persistent variables track the table state and prior regime to handle redraws efficiently, ensuring the display rebuilds only when the selection count changes.
  Parameter Guide 
Universe — Switches between predefined crypto or US-tech symbol sets for ranking peers. Default: Crypto. Trade-offs/Tips: Crypto for volatile assets; US-Tech for equities—match to your portfolio to avoid mismatched volatility.
Include Symbol 1–12 — Toggles individual symbols in the universe on or off. Default: Varies (true for top 10, false for extras). Trade-offs/Tips: Start with defaults for a balanced group; disable laggards to sharpen focus, but keep at least 5–8 for robust ranking.
Scoring Timeframe — Sets the aggregation period for momentum changes (e.g., monthly bars). Default: Monthly. Trade-offs/Tips: Monthly for long-term rotation; weekly for faster signals—increases noise if too short.
Weight 12m / 6m / 3m — Adjusts emphasis on long/medium/short horizons in the blend. Default: 0.50 / 0.30 / 0.20. Trade-offs/Tips: Heavier long-term for stability in trends; balance to fit asset class—test sums near 1.0 to avoid auto-normalization surprises.
ROC over MA instead of Close — Uses smoothed averages for change rates to reduce chop. Default: False. Trade-offs/Tips: Enable in noisy markets for fewer false tops; adds slight lag, so monitor for delayed rotations.
Top N to hold — Limits selections to this many highest-ranked assets. Default: 10. Trade-offs/Tips: Lower for concentrated bets (higher risk/reward); higher for diversification—align with your position sizing.
Mark current symbol if in Top N — Highlights if the chart's asset ranks in the selection. Default: True. Trade-offs/Tips: Useful for self-scanning; disable in multi-chart setups to declutter.
Enable Regime Filter — Activates macro overlay using reference symbol. Default: True. Trade-offs/Tips: Core for trend-aware trading; disable for pure momentum plays, but risks counter-trend entries.
Regime Symbol — Chooses the benchmark for regime (e.g., broad index). Default: QQQ. Trade-offs/Tips: Broad market proxy like SPY for equities; swap for BTC in crypto to match universe.
SMA Length (D) — Sets the averaging window for regime comparison. Default: 100. Trade-offs/Tips: Longer for fewer flips (smoother regimes); shorter for quicker detection—default suits daily checks.
Invert (rare) — Flips the regime logic (price above average becomes negative). Default: False. Trade-offs/Tips: Only if your view inverts the benchmark; test thoroughly as it reverses all tints/labels.
Show Ranking Table — Displays the ranked list with scores and regime status. Default: True. Trade-offs/Tips: Essential for selection; position tweaks help on crowded charts.
Table X / Y — Places the table on the chart (e.g., top-right). Default: Right / Top. Trade-offs/Tips: Corner placement avoids price overlap; middle for central focus in reviews.
Dark Theme — Applies inverted colors for visibility. Default: True. Trade-offs/Tips: Matches most TradingView themes; toggle for light backgrounds without losing contrast.
Text Size — Scales table font for readability. Default: Normal. Trade-offs/Tips: Smaller for dense data; larger on big screens—impacts only last-bar render.
Background Tint by Regime — Colors the chart faintly green/red based on state. Default: True. Trade-offs/Tips: Subtle cue for immersion; disable if it distracts from price action.
Label on Regime Flip — Adds text markers at state changes. Default: True. Trade-offs/Tips: Aids journaling flips; space them by disabling in low-vol periods to cut clutter.
 Reading & Interpretation
The ranking table lists top assets by position, symbol, percentage score (higher indicates stronger blended momentum), and regime status—green "ON" for favorable, red "OFF" for cautionary. Background shifts to a light teal in positive regimes (suggesting alignment for longs) or pale red in negative ones (hinting at reduced exposure). Flip labels appear as green "Regime ON" above bars or red "Regime OFF" below, marking transitions without ongoing noise. If the current symbol appears in the top rows with a solid score, it signals potential hold or entry priority within rotations.
  Practical Workflows & Combinations 
- Trend following: Scan the table weekly on monthly charts for top entrants; confirm with higher highs/lows in price structure before rotating in. Use regime tint as a veto—skip buys in red phases.
- Exits/Stops: Rotate out of bottom-half ranks monthly; tighten stops below recent lows during regime flips to protect against reversals. Pair with volatility filters like average true range for dynamic sizing.
- Multi-asset/Multi-TF: Defaults work across crypto/equities on daily+ timeframes; for intraday, shorten scoring to weekly but expect more interim noise. Scale universe size with portfolio count—e.g., top 5 for aggressive crypto rotations.
  Behavior, Constraints & Performance 
Signals update on bar close to confirm higher-timeframe data, but live bars may preview shifts from security calls, introducing minor repaint until finalized—mitigated by non-lookahead settings, though daily regime checks can lag by one session. Arrays handle up to 12 symbols efficiently, with loops capped at selection size; max bars back at 5000 supports historical depth without overload. Resource use stays low, but dense universes on very long charts may slow initial loads.
Known limits include sensitivity to universe composition (skewed groups amplify biases) and regime lag at sharp market turns, potentially delaying rotations by a period.
  Sensible Defaults & Quick Tuning 
Defaults assume a 10-asset crypto rotation on monthly scoring with balanced weights and QQQ regime—ideal for intermediate-term equity-like plays. For too-frequent table reshuffles, extend scoring timeframe or weight longer horizons more. If selections feel sluggish, shorten the 3-month weight or enable MA smoothing off. In high-vol environments, raise top N and SMA length for stability; for crypto bursts, drop to weekly scoring and invert regime if using a volatile proxy.
  What this indicator is—and isn’t 
This is a selection and visualization tool for momentum-based rotations, layering relative ranks and regime context onto charts to inform asset picks. It is not a standalone system—pair it with entry/exit rules, position sizing, and risk limits. Nor is it predictive; it reacts to past changes and may underperform in prolonged ranges or during universe gaps.
  Disclaimer 
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
 Best regards and happy trading
Chervolino 
 Where does it come from, specifically? 
The principle of “composite momentum across multiple horizons” is common in TAA/rotation strategies. As a documented example: Keller/Butler use a composite 1/3/6/12-month momentum (“13612W”)—same idea, different windows/weights.
Robot Wealth
A practical vendor example: EPS Momentum calculates an RMR composite as a weighted mix of 12/6/3/1-month ranks (very close to “12/6/3”).
EPS Momentum
Related but not identical: StockCharts’ RRG measures the momentum rotation of relative strength—often mentioned in the same context, but it doesn’t have a fixed “12/6/3” composite.
chartschool.stockcharts.com
How is it typically computed?
ROC_12 + ROC_6 + ROC_3 (often scaled/weighted), then ranked vs. peers; the rotation periodically holds the top ranks in the portfolio. (Variants use different weights or additionally include 1-month—see the sources above.)
robotwealth.com
epsmomentum.com
Relative Valuation OscillatorRelative Valuation Oscillator (RVO) Description 
The Valuation_OTC.pine script is a Relative Valuation Oscillator for TradingView that compares the current asset against a reference asset (like Bitcoin, S&P 500, or Gold) to determine if it's relatively overvalued or undervalued.
Key Features:
1. Multiple Calculation Methods:
Simple Ratio - Compares price ratio deviation from average
Percentage Difference - Direct percentage comparison between assets
Ratio Z-Score - Statistical measure (standard deviations from mean)
Rate of Change Comparison - Compares momentum/performance
Normalized Ratio - 0-100 scale centered at zero
2. Customizable Settings:
Reference asset selection (default: BTC/USDT)
Adjustable lookback period (10-500 bars)
Optional smoothing with configurable period
Overbought/oversold level thresholds (default: ±1.5)
3. Trading Signals:
Overvalued - Oscillator above overbought level (red zone)
Undervalued - Oscillator below oversold level (green zone)
Neutral - Between thresholds
Crossover alerts for key levels
Divergence detection (bullish/bearish)
4. Visual Components:
Color-coded oscillator line (green when positive, red when negative)
Optional signal line for additional smoothing
Background shading for valuation zones
Information table showing current metrics and status
Shape markers for crossovers and divergences
5. Alert Conditions:
Overvalued/undervalued alerts
Zero-line crossovers
Divergence signals
This indicator is useful for pairs trading, relative strength analysis, and identifying when an asset is trading at extremes relative to a benchmark asset.
Dot traderInterpret Signals: Green triangles indicate buy (e.g., if BTC holds $109k with bullish crossover); red triangles indicate sell (e.g., if it breaks $108k with bearish divergence).
Candle Colors: Green/bullish, red/bearish, orange/overbought (>70 RSI), blue/oversold (<30 RSI).
Alerts: Enable in TradingView for real-time notifications.
 CHOCH + FVG Signals [30m Optimized]CHOCH + FVG Signals  
🎯 What It Does:
This script automatically scans your chart for high-probability Smart Money Concepts (SMC) setups based on two key institutional trading principles:
Change of Character (CHOCH) – A shift in market structure signaling potential reversal
Fair Value Gap (FVG) – An imbalance zone where price moved too fast, often acting as support/resistance
 When both conditions align, the script plots clear Buy (▲) and Sell (▼) signals directly on your chart — ideal for intraday trading on the 30-minute timeframe (but works on any timeframe).
 ✅ Key Features:
🔹 Visual Fair Value Gaps
Green shaded zones = Bullish FVGs (potential support)
Red shaded zones = Bearish FVGs (potential resistance)
Toggle on/off in settings
 🔹 Smart CHOCH Detection
Detects breaks of recent swing highs/lows with proper context
Avoids false signals by confirming prior price structure
 🔹 Clear Trade Signals
Green ▲ below bar = Buy signal (Bullish CHOCH + FVG confluence)
Red ▼ above bar = Sell signal (Bearish CHOCH + FVG confluence)
 🔹 Customizable Filters
Option to require FVG for a signal (recommended for higher accuracy)
Adjust sensitivity via swing detection settings (default optimized for 30m)
 🔹 Alert-Ready
Built-in alert conditions for instant notifications on TradingView mobile/desktop
 ⚙️ How to Use:
Apply to a 30-minute chart (e.g., EURUSD, Gold, NAS100, BTC)
Wait for at least 50–100 bars to load (so swing points appear)
Look for:
A green triangle (▲) → consider long entry near FVG support
A red triangle (▼) → consider short entry near FVG resistance
 Confirm with price action: Wait for a strong candle close or rejection at the FVG zone
Use stop-loss below/above the FVG and target recent liquidity pools
 💡 Pro Tip: Best used during high-volume sessions (e.g., London Open 7–10 AM UTC, NY Open 12:30–3:30 PM UTC). 
 🛠️ Settings (Inputs):
Show Fair Value Gaps
✅ Enabled	
Visualize FVG zones
Max FVG History
100 bars	
Prevent chart clutter
Require FVG for Signal?
✅ Enabled	
Higher-quality setups (disable to test CHOCH-only)
 
 ⚠️ Important Notes:
This is a signal generator, not financial advice. Always manage risk.
Works best in trending or breaking markets — avoid during low-volatility ranges.
FVGs may get filled (tested) before price continues — patience improves results.
Backtest on historical data before live trading.
 📣 Ideal For:
Retail traders learning Smart Money Concepts (SMC)
Price action traders seeking institutional-level confluence
Intraday scalpers & swing traders on 30m–1H timeframes
Risk-On / Risk-Off CompositeReal-time Risk-On / Risk-Off Composite from your four ratios:
 
SPY / TLT (equities vs long bonds)
HYG / LQD (high-yield vs IG credit)
HG / GOLD (copper vs gold)
BTC / GOLD (speculative vs defensive)
It:
normalizes each ratio with a z-score (so they’re comparable),
lets you weight them,
plots a composite line + histogram (up = risk-on, down = risk-off),
shows a small heat-table for each sub-signal,
and includes alert conditions for Risk-On / Risk-Off flips.
Puell Multiple Variants [OperationHeadLessChicken]Overview 
This script contains three different, but related indicators to visualise Bitcoin miner revenue.
 
 The classical  Puell Multiple : historically, it has been good at signaling Bitcoin cycle tops and bottoms, but due to the diminishing rewards miners get after each halving, it is not clear how you determine overvalued and undervalued territories on it. Here is how the other two modified versions come into play:
 Halving-Corrected Puell Multiple : The idea is to multiply the miner revenue after each halving with a correction factor, so overvalued levels are made comparable by a horizontal line across cycles. After experimentation, this correction factor turned out to be around 1.63. This brings cycle tops close to each other, but we lose the ability to see undervalued territories as a horizontal region. The third variant aims to fix this:
 Miner Revenue Relative Strength Index (Miner Revenue RSI) : It uses RSI to map miner revenue into the 0-100 range, making it easy to visualise over/undervalued territories. With correct parameter settings, it eliminates the diminishing nature of the original Puell Multiple, and shows both over- and undervalued revenues correctly.
 
 Example usage 
The goal is to determine cycle tops and bottoms. I recommend using it on high timeframes, like  monthly  or  weekly . Lower than that, you will see a lot of noise, but it could still be used. Here I use  monthly  as the example.
 
  The classical  Puell Multiple  is included for reference. It is calculated as  Miner Revenue  divided by the  365-day Moving Average of the Miner Revenue . As you can see in the picture below, it has been good at signaling tops at 1,3,5,7.
The problems:
- I have to switch the Puell Multiple to a logarithmic scale
- Still, I cannot use a horizontal oversold territory
- 5 didn't touch the trendline, despite being a cycle top
- 9 touched the trendline despite not being a cycle top 
 Halving-Corrected Puell Multiple  (yellow): Multiplies the Puell Multiple by 1.63 (a number determined via experimentation) after each halving. In the picture below, you can see how the  Classical  (white) and  Corrected  (yellow) Puell Multiples compare:
Advantages:
- Now you can set a constant overvalued level (12.49 in my case)
- 1,3,7 are signaled correctly as cycle tops
- 9 is correctly not signaled as a cycle top
Caveats:
- Now you don't have bottom signals anymore
- 5 is still not signaled as cycle top
Let's see if we can further improve this:
 Miner Revenue RSI  (blue):
On the monthly, you can see that an RSI period of 6, an overvalued threshold of 90, and an undervalued threshold of 35 have given historically pretty good signals.
Advantages:
- Uses two simple and clear horizontal levels for undervalued and overvalued levels
- Signaling 1,3,5,7 correctly as cycle tops
- Correctly does not signal 9 as a cycle top
- Signaling 4,6,8 correctly as cycle bottoms
Caveats:
- Misses two as a cycle bottom, although it was a long time ago when the Bitcoin market was much less mature
- In the past, gave some early overvalued signals
 
 Usage 
Using the example above, you can apply these indicators to any timeframe you like and tweak their parameters to obtain signals for overvalued/undervalued BTC prices
 
 You can show or hide any of the three indicators individually
 Set overvalued/undervalued thresholds for each => the background will highlight in green (undervalued) or red (overvalued)
 Set special parameters for the given indicators: correction factor for the Corrected Puell and RSI period for Revenue RSI
 Show or hide halving events on the indicator panel
 All parameters and colours are adjustable
Gold–Bitcoin Correlation (Offset Model) by KManus88This indicator analyzes the correlation between Gold (XAU/USD) and Bitcoin (BTC/USD) using a time-offset model adjustable by the user.
The goal is to detect cyclical leads or lags between both assets, highlighting how capital flows into Gold may precede or follow movements in the crypto market.
Key Features:
Dynamic correlation calculation between Gold and Bitcoin.
Adjustable offset in days (default: 107) to fine-tune the temporal shift.
Automatic labels and on-chart visualization.
Compatible with multiple timeframes and logarithmic scales.
Interpretation:
Positive correlation suggests synchronized trends between both assets.
Negative correlation signals divergence or rotation of liquidity.
The time-offset parameter helps estimate when a shift in Gold could later reflect in Bitcoin.
Recommended use:
For macro-financial and global liquidity cycle analysis.
As a complementary tool in cross-asset momentum strategies.
© 2025 – Developed by KManus88 | Inspired by monetary correlation studies and global liquidity cycles.
This script is for educational purposes only and does not constitute financial advice.
Fair Value Lead-Lag Model [BackQuant]Fair Value Lead-Lag Model  
 A cross-asset model that estimates where price "should" be relative to a chosen reference series, then tracks the deviation as a normalized oscillator. It helps you answer two questions: 1) is the asset rich or cheap vs its driver, and 2) is the driver leading or lagging price over the next N bars.
 Concept in one paragraph 
 Many assets co-move with a macro or sector driver. Think BTC vs DXY, gold vs real yields, a stock vs its sector ETF. This tool builds a rolling fair value of the charted asset from a reference series and shows how far price is above or below that fair value in standard deviation units. You can shift the reference forward or backward to test who leads whom, then use the deviation and its bands to structure mean-reversion or trend-following ideas.
 What the model does 
  
  Reference mapping : Pulls a reference symbol at a chosen timeframe, with an optional lead or lag in bars to test causality.
  Fair value engine : Converts the reference into a synthetic fair value of the chart using one of four methods:
  
  Ratio : price/ref with a rolling average ratio. Good when the relationship is proportional.
  Spread : price minus ref with a rolling average spread. Good when the relationship is additive.
  Z-Score : normalizes both series, aligns on standardized units, then re-projects to price space. Good when scale drifts.
  Beta-Adjusted : rolling regression style. Uses covariance and variance to compute beta, then builds a fair value = mean(price) + beta * (ref − mean(ref)).
  
  Deviation and bands : Computes a z-scored deviation of price vs fair value and plots sigma bands (±1, ±2, ±3) around the fair value line on the chart.
  Correlation context : Shows rolling correlation so you can judge if deviations are meaningful or just noise when co-movement is weak.
  Visuals :
  
  Fair value line on price chart with sigma envelopes.
  Deviation as a column oscillator and optional line.
  Threshold shading beyond user-set upper and lower levels.
  Summary table with reference, deviation, status, correlation, and method.
  
  
 Why this is useful 
  
  Mean reversion framework : When correlation is healthy and deviation stretches beyond your sigma threshold, probability favors reversion toward fair value. This is classic pairs logic adapted to a driver and a target.
  Trend confirmation : If price rides the fair value line and deviation stays modest while correlation is positive, it supports trend persistence. Pullbacks to negative deviation in an uptrend can be buyable.
  Lead-lag discovery : Shift the reference forward by +N bars. If correlation improves, the reference tends to lead. Shift backward for the reverse. Use the best setting for planning early entries or hedges.
  Regime detection : Large persistent deviations with falling correlation hint at regime change. The relationship you relied on may be breaking down, so reduce confidence or switch methods.
  
 How to use it step by step 
  
  Pick a sensible reference : Choose a macro, index, currency, or sector driver that logically explains the asset’s moves. Example: gold with DXY, a semiconductor stock with SOXX.
  Test lead-lag : Nudge Lead/Lag Periods to small positive values like +1 to +5 to see if the reference leads. If correlation improves, keep that offset. If correlation worsens, try a small negative value or zero.
  Select a method :
  
  Start with  Beta-Adjusted  when the relationship is approximately linear with drift.
  Use  Ratio  if the assets usually move in proportional terms.
  Use  Spread  when they trade around a level difference.
  Use  Z-Score  when scales wander or volatility regimes shift.
  
  Tune windows :
  
  Rolling Window controls how quickly fair value adapts. Shorter equals faster but noisier.
  Normalization Period controls how deviations are standardized. Longer equals stabler sigma sizing.
  Correlation Length controls how co-movement is measured. Keep it near the fair value window.
  
  Trade the edges :
  
  Mean reversion idea : Wait for deviation beyond your Upper or Lower Threshold with positive correlation. Fade back toward fair value. Exit at the fair value line or the next inner sigma band.
  Trend idea : In an uptrend, buy pullbacks when deviation dips negative but correlation remains healthy. In a downtrend, sell bounces when deviation spikes positive.
  
  Read the table : Deviation shows how many sigmas you are from fair value. Status tells you overvalued or undervalued. Correlation color hints confidence. Method tells you the projection style used.
  
 Reading the display 
  
  Fair value line  on price chart: the model’s estimate of where price should trade given the reference, updated each bar.
  Sigma bands  around fair value: a quick sense of residual volatility. Reversions often target inner bands first.
  Deviation oscillator : above zero means rich vs fair value, below zero means cheap. Color bins intensify with distance.
  Correlation line  (optional): scale is folded to match thresholds. Higher values increase trust in deviations.
  
 Parameter tips 
  
  Start with Rolling Window 20 to 30, Normalization Period 100, Correlation Length 50.
  Upper and Lower Threshold at ±2.0 are classic. Tighten to ±1.5 for more signals or widen to ±2.5 to focus on outliers.
  When correlation drifts below about 0.3, treat deviations with caution. Consider switching method or reference.
  If the fair value line whipsaws, increase Rolling Window or move to Beta-Adjusted which tends to be smoother.
  
 Playbook examples 
  
  Pairs-style reversion : Asset is +2.3 sigma rich vs reference, correlation 0.65, trend flat. Short the deviation back toward fair value. Cover near the fair value line or +1 sigma.
  Pro-trend pullback : Uptrend with correlation 0.7. Deviation dips to −1.2 sigma while price sits near the −1 sigma band. Buy the dip, target the fair value line, trail if the line is rising.
  Lead-lag timing : Reference leads by +3 bars with improved correlation. Use reference swings as early cues to anticipate deviation turns on the target.
  
 Caveats 
  
  The model assumes a stable relationship over the chosen windows. Structural breaks, policy shocks, and index rebalances can invalidate recent history.
  Correlation is descriptive, not causal. A strong correlation does not guarantee future convergence.
  Do not force trades when the reference has low liquidity or mismatched hours. Use a reference timeframe that captures real overlap.
  
 Bottom line 
This tool turns a loose cross-asset intuition into a quantified, visual fair value map. It gives you a consistent way to find rich or cheap conditions, time mean-reversion toward a statistically grounded target, and confirm or fade trends when the driver agrees.
Luxy Adaptive MA Cloud - Trend Strength & Signal Tracker V2Luxy Adaptive MA Cloud  - Professional Trend Strength & Signal Tracker
Next-generation moving average cloud indicator combining ultra-smooth gradient visualization with intelligent momentum detection. Built for traders who demand clarity, precision, and actionable insights.
 ═══════════════════════════════════════════════ 
  WHAT MAKES THIS INDICATOR SPECIAL? 
 ═══════════════════════════════════════════════ 
Unlike traditional MA indicators that show static lines, Luxy Adaptive MA Cloud creates a  living, breathing visualization  of market momentum. Here's what sets it apart:
 
 Exponential Gradient Technology 
This isn't just a simple fill between two lines. It's a professionally engineered gradient system with 26 precision layers using exponential density distribution. The result? An organic, cloud-like appearance where the center is dramatically darker (15% transparency - where crossovers and price action occur), while edges fade gracefully (75% transparency). Think of it as a visual "heat map" of trend strength.
  Dynamic Momentum Intelligence 
Most MA clouds only show  structure  (which MA is on top). This indicator shows  momentum strength  in real-time through four intelligent states:
- 🟢  Bright Green  = Explosive bullish momentum (both MAs rising strongly)
- 🔵  Blue  = Weakening bullish (structure intact, but momentum fading)
- 🟠  Orange  = Caution zone (bearish structure forming, weak momentum)
- 🔴  Deep Red  = Strong bearish momentum (both MAs falling)
The cloud literally  tells you  when trends are accelerating or losing steam.
  Conditional Performance Architecture 
Every calculation is optimized for speed. Disable a feature? It stops calculating entirely—not just hidden, but  not computed . The 26-layer gradient only renders when enabled. Toggle signals off? Those crossover checks don't run. This makes it one of the most efficient cloud indicators available, even with its advanced visual system.
  Zero Repaint Guarantee 
All signals and momentum states are based on  confirmed bar data only . What you see in historical data is  exactly  what you would have seen trading live. No lookahead bias. No repainting tricks. No signals that "magically" appear perfect in hindsight. If a signal shows in history, it would have triggered in real-time at that exact moment.
  Educational by Design 
Every single input includes comprehensive tooltips with:
- Clear explanations of what each parameter does
- Practical examples of when to use different settings
- Recommended configurations for scalping, day trading, and swing trading
- Real-world trading impact ("This affects entry timing" vs "This is visual only")
You're not just getting an indicator—you're learning  how to use it effectively .
 
  
 ═══════════════════════════════════════════════ 
  THE GRADIENT CLOUD - TECHNICAL DETAILS 
 ═══════════════════════════════════════════════ 
 Architecture: 
 
 26 precision layers  for silk-smooth transitions
 Exponential density curve  - layers packed tightly near center (where crossovers happen), spread wider at edges
 75%-15% transparency range  - center is highly opaque (15%), edges fade gracefully (75%)
 V-Gradient design  - emphasizes the action zone between Fast and Medium MAs
 
 The Four Momentum States: 
🟢  GREEN - Strong Bullish 
 
 Fast MA above Medium MA
 Both MAs rising with momentum > 0.02%
 Action: Enter/hold LONG positions, strong uptrend confirmed
 
🔵  BLUE - Weak Bullish 
 
 Fast MA above Medium MA
 Weak or flat momentum
 Action: Caution - bullish structure but losing strength, consider trailing stops
 
🟠  ORANGE - Weak Bearish 
 
 Medium MA above Fast MA
 Weak or flat momentum  
 Action: Warning - bearish structure developing, consider exits
 
🔴  RED - Strong Bearish 
 
 Medium MA above Fast MA
 Both MAs falling with momentum < -0.02%
 Action: Enter/hold SHORT positions, strong downtrend confirmed
 
 Smooth Transitions:  The momentum score is smoothed using an 8-bar EMA to eliminate noise and prevent whipsaws. You see the  true trend , not every minor fluctuation.
  
 ═══════════════════════════════════════════════ 
  FLEXIBLE MOVING AVERAGE SYSTEM 
 ═══════════════════════════════════════════════ 
 Three Customizable MAs: 
 
 Fast MA  (default: EMA 10) - Reacts quickly to price changes, defines short-term momentum
 Medium MA  (default: EMA 20) - Balances responsiveness with stability, core trend reference
 Slow MA  (default: SMA 200, optional) - Long-term trend filter, major support/resistance
 
 Six MA Types Available: 
 
 EMA  - Exponential; faster response, ideal for momentum and day trading
 SMA  - Simple; smooth and stable, best for swing trading and trend following
 WMA  - Weighted; middle ground between EMA and SMA
 VWMA  - Volume-weighted; reflects market participation, useful for liquid markets
 RMA  - Wilder's smoothing; used in RSI/ADX, excellent for trend filters
 HMA  - Hull; extremely responsive with minimal lag, aggressive option
 
 Recommended Settings by Trading Style: 
 Scalping (1m-5m): 
 
Fast: EMA(5-8)
Medium: EMA(10-15)
Slow: Not needed or EMA(50)
 
 Day Trading (5m-1h): 
 
Fast: EMA(10-12)
Medium: EMA(20-21)
Slow: SMA(200) for bias
 
 Swing Trading (4h-1D): 
 
Fast: EMA(10-20)
Medium: EMA(34-50)
Slow: SMA(200)
 
 Pro Tip:  Start with Fast < Medium < Slow lengths. The gradient works best when there's clear separation between Fast and Medium MAs.
  
 ═══════════════════════════════════════════════ 
  CROSSOVER SIGNALS - CLEAN & RELIABLE 
 ═══════════════════════════════════════════════ 
 Golden Cross  ⬆  LONG Signal 
 
 Fast MA crosses  above  Medium MA
 Classic bullish reversal or trend continuation signal
 Most reliable when accompanied by GREEN cloud (strong momentum)
 
 Death Cross  ⬇  SHORT Signal 
 
 Fast MA crosses  below  Medium MA  
 Classic bearish reversal or trend continuation signal
 Most reliable when accompanied by RED cloud (strong momentum)
 
 Signal Intelligence: 
 
 Anti-spam filter  - Minimum 5 bars between signals prevents noise
 Clean labels  - Placed precisely at crossover points
 Alert-ready  - Built-in ALERTS for automated trading systems
 No repainting  - Signals based on confirmed bars only
 
 Signal Quality Assessment: 
 High-Quality Entry: 
 
Golden Cross + GREEN cloud + Price above both MAs
= Strong bullish setup ✓
 
 Low-Quality Entry (skip or wait): 
 
Golden Cross + ORANGE cloud + Choppy price action
= Weak bullish setup, likely whipsaw ✗
 
  
 ═══════════════════════════════════════════════ 
  REAL-TIME INFO PANEL 
 ═══════════════════════════════════════════════ 
An at-a-glance dashboard showing:
 Trend Strength Indicator: 
 
 Visual display of current momentum state
 Color-coded header matching cloud color
 Instant recognition of market bias
 
 MA Distance Table: 
Shows percentage distance of price from each enabled MA:
 
 Green rows : Price ABOVE MA (bullish)
 Red rows : Price BELOW MA (bearish)
 Gray rows : Price AT MA (rare, decision point)
 
 Distance Interpretation: 
 
+2% to +5%: Healthy uptrend
+5% to +10%: Getting extended, caution
+10%+: Overextended, expect pullback
-2% to -5%: Testing support
-5% to -10%: Oversold zone
-10%+: Deep correction or downtrend
 
 Customization: 
 
 4 corner positions
 5 font sizes (Tiny to Huge)
 Toggle visibility on/off
 
 ═══════════════════════════════════════════════ 
  HOW TO USE - PRACTICAL TRADING GUIDE 
 ═══════════════════════════════════════════════ 
 STRATEGY 1: Trend Following 
 
 Identify trend : Wait for GREEN (bullish) or RED (bearish) cloud
 Enter on signal : Golden Cross in GREEN cloud = LONG, Death Cross in RED cloud = SHORT
 Hold position : While cloud maintains color
 Exit signals :
   • Cloud turns ORANGE/BLUE = momentum weakening, tighten stops
   • Opposite crossover = close position
   • Cloud turns opposite color = full reversal
 
 STRATEGY 2: Pullback Entries 
 
 Confirm trend : GREEN cloud established (bullish bias)
 Wait for pullback : Price touches or crosses below Fast MA
 Enter when : Price rebounds back above Fast MA with cloud still GREEN
 Stop loss : Below Medium MA or recent swing low
 Target : Previous high or when cloud weakens
 
 STRATEGY 3: Momentum Confirmation 
 
 Your setup triggers : (e.g., chart pattern, support/resistance)
 Check cloud color :
   • GREEN = proceed with LONG
   • RED = proceed with SHORT  
   • BLUE/ORANGE = skip or reduce size
 Use gradient as confluence : Not as primary signal, but as momentum filter
 
 Risk Management Tips: 
 
 Never enter against the cloud color (don't LONG in RED cloud)
 Reduce position size during BLUE/ORANGE (transition periods)
 Place stops beyond Medium MA for swing trades
 Use Slow MA (200) as final trend filter - don't SHORT above it in uptrends
 
  
 ═══════════════════════════════════════════════ 
  PERFORMANCE & OPTIMIZATION 
 ═══════════════════════════════════════════════ 
 Tested On: 
 
 Crypto: BTC, ETH, major altcoins
 Stocks: SPY, AAPL, TSLA, QQQ
 Forex: EUR/USD, GBP/USD, USD/JPY
 Indices: S&P 500, NASDAQ, DJI
 
 ═══════════════════════════════════════════════ 
  TRANSPARENCY & RELIABILITY 
 ═══════════════════════════════════════════════ 
 Educational Focus: 
 
 Detailed tooltips on every input
 Clear documentation of methodology
 Practical examples in descriptions
 Teaches you  why , not just  what 
 
 Open Logic: 
 
 Momentum calculation: (Fast slope + Medium slope) / 2
 Smoothing: 8-bar EMA to reduce noise
 Thresholds: ±0.02% for strong momentum classification
 Everything is transparent and explainable
 
 ═══════════════════════════════════════════════ 
  COMPLETE FEATURE LIST 
 ═══════════════════════════════════════════════ 
 Visual Components: 
 
 26-layer exponential gradient cloud
 3 customizable moving average lines
 Golden Cross / Death Cross labels
 Real-time info panel with trend strength
 MA distance table
 
 Calculation Features: 
 
 6 MA types (EMA, SMA, WMA, VWMA, RMA, HMA)
 Momentum-based cloud coloring
 Smoothed trend strength scoring
 Conditional performance optimization
 
 Customization Options: 
 
 All MA lengths adjustable
 All colors customizable (when gradient disabled)
 Panel position (4 corners)
 Font sizes (5 options)
 Toggle any feature on/off
 
 Signal Features: 
 
 Anti-spam filter (configurable gap)
 Clean, non-overlapping labels
 Built-in alert conditions
 No repainting guarantee
 
 ═══════════════════════════════════════════════ 
  IMPORTANT DISCLAIMERS 
 ═══════════════════════════════════════════════ 
 
 This indicator is for  educational and informational purposes only 
 Not financial advice - always do your own research
 Past performance does not guarantee future results
 Use proper risk management - never risk more than you can afford to lose
 Test on paper/demo accounts before using with real money
 Combine with other analysis methods - no single indicator is perfect
 Works best in trending markets; less effective in choppy/sideways conditions
 Signals may perform differently in different timeframes and market conditions
 The indicator uses historical data for MA calculations - allow sufficient lookback period
 
 ═══════════════════════════════════════════════ 
  CREDITS & TECHNICAL INFO 
 ═══════════════════════════════════════════════ 
 Version:  2.0
 Release:  October 2025
 Special Thanks: 
 
 TradingView community for feedback and testing
 Pine Script documentation for technical reference
 
 ═══════════════════════════════════════════════ 
  SUPPORT & UPDATES 
 ═══════════════════════════════════════════════ 
 Found a bug?  Comment below with:
 
 Ticker symbol
 Timeframe
 Screenshot if possible
 Steps to reproduce
 
 Feature requests?  I'm always looking to improve! Share your ideas in the comments.
 Questions?  Check the tooltips first (hover over any input) - most answers are there. If still stuck, ask in comments.
 ═══════════════════════════════════════════════ 
 Happy Trading!  
Remember: The best indicator is the one you understand and use consistently. Take time to learn how the cloud behaves in different market conditions. Practice on paper before going live. Trade smart, manage risk, and may the trends be with you! 🚀
Friday’s Close – Futures Weekend AnchorPurpose:
This indicator highlights the US futures weekend close price — the exact level where CME markets end trading on Friday at 4:00 PM CT / 5:00 PM ET.
It’s designed primarily for crypto traders who want to compare weekend market behavior to the traditional finance (TradFi) close.
Why it matters:
Crypto trades 24/7, but global liquidity and sentiment still pivot around the Friday futures close. During the weekend, crypto can “drift” relative to traditional markets — this line shows exactly where the week ended for Wall Street, giving you a clean reference point until futures reopen on Sunday evening.
Features
 
 Precise Friday close capture (CME weekend close minute, not just daily bar)
 Works on any ticker — especially useful for BTC, ETH, or other crypto assets
 Adjustable for time zone (New York / Chicago / custom)
 Option to select prior weeks with weekOffset
 Draws a single clean line from Friday’s close forward — no clutter, no vertical stitches
 Optional right-edge label with the close value and timestamp
 
Usage Tips
Keep the chart’s timezone in sync with your anchor (America/New_York = 5 PM ET, America/Chicago = 4 PM CT).
Use weekOffset = 1 to view last week’s Friday close.
Combine with volume, funding, or open interest indicators to see how weekend moves relate to the TradFi close.
Ideal for weekend analysis — shows whether crypto is trading rich or cheap vs. the Friday benchmark before futures reopen.
Recommended For
Crypto traders, analysts, and quant enthusiasts who monitor TradFi–crypto decoupling or weekend premium behavior.






















