Macro Valuation Oscillator (MVO)Macro Valuation Oscillator (MVO) is a macro-relative-strength indicator that compares the current valuation of an asset against three key benchmarks: Gold, USD, and Bond. It helps visualize how the asset performs in relative macro terms over time.
When the MVO line for Gold (yellow) moves below the neutral zone (0), it reflects relative weakness against gold. When it rises above +80, it indicates relative strength or potential overheating compared to gold. The same concept applies to USD (blue) and Bond (purple) lines.
The indicator highlights macro-rotation behavior, showing periods when assets outperform (green) or underperform (red) in relative value. It is mainly intended for daily charts, providing a clear visual framework for assessing long-term macro relationships and timing within broader market cycles.
אינדיקטורים ואסטרטגיות
NQ YM Correlogram Meter TypeOverview
This indicator provides a real-time, visual "meter" of the correlation between the Nasdaq 100 (NQ) and the Dow Jones (YM) futures. It is designed as a clean, non-intrusive dashboard panel that displays only the current correlation value, making it an ideal companion for pairs traders who need to see the live relationship at a glance.
Unlike a traditional oscillator that plots historical data, this tool focuses exclusively on the "right now" to aid in immediate trade decisions.
Key Features
Real-Time Correlation Meter: A single vertical bar displays the current correlation, visually mapping the -1.0 to +1.0 range.
Clear Visual Cues: The bar's color gradient (from red for negative correlation to green for positive correlation) and fill level provide an instant understanding of the market relationship.
Precise Value Display: The exact numerical correlation (e.g., 0.85 or -0.50) is shown clearly at the bottom of the meter.
Contextual Y-Axis: Static labels (+1.0, +0.5, 0.0, -0.5) provide quick reference points for the meter's reading.
Dashboard Panel: Renders cleanly as an overlay table on the right side of your chart, saving screen real estate.
How to Use
This indicator is best used as a confirmation tool alongside a primary pairs trading strategy or a historical correlation oscillator.
High Green Bar (near +1.0): Indicates a strong positive correlation. NQ and YM are moving in sync.
Bar near 0.0: Indicates little to no linear relationship.
Low Red Bar (near -1.0): Indicates a strong negative (inverse) correlation. NQ and YM are moving in opposite directions.
For a pairs trader, this meter provides an instant check to confirm if the two assets are in their expected state of correlation at the moment of execution.
Settings & Customization
Correlation Period: Set the lookback length for the correlation calculation.
Symbols: Fully customizable, though it defaults to YM1! and NQ1!.
Panel Appearance: Adjust the Table Size (Small/Large) and Chart Theme (Light/Dark).
Text Size: Independently control the font size for the numerical Value Text and the Y-Axis Labels to perfectly fit your display.
Short-Timeframe Volume Spike DetectorShort-Timeframe Volume Spike Detector
Description:
The Short-Timeframe Volume Spike Detector is an advanced multi-timeframe (MTF) indicator that automatically detects sudden volume surges and price expansion events on a lower timeframe and displays them on a higher (base) timeframe chart — helping traders identify hidden intraday accumulation or breakout pressure within broader candles.
⚙️ How It Works
Select a Base Timeframe (e.g., Daily, 4H, 1H).
The script automatically fetches data from a Lower Timeframe (e.g., Daily → 1H, 1H → 15m).
Within each base bar, it scans all the lower timeframe candles to find:
Volume Spikes: Volume exceeds average × multiplier or a custom threshold.
Price Strength: Candle shows upward movement beyond a minimum % change.
When both conditions are met, a spike signal is plotted on the higher timeframe chart.
🔍 Features
✅ Automatic Lower Timeframe Mapping — Dynamically selects the most relevant lower timeframe.
✅ Two Detection Modes:
Multiplier Mode: Volume spikes defined as multiple of average lower timeframe volume.
Manual Mode: Custom absolute volume threshold.
✅ Trend Filter Option: Show only signals during uptrends (configurable).
✅ Visual Markers:
Purple “X” = Volume Spike Detected
Dotted red & green lines = Candle range extension
✅ Custom Label Placement: Above High / Below Low / At Spike Price
✅ Debug Mode: Displays full diagnostic info including detected volume, threshold, and % change.
📊 Use Cases
Detect early accumulation in daily candles using hourly or 15-min data.
Identify institutional buying interest before visible breakouts.
Confirm strong continuation patterns after price compression.
Spot hidden intraday activity on swing or positional charts.
🧩 Inputs Overview
Input Description
Base Timeframe Main chart timeframe for analysis
Lookback Bars Number of recent candles to scan
Volume Mode “Multiplier” or “Manual Benchmark”
Volume Multiplier Multiplier applied to average lower timeframe volume
Manual Volume Threshold Fixed volume benchmark
Min Price Change % Minimum lower timeframe candle % move to qualify
Use Trend Filter Only show in uptrend (close > close )
Extend Bars Number of bars to extend dotted lines
Label Position Choose Above High / Below Low / At Spike Price
Debug Mode Show live internal values for calibration
🧠 Tips
Ideal for swing traders and multi-timeframe analysts.
Works best when base = Daily and lower = Hourly or 15m.
Combine with Volume Profile, VWAP, or RRG-style analysis for stronger confluence.
Use Multiplier 1.5–2.5 to fine-tune for your asset’s volatility.
⚠️ Notes
Works only when applied to the base timeframe selected in inputs.
May not display signals on non-standard intraday timeframes (like 3H).
Labels limited to max_labels_count for performance stability.
Yang-Zhang Volatility (YZVol) by CoryP1990 – Quant ToolkitThe Yang-Zhang Volatility (YZVol) estimator measures realized volatility using both overnight gaps and intraday moves. It combines three components: overnight returns, open-to-close returns, and the Rogers–Satchell term, weighted by Zhang’s k to reduce bias.
How to read it
Line color: Green when YZVol is rising (volatility expansion), Red when falling (volatility compression).
Background: Green tint = above High-vol threshold (active regime). Red tint = below Low-vol threshold (quiet regime).
Units: Displays Daily % by default on any timeframe (values are normalized to daily). An optional toggle shows Annualized % (√252 × Daily %).
Typical uses
Spot transitions between quiet and active regimes.
Compare realized vol vs implied vol or a risk-target.
Adapt position sizing to volatility clustering.
Defaults
Length = 20
High-vol threshold = 5% (Daily)
Low-vol threshold = 1% (Daily)
Optional: Annualized % display
Example — SPY (1D)
During the 2020 crash, YZVol surged to 5.8 % per day, capturing the height of pandemic-era volatility before compressing into a calm regime through 2021. Volatility re-expanded in 2022 due to reinflamed COVID fears and gradually stabilized through 2023. A sharp, liquidity-driven volatility event in August 2024 caused another brief YZVol surge, reflecting the historic one-day VIX spike triggered by market-wide risk-off flows and thin pre-market liquidity. A second, policy-driven expansion followed in April–May 2025, coinciding with the renewed U.S.–China tariff conflict and a sharp equity pullback. Since mid-2025, YZVol has settled near 1 % per day, with the red background confirming that realized volatility has once again compressed into a quiet, low-risk regime.
Part of the Quant Toolkit — transparent, open-source indicators for modern quantitative analysis. Built by CoryP1990.
NQ YM Correlation 1 min dataOverview
This indicator plots the correlation between Nasdaq 100 (NQ) and Dow Jones (YM) futures. It is specifically designed to act as an "Engine RPM" gauge for pairs traders who trade divergence or spread breakouts—not mean reversion.
To ensure consistent readings, this indicator always calculates using a 1-minute timeframe data, regardless of the chart timeframe you are currently viewing.
The core idea is:
High Correlation (Blue Zone): "Low RPM" or "Engine Idle." NQ and YM are moving together. The spread is flat. This is a no-trade zone.
Low Correlation (Red Zone): "High RPM" or "Engine Hot." NQ and YM are diverging. The spread is moving. This is the primary trade zone.
DTC Killzones ICT🕐 DTC Killzones ICT — Visualize Market Sessions Like a Pro
The DTC Killzones ICT indicator is a clean and intuitive tool designed for traders who want to analyze and visualize institutional trading sessions directly on their charts.
Inspired by ICT’s Killzone concept , this script makes it easy to identify overlapping market sessions — such as London, New York, and Asian — and track how price behaves within each zone.
💡 What It Does
This indicator automatically highlights key market sessions (Killzones) on your chart with fully customizable colors, labels, and transparency.
Each zone dynamically updates to reflect real-time highs and lows, helping you identify:
Session ranges and liquidity zones
Volatility windows and breakout areas
Institutional footprints across sessions
Whether you trade Forex, Indices, or Crypto , this script gives you visual clarity on when and where smart money is likely to move.
⚙️ Main Features
✅ Up to four customizable sessions (New York, London, Asian, and London Close)
✅ Adjustable timeframes and timezone options — sync with your exchange or custom UTC offset
✅ Dynamic high/low range tracking for each session
✅ Toggle range outlines, session labels , and transparency levels
✅ Optional daily dividers and session transition markers
✅ Works on any timeframe and any symbol
🧠 How Traders Use It
ICT-based traders can easily mark Killzones to align with setups like FVGs, liquidity grabs, or Silver Bullet entries.
Intraday traders can visualize session volatility and overlap periods for potential entries.
Swing traders can identify daily structure shifts by tracking range-to-range behavior.
🛠️ Customization
You can fully rename, recolor, or disable each session block.
Adjust the range transparency for visual comfort, and toggle session or daily dividers to fit your workflow.
Everything is designed to be clean, light, and modular — no clutter, no confusion.
⚡ Recommended Settings
For ICT-style analysis:
London Session: 02:00–05:00
New York Session: 07:00–10:00
Asian Session: 19:30–24:00
London Close Session: 10:00–12:00
These time windows are fully editable to suit your timezone or strategy.
🧩 Compatibility
Works seamlessly with TradingView’s built-in timezone tools
Compatible with all instruments and timeframes
Designed to overlay directly on your price chart
🏁 Final Notes
The DTC Killzones ICT indicator focuses purely on market session visualization — no alerts, entries, or trading signals.
It’s designed to complement your existing strategies and enhance clarity when analyzing market behavior across global sessions.
📈 Built for traders who value precision, structure, and timing.
Roboquant RP Profits NY Open Retest StrategyRoboquant RP Profits NY Open Retest Strategy A good strategy for CL
《Seguimento de Tendências》Deus das Mensagens👀 Novidades blockchain a cada 6 horas ⬇️
t.me
I really enjoyed reading the book Trend Following. The indicators created based on the book's content include: momentum trading, going long and short, pyramiding, and risk control.
《Theo Dõi Xu Hướng》Thần Khúc Theo Dõi Tin👀 Cập nhật blockchain mỗi 6 giờ ⬇️
t.me
《Trend Following》
I really enjoyed reading the book Trend Following. The indicators created based on the book's content include: momentum trading, going long and short, pyramiding, and risk control.
《Trend Following》I really enjoyed reading the book Trend Following. The indicators created based on the book's content include: momentum trading, going long and short, pyramiding, and risk control.
Message Tracking 👀 Blockchain updates every 6 hours ⬇️
t.me
Previous VWAP Closes MTF## **Indicator: "Previous VWAP Closes MTF"**
### **Overview**
This is a specialized multi-timeframe indicator that plots the **closing VWAP values from previous trading sessions** across three different timeframes. Instead of showing the current, evolving VWAP, it focuses exclusively on the final VWAP levels where previous sessions concluded, treating them as significant reference points for current price action.
### **Core Functionality**
**What It Plots:**
- **Three horizontal lines** representing the final VWAP values from completed sessions
- Weekly previous VWAP close (green/red circles)
- Daily previous VWAP close (lime/orange circles)
- 4-hour previous VWAP close (aqua/purple circles)
**Key Mechanics:**
- **Session Detection**: Automatically identifies when each timeframe session ends
- **VWAP Calculation**: Computes the Volume-Weighted Average Price for each completed session
- **Level Preservation**: "Freezes" and displays the final VWAP value as a horizontal reference line
- **Dynamic Coloring**: Lines change color based on whether current price is above (bullish colors) or below (bearish colors) each level
### **Trading Applications**
**Primary Use Cases:**
1. **Support/Resistance Identification**: Previous VWAP closes often act as magnetic price zones
2. **Breakout Confirmation**: Price sustaining above/below these levels can confirm trend strength
3. **Mean Reversion**: Price often reverts to these historical balance points
4. **Multi-Timeframe Analysis**: Understanding which timeframe's level has the strongest influence
**Practical Scenarios:**
- "Price is approaching the weekly previous VWAP close - watch for reaction"
- "Daily and 4H previous VWAPs are clustered - strong confluence zone"
- "Price broke above all three levels - strong bullish momentum"
### **Alert System**
- **Cross Alerts**: Notifies when price crosses any of the three historical VWAP levels
- **Timeframe Specific**: Alerts specify which timeframe's level was crossed
- **Flexible Enable/Disable**: User can toggle alerts on/off via input settings
### **Visual Features**
- **Clear Hierarchy**: Different colors for easy timeframe distinction
- **Circle Markers**: Visual emphasis on the horizontal levels
- **Optional Bar Coloring**: Can color bars based on position relative to primary level
- **Clean Interface**: No clutter from current VWAP calculations
### **Strategic Value**
This indicator essentially maps **"yesterday's battlegrounds"** - showing where volume and price found equilibrium in previous sessions. These levels often become:
- **Psychological reference points** for traders
- **Institutional interest zones** where large players established positions
- **Natural profit-taking or entry levels** for continuation moves
The multi-timeframe approach allows you to see which historical levels are most relevant to current market structure, providing a sophisticated understanding of potential price magnets and reaction zones.
---
This description captures both the technical functionality and the practical trading value of your customized indicator!
detects bottom rebound signal🧩 General Idea:
This indicator detects bottom rebound signals — the start of an upward move after a downtrend — using a combination of RSI + price + volume.
⚙️ How the Indicator Works:
Calculates the RSI (Relative Strength Index) using a 14-period length.
→ Purpose: Measure momentum after a decline.
Monitors upward RSI crossovers at levels 45, 50, 55, and 60.
→ Purpose: Confirm that momentum is shifting from bearish to bullish.
Checks for a price increase of more than 2% compared to the previous close.
→ Purpose: Ensure that the move is strong and not just a small fluctuation.
Confirms that today’s volume is higher than yesterday’s.
→ Purpose: Validate that buying pressure is supported by real market activity.
When all conditions are met together ⇒ a rebound signal is generated ✅
(It plots a value of 1 as a histogram — can be used as a filter).
Triggers an alert when a rebound signal occurs — so you can get notified automatically in TradingView.
🎯 Indicator Purpose:
To identify stocks that are truly rebounding from their bottom, confirming it through momentum, price strength, and volume — often highlighting early entry opportunities before a larger uptrend.
🧩 الفكرة العامة:
يرصد لحظات ارتداد السهم من القاع — أي بداية صعود بعد فترة نزول — اعتمادًا على RSI + السعر + الحجم.
⚙️ خطوات عمل المؤشر:
يحسب مؤشر القوة النسبية (RSI) بطول 14 شمعة.
الهدف: قياس الزخم بعد نزول طويل.
يراقب تقاطعات RSI لأعلى عند المستويات (45، 50، 55، 60).
الهدف: تأكيد أن الزخم بدأ يتحول من سالب إلى موجب.
يتحقق من ارتفاع السعر أكثر من 2٪ مقارنةً بالإغلاق السابق.
الهدف: التأكد أن الصعود حقيقي وليس مجرد تذبذب بسيط.
يتأكد أن حجم التداول اليوم أكبر من اليوم السابق.
الهدف: وجود دعم حقيقي من المشترين (تأكيد على دخول سيولة).
عند تحقق كل الشروط السابقة معًا ⇒ يعطي إشارة ارتداد من القاع ✅
(يرسم عمودًا بقيمة 1 في الأسفل ويمكن استخدامه كفلتر).
يصدر تنبيه (Alert) عند تحقق الإشارة لتتابعها تلقائيًا في TradingView.
🎯 الهدف من المؤشر:
تحديد الأسهم التي بدأت ترتد فعليًا من القاع مع تأكيد الزخم والحجم والسعر — وهي غالبًا فرص دخول مبكرة قبل استمرار الصعود.
تنبيه مهم: يعمل كفلتر نبيه على قائمة محددة ولا يظهر على الشارت
OpenVWAP Stop-Hunt Short – v6 (failsafe) ZorzOpenVWAP Stop-Hunt Short (Micro/Nano Caps)
Intraday short framework for low-float gappers (NASDAQ/NYSE), optimized for 1m (optional 15s). The script anchors VWAP to Premarket and Regular sessions, tracks PM High (PM HOD) and Open VWAP, and flags liquidity grabs.
Signal logic
SHORT when a stop-hunt above PM HOD or an Open VWAP fakeout occurs and the bar closes below Open VWAP (optional confirmation: crossunder VWMA*0.985 “long50”).
CLOSE when price reclaims Open VWAP or crosses above long50.
Inputs
Min wick%, volume spike vs SMA20, range vs ATR(1)
No-trade bars after the open (filters first noisy minutes)
Toggle ACW confirmation (VWMA*0.985)
Notes
Turn Extended Hours ON; session times are ET.
Best on micro/nano-cap gappers with high PM volume; supports alerts (“Open Short”, “Close Short”).
For research/education only; not financial advice.
Aibuyzone Spot & Swing ZonesAibuyzone Spot & Swing Zones is a technical tool that helps identify potential buy zones during established bullish trends.
It is designed for spot and swing traders who prefer to buy pullbacks within broader uptrends.
This indicator does not place trades or make predictions — it only highlights contextual market areas for study.
How It Works
Trend Alignment Filter
A higher-timeframe EMA and two local EMAs determine trend direction.
Only when both the local and higher-timeframe trends agree as bullish will a potential buy zone be considered valid.
Dynamic Buy Zone (Value Area)
The indicator measures a rolling price range over a user-selected number of bars (e.g., last 50).
The lower fraction of this range (configurable percentage) becomes the buy zone band.
When price revisits this lower section during a bullish trend, it is interpreted as a potential value or discount area.
Liquidity Sweep Filter (Optional)
Detects bars that make a new low relative to recent candles and then close back up with a strong lower wick.
This condition can indicate a possible liquidity grab or stop-hunt event that precedes reversals.
RSI Pullback Filter (Optional)
Confirms that price momentum has cooled during the pullback phase.
Signals occur when RSI falls within a defined “pullback” zone (default 30–55), helping avoid chasing overextended moves.
Confluence Scoring
Each of the three criteria — buy zone presence, liquidity sweep, RSI pullback — adds one point to a confluence score.
A signal only appears when the score meets or exceeds the chosen threshold (for example, 2 of 3).
Visual Elements
Fast and Slow EMAs for short-term trend visualization.
A shaded area marking the dynamic buy zone.
Optional background tint when the overall trend is bullish.
Optional labels below bars when confluence criteria are met.
Alert condition available for custom user alerts.
Suggested Use
Select a higher timeframe that fits your trading horizon (e.g., 4h for swing, 1d for position trading).
Use the shaded band as a visual guide for where price may offer “discounts” within an uptrend.
Combine with support/resistance, volume, or other confluence methods for confirmation.
Adjust the confluence requirement for stricter or looser signals.
Disclaimer
This script is provided for educational and analytical purposes only.
It does not constitute financial advice or a recommendation to buy or sell any asset.
All trading involves risk — always perform your own analysis and manage risk according to your own judgment.
Tristan's Tri-band StrategyTristan's Tri-band Strategy - Confluence Trading System
Strategy Overview:
This strategy combines three powerful technical indicators - RSI, Williams %R, and Bollinger Bands - into a single visual trading system. Instead of cluttering your chart with separate indicator panels, all signals are displayed directly on the price chart using color-coded gradient overlays, making it easy to spot high-probability trade setups at a glance.
How It Works:
The strategy identifies trading opportunities when multiple indicators align (confluence), suggesting strong momentum shifts:
📈 Long Entry Signals:
RSI drops to 30 or below (oversold)
Williams %R reaches -80 to -100 range (oversold)
Price touches or breaks below the lower Bollinger Band
All three conditions must align during your selected trading session
📉 Short Entry Signals:
RSI rises to 70 or above (overbought)
Williams %R reaches 0 to -20 range (overbought)
Price touches or breaks above the upper Bollinger Band
All three conditions must align during your selected trading session
Visual Indicators:
(faint) Green gradients below candles = Bullish oversold conditions (buying opportunity)
(faint) Red/Orange gradients above candles = Bearish overbought conditions (selling opportunity)
Stacked/brighter gradients = Multiple indicators confirming the same signal (higher probability) will stack and show brighter / less faint
Blue Bollinger Bands = Volatility boundaries and mean reversion zones
Exit Strategy:
Long trades exit when price reaches the upper Bollinger Band OR RSI becomes overbought (≥70)
Short trades exit when price reaches the lower Bollinger Band OR RSI becomes oversold (≤30)
Key Features:
✅ Session Filters - Trade only during NY (9:30 AM-4 PM), London (3 AM-11:30 AM), or Asia (7 PM-1 AM EST) sessions
✅ No Repainting - Signals are confirmed on candle close for realistic backtesting and live trading
✅ Customizable Parameters - Adjust RSI levels, BB standard deviations, Williams %R periods, and gradient visibility
✅ Visual Clarity - See all three indicators at once without switching between panels
✅ Built-in Alerts - Get notified when entry and exit conditions are met
How to Use Effectively:
Choose Your Trading Session - For day trading US stocks, enable only the NY session. For forex or 24-hour markets, select the sessions that match your schedule.
Look for Gradient Stacking - The brightest, most visible gradients occur when both RSI and Williams %R signal together. These are your highest-probability setups.
Confirm with Price Action - Wait for the candle to close before entering. The strategy enters on the next bar's open to prevent repainting.
Respect the Bollinger Bands - Entries occur at the outer bands (price extremes), and exits occur at the opposite band or when momentum reverses.
Backtest First - Test the strategy on your preferred instruments and timeframes. Works best on liquid assets with clear trends and mean reversion patterns (stocks, major forex pairs, indices).
Adjust Gradient Visibility - Use the "Gradient Strength" slider (lower = more visible) to make signals stand out on your chart style.
Best Timeframes: 5-minute to 1-hour charts for intraday trading; 4-hour to daily for swing trading (I have also found the 3 hour timeframe to work really well for some stocks / ETFs.)
Best Markets: Liquid instruments with volatility - SPY, QQQ, major stocks, EUR/USD, GBP/USD, major indices
Risk Management: This is a mean reversion strategy that works best in ranging or choppy markets. In strong trends, signals may appear less frequently. Always use proper position sizing and stop losses based on your risk tolerance.
----------------------------------------------
Note: Past performance does not guarantee future results. This strategy is provided for educational purposes. Always backtest thoroughly and practice proper risk management before live trading.RetryClaude can make mistakes. Please double-check responses. Sonnet 4.5
(Mustang Algo) Trend 5/15/30/1H + EMA Lines + Aligned Signal═══════════════════════════════════════════════════════════
MUSTANG ALGO - MULTI-TIMEFRAME TREND ALIGNMENT
═══════════════════════════════════════════════════════════
📊 OVERVIEW:
This indicator analyzes trend alignment across four key timeframes (5m, 15m, 30m, 1H) using customizable moving averages. It helps traders identify high-probability setups when multiple timeframes confirm the same trend direction.
🎯 KEY FEATURES:
✓ Multi-Timeframe Analysis (5m/15m/30m/1H)
- Monitors trend direction on 4 different timeframes simultaneously
- Visual table showing real-time trend status for each period
- Optional price display for each timeframe
✓ Flexible Moving Average System
- Choose from 5 MA types: EMA, SMA, SMMA (RMA), WMA, VWMA
- Customizable Fast MA (default: 20) and Slow MA (default: 50)
- Visual cloud between moving averages (green=bullish, red=bearish)
✓ Alignment Signals
- "4x UP" triangle: All 4 timeframes bullish (strong uptrend)
- "4x DOWN" triangle: All 4 timeframes bearish (strong downtrend)
- Signals appear only when ALL timeframes agree
✓ Visual Enhancements
- MA cloud with transparency for better chart readability
- Optional candle coloring based on local trend
- Clean, customizable dashboard display
✓ Alert System
- Built-in alerts for bullish alignment (4 TF aligned up)
- Built-in alerts for bearish alignment (4 TF aligned down)
- Perfect for automated trading setups
📈 HOW TO USE:
1. **Trend Confirmation**: Wait for alignment signals (triangles) before entering trades
2. **Dashboard Monitoring**: Check the top-right table to see individual TF trends
3. **MA Cloud**: Use the cloud as dynamic support/resistance
4. **Entry Timing**: Enter on local timeframe when higher TFs are aligned
⚙️ CUSTOMIZABLE PARAMETERS:
- Fast MA Length (default: 20)
- Slow MA Length (default: 50)
- MA Type (EMA/SMA/SMMA/WMA/VWMA)
- Toggle dashboard display
- Toggle price display in dashboard
- Toggle MA cloud
- Toggle candle coloring
⚠️ BEST PRACTICES:
- Use on 5m or 15m charts for optimal multi-TF analysis
- Combine with price action and volume for best results
- Alignment signals are rare but highly significant
- Not a standalone system - use as confluence tool
💡 STRATEGY IDEAS:
- Scalping: Enter on local TF when all TFs aligned
- Swing Trading: Hold positions while alignment maintained
- Risk Management: Exit if alignment breaks
- Confluence: Combine with support/resistance levels
📌 NOTES:
- Works on all markets (Crypto, Forex, Stocks, Indices)
- Repaints minimally (only on MA calculations)
- Low resource usage, efficient code
═══════════════════════════════════════════════════════════
Created by Mustang Spirit Trading Academy
For educational purposes - Always manage your risk!
═══════════════════════════════════════════════════════════
5 EMA Combo (5, 10, 20, 50, 200)//@version=5
indicator("5 EMA Combo (5, 10, 20, 50, 200)", shorttitle="5 EMA", overlay=true)
// === EMA 5 ===
len1 = input.int(5, minval=1, title="EMA 5 Length")
src1 = input.source(close, "EMA 5 Source")
ema5 = ta.ema(src1, len1)
plot(ema5, title="EMA 5", color=color.new(color.aqua, 0), linewidth=2)
// === EMA 10 ===
len2 = input.int(10, minval=1, title="EMA 10 Length")
src2 = input.source(close, "EMA 10 Source")
ema10 = ta.ema(src2, len2)
plot(ema10, title="EMA 10", color=color.new(color.yellow, 0), linewidth=2)
// === EMA 20 ===
len3 = input.int(20, minval=1, title="EMA 20 Length")
src3 = input.source(close, "EMA 20 Source")
ema20 = ta.ema(src3, len3)
plot(ema20, title="EMA 20", color=color.new(color.orange, 0), linewidth=2)
// === EMA 50 ===
len4 = input.int(50, minval=1, title="EMA 50 Length")
src4 = input.source(close, "EMA 50 Source")
ema50 = ta.ema(src4, len4)
plot(ema50, title="EMA 50", color=color.new(color.green, 0), linewidth=2)
// === EMA 200 ===
len5 = input.int(200, minval=1, title="EMA 200 Length")
src5 = input.source(close, "EMA 200 Source")
ema200 = ta.ema(src5, len5)
plot(ema200, title="EMA 200", color=color.new(color.red, 0), linewidth=3)
// === Optional Alerts ===
alertcondition(ta.crossover(close, ema200), "Bullish Cross Above EMA 200", "Price crossed above EMA 200")
alertcondition(ta.crossunder(close, ema200), "Bearish Cross Below EMA 200", "Price crossed below EMA 200")
Sector Analysis [SS]Introducing the most powerful sector analysis tool/indicator available, to date, in Pine!
This is a whopper indicator, so be sure to read carefully to ensure you understand its applications and uses!
First of all, because this is a whopper, let's go over the key functional points of the indicator.
The indicator compares the 11 main sector ETFs against whichever ticker you are looking at.
The functions include the following:
Ability to pull technicals from the sectors, such as RSI, Stochastic and Z-Score;
Ability to look at the correlation of the sector ETF to the current ticker you are looking at.
Ability to calculate the R2 value between the ticker you are looking at and each sector.
The ability to run a Two Tailed T-Test against the log returns of the Ticker of interest and the Sector (to analyze statistically significant returns between sectors/tickers).
The ability to analyze the distribution of returns across all sector ETFs.
The ability to pull buying and selling volume across all sector ETFs.
The ability to create an integrated moving average using a sector ETF to predict the expected close range of a ticker of interest.
These are the highlight functions. Below, I will go more into them, what they mean and how to use them.
Pulling Technicals
This is pretty straight forward. You can pull technicals, such as RSI, Stochastic and Z-Score from all the sector ETFs and view them in a table.
See below for the example:
Pulling Correlation
In order to see which sector your ticker of interest follows more closely, we need to look first at correlation and then at R2.
The correlation will look at the immediate relationship over a specified time. A highly positive value, indicates a strong, symbiotic relationship, which the sector and the ticker follow each other. This would be represented by a correlation of 0.8 or higher.
A strong negative correlation, such as -0.8 or lower, indicates that the sector and the ticker are completely opposite. When one goes up, the other goes down and vice versa.
You can adjust your correlation assessment length directly in the settings menu:
If you want to use a sector ETF to find the expected range for a ticker of interest, it is important to locate the highest, POSITIVE, correlation value. Here are the results for MSFT at a correlation lookback of 200:
In this example, we can see the best relationship is with the ETF XLK.
Analysis of R2
R2 is an important metric. It essentially measures how much of the variance between 2 tickers are explained by a simple, linear relationship.
A high R2 means that a huge degree of variance can be explained between the 2 tickers. A low R2 means that it cannot and that the 2 tickers are likely not integrated or closely related.
In general, if you want to use the sector ETF to find the mean and trading range and identify over-valuation/over-extension and under-extension statistically, you need to see both a high correlation and a high R-Squared. These 2 metrics should be analyzed together.
Let's take a look at MSFT:
Here, despite the correlation implying that XLK was the ticker we should use to analyze, when we look at the R Squared, we see actually, we should be using XLI.
XLI has a strong positive relationship with MSFT, albeit a bit less than XLK, but the R2 is solid, > 0.9, indicating the XLI explains much of MSFT's variance.
Two Tailed T-Test
A two tailed T-test analyzes whether there is a statistically significant difference between 2 different groups, or in our case, tickers.
The T-Test is conducted on the log returns of the ticker of interest and the sector. You then can see the P value results, whether it is significant or not. Let's look at MSFT again:
Looking at this, we can see there is no statistically significant difference in returns between MSFT and any of the sectors.
We can also see the SMA of the log returns for more detailed comparison.
If we were to observe a significant finding on the T-Test metrics, this would indicate that one sector either outperforms or underperforms your ticker to a statistically significant degree! If you stumble upon this, you would check the average log returns to compare against the average returns of your ticker of interest, to see whether there is better performance or worse performance from the sector ETF vs. your ticker of interest.
Analyzing the Distribution
The indicator will also analyze the distribution of returns.
This is an interesting option as it can help you ascertain risk. Normally distributed returns imply mean reverting behavviour. Deviations from that imply trending behaviour with higher risk expectancy. If we look at the distribution statistics currently over the last 200 trading days, here are the results:
Here, we can see all show signs of trending, as none of the returns are normally distributed. The highest risk sectors are XLK and XLY.
Why are they the highest risk?
Because the indicator has found a heavy right tailed distribution, indicated sudden and erratic mean reversion/losses are possible.
Creating an MA
Now for the big bonus of the indicator!
The indicator can actually create a regression based range from closely correlated sectors, so you can see, in sectors that are strongly correlated to your ticker, whether your ticker is over-bought, oversold or has mean reverted.
Let's look at MSFT using XLI, our previously identified sector with a high correlation and high R2 value:
The results are pretty impressive.
You can see that MSFT has rode the mean of the sector on the daily timeframe for quite some time. Each time it over extended itself above the sector implied range, it mean reverted.
Currently, if you were to trade based on Pairs or statistics, MSFT is no trade as it is currently trading at its sector mean.
If you are a visual person, you can have the indicator plot the mean reversion points directly:
Green represents a bullish mean reversion and red a bearish mean reversion.
Concluding Remarks
If you like pair trading, following the link between sectors and tickers or want a more objective way to determine whether a ticker is over-bought or oversold, this indicator can help you.
In addition to doing this, the indicator can provide risk insights into different sectors by looking at the distribution, as well as identify under-performing sectors or tickers.
It can also shed light on sectors that may be technically over-bought or oversold by looking at Z-Score, stochastics and RSI.
Its a whopper and I really hope you find it helpful and useful!
Thanks everyone for reading and checking this out!
Safe trades!
3 Moving Average Exponential3 Moving Average Exponential, up to 10 ema with the possibility to personalize the lenght of each of them






















