Triple EMA with Alert | 21, 50, 200 EMA Strategy + Crossover🚀 Boost your trading edge with the Triple EMA with Alert — a professional-grade indicator designed for traders who want precise, real-time trend confirmation across short, medium, and long-term market movements.
🔹 What Makes This Indicator Powerful?
Three Adjustable EMAs — Default: 21, 50, 200 periods (fully customizable 1–200).
Toggle Visibility — Show only the EMAs you need for your strategy.
Real-Time Alerts — Get notified instantly when:
EMA 1 crosses EMA 2 → short-term trend change.
EMA 2 crosses EMA 3 → medium-term trend alignment.
Works on All Markets & Timeframes — Forex, crypto, stocks, indices, and commodities.
🔹 Why Traders Love It
📊 Multi-Timeframe Trend Confirmation — Filter out noise and trade with market momentum.
🎯 Accurate Crossover Signals — Identify bullish and bearish momentum shifts.
🔔 Hands-Free Monitoring — Alerts keep you informed even when you’re away from the chart.
💡 Versatile for Any Strategy — Perfect for scalping, swing trading, or long-term investing.
🔹 How to Use It
Bullish Signal — EMA 1 crossing above EMA 2 or EMA 2 crossing above EMA 3.
Bearish Signal — EMA 1 crossing below EMA 2 or EMA 2 crossing below EMA 3.
Combine with support/resistance zones, RSI, or volume for higher probability trades.
📌 Pro Tip:
Use EMA 21 & EMA 50 for momentum confirmation.
Use EMA 200 to spot the overall market direction.
If you’re serious about trend trading with precision, the Triple EMA with Alert will keep you one step ahead of market moves — no more missed entries or exits.
Emacrossover
Technical Probability MetrixTechnical Probability Metrix — Study Material (for TradingView learners)
This document explains, in plain language, what each block of the script does, how the indicators are calculated, and how to read the on-chart dashboard. Use it to learn—not to replace your own analysis or risk management.
________________________________________
1) What this script is designed to do
Goal: combine multiple classic indicators (RSI, MACD, Stochastic, Volume, VWAP, EMA cross, simple Order-Block band, trend structure, pivots, and Fibonacci context) into:
• a composite trend/probability score
• a clean horizontal dashboard table (status, values, strengths, probabilities)
• alerts for major state changes
It is an overlay study (draws on price chart) and is timeframe-agnostic, with one cross-check on the 15-minute chart for EMA(9/20).
________________________________________
2) Inputs & configuration
All inputs appear in TradingView’s Settings → Inputs and are grouped for clarity.
Elliott Wave (pivot scaffolding)
• Wave Detection Period (wavePeriod): bars on each side of a pivot. Higher = fewer but stronger pivots.
• Show Wave Labels/Lines (placeholders in this version): toggles for potential future labeling/lines.
• Trend Lookback (trendLookback): length for structural trend checks (HH/HL, linreg slope, bar-up/down counts).
Fibonacci
• Show Fibonacci Levels (style/color reserved here).
• Fib Calculation Lookback (fibLookback): range used to define “swing high/low” context.
Technical Indicators
• RSI Length: default 14.
• MACD Fast/Slow/Signal: 12/26/9.
• Stochastic Length: %K length (with %D = SMA(3) inside the code).
• Volume MA Length: period for volume moving average and relative volume.
• EMA 9/20 Periods: for fast/slow moving averages.
Display
• Show Summary Table: toggles the on-chart dashboard.
• Table Position & Size: choose where and how large.
Probability
• Number of Probability Levels: number of “target steps” (probability ladder).
• Adaptive Target Direction: if enabled, directs the ladder by detected trend.
Colors
Customization for bullish/bearish and Fibonacci tint.
________________________________________
3) Core calculations & signals
3.1 RSI
• Formula: standard ta.rsi(close, rsiLength) (0–100).
• Interpretation in script:
o >70: Overbought (weighted negatively in score).
o <30: Oversold (weighted positively).
o Else: Neutral.
3.2 MACD
• Formula: ta.macd(close, fast, slow, signal) → returns MACD line, Signal line, Histogram.
• Signal logic:
o Bullish when MACD > Signal and Histogram rising.
o Bearish when MACD < Signal and Histogram falling.
• Use: contributes ±1.5 to the composite score; histogram value shown in table.
3.3 Stochastic (%K/%D)
• Formula: %K = ta.stoch(close, high, low, length); %D = SMA(%K, 3).
• Signal logic:
o Bullish when %K > %D and %K < 80 (up-turn within range).
o Bearish when %K < %D and %K > 20 (down-turn within range).
• Use: mild ±1 weight; value displayed and strength bar shown.
3.4 Volume analysis
• Volume MA: ta.sma(volume, volumeLength).
• Relative volume (volRatio): volume / volMA.
o High volume: volRatio > 1.5 (context for conviction).
• Use: if high volume and green candle → +1.5; if high volume and red → −1.5; else neutral.
3.5 VWAP
• Value: ta.vwap(hlc3).
• Signals:
o Above VWAP: bullish (+1.5).
o Below VWAP: bearish (−1.5).
• Distance % also computed for strength bar: |close − vwap| / close * 100.
3.6 Simple Order-Block band (context proxy)
• Window: highest high / lowest low over 20 bars.
• Midline (obMid): average of band extremes.
• Signals:
o Close > obMid: bullish (+1).
o Close < obMid: bearish (−1).
• Strength %: where current price sits within the band.
Note: This is not a full institutional order-block model—just a mid-band context.
3.7 EMA(9/20) trend & 15-minute cross-check
• On current chart: EMA(9) vs EMA(20) to get distance % (trend strength proxy).
• On 15-minute timeframe (via request.security):
o Bullish cross: EMA9_15 > EMA20_15 (+1.5).
o Bearish cross: EMA9_15 < EMA20_15 (−1.5).
• Why multi-TF: filters noise on lower TFs and adds confirmation on higher.
________________________________________
4) Composite Trend Model
4.1 Structure & momentum features
• Price position within the trendLookback range.
• Linear regression slope over trendLookback.
• MA trend: SMA(20) vs SMA(50).
• Swing structure: compares recent 20-bar HH/HL vs prior 20-bar HH/HL.
• Bar dominance: counts up-bars vs down-bars across lookback.
4.2 TrendScore (cumulative)
• Adds/subtracts points for:
o Price position (top/bottom of lookback range),
o LinReg slope sign,
o MA(20/50) relationship,
o Swing structure (HH+HL or LH+LL) with double weight,
o Up-bar dominance.
• Classification:
o > +1 → Bullish trend
o < −1 → Bearish trend
o else → Neutral
This TrendScore also contributes ±1.5 into the totalScore separately (trendWeight) to reflect overall regime.
________________________________________
5) Pivot detection (Elliott-style scaffolding)
• Purpose: capture recent significant highs/lows using ta.pivothigh/low with wavePeriod.
• Saves the last ~14 highs and lows (values and their bar indexes).
• Use here: not labeling Elliott waves, but used to compute wavePositionWeight:
o Finds the most recent high/low pair and locates current price within that range.
o If price sits in the lower 38.2% of that range → +2; between 38.2–61.8% → +1; above 61.8% → −1 (mean-reversion bias).
________________________________________
6) Fibonacci context
• Pulls highest high / lowest low over fibLookback to understand the active swing.
• Color options are provided; actual level plotting is minimal in this version.
________________________________________
7) Probability engine
7.1 TotalScore and base probability
• TotalScore = sum of all component weights:
o RSI, MACD, Stoch, Volume, VWAP, OB, EMA(15m), Wave position, and Trend regime.
• Normalization: maps TotalScore to 0–100% via a maxScore (15) to create probabilityBase.
7.2 Individual indicator probabilities (for the table)
• Each indicator also outputs its own probability (e.g., bullish MACD ≈ 70%, bearish ≈ 30%, neutral ≈ 50%).
• The last column shows the Overall Probability (probabilityBase).
7.3 Target ladder (probability steps)
• On the final bar, the script builds a ladder of numTargets probabilities that taper with distance.
• Direction:
o If Adaptive: follows the detected trend (bullish → up targets; bearish → down).
o If not: direction depends on the sign of TotalScore.
• The first target’s probability is also highlighted in the last column’s cells.
The ladder is a confidence heuristic, not a price target generator. It gives you a decaying probability as you aim further from current conditions.
________________________________________
8) The on-chart horizontal dashboard
The dashboard is a table with:
• Title row
• Headers: RSI, MACD, STOCH, VOLUME, TREND, VWAP, OB, EMA, SIGNAL, PROBABILITY
• Row: STATUS
Shows categorical status (e.g., OVERBOUGHT, BULLISH). Background/text colors follow bullish/bearish/neutral logic.
• Row: VALUE
Numerical readouts: RSI, MACD histogram, %K, Relative Volume (×), TrendScore, VWAP distance %, OB strength %, EMA distance %, and TotalScore.
• Row: STRENGTH
Text-based progress bars (█░) scaled to each metric’s natural range (e.g., RSI 0–100, VWAP distance cap 5%).
• Row: PROBABILITY
Per-indicator probability (%) with color emphasis when >70 (bullish) or <30 (bearish).
The rightmost column shows the Main overall probability and a bar for the first target.
Reading tips
• Think of the STATUS row as directional state, VALUE as magnitude, STRENGTH as confidence, and PROBABILITY as a decision helper.
• Look for confluence: several green/bullish blocks + high overall probability + bullish TrendScore is stronger than one isolated signal.
________________________________________
9) Alerts included
The study raises alerts when:
• Strong Buy: TotalScore > 5
• Strong Sell: TotalScore < −5
• Trend flips: transitions into bullish or bearish trend regime
• EMA(9/20) 15-min crosses: bullish or bearish
Add these in TradingView’s Alerts panel after applying the indicator to a chart.
________________________________________
10) Practical usage & tips
• Timeframes: The logic works on any chart; the EMA check consults 15-minute for an extra filter. If your main chart is 15m or higher, this acts as self-confirmation; if you’re on 1–5m, it acts like a higher-TF compass.
• Markets: Works on crypto, equities, indices, FX, futures. For illiquid symbols, volume/OB context may be noisy.
• TrendLookback tuning:
o Scalpers: 50–75 to make the model more responsive.
o Swing: 100–200 for smoother regime classification.
• Volatility consideration: When VWAP distance and EMA distance bars are large, trends may be extended—this is good for trend-following but risky for late entries.
• Mean-reversion cues: RSI oversold + wavePosition in the lower third + neutralizing MACD can be an early bounce setup—but wait for confirmation (e.g., EMA cross change or TrendScore improvement).
• Confluence matters: Treat any single block as informational. Trade decisions should rely on multiple aligned signals + risk plan.
________________________________________
11) Limitations & what this script does not do
• It does not mark institutional order-blocks, fair-value gaps, or full Elliott counts—only simplified contextual proxies.
• Probabilities are heuristic (feature-weighted), not calibrated win-rate forecasts.
• Repaints? Pivot functions confirm after wavePeriod bars; probabilities are computed on the last bar for the table. The EMA 15m check uses security() with default settings (no special bar merge tricks)—be mindful when mixing timeframes.
• Backtest results (if you wrap this into a strategy) will depend heavily on your entry/exit rules and risk controls.
________________________________________
12) Quick checklist before using live
1. Confirm trend regime (TrendScore row + STATUS).
2. Check MACD/RSI/Stoch alignment.
3. Look at Relative Volume and VWAP location.
4. Confirm EMA(9/20) 15m bias agrees with your plan.
5. Ensure overall probability is supportive (>60% for trend plays, for example).
6. Size the trade with pre-defined stop, target, and max risk rules.
________________________________________
13) Glossary (fast refresher)
• RSI: momentum oscillator; overbought/oversold zones.
• MACD: trend-momentum, line/Signal cross and histogram slope.
• Stochastic: momentum vs. recent range; %K/%D cross.
• VWAP: volume-weighted mean price; intraday fair value anchor.
• EMA: exponential MA; faster response than SMA.
• Linear Regression Slope: directional drift estimate.
• Relative Volume: current volume vs. average—conviction proxy.
________________________________________
14) aiTrendview Disclaimer
This indicator and its outputs are intended solely for education and research. They do not constitute financial, investment, or trading advice. Markets involve substantial risk, including the risk of loss. Past performance and on-chart probabilities are not guarantees of future results. You are responsible for your own decisions, position sizing, and risk management. aiTrendview, its contributors, and affiliates are not liable for any losses incurred from the use of this script or the information derived from it. Always validate signals with your own analysis and consult a licensed financial professional if needed.
MTF Moving Averages (only EMA)MTF Moving Averages (only EMA)
This script provides a Multi-Timeframe (MTF) Exponential Moving Average (EMA) indicator for traders to visualize multiple EMAs across different timeframes directly on a single chart.
The indicator dynamically calculates and plots up to four EMAs per timeframe (15-minute, 30-minute, 1-hour, and Daily) with user-defined lengths, offering valuable insight into price trends and potential entry or exit points.
Key Features:
Multiple Timeframe Support: The script allows you to view EMAs from different timeframes simultaneously. This is especially useful for traders who follow trends across different timeframes to make more informed decisions.
Customizable Lengths: For each timeframe, the lengths of the EMAs are fully customizable. You can adjust the length of up to four EMAs per timeframe to suit your strategy.
EMA Calculation: The Exponential Moving Average (EMA) is used, which gives more weight to recent prices and reacts faster to price changes compared to the simple moving average (SMA).
Timeframe Flexibility: The indicator supports the following timeframes:
15-minute: Ideal for short-term traders and scalpers.
30-minute: For intraday trading with a slightly longer perspective.
1-hour: Suitable for swing traders and those who prefer a more medium-term view.
Daily: Great for longer-term trend-following strategies.
Interactive and User-Friendly: You can toggle the visibility of each EMA on each timeframe, allowing you to choose exactly which EMAs you wish to display, depending on your trading strategy.
Color-Coded for Clarity: The script uses distinct colors for each EMA on the chart:
Blue: EMA1
Green: EMA2
Red: EMA3
Purple: EMA4
Line Width Customization: Each plotted EMA line has a customizable width for better visual clarity.
Use Case:
Traders who use multiple timeframes for analysis (e.g., those using the "multi-timeframe analysis" technique) will find this script particularly useful. For example, a trader may look at the 15-minute chart to catch short-term movements, the 30-minute chart for intraday trends, the 1-hour chart for swing positions, and the Daily chart for identifying the overarching market trend. The script enables them to view the EMAs for all these timeframes in one glance without having to manually switch between them.
By observing the relationships between EMAs across multiple timeframes, traders can gain valuable insights into market conditions such as:
Crossovers: When a shorter-term EMA crosses above or below a longer-term EMA, it can signal a potential trend reversal or continuation.
Trend Strength: Multiple EMAs in alignment across different timeframes can indicate strong trend strength.
Support and Resistance: EMAs can act as dynamic support and resistance levels, guiding traders on price action levels to watch for potential price reversals.
Instructions:
Enable/Disable EMAs: Toggle on or off the EMAs for each timeframe (15-min, 30-min, 1-hour, Daily) using the script’s settings.
Adjust EMA Lengths: Change the default lengths for each EMA to match your preferred settings for different timeframes.
Monitor Key Levels: Watch how price interacts with the plotted EMAs to spot potential trading signals based on your strategy.
This indicator is designed to enhance your multi-timeframe analysis and help make more informed, data-driven trading decisions.
Momentum CrossThis indicator tracks momentum shifts using a 3-period EMA crossing above or below an 8-period EMA. It's simple, and quite effective as a momentum confirmation signal.
Signals:
Cyan circles below bars - Bullish momentum (3 EMA crosses above 8 EMA)
Red circles above bars - Bearish momentum (3 EMA crosses below 8 EMA)
Setups I Use:
V-Shaped Reversals:
When price hits major support/resistance and shows rejection, the momentum cross confirms whether the reversal has legs or not. Helps separate real bounces from dead cat bounces.
One-Two Punch Pattern:
My favorite high-probability setup:
Initial cross shows momentum shifting
Counter-move gets rejected quickly
Second cross in original direction with follow-through
Opening Range Breakout Confirmation:
Use momentum crosses to confirm pullbacks or retests to key levels after opening range breakouts. The cross timing shows when the retest is holding and momentum is resuming in the breakout direction.
Fibonacci Support/Resistance:
Momentum crosses at key Fibonacci levels (38.2%, 50%, 61.8%) help confirm whether the level will hold or break. Particularly useful for timing entries at these widely-watched levels.
Settings:
Default 3/8 EMAs work well for most situations. Faster settings (2/5) for active markets, slower (5/13) for cleaner signals in strong trends.
Notes:
This works best when combined with key levels, volume, and market context. The cross timing is what matters - it shows when momentum is actually shifting, not just when price bounces.
Bollinger Bands Signal Pro(Mastersinnifty)Description
Bollinger Bands Signal Pro is a multi-filter trading tool designed to identify high-probability buy and sell opportunities using Bollinger Bands, RSI, volume, and trend confirmation. This indicator provides clear visual signals directly on the chart and a real-time information panel for quick decision-making.
How It Works
Calculates Bollinger Bands using user-defined length and multiplier.
Generates buy signals when price crosses below the lower band with optional RSI oversold, high volume, and bullish trend confirmation.
Generates sell signals when price crosses above the upper band with optional RSI overbought, high volume, and bearish trend confirmation.
EMA crossovers determine the trend filter direction.
Displays a live dashboard showing BB position, RSI value, trend direction, volume condition, and current signal status.
Includes alert conditions for automated notifications.
Inputs
BB Length – Number of bars for Bollinger Bands calculation.
BB Multiplier – Standard deviation multiplier for bands.
RSI Length – Lookback period for RSI.
Volume MA Length – Period for average volume calculation.
RSI Oversold/Overbought Levels – Thresholds for filtering signals.
Use RSI Filter – Enable/disable RSI-based filtering.
Use Volume Filter – Enable/disable volume condition.
Use Trend Filter – Enable/disable EMA-based trend confirmation.
Use Case
Spot overextended market moves with confirmation from multiple conditions.
Enhance signal reliability by filtering with RSI, volume, and trend.
Receive automated alerts for actionable trading opportunities.
Quickly assess market conditions via the built-in signal dashboard.
Disclaimer
This indicator is a technical analysis tool and should not be considered financial advice. Trading involves risk, and past performance does not guarantee future results. Users are encouraged to test the script in a demo environment and apply proper risk management before trading with real capital.
ADVANCED EMA RIBBON SUITE PRO [Multi-Timeframe + Alerts + Dash]🎯 ADVANCED EMA RIBBON SUITE PRO
📊 DESCRIPTION:
The most comprehensive EMA Ribbon indicator on TradingView, featuring 14 customizable
EMAs (5-200), multi-timeframe analysis, gradient ribbon visualization, smart alerts,
and a real-time dashboard. Perfect for trend following, scalping, and swing trading.
🔥 KEY FEATURES:
• 14 EMAs with Fibonacci sequence option (5, 8, 13, 21, 34, 55, 89, 144, 200)
• Multi-Timeframe (MTF) analysis - see higher timeframe trends
• Dynamic gradient ribbon with trend-based coloring
• Golden Cross & Death Cross detection with alerts
• Professional themes (Dark/Light) with 6 visual styles
• Real-time information dashboard
• Customizable transparency and colors
• Trend strength visualization
• Price position analysis
• Smart alert system for all major crossovers
📈 USE CASES:
• Trend Identification: Ribbon expansion/contraction shows trend strength
• Entry/Exit Signals: EMA crossovers provide clear trade signals
• Support/Resistance: EMAs act as dynamic S/R levels
• Multi-Timeframe Confluence: Combine timeframes for higher probability trades
• Scalping: Use faster EMAs (5-20) for quick trades
• Swing Trading: Focus on 50/200 EMAs for position trades
🎯 TRADING STRATEGIES:
1. Ribbon Squeeze: Trade breakouts when ribbon contracts
2. Golden/Death Cross: Major trend reversals at 50/200 crosses
3. Price Above/Below: Long when price above most EMAs, short when below
4. MTF Confluence: Trade when multiple timeframes align
5. Dynamic S/R: Use EMAs as trailing stop levels
⚡ OPTIMAL SETTINGS:
• Scalping: 5, 8, 13, 21 EMAs on 1-5 min charts
• Day Trading: Full ribbon on 15-60 min charts
• Swing Trading: Focus on 50, 100, 200 EMAs on daily charts
• Position Trading: Use weekly timeframe with monthly MTF
📌 KEYWORDS:
EMA, Exponential Moving Average, Ribbon, Multi-Timeframe, MTF, Golden Cross,
Death Cross, Trend Following, Scalping, Swing Trading, Dashboard, Alerts,
Support Resistance, Fibonacci, Professional, Advanced, Suite, Indicator
*Created using PineCraft AI (Link in Bio)
EMA Triad Vanguard Pro [By TraderMan]📌 EMA Triad Vanguard Pro — Advanced Trend & Position Management System
📖 Introduction
EMA Triad Vanguard Pro is an advanced indicator that utilizes three different EMAs (Exponential Moving Averages) to analyze the direction, strength, and reliability of market trends.
It goes beyond a single timeframe, performing trend analysis across 8 different timeframes simultaneously and automatically tracking TP/SL management.
This makes it a powerful reference tool for both short-term traders and medium-to-long-term swing traders.
⚙ How It Works
EMAs:
EMA 21 → Responds quickly to short-term price changes.
EMA 50 → Shows medium-term price direction.
EMA 200 → Determines the long-term market trend.
Trend Direction Logic:
📈 Long Signal: EMA 21 crosses above EMA 200 and EMA 21 > EMA 50.
📉 Short Signal: EMA 21 crosses below EMA 200 and EMA 21 < EMA 50.
Trend Strength Calculation:
Calculates the percentage distance between EMAs.
Strength levels: Very Weak → Weak → Strong → Very Strong.
Multi-Timeframe Analysis:
Analyzes trend direction for: 5min, 15min, 30min, 1H, 4H, Daily, Weekly, and Monthly charts.
Generates an overall market bias from combined results.
Automatic Position Management:
When a position is opened, TP1, TP2, TP3, and SL levels are calculated automatically.
As price reaches these levels, chart labels appear (TP1★, TP2★, TP3★, SL!).
📊 How to Use
1️⃣ Long (Buy) Setup
EMA 21 must cross above EMA 200 ✅
EMA 21 must be above EMA 50 ✅
Overall market bias should be “Bullish” ✅
Entry Price: closing price of the signal candle.
TP levels: calculated based on upward % targets.
SL: a set % below the entry price.
2️⃣ Short (Sell) Setup
EMA 21 must cross below EMA 200 ✅
EMA 21 must be below EMA 50 ✅
Overall market bias should be “Bearish” ✅
Entry Price: closing price of the signal candle.
TP levels: calculated based on downward % targets.
SL: a set % above the entry price.
💡 Pro Tips
Multi-timeframe alignment significantly increases the signal reliability.
If trend strength is “Very Strong”, chances of hitting TP targets are higher.
Weak trends may cause false signals → confirm with extra indicators (RSI, MACD, Volume).
TP levels are ideal for partial take-profits → lock in gains and reduce risk.
📌 Advantages
✅ Displays both trend direction and trend strength at a glance.
✅ Multi-timeframe approach avoids tunnel vision from a single chart.
✅ Automatic TP/SL calculation eliminates manual measuring.
✅ Labeled signal alerts make tracking positions easy and visual.
⚠ Important Notes
No indicator is 100% accurate — sudden news events or manipulations may cause false signals.
Use it together with other technical and fundamental analysis methods.
Signal reliability may decrease in low liquidity markets.
🎯 In summary:
EMA Triad Vanguard Pro combines trend tracking, position management, and multi-timeframe analysis in a single package, helping professional traders reduce workload and make more strategic trades.
EMA + Channel Strategy prefect buy / sell signalN45 EMA + Channel Strategy prefect buy / sell signal
Ultimate Scalping Strategy v2Strategy Overview
This is a versatile scalping strategy designed primarily for low timeframes (like 1-min, 3-min, or 5-min charts). Its core logic is based on a classic EMA (Exponential Moving Average) crossover system, which is then filtered by the VWAP (Volume-Weighted Average Price) to confirm the trade's direction in alignment with the market's current intraday sentiment.
The strategy is highly customizable, allowing traders to add layers of confirmation, control trade direction, and manage exits with precision.
Core Strategy Logic
The strategy's entry signals are generated when two primary conditions are met simultaneously:
Momentum Shift (EMA Crossover): It looks for a crossover between a fast EMA (default length 9) and a slow EMA (default length 21).
Buy Signal: The fast EMA crosses above the slow EMA, indicating a potential shift to bullish momentum.
Sell Signal: The fast EMA crosses below the slow EMA, indicating a potential shift to bearish momentum.
Trend/Sentiment Filter (VWAP): The crossover signal is only considered valid if the price is on the "correct" side of the VWAP.
For a Buy Signal: The price must be trading above the VWAP. This confirms that, on average, buyers are in control for the day.
For a Sell Signal: The price must be trading below the VWAP. This confirms that sellers are generally in control.
Confirmation Filters (Optional)
To increase the reliability of the signals and reduce false entries, the strategy includes two optional confirmation filters:
Price Action Filter (Engulfing Candle): If enabled (Use Price Action), the entry signal is only valid if the crossover candle is also an "engulfing" candle.
A Bullish Engulfing candle is a large green candle that completely "engulfs" the body of the previous smaller red candle, signaling strong buying pressure.
A Bearish Engulfing candle is a large red candle that engulfs the previous smaller green candle, signaling strong selling pressure.
Volume Filter (Volume Spike): If enabled (Use Volume Confirmation), the entry signal must be accompanied by a surge in volume. This is confirmed if the volume of the entry candle is greater than its recent moving average (default 20 periods). This ensures the move has strong participation behind it.
Exit Strategy
A position can be closed in one of three ways, creating a comprehensive exit plan:
Stop Loss (SL): A fixed stop loss is set at a level determined by a multiple of the Average True Range (ATR). For example, a 1.5 multiplier places the stop 1.5 times the current ATR value away from the entry price. This makes the stop dynamic, adapting to market volatility.
Take Profit (TP): A fixed take profit is also set using an ATR multiplier. By setting the TP multiplier higher than the SL multiplier (e.g., 2.0 for TP vs. 1.5 for SL), the strategy aims for a positive risk-to-reward ratio on each trade.
Exit on Opposite Signal (Reversal): If enabled, an open position will be closed automatically if a valid entry signal in the opposite direction appears. For example, if you are in a long trade and a valid short signal occurs, the strategy will exit the long position immediately. This feature turns the strategy into more of a reversal system.
Key Features & Customization
Trade Direction Control: You can enable or disable long and short trades independently using the Allow Longs and Allow Shorts toggles. This is useful for trading in harmony with a higher-timeframe trend (e.g., only allowing longs in a bull market).
Visual Plots: The strategy plots the Fast EMA, Slow EMA, and VWAP on the chart for easy visualization of the setup. It also plots up/down arrows to mark where valid buy and sell signals occurred.
Dynamic SL/TP Line Plotting: A standout feature is that the strategy automatically draws the exact Stop Loss and Take Profit price lines on the chart for every active trade. These lines appear when a trade is entered and disappear as soon as it is closed, providing a clear visual of your risk and reward targets.
Alerts: The script includes built-in alertcondition calls. This allows you to create alerts in TradingView that can notify you on your phone or execute trades automatically via a webhook when a long or short signal is generated.
EMA 8/21 Crossover Alert IndicatorOverview of the Indicator
This is a custom Pine Script v5 indicator for TradingView titled "EMA 8/21/50 + VWAP Crossover Alert Indicator" (short title: "EMA+VWAP Cross Alert"). It's designed as an overlay indicator, meaning it plots directly on your price chart rather than in a separate pane. The primary purpose is to detect and alert on crossovers between the 8-period Exponential Moving Average (EMA) and the 21-period EMA, which can signal potential bullish or bearish momentum shifts. These are classic short-term trend reversal or continuation signals often used in trading strategies like momentum or swing trading.
To enhance analysis, it also includes:
A 50-period EMA for medium-term trend context (e.g., to confirm if the overall trend aligns with the crossover).
A Volume Weighted Average Price (VWAP) line, which provides a benchmark for the average price weighted by volume, useful for identifying intraday value areas or fair price levels.
The indicator works across all timeframes (e.g., Daily, 4H, 1H, 15M, 5M, 3M) because the calculations are based on the chart's current bars and adapt to volatility and data resolution. It's not a trading strategy (no entry/exit logic or backtesting), but an alert tool—signals are visual and can trigger notifications in TradingView. Always combine it with risk management, as crossovers can produce false signals in ranging or choppy markets.
How It Behaves Across Timeframes
Higher Timeframes (e.g., Daily/4H): Fewer crossovers, focusing on major trends. EMAs smooth out noise; VWAP might represent session averages.
Lower Timeframes (e.g., 3M/5M): More frequent signals due to sensitivity, but higher risk of whipsaws. VWAP resets per session, making it great for intraday trading.
Adaptability: All components scale with bar data—no manual adjustments needed, though tweaking inputs can optimize for specific frames.
In TradingView, you can set up these alerts to notify via popup, sound, email, SMS, or webhook (e.g., to a trading bot). Go to the chart's "Alert" button, select this indicator, and choose conditions like "Bullish Cross" or use the script's built-in alerts.
EMA Trend Dashboard
Trend Indicator using 3 custom EMA lines. Displays a table with 5 rows(position configurable)
-First line shows relative position of EMA lines to each other and outputs Bull, Weak Bull, Flat, Weak Bear, or Bear. EMA line1 should be less than EMA line2 and EMA line 2 should be less than EMA line3. Default is 9,21,50.
-Second through fourth line shows the slant of each EMA line. Up, Down, or Flat. Threshold for what is considered a slant is configurable. Also added a "steep" threshold configuration for steep slants.
-Fifth line shows exhaustion and is a simple, configurable calculation of the distance between EMA line1 and EMA line2.
--Lines one and five change depending on its value but ALL other colors are able to be changed.
--Default is somewhat set to work well with Micro E-mini Futures but this indicator can be changed to work on anything. I created it to help get a quick overview of short-term trend on futures. I used ChatGPT to help but I am still not sure if it actually took longer because of it.
Momentum Fusion v1Momentum Fusion v1
Overview
Momentum Fusion v1 (MFusion) is a multi-oscillator indicator that combines several components to analyze market momentum and trend strength. It incorporates modified versions of classic indicators such as PVI (Positive Volume Index), NVI (Negative Volume Index), MFI (Money Flow Index), RSI, Stochastic, and Bollinger Bands Oscillator. The indicator displays a histogram that changes color based on momentum strength and includes "FUSION🔥" signal labels when extreme values are reached.
Indicator Settings
Parameters:
EMA Length – Smoothing period for the moving average (default: 255).
Smoothing Period – Internal calculation smoothing parameter (default: 15).
BB Multiplier – Standard deviation multiplier for Bollinger Bands (default: 2.0).
Show verde / marron / media lines – Toggles the display of auxiliary lines.
Show FUSION🔥 label – Enables/disables signal labels.
Indicator Components
1. PVI (Positive Volume Index)
Formula:
pvi := volume > volume ? nz(pvi ) + (close - close ) / close * sval : nz(pvi )
Description:
PVI increases when volume rises compared to the previous bar and accounts for price percentage change. The stronger the price movement with increasing volume, the higher the PVI value.
2. NVI (Negative Volume Index)
Formula:
nvi := volume < volume ? nz(nvi ) + (close - close ) / close * sval : nz(nvi )
Description:
NVI tracks price movements during declining volume. If the price rises on low volume, it may indicate a "stealth" trend.
3. Money Flow Index (MFI)
Formula:
100 - 100 / (1 + up / dn)
Description:
An oscillator measuring money flow strength. Values above 80 suggest overbought conditions, while values below 20 indicate oversold conditions.
4. Stochastic Oscillator
Formula:
k = 100 * (close - lowest(low, length)) / (highest(high, length) - lowest(low, length))
Description:
A classic stochastic oscillator showing price position relative to the selected period's range.
5. Bollinger Bands Oscillator
Formula:
(tprice - BB midline) / (upper BB - lower BB) * 100
Description:
Indicates the price position relative to Bollinger Bands in percentage terms.
Key Lines & Histogram
1. Verde (Green Line)
Calculation:
verde = marron + oscp (normalized PVI)
Interpretation:
Higher values indicate stronger bullish momentum. A FUSION🔥 signal appears when the value reaches 750+.
2. Marron (Brown Line)
Calculation:
marron = (RSI + MFI + Bollinger Osc + Stochastic / 3) / 2
Interpretation:
A composite oscillator combining multiple indicators. Higher values suggest overbought conditions.
3. Media (Red Line)
Calculation:
media = EMA of marron with smoothing period
Interpretation:
Acts as a signal line for trend confirmation.
4. Histogram
Calculation:
histo = verde - marron
Colors:
Bright green (>100) – Strong bullish momentum.
Light green (>0) – Moderate bullish momentum.
Orange (<0) – Bearish momentum.
Red (<-100) – Strong bearish momentum.
Signals & Alerts
1. FUSION🔥 (Strong Momentum)
Condition:
verde >= 750
Visualization:
A "FUSION🔥" label appears below the chart.
Alert:
Can be set to trigger notifications when the condition is met.
2. Background Aura
Condition:
verde > 850
Visualization:
The chart background turns teal, indicating extreme momentum.
Usage Recommendations
FUSION🔥 Signal – Can be used as a long entry point when confirmed by other indicators.
Histogram:
1. Green bars – Potential long entry.
2. Red/orange bars – Potential short entry.
3. Media & Marron Crossover – Can serve as an additional trend filter.
4. Suitable for a 5-15 minute time frame
Conclusion
Momentum Fusion v1 is a powerful tool for momentum analysis, combining multiple indicators into a unified system. It is suitable for:
Trend traders (catching strong movements).
Scalpers (identifying short-term impulses).
Swing traders (filtering entry points).
The indicator features customizable settings and visual signals, making it adaptable to various trading styles.
Momentum Long + Short Strategy (BTC 3H)Momentum Long + Short Strategy (BTC 3H)
🔍 How It Works, Step by Step
Detect the Trend (📈/📉)
Calculate two moving averages (100-period and 500-period), either EMA or SMA.
For longs, we require MA100 > MA500 (uptrend).
For shorts, we block entries if MA100 exceeds MA500 by more than a set percentage (to avoid fading a powerful uptrend).
Apply Momentum Filters (⚡️)
RSI Filter: Measures recent strength—only allow longs when RSI crosses above its smoothed average, and shorts when RSI dips below the oversold threshold.
ADX Filter: Gauges trend strength—ensures we only enter when a meaningful trend exists (optional).
ATR Filter: Confirms volatility—avoids choppy, low-volatility conditions by requiring ATR to exceed its smoothed value (optional).
Confirm Entry Conditions (✅)
Long Entry:
Price is above both MAs
Trend alignment & optional filters pass ✅
Short Entry:
Price is below both MAs and below the lower Bollinger Band
RSI is sufficiently oversold
Trend-blocker & ATR filter pass ✅
Position Sizing & Risk (💰)
Each trade uses 100 % of account equity by default.
One pyramid addition allowed, so you can scale in if the move continues.
Commission and slippage assumptions built in for realistic backtests.
Stops & Exits (🛑)
Long Stop-Loss: e.g. 3 % below entry.
Long Auto-Exit: If price falls back under the 500-period MA.
Short Stop-Loss: e.g. 3 % above entry.
Short Take-Profit: e.g. 4 % below entry.
🎨 Why It’s Powerful & Customizable
Modular Filters: Turn on/off RSI, ADX, ATR filters to suit different market regimes.
Adjustable Thresholds: Fine-tune stop-loss %, take-profit %, RSI lengths, MA gaps and more.
Multi-Timeframe Potential: Although coded for 3 h BTC, you can adapt it to stocks, forex or other cryptos—just recalibrate!
Backtest Fine-Tuned: Default settings were optimized via backtesting on historical BTC data—but they’re not guarantees of future performance.
⚠️ Warning & Disclaimer
This strategy is for educational purposes only and designed for a toy fund. Crypto markets are highly volatile—you can lose 100 % of your capital. It is not a predictive “holy grail” but a rules-based framework using past data. The parameters have been fine-tuned on historical data and are not valid for future trades without fresh calibration. Always practice with paper-trading first, use proper risk management, and do your own research before risking real money. 🚨🔒
Good luck exploring and experimenting! 🚀📊
True Momentum IndexTrue Momentum Index (TMI) — Precision Trading by Trading_Tomm
The True Momentum Index (TMI) is a cutting-edge technical indicator developed for traders who demand accuracy, clarity, and consistency across all market conditions. Designed by Trading_Tomm , this indicator provides a reliable method to identify high-probability entry and exit points by analyzing real-time momentum shifts and volatility levels.
Key Benefits:
1. Multi-Timeframe Versatility: Whether you're scalping on a 1-minute chart or investing on the weekly, TMI adapts seamlessly to your strategy.
2. Enhanced Risk Management: By highlighting optimal trade zones, TMI helps improve your reward-to-risk ratio and reduce exposure to false signals.
3. Clear Trend Detection: Instantly distinguish between trending, ranging, or consolidating markets.
4. Breakout Confirmation: Spot true breakout opportunities with confidence, supported by Bollinger Band overlays.
5. Universal Applicability: Works effectively with stocks, forex, cryptocurrency, commodities, and indices.
TMI’s intuitive visual presentation and precision signals make it an essential tool for both new and experienced traders. Whether you're trading volatile crypto markets or steady equities, the True Momentum Index gives you the edge to trade with discipline, clarity, and confidence.
Start using the True Momentum Index and take your trading strategy to the next level -maximize potential, minimize uncertainty.
Chandelier Exit + EMA Filtered SignalsThis script is a powerful upgrade to the original Chandelier Exit by Alex Orekhov (everget), combining trend-following logic with higher-quality trade filtering.
✅ Key Features:
Chandelier Exit logic with ATR-based stop levels
Buy/Sell signals only when trend is confirmed:
Buy: Price must be above EMA 13, 50, and 200
Sell: Price must be below EMA 13, 50, and 200
Candle highlighting: Green for Buy, Red for Sell
Signal labels for visual clarity
Toggle to show/hide EMAs
Built-in alerts for:
Buy signal
Sell signal
Trend direction change
🛠️ Inputs:
ATR Period and Multiplier
Toggle: Use Close Price for High/Low Calculation
Toggle: Show/Hide Labels and State Highlight
Toggle: Show/Hide EMA 13, 50, 200
Toggle: Await confirmed bar for alerts
🔔 Alerts Included:
Chandelier Exit Buy
Chandelier Exit Sell
Direction Change (long to short or vice versa)
💡 How to Use:
Use on trending assets (e.g., Gold, Indices, Crypto).
Combine with support/resistance or session filters for optimal results.
Enable alerts to be notified on trade setups.
📢 Credits:
Based on the original Chandelier Exit script by everget.
Enhancements by AP Capital for filtered signals and better visual feedback.
EMA 12/26 With ATR Volatility StoplossThe EMA 12/26 With ATR Volatility Stoploss
The EMA 12/26 With ATR Volatility Stoploss strategy is a meticulously designed systematic trading approach tailored for navigating financial markets through technical analysis. By integrating the Exponential Moving Average (EMA) and Average True Range (ATR) indicators, the strategy aims to identify optimal entry and exit points for trades while prioritizing disciplined risk management. At its core, it is a trend-following system that seeks to capitalize on price momentum, employing volatility-adjusted stop-loss mechanisms and dynamic position sizing to align with predefined risk parameters. Additionally, it offers traders the flexibility to manage profits either by compounding returns or preserving initial capital, making it adaptable to diverse trading philosophies. This essay provides a comprehensive exploration of the strategy’s underlying concepts, key components, strengths, limitations, and practical applications, without delving into its technical code.
=====
Core Philosophy and Objectives
The EMA 12/26 With ATR Volatility Stoploss strategy is built on the premise of capturing short- to medium-term price trends with a high degree of automation and consistency. It leverages the crossover of two EMAs—a fast EMA (12-period) and a slow EMA (26-period)—to generate buy and sell signals, which indicate potential trend reversals or continuations. To mitigate the inherent risks of trading, the strategy incorporates the ATR indicator to set stop-loss levels that adapt to market volatility, ensuring that losses remain within acceptable bounds. Furthermore, it calculates position sizes based on a user-defined risk percentage, safeguarding capital while optimizing trade exposure.
A distinctive feature of the strategy is its dual profit management modes:
SnowBall (Compound Profit): Profits from successful trades are reinvested into the capital base, allowing for progressively larger position sizes and potential exponential portfolio growth.
ZeroRisk (Fixed Equity): Profits are withdrawn, and trades are executed using only the initial capital, prioritizing capital preservation and minimizing exposure to market downturns.
This duality caters to both aggressive traders seeking growth and conservative traders focused on stability, positioning the strategy as a versatile tool for various market environments.
=====
Key Components of the Strategy
1. EMA-Based Signal Generation
The strategy’s trend-following mechanism hinges on the interaction between the Fast EMA (12-period) and Slow EMA (26-period). EMAs are preferred over simple moving averages because they assign greater weight to recent price data, enabling quicker responses to market shifts. The key signals are:
Buy Signal: Triggered when the Fast EMA crosses above the Slow EMA, suggesting the onset of an uptrend or bullish momentum.
Sell Signal: Occurs when the Fast EMA crosses below the Slow EMA, indicating a potential downtrend or the end of a bullish phase.
To enhance signal reliability, the strategy employs an Anchor Point EMA (AP EMA), a short-period EMA (e.g., 2 days) that smooths the input price data before calculating the primary EMAs. This preprocessing reduces noise from short-term price fluctuations, improving the accuracy of trend detection. Additionally, users can opt for a Consolidated EMA (e.g., 18-period) to display a single trend line instead of both EMAs, simplifying chart analysis while retaining trend insights.
=====
2. Volatility-Adjusted Risk Management with ATR
Risk management is a cornerstone of the strategy, achieved through the use of the Average True Range (ATR), which quantifies market volatility by measuring the average price range over a specified period (e.g., 10 days). The ATR informs the placement of stop-loss levels, which are set at a multiple of the ATR (e.g., 2x ATR) below the entry price for long positions. This approach ensures that stop losses are proportionate to current market conditions—wider during high volatility to avoid premature exits, and narrower during low volatility to protect profits.
For example, if a stock’s ATR is $1 and the multiplier is 2, the stop loss for a buy at $100 would be set at $98. This dynamic adjustment enhances the strategy’s adaptability, preventing stop-outs from normal market noise while capping potential losses.
=====
3. Dynamic Position Sizing
The strategy calculates position sizes to align with a user-defined Risk Per Trade, typically expressed as a percentage of capital (e.g., 2%). The position size is determined by:
The available capital, which varies depending on whether SnowBall or ZeroRisk mode is selected.
The distance between the entry price and the ATR-based stop-loss level, which represents the per-unit risk.
The desired risk percentage, ensuring that the maximum loss per trade does not exceed the specified threshold.
For instance, with a $1,000 capital, a 2% risk per trade ($20), and a stop-loss distance equivalent to 5% of the entry price, the strategy computes the number of units (shares or contracts) to ensure the total loss, if the stop loss is hit, equals $20. To prevent over-leveraging, the strategy includes checks to ensure that the position’s dollar value does not exceed available capital. If it does, the position size is scaled down to fit within the capital constraints, maintaining financial discipline.
=====
4. Flexible Capital Management
The strategy’s dual profit management modes—SnowBall and ZeroRisk—offer traders strategic flexibility:
SnowBall Mode: By compounding profits, traders can increase their capital base, leading to larger position sizes over time. This is ideal for those with a long-term growth mindset, as it harnesses the power of exponential returns.
ZeroRisk Mode: By withdrawing profits and trading solely with the initial capital, traders protect their gains and limit exposure to market volatility. This conservative approach suits those prioritizing stability over aggressive growth.
These options allow traders to tailor the strategy to their risk tolerance, financial goals, and market outlook, enhancing its applicability across different trading styles.
=====
5. Time-Based Trade Filtering
To optimize performance and relevance, the strategy includes an option to restrict trading to a specific time range (e.g., from 2018 onward). This feature enables traders to focus on periods with favorable market conditions, avoid historically volatile or unreliable data, or align the strategy with their backtesting objectives. By confining trades to a defined timeframe, the strategy ensures that performance metrics reflect the intended market context.
=====
Strengths of the Strategy
The EMA 12/26 With ATR Volatility Stoploss strategy offers several compelling advantages:
Systematic and Objective: By adhering to predefined rules, the strategy eliminates emotional biases, ensuring consistent execution across market conditions.
Robust Risk Controls: The combination of ATR-based stop losses and risk-based position sizing caps losses at user-defined levels, fostering capital preservation.
Customizability: Traders can adjust parameters such as EMA periods, ATR multipliers, and risk percentages, tailoring the strategy to specific markets or preferences.
Volatility Adaptation: Stop losses that scale with market volatility enhance the strategy’s resilience, accommodating both calm and turbulent market phases.
Enhanced Visualization: The use of color-coded EMAs (green for bullish, red for bearish) and background shading provides intuitive visual cues, simplifying trend and trade status identification.
=====
Limitations and Considerations
Despite its strengths, the strategy has inherent limitations that traders must address:
False Signals in Range-Bound Markets: EMA crossovers may generate misleading signals in sideways or choppy markets, leading to whipsaws and unprofitable trades.
Signal Lag: As lagging indicators, EMAs may delay entry or exit signals, causing traders to miss rapid trend shifts or enter trades late.
Overfitting Risk: Excessive optimization of parameters to fit historical data can impair the strategy’s performance in live markets, as past patterns may not persist.
Impact of High Volatility: In extremely volatile markets, wider stop losses may result in larger losses than anticipated, challenging risk management assumptions.
Data Reliability: The strategy’s effectiveness depends on accurate, continuous price data, and discrepancies or gaps can undermine signal accuracy.
=====
Practical Applications
The EMA 12/26 With ATR Volatility Stoploss strategy is versatile, applicable to diverse markets such as stocks, forex, commodities, and cryptocurrencies, particularly in trending environments. To maximize its potential, traders should adopt a rigorous implementation process:
Backtesting: Evaluate the strategy’s historical performance across various market conditions to assess its robustness and identify optimal parameter settings.
Forward Testing: Deploy the strategy in a demo account to validate its real-time performance, ensuring it aligns with live market dynamics before risking capital.
Ongoing Monitoring: Continuously track trade outcomes, analyze performance metrics, and refine parameters to adapt to evolving market conditions.
Additionally, traders should consider market-specific factors, such as liquidity and volatility, when applying the strategy. For instance, highly liquid markets like forex may require tighter ATR multipliers, while less liquid markets like small-cap stocks may benefit from wider stop losses.
=====
Conclusion
The EMA 12/26 With ATR Volatility Stoploss strategy is a sophisticated, systematic trading framework that blends trend-following precision with disciplined risk management. By leveraging EMA crossovers for signal generation, ATR-based stop losses for volatility adjustment, and dynamic position sizing for risk control, it offers a balanced approach to capturing market trends while safeguarding capital. Its flexibility—evident in customizable parameters and dual profit management modes—makes it suitable for traders with varying risk appetites and objectives. However, its limitations, such as susceptibility to false signals and signal lag, necessitate thorough testing and prudent application. Through rigorous backtesting, forward testing, and continuous refinement, traders can harness this strategy to achieve consistent, risk-adjusted returns in trending markets, establishing it as a valuable tool in the arsenal of systematic trading.
Cointegration Buy and Sell Signals [EdgeTerminal]The Cointegration Buy And Sell Signals is a sophisticated technical analysis tool to spot high-probability market turning points — before they fully develop on price charts.
Most reversal indicators rely on raw price action, visual patterns, or basic and common indicator logic — which often suffer in noisy or trending markets. In most cases, they lag behind the actual change in trend and provide useless and late signals.
This indicator is rooted in advanced concepts from statistical arbitrage, mean reversion theory, and quantitative finance, and it packages these ideas in a user-friendly visual format that works on any timeframe and asset class.
It does this by analyzing how the short-term and long-term EMAs behave relative to each other — and uses statistical filters like Z-score, correlation, volatility normalization, and stationarity tests to issue highly selective Buy and Sell signals.
This tool provides statistical confirmation of trend exhaustion, allowing you to trade mean-reverting setups. It fades overextended moves and uses signal stacking to reduce false entries. The entire indicator is based on a very interesting mathematically grounded model which I will get into down below.
Here’s how the indicator works at a high level:
EMAs as Anchors: It starts with two Exponential Moving Averages (EMAs) — one short-term and one long-term — to track market direction.
Statistical Spread (Regression Residuals): It performs a rolling linear regression between the short and long EMA. Instead of using the raw difference (short - long), it calculates the regression residual, which better models their natural relationship.
Normalize the Spread: The spread is divided by historical price volatility (ATR) to make it scale-invariant. This ensures the indicator works on low-priced stocks, high-priced indices, and crypto alike.
Z-Score: It computes a Z-score of the normalized spread to measure how “extreme” the current deviation is from its historical average.
Dynamic Thresholds: Unlike most tools that use fixed thresholds (like Z = ±2), this one calculates dynamic thresholds using historical percentiles (e.g., top 10% and bottom 10%) so that it adapts to the asset's current behavior to reduce false signals based on market’s extreme volatility at a certain time.
Z-Score Momentum: It tracks the direction of the Z-score — if Z is extreme but still moving away from zero, it's too early. It waits for reversion to start (Z momentum flips).
Correlation Check: Uses a rolling Pearson correlation to confirm the two EMAs are still statistically related. If they diverge (low correlation), no signal is shown.
Stationarity Filter (ADF-like): Uses the volatility of the regression residual to determine if the spread is stationary (mean-reverting) — a key concept in cointegration and statistical arbitrage. It’s not possible to build an exact ADF filter in Pine Script so we used the next best thing.
Signal Control: Prevents noisy charts and overtrading by ensuring no back-to-back buy or sell signals. Each signal must alternate and respect a cooldown period so you won’t be overwhelmed and won’t get a messy chart.
Important Notes to Remember:
The whole idea behind this indicator is to try to use some stat arb models to detect shifting patterns faster than they appear on common indicators, so in some cases, some assumptions are made based on historic values.
This means that in some cases, the indicator can “jump” into the conclusion too quickly. Although we try to eliminate this by using stationary filters, correlation checks, and Z-score momentum detection, there is still a chance some signals that are generated can be too early, in the stock market, that's the same as being incorrect. So make sure to use this with other indicators to confirm the movement.
How To Use The Indicator:
You can use the indicator as a standalone reversal system, as a filter for overbought and oversold setups, in combination with other trend indicators and as a part of a signal stack with other common indicators for divergence spotting and fade trades.
The indicator produces simple buy and sell signals when all criteria is met. Based on our own testing, we recommend treating these signals as standalone and independent from each other . Meaning that if you take position after a buy signal, don’t wait for a sell signal to appear to exit the trade and vice versa.
This is why we recommend using this indicator with other advanced or even simple indicators as an early confirmation tool.
The Display Table:
The floating diagnostic table in the top-right corner of the chart is a key part of this indicator. It's a live statistical dashboard that helps you understand why a signal is (or isn’t) being triggered, and whether the market conditions are lining up for a potential reversal.
1. Z-Score
What it shows: The current Z-score value of the volatility-normalized spread between the short EMA and the regression line of the long EMA.
Why it matters: Z-score tells you how statistically extreme the current relationship is. A Z-score of:
0 = perfectly average
> +2 = very overbought
< -2 = very oversold
How to use it: Look for Z-score reaching extreme highs or lows (beyond dynamic thresholds). Watch for it to start reversing direction, especially when paired with green table rows (see below)
2. Z-Score Momentum
What it shows: The rate of change (ROC) of the Z-score:
Zmomentum=Zt − Zt − 1
Why it matters: This tells you if the Z-score is still stretching out (e.g., getting more overbought/oversold), or reverting back toward the mean.
How to use it: A positive Z-momentum after a very low Z-score = potential bullish reversal A negative Z-momentum after a very high Z-score = potential bearish reversal. Avoid signals when momentum is still pushing deeper into extremes
3. Correlation
What it shows: The rolling Pearson correlation coefficient between the short EMA and long EMA.
Why it matters: High correlation (closer to +1) means the EMAs are still statistically connected — a key requirement for cointegration or mean reversion to be valid.
How to use it: Look for correlation > 0.7 for reliable signals. If correlation drops below 0.5, ignore the Z-score — the EMAs aren’t moving together anymore
4. Stationary
What it shows: A simplified "Yes" or "No" answer to the question:
“Is the spread statistically stable (stationary) and mean-reverting right now?”
Why it matters: Mean reversion strategies only work when the spread is stationary — that is, when the distance between EMAs behaves like a rubber band, not a drifting cloud.
How to use it: A "Yes" means the indicator sees a consistent, stable spread — good for trading. "No" means the market is too volatile, disjointed, or chaotic for reliable mean reversion. Wait for this to flip to "Yes" before trusting signals
5. Last Signal
What it shows: The last signal issued by the system — either "Buy", "Sell", or "None"
Why it matters: Helps avoid confusion and repeated entries. Signals only alternate — you won’t get another Buy until a Sell happens, and vice versa.
How to use it: If the last signal was a "Buy", and you’re watching for a Sell, don’t act on more bullish signals. Great for systems where you only want one position open at a time
6. Bars Since Signal
What it shows: How many bars (candles) have passed since the last Buy or Sell signal.
Why it matters: Gives you context for how long the current condition has persisted
How to use it: If it says 1 or 2, a signal just happened — avoid jumping in late. If it’s been 10+ bars, a new opportunity might be brewing soon. You can use this to time exits if you want to fade a recent signal manually
Indicator Settings:
Short EMA: Sets the short-term EMA period. The smaller the number, the more reactive and more signals you get.
Long EMA: Sets the slow EMA period. The larger this number is, the smoother baseline, and more reliable trend bases are generated.
Z-Score Lookback: The period or bars used for mean & std deviation of spread between short and long EMAs. Larger values result in smoother signals with fewer false positives.
Volatility Window: This value normalizes the spread by historical volatility. This allows you to prevent scale distortion, showing you a cleaner and better chart.
Correlation Lookback: How many periods or how far back to test correlation between slow and long EMAs. This filters out false positives when EMAs lose alignment.
Hurst Lookback: The multiplier to approximate stationarity. Lower leads to more sensitivity to regime change, higher produces a more stricter filtering.
Z Threshold Percentile: This value sets how extreme Z-score must be to trigger a signal. For example, 90 equals only top/bottom 10% of extremes, 80 = more frequent.
Min Bars Between Signals: This hard stop prevents back-to-back signals. The idea is to avoid over-trading or whipsaws in volatile markets even when Hurst lookback and volatility window values are not enough to filter signals.
Some More Recommendations:
We recommend trying different EMA pairs (10/50, 21/100, 5/20) for different asset behaviors. You can set percentile to 85 or 80 if you want more frequent but looser signals. You can also use the Z-score reversion monitor for powerful confirmation.
[SM-042] EMA 5-8-13 with ADX FilterWhat is the strategy?
The strategy combines three exponential moving averages (EMAs) — 5, 8, and 13 periods — with an optional ADX (Average Directional Index) filter. It is designed to enter long or short positions based on EMA crossovers and to exit positions when the price crosses a specific EMA. The ADX filter, if enabled, adds a condition that only allows trades when the ADX value is above a certain threshold, indicating trend strength.
Who is it for?
This strategy is for traders leveraging EMAs and trend strength indicators to make trade decisions. It can be used by anyone looking for a simple trend-following strategy, with the flexibility to adjust for trend strength using the ADX filter.
When is it used?
- **Long trades**: When the 5-period EMA crosses above the 8-period EMA, with an optional ADX condition (if enabled) that requires the ADX value to be above a specified threshold.
- **Short trades**: When the 5-period EMA crosses below the 8-period EMA, with the ADX filter again optional.
- **Exits**: The strategy exits a long position when the price falls below the 13-period EMA and exits a short position when the price rises above the 13-period EMA.
Where is it applied?
This strategy is applied on a chart with any asset on TradingView, with the EMAs and ADX plotted for visual reference. The strategy uses `strategy.entry` to open positions and `strategy.close` to close them based on the set conditions.
Why is it useful?
This strategy helps traders identify trending conditions and filter out potential false signals by using both EMAs (to capture short-term price movements) and the ADX (to confirm the strength of the trend). The ADX filter can be turned off if not desired, making the strategy flexible for both trending and range-bound markets.
How does it work?
- **EMA Crossover**: The strategy enters a long position when the 5-period EMA crosses above the 8-period EMA, and enters a short position when the 5-period EMA crosses below the 8-period EMA.
- **ADX Filter**: If enabled, the strategy checks whether the ADX value is above a set threshold (default is 20) before allowing a trade.
- **Exit Conditions**: Long positions are closed when the price falls below the 13-period EMA, and short positions are closed when the price rises above the 13-period EMA.
- **Plotting**: The strategy plots the three EMAs and the ADX value on the chart for visualization. It also displays a horizontal line at the ADX threshold.
This setup allows for clear decision-making based on the interaction between different time-frame EMAs and trend strength as indicated by ADX.
Forexsom MA Crossover SignalsA Trend-Following Trading Indicator for TradingView
Overview
This indicator plots two moving averages (MA) on your chart and generates visual signals when they cross, helping traders identify potential trend reversals. It is designed to be simple yet effective for both beginners and experienced traders.
Key Features
✅ Dual Moving Averages – Plots a Fast MA (default: 9-period) and a Slow MA (default: 21-period)
✅ Customizable MA Types – Choose between EMA (Exponential Moving Average) or SMA (Simple Moving Average)
✅ Clear Buy/Sell Signals – Displays "BUY" (green label) when the Fast MA crosses above the Slow MA and "SELL" (red label) when it crosses below
✅ Alerts – Get notified when new signals appear (compatible with TradingView alerts)
✅ Clean Visuals – Easy-to-read moving averages with adjustable colors
How It Works
Bullish Signal (BUY) → Fast MA crosses above Slow MA (suggests uptrend)
Bearish Signal (SELL) → Fast MA crosses below Slow MA (suggests downtrend)
Best Used For
✔ Trend-following strategies (swing trading, day trading)
✔ Confirming trend reversals
✔ Filtering trade entries in combination with other indicators
Customization Options
Adjust Fast & Slow MA lengths
Switch between EMA or SMA for smoother or more responsive signals
Why Use This Indicator?
Simple & Effective – No clutter, just clear signals
Works on All Timeframes – From scalping (1M, 5M) to long-term trading (4H, Daily)
Alerts for Real-Time Trading – Never miss a signal
TradZoo - EMA Crossover IndicatorDescription:
This EMA Crossover Trading Strategy is designed to provide precise Buy and Sell signals with confirmation, defined targets, and stop-loss levels, ensuring strong risk management. Additionally, a 30-candle gap rule is implemented to avoid frequent signals and enhance trade accuracy.
📌 Strategy Logic
✅ Exponential Moving Averages (EMAs):
Uses EMA 50 & EMA 200 for trend direction.
Buy signals occur when price action confirms EMA crossovers.
✅ Entry Confirmation:
Buy Signal: Occurs when either the current or previous candle touches the 200 EMA, and the next candle closes above the previous candle’s close.
Sell Signal: Occurs when either the current or previous candle touches the 200 EMA, and the next candle closes below the previous candle’s close.
✅ 30-Candle Gap Rule:
Prevents frequent entries by ensuring at least 30 candles pass before the next trade.
Improves signal quality and prevents excessive trading.
🎯 Target & Stop-Loss Calculation
✅ Buy Position:
Target: 2X the difference between the last candle’s close and the lowest low of the last 2 candles.
Stop Loss: The lowest low of the last 2 candles.
✅ Sell Position:
Target: 2X the difference between the last candle’s close and the highest high of the last 2 candles.
Stop Loss: The highest high of the last 2 candles.
📊 Visual Features
✅ Buy & Sell Signals:
Green Upward Arrow → Buy Signal
Red Downward Arrow → Sell Signal
✅ Target Levels:
Green Dotted Line: Buy Target
Red Dotted Line: Sell Target
✅ Stop Loss Levels:
Dark Red Solid Line: Stop Loss for Buy/Sell
💡 How to Use
🔹 Ideal for trend-following traders using EMAs.
🔹 Works best in volatile & trending markets (avoid sideways ranges).
🔹 Can be combined with RSI, MACD, or price action levels for added confluence.
🔹 Recommended timeframes: 1M, 5M, 15m, 1H, 4H, Daily (for best results).
🚀 Try this strategy and enhance your trading decisions with structured risk management!
Multi-Timeframe EMA [TradeWithRon]Multi-Timeframe EMA Indicator
This indicator displays an Exponential Moving Average (EMA) from a higher timeframe on a lower timeframe chart. The EMA is a type of moving average that gives more weight to recent prices, making it more responsive to price changes compared to a Simple Moving Average (SMA). By overlaying a higher timeframe EMA on a lower timeframe chart, you can gain insights into the broader trend while analyzing price action at a more granular level.
🔶 FEATURES
* 5 MTF EMA with price and timeframe labels
* Smoothing: Alter the smoothness of the back-end EMA calculations.
* VWAP
Why Use EMA
Trend Identification: When the price is above the EMA, it suggests an uptrend, while a price below the EMA indicates a downtrend. The steeper the slope of the EMA, the stronger the trend.
Crossovers : A common strategy is to look for crossovers, such as when a short-term EMA crosses above a long-term EMA, signaling a potential buying opportunity (bullish crossover), or when a short-term EMA crosses below a long-term EMA, signaling a potential selling opportunity (bearish crossover).
Support and Resistance : EMAs can act as dynamic support and resistance levels. In an uptrend, the price may bounce off the EMA as support, while in a downtrend, it can act as resistance.
Convergence and Divergence: Traders look for divergences between price and the EMA to spot potential trend reversals. For example, if price makes a new high but the EMA doesn't, it could signal weakening momentum.
Overall, the EMA helps traders follow the market trend, spot potential reversals, and make more informed trading decisions.
After EMA Crosses you may experience A MSS, CISD, SFP. You can use all of these as confluence for a higher probability trade. This is a good way to capitalize on a trade
Another Case
How I Personally Use It:
Shortest EMA ( Example: 10 EMA ) = Entry
Middle EMA ( Example: 50 EMA ) = Short Term Support / Resistance
Longest EMA ( Example: 100 EMA ) = Long Term Support / Resistance
• WARNING
- If your MAIN chart TimeFrame its lower than ( selected TimeFrame ) the Table will not display signals
- Historical Data Unavailable for this resolution is under 2 minute chart, So you will have to use 2 minute and higher
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (Tradewithron) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Supertrend and Fast and Slow EMA StrategyThis strategy combines Exponential Moving Averages (EMAs) and Average True Range (ATR) to create a simple, yet effective, trend-following approach. The strategy filters out fake or sideways signals by incorporating the ATR as a volatility filter, ensuring that trades are only taken during trending conditions. The key idea is to buy when the short-term trend (Fast EMA) aligns with the long-term trend (Slow EMA), and to avoid trades during low volatility periods.
How It Works:
EMA Crossover:
1). Buy Signal: When the Fast EMA (shorter-term, e.g., 20-period) crosses above the Slow EMA (longer-term, e.g., 50-period), this indicates a potential uptrend.
2). Sell Signal: When the Fast EMA crosses below the Slow EMA, this indicates a potential downtrend.
ATR Filter:
1). The ATR (Average True Range) is used to measure market volatility.
2). Trending Market: If the ATR is above a certain threshold, it indicates high volatility and a trending market. Only when ATR is above the threshold will the strategy generate buy/sell signals.
3). Sideways Market: If ATR is low (sideways or choppy market), the strategy will suppress signals to avoid entering during non-trending conditions.
When to Buy:
1). Condition 1: The Fast EMA crosses above the Slow EMA.
2). Condition 2: The ATR is above the defined threshold, indicating that the market is trending (not sideways or choppy).
When to Sell:
1). Condition 1: The Fast EMA crosses below the Slow EMA.
2). Condition 2: The ATR is above the defined threshold, confirming that the market is in a downtrend.
When Not to Enter the Trade:
1). Sideways Market: If the ATR is below the threshold, signaling low volatility and sideways or choppy market conditions, the strategy will not trigger any buy or sell signals.
2). False Crossovers: In low volatility conditions, price action tends to be noisy, which could lead to false signals. Therefore, avoiding trades during these periods reduces the risk of false breakouts.
Additional Factors to Consider Adding:
=> RSI (Relative Strength Index): Adding an RSI filter can help confirm overbought or oversold conditions to avoid buying into overextended moves or selling too low.
1). RSI Buy Filter: Only take buy signals when RSI is below 70 (avoiding overbought conditions).
2). RSI Sell Filter: Only take sell signals when RSI is above 30 (avoiding oversold conditions).
=> MACD (Moving Average Convergence Divergence): Using MACD can help validate the strength of the trend.
1). Buy when the MACD histogram is above the zero line and the Fast EMA crosses above the Slow EMA.
2). Sell when the MACD histogram is below the zero line and the Fast EMA crosses below the Slow EMA.
=> Support/Resistance Levels: Adding support and resistance levels can help you understand market structure and decide whether to enter or exit a trade.
1). Buy when price breaks above a significant resistance level (after a valid buy signal).
2). Sell when price breaks below a major support level (after a valid sell signal).
=> Volume: Consider adding a volume filter to ensure that buy/sell signals are supported by strong market participation. You could only take signals if the volume is above the moving average of volume over a certain period.
=> Trailing Stop Loss: Instead of a fixed stop loss, use a trailing stop based on a percentage or ATR to lock in profits as the trade moves in your favor.
=> Exit Signals: Besides the EMA crossover, consider adding Take Profit or Stop Loss levels, or even using a secondary indicator like RSI to signal an overbought/oversold condition and exit the trade.
Example Usage:
=> Buy Example:
1). Fast EMA (20-period) crosses above the Slow EMA (50-period).
2). The ATR is above the threshold, confirming that the market is trending.
3). Optionally, if RSI is below 70, the buy signal is further confirmed as not being overbought.
=> Sell Example:
1). Fast EMA (20-period) crosses below the Slow EMA (50-period).
2). The ATR is above the threshold, confirming that the market is trending.
3). Optionally, if RSI is above 30, the sell signal is further confirmed as not being oversold.
Conclusion:
This strategy helps to identify trending markets and filters out sideways or choppy market conditions. By using Fast and Slow EMAs combined with the ATR volatility filter, it provides a reliable approach to catching trending moves while avoiding false signals during low-volatility, sideways markets.
Smoothed EMA LinesThe "Smoothed EMA Lines" script is a technical analysis tool designed to help traders identify trends and potential support/resistance levels in financial markets. The script plots exponential moving averages (EMAs) of the closing price for five commonly used time periods: 8, 13, 21, 55, and 200.
Key features of the script include:
Overlay: The EMAs are plotted directly on the price chart, making it easy to analyze the relationship between the moving averages and price action.
Smoothing: The script applies an additional smoothing function to each EMA, using a simple moving average (SMA) of a user-defined length. This helps to reduce noise and provide a clearer picture of the trend.
Customizable lengths: Users can easily adjust the length of each EMA and the smoothing period through the script's input parameters.
Color-coded plots: Each EMA is assigned a unique color (8: blue, 13: green, 21: orange, 55: red, 200: purple) for easy identification on the chart.
Traders can use the "Smoothed EMA Lines" script to:
Identify the overall trend direction (bullish, bearish, or neutral) based on the arrangement of the EMAs.
Spot potential support and resistance levels where the price may interact with the EMAs.
Look for crossovers between EMAs as potential entry or exit signals.
Combine the EMA analysis with other technical indicators and price action patterns for a more comprehensive trading strategy.
The "Smoothed EMA Lines" script provides a clear, customizable, and easy-to-interpret visualization of key exponential moving averages, helping traders make informed decisions based on trend analysis.
Market Trend Levels Detector [BigBeluga]Market Trend Levels Detector is an trend-following tool that utilizes moving average crossovers to identify key market trend levels. By detecting local highs and lows after EMA crossovers, the indicator helps traders track significant price zones and trend strength.
🔵 Key Features:
EMA Crossover-Based Trend Levels Detection:
Uses a fast and slow EMA to detect market flow shifts.
When the fast EMA crosses under the slow EMA, the indicator searches for the most recent local top and marks it with a label and horizontal level.
When the fast EMA crosses over the slow EMA, it searches for the most recent local low and marks it accordingly.
Dynamic Zone Levels:
Each detected high or low is plotted as a horizontal level, highlighting important price zones.
Traders can extend these levels to observe how price interacts with them over time.
If price crosses a level, its extension stops. Uncrossed levels continue expanding.
Gradient Trend Band Visualization:
The trend band is formed by shading the area between the two EMAs.
Color intensity varies based on volatility and trend strength.
Strong trends and high volatility areas appear with more intense colors, making trend shifts visually distinct.
🔵 Usage:
Trend Identification: Use EMA crossovers and trend bands to confirm bullish or bearish momentum.
Key Zone Mapping: Observe local high/low levels to track historical reaction points.
Breakout & Rejection Signals: Monitor price interactions with extended levels to assess potential breakouts or reversals.
Volatility Strength Analysis: Use color intensity in the trend band to gauge trend power and possible exhaustion points.
Scalping & Swing Trading: Ideal for both short-term scalping strategies and larger swing trade setups.
Market Trend Levels Detector is a must-have tool for traders looking to track market flow, key price levels, and trend momentum with dynamic visual cues. It provides a comprehensive approach to identifying high-probability trade setups using EMA-based flow detection and trend analysis.