VWAP + EMA Retracement Indicator SwiftEdgeVWAP + EMA Retracement Indicator
Overview
The VWAP + EMA Retracement Indicator is a powerful and visually engaging tool designed to help traders identify high-probability buy and sell opportunities in trending markets. By combining the Volume Weighted Average Price (VWAP) with two Exponential Moving Averages (EMAs) and a unique retracement-based signal logic, this indicator pinpoints moments when the price pulls back to a key zone before resuming its trend. Its modern, AI-inspired visuals and customizable features make it both intuitive and adaptable for traders of all levels.
What It Does
This indicator generates buy and sell signals based on a sophisticated yet straightforward strategy:
Buy Signals: Triggered when the price is above VWAP, has recently retraced to the zone between two EMAs (default 12 and 21 periods), and a strong bullish candle closes above both EMAs.
Sell Signals: Triggered when the price is below VWAP, has retraced to the EMA zone, and a strong bearish candle closes below both EMAs.
Signal Filtering: A customizable cooldown period ensures that only the first signal in a sequence is shown, reducing noise while preserving opportunities for new trends.
Confidence Scores: Each signal includes an AI-inspired confidence score (0-100%), calculated from candle strength and price distance to VWAP, helping traders gauge signal reliability.
The indicator’s visuals enhance decision-making with dynamic gradient lines, a highlighted retracement zone, and clear signal labels, all customizable to suit your preferences.
How It Works
The indicator integrates several components that work together to create a cohesive trading tool:
VWAP: Acts as a dynamic support/resistance level, reflecting the average price weighted by volume. It filters signals to ensure buys occur in uptrends (price above VWAP) and sells in downtrends (price below VWAP).
Dual EMAs: Two EMAs (default 12 and 21 periods) define a retracement zone where the price is likely to consolidate before continuing its trend. Signals are generated only after the price exits this zone with conviction.
Retracement Logic: The indicator looks for price pullbacks to the EMA zone within a user-defined lookback window (default 5 candles), ensuring signals align with trend continuation patterns.
Candle Strength: Signals require strong candles (bullish for buys, bearish for sells) with a minimum body size based on the Average True Range (ATR), filtering out weak or indecisive moves.
Cooldown Mechanism: A unique feature that prevents signal clutter by allowing only the first signal within a user-defined period (default 3 candles), balancing responsiveness with clarity.
Confidence Score: Combines candle body size and price distance to VWAP to assign a score, giving traders an at-a-glance measure of signal strength without needing external analysis.
These components are carefully combined to capture high-probability setups while minimizing false signals, making the indicator suitable for both short-term and swing trading.
How to Use It
Add to Chart: Apply the indicator to a 15-minute chart (recommended) or your preferred timeframe.
Customize Settings:
VWAP Source: Choose the price source (default: hlc3).
EMA Periods: Adjust the fast and slow EMA periods (default: 12 and 21).
Retracement Window: Set how many candles to look back for retracement (default: 5).
ATR Period & Body Size: Define candle strength requirements (default: 14 ATR period, 0.3 multiplier).
Cooldown Period: Control the minimum candles between signals (default: 3; set to 0 to disable).
Candle Requirements: Toggle whether signals require bullish/bearish candles or entire candle above/below EMAs.
Visuals: Enable/disable gradient colors, retracement zone, confidence scores, and choose a color scheme (Neon, Light, or Dark).
Interpret Signals:
Buy: A green "Buy" label with a confidence score appears below the candle when conditions are met.
Sell: A red "Sell" label with a confidence score appears above the candle.
Use the confidence score to prioritize higher-probability signals (e.g., above 80%).
Trade Management: Combine signals with your risk management strategy, such as setting stop-loss below the retracement zone and targeting a 1:2 risk-reward ratio.
Why It’s Unique
The VWAP + EMA Retracement Indicator stands out due to its thoughtful integration of classic indicators with modern enhancements:
Balanced Signal Filtering: The cooldown mechanism ensures clarity without missing key opportunities, unlike many indicators that overwhelm with frequent signals.
AI-Inspired Confidence: The confidence score simplifies decision-making by quantifying signal strength, mimicking advanced analytical tools in an accessible way.
Elegant Visuals: Dynamic gradients, a highlighted retracement zone, and customizable color schemes (Neon, Light, Dark) create a sleek, futuristic interface that’s both functional and visually appealing.
Flexibility: Extensive customization options let traders tailor the indicator to their style, from conservative swing trading to aggressive scalping.
Moving Averages
5 custom moving averagesDescription (English)
“5 custom moving averages” is a versatile TradingView indicator that plots five independent moving averages on your chart. For each line (MA1–MA5), you can choose from SMA, EMA, WMA, or VWMA and set its own period and data source. Default settings use 10, 21, 50, 200, and 325 bars with semi‑transparent pink, green, red, black, and light blue colors. Simply apply the script to your chart and customize each MA to fit your trading strategy.
説明(日本語)
「5 custom moving averages」は、チャート上に独立した5本の移動平均線を表示できるTradingView用インジケーターです。MA1~MA5それぞれで、SMA・EMA・WMA・VWMA のいずれかを選択でき、期間やデータソースも個別に設定可能です。デフォルトでは期間を 10、21、50、200、325 に、色を半透明ピンク、緑、赤、黒、薄い青に設定しています。チャートへ適用後、お好みに合わせて各線を調整してお使いください。
Dskyz (DAFE) AI Adaptive Regime - Beginners VersionDskyz (DAFE) AI Adaptive Regime - Pro: Revolutionizing Trading for All
Introduction
In the fast-paced world of financial markets, traders need tools that can keep up with ever-changing conditions while remaining accessible. The Dskyz (DAFE) AI Adaptive Regime - Pro is a groundbreaking TradingView strategy that delivers advanced, AI-driven trading capabilities to everyday traders. Available on TradingView (TradingView Scripts), this Pine Script strategy combines sophisticated market analysis with user-friendly features, making it a standout choice for both novice and experienced traders.
Core Functionality
The strategy is built to adapt to different market regimes—trending, ranging, volatile, or quiet—using a robust set of technical indicators, including:
Moving Averages (MA): Fast and slow EMAs to detect trend direction.
Average True Range (ATR): For dynamic stop-loss and volatility assessment.
Relative Strength Index (RSI) and MACD: Multi-timeframe confirmation of momentum and trend.
Average Directional Index (ADX): To identify trending markets.
Bollinger Bands: For assessing volatility and range conditions.
Candlestick Patterns: Recognizes patterns like bullish engulfing, hammer, and double bottoms, confirmed by volume spikes.
It generates buy and sell signals based on a scoring system that weighs these indicators, ensuring trades align with the current market environment. The strategy also includes dynamic risk management with ATR-based stops and trailing stops, as well as performance tracking to optimize future trades.
What Sets It Apart
The Dskyz (DAFE) AI Adaptive Regime - Pro distinguishes itself from other TradingView strategies through several unique features, which we compare to common alternatives below:
| Feature | Dskyz (DAFE) | Typical TradingView Strategies|
|---------|-------------|------------------------------------------------------------|
| Regime Detection | Automatically identifies and adapts to **four** market regimes | Often static or limited to trend/range detection |
| Multi‑Timeframe Analysis | Uses higher‑timeframe RSI/MACD for confirmation | Rarely incorporates multi‑timeframe data |
| Pattern Recognition | Detects candlestick patterns **with volume confirmation** | Limited or no pattern recognition |
| Dynamic Risk Management | ATR‑based stops and trailing stops | Often uses fixed stops or basic risk rules |
| Performance Tracking | Adjusts thresholds based on past performance | Typically static parameters |
| Beginner‑Friendly Presets | Aggressive, Conservative, Optimized profiles | Requires manual parameter tuning |
| Visual Cues | Color‑coded backgrounds for regimes | Basic or no visual aids |
The Dskyz strategy’s ability to integrate regime detection, multi-timeframe analysis, and user-friendly presets makes it uniquely versatile and accessible, addressing the needs of everyday traders who want professional-grade tools without the complexity.
-Key Features and Benefits
[Why It’s Ideal for Everyday Traders
⚡The Dskyz (DAFE) AI Adaptive Regime - Pro democratizes advanced trading by offering professional-grade tools in an accessible package. Unlike many TradingView strategies that require deep technical knowledge or fail in changing market conditions, this strategy simplifies complex analysis while maintaining robustness. Its presets and visual aids make it easy for beginners to start, while its adaptive features and performance tracking appeal to advanced traders seeking an edge.
🔄Limitations and Considerations
Market Dependency: Performance varies by market and timeframe. Backtesting is essential to ensure compatibility with your trading style.
Learning Curve: While presets simplify use, understanding regimes and indicators enhances effectiveness.
No Guaranteed Profits: Like all strategies, success depends on market conditions and proper execution. The Reddit discussion highlights skepticism about TradingView strategies’ universal success (Reddit Discussion).
Instrument Specificity: Optimized for futures (e.g., ES, NQ) due to fixed tick values. Test on other instruments like stocks or forex to verify compatibility.
📌Conclusion
The Dskyz (DAFE) AI Adaptive Regime - Pro is a revolutionary TradingView strategy that empowers everyday traders with advanced, AI-driven tools. Its ability to adapt to market regimes, confirm signals across timeframes, and manage risk dynamically. sets it apart from typical strategies. By offering beginner-friendly presets and visual cues, it makes sophisticated trading accessible without sacrificing power. Whether you’re a novice looking to trade smarter or a pro seeking a competitive edge, this strategy is your ticket to mastering the markets. Add it to your chart, backtest it, and join the elite traders leveraging AI to dominate. Trade like a boss today! 🚀
Use it with discipline. Use it with clarity. Trade smarter.
**I will continue to release incredible strategies and indicators until I turn this into a brand or until someone offers me a contract.
-Dskyz
Attrition Scalper - MTF# Attrition Scalper MTF Update
## What's Changed
Compared to previous Attrition Scalper versions, the channel and lines are now calculated using multi-timeframe (MTF) confluence with weighted averages.
The indicator is updated to PineScript V6.
I've removed redundant logic, inefficient buy/sell and high/low signals, and linear regression calculations to create a cleaner, more streamlined version that's both easier to use and provides a better foundation for future developments.
Using these lines every day has quickly made me realize that one line in one timeframe is usually in confluence with another line in another timeframe, and that price zone is usually much more reliable as a proper support/resistance or a mean reversion scalp zone.
The new logic checks one timeframe lower and one timeframe higher than the current timeframe the user is viewing and performs a weighted average calculation of 0.618 × lower TF + 1.0 × current TF + 0.786 × higher TF before plotting the lines.
Timeframes higher than weekly or lower than 5 minutes don't use MTF and instead just show the normal lines and the channel for that single timeframe similar to previous Attrition Scalper V2.
## Understanding the Lines
The Attrition Scalper generates several key reference lines that can help identify trade opportunities:
### Primary Reference Lines
- **Middle VIDYA and EVWMA (Middle Band)**: Usually represents the "mean" or equilibrium price. Price tends to gravitate back to this area during consolidation.
- **Green/Red VIDYA Lines**: These color-changing lines are your higher priority/reliable support/resistance levels.
### Fibonacci Extension Lines
- **Blue Lower Fibonacci Lines (0.618, 1.618, 2.618)**: Secondary support/resistance zones. While less significant than the VIDYA lines, these still provide valuable reference points for potential bounces.
- **Yellow 4.236 Fibonacci Lines**: These represent significant price overextension. When price reaches or exceeds these levels, expect a mean reversion move soon. These are the highest trust lines.
## Trading Applications
### Overextension & Mean Reversion
When price pushes above/below the yellow 4.236 Fibonacci line:
- This indicates an overextended market condition
- Probability of mean reversion increases significantly
- Consider counter-trend positions back toward the middle band
- Set targets near the middle VIDYA/EVWMA lines
- Higher timeframes = Higher reliability
- Don't panic and trust the process
### Support & Resistance Trading
- **Primary S/R Zones (Green/Red VIDYA)**: These are your highest probability bounce/rejection points. Pay special attention when price approaches these levels, especially on the first test.
- **Secondary S/R Zones (Blue Fib Lines)**: Use these as supplementary confirmation or for tighter stop placement or basic entries/TPs when laddering in and out.
## Best Practices
1. **Wait for Candle Close**: Trading signals are most reliable after a candle has fully closed above/below significant lines. Don't just take an instant long/short position when price goes above/below the outer yellow 4.236 fib line; wait for confirmation and candle close. Don't be sad if you miss an opportunity just because you waited—it's better this way in the long run.
2. **Respect Momentum**: Don't fight strong momentum just because price reached a line; wait for signs of reversal. Price almost always retraces, but it can be a small retracement only to inside the channel instead of going all the way back to the mean if the market is trending, OR it can stay overextended for an extended period of time (usually few candles max though). Sudden spikes all the way to the overextended zone are almost always a better position to take as a mean reversion play compared to long drawn out single direction trends. Don't fight the trend; take very small quick scalps given the opportunity.
3. **Use Confirmation Combined with Volume**: Look for rejection candles, engulfing patterns, or double tops/bottoms at key levels before entering. Strong volume at key lines increases the probability of a meaningful reaction. For example, at the end of an uptrend, if you see the price has spiked and is now overextended (out of the channel and above all the lines) and you see volume also spiking, that's almost always the top, at least for a while.
5. **Consider Volatility**: During high volatility, price may overshoot lines a lot (although very rare) before reversing; be patient and wait for confirmation. It could also be a news event, so always check before entering a position.
Wavelet Smoothed Moving Average (TechnoBlooms)Wavelet Smoothed Moving Average (WSMA) is a part of the Quantum Price Theory (QPT) Series of indicators.
Overview:
The Wavelet Smoothed Moving Average (WSMA) is a trend-following indicator inspired by multi-level Haar Wavelet decomposition. Rather than using traditional wavelet basis functions, it emulates the core wavelet concept of multi-resolution analysis using nested simple moving averages (SMA).
How It Works:
WSMA applies three levels of smoothing:
• Level 1: SMA on price (base smoothing)
• Level 2: SMA on Level 1 output (further denoising)
• Level 3: SMA on Level 2 output (final approximation)
Why Use WSMA:
• Multi-Level Smoothing: Captures price structure across multiple time scales, unlike single-length MAs.
• Noise Reduction: Filters out short-term volatility and focuses on the underlying trend.
• Low Lag, High Clarity: Unlike traditional moving averages that react slowly or miss subtle shifts, WSMA’s layered smoothing delivers cleaner and more adaptive trend detection.
Unique Value:
• Wavelet-Inspired Design: Mimics core wavelet decomposition logic without the complexity of downsampling or basis functions.
• Perfect for Trend Confirmation: The final line (a3) can act as a trend filter, while the detail levels can help identify momentum shifts and volatility bursts.
• Fits Into Quantum Price Theory: As part of the QPT framework, WSMA bridges scientific theory with trading application, giving traders a deeper understanding of market structure and signal compression.
MACD Liquidity Tracker SystemMACD Liquidity Tracker System
🔹 Enhanced MACD with candle coloring, entry markers, and customizable signal logic.
🧠 Features:
This tool combines a color-coded MACD histogram with signal-based candle colors and small shape markers (🔼🔽) for clear market momentum and entry visualization.
📊 Visuals:
MACD Histogram (Sub-panel):
4 dynamic colors to show momentum direction:
🔹 Bright Blue = MACD > 0 & rising (strong bullish)
🔹 Dark Blue = MACD > 0 & falling (weakening bullish)
🔹 Bright Magenta = MACD < 0 & falling (strong bearish)
🔹 Dark Magenta = MACD < 0 & rising (weakening bearish)
Price Candles (Main Chart):
🔹 Bright Blue = Active Long signal
🔹 Bright Magenta = Active Short signal
Entry Markers:
🔼 Blue triangle (below candle) = Start of Long
🔽 Magenta triangle (above candle) = Start of Short
⚙️ System Types (select in settings):
Normal:
🔹 Long = MACD > 0
🔹 Short = MACD < 0
Fast: (Based on histogram color)
🔹 Long = Bright Blue OR Dark Magenta
🔹 Short = Dark Blue OR Bright Magenta
Safe:
🔹 Long = Only Bright Blue
🔹 Short = All other colors
🔔 Alerts:
Alerts trigger only on the first bar of a new Long/Short signal.
Easy to set up using TradingView’s alert system.
📌 How to Use:
Add the indicator to your chart
Open settings and select a System Type
Adjust MACD parameters if needed
Use histogram color + candle color for momentum and signal confirmation
Set alerts for clean entries if desired
💡 Ideal for traders seeking visual clarity and flexible MACD-based strategies.
Grok CCI with DMF and 20 DMA FilterCCI Indicator that generates Buy and Sell signals, filtered with Dynamic money flow and a 14 Day moving average.
Shout out to RezzaHmt www.tradingview.com
for his Dynamic money flow Indicator.
This is still a work in progress.
Add it twice to your chart: One the main chart ( Uncheck all check boxes except the DMA and the Buy and Sell under style.)
One below the chart (Uncheck the Buy and Sell boxes and the Blue CCI box)
Jack's ADX v3 with Multi-TF TableAdded a table showing the ADX value on 3 timeframes.
You can change the timeframes in the settings.
NOTE: When you change the timeframe/s in the settings it will change the value in the table but the timeframe label does not change. To be fixed.
But if you change timeframe 2 to 1 hour, the text in the table will say 26m but the value is from the 1 hour adx value.
Hope that makes sense.
DEMA Trend Oscillator Strategy📌 Overview
The DEMA Trend Oscillator Strategy is a dynamic trend-following approach based on the Normalized DEMA Oscillator SD.
It adapts in real-time to market volatility with the goal of improving entry accuracy and optimizing risk management.
⚠️ This strategy is provided for educational and research purposes only.
Past performance does not guarantee future results.
🎯 Strategy Objectives
The main goal of this strategy is to respond quickly to sudden price movements and trend reversals,
by combining momentum-based signals with volatility filters.
It is designed to be user-friendly for traders of all experience levels.
✨ Key Features
Normalized DEMA Oscillator: A momentum indicator that normalizes DEMA values on a 0–100 scale, allowing intuitive identification of trend strength
Two-Bar Confirmation Filter: Requires two consecutive bullish or bearish candles to reduce noise and enhance entry reliability
ATR x2 Trailing Stop: In addition to fixed stop-loss levels, a trailing stop based on 2× ATR is used to maximize profits during strong trends
📊 Trading Rules
Long Entry:
Normalized DEMA > 55 (strong upward momentum)
Candle low is above the upper SD band
Two consecutive bullish candles appear
Short Entry:
Normalized DEMA < 45 (downward momentum)
Candle high is below the lower SD band
Two consecutive bearish candles appear
Exit Conditions:
Take-profit at a risk-reward ratio of 1.5
Stop-loss triggered if price breaks below (long) or above (short) the SD band
Trailing stop activated based on 2× ATR to secure and extend profits
💰 Risk Management Parameters
Symbol & Timeframe: Any (AUDUSD 5M example)
Account size (virtual): $3000
Commission: 0.4PIPS(0.0004)
Slippage: 2 pips
Risk per trade: 5%
Number of trades (backtest):534
All parameters can be adjusted based on broker specifications and individual trading profiles.
⚙️ Trading Parameters & Considerations
Indicator: Normalized DEMA Oscillator SD
Parameter settings:
DEMA Period (len_dema): 40
Base Length: 20
Long Threshold: 55
Short Threshold: 45
Risk-Reward Ratio: 1.5
ATR Multiplier for Trailing Stop: 2.0
🖼 Visual Support
The chart displays the following visual elements:
Upper and lower SD bands (±2 standard deviations)
Entry signals shown as directional arrows
🔧 Strategy Improvements & Uniqueness
This strategy is inspired by “Normalized DEMA Oscillator SD” by QuantEdgeB,
but introduces enhancements such as a two-bar confirmation filter and an ATR-based trailing stop.
Compared to conventional trend-following strategies, it offers superior noise filtering and profit optimization.
✅ Summary
The DEMA Trend Oscillator Strategy is a responsive and practical trend-following method
that combines momentum detection with adaptive risk management.
Its visual clarity and logical structure make it a powerful and repeatable tool
for traders seeking consistent performance in trending markets.
⚠️ Always apply appropriate risk management. This strategy is based on historical data and does not guarantee future results.
King Crypto Crossover BotThe Simple SMA Crossover Bot is a streamlined yet robust algorithmic signal generator, architected to detect dynamic trend inflection points using dual-period simple moving average convergence and divergence.
Leveraging the intersection logic of short-term and long-term moving averages, this system highlights potential breakout and reversal zones by precisely identifying crossover and crossunder events — critical junctures where bullish or bearish momentum transitions often begin.
Designed for traders who value clarity and precision, the bot deploys high-visibility chart markers and configurable real-time alert conditions, enabling seamless integration with webhook-based automation systems. This makes it ideal for hybrid manual-automated trading strategies or full automation when paired with third-party trade execution layers.
Whether used standalone or as part of a broader multi-indicator framework, this crossover engine offers a solid foundation for systematic trading strategies in crypto, forex, or equities markets.
Stochastic with EMA + BOS FOR XAUUSD 5MThis indicator combines multi-timeframe Stochastic signals (from M1, M5, M15, M30) with an EMA-based trend filter on M1 to generate bullish and bearish signals. It applies dynamic Stochastic thresholds depending on the M1 EMA trend (fast vs. slow), so the trigger levels for oversold/overbought conditions adjust according to recent market bias. Additionally, it blocks signals if price is too close to the 4H (or ~24H on a 5-minute chart) high or low, helping to avoid entries at potential extremes.
A simple Break of Structure (BOS) check tracks if a bullish or bearish break happened within the last few hours. Signals become stricter if a recent BOS favors the opposite side. The script also looks at the current 3-hour range to classify swing levels as low, medium, or high. Each valid signal is plotted (triangle on the chart) and tied to an alert condition that includes the swing classification. This makes it easier to spot potential high-conviction setups versus more conservative or lower-volatility ones.
Beware NEWS!
Phoenix Pro Strategy📘 Phoenix Pro Indicator & Strategy – Technical Documentation
🔧 Overview
The Phoenix Pro Indicator is a comprehensive multi-tool indicator designed for trend detection, momentum analysis, volatility visualization, and automated strategy execution on TradingView. It integrates:
EMA, SMA (Trend Filters)
RSI (Momentum)
Bollinger Bands (Volatility)
Pivot Support/Resistance (Price Structure)
ZigZag Highs/Lows (Market Structure)
Auto Buy/Sell Strategy Logic
📊 Technical Components
🔹 1. Trend Filters (EMA/SMA)
Fast EMA (default 9): Short-term trend direction
Slow EMA (default 21): Long-term trend filter
SMA Short (default 20): Confirms price momentum
SMA Long (default 50): General market trend direction
pine
Kopyala
Düzenle
emaFast = ta.ema(close, 9)
emaSlow = ta.ema(close, 21)
🔹 2. RSI
Detects overbought/oversold conditions.
Used to time entries with trend confirmation.
pine
Kopyala
Düzenle
rsi = ta.rsi(close, 14)
🔹 3. Bollinger Bands
Measures volatility and helps detect breakouts.
pine
Kopyala
Düzenle
basis = ta.sma(close, 20)
upperBB = basis + 2 * ta.stdev(close, 20)
lowerBB = basis - 2 * ta.stdev(close, 20)
🔹 4. Pivot Support/Resistance
Highlights recent local highs and lows as potential reversal zones.
pine
Kopyala
Düzenle
pivotHigh = ta.pivothigh(high, 5, 5)
pivotLow = ta.pivotlow(low, 5, 5)
🔹 5. ZigZag
Simplifies price structure visualization to identify swing highs/lows.
pine
Kopyala
Düzenle
zigzagTop := (high >= high * (1 + dev / 100)) ? high : zigzagTop
📈 Strategy Logic
✅ Long Entry:
text
Kopyala
Düzenle
- EMA Fast > EMA Slow
- Close > SMA Short
- RSI < 60
- Close > Bollinger Basis
🔻 Short Entry:
text
Kopyala
Düzenle
- EMA Fast < EMA Slow
- Close < SMA Short
- RSI > 40
- Close < Bollinger Basis
📉 Exit Logic:
Close long if short condition triggers.
Close short if long condition triggers.
✅ Pine Script Strategy Code Snippet:
pine
Kopyala
Düzenle
strategy.entry("Long", strategy.long, when=longCond)
strategy.close("Long", when=shortCond)
strategy.entry("Short", strategy.short, when=shortCond)
strategy.close("Short", when=longCond)
🖥️ Usage in TradingView
Open TradingView
Click on Pine Editor (bottom tab)
Paste the full script
Click Add to Chart
Select the Strategy Tester tab to view performance
Adjust input parameters via settings ⚙️
⚙️ Recommended Settings (Adjust as needed)
Input Default Notes
EMA Fast 9 Short-term sensitivity
EMA Slow 21 Trend confirmation
SMA Short 20 Entry condition check
RSI Period 14 Momentum filter
RSI OB/OS 70/30 Entry condition tuning
Bollinger Length 20 For mean reversion / trend volatility
ZigZag Deviation (%) 5.0 Increase for higher-timeframe clarity
📌 Notes & Tips
Use on higher timeframes (1H, 4H, 1D) for better signals.
Combine with macro/fundamental filters for advanced setups.
Adjust parameters based on market type (ranging vs trending).
Use strategy tester to optimize performance.
HMA Breakdown [NLR]Hull Moving Average (HMA) is a great trend-following tool — it's smooth, fast, and more responsive than traditional MAs like EMA or SMA. But the problem?
Sometimes it gives signals that look sharp but are misleading — especially in noisy markets or when the price is chopping around.
This script breaks down the inner mechanics of the HMA to give you more context:
Are the inputs to HMA actually diverging?
Is there momentum behind the move?
Is this trend about to reverse or just a pullback?
By plotting the components of HMA — and layering signal bands, color logic, and optional trend overlays — it gives you a visual breakdown of what's really going on under the hood.
What this indicator shows
HMA Trend (Main Line)
The Hull Moving Average (HMA) is plotted in bold, colored red or green based on internal conditions (not just price slope).
WMA Components (Fast & Slow)
Shows the two WMAs used inside the HMA calculation:
WMA Half (faster) — reacts quickly to price
WMA Full (slower) — smoother, less reactive
Their difference and crossover gives you clues on whether momentum is building or fading.
Signal & Band Structure
A calculated upper band and lower band are used to track when HMA is leading or lagging momentum.
When the HMA is below the band, trend may be weakening - this helps you filter false signals.
TMA Candle (Optional Visual)
A synthetic candle shows whether the smoothed average is rising or falling compared to a few candles back.
This is a simple visual cue to spot inflection points in the trend.
EMA Trend Overlay (Optional)
A pair of short-term EMAs built on a smoothed source helps you catch micro-trends or align your entries with the bigger trend.
Can act as an early heads-up or a trend confirmation layer.
What problem it solves
Noisy Signals: Helps filter out weak or fake trend signals often seen in HMA-only systems.
Visual Breakdown: Lets you see how each component of the HMA is behaving — so you’re not flying blind.
Momentum Confirmation: Adds layered confirmation using fast-vs-slow WMA cross, signal bands, and mini trend overlays.
Best Used For:
Trend-following traders who use HMA or WMA strategies
Filtering entries/exits in momentum-based systems
Visually confirming when a trend is real vs fake
PG Mean revision price to vwma and MAsHere's a concise breakdown for your users:
- Selection of Moving Average Type:- Choose VWMA, EMA, or SMA, along with the source (e.g., closing price) and length for the calculation.
- Price-MA Difference Calculation:- Calculates the difference between the closing price and the selected moving average.
- Additional Moving Averages:- Applies three customizable moving averages (MA1, MA2, MA3) to the price-MA difference.
- Dynamic Plotting:- Plots the price-MA difference in red, and overlays the moving averages (blue, orange, purple). MA1 can be dynamically colored red/green based on its trend.
- Zero Reference Line:- Includes a horizontal line at zero for easy visual reference.
This tool helps analyze price trends and deviations for better trading decisions!
Triple Confirmación Forex (Señales en Tiempo Real)//@version=5
indicator("Triple Confirmación Forex (Señales en Tiempo Real)", overlay=true)
// ==== RSI ====
rsi = ta.rsi(close, 14)
rsi_1m = request.security(syminfo.tickerid, "1", rsi)
rsi_5m = request.security(syminfo.tickerid, "5", rsi)
// ==== Estocástico ====
length = input(14, "Stoch Length")
smoothK = input(1, "%K Smoothing")
smoothD = input(3, "%D Smoothing")
highestHigh = ta.highest(high, length)
lowestLow = ta.lowest(low, length)
k = ta.sma((close - lowestLow) / (highestHigh - lowestLow) * 100, smoothK)
d = ta.sma(k, smoothD)
k_cross_up = ta.crossover(k, d) and k < 20
k_cross_down = ta.crossunder(k, d) and k > 80
// ==== MAs ====
ema45 = ta.ema(close, 45)
ma50 = ta.sma(close, 50)
// ==== Condiciones de Entrada ====
longCondition = rsi_1m < 30 and rsi_5m < 30 and k_cross_up and close > ema45 and close > ma50 and close > open
shortCondition = rsi_1m > 70 and rsi_5m > 70 and k_cross_down and close < ema45 and close < ma50 and close < open
// ==== Flechas de señal ====
plotshape(longCondition, title="Señal Compra", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortCondition, title="Señal Venta", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// ==== ALERTAS EN TIEMPO REAL ====
alertcondition(longCondition, title="Alerta de COMPRA", message="¡Señal de COMPRA en {{ticker}}!")
alertcondition(shortCondition, title="Alerta de VENTA", message="¡Señal de VENTA en {{ticker}}!")
// ==== MA Plots ====
plot(ema45, color=color.red, title="EMA 45")
plot(ma50, color=color.green, title="MA 50")
TRAMA - Trend Regularity Adaptive Moving AverageThe TRAMA Line is an advanced, adaptive moving average that adjusts its speed based on market volatility. It’s designed to react quickly to price momentum shifts while filtering out noise — making it perfect for scalping, intraday, and swing trading.
What Makes It Special:
📊 Adaptive Sensitivity: Speeds up during high momentum, slows down during consolidation.
🎯 More responsive than traditional EMAs or SMAs, giving early signals without excessive false alarms.
🔄 Works great as a dynamic trend filter — price staying above = uptrend, below = downtrend.
🧠 Based on price movement regularity, which helps detect clean pullbacks and trend continuations.
In Your Indicator:
TRAMA acts as the main trend line to detect:
Trend direction
Pullbacks
Reversals
Combined with MACD, RSI, and ATR, it helps determine whether a move is likely to continue or reverse.
MAEngineLibLibrary "MAEngineLib"
ma_sma(source, length)
Parameters:
source (float)
length (int)
ma_ema(source, length)
Parameters:
source (float)
length (simple int)
ma_dema(source, length)
Parameters:
source (float)
length (simple int)
ma_tema(source, length)
Parameters:
source (float)
length (simple int)
ma_wma(source, length)
Parameters:
source (float)
length (int)
ma_hma(source, length)
Parameters:
source (float)
length (simple int)
ma_vwma(source, length)
Parameters:
source (float)
length (int)
ma_kijun(length)
Parameters:
length (int)
ma_alma(source, length)
Parameters:
source (float)
length (int)
ma_kama(source, length)
Parameters:
source (float)
length (int)
ma_hullmod(source, length)
Parameters:
source (float)
length (int)
selectMA(type, source, length)
Parameters:
type (string)
source (float)
length (simple int)
21 EMA Multi-Timeframe + VWAPMultiple timeframe EMA for 21 EMA. allows you to see 5, 15, 30m and 1 hr 4hr + daily on one chart. Benefit to this is you can easily see when your means are stacked bearish. And if you are on mobile and only have one screen
Quantum Flow Navigator @DaviddTechQuantum Flow Navigator – DaviddTech
Precision Strategy Builder Powered by Adaptive Filters, Statistical Noise Reduction & Multi-Modal Confirmation
🚀 Bullish Signal : Enter when ALMA, FluxWave, and QuickSilver all confirm bullish trend, with high volume and valid noise filter state.
🔻 Bearish Signal : Enter short when all components align bearishly and filters validate the signal.
🚪 Exit : Automatically managed by dynamic SL/TP or indicator-based reversal logic.
✅ Overview & DaviddTech Methodology
Quantum Flow Navigator is an advanced, multi-component trading system engineered around the strict modular logic of the DaviddTech methodology .
It integrates every core component required for a fully rule-based and signal-driven strategy—baseline, confirmations, volume filter, exit system, and noise filter.
Designed for traders who demand structure, clarity, and data-backed decision-making on 15M, 1H, and 4H charts.
🔍 Indicator Components
Baseline: Adaptive ALMA Filter
Smooth and responsive dynamic trend detection, with momentum validation and optional filled zones for enhanced visual feedback.
Confirmation #1: FluxWave Oscillator
Developed from an enhanced Trendlio concept by @dudeowns , FluxWave uses ALMA-smoothed rate-of-change logic with configurable signal behavior.
Confirmation #2: QuickSilver Band System
Custom breakout engine that maps volatility envelopes using multi-layered deviation bands for clear confirmation of structure breaks and trend direction.
Volume Filter: Normalized Volume Energy
Innovative volume filter inspired by @ceyhun 's work. Filters trades by classifying energy into High, Normal, or Low based on normalized volume context.
Exit System: Dynamic Momentum Stop Loss
Choose from Smart Adaptive, Trailing, Stepped, Percentage, ATR, or Volatility-adjusted logic. Supports TP via risk/reward, ATR multiples, or percentage targets.
Noise Filtration: Quantum Statistical Noise Reduction
Fuses Kalman smoothing with wavelet decomposition to eliminate non-signal noise and improve trade quality and confidence.
🎨 Visual System & Dashboard
🚀/🔻/🚪 Emoji Labels : Buy, sell, and exit trades clearly marked for instant recognition.
Color-Shifting Bars : Reflect FluxWave’s trend bias in real-time.
ALMA Fill Zone : Visual trend envelope between price and ALMA baseline.
QuickSilver Bands : Volatility envelopes with graduated depth for support/resistance awareness.
SL & TP Visuals : Dynamic stop-loss and take-profit zones plotted directly on chart.
Navigator Panel : In-chart dashboard displays real-time trend status, volume energy, noise filter state, signal strength, and active position tracking.
📈 How to Trade with It
Entry Mode Selection : Choose between Combined, ALMA, FluxWave, QuickSilver, or Custom scoring logic.
Final Signals : Trigger only when confirmations align, volume energy is valid, and noise is low.
Dashboard Summary : Use real-time signal display to validate entry strength.
Timeframes : 15M–1H recommended for swing/intraday setups; 5M–15M for automation.
💡 Advanced Features
Entry Strength Scoring: Composite weight of all active components + filters.
Cooldown System: Limits excessive signals in volatile periods.
Multiple Exit Strategies: SL & TP modes with optional indicator-based exits.
Statistical Filtering: Wavelet + Kalman combination optimizes entry confidence.
Full Alert Suite: Covers entries, exits, filter triggers, volume states, and more.
🧠 Suggested Strategy Usage
Wait for full confirmation from ALMA, FluxWave, and QuickSilver.
Ensure volume energy is High and noise filter confirms trend clarity.
Use adaptive SL/TP or indicator-based exits.
Monitor dashboard for live signal strength ≥ threshold.
Use “Balanced” mode for general use; switch to “Aggressive” for tighter signals.
📝 Credits & Originality
Concept based on DaviddTech’s component-driven methodology .
FluxWave Oscillator built as an evolved version of Trendlio with full signal customization — credit @dudeowns .
Volume Energy Filter adapted from the work of @ceyhun .
Noise filtration and system architecture developed independently using Pine Script v6.
All code and logic is original, non-rehashed, and completely refactored to ensure uniqueness.
Quantum Flow Navigator fuses adaptive baselines, confirmation logic, energy-based filters, and statistical refinement into a precision signal engine—optimized for traders who value structure, clarity, and control.
AllMA Trend Radar [trade_lexx]📈 AllMA Trend Radar is your universal trend analysis tool!
📊 What is AllMA Trend Radar?
AllMA Trend Radar is a powerful indicator that uses various types of Moving Averages (MA) to analyze trends and generate trading signals. The indicator allows you to choose from more than 30 different types of moving averages and adjust their parameters to suit your trading style.
💡 The main components of the indicator
📈 Fast and slow moving averages
The indicator uses two main lines:
- Fast MA (blue line): reacts faster to price changes
- Slow MA (red line): smoother, reflects a long-term trend
The combined use of fast and slow MA allows you to get trend confirmation and entry/exit points from the market.
🔄 Wide range of moving averages
There are more than 30 types of moving averages at your disposal:
- SMA: Simple moving average
- EMA: Exponential moving average
- WMA: Weighted moving average
- DEMA: double exponential MA
- TEMA: triple exponential MA
- HMA: Hull Moving Average
- LSMA: Moving average of least squares
- JMA: Eureka Moving Average
- ALMA: Arnaud Legoux Moving Average
- ZLEMA: moving average with zero delay
- And many others!
🔍 Indicator signals
1️⃣ Fast 🆚 Slow MA signals (intersection and ratio of fast and slow MA)
Up/Down signals (intersection)
- Buy (Up) signal:
- What happens: the fast MA crosses the slow MA from bottom to top
- What does the green triangle with the "Buy" label under the candle look
like - What does it mean: a likely upward trend reversal or an uptrend strengthening
- Sell signal (Down):
- What happens: the fast MA crosses the slow MA from top to bottom
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: a likely downtrend reversal or an increase in the downtrend
Greater/Less signals (ratio)
- Buy signal (Greater):
- What happens: the fast MA becomes higher than the slow MA
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: the formation or confirmation of an uptrend
- Sell signal (Less):
- What happens: the fast MA becomes lower than the slow MA
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: the formation or confirmation of a downtrend
2️⃣ Signals ⚡️ Fast MA (fast MA and price)
Up/Down signals (intersection)
- Buy signal (Up Fast):
- What happens: the price crosses the fast MA from bottom to top
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: a short-term price growth signal
- Sell signal (Down Fast):
- What happens: the price crosses the fast MA from top to bottom
- What does it look like: a red triangle with a "Sell" label above the candle
- What does it mean: a short-term price drop signal
Greater/Less signals (ratio)
- Buy signal (Greater Fast):
- What happens: the price is getting higher than the fast MA
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: the price is above the fast MA, which indicates an upward movement
- Sell signal (Less Fast):
- What happens: the price is getting lower than the fast MA
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: the price is under the fast MA, which indicates a downward movement
3️⃣ Signals 🐢 Slow MA (slow MA and price)
Up/Down signals (intersection)
- Buy signal (Up Slow):
- What happens: the price crosses the slow MA from bottom to top
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: a potential medium-term upward trend reversal
- Sell signal (Down Slow):
- What happens: the price crosses the slow MA from top to bottom
- What does it look like: a red triangle with a "Sell" label above the candle
- What does it mean: a potential medium-term downward trend reversal
Greater/Less signals (ratio)
- Buy signal (Greater Slow):
- What happens: the price is getting above the slow MA
- What does it look like: a green triangle with a "Buy" label under the candle
- What does it mean: the price is above the slow MA, which indicates a strong upward movement
- Sell signal (Less Slow):
- What is happening: the price is getting below the slow MA
- What does it look like: a red triangle with a "Sell" mark above the candle
- What does it mean: the price is under the slow MA, which indicates a strong downward movement
🛠 Filters to filter out false signals
1️⃣ Minimum distance between the signals
- What it does: sets the minimum number of candles between signals of the same type
- Why it is needed: it prevents the appearance of too frequent signals, especially during periods of high volatility
- How to set it up: Set a different value for each signal type (default: 3-5 bars)
- Example: if the value is 3 for Up/Down signals, after the buy signal appears, the next buy signal may appear no earlier than 3 bars later
2️⃣ Advanced indicator filters
🔍 RSI Filter
- What it does: Checks the Relative Strength Index (RSI) value before generating a signal
- Why it is needed: it helps to avoid countertrend entries and catch reversal points
- How to set up:
- For buy signals (🔋 Buy): set the RSI range, usually in the oversold zone (for example, 1-30)
- For sell signals (🪫 Sell): set the RSI range, usually in the overbought zone (for example, 70-100)
- Example: if the RSI = 25 (in the range 1-30), the buy signal will be confirmed
📊 MFI Filter (Cash Flow Index)
- What it does: analyzes volumes and the direction of price movement
- Why it is needed: confirms signals with data on the activity of cash flows
- How to set up:
- For buy signals (🔋 Buy): set the MFI range in the oversold zone (for example, 1-25)
- For sell signals (🪫 Sell): set the MFI range in the overbought zone (for example, 75-100)
- Example: if MFI = 80 (in the range of 75-100), the sell signal will be confirmed
📈 Stochastic Filter
- What it does: analyzes the position of the current price relative to the price range
- Why it is needed: confirms signals based on overbought/oversold conditions
- How to configure:
- You can configure the K Length, D Length and Smoothing parameters
- For buy signals (🔋 Buy): set the stochastic range in the oversold zone (for example, 1-20)
- For sell signals (🪫 Sell): set the stochastic range in the overbought zone (for example, 80-100)
- Example: if stochastic = 15 (is in the range of 1-20), the buy signal will be confirmed
🔌 Connecting to trading strategies
The indicator provides various connectors to connect to your trading strategies.:
1️⃣ Individual connectors for each type of signal
- 🔌Fast vs Slow Up/Down MA Signal🔌: signals for the intersection of fast and slow MA
- 🔌Fast vs Slow Greater/Less MA Signal🔌: signals of the ratio of fast and slow MA
- 🔌Fast Up/Down MA Signal🔌: signals of the intersection of price and fast MA
- 🔌Fast Greater/Less MA Signal🔌: signals of the ratio of price and fast MA
- 🔌Slow Up/Down MA Signal🔌: signals of the intersection of price and slow MA
- 🔌Slow Greater/Less MA Signal🔌: Price versus slow MA signals
2️⃣ Combined connectors
- 🔌Combined Up/Down MA Signal🔌: combines all the crossing signals (Up/Down)
- 🔌Combined Greater/Less MA Signal🔌: combines all the signals of the ratio (Greater/Less)
- 🔌Combined All MA Signals🔌: combines all signals (Up/Down and Greater/Less)
❗️ All connectors return values:
- 1: buy signal
- -1: sell signal
- 0: no signal
📚 How to start using AllMA Trend Radar
1️⃣ Selection of types of moving averages
- Add an indicator to the chart
- Select the type and period for the fast MA (default: DEMA with a period of 14)
- Select the type and period for the slow MA (default: SMA with a period of 14)
- Experiment with different types of MA to find the best combination for your trading style
2️⃣ Signal settings
- Turn on the desired signal types (Up/Down, Greater/Less)
- Set the minimum distance between the signals
- Activate and configure the necessary filters (RSI, MFI, Stochastic)
3️⃣ Checking on historical data
- Analyze how the indicator works based on historical data
- Pay attention to the accuracy of the signals and the presence of false alarms
- Adjust the settings if necessary
4️⃣ Introduction to the trading strategy
- Decide which signals will be used to enter the position.
- Determine which signals will be used to exit the position.
- Connect the indicator to your trading strategy through the appropriate connectors
🌟 Practical application examples
Scalping strategy
- Fast MA: TEMA with a period of 8
- Slow MA: EMA with a period of 21
- Active signals: Fast MA Up/Down
- Filters: RSI (range 1-40 for purchases, 60-100 for sales)
- Signal spacing: 3 bars
Strategy for day trading
- Fast MA: TEMA with a period of 10
- Slow MA: SMA with a period of 20
- Active signals: Fast MA Up/Down and Fast vs Slow Greater/Less
- Filters: MFI (range 1-25 for purchases, 75-100 for sales)
- Signal spacing: 5 bars
Swing Trading Strategy
- Fast MA: DEMA with a period of 14
- Slow MA: VWMA with a period of 30
- Active signals: Fast vs Slow Up/Down and Slow MA Greater/Less
- Filters: Stochastic (range 1-20 for purchases, 80-100 for sales)
- Signal spacing: 8 bars
A strategy for positional trading
- Fast MA: HMA with a period of 21
- Slow MA: SMA with a period of 50
- Active signals: Slow MA Up/Down and Fast vs Slow Greater/Less
- Filters: RSI and MFI at the same time
- The distance between the signals: 10 bars
💡 Tips for using AllMA Trend Radar
1. Select the types of MA for market conditions:
- For trending markets: DEMA, TEMA, HMA (fast MA)
- For sideways markets: SMA, WMA, VWMA (smoothed MA)
- For volatile markets: KAMA, AMA, VAMA (adaptive MA)
2. Combine different types of signals:
- Up/Down signals work better when moving from a sideways trend to a directional
one - Greater/Less signals are optimal for fixing a stable trend
3. Use filters effectively:
- The RSI filter works great in trending markets
- MFI filter helps to confirm the strength of volume movement
- Stochastic filter works well in lateral ranges
4. Adjust the minimum distance between the signals:
- Small values (2-3 bars) for short-term trading
- Average values (5-8 bars) for medium-term trading
- Large values (10+ bars) for long-term trading
5. Use combination connectors:
- For more reliable signals, connect the indicator through the combined connectors
💰 With the AllMA Trend Radar indicator, you get a universal trend analysis tool that can be customized for any trading style and timeframe. The combination of different types of moving averages and advanced filters allows you to significantly improve the accuracy of signals and the effectiveness of your trading strategy!
📊 TrendTracker Pro by Pinku📊 TrendTracker Pro by Pinku - A Powerful Trend Detection Tool 🚀
TrendTracker Pro by Pinku is a cutting-edge trading indicator designed to help traders identify the market’s trend with precision and clarity. Whether you're a beginner or an experienced trader, this tool simplifies the process of determining whether the market is in an uptrend, downtrend, or sideways.
🔍 Key Features:
Uptrend Detection 🔼: This indicator highlights when the market is moving upwards, signaling a potential buy opportunity.
Downtrend Detection 🔽: Identifies a downtrend in the market, indicating a possible selling opportunity.
Sideways Market ⏸️: The indicator also recognizes when the market is consolidating or moving sideways, allowing you to avoid risky trades during uncertain market conditions.
Customizable Settings: Adjust the Fast EMA and Slow EMA lengths, along with the sideways buffer percentage to fine-tune the trend detection based on your preferred trading strategy.
Table Display: The trend information is displayed in a clear and concise table on your chart, making it easy to track the market's direction at a glance.
Multiple Positions: You can choose where you want to position the trend table on your chart (Top Left, Top Right, Bottom Left, Bottom Right).
📈 How It Works:
The indicator uses a dual EMA strategy to detect market trends. By comparing the Fast EMA (20) and Slow EMA (50), it calculates the trend direction.
A buffer zone is applied to determine sideways market conditions when the difference between the two EMAs is minimal.
The result is a dynamic, easy-to-read trend table that updates in real-time as market conditions change.
💡 Perfect for:
Swing traders who want to capitalize on clear market trends.
Scalpers looking for precise and fast trend signals.
Trend-following traders who rely on moving averages and other technical indicators to make informed trading decisions.
New traders who are still learning how to identify trends and make profitable trades.
Why Use TrendTracker Pro?
In today’s fast-moving market, being able to identify trends quickly and accurately is crucial for success. TrendTracker Pro by Pinku streamlines this process by providing a simple yet powerful trend detection tool that can be used on any chart and time frame.
💥 Get Started Now: Simply add TrendTracker Pro by Pinku to your TradingView chart, adjust the settings according to your preference, and start seeing the market trends in real-time. Let it guide you to make smarter, more informed trading decisions.
Disclaimer:
Trading involves risk. Always do your own research and make decisions based on your risk tolerance and trading strategy.
This indicator does not guarantee profits and should be used as part of a broader risk management strategy.
[FSSN] MA CrossOverview
This indicator provides a flexible and customizable tool for visualizing moving average crossovers, a classic technical analysis technique used to identify potential trend changes and generate trading signals. It plots two independent moving averages on the chart and clearly marks the points where they cross.
Key Features
Dual Moving Averages: Plots both a short-term (faster) and a long-term (slower) moving average.
Multiple MA Types: Offers a wide selection of popular moving average calculation types for each line independently:
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
WMA (Weighted Moving Average)
HullMA (Hull Moving Average)
VWMA (Volume-Weighted Moving Average)
RMA1 (Rolling Moving Average - similar to Wilder's Smoothing)
TEMA (Triple Exponential Moving Average)
Customizable Lengths: Allows users to define the lookback period (length) for both the short and long moving averages.
Clear Crossover Signals: Automatically detects and plots a distinct visual marker (a cross) directly on the chart whenever the short MA crosses above or below the long MA.
Source Price: Utilizes the closing price ( close ) of each bar as the source data for all moving average calculations.
How It Works
Input Configuration: The user selects the desired calculation type (e.g., EMA, SMA, HMA) and sets the length (period) for both the short-term and long-term moving averages via the indicator settings.
Calculation: The script calculates the chosen moving average values for each bar based on the selected types, lengths, and the closing price ( close ). It correctly computes specialized types like the Hull Moving Average (HMA) and Triple Exponential Moving Average (TEMA) according to their respective formulas.
Plotting MAs: The calculated short-term MA and long-term MA values are plotted as continuous lines on the price chart (default colors are orange for short MA and green for long MA).
Crossover Detection: The script uses the ta.cross() function to identify bars where the short MA value crosses over or under the long MA value.
Plotting Cross Signals: When a crossover occurs, a visual marker (default: blue cross, style plot.style_cross ) is plotted. Note: The vertical position of this cross marker is placed at the level of the short Simple Moving Average (SMA) calculated with the shortlen input at the time of the crossover, regardless of the MA type selected for the plotted short MA line ( short_avg ).
Inputs / Settings
Short MA Length: Defines the lookback period for the faster moving average (Default: 7).
Long MA Length: Defines the lookback period for the slower moving average (Default: 25).
Short Media selector: Dropdown menu to select the calculation type for the short MA (Default: EMA). Options: SMA, EMA, WMA, HullMA, VWMA, RMA, TEMA.
Long Media selector: Dropdown menu to select the calculation type for the long MA (Default: EMA). Options: SMA, EMA, WMA, HullMA, VWMA, RMA, TEMA.
Visualization
Short MA Line: Represents the faster moving average (Default: Orange).
Long MA Line: Represents the slower moving average (Default: Green).
Cross Marker: Appears on bars where the Short MA crosses the Long MA (Default: Blue Cross). A cross above the Long MA typically suggests bullish momentum, while a cross below suggests bearish momentum.
Potential Use Cases
Trend Identification: When the short MA is above the long MA, it generally indicates an uptrend. When below, it suggests a downtrend.
Signal Generation: Crossovers can be used as potential entry or exit signals (e.g., buy when short MA crosses above long MA, sell when it crosses below). Always use in conjunction with other analysis methods.
Strategy Development: Forms the basis for MA crossover trading strategies. The flexibility in MA types allows tuning for different market conditions or asset characteristics (e.g., using faster MAs like EMA/TEMA for more responsive signals, or smoother MAs like SMA/WMA for longer-term trends).