(Decode) Moving Average Toolkit(Decode) Moving Average Toolkit: Your All-in-One MA Analysis Powerhouse
The Decode MAT is a comprehensive TradingView indicator designed to give you deep insights into market trends and potential trading signals using a versatile set of moving averages (MAs) and related tools. It's built for traders who want flexibility and a clear visual representation of MA-based strategies.
Here’s a breakdown of its key features and how you might use them in your trading:
1. Extensive Moving Average Options (5 EMAs & 5 SMAs)
What it is: The toolkit provides you with ten moving averages in total:
- Five Exponential Moving Averages (EMAs)
- Five Simple Moving Averages (SMAs)
Customization: You can set the length (period) for each of these ten MAs independently. This means you can track very short-term price action, long-term trends, and anything in between, all on one chart.
Visibility Control: Each MA line can be individually turned on or off directly from the "Inputs" tab using its "Show EMA X" or "Show SMA X" checkbox. This keeps your chart clean and focused. The color and line width for each MA are pre-defined in the script (EMAs are blueish with transparency, SMAs are solid with corresponding colors) but can be further customized in the "Style" tab of the indicator settings.
Defaults: EMA 1 (10-period) and EMA 2 (20-period) are visible by default. SMA 3 (50-period) and SMA 5 (200-period) are also visible by default. Other MAs are off by default.
Trading Ideas:
Trend Identification: Use longer-term MAs (e.g., 50, 100, 200-period SMA or EMA) to identify the overall market direction. Price above these MAs generally suggests an uptrend; price below suggests a downtrend.
Dynamic Support & Resistance: MAs can act as dynamic levels of support in an uptrend or resistance in a downtrend. Watch for price bouncing off these MAs.
Multi-Timeframe Feel: By plotting MAs of different lengths (e.g., a 20-period for short-term and a 200-period for long-term), you can get a sense of how different market participants might be viewing the trend.
2. EMA/SMA Ribbons (5 Hardcoded Pairs)
What it is: The indicator can display up to five "ribbons." Each ribbon is hardcoded to visually fill the space between a specific EMA and its numerically corresponding SMA:
- Ribbon 1: EMA 1 / SMA 1
- Ribbon 2: EMA 2 / SMA 2
- Ribbon 3: EMA 3 / SMA 3
- Ribbon 4: EMA 4 / SMA 4
- Ribbon 5: EMA 5 / SMA 5
Enable/Disable: Each of these five ribbons can be individually turned on or off from the "Inputs" tab using its "Show Ribbon EMAX/SMAX" checkbox. A ribbon will appear if its toggle is checked, regardless of whether its constituent MA lines are currently visible (the fill uses the underlying plot data).
Defaults: Ribbon 3 (EMA3/SMA3) is visible by default. Other ribbons are off by default.
Color-Coded Insights:
Green Ribbon: Appears when the EMA is above its corresponding SMA, often indicating bullish momentum or an uptrend for that pair.
Red Ribbon: Appears when the EMA is below its corresponding SMA, often indicating bearish momentum or a downtrend for that pair.
Trading Ideas:
Trend Strength & Confirmation: A widening ribbon can suggest increasing trend strength. A ribbon consistently staying one color (e.g., green) reinforces the current trend.
Entry/Exit Signals: Some traders look for the ribbon to change color as a potential signal. For example, a change from red to green might be a bullish entry signal, while green to red might be bearish.
Visualizing Momentum: The ribbons provide an immediate visual cue of the relationship between the faster-reacting EMA and the smoother SMA for standard MA pairings.
3. Configurable Crossover Alerts & On-Chart Symbols (Up to 5 Alerts)
What it is: This is a powerful feature for signal generation. You can set up to five independent crossover alert conditions.
Flexible MA Selection for Alerts: For each of the five alerts, you can choose any two moving averages from the ten available (5 EMAs, 5 SMAs) to act as your "Fast MA" and "Slow MA."
On-Chart Visual Symbols:
When a configured "Fast MA" crosses above the "Slow MA" (a bullish crossover), a green upward triangle (▲) can be plotted below the price bar.
When a configured "Fast MA" crosses below the "Slow MA" (a bearish crossover), a red downward triangle (▼) can be plotted above the price bar.
A symbol will only appear if: 1) The main "Enable Alert X" checkbox is active, 2) The crossover condition is met, AND 3) The "Show Symbols for Alert X" checkbox is active.
Defaults: Alert 1 (EMA 1 / EMA 2 cross) is enabled with symbols on. Alert 5 (SMA 3 / SMA 5 cross) is enabled with symbols on. Alerts 2, 3, and 4 are disabled by default.
TradingView Alert Integration: The script defines these crossover conditions. You can then go into TradingView's alert manager, select this indicator, and choose a specific condition (e.g., "Alert 1 Bullish Cross") to receive notifications.
Trading Ideas:
Classic & Custom Crossover Signals: Set up alerts for well-known patterns like the Golden/Death Cross, or create alerts for crossovers between any MAs relevant to your strategy.
Entry/Exit Triggers: Use crossover alerts as potential entry or exit signals.
Multi-Condition Confirmation: Combine alert signals with the visual information from the ribbons and overall MA structure.
4. General Customization
Price Source: You can choose what price data the moving averages are calculated from (e.g., Close, Open, High, Low, (H+L)/2, etc.).
Overall Trading Strategies & Benefits
The (Decode) Moving Average Toolkit is designed for versatility:
Trend Following: Use long-term MAs for trend direction, and shorter-term MA crossovers (with alerts) or ribbon changes for entries in the direction of that trend.
Swing Trading: Identify swings using medium-term MAs and look for pullbacks or crossovers as entry points, confirmed by ribbon behavior.
Momentum Confirmation: Gauge trend strength using the relationship between multiple MAs, visualized through the ribbons.
Focused Charting: Toggle the visibility of individual MAs and ribbons to keep your chart relevant to your current analysis.
Automated Scanning (via Alerts): Set up alerts for your preferred crossover conditions across multiple instruments and let TradingView notify you.
Exponential Moving Average (EMA)
Сига EMA-RSIConditions
- The signal is formed only when the EMA9 and EMA20 intersect and the RSI conditions are met
The precondition is that the RSI should break through the 55 level from top to bottom for long and 45 from bottom to top for short
- The signal is formed when EMA9 and EMA20 intersect and the RSI condition is met
This combination works perfectly on trend reversals.Patterns.
Vegas Tunnel — Open SourceWhat it does – Plots the classic Vegas tunnel using the 144- and 169-period EMAs and colours the zone blue when price is above, pink when below.
How to use – Long bias when candles close above the upper band, short/flat when below. No built-in alerts or position sizing; this is a visual aid only.
Why open? – These EMAs are public-domain; the paid OneTrend Pro script adds proprietary filter, risk engine and live-broker alerts.
EMA Signals by JJ v1.0EMA Signals by JJ is a trend-following indicator designed for the 1-hour timeframe, using EMA (9, 21, 50) crossovers to identify buy and sell signals. The indicator filters signals based on a custom session time (default: 14:30 to 22:00 US trading session) and incorporates ATR-based bar spacing to prevent signal clustering. Alerts are available for both buy and sell signals.
EMAsThe TradingView Multiple EMA Indicator is a powerful and versatile tool designed to provide traders with a comprehensive view of market trends across multiple timeframes. By incorporating SIX Exponential Moving Averages (EMAs) with customizable lengths and sources, this indicator offers a nuanced approach to trend analysis, suitable for both novice and experienced traders.
Key Features:
SIX customizable EMAs for multi-timeframe analysis
Flexible source inputs for each EMA
Color-coded plots for easy visual interpretation
Overlay functionality for direct price action comparison
Simple Volatility ConeThe Simple Volatility Cone indicator projects the potential future price range of a stock based on recent volatility. It calculates rolling standard deviation from log returns over a defined window, then uses a confidence interval to estimate the upper and lower bounds the price could reach over a future time horizon. These bounds are plotted directly on the chart, offset into the future, allowing traders to visualize expected price dispersion under a geometric Brownian motion assumption. This tool is useful for risk management, trade planning, and visualizing the potential impact of volatility.
Leslie's EMA Ribbon: 5/9/21 + VWAPEMA Crossover (5/9/21) with VWAP Alerts
This indicator visualizes short- and medium-term market momentum using a combination of exponential moving averages (EMAs) and the Volume-Weighted Average Price (VWAP). It is designed for intraday and swing traders who want reliable visual cues and customizable alerts.
✳️ Features:
Three EMAs: 5EMA (fast), 9EMA (medium), and 21EMA (slow)
VWAP Line: A session-based VWAP for volume-aware trend context
Color-Coded Labels: Auto-updated on the latest bar for clean visuals
Crossover Alerts:
5EMA crosses 9EMA
9EMA crosses 21EMA
9EMA crosses VWAP (volume-contextual momentum shift)
Consecutive Candles Above/Below EMADescription:
This indicator identifies and highlights periods where the price remains consistently above or below an Exponential Moving Average (EMA) for a user-defined number of consecutive candles. It visually marks these sustained trends with background colors and labels, helping traders spot strong bullish or bearish market conditions. Ideal for trend-following strategies or identifying potential trend exhaustion points, this tool provides clear visual cues for price behavior relative to the EMA.
How It Works:
EMA Calculation: The indicator calculates an EMA based on the user-specified period (default: 100). The EMA is plotted as a blue line on the chart for reference.
Consecutive Candle Tracking: It counts how many consecutive candles close above or below the EMA:
If a candle closes below the EMA, the "below" counter increments; any candle closing above resets it to zero.
If a candle closes above the EMA, the "above" counter increments; any candle closing below resets it to zero.
Highlighting Trends: When the number of consecutive candles above or below the EMA meets or exceeds the user-defined threshold (default: 200 candles):
A translucent red background highlights periods where the price has been below the EMA.
A translucent green background highlights periods where the price has been above the EMA.
Labeling: When the required number of consecutive candles is first reached:
A red downward arrow label with the text "↓ Below" appears for below-EMA streaks.
A green upward arrow label with the text "↑ Above" appears for above-EMA streaks.
Usage:
Trend Confirmation: Use the highlights and labels to confirm strong trends. For example, 200 candles above the EMA may indicate a robust uptrend.
Reversal Signals: Prolonged streaks (e.g., 200+ candles) might suggest overextension, potentially signaling reversals.
Customization: Adjust the EMA period to make it faster or slower, and modify the candle count to make the indicator more or less sensitive to trends.
Settings:
EMA Length: Set the period for the EMA calculation (default: 100).
Candles Count: Define the minimum number of consecutive candles required to trigger highlights and labels (default: 200).
Visuals:
Blue EMA line for tracking the moving average.
Red background for sustained below-EMA periods.
Green background for sustained above-EMA periods.
Labeled arrows to mark when the streak threshold is met.
This indicator is a powerful tool for traders looking to visualize and capitalize on persistent price trends relative to the EMA, with clear, customizable signals for market analysis.
Explain EMA calculation
Other trend indicators
Make description shorter
Triple Moving Average by XeodiacThis script, "Triple Moving Average Indicator", is a simple yet powerful tool designed to help traders track trends and detect potential market reversals. Here’s what it does:
What It Does:
Plots three moving averages on your chart.
Customizable to suit your trading style with options for the type of moving average, the period, color, and thickness of the lines.
Alerts you when important crossovers occur, helping you stay on top of potential trading opportunities.
Features:
Customizable Moving Averages (MAs):
Choose from four types of MAs:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Smoothed Moving Average (SMMA)
Weighted Moving Average (WMA)
Set individual periods, colors, and line thickness for each moving average.
Alerts:
Notifies you when:
The price crosses above or below any moving average.
One moving average crosses another (e.g., short-term crosses above long-term).
Visual Clarity:
Plots three distinct lines on the chart for easy comparison and interpretation.
Why Use It?
Track Trends: See the direction of short, medium, and long-term trends at a glance.
Spot Crossovers: Identify golden crosses (bullish) or death crosses (bearish) to refine entry and exit points.
Stay Informed: With alerts, you’ll never miss a key market movement.
ADX EMA's DistanceIt is well known to technical analysts that the price of the most volatile and traded assets do not tend to stay in the same place for long. A notable observation is the recurring pattern of moving averages that tend to move closer together prior to a strong move in some direction to initiate the trend, it is precisely that distance that is measured by the blue ADX EMA's Distance lines on the chart, normalized and each line being the distance between 2, 3 or all 4 moving averages, with the zero line being the point where the distance between them is zero, but it is also necessary to know the direction of the movement, and that is where the modified ADX will be useful.
This is the well known Directional Movement Indicator (DMI), where the +DI and -DI lines of the ADX will serve to determine the direction of the trend.
Сига EMA-RSIConditions
- The signal is formed only when the EMA9 and EMA20 intersect and the RSI conditions are met
The precondition is that the RSI should break through the 55 level from top to bottom for long and 45 from bottom to top for short
- The signal is formed when EMA9 and EMA20 intersect and the RSI condition is met
This combination works perfectly on trend reversals.Patterns.
EMA 20/50/100/200 Color-Coded20/50/100/200 EMA indicator with a color-coding option that changes the color of an EMA line to green every time the price is above the EMA and red every time the price is below the EMA.
Moving Average Price Deviation Spreadjust tracks the deviation of the price and the moving average.
Other inputs are given to smooth the plot s.t. noise is reduced.
this is a updated version of the previous one.
Adaptive Dual MA Trend FilterAdaptive Dual MA Trend Filter is a versatile Pine Script™ indicator that delivers clear, reliable trend signals using customizable moving averages:
Dual‑Stage Filtering – Apply any traditional MA (SMA, EMA, VWMA, HMA, RMA, TEMA, DEMA, FRAMA, TRIMA) or advanced smoothing (ALMA, T3) as your “main” and “filter” MAs. The filter MA is double‑smoothed for noise suppression, then converted into a robust “double‑filtered” baseline.
Flexible Inputs – Select lengths, sources (close, high, low, hl2), offsets, sigma, and volume factors to tailor the responsiveness and smoothness to your favorite timeframe or asset class.
Intuitive Signals – The script detects confirmed bullish (green) and bearish (red) trend shifts as:
Circle marker on the MA line
Triangle arrows below/above bars
Full candles and MA line colored by current trend
Clean Overlay – Works directly on your price chart, with optional semi‑transparent fills for extra visual clarity.
Theme Support – Choose from Vibrant, Pastel, Neon, Classic, Monochrome, Solarized, or Material palettes for seamless chart styling.
Ideal for swing traders and intraday scalpers alike, Multi‑Source Double‑Filter Trend offers both “set‑and‑forget” simplicity and deep customization for power users.
Usage
Add to chart → Inputs → tweak MA types/lengths
Watch for color changes and markers
Combine with volume or momentum filters for entry confirmation
Enjoy clearer trend identification and smoother trade signals!
Disclaimer
This script is for educational and informational purposes only. Not financial advice. Use at your own risk.
EMA 5/10 Crossover SignalsThis indicator gives Buy and Sell signals when the 5 EMA crosses with the 10 EMA
EMA Break & Retest + Trend TableThis script is designed to identify potential buy and sell trading opportunities based on 21 EMA (Exponential Moving Average) break and retest patterns, with confirmation from multi-timeframe trend analysis. It combines actionable signal generation with a clean, real-time trend overview table.
✅ 1. EMA Break & Retest Logic
Detects when the price crosses above or below the 21 EMA and then closes in the direction of the breakout.
Generates buy signals on upward break/retest, and sell signals on downward break/retest.
✅ 2. Multi-Timeframe Confirmation
Filters signals using higher timeframe trends to avoid false entries.
Buy signals are shown only if the 1H or 4H trend is bullish.
Sell signals are shown only if the 1H or 4H trend is bearish.
✅ 3. Visual Signal Plotting
Displays green "BUY" labels below bars and red "SELL" labels above bars.
Users can toggle buy/sell signals on or off with checkboxes.
✅ 4. Alerts
Built-in alertcondition() functions allow traders to set real-time alerts when buy or sell signals are triggered.
✅ 5. Multi-Timeframe Trend Table
A dynamic table appears in the top-right corner showing trend status across:
Daily (D)
4 Hour (4H)
1 Hour (1H)
15 Minute (15M)
5 Minute (5M)
Each timeframe is marked as Bullish (green) or Bearish (red) depending on the current price vs. 21 EMA.
The latest signal (“BUY” / “SELL” / “—”) is displayed at the bottom of the table.
π Pi-MA Bandπ Pi-MA Band – Parametric Moving Averages with π Scaling
The π Pi-MA Band is a custom moving average indicator that applies the mathematical constant π (3.14159) as a multiplier to traditional moving average lengths, offering a unique perspective on market smoothing and trend detection.
🔍 Core Features:
Three Dynamic MAs: Includes a Fast, Slow, and Long moving average, each with customizable base lengths and types (EMA, SMA, WMA, HMA, RMA, VWMA, DEMA, TEMA).
π-Based Lengths: Each MA length is automatically scaled by π to align with cyclical and fractal market behavior.
Color Adaptive Bands:
The fast/slow band dynamically changes color based on trend direction (green when fast > slow, red when fast < slow).
A secondary fill highlights when both fast and slow MAs are positioned above or below the long-term MA, indicating strong bullish or bearish alignment.
Visual Clarity: Distinct line thickness and color coding for fast, slow, and long MAs make it easy to assess momentum and trend shifts.
Alerts: Built-in alert conditions notify you of key crossover events between the fast and slow MAs.
📈 Use Cases:
Trend Confirmation: Use the alignment of all three MAs to validate bullish or bearish market conditions.
Momentum Shift Detection: Crossover alerts help traders identify emerging trends early.
Customization: Suitable for scalpers, swing traders, and long-term investors due to adjustable lengths and MA types.
Synapse Trade PanelReplace multiple technical indicators with 1 panel that shows you vital technicals at a glance. Includes RSI and Stochastic indicators and a risk management section with suggested stops in either direction, and EMA trend
SuperTrade ST1 StrategyOverview
The SuperTrade ST1 Strategy is a long-only trend-following strategy that combines a Supertrend indicator with a 200-period EMA filter to isolate high-probability bullish trade setups. It is designed to operate in trending markets, using volatility-based exits with a strict 1:4 Risk-to-Reward (R:R) ratio, meaning that each trade targets a profit 4× the size of its predefined risk.
This strategy is ideal for traders looking to align with medium- to long-term trends, while maintaining disciplined risk control and minimal trade frequency.
How It Works
This strategy leverages three key components:
Supertrend Indicator
A trend-following indicator based on Average True Range (ATR).
Identifies bullish/bearish trend direction by plotting a trailing stop line that moves with price volatility.
200-period Exponential Moving Average (EMA) Filter
Trades are only taken when the price is above the EMA, ensuring participation only during confirmed uptrends.
Helps filter out counter-trend entries during market pullbacks or ranges.
ATR-Based Stop Loss and Take Profit
Each trade uses the ATR to calculate volatility-adjusted exit levels.
Stop Loss: 1× ATR below entry.
Take Profit: 4× ATR above entry (1:4 R:R).
This asymmetry ensures that even with a lower win rate, the strategy can remain profitable.
Entry Conditions
A long trade is triggered when:
Supertrend flips from bearish to bullish (trend reversal).
Price closes above the Supertrend line.
Price is above the 200 EMA (bullish market bias).
Exit Logic
Once a long position is entered:
Stop loss is set 1 ATR below entry.
Take profit is set 4 ATR above entry.
The strategy automatically exits the position on either target.
Backtest Settings
This strategy is configured for realistic backtesting, including:
$10,000 account size
2% equity risk per trade
0.1% commission
1 tick slippage
These settings aim to simulate real-world conditions and avoid overly optimistic results.
How to Use
Apply the script to any timeframe, though higher timeframes (1H, 4H, Daily) often yield more reliable signals.
Works best in clearly trending markets (especially in crypto, stocks, indices).
Can be paired with alerts for live trading or analysis.
Important Notes
This version is long-only by design. No short positions are executed.
Ideal for swing traders or position traders seeking asymmetric returns.
Users can modify the ATR period, Supertrend factor, or EMA filter length based on asset behavior.
21 EMA + VWAP Trend Bias
21 EMA + VWAP Trend Bias
This indicator combines the 21-period Exponential Moving Average (EMA) and the Volume-Weighted Average Price (VWAP) to provide a simple yet effective visual trend bias tool.
🔍 Core Features:
21 EMA Line (Orange): Tracks the short-to-mid-term price trend.
VWAP Line (Blue): Reflects the average trading price, weighted by volume, often used by institutional traders.
Trend Bias Highlight:
Green Background: Bullish bias — price is above both the 21 EMA and VWAP.
Red Background: Bearish bias — price is below both the 21 EMA and VWAP.
No Background: Neutral or mixed signals.
⚙️ Use Cases:
Quickly assess market trend direction at a glance.
Confirm entry or exit signals with dual-layer trend validation.
Great for intraday and swing traders who value clean, unobtrusive chart setups.
weighted support or resistance linesQ: Why should users choose this script?
A: I found that in all the publicly available scripts about support and resistance lines, there is basically no weight identification for these lines. In other words, users do not know which support or resistance lines are the most important. So I specifically wrote this script.
1. By adjusting the weights, only the most effective support or resistance lines are displayed. (Length threshold of trend price (Bar))
2. By selecting the number of K-lines, only the latest number of support or resistance lines generated will be displayed. (Maximum number of reserved S/R lines)
3. By selecting whether to automatically remove lines, only support or resistance lines that have not been penetrated by the k-line will be displayed. If this function is checked, the weight can be adjusted lower, as high-weight SR may have already been penetrated, and the newly generated SR may have a lower weight. (Automatically remove lines penetrated by closing price confirmation)
4. Notes: The default parameters work well in 15-minute candlestick charts. For candlestick charts with other time periods, the parameters can be adjusted appropriately. It is suitable for sideways trading but not for strong trends.
5. I'm quite satisfied with the performance of the script, as I specifically optimized it, lol
Institutional Support/Resistance Locator🏛️ Institutional Support/Resistance Locator
Overview
The Institutional Support/Resistance Locator identifies high-probability demand and supply zones based on strong price rejection, large candle bodies, and elevated volume . These zones are commonly targeted or defended by institutional participants, helping traders anticipate potential reversal or continuation areas.
⸻
How It Works
The indicator uses a confluence of conditions to detect zones:
• Large Body Candles: Body size must exceed the moving average body size multiplied by a user-defined factor.
• High Volume: Volume must exceed the moving average volume by a configurable multiplier.
• Wick Rejection: Candles must show strong upper or lower wicks indicating aggressive rejection.
• If all criteria are met:
• Bullish candles form a Demand Zone.
• Bearish candles form a Supply Zone.
Each zone is plotted for a customizable number of future bars, representing areas where institutions may re-engage with the market.
⸻
Key Features
• ✅ Highlights institutional demand and supply areas dynamically
• ✅ Customizable sensitivity: body, volume, wick, padding, and zone extension
• ✅ Zones plotted as translucent regions with auto-expiry
• ✅ Works across all timeframes and markets
⸻
How to Use
• Trend Traders: Use demand zones for potential bounce entries in uptrends, and supply zones for pullback short entries in downtrends.
• Range Traders: Use zones as potential reversal points inside sideways market structures.
• Scalpers & Intraday Traders: Combine with volume or price action near zones for refined entries.
Always validate zone reactions with supporting indicators or price behavior.
⸻
Why This Combination?
The combination of wick rejection, volume confirmation, and large candle structure is designed to reflect footprints of smart money. Rather than relying on fixed pivots or subjective zones, this logic adapts to the current market context with statistically grounded conditions.
⸻
Why It’s Worth Using
This tool offers traders a structured way to interpret institutional activity on charts without relying on guesswork. By plotting potential high-impact areas, it helps improve reaction time.
⸻
Note :
• This script is open-source and non-commercial.
• No performance guarantees or unrealistic claims are made.
• It is intended for educational and analytical purposes only.