QTrade Golden, Bronze & Death, Bubonic Cross AlertsThis indicator highlights key EMA regime shifts with simple, color-coded triangles:
- Golden / Death Cross — 50 EMA crossing above/below the 200 EMA.
- Bronze / Bubonic Cross — 50 EMA crossing above/below the 100 EMA.
- Early-Warning Proxy — tiny triangles for the 4 EMA vs. 200 EMA (4↑200 and 4↓200). These often fire before the 50/100 and 50/200 crosses.
No text clutter on the chart—just triangles. Colors: gold (50↑200), red (50↓200), darker-yellow bronze (50↑100), burgundy (50↓100), turquoise (4↑200), purple (4↓200).
What it tells you (in order of warning → confirmation)
- First warning: 4 EMA crosses the 200 EMA (proxy for price shifting around the 200 line).
- Second warning: 50 EMA crosses the 100 EMA (Bronze/Bubonic).
- Confirmation: 50 EMA crosses the 200 EMA (Golden/Death).
Alerts included
- Golden Cross (50↑200) and Death Cross (50↓200)
- Bronze Cross (50↑100) and Bubonic Cross (50↓100)
- 4 EMA vs. 200 EMA crosses (up & down) — early-warning proxy
- Price–100 EMA events (touch/cross, if enabled in settings)
المتوسط المتحرك الأسي
EMA Crossover Alert for stocksthis script has alert for breakout
use daily timeframe
put whole watchlist on alert while setting up alert
choose breakout alert
when any stock do breakout during the day you will get notification
which you can use as you wish
to buy options or spreads or quick profit and run
use on your own risk
SS-EMAs [Space Signals]Simple EMAs, default is 21, 50, 100, 200 but configurable freely.
Can set alerts to the lines, and default is only 50 and 200 visible.
Anrazzi - EMAs/ATR - 1.0.2The Anrazzi – EMAs/ATR indicator is a multi-purpose overlay designed to help traders track trend direction and market volatility in a single clean tool.
It plots up to six customizable moving averages (MAs) and an Average True Range (ATR) value directly on your chart, allowing you to quickly identify market bias, dynamic support/resistance, and volatility levels without switching indicators.
This script is ideal for traders who want a simple, configurable, and efficient way to combine trend-following signals with volatility-based position sizing.
📌 Key Features
Six Moving Averages (MA1 → MA6)
Toggle each MA on/off individually
Choose between EMA or SMA for each
Customize length and color
Perfect for spotting trend direction and pullback zones
ATR Display
Uses Wilder’s ATR formula (ta.rma(ta.tr(true), 14))
Can be calculated on current or higher timeframe
Adjustable multiplier for position sizing (e.g., 1.5× ATR stops)
Displays cleanly in the bottom-right corner
Custom Watermark
Displays symbol + timeframe in top-right
Adjustable color and size for streamers, screenshots, or clear charting
Compact UI
Organized with group and inline inputs for quick configuration
Lightweight and optimized for real-time performance
⚙️ How It Works
MAs: The script uses either ta.ema() or ta.sma() to compute each moving average based on the user-selected type and length.
ATR: The ATR is calculated using ta.rma(ta.tr(true), 14) (Wilder’s smoothing), and optionally scaled by a multiplier for easier use in risk management.
Tables: ATR value and watermark are displayed using table.new() so they stay anchored to the screen regardless of zoom level.
📈 How to Use
Enable the MAs you want to track and adjust their lengths, type, and colors.
Enable ATR if you want to see volatility — optionally select a higher timeframe for broader context.
Use MAs to:
Identify overall trend direction (e.g. price above MA20 = bullish)
Spot pullback zones for entries
See when multiple MAs cluster together as support/resistance zones
Use ATR value to:
Size your stop-loss dynamically (e.g. stop = entry − 1.5×ATR)
Detect volatility breakouts (ATR spikes = market expansion)
🎯 Recommended For
Day traders & swing traders
Trend-following & momentum strategies
Volatility-based risk management
Traders who want a clean, all-in-one dashboard
Tradewind EMAs + ConditionsTradewind EMAs + Conditions
Overview
The Tradewind EMAs + Conditions indicator is a powerful tool designed for traders who want to monitor key price levels and trend signals on a single chart. It combines a Trading Conditions monitor that identifies significant price breakouts based on prior day and premarket levels with an EMA Ribbons system that visualizes multiple Exponential Moving Averages (EMAs) for trend analysis.This indicator is tailored for day traders, particularly those using fast-paced setups to capitalize on short-term trends and breakouts, with customizable visual elements to suit individual preferences.
Features
1. Trading Conditions Monitor
Purpose: Identifies when the price breaks out of key levels on a 15-minute chart, considering the prior day's high/low (PDH/PDL) and the premarket high/low (PMH/PML), aligning with @team2trading's focus on key levels for trend identification.
Logic:
Monitors the most recent closed 15-minute bar to detect crosses above PDH/PMH (bullish) or below PDL/PML (bearish).
Ensures the price is outside the premarket band (above PMH or below PML) at the 15-minute close.
Optionally requires the current day's premarket session to be complete for stricter signal validation.
Display: Shows a customizable banner with the text "Trading Conditions Met" (green background) or "Trading Conditions Not Met" (gray background).
Alerts: Includes an alert condition that triggers when trading conditions are met, allowing notifications for breakouts.
2. EMA Ribbons
Purpose: Visualizes multiple EMAs to confirm trend direction and strength, directly supporting use of the primary 13, 48, and 200 EMAs for trend analysis and pullback entries.
Components:
Fast EMAs (EMA1 and EMA2): Default lengths of 8 and 13, with dynamic coloring (green for bullish when EMA1 > EMA2, red for bearish when EMA1 < EMA2).
Intermediate EMA (EMA3): Default length of 48, with a user-defined color.
Slow EMAs (EMA4 and EMA5): Default lengths of 200 and 220, with a user-defined color.
Cloud Fills: Displays editable cloud fills between EMA1/EMA2 and EMA4/EMA5 to highlight trend strength and crossovers.
Visualization: Each EMA is plotted as a line, with customizable colors and lengths, and clouds provide a clear visual of trend direction.
3. Customization Options
Premarket Session: Define the premarket session time (default: 04:00–09:30, exchange time) to calculate PMH/PML.
Premarket Strictness: Toggle to require the current day's premarket to be complete for signal validation.
Banner Position: Choose from five positions (Top Right, Bottom Right, Middle Right, Bottom Center, Middle Left) to place the trading conditions banner.
Banner Size: Select Small (1x1), Medium (2x1), or Large (3x2) for the banner's dimensions.
EMA Settings: Adjust the lengths and colors of all five EMAs and their respective cloud fills to match your trading style.
4. 2-Minute Trading Strategy Support
Purpose: Enhances the indicator for 2-minute trading strategy, which focuses on identifying trends, entering on pullbacks to EMAs, and using key levels for high-probability trades on a 2-minute chart.
How It Works:
Objective: The strategy aims to identify trending stocks and enter trades on pullbacks to the 13 or 48 EMA, using the 2-minute timeframe for entries and exits. The indicator's EMAs (default 8, 13, 48, 200, 220)
Trend Identification:
EMA Alignment: The indicator's EMA ribbons confirm trend direction. A bullish trend is signaled when the price is above the 200 EMA and the 13 EMA crosses above the 48 EMA (green cloud for EMA1/EMA2). A bearish trend occurs when the price is below the 200 EMA and the 13 EMA crosses below the 48 EMA (red cloud). Flat EMAs indicate choppy conditions, where no trades are taken.
Key Levels: The indicator plots PDH/PDL and PMH/PML, which uses to gauge trend strength. Breakouts or retests of these levels (shown by the "Trading Conditions Met" banner) confirm momentum for trade entries.
Entry Rules: On a 2-minute chart, enter trades on pullbacks to the 13 or 48 EMA when the "Trading Conditions Met" banner confirms a breakout above PDH/PMH (long) or below PDL/PML (short). Use candlestick patterns (e.g., bull/bear flags, top/bottom wicks) or level retests for additional confirmation.
Trade Management: Trail stops using the 13 EMA to lock in profits, scaling out when the price extends far from the 13 EMA to protect gains. The slow EMAs (200, 220) help identify potential reversal zones or longer-term trend context.
Risk Management: The indicator's breakout logic provides clear risk levels (e.g., a candle close below the entry EMA for longs or above for shorts), aligning with @team2trading's low-risk, high-reward approach.
Best Practices: Apply the indicator on a 2-minute chart for stocks like AMEX:SPY , NASDAQ:QQQ , or $IWM. Set alerts for "Trading Conditions Met" to catch breakouts in real-time. Adjust EMA lengths (e.g., set EMA1 to 13 and EMA2 to 48) to match the strategy exactly if preferred.
How to Use
Add to Chart: Apply the indicator to a 2-minute or 15-minute TradingView chart for optimal use with 2-minute strategy or breakout monitoring.
Configure Settings:
Adjust the premarket session, EMA lengths, colors, banner position, and size in the settings panel.
Enable the "Only consider today's premarket" option for stricter breakout signals.
Monitor Signals:
Watch the banner for "Trading Conditions Met" to identify breakout opportunities on the 2-minute chart.
Use the EMA ribbons and clouds to confirm trend direction and enter on pullbacks to the 13 or 48 EMA.
Set Alerts: Create alerts for the "Trading Conditions Met" condition to receive notifications for potential trade setups.
Settings
Trading Conditions:
Premarket Session: Set the time range for premarket data.
Only consider today's premarket: Enable for stricter signal logic.
Banner Settings:
Table Position: Select the banner's chart location.
Table Size: Choose the banner's size.
Fast EMAs: Set lengths and colors for EMA1, EMA2, and their cloud.
Intermediate EMA: Set length and color for EMA3.
Slow EMAs: Set lengths and colors for EMA4, EMA5, and their cloud.
Notes
The indicator is overlay-based, ensuring seamless integration with your price chart.
While the trading conditions logic uses 15-minute bar data, it can be monitored on a 2-minute chart for faster execution.
EMA Ribbons, with clouds highlighting crossover zones, are ideal for confirming trends and pullbacks in the 2-minute strategy.
Use the customizable banner to avoid chart clutter and position it for optimal visibility.
Credits
Developed by Tradewind Group. Combining breakout logic with EMA-based trend visualization, with direct inspiration from @team2trading's 2-minute trading strategy for identifying trends and low-risk entries.
EMA RSI CrossThe EMA RSI Cross (ERC) indicator combines exponential moving average (EMA) crossovers with relative strength index (RSI) momentum signals to highlight potential bullish and bearish trading opportunities.
It works in two layers:
EMA Cross Layer: Tracks short‑term vs. mid‑term trend shifts using EMA(5) crossing above/below EMA(20), while also displaying EMA(50) and EMA(200) for longer‑term structure.
RSI Confirmation Layer: Confirms momentum by requiring RSI(14) to cross its moving average (SMA 14) within a recent lookback window.
Only when both conditions align, and the price confirms the setup in relation to EMA20, a signal is generated:
Bullish Signal (green triangle): EMA5 crosses above EMA20 + RSI crosses up + close above EMA20
Bearish Signal (red triangle): EMA5 crosses below EMA20 + RSI crosses down + close below EMA20
Features
Customizable timeframe input for multi‑timeframe analysis
Adjustable lookback period for RSI confirmation
Clear charting with EMA overlays and arrow signals when confirmed setups occur
RSI panel with dynamic background and overbought/oversold visualization
How to Use
Add the script to your chart, select your preferred signal timeframe.
Look for green arrows as bullish entry confirmation and red arrows for bearish setups.
Use additional filters (trend direction, support/resistance, volume) to refine trades.
Avoid relying on signals in sideways/choppy markets where EMA and RSI may give false triggers.
xTrader 20/200 EMA Wave Ribbon🔹 20/200 EMA Wave Ribbon
This indicator expands on the classic 20/200 moving average crossover by turning it into a momentum-aware ribbon. Instead of only showing where two lines cross, it highlights trend bias and momentum strength together in a visual form that adapts across timeframes.
🔑 How It Works
Fast / Slow MAs: Calculates a fast MA (default 20) and a slow MA (default 200). Traders can choose the MA type (EMA, SMA, WMA, RMA).
Bias: When the fast MA is above the slow MA, the ribbon turns 🟢 green (bullish). When it is below, the ribbon turns 🔴 red (bearish).
Wave Ribbon: A band is plotted around the fast MA. Its width comes from a user-defined percent of price, optionally scaled by ATR volatility so the ribbon stays meaningful on both 5m and 1D charts.
MACD-style intensity: Ribbon color adjusts with the separation between fast and slow MAs. Strong expansion makes the ribbon brighter and thicker; contraction makes it softer and thinner. This gives the same “growing and fading” feel traders know from MACD histograms.
Noise Control: Persistence settings can require several bars of agreement before a bias flip is confirmed, reducing whipsaws.
Signals: Optional markers and alerts trigger on bullish and bearish crosses.
📈 Practical Use
Bright, widening ribbon → trend is accelerating; continuation bias is strong.
Dimming ribbon → momentum is weakening; consider scaling out or tightening risk.
Color flip → regime change; possible entry/exit depending on confirmation settings.
Timeframe scaling → ensures ribbon width adapts to volatility, so interpretation is consistent across intraday and higher-timeframe charts.
⚡ What Makes It Different
Unlike open-source EMA cross scripts that only mark crosses:
✅ Plots a dynamic ribbon around the fast MA instead of shading the whole chart.
✅ Uses ATR-based auto-scaling to stay useful on all timeframes.
✅ Applies MACD-style intensity mapping to show not just bias, but trend strength and momentum shifts.
✅ Includes MA type selection (EMA, SMA, WMA, RMA) and persistence logic for confirmation.
⚠️ Disclaimer: This script is for educational and analytical purposes only. It is not financial advice. Always do your own research and use proper risk management before trading.
Michael's EMA - 1h on 5mMichael's EMA - 1h You can use this indicator on all time frame and be able to see the H4 Bands, that help you with less layout and better view
GM
Michael's EMA - 15m on 5mMichael's EMA - 15m on 5m You can use this indicator on all time frame and be able to see the H4 Bands, that help you with less layout and better view
GM
Michael's EMA - 4h on 5mH4 Michael's EMA on all TF, You can use this indicator on all time frame and be able to see the H4 Bands, that help you with less layout and better view
GM
Dual EMA (EMA Average)Simple EMA visual with 2 EMAs + Average
Includes:
2 EMAs with timeframe settings
EMA Midline - an average of EMAs
shaded space between EMA lines
MAxRSI Signals [KedArc Quant]Description:
MAxRSI Indicator Marks LONG/SHORT signals from a Moving Average crossover and (optionally) confirms them with RSI. Includes repaint-safe confirmation, optional higher-timeframe (HTF) smoothing, bar coloring, and alert conditions.
Why combine MA + RSI
* The MA crossover is the primary trend signal (fast trend vs slow trend).
* RSI is a gate, not a second, separate signal. A crossover only becomes a trade signal if momentum agrees (e.g., RSI ≥ level for LONG, ≤ level for SHORT). This reduces weak crosses in ranging markets.
* The parts are integrated in one rule: *Crossover AND RSI condition (if enabled)* → plot signal/alert. No duplicated outputs or unrelated indicators.
How it works (logic)
* MA types: SMA / EMA / WMA / HMA (HMA is built via WMA of `len/2` and `len`, then WMA with `sqrt(len)`).
* Signals:
* LONG when *Fast MA crosses above Slow MA* and (if enabled) *RSI ≥ Long Min*.
* SHORT when *Fast MA crosses below Slow MA* and (if enabled) *RSI ≤ Short Max*.
* Repaint-safe (optional): confirms crosses on closed bars to avoid intrabar repaint.
* HTF (optional): computes MA/RSI on a higher timeframe to smooth noise on lower charts.
* Alerts: crossover alerts + state-flip (bull↔bear) alerts.
How to use (step-by-step)
1. Add to chart. Set MA Type, Fast and Slow (keep Fast < Slow).
2. Turn Use RSI Filter ON for confirmation (default: RSI 14 with 50/50 levels).
3. (Optional) Turn Repaint-Safe ON for close-confirmed signals.
4. (Optional) Turn HTF ON (e.g., 60 = 1h) for smoother signals on low TFs.
5. Enable alerts: pick “MAxRSI Long/Short” or “Bullish/Bearish State”.
Timeframe guidance
* Intraday (1–15m): EMA 9–20 fast vs EMA 50 slow, RSI filter at 50/50.
* Swing (1h–D): EMA 20 fast vs EMA 200 slow, RSI 50/50 (55/45 for stricter).
What makes it original
* Repaint-safe cross confirmation (previous-bar check) for reliable signals/alerts.
* HTF gating (doesn’t compute both branches) for speed and clarity.
* Warning-free MA helper (precomputes SMA/EMA/WMA/HMA each bar), HMA built from built-ins only.
* State-flip alerts and optional RSI overlay on price pane.
Built-ins used
`ta.sma`, `ta.ema`, `ta.wma`, (HMA built from these), `ta.rsi`, `ta.crossover`, `ta.crossunder`, `request.security`, `plot`, `plotshape`, `barcolor`, `alertcondition`, `input.*`, `math.*`.
Note: Indicator only (no orders). Test settings per symbol. Not financial advice.
⚠️ Disclaimer
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
Anrazzi - EMAs/ATR - 1.0.2Description:
The Anrazzi - EMAs/ATR indicator is a versatile tool for technical traders looking to monitor multiple moving averages alongside the Average True Range (ATR) on any chart. Designed for simplicity and customization, it allows traders to visualize up to six moving averages with configurable type, color, and length, while keeping real-time volatility information via ATR directly on the chart.
This indicator is perfect for spotting trends, identifying support/resistance zones, and gauging market volatility for intraday or swing trading strategies.
Key Features:
Supports up to six independent moving averages (MA1 → MA6)
Each MA is fully customizable:
Enable/disable individually
Type: EMA or SMA
Length
Color
ATR Display:
Custom timeframe
Color and position configurable
Adjustable multiplier
Compact and organized settings for easy configuration
Lightweight and efficient code for smooth chart performance
Watermark
Inputs / Settings:
MA Options: MA1 → MA6 (Enable/Disable, Type, Length, Color)
Additional Settings: ATR (Enable, Timeframe, Color, Multiplier)
How to Use:
Enable the moving averages you want to track
Configure type, length, and color for each MA
Enable ATR if needed and adjust settings
Watch MAs plotted dynamically and ATR in bottom-right corner
Recommended For:
Day traders and swing traders
Trend-following strategies
Volatility analysis and breakout detection
Traders needing a compact multi-MA dashboard
Dynamic EMA Stack Support & ResistanceEvery trader needs reliable support and resistance — but static zones and lagging indicators won't cut it in fast-moving markets. This script combines a Fibonacci-based 5-EMA stacking system and left/right pivots that create dynamic support & resistance logic to uncover real-time structural shifts & momentum zones that actually adapt to price action. This isn’t just a mashup — it’s a complete built-from-the-ground-up support & resistance engine designed for scalpers, intraday traders, and trend followers alike.
🧠 🧠 🧠What It Does🧠 🧠 🧠
This script uses two powerful engines working in sync:
1️⃣ EMA Stack (5-EMA Framework)
Built on Fibonacci-based lengths: 5, 8, 13, 21, 34, (configurable) this stack identifies:
🔹 Bullish Stack: EMAs aligned from fastest to slowest (uptrend confirmation)
🔹 Bearish Stack: EMAs aligned inversely (downtrend confirmation)
🟡 Narrowing Zones: When EMAs compress within ATR thresholds → possible breakout or reversal zone
🎯 Labels identify key transitions like:
✅"Begin Bear Trend?"
✅"Uptrend SPRT"
✅"RES?" (resistance test)
2️⃣ Pivot-Based Projection Engine
Using classic Left/Right Bar pivot logic, the script:
📌 Detects early-stage swing highs/lows before full confirmation
📈 Projects horizontal S/R lines that adapt to market structure
🔁 Keeps lines active until a new pivot replaces them
🧩 Syncs beautifully with EMA stack for confluence zones
🎯🎯🎯Key Features for Traders🎯🎯🎯
✅ Trend Detection
→ EMA order reveals real-time bias (bullish, bearish, compression)
✅ Dynamic S/R Zones
→ Historical support/resistance levels auto-draw and extend
✅ Smart Labeling
→ “SPRT”, “RES”, and “Trend?” labels for live context + testing logic
✅ Custom Candle Coloring
→ Choose from Bar Color or Full Candle Overlay modes
✅ Scalper & Swing Compatible
→ Use fast confirmations for scalping or stack consistency for longer trends
⚙️⚙️⚙️How to Use⚙️⚙️⚙️
✅Use Top/Bottom (trend state) Line Colors to quickly read trend conditions.
✅Use Pivot-based support/resistance projections to anticipate where price might pause or reverse.
✅Watch for yellow/blue zones to prepare for volatility shifts/reversals.
✅Combine with volume or momentum indicators for added confirmation.
📐📐📐Customization Options📐📐📐
✅EMA lengths (5, 8, 13, 21, 34) — fully configurable - try 21,34,55, 89, 144 for longer term trend states
✅Left/Right bar pivot settings (default: 21/5)
✅Label size, visibility, and color themes
✅Toggle line and label visibility for clean layouts
✅“Max Bars Back” to control how deep history is scanned safely
🛠🛠🛠Built-In Safeguards🛠🛠🛠
✅ATR-based filters to stabilize compression logic
✅Guarded lookback (max_bars_back) to avoid runtime errors
✅Works on any asset, any timeframe
🏁🏁🏁Final Word🏁🏁🏁
This script is not just a visual tool, it’s a complete trend and structure framework. Whether you're looking for clean trend alignment, dynamic support/resistance, or early warning labels, this system is tuned to help you react with confidence — not hindsight.
Rembember, no single indicator should be used in isolation. For best results, combine it with price action analysis, higher-timeframe context, and complementary tools like trendlines, moving averages etc Use it as part of a well-rounded trading approach to confirm setups — not to define them alone.
💡💡💡Turn logic into clarity. Structure into trades. And uncertainty into confidence.💡💡💡
Dynamic EMA x VWAP AlertsDynamic EMA × VWAP Alerts generates buy and sell signals only when an EMA crossover happens in a meaningful VWAP (or standard deviation band) context. By combining classic EMA logic with flexible VWAP anchors (Daily, Weekly, Rolling) and optional advanced filters (ATR, Relative Volume, Deviation, Distance, Time Windows) to trim noise further, the script creates location-aware, filterable alerts rather than “everywhere” crosses. The value for trading and originality here lies in the integration of one or multiple anchors, band gating, combinator logic, and advanced regime filters. It’s designed for use across multiple instruments and timeframes, where EMA/VWAP context is relevant. It can run quietly in the background while you focus on price action and your own S/R levels.
What it does (quick take)
Detects EMA crossovers (double or optional triple) and evaluates them in VWAP context.
Plots Buy/Sell markers only when all chosen conditions are met.
Clean UX: keep all or parts of the engine visible or hide everything and let alerts run based on the silent engine behind your own S/R levels in an uncluttered, practical chart, as illustrated below.
Engine illustration: All selected engines visible
Practical use case: Same snapshot sequence as above but all selected engines invisible
Swing examples (beyond intraday)
Signals-only (clean value view):
Signals + your own S/R lines:
EMA selection (choose your playbook)
Defaults: Fast 9, Medium 21 (common intraday combo).
Modes: Double Cross — Fast vs Medium.
Triple Cross (optional) — adds a Slow EMA trend filter (enable Slow > 0).
Ranges: you can set each EMA 0–200 (0 = hidden/off)
Visuals are optional; you can display or hide each EMA line
EMA cross footprints (optional): Helps you assess trend continuation or change.
Use your own strategy: switch to 9/50, 20/50, 50/200, or whatever EMA set you trust for your instrument/timeframe.
VWAP Selection (the context engine)
Daily VWAP – resets each chart day (00:00–23:59). Typical fit: scalpers and fast intraday decision points.
Weekly VWAP – resets at the start of the calendar week. Typical fit: intraday with higher-timeframe context (aligns day trades with weekly bias).
Rolling VWAP – an adjustable VWMA-based rolling anchor (not session-reset), used as a flexible context reference Typical fit: multi-day swings when you want a flexible anchor that adapts across sessions.
Standard deviation bands (σ ±1/±2/±3) available for each anchor and help you express the “how far from fair value” idea.
Why VWAP matters: it’s a running, volume-weighted anchor where strong moves relative to VWAP and its bands help frame mean-reversion vs. trend-continuation risk. Evaluating crosses relative to VWAP/±σ reduces “everywhere” noise and helps frame potential setups.
How alerts are decided
An alert triggers only when:
Your selected EMA crossover occurs, and
Your chosen VWAP gate(s) and any filters pass. (Computed on bar close to avoid mid-bar noise)
Signals and alerts do not repaint; alerts evaluate and fire once per bar close.
Alert gates (Single / AND / OR)
Select one VWAP source or combine two (e.g., Daily + Weekly) with Single, AND, or OR logic.
Choose gate levels from VWAP or standard deviation bands (±σ). Typical long logic: price at/under VWAP or −σ. Typical short logic: price at/over VWAP or +σ.
Practical recipes:
Trend-follow: Daily AND Weekly at/above VWAP → confirms strength on two anchors.
Mean-reversion probe: Daily OR Rolling at −1σ → allows earlier fades with flexibility.
Advanced filtering: Suitable for advanced/Quant traders
During the research and development of this indicator, the EMA/VWAP cross logic was tested on historical S&P500 Futures data to explore patterns on multiple timeframes. These selected filtering indicators below showed correlation between certain market conditions and chosen indicator thresholds, helping reduce noise and lower-quality alerts. Results were research-oriented and are not predictive of future performance.
Therefore, I have built these indicator filters that run silently in the background. They let you trim noise by requiring alerts to appear only in market regimes you define. Each one constrains alert conditions; using them together helps tailor alerts to your strategy—but overly strict settings may filter out most or all alerts.
Relative Volume (RVOL): compares current volume to a baseline; ensures alerts arrive with participation instead of thin tape.
Deviation Threshold (%): controls how close the cross must be to the VWAP/σ level; tight = anchored signals, loose = more activity.
ATR Gate (+ Relative regime): keeps alerts inside a volatility regime; avoids both dead tape and chaotic spikes.
Distance Guard: requires price to be at least X ticks/% away from VWAP; useful to avoid premature signals near fair value.
Note: It’s not recommended to activate all of them at once or change the values aggressively. Unless you’ve done deeper backtesting or machine learning calibration, you can easily filter out everything. Use small thresholds at first, then adjust to your instrument once you see how each filter changes alert frequency and quality. Advanced/quant users can fine-tune freely.
Case example:
Unfiltered: Timeframe 15 min, EMA Selection 9/21, VWAP gates Rolling (250 bars) OR Weekly
Filtered: Same setup as above + activated filters:
RVOL: 100 bars, Min. RVOL 0.4
Deviation threshold (%): 0.3
ATR Length: 14
Min ATR (%): 0.05
Relative regime: Base length 2000, Min Ratio 0.85, Max Ratio 2
Under the hood
This indicator leans on TradingView built-ins (e.g., EMA, VWMA, ATR, alertcondition) to maximize speed, stability, and compatibility while we implement the custom logic (VWAP anchors, band gating, combinator gates, advanced filters, time windows). Built-ins were easy to work with and reduced edge-case bugs and kept the visuals responsive, while the design gives fine-tuning and clean visuals—so both discretionary traders and quant-minded users can shape the alerts to their strategy and workflow.
Disclaimer
The tools, scripts, and indicators presented here are provided for educational and informational purposes only. They are not financial advice and should not be interpreted as investment recommendations, trading signals, or a solicitation to buy or sell any financial instrument.
All forms of trading and investing involve risk. The past performance of any security, strategy, or market condition does not guarantee future outcomes. Users are solely responsible for their own trading and investment decisions, including evaluating their financial situation, objectives, and risk tolerance.
By using this indicator, you acknowledge that you do so at your own risk. The author accepts no liability for any direct or indirect loss or damage—including, without limitation, loss of profits—that may arise from the use of, or reliance upon, this tool.
Dual Best MA Strategy AnalyzerDual Best MA Strategy Analyzer (Lookback Window)
What it does
This indicator scans a range of moving-average lengths and finds the single best MA for long crossovers and the single best MA for short crossunders over a fixed lookback window. It then plots those two “winner” MAs on your chart:
Best Long MA (green): The MA length that would have made the highest total profit using a simple “price crosses above MA → long; exit on cross back below” logic.
Best Short MA (red): The MA length that would have made the highest total profit using “price crosses below MA → short; exit on cross back above.”
You can switch between SMA and EMA, set the min/max length, choose a step size, and define the lookback window used for evaluation.
How it works (brief)
For each candidate MA length between Min MA Length and Max MA Length (stepping by Step Size), the script:
Builds the MA (SMA or EMA).
Simulates a naïve crossover strategy over the last Lookback Window candles:
Long model: enter on crossover, exit on crossunder.
Short model: enter on crossunder, exit on crossover.
Sums simple P&L in price units (no compounding, no fees/slippage).
Picks the best long and best short lengths by total P&L and plots those two MAs.
Note: Long and short are evaluated independently. The script plots MAs only; it doesn’t open positions.
Inputs
Min MA Length / Max MA Length – Bounds for MA search.
Step Size – Spacing between tested lengths (e.g., 10 tests 10, 20, 30…).
Use EMA instead of SMA – Toggle average type.
Lookback Window (candles) – Number of bars used to score each MA. Needs enough history to be meaningful.
What the plots mean
Best Long MA (green): If price crosses above this line (historically), that MA length produced the best long-side results over the lookback.
Best Short MA (red): If price crosses below this line (historically), that MA length produced the best short-side results.
These lines can change over time as new bars enter the lookback window. Think of them as adaptive “what worked best recently” guides, not fixed signals.
Practical tips
Timeframe matters: Run it on the timeframe you trade; the “best” length on 1h won’t match 1m or 1D.
Step size trade-off: Smaller steps = more precision but heavier compute. Larger steps = faster scans, coarser choices.
Use with confirmation: Combine with structure, volume, or volatility filters. This is a single-factor tester.
Normalization: P&L is in raw price units. For cross-symbol comparison, consider using one symbol at a time (or adapt the script to percent P&L).
Limitations & assumptions
No fees, funding, slippage, or position sizing.
Simple “in/out” on the next crossover; no stops/targets/filters.
Results rely on lookback choice and will repaint historically as the “best” length is re-selected with new data (the plot is adaptive, not forward-fixed).
The script tests up to ~101 candidates internally (bounded by your min/max/step).
Good uses
Quickly discover a recently effective MA length for trend following.
Compare SMA vs EMA performance on your market/timeframe.
Build a playbook: note which lengths tend to win in certain regimes (trending vs choppy).
Not included (by design)
Alerts, entries/exits, or a full strategy report. It’s an analyzer/overlay.
If you want alerts, you can add simple conditions like:
ta.crossover(close, plotLongMA) for potential long interest
ta.crossunder(close, plotShortMA) for potential short interest
Changelog / Notes
v1: Initial release. Array-based scanner, SMA/EMA toggle, adaptive long/short best MA plots, user-set lookback.
Disclaimer
This is educational tooling, not financial advice. Test thoroughly and use proper risk management.
Trend ChannelThis Trend Channel is designed to simplify how traders view trends, while also keeping track of potential shifts in trends with signals. It is designed for traders that prefer less over more.
The indicator can be used for trend following, trend reversals and confirmation in combination with price or other indicators.
At the core is one EMA and a smoothed volatility based channel around it.
The purpose of the channel is to avoid false signals on trend reclaim or trend loss and instead identify trend deviations.
The indicator also incorporates long and short EMA cross-over signals to recognize possible shifts in trend without having to overlay multiple EMAs and keep the chart cleaner.
Additionally the indicator fires warnings for potential false signals on golden/death crosses with a letter "W" above/below the signal candle. Those warnings are based on the distance between price and the crossover. When the distance is above a certain threshold the indicator fires a warning that price might mean revert.
Traders can customize all inputs in the settings.
Extremum Range MA Crossover Strategy1. Principle of Work & Strategy Logic ⚙️📈
Main idea: The strategy tries to catch the moment of a breakout from a price consolidation range (flat) and the start of a new trend. It combines two key elements:
Moving Average (MA) 📉: Acts as a dynamic support/resistance level and trend filter.
Range Extremes (Range High/Low) 🔺🔻: Define the borders of the recent price channel or consolidation.
The strategy does not attempt to catch absolute tops and bottoms. Instead, it enters an already formed move after the breakout, expecting continuation.
Type: Trend-following, momentum-based.
Timeframes: Works on different TFs (H1, H4, D), but best suited for H4 and higher, where breakouts are more meaningful.
2. Justification of Indicators & Settings ⚙️
A. Moving Average (MA) 📊
Why used: Core of the strategy. It smooths price fluctuations and helps define the trend. The price (via extremes) must cross the MA → signals a potential trend shift or strengthening.
Parameters:
maLength = 20: Default length (≈ one trading month, 20-21 days). Good balance between sensitivity & smoothing.
Lower TF → reduce (10–14).
Higher TF → increase (50).
maSource: Defines price source (default = Close). Alternatives (HL2, HLC3) → smoother, less noisy MA.
maType: Default = EMA (Exponential MA).
Why EMA? Faster reaction to recent price changes vs SMA → useful for breakout strategies.
Other options:
SMA 🟦 – classic, slowest.
WMA 🟨 – weights recent data stronger.
HMA 🟩 – near-zero lag, but “nervous,” more false signals.
DEMA/TEMA 🟧 – even faster & more sensitive than EMA.
VWMA 🔊 – volume-weighted.
ZLEMA ⏱ – reduced lag.
👉 Choice = tradeoff between speed of reaction & false signals.
B. Range Extremes (Previous High/Low) 📏
Why used: Define borders of recent trading range.
prevHigh = local resistance.
prevLow = local support.
Break of these levels on close = trigger.
Parameters:
lookbackPeriod = 5: Searches for highest high / lowest low of last 5 candles. Very recent range.
Higher value (10–20) → wider, stronger ranges but rarer signals.
3. Entry & Exit Rules 🎯
Long signals (BUY) 🟢📈
Condition (longCondition): Previous Low crosses MA from below upwards.
→ Price bounced from the bottom & strong enough to push range border above MA.
Execution: Auto-close short (if any) → open long.
Short signals (SELL) 🔴📉
Condition (shortCondition): Previous High crosses MA from above downwards.
→ Price rejected from the top, upper border failed above MA.
Execution: Auto-close long (if any) → open short.
Exit conditions 🚪
Exit Long (exitLongCondition): Close below prevLow.
→ Uptrend likely ended, range shifts down.
Exit Short (exitShortCondition): Close above prevHigh.
→ Downtrend likely ended, range shifts up.
⚠️ Important: Exit = only on candle close beyond extremes (not just wick).
4. Trading Settings ⚒️
overlay = true → indicators shown on chart.
initial_capital = 10000 💵.
default_qty_type = strategy.cash, default_qty_value = 100 → trades fixed $100 per order (not lots). Can switch to % of equity.
commission_type = strategy.commission.percent, commission_value = 0.1 → default broker fee = 0.1%. Adjust for your broker!
slippage = 3 → slippage = 3 ticks. Adjust to asset liquidity.
currency = USD.
margin_long = 100, margin_short = 100 → no leverage (100% margin).
5. Visualization on Chart 📊
The strategy draws 3 lines:
🔵 MA line (thickness 2).
🔴 Previous High (last N candles).
🟢 Previous Low (last N candles).
Also: entry/exit arrows & equity curve shown in backtest.
Disclaimer ⚠️📌
Risk Warning: This description & code are for educational purposes only. Not financial advice. Trading (Forex, Stocks, Crypto) carries high risk and may lead to full capital loss. You trade at your own risk.
Testing: Always backtest & demo test first. Past results ≠ future profits.
Responsibility: Author of this strategy & description is not responsible for your trading decisions or losses.
Argentum Flag [AGP] Ver.2.5Central Purpose and Concept
The Argentum Flag script is a multifunctional tool that integrates and visualizes multiple key indicators to provide a detailed and unified perspective of the market. The core concept is to analyze price from different angles—volatility, volume, and momentum—to identify confluences and patterns that may be difficult to see with separate indicators. This "mashup" is not a simple fusion of indicators, but a strategic combination of tools that complement each other to offer a comprehensive view of asset behavior.
Components and Their Functionality
This script combines and visualizes the following elements:
EMA Percentage Bands (EMA Bands):
Uses an Exponential Moving Average (EMA) as a baseline.
Calculates and draws several volatility bands that deviate from the central EMA by fixed percentages (0.47%, 0.94%, 2.36%). These bands are inspired by Fibonacci ratios and the cyclical nature of the market.
The bands are colored with a dynamic gradient that reflects the current state of volatility.
Utility: These bands act as dynamic support and resistance areas. The price entering or exiting these zones can indicate a change in volatility or a possible exhaustion of the movement.
Volatility Signals (Vortex & Prime Signals):
The script generates visual signals when the price stays outside the volatility bands for a specific number of bars.
Vortex Signals (diamond ⍲): Appear when the price crosses and stays outside the Prime bands, suggesting a high volatility or a possible continuation of the trend.
Exit/Entry Signals (circle ⌾): Are activated when the price stays outside the Vortex bands, indicating an extreme extension of volatility. These can be interpreted as potential reversal or profit-taking zones.
Utility: They help traders quickly identify moments of high and low volatility and potential turning points in price action.
Volume Analysis (Volume Bar Colors):
The script changes the color of the bars based on the relationship between the current volume and the average volume over a 50-bar period.
Utility: This feature allows the trader to immediately visualize the strength behind a price movement. For example, a bullish candle with "extreme" volume suggests strong buying interest, while a bearish candle with "low" volume could indicate a weak correction.
Summary Tables (Dashboard):
EMA-Fibo Table: Displays the values of 12 EMAs based on the Fibonacci sequence (5, 8, 13, 21...) in an easy-to-access table. The background color of each value indicates if the current price is above (bullish) or below (bearish) that EMA.
Multi-Timeframe RSI Table: Displays the Relative Strength Index (RSI) values across multiple timeframes (from 1 minute to monthly). The text color changes to highlight if the RSI is in overbought (orange) or oversold (white) areas, according to the established levels.
Utility: These tables condense a large amount of data into a simple format, allowing traders to perform a quick, multi-timeframe market analysis without constantly switching charts.
How to Use the Script
This script is a contextual analysis tool that works best when its different components are combined. It is not a "buy and sell signal" system on its own, but a tool for informed decision-making.
Trend Identification: Use the EMA table to see the general trend direction across different timeframes. A price above most of the EMAs in the table suggests a bullish bias.
Volatility Reading: Observe the EMA bands. If the price stays within the bands, volatility is low. A strong move that breaks out of the bands, accompanied by an "extreme" volume color (blue), suggests strong momentum that could continue.
Momentum Analysis: Use the RSI table to confirm movements. An overbought 15m RSI could support a reversal signal from the Vortex bands, while a 1D RSI in a neutral zone may indicate that the main trend has not changed.
Signal Confirmation: Visual signals (diamond and circle) should not be used in isolation. They must be confirmed by volume analysis and dashboard readings. For example, an "Exit Signal" (circle) with low volume may be less reliable than one with high volume and a clear reversal candle.
Disclaimer
This script is for informational and educational purposes only. It is not financial advice, nor is it a recommendation to buy or sell any financial instrument. All trading involves risk, and past performance is not indicative of future results. The user is solely responsible for their own trading decisions.
Multi EMA Pack (Full, Custom Multi-Cross)Exponential Moving Average (EMA) is a trend-following indicator that smooths price data by applying more weight to recent prices. It reacts faster to market changes than a Simple Moving Average (SMA). Traders often use multiple EMAs with different lengths to identify trend direction, spot crossovers as trade signals, and define dynamic support or resistance zones.
Adaptive RSIFor traders who want more control, the indicator allows customization of RSI length, smoothing type, and Bollinger Band settings, making it adaptable to day trading, swing trading, and even long-term investing.
In short, this is more than just an RSI — it’s a complete momentum toolkit that combines clarity, flexibility, and advanced signal detection in one clean package.