ScalpSwing Pro SetupScript Overview
This script is a multi-tool setup designed for both scalping (1m–5m) and swing trading (1H–4H–Daily). It combines the power of trend-following , momentum , and mean-reversion tools:
What’s Included in the Script
1. EMA Indicators (20, 50, 200)
- EMA 20 (blue) : Short-term trend
- EMA 50 (orange) : Medium-term trend
- EMA 200 (red) : Long-term trend
- Use:
- EMA 20 crossing above 50 → bullish trend
- EMA 20 crossing below 50 → bearish trend
- Price above 200 EMA = uptrend bias
2. VWAP (Volume Weighted Average Price)
- Shows the average price weighted by volume
- Best used in intraday (1m to 15m timeframes)
- Use:
- Price bouncing from VWAP = reversion trade
- Price far from VWAP = likely pullback incoming
3. RSI (14) + Key Levels
- Shows momentum and overbought/oversold zones
- Levels:
- 70 = Overbought (potential sell)
- 30 = Oversold (potential buy)
- 50 = Trend confirmation
- Use:
- RSI 30–50 in uptrend = dip buying zone
- RSI 70–50 in downtrend = pullback selling zone
4. MACD Crossovers
- Standard MACD with histogram & cross alerts
- Shows trend momentum shifts
- Green triangle = Bullish MACD crossover
- Red triangle = Bearish MACD crossover
- Use:
- Confirm swing trades with MACD crossover
- Combine with RSI divergence
5. Buy & Sell Signal Logic
BUY SIGNAL triggers when:
- EMA 20 crosses above EMA 50
- RSI is between 50 and 70 (momentum bullish, not overbought)
SELL SIGNAL triggers when:
- EMA 20 crosses below EMA 50
- RSI is between 30 and 50 (bearish momentum, not oversold)
These signals appear as:
- BUY : Green label below the candle
- SELL : Red label above the candle
How to Trade with It
For Scalping (1m–5m) :
- Focus on EMA crosses near VWAP
- Confirm with RSI between 50–70 (buy) or 50–30 (sell)
- Use MACD triangle as added confluence
For Swing (1H–4H–Daily) :
- Look for EMA 20–50 cross + price above EMA 200
- Confirm trend with MACD and RSI
- Trade breakout or pullback depending on structure
지수 이동 평균 (EMA)
Visualisation tendancesThis script allows you to visualize the current trend of a financial asset.
It has two colors:
- Green for bullish phases
- Red for bearish phases
This allows you to instantly position yourself in the direction of the trend.
It also integrates Bollinger Bands, a volatility indicator.
This allows you to display two different indicators in a single indicator.
Dynamic EMA Ribbon🔹 Dynamic EMA Ribbon is a clean and powerful visual tool for analyzing market trends. This script creates a ribbon of exponential moving averages (EMAs) that stretches from a customizable starting length to an ending length.
🔸 The indicator highlights trend direction by comparing the first EMA (shortest) with the last EMA (longest):
If the first EMA is above the last → the color is green (bullish).
If the first EMA is below the last → the color is red (bearish).
🔸 Key features:
The intermediate EMAs are hidden but used to generate gradient fills, forming a ribbon-like visual structure.
The fill opacity increases progressively, helping users visually gauge trend strength.
The start EMA is plotted in blue or purple, and the end EMA is marked with green or red circles, depending on the trend.
🔹 Ideal for:
Spotting and confirming short- to medium-term trends.
Using as a visual layer underneath price action or alongside other indicators.
✏️ Customizable Inputs:
Starting EMA length
Ending EMA length
📌 Tip: Combine this ribbon with volume, support/resistance levels, or trend-following indicators for optimal setups.
RSI in pane and 3 EMAs on chartCustom RSI in Pane + 3 EMAs on Chart — with Optional RSI Divergence Detection
Combines RSI in a separate pane with 3 EMAs on the chart and optional RSI-based divergence detection. Useful for analyzing both momentum and trend structure.
Features
RSI Pane
Custom RSI calculation (not built-in ta.rsi) with adjustable source and length
Overlay optional moving average (SMA, EMA, SMMA/RMA, WMA, VWMA, or Bollinger Bands) Overbought/oversold gradient fill for visual clarity (70 / 30 zones)
Midline (50) for neutral RSI territory
RSI Divergence Detection
Optional: toggle on/off with one input
Regular Bullish Divergence : Price makes a lower low, RSI makes a higher low
Regular Bearish Divergence : Price makes a higher high, RSI makes a lower high
Customizable lookback for pivot detection
Visual markers and labels plotted on RSI
Built-in alert conditions for both divergence types
3 EMA Trend Indicators on Price Chart
Three customizable EMAs (default: 20, 50, 200)
Color-coded and clearly plotted on main chart
Use to determine short/mid/long-term trend bias
No repainting or smoothing artifacts
Why use this script?
Gives a full view of trend + momentum without cluttering the main price chart, and it helps confirm entries and exits by observing RSI behavior alongside EMAs. The optional divergence detection can act as a signal for potential exhaustion or reversal (not entry signals on their own). It is a Good fit for traders who use RSI zones, divergences, and EMA structure in their decision-making, both for intra-day and swing trades (where it performs best).
How to use
Add this script to your chart. EMAs will appear on the main price chart; RSI and divergence will appear in a separate pane.
Adjust RSI and MA settings to fit your trading style (e.g., fast RSI for scalping, slower for swing)
Enable "Show Divergence" if you want visual alerts and markers
Use alerts to get notified when a divergence occurs without watching the chart
Always check the divergences on different time frames to validate the setup, and do not consider them valid on small time frames (<15 minutes).
Built for traders who want both momentum and trend context in a single tool — without clutter, repainting, or noise. I created this script to streamline my own analysis and avoid switching between multiple indicators. It's not meant to be a "signal generator" but a visual assistant for making better decisions. If you find it useful or have feedback, feel free to reach out.
Multi Dynamic EMA/SMAMultiple dynamic EMA or SMA lines that you can pick up to 5. With Legend.
This script allows traders to plot up to five fully customizable moving average lines (EMA or SMA) on their chart. Each line can be configured with its own:
Length (e.g., 9, 21, 50, 200)
Type (EMA or SMA)
Color
In addition to the plotted lines, a legend table appears in the top-left corner of the chart, clearly displaying the type and length of each moving average along with a color-coded background for easy reference.
6 EMA CryptoThis script plots six customizable Exponential Moving Averages (EMA) with default lengths of 9, 12, 21, 50, 100, and 200 periods.
It is designed for traders who want to track both short-term momentum and long-term trends on any asset, including crypto, forex, and stocks.
Each EMA can be individually enabled or disabled and customized with different colors.
Ideal for identifying trend strength, pullbacks, and potential reversals across multiple timeframes.
ES1! vs ZB1! Exponentially Weighted CorrelationES1! vs ZB1! Exponentially Weighted Correlation
This indicator calculates and visualizes the exponentially weighted correlation between the S&P 500 E-mini futures (ES1!) and the 30-Year U.S. Treasury Bond futures (ZB1!) over a user-defined lookback period. By using an exponential moving average (EMA) approach, it emphasizes recent price movements, providing a dynamic view of the relationship between these two key financial instruments.
Features:
- Customizable Inputs: Adjust the lookback length (default: 60) and alpha (default: 0.1) to fine-tune the sensitivity of the correlation calculation.
- Exponentially Weighted Correlation: Measures the strength and direction of the relationship between ES1! and ZB1! prices, with more weight given to recent data.
- Visual Clarity: Displays correlation as colored bars (green for positive, red for negative) for quick interpretation, with reference lines at 0, +1, and -1 for context.
- Non-Overlay Design: Plotted in a separate panel below the chart to avoid cluttering price data.
How It Works:
The indicator fetches closing prices for ES1! and ZB1!, applies an EMA to smooth the data, and computes the exponentially weighted covariance and variances. The correlation is then derived and plotted as a histogram, helping traders identify whether the two markets are moving together (positive correlation), in opposite directions (negative correlation), or independently.
Use Cases:
- Market Analysis: Gauge the relationship between equity and bond markets to inform trading strategies.
- Risk Management: Monitor correlation shifts to adjust portfolio exposure.
- Intermarket Insights: Identify trends or divergences in the stock-bond dynamic for macroeconomic analysis.
Ideal for traders and analysts tracking intermarket relationships, this indicator offers a clear, responsive tool for understanding ES1! and ZB1! correlation in real-time.
EMA Swing Strategy (No Patterns)// DESCRIPTION:
// This EMA Swing Strategy is built for short-term swing trades (2-3 days holding period) in volatile markets.
// It uses EMA 5, 10, 20, and 100 to identify momentum and trend alignment without relying on patterns, wicks, or pullbacks.
// The strategy looks for price crossing and holding above/below EMA 10 & 20 for mean reversion entries, with EMA 100 as a trend filter.
// Optional MACD histogram and ATR volatility filters can be toggled on or off for cleaner entries.
// Alerts are included for BUY/SELL signals, and the strategy is designed for high-speed, clean mechanical execution.
// Ideal for traders adapting to modern, fast-moving price action who prefer systemized logic over traditional chart reading.
Day Trade Moving Average TrioA simple, single indicator for lower timeframe day-trading with moving averages.
Order Blocks & Breaker Blocks + EMA 50/200 + RSIthis instrument shows actual trend with order blocks on different timeframes and EMA 50/200
2m + 15m 20T Trend Reversal SignalsCombination of my 2m and 15m 20T signals - created for my system and those who trade it, you won't find use in this indicator otherwise
Multi-Timeframe TRAMAs (1m-10m)Combines Luxalgo's 1m, 2m, 3m, 5m and 10m TRAMAs to be visible on any timeframe.
Created to pick targets on OBs near flat 200Ts, so that it's impossible to miss an exit signal.
EMA + Supertrend (Clean)This script is designed to help traders visually identify the primary market trend using a combination of two Exponential Moving Averages (EMA50 and EMA200) and a reversed-color Supertrend indicator.
✅ Key Features:
EMA50 and EMA200 are plotted with dynamic coloring: green when EMA50 is above EMA200 (bullish), and red when EMA50 is below EMA200 (bearish).
Supertrend is plotted with reversed colors for better clarity: red during uptrends and green during downtrends — making cross-analysis easier.
A translucent background fill (green or red) highlights trend dominance based on EMA crossover.
Clean and minimal interface — no buy/sell signals, alerts, or TP/SL levels — ideal for traders who prefer to combine this with other indicators or price action analysis.
🔍 Best suited for swing traders and trend followers, especially on 4H and Daily timeframes. Helps you stay on the right side of the market without clutter.
⚠️ Note: This indicator is not financial advice. Always backtest and combine with your own strategy for best results.
Created by for the global TradingView community. Feel free to customize and build on top of it!
RSI Full [Titans_Invest]RSI Full
One of the most complete RSI indicators on the market.
While maintaining the classic RSI foundation, our indicator integrates multiple entry conditions to generate more accurate buy and sell signals.
All conditions are fully configurable, allowing complete customization to fit your trading strategy.
⯁ WHAT IS THE RSI❓
The Relative Strength Index (RSI) is a technical analysis indicator developed by J. Welles Wilder. It measures the magnitude of recent price movements to evaluate overbought or oversold conditions in a market. The RSI is an oscillator that ranges from 0 to 100 and is commonly used to identify potential reversal points, as well as the strength of a trend.
⯁ HOW TO USE THE RSI❓
The RSI is calculated based on average gains and losses over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and includes three main zones:
Overbought: When the RSI is above 70, indicating that the asset may be overbought.
Oversold: When the RSI is below 30, indicating that the asset may be oversold.
Neutral Zone: Between 30 and 70, where there is no clear signal of overbought or oversold conditions.
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND/OR .
📈 RSI Conditions:
🔹 RSI > Upper
🔹 RSI < Upper
🔹 RSI > Lower
🔹 RSI < Lower
🔹 RSI > Middle
🔹 RSI < Middle
🔹 RSI > MA
🔹 RSI < MA
📈 MA Conditions:
🔹 MA > Upper
🔹 MA < Upper
🔹 MA > Lower
🔹 MA < Lower
📈 Crossovers:
🔹 RSI (Crossover) Upper
🔹 RSI (Crossunder) Upper
🔹 RSI (Crossover) Lower
🔹 RSI (Crossunder) Lower
🔹 RSI (Crossover) Middle
🔹 RSI (Crossunder) Middle
🔹 RSI (Crossover) MA
🔹 RSI (Crossunder) MA
🔹 MA (Crossover) Upper
🔹 MA (Crossunder) Upper
🔹 MA (Crossover) Lower
🔹 MA (Crossunder) Lower
📈 RSI Divergences:
🔹 RSI Divergence Bull
🔹 RSI Divergence Bear
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND/OR .
📉 RSI Conditions:
🔸 RSI > Upper
🔸 RSI < Upper
🔸 RSI > Lower
🔸 RSI < Lower
🔸 RSI > Middle
🔸 RSI < Middle
🔸 RSI > MA
🔸 RSI < MA
📉 MA Conditions:
🔸 MA > Upper
🔸 MA < Upper
🔸 MA > Lower
🔸 MA < Lower
📉 Crossovers:
🔸 RSI (Crossover) Upper
🔸 RSI (Crossunder) Upper
🔸 RSI (Crossover) Lower
🔸 RSI (Crossunder) Lower
🔸 RSI (Crossover) Middle
🔸 RSI (Crossunder) Middle
🔸 RSI (Crossover) MA
🔸 RSI (Crossunder) MA
🔸 MA (Crossover) Upper
🔸 MA (Crossunder) Upper
🔸 MA (Crossover) Lower
🔸 MA (Crossunder) Lower
📉 RSI Divergences:
🔸 RSI Divergence Bull
🔸 RSI Divergence Bear
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : RSI Full
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy the Spell!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
SPY Hunter SetupBuilt for traders who want to capture high-probability momentum moves on SPY using clean technical logic.
This strategy was developed and refined to help filter out noise and highlight only the best potential trade setups by combining multiple proven indicators into a cohesive system. The goal is to reduce false signals, limit overtrading, and increase confidence in your entries.
🔻 Put Signals Trigger When:
RSI is above 35
ZLSMA or EMA 9 is sloping down
MACD histogram is bearish
OB/OS value is ≥ 25
Volume is ≥ 70% of the 20-bar average
🔺 Call Signals Trigger When:
RSI is below 50
ZLSMA or EMA 9 is sloping up
MACD histogram is bullish
OB/OS value is ≤ -70
Volume is ≥ 100% of the 20-bar average
Parameter Value (In Indicator Settings)
RSI Source close
RSI Length 14
Call: RSI below 50
Put: RSI above 35
MACD Fast Length 12
MACD Slow Length 26
MACD Signal Smoothing 9
ZLSMA Length 50
EMA Length 9
Volume SMA Length 20
Call: Volume SMA % Threshold 1.0
Put: Volume SMA % Threshold 0.7
Call: OB/OS ≤ -70
Put: OB/OS ≥ 25
OB/OS Source close
OB/OS Length 5
Dual EMA Offset SyncOverview:
The Dual EMA Offset Sync indicator is a powerful tool for traders who want more refined control over trend tracking by combining two separate Exponential Moving Averages (EMAs) with customizable sources and independent offsets.
🔧 Features:
📈 Dual EMA Calculations: Uses two independently configured EMAs.
🎯 Separate Source Inputs: Apply EMAs to different price sources (e.g., high/low, open/close).
🕐 Custom Offset Control: Delay or sync each EMA individually to analyze historical context or future projection.
🎨 Visual Clarity: Clean and distinct plots (red and blue) for better contrast and signal visibility.
💡 Use Cases:
Trend Confirmation: Compare short-term vs. long-term or different price action perspectives.
Mean Reversion Strategies: Offset EMAs to identify stretched price zones.
Timing Entries/Exits: Adjust offsets to time lagging or leading signals effectively.
📌 Tip:
Use different lengths and sources (like high and low, or close and open) to get creative with your market interpretation and reveal hidden momentum or volatility signals.
RSI + MA + Divergence + SnR + Price levelOverview
This indicator combines several technical analysis tools to give traders a comprehensive view based on the RSI indicator. Its main features include:
RSI & Moving Averages on RSI:
RSI: Calculates the RSI based on the closing price (or a user-selected source) with a configurable period (default is 14).
EMA and WMA: Computes and plots an Exponential Moving Average (EMA with a period of 9) and a Weighted Moving Average (WMA with a period of 45) on the RSI, helping to smooth out signals and better identify trends.
Price Ladder Based on RSI:
Draws horizontal lines at specified target RSI levels (from targetRSI1 to targetRSI7, default levels ranging from 20 to 80).
Calculates a target price based on the price change relative to the averaged gains and losses, providing an estimated price level when the RSI reaches those critical levels.
Divergence Detection:
Identifies divergence between price and RSI:
Bullish Divergence: Detected when the price forms a lower low but RSI fails to confirm with a corresponding lower low, with the RSI falling under a configurable threshold (d_below).
Bearish Divergence: Detected when the price forms a higher high while the RSI does not, with the RSI exceeding a configurable upper threshold (d_upper).
Optionally displays labels on the chart to alert the trader when divergence signals are detected.
Auto Support & Resistance on RSI:
Automatically calculates and plots support and resistance lines based on the RSI over different lookback periods (e.g., 34, 89, 200 bars).
Helps traders identify key RSI levels where price reversals or breakouts might occur.
Benefits for the Trader
This indicator is designed to assist traders in their decision-making process by integrating multiple technical analysis elements:
Identifying Market Trends:
By combining the RSI with its moving averages (EMA, WMA), traders can better assess market trends and the strength of these trends, thereby improving trade entry accuracy.
Early Reversal Signals via Divergence:
Divergence signals (both bullish and bearish) can help forecast potential reversals in the market, allowing traders to adjust their strategies timely.
Determining RSI-Based Support/Resistance Levels:
Automatic identification of support and resistance levels on the RSI provides key areas where a price reversal or breakout may occur, assisting traders in setting stop-loss and take-profit levels strategically.
Price Target Forecasting with the Price Ladder:
The target price labels calculated at important RSI levels provide insights into potential price objectives, aiding in risk management and profit planning.
Flexible Configuration:
Traders can customize key parameters such as the RSI period, lengths for EMA and WMA, target RSI levels, divergence conditions, and support/resistance settings. This flexibility allows the indicator to adapt to different trading styles and strategies.
How to read data
Some use-cases
Used to estimate price according to the RSI level.
When you trade using RSI, you want to set your stop-loss or take-profit levels based on RSI. By looking at the price ladder, you know the corresponding price level to enter a trade.
Used to determine the entry zone.
RSI often reacts to its own previously established support/resistance levels. Use the Auto SnR feature to identify those zones.
Used to determine the trend.
RSI and its moving averages help identify the price trend:
Uptrend: 3 lines separate and point upward.
Downtrend: 3 lines separate and point downward.
Use WMA45 to determine the trend:
Uptrend: WMA45 is moving upward or trading above the 50 level.
Downtrend: WMA45 is moving downward or trading below the 50 level.
Sideways: WMA45 is trading around the 50 level.
Use EMA9 to confirm the trend: A crossover of EMA9 through WMA45 confirms the formation of a new trend.
Configuration
The script allows users to configure a number of important parameters to suit their analytical preferences:
RSI Settings:
RSI Length (rsiLengthInput): The number of periods used to compute the RSI (default is 14, adjustable as needed).
RSI Source (rsiSourceInput): Select the price source (default is the closing price).
RSI Color (rsiClr): The color used to display the RSI line.
Moving Averages on RSI:
EMA Length (emaLength): The period for calculating the EMA on RSI (default is 9).
WMA Length (wmaLength): The period for calculating the WMA on RSI (default is 45).
EMA Color (emaClr) and WMA Color (wmaClr): Customize the colors of the EMA and WMA lines.
Price Ladder Settings:
Toggle Price Ladder (showPrice): Enable or disable the display of the price ladder.
Target RSI Levels: targetRSI1 through targetRSI7: RSI values at which target prices are calculated (default values range from 20, 30, 40, 50, 60, 70 to 80).
Price Label Color (priceColor): The text color for displaying the target price labels.
Divergence Settings:
Divergence Toggle (calculateDivergence): Option to enable or disable divergence calculation and display.
Divergence Conditions:
d_below: RSI level below which bullish divergence is considered.
d_upper: RSI level above which bearish divergence is considered.
Display Divergence Labels (showDivergenceLabel): Option to display labels on the chart when divergence is detected.
Auto Support & Resistance on RSI:
Toggle Auto S&R (enableAutoSnR): Enable or disable automatic plotting of support and resistance levels.
Lookback Periods for Support/Resistance:
L1_lookback: Lookback period for level 1 (e.g., 34 bars).
L2_lookback: Lookback period for level 2 (e.g., 89 bars).
L3_lookback: Lookback period for level 3 (e.g., 200 bars).
Support and Resistance Colors:
rsiSupportClr: Color for the support line.
rsiResistanceClr: Color for the resistance line.
Alerts:
Divergence Alerts: Alert conditions are set up to notify the trader when bullish or bearish divergence is detected, aiding in timely decision-making.
Pino Trend Pack (SMA/EMA + Bollinger)🔹 Pino Trend Pack is a compact trend-following and volatility indicator that includes:
📈 Moving Averages:
- SMA 10, SMA 30
- EMA 21, EMA 55, EMA 89
(All configured for short-term to mid-term trend analysis by default, but fully adjustable for user preference.)
📊 Bollinger Bands:
- Period: 20
- Standard Deviation: 2.0
- Includes Upper Band, Lower Band, and Basis (SMA 20)
This pack is designed for traders who want a clean visual of price dynamics across multiple short-term trend layers, combined with volatility tracking. It helps you identify compression, expansion, and trend shifts at a glance.
🧠 Ideal for swing trading, short- to mid-term setups, or as a supporting tool in any confluence-based strategy.
OneTrend EMAThis strategy uses exponential moving averages (EMA) to define market trend direction and employs a dynamic ATR-based threshold adjusted by a custom ADX calculation to generate bullish (blue) and bearish (pink) zones. It enters long positions when the fast EMA exceeds the threshold (blue zone) and exits when it falls below the threshold (pink zone), providing clear, rule-based signals for trend-following trades. Pros include adaptive thresholding that reflects market volatility and trend strength, while cons are potential lag in sideways or choppy markets and susceptibility to whipsaws in volatile conditions.
Advanced MACD + MA + RSI + Trend Buy/SellThis advanced indicator combines MACD, dual moving averages, RSI, volume spikes, and a 200 EMA trend filter to generate high-confidence Buy/Sell signals. It aims to reduce false signals by aligning multiple technical conditions:
EMA-Based Squeeze Dynamics (Gap Momentum & EWMA Projection)EMA-Based Squeeze Dynamics (Gap Momentum & EWMA Projection)
🚨 Main Utility: Early Squeeze Warning
The primary function of this indicator is to warn traders early when the market is approaching a "squeeze"—a tightening condition that often precedes significant moves or regime shifts. By visually highlighting areas of increasing tension, it helps traders anticipate potential volatility and prepare accordingly. This is intended to be a statistically and psychologically grounded replacement of so-called "fib-time-zones," which are overly-deterministic and subjective.
📌 Overview
The EMA-Based Squeeze Dynamics indicator projects future regime shifts (such as golden and death crosses) using exponential moving averages (EMAs). It employs historical interval data and current market conditions to dynamically forecast when the critical EMAs (50-period and 200-period) will reconverge, marking likely trend-change points.
This indicator leverages two core ideas:
Behavioral finance theory: Traders often collectively anticipate popular EMA crossovers, creating a self-fulfilling prophecy (normative social influence), similar to findings from Solomon Asch’s conformity experiments.
Bayesian-like updates: It utilizes historical crossover intervals as a prior, dynamically updating expectations based on evolving market data, ensuring its signals remain objectively grounded in actual market behavior.
⚙️ Technical & Mathematical Explanation
1. EMA Calculations and Regime Definitions
The indicator uses three EMAs:
Fast (9-period): Represents short-term price movement.
Medial (50-period): Indicates medium-term trend direction.
Slow (200-period): Defines long-term market sentiment.
Regime States:
Bullish: 50 EMA is above the 200 EMA.
Bearish: 50 EMA is below the 200 EMA.
A shift between these states triggers visual markers (arrows and labels) directly on the chart.
2. Gap Dynamics and Historical Intervals
At each crossover:
The indicator records the gap (distance) between the 50 and 200 EMAs.
It tracks the historical intervals between past crossovers.
An Exponentially Weighted Moving Average (EWMA) of these intervals is calculated, weighting recent intervals more heavily, dynamically updating expectations.
Important note:
After every regime shift, the projected crossover line resets its calculation. This reset is visually evident as the projection line appears to move further away after each regime change, temporarily "repelled" until the EMAs begin converging again. This ensures projections remain realistic, grounded in actual EMA convergence, and prevents overly optimistic forecasts immediately after a regime shift.
3. Gap Momentum & Adaptive Scaling
The indicator measures how quickly or slowly the gap between EMAs is changing ("gap momentum") and adjusts its forecast accordingly:
If the gap narrows rapidly, a crossover becomes more imminent.
If the gap widens, the next crossover is pushed further into the future.
The "gap factor" dynamically scales the projection based on recent gap momentum, bounded between reasonable limits (0.7–1.3).
4. Squeeze Ratio & Background Color (Visual Cues)
A "squeeze ratio" is computed when market conditions indicate tightening:
In a bullish regime, if the fast EMA is below the medial EMA (price pulling back towards long-term support), the squeeze ratio increases.
In a bearish regime, if the fast EMA rises above the medial EMA (price rallying into long-term resistance), the squeeze ratio increases.
What the Background Colors Mean:
Red Background: Indicates a bullish squeeze—price is compressing downward, hinting a bullish reversal or continuation breakout may occur soon.
Green Background: Indicates a bearish squeeze—price is compressing upward, suggesting a bearish reversal or continuation breakout could soon follow.
Opacity Explanation:
The transparency (opacity) of the background indicates the intensity of the squeeze:
High Opacity (solid color): Strong squeeze, high likelihood of imminent volatility or regime shift.
Low Opacity (faint color): Mild squeeze, signaling early stages of tightening.
Thus, more vivid colors serve as urgent visual warnings that a squeeze is rapidly intensifying.
5. Projected Next Crossover and Pseudo Crossover Mechanism
The indicator calculates an estimated future bar when a crossover (and thus, regime shift) is expected to occur. This calculation incorporates:
Historical EWMA interval.
Current squeeze intensity.
Gap momentum.
A dynamic penalty based on divergence from baseline conditions.
The "Pseudo Crossover" Explained:
A key adaptive feature is the pseudo crossover mechanism. If price action significantly deviates from the projected crossover (for example, if price stays beyond the projected line longer than expected), the indicator acknowledges the projection was incorrect and triggers a "pseudo crossover" event. Essentially, this acts as a reset, updating historical intervals with a weighted adjustment to recalibrate future predictions. In other words, if the indicator’s initial forecast proves inaccurate, it recognizes this quickly, resets itself, and tries again—ensuring it remains responsive and adaptive to actual market conditions.
🧠 Behavioral Theory: Normative Social Influence
This indicator is rooted in behavioral finance theory, specifically leveraging normative social influence (conformity). Traders commonly watch EMA signals (especially the 50 and 200 EMA crossovers). When traders collectively anticipate these signals, they begin trading ahead of actual crossovers, effectively creating self-fulfilling prophecies—similar to Solomon Asch’s famous conformity experiments, where individuals adopted group behaviors even against direct evidence.
This behavior means genuine regime shifts (actual EMA crossovers) rarely occur until EMAs visibly reconverge due to widespread anticipatory trading activity. The indicator quantifies these dynamics by objectively measuring EMA convergence and updating projections accordingly.
📊 How to Use This Indicator
Monitor the background color and opacity as primary visual cues.
A strongly colored background (solid red/green) is an early alert that a squeeze is intensifying—prepare for potential volatility or a regime shift.
Projected crossover lines give a dynamic target bar to watch for trend reversals or confirmations.
After each regime shift, expect a reset of the projection line. The line may seem initially repelled from price action, but it will recalibrate as EMAs converge again.
Trust the pseudo crossover mechanism to automatically recalibrate the indicator if its original projection misses.
🎯 Why Choose This Indicator?
Early Warning: Visual squeeze intensity helps anticipate market breakouts.
Behaviorally Grounded: Leverages real trader psychology (conformity and anticipation).
Objective & Adaptive: Uses real-time, data-driven updates rather than static levels or subjective analysis.
Easy to Interpret: Clear visual signals (arrows, labels, colors) simplify trading decisions.
Self-correcting (Pseudo Crossovers): Quickly adjusts when initial predictions miss, maintaining accuracy over time.
Summary:
The EMA-Based Squeeze Dynamics Indicator combines behavioral insights, dynamic Bayesian-like updates, intuitive visual cues, and a self-correcting pseudo crossover feature to offer traders a reliable early warning system for market squeezes and impending regime shifts. It transparently recalibrates after each regime shift and automatically resets whenever projections prove inaccurate—ensuring you always have an adaptive, realistic forecast.
Whether you're a discretionary trader or algorithmic strategist, this indicator provides a powerful tool to navigate market volatility effectively.
Happy Trading! 📈✨
MTF EMA CloudsThis indicator creates up to 3 configurable EMA clouds
Each cloud uses a fast ema and a slow ema.
Works as follows:
fast ema > slow ema : green
slow ema > fast ema : red
This also allows you to select a custom timeframe for each cloud (only higher timeframes work) and applies a multiplier to show the cloud from that timeframe on the current chart.
OneTrend Vegas TunnelOneTrend Vegas Tunnel is a trend-following breakout strategy that uses multiple exponential moving averages (EMAs) to dynamically define a trading channel and filter false breakout signals.
The strategy constructs a primary channel—known as the Vegas Tunnel—using a 144-period and a 169-period EMA, while a 12-day EMA acts as an entry filter to confirm bullish or bearish breakouts (with trades taken only when both price and the 12-day EMA break above or below the tunnel, respectively).
Additionally, the strategy employs manually calculated ADX and RSI values to “double‐confirm” the trend — while a secondary channel (576- and 676‑period EMAs, colored in gray) provides a long‑term trend reference.
Please note that this script is intended solely for backtesting and educational purposes and does not constitute financial advice.