Laguerre-Kalman Adaptive Filter | AlphaNattLaguerre-Kalman Adaptive Filter |AlphaNatt
A sophisticated trend-following indicator that combines Laguerre polynomial filtering with Kalman optimal estimation to create an ultra-smooth, low-lag trend line with exceptional noise reduction capabilities.
"The perfect trend line adapts to market conditions while filtering out noise - this indicator achieves both through advanced mathematical techniques rarely seen in retail trading."
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 KEY FEATURES
Dual-Filter Architecture: Combines two powerful filtering methods for superior performance
Adaptive Volatility Adjustment: Automatically adapts to market conditions
Minimal Lag: Laguerre polynomials provide faster response than traditional moving averages
Optimal Noise Reduction: Kalman filtering removes market noise while preserving trend
Clean Visual Design: Color-coded trend visualization (cyan/pink)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 THE MATHEMATICS
1. Laguerre Filter Component
The Laguerre filter uses a cascade of four all-pass filters with a single gamma parameter:
4th order IIR (Infinite Impulse Response) filter
Single parameter (gamma) controls all filter characteristics
Provides smoother output than EMA with similar lag
Based on Laguerre polynomials from quantum mechanics
2. Kalman Filter Component
Implements a simplified Kalman filter for optimal estimation:
Prediction-correction algorithm from aerospace engineering
Dynamically adjusts based on estimation error
Provides mathematically optimal estimate of true price trend
Reduces noise while maintaining responsiveness
3. Adaptive Mechanism
Monitors market volatility in real-time
Adjusts filter parameters based on current conditions
More responsive in trending markets
More stable in ranging markets
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ INDICATOR SETTINGS
Laguerre Gamma (0.1-0.99): Controls filter smoothness. Higher = smoother but more lag
Adaptive Period (5-100): Lookback for volatility calculation
Kalman Noise Reduction (0.1-2.0): Higher = more noise filtering
Trend Threshold (0.0001-0.01): Minimum change to register trend shift
Recommended Settings:
Scalping: Gamma: 0.6, Period: 10, Noise: 0.3
Day Trading: Gamma: 0.8, Period: 20, Noise: 0.5 (default)
Swing Trading: Gamma: 0.9, Period: 30, Noise: 0.8
Position Trading: Gamma: 0.95, Period: 50, Noise: 1.2
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 TRADING SIGNALS
Primary Signals:
Cyan Line: Bullish trend - price above filter and filter ascending
Pink Line: Bearish trend - price below filter or filter descending
Color Change: Potential trend reversal point
Entry Strategies:
Trend Continuation: Enter on pullback to filter line in trending market
Trend Reversal: Enter on color change with volume confirmation
Breakout: Enter when price crosses filter with momentum
Exit Strategies:
Exit long when line turns from cyan to pink
Exit short when line turns from pink to cyan
Use filter as trailing stop in strong trends
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✨ ADVANTAGES OVER TRADITIONAL INDICATORS
Vs. Moving Averages:
Significantly less lag while maintaining smoothness
Adaptive to market conditions
Better noise filtering
Vs. Standard Filters:
Dual-filter approach provides optimal estimation
Mathematical foundation from signal processing
Self-adjusting parameters
Vs. Other Trend Indicators:
Cleaner signals with fewer whipsaws
Works across all timeframes
No repainting or lookahead bias
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎓 MATHEMATICAL BACKGROUND
The Laguerre filter was developed by John Ehlers, applying Laguerre polynomials (used in quantum mechanics) to financial markets. These polynomials provide an elegant solution to the lag-smoothness tradeoff that plagues traditional moving averages.
The Kalman filter, developed by Rudolf Kalman in 1960, is used in everything from GPS systems to spacecraft navigation. It provides the mathematically optimal estimate of a system's state given noisy measurements.
By combining these two approaches, this indicator achieves what neither can alone: a smooth, responsive trend line that adapts to market conditions while filtering out noise.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 TIPS FOR BEST RESULTS
Confirm with Volume: Strong trends should have increasing volume
Multiple Timeframes: Use higher timeframe for trend, lower for entry
Combine with Momentum: RSI or MACD can confirm filter signals
Market Conditions: Adjust noise parameter based on market volatility
Backtesting: Always test settings on your specific instrument
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT NOTES
No indicator is perfect - always use proper risk management
Best suited for trending markets
May produce false signals in choppy/ranging conditions
Not financial advice - for educational purposes only
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 CONCLUSION
The Laguerre-Kalman Adaptive Filter represents a significant advancement in technical analysis, bringing institutional-grade mathematical techniques to retail traders. Its unique combination of polynomial filtering and optimal estimation provides a clean, reliable trend-following tool that adapts to changing market conditions.
Whether you're scalping on the 1-minute chart or position trading on the daily, this indicator provides clear, actionable signals with minimal false positives.
"In the world of technical analysis, the edge comes from using better mathematics. This indicator delivers that edge."
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Developed by AlphaNatt | Professional Quantitative Trading Tools
Version: 1.0
Last Updated: 2025
Pine Script: v6
License: Open Source
Not financial advice. Always DYOR
趨勢分析
Savitzky-Golay Hampel Filter | AlphaNattSavitzky-Golay Hampel Filter | AlphaNatt
A revolutionary indicator combining NASA's satellite data processing algorithms with robust statistical outlier detection to create the most scientifically advanced trend filter available on TradingView.
"This is the same mathematics that processes signals from the Hubble Space Telescope and analyzes data from the Large Hadron Collider - now applied to financial markets."
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 SCIENTIFIC PEDIGREE
Savitzky-Golay Filter Applications:
NASA: Satellite telemetry and space probe data processing
CERN: Particle physics data analysis at the LHC
Pharmaceutical: Chromatography and spectroscopy analysis
Astronomy: Processing signals from radio telescopes
Medical: ECG and EEG signal processing
Hampel Filter Usage:
Aerospace: Cleaning sensor data from aircraft and spacecraft
Manufacturing: Quality control in precision engineering
Seismology: Earthquake detection and analysis
Robotics: Sensor fusion and noise reduction
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🧬 THE MATHEMATICS
1. Savitzky-Golay Filter
The SG filter performs local polynomial regression on data points:
Fits a polynomial of degree n to a sliding window of data
Evaluates the polynomial at the center point
Preserves higher moments (peaks, valleys) unlike moving averages
Maintains derivative information for true momentum analysis
Originally published in Analytical Chemistry (1964)
Mathematical Properties:
Optimal smoothing in the least-squares sense
Preserves statistical moments up to polynomial order
Exact derivative calculation without additional lag
Superior frequency response vs traditional filters
2. Hampel Filter
A robust outlier detector based on Median Absolute Deviation (MAD):
Identifies outliers using robust statistics
Replaces spurious values with polynomial-fitted estimates
Resistant to up to 50% contaminated data
MAD is 1.4826 times more robust than standard deviation
Outlier Detection Formula:
|x - median| > k × 1.4826 × MAD
Where k is the threshold parameter (typically 3 for 99.7% confidence)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💎 WHY THIS IS SUPERIOR
vs Moving Averages:
Preserves peaks and valleys (critical for catching tops/bottoms)
No lag penalty for smoothness
Maintains derivative information
Polynomial fitting > simple averaging
vs Other Filters:
Outlier immunity (Hampel component)
Scientifically optimal smoothing
Preserves higher-order features
Used in billion-dollar research projects
Unique Advantages:
Feature Preservation: Maintains market structure while smoothing
Spike Immunity: Ignores false breakouts and stop hunts
Derivative Accuracy: True momentum without additional indicators
Scientific Validation: 60+ years of academic research
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ PARAMETER OPTIMIZATION
1. Polynomial Order (2-5)
2 (Quadratic): Maximum smoothing, gentle curves
3 (Cubic): Balanced smoothing and responsiveness (recommended)
4-5 (Higher): More responsive, preserves more features
2. Window Size (7-51)
Must be odd number
Larger = smoother but more lag
Formula: 2×(desired smoothing period) + 1
Default 21 = analyzes 10 bars each side
3. Hampel Threshold (1.0-5.0)
1.0: Aggressive outlier removal (68% confidence)
2.0: Moderate outlier removal (95% confidence)
3.0: Conservative outlier removal (99.7% confidence) (default)
4.0+: Only extreme outliers removed
4. Final Smoothing (1-7)
Additional WMA smoothing after filtering
1 = No additional smoothing
3-5 = Recommended for most timeframes
7 = Ultra-smooth for position trading
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 TRADING STRATEGIES
Signal Recognition:
Cyan Line: Bullish trend with positive derivative
Pink Line: Bearish trend with negative derivative
Color Change: Trend reversal with polynomial confirmation
1. Trend Following Strategy
Enter when price crosses above cyan filter
Exit when filter turns pink
Use filter as dynamic stop loss
Best in trending markets
2. Mean Reversion Strategy
Enter long when price touches filter from below in uptrend
Enter short when price touches filter from above in downtrend
Exit at opposite band or filter color change
Excellent for range-bound markets
3. Derivative Strategy (Advanced)
The SG filter preserves derivative information
Acceleration = second derivative > 0
Enter on positive first derivative + positive acceleration
Exit on negative second derivative (momentum slowing)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 PERFORMANCE CHARACTERISTICS
Strengths:
Outlier Immunity: Ignores stop hunts and flash crashes
Feature Preservation: Catches tops/bottoms better than MAs
Smooth Output: Reduces whipsaws significantly
Scientific Basis: Not curve-fitted or optimized to markets
Considerations:
Slight lag in extreme volatility (all filters have this)
Requires odd window sizes (mathematical requirement)
More complex than simple moving averages
Best with liquid instruments
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 SCIENTIFIC BACKGROUND
Savitzky-Golay Publication:
"Smoothing and Differentiation of Data by Simplified Least Squares Procedures"
- Abraham Savitzky & Marcel Golay
- Analytical Chemistry, Vol. 36, No. 8, 1964
Hampel Filter Origin:
"Robust Statistics: The Approach Based on Influence Functions"
- Frank Hampel et al., 1986
- Princeton University Press
These techniques have been validated in thousands of scientific papers and are standard tools in:
NASA's Jet Propulsion Laboratory
European Space Agency
CERN (Large Hadron Collider)
MIT Lincoln Laboratory
Max Planck Institutes
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 ADVANCED TIPS
News Trading: Lower Hampel threshold before major events to catch spikes
Scalping: Use Order=2 for maximum smoothness, Window=11 for responsiveness
Position Trading: Increase Window to 31+ for long-term trends
Combine with Volume: Strong trends need volume confirmation
Multiple Timeframes: Use daily for trend, hourly for entry
Watch the Derivative: Filter color changes when first derivative changes sign
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ IMPORTANT NOTICES
Not financial advice - educational purposes only
Past performance does not guarantee future results
Always use proper risk management
Test settings on your specific instrument and timeframe
No indicator is perfect - part of complete trading system
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🏆 CONCLUSION
The Savitzky-Golay Hampel Filter represents the pinnacle of scientific signal processing applied to financial markets. By combining polynomial regression with robust outlier detection, traders gain access to the same mathematical tools that:
Guide spacecraft to other planets
Detect gravitational waves from black holes
Analyze particle collisions at near light-speed
Process signals from deep space
This isn't just another indicator - it's rocket science for trading .
"When NASA needs to separate signal from noise in billion-dollar missions, they use these exact algorithms. Now you can too."
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Developed by AlphaNatt
Version: 1.0
Release: 2025
Pine Script: v6
"Where Space Technology Meets Market Analysis"
Not financial advice. Always DYOR
INTRADAY BEST SETUP Best Intraday Usage Guide
This indicator combines RSI (with MBL line), MACD, Divergence Detection, and Sentiment Histogram to give high-accuracy intraday signals.
🔑 Timeframes Recommended:
30 Minutes → Swing Intraday Confirmation
15 Minutes → Medium-term Intraday Signals
3 Minutes → Fast Scalping & Early Entries
🚦 Trading Rules
✅ Buy Signal Conditions:
MACD Line crosses above Signal Line (Bullish crossover).
MBL Line (yellow line) is acting as support and price is trending above it.
MACD Zero Line Cross: If MACD goes above the 0 line, momentum is strongly bullish.
❌ Sell Signal Conditions:
MACD Line crosses below Signal Line (Bearish crossover).
MBL Line acts as resistance and price is staying below it.
MACD Zero Line Cross: If MACD goes below the 0 line, momentum is strongly bearish.
🎯 Extra Confirmation
RSI Zones:
Above 60 = Bullish zone.
Below 40 = Bearish zone.
Divergence Signals:
Bullish divergence = Possible trend reversal upwards.
Bearish divergence = Possible trend reversal downwards.
👉 In short:
Use this indicator on 30m, 15m, 3m charts for intraday.
Look for MACD crossover + Zero line cross, but always confirm with MBL direction and RSI zones.
Divergence helps you catch early reversals.
TRADE ORBIT:Dual MACD + HEMA TrendThis indicator combines dual MACD histograms with a Harmonic EMA (HEMA) trend overlay to provide comprehensive trend analysis, buy/sell signals, and dynamic support/resistance zones.
Features:
Dual MACD System:
Background Coloring: Uses MACD(100,200,50) histogram to color the chart background:
Green = bullish momentum
Red = bearish momentum
Buy/Sell Signals: Uses MACD(34,144,9) histogram crossovers for trade signals:
BUY Signal: Histogram crosses above zero and background is green
SELL Signal: Histogram crosses below zero and background is red
Signals are plotted as labels on the chart.
HEMA Trend Overlay:
Uses short and long HEMA lines (default 20 & 40) to detect trend direction.
Colors bars dynamically based on trend:
Green = bullish
Red = bearish
Gray = neutral or indecisive
Provides gradient fill between HEMA lines to visually highlight trend strength.
Trend Boxes & Markers:
Bullish/bearish boxes highlight areas of potential support/resistance based on HEMA crossovers.
Markers (▲ / ▼) appear when the price interacts with trend boxes for easy visual confirmation.
Alerts:
HEMA crossovers (bullish/bearish)
Price tests of bullish/bearish boxes
Optionally, can add alerts for MACD BUY/SELL signals.
Visualization:
MACD histograms plotted as columns for reference
Dynamic bar colors reflecting HEMA trend
Combined view gives a multi-layered trend analysis on a single chart.
Use Case:
Ideal for traders who want to filter trades by overall trend (background MACD), time precise entries/exits (MACD signals), and confirm trend strength (HEMA overlay) in a single indicator.
BTC 1D — Trend START/END Signals (clean, no repaint)
This strategy is designed primarily for BTC on the daily (1D) timeframe in TradingView.
BUY (start of uptrend)
Fast EMA is above Slow EMA.
Price breaks above the previous Donchian high.
Optional filters (if enabled): volume surge and strong momentum/RSI.
Only one BUY per uptrend—no additional buys until a SELL occurs.
SELL (end of uptrend)
Price falls below the previous Donchian low, or
Price drops below the Slow EMA, or
Momentum flips bearish (DI− > DI+ or RSI ≤ threshold).
One SELL marks the end of the uptrend.
TEWMA - [JTCAPITAL]Triple Exponential Weighted Moving Average is a modified way to use Weighted Triple Moving Averages for Trend-Following
The indicator works by calculating in the following steps:
1. The length gets multiplied by the multi to get the second length.
2. The Triple Exponential Moving Average gets calculated using the Weighted Moving Average as input.
3. This calculation is done over the first and the second length.
4. The average from both calculations is taken and used for buy and sell conditions.
--Buy and sell conditions--
-The buy and sell conditions are defined by the average of both indicators having a higher value than the previous bar.
-Average higher than the previous average = Long
-Average lower than the previous average = Short
--Features and Parameters--
-Allows the usage of different sources
-Allows the changing of the calculation length
-Allows the changing of the multiplier to determine the second length
-Allows the use of alerts for signal changes
--Details--
This script uses the result of the calculation of the Weighted Moving Averages as inputs for the Triple Moving averages. The usage of 2 separate calculations and using the average of them for trend determination is to allow for faster entries and exits while limiting potential false signals.
Enjoy!
Stockbee ComboBullCustom indicator for identifying stocks that meet the ComboBull criteria. This can be used as a standalone indicator or use it to screen for stocks in Pine Screener.
VWAP Pro v6 (Color + Bands)AI helped me code VWAP
When price goes above VWAP line, VWAP line will turn green to indicate buyers are in control.
When price goes below VWAP line, VWAP line will turn red to indicate sellers are in control.
VWAP line stays blue when price is considered fair value.
Trend Following S/R Fibonacci StrategyTrend Following S/R Fibonacci Strategy
Trend Following S/R Fibonacci Strategy
Range Trading Strategy
This indicator automatically marks the intraday trading range defined by the first four hours of the New York session (6:00 AM to 10:00 AM EST/EDT).
It calculates the highest high and lowest low within that window on a user-selected calculation timeframe, then projects those levels forward as horizontal lines that remain visible across any chart timeframe.
The lines can be displayed in real time while the window is forming or locked once the session ends, and optional price labels and background shading make the range easy to track.
Traders can use these reference levels to monitor potential breakout or reversal zones, manage risk, and plan entries/exits relative to the early session’s defined support and resistance.
For training check this video youtu.be
Composite Sentiment Indicator (SPY/QQQ/SOXX + VixFix)# Multi-Index Composite Sentiment Indicator
A comprehensive sentiment indicator that works across SPY, QQQ, SOXX, and custom symbols. Combines volatility, options flow, macro factors, technicals, and seasonality into a single z-score composite.
## What It Does
Takes multiple market sentiment inputs (VIX, put/call ratios, breadth, yields, etc.) and smooshes them into one normalized line. When the composite is high = markets getting spooked. When it's low = markets getting complacent.
## Key Features
- **Multi-Index Support**: Automatically adapts for SPY (uses VIX), QQQ (uses VXN), SOXX (uses VixFix), or custom symbols
- **VixFix Integration**: Larry Williams' VixFix for indices without dedicated VIX measures
- **Signal MA**: Choose from SMA/EMA/WMA/HMA/TEMA/DEMA with color coding (red above MA = risk-on, green below = risk-off)
- **September Focus**: Built-in seasonality weighting for September weakness patterns
- **Comprehensive Components**: Volatility, options sentiment, macro factors, technicals, and sector-specific metrics
## How to Use
**Basic Setup:**
1. Pick your index (SPY/QQQ/SOXX)
2. Choose signal MA type and length (EMA 21 is a good start)
3. Watch for extreme readings and MA crossovers
**Color Signals:**
- Red composite = above signal MA = bearish sentiment
- Green composite = below signal MA = bullish sentiment
- Extreme high readings (red background) = potential tops
- Extreme low readings (green background) = potential bottoms
**For Different Indices:**
- **QQQ**: Uses NASDAQ VIX (VXN) when available, falls back to VixFix
- **SOXX**: Includes semiconductor cycle indicators, uses VixFix for volatility
- **Custom**: Adapts automatically, relies on VixFix and general market metrics
## Components Included
**Volatility**: VIX/VXN/VixFix, term structure, historical vol
**Options**: Put/call ratios, SKEW index
**Macro**: DXY, 10Y yields, yield curve, TIPS spreads
**Technical**: RSI deviation, momentum
**Seasonality**: September effects, quad witching, month-end patterns
**Breadth**: S&P 500 and NASDAQ breadth measures
## Pro Tips
- Works well on Daily Timeframe
- September gets extra weight automatically - watch for August setup signals
- Keltner envelope breaks often mark sentiment exhaustion points
- Use alerts for extreme readings and MA crossovers
Works best when you understand that sentiment extremes often mark turning points, not continuation signals. High readings don't mean "keep shorting" - they mean "start looking for reversal setups."
## Settings Worth Tweaking
- Signal MA type/length for your timeframe
- Component weights based on what matters for your index
- Envelope multipliers for your risk tolerance
- VixFix parameters if default doesn't fit your symbol's volatility
The table shows all current component readings so you can see what's driving the signal. Good for context and debugging weird readings.
TEMA Ribbon 9/13/15/21 – Smooth trend shifts, less lag, clearer“TEMA Ribbon 9/13/15/21 – Smooth trend shifts, less lag, clearer bias.”
Plots four Triple Exponential Moving Averages (9, 13, 15, 21) with shaded zones for quick trend visualization. Helps identify short- vs. medium-term momentum shifts with reduced lag compared to standard EMAs.
Recommended Usage:
Best applied on 5M–1H intraday charts for momentum and trend confirmation.
Use the 9 & 13 TEMA for short-term momentum shifts.
Use the 15 & 21 TEMA for medium-term bias.
Look for crossovers and alignment (all fast TEMAs above/below slow ones) to confirm bullish or bearish conditions.
Shaded zones help visualize when the short- and medium-term trends converge or diverge, signaling potential entry or exit points.
Combine the TEMA Ribbon with VWAP or session-based trading (e.g., London/New York Killzones) to filter signals.
Trade only in the direction of VWAP bias (price above VWAP → favor longs, below → favor shorts).
Within Killzones, use TEMA alignment (9/13 above 15/21 = bullish trend, or opposite for bearish) as confirmation before entries.
This reduces false signals and locks entries to periods of high liquidity and volatility, where TEMA shines.
//@version=5
indicator("TEMA 9/13/15/21", overlay=true)
// Quelle
src = close
// Funktion: TEMA
tema(src, length) =>
e1 = ta.ema(src, length)
e2 = ta.ema(e1, length)
e3 = ta.ema(e2, length)
3.0 * e1 - 3.0 * e2 + e3
// TEMA-Berechnung
t9 = tema(src, 9)
t13 = tema(src, 13)
t15 = tema(src, 15)
t21 = tema(src, 21)
// Plots
p9 = plot(t9, "TEMA 9", color=color.teal, linewidth=2)
p13 = plot(t13, "TEMA 13", color=color.aqua, linewidth=2)
p15 = plot(t15, "TEMA 15", color=color.orange, linewidth=2)
p21 = plot(t21, "TEMA 21", color=color.fuchsia, linewidth=2)
// Einfaches Fill (zwischen schnellstem und langsamstem)
fill(p9, p21, color=color.new(color.gray, 85))
fill(p13, p15, color=color.new(color.gray, 92))
Auto-Anchored MA with Deviation BandsAuto-Anchored MA with Deviation Bands
✨ Features
📈 Auto-Anchored MA: Calculates moving averages (EMA, SMA, EWMA, WMA, VWAP, TEMA) anchored to user-defined periods (Hour, Day, Week, etc.).📏 Deviation Bands: Plots upper/lower bands using Percentage or Standard Deviation modes for volatility analysis.⚙️ Customizable Timeframes: Choose anchor periods from Hour to Year for flexible trend analysis.🎨 Visuals: Displays MA and bands with gradient fills, customizable colors, and adjustable display bars.⏱️ Countdown Table: Shows bars since the last anchor for easy tracking.🛠️ Smoothing: Applies smoothing to bands for cleaner visuals.
🛠️ How to Use
Add to Chart: Apply the indicator on TradingView.
Configure Inputs:
Anchor Settings: Select anchor period (e.g., Day, Week).
MA Settings: Choose MA type (e.g., VWAP, TEMA).
Deviation Settings: Set deviation mode (Percentage/Std Dev) and multipliers.
Display Settings: Adjust bars to display, colors, and gradient fill.
Analyze: View MA, deviation bands, and countdown table on the chart.
Track Trends: Use bands as dynamic support/resistance and monitor anchor resets.
🎯 Why Use It?
Dynamic Analysis: Auto-anchors MA to key timeframes for adaptive trend tracking.
Volatility Insight: Deviation bands highlight potential breakouts or reversals.
Customizable: Tailor MA type, timeframe, and visuals to your trading style.
User-Friendly: Clear visuals and countdown table simplify analysis.
📝 Notes
Ensure sufficient bars for accurate MA and deviation calculations.
Gradient fill enhances readability but can be disabled for simplicity.
Best used with complementary indicators like RSI or Bollinger Bands for robust strategies.
Happy trading! 🚀📈
Valid Monthly LevelsValid Monthly Levels (No Sweeps) + Smart Labels
This tool automatically plots the highs and lows of each completed monthly candle and tracks their validity in real time. A level is considered valid until it has been swept (price trades strictly beyond that high or low). Once swept, the line and label can either be removed or dimmed depending on your settings.
Key features:
Monthly highs and lows: Each month’s range is marked with horizontal levels that extend forward.
Valid vs. swept logic: Levels are only valid until breached; swept levels can be hidden or kept as dotted/grey lines.
Smart labels: Each level is labeled with the month and year (e.g., Sep ’25 H/L). On higher timeframes, labels sit at the candle; on lower timeframes, labels automatically shift to the right edge so they don’t disappear off-screen.
Customizable appearance: Choose colors for highs, lows, and swept levels; adjust line styles; and limit how many past months are shown.
Clutter control: Cap the maximum number of labels, so your chart stays readable even on small intraday timeframes.
This indicator is useful for traders who track monthly supply/demand extremes, liquidity sweeps, and higher-timeframe context when executing on lower timeframes.
Higher Lows, Lower Highs & Failures (updated)Use the Big triangles bullish or bearish, stop at the previous bull or bear indication, hold until the opposite indication. Can't guarantee anything. This is built for the 1m chart
TRADE ORBIT:Dual MACD Histogram Background + Buy/SellDescription:
This indicator combines two MACD systems to provide clear trend, buy/sell signals, and identifies potential discount and premium zones for smarter entries and exits.
Features:
MACD #1 (100, 200, 50) – Trend & Background Coloring
Histogram > 0 → Green background (Bullish trend)
Histogram < 0 → Red background (Bearish trend)
MACD #2 (34, 144, 9) – Buy/Sell Signals
Buy Signal: Histogram crosses above zero and MACD #1 background is green
Sell Signal: Histogram crosses below zero and MACD #1 background is red
Signals are plotted as tiny labels directly on the chart
Discount & Premium Zones
Discount Zone: Price below MACD #1 slow EMA → highlighted in green
Premium Zone: Price above MACD #1 slow EMA → highlighted in red
Helps identify “cheap” (potential buy) and “expensive” (potential sell) areas relative to trend
Reference Plots (Optional)
MACD #1 & #2 histograms plotted as columns for visual confirmation
Usage:
Use MACD #1 background to identify the prevailing trend.
Wait for MACD #2 cross signals aligned with trend for buy/sell confirmation.
Discount and premium zones help time entries and exits more efficiently.
Ideal For:
Swing traders and position traders who want to combine trend-following signals with overbought/oversold zones.
Custom Price Labels (10 liquidity key levels)A simple indicator for liquidity key level trader:
Add your key level price and key note.
You can adjust the color and font.
How to find key level:
Daily high and Low for key event
eg: NVDA earning, Jackson Hole Day Pump, AI bubble report day dump, Aug Labor Data Revision day dump. If market is consolidating, these key event price level are trend target and reversal level.
Stockbee ComboBearCustom indicator for identifying stocks that meet the Stockbee's ComboBear criteria. This can be used as a standalone indicator or use it to screen for stocks in Pine Screener.
Logarithmic Bollinger Bands with Secondary BandThe Logarithmic Bollinger Bands indicator is a variation of standard Bollinger Bands that applies the calculation on a logarithmic scale rather than directly on price values. This approach is particularly useful in markets where assets experience exponential growth or large percentage-based moves, as it allows the bands to adapt proportionally instead of being distorted by absolute price changes. The indicator calculates a moving average of the log-transformed price (the basis), then adds and subtracts multiples of the standard deviation of the log price to form the upper and lower bands. Finally, the results are converted back to normal price scale for plotting. In addition to the primary bands set at 2.0 standard deviations, this version includes a secondary band set at 0.5 standard deviations, offering a closer inner envelope around the mean.
To use this indicator
Traders can observe how price interacts with both the inner and outer bands. The outer 2.0 standard deviation bands represent traditional Bollinger-style boundaries, highlighting potential overbought or oversold conditions when price pushes beyond them.
The inner 0.5 bands provide an earlier signal of price compression and breakout potential, as moves outside these tighter bands often precede larger volatility expansions.
Together, these dual layers give traders a way to monitor both short-term fluctuations and broader trend extremes, making it easier to spot opportunities for entries, exits, or risk management in markets where percentage-based scaling is more meaningful than raw price levels.
PCV (Darren.L-V2)Description:
This indicator combines Bollinger Bands, CCI, and RVI to help identify high-probability zones on M15 charts.
Features:
Bollinger Bands (BB) – displayed on the main chart in light gray. Helps visualize overbought and oversold price levels.
CCI ±100 levels + RVI – displayed in a separate sub-window:
CCI only shows the ±100 reference lines.
RVI displays a cyan main line and a red signal line.
Valid Zone Detection:
Candle closes outside the Bollinger Bands.
RVI crosses above +100 or below -100 (CCI level reference).
Candle closes back inside the BB, confirming a price rebound.
Requires two touches in the same direction to confirm the zone.
Only zones within 20–30 pips range are considered valid.
Usage:
Helps traders spot reversal or bounce zones with clear visual signals.
Suitable for all indices, Forex, and crypto on M15 timeframe.
buy sell ultra systemWhat it is
EMA-POC Momentum System Ultra combines a proven trend stack (EMA 20/50/238), a price-of-control layer (POC via Bar-POC or VWAP alternative), and a momentum trigger (RSI) to surface higher-quality entries only when multiple, independent conditions align. This is not a cosmetic mashup; each component gates the others.
How components work together
Trend (EMA 20/50/238): Defines short/medium/long bias and filters counter-trend signals.
POC (Bar-POC or Alt-POC/VWAP): Locates the most-traded/weighted price area; a neutral band around POC helps avoid chop.
Control background: Above POC → buyers likely in control; below → sellers.
Momentum (RSI): Entry arrows print only when RSI confirms with trend and price location vs POC; optional “cross 50” requirement reduces noise.
Optional HTF trend: Confluence with a higher-timeframe EMA stack for stricter filtering.
Why it’s original/useful
Signals require confluence of (1) EMA trend stack, (2) POC location and neutral-zone filtering, (3) momentum confirmation, (4) optional slope and distance-to-POC checks, and (5) optional HTF trend. This reduces false positives compared with using any layer in isolation.
How to use
Markets/TFs: Built for XAUUSD (Gold) and US30. Works 1m–1h for intraday; 2h–4h for swing.
Entries:
Long: EMA stack bullish, price above POC, not in neutral band, RSI condition true → “Buy” arrow.
Short: Opposite conditions → “Sell” arrow.
Stops/Targets (suggested):
Initial stop beyond POC/neutral band or recent swing.
First target around 1R; trail with EMA20/50 or structure breaks.
Settings to tune:
POC Mode: Bar-POC (highest-volume bar’s close over lookback) or Alt-POC (VWAP).
Neutral Band %: 0.10–0.35 typical intraday.
Min distance from POC: 0.10–0.50% helps avoid low-RR entries right at POC.
RSI: Choose “cross 50” for stricter triggers or simple >/< 50 for more signals.
HTF trend: Turn on for extra confluence.
Alerts:
Buy Signal and Sell Signal (separate), or one Combined Buy/Sell alert.
Set to “Once per bar close” if you want only confirmed arrows.
Repainting / limitations
Shapes can move until bar close (standard Pine behavior) when using intrabar conditions; final confirmation at close. No system guarantees profitability—forward test and adapt to your market/instrument.
Clean chart
The published chart contains only this script so outputs are easy to identify.
Versions / updates
Use Publish → Update for minor changes; do not create new publications for small tweaks. If you fork to preserve older behavior, explain why and how your fork differs.
Changelog
v1.1 – Tuning for Gold/US30, neutral-band & distance filters, optional HTF trend, combined alert.
v1.0 – Initial public release (EMA stack + POC modes + RSI + alerts).
License & credits
Open-source for learning and improvement. Please credit on forks and explain modifications in your description.
ActivTrades Europe Market Pulse – Ion JaureguiActivTrades Europe Market Pulse Indicator – Detailed Description
The ActivTrades Europe Market Pulse Indicator is a market analysis tool designed to assess overall risk sentiment in European financial markets. Unlike trading signals, it provides a clear view of market conditions, helping traders and analysts understand whether the market environment favors risk-taking or caution.
How it Works:
The indicator combines three key metrics to gauge European market sentiment:
1. Equity Index and Sector Performance:
o Compares the relative position of major European equity indices and sector ETFs to their 50-day moving averages.
o A performance above the moving average signals market strength, while below indicates relative weakness, reflecting investors’ appetite for risk.
2. German 10-Year Government Bond Yield:
o Monitors the level of the German 10-year bond yield relative to its 10-day moving average.
o Yields above the moving average indicate greater confidence and risk tolerance, while yields below suggest caution or risk aversion.
3. Point-Based Scoring System:
o Each instrument is assigned points depending on whether it is above or below its moving average.
o Points are combined to generate an overall Risk-On/Risk-Off score, which oscillates between -5 (Extreme Risk-Off) and +5 (Extreme Risk-On), providing a quantitative measure of European market sentiment.
Visual Output:
• The results are displayed as a colored histogram, allowing quick interpretation of market conditions.
• Labeled zones include:
o Extreme Risk-On: Indicates bullish conditions with high risk appetite.
o Extreme Risk-Off: Reflects heightened market caution or fear.
o Neutral Zone: Suggests mixed or balanced sentiment.
Purpose and Use:
• Provides investors, analysts, and traders with insight into the prevailing European market mood.
• Supports informed decision-making and risk management strategies without offering explicit buy or sell signals.
________________________________________
Disclaimer:
The information provided does not constitute investment research. It has not been prepared in accordance with legal requirements designed to promote the independence of investment research and should be considered marketing communication.
All information is prepared by ActivTrades ("AT") and does not contain a record of AT’s prices or constitute an offer or solicitation for a transaction in any financial instrument. No representation is made regarding its accuracy or completeness.
This material does not consider the specific investment objectives or financial situation of any individual. Past performance and forecasts are not reliable indicators of future results. AT provides execution-only services. Any action taken based on this information is at the recipient’s own risk. Political and central bank risks are unpredictable. Platform tools do not guarantee success.
Indicators Risk Advice: The indicator and publications do not constitute financial, investment, trading, or other advice. They are designed to provide trend guidance and filter market noise for international users and are not intended for use by users in Spain.
Dual Relative Strength (Fast & Slow, Single Baseline)Dual-Period RS Setup (Fast + Slow)
1. Fast RS (Early Leadership)
• Indicator: Relative Strength (by modhelius)
• Comparative Symbol: NIFTY
• Period: 26 weeks (~6 months)
• Purpose: Detects early shifts in relative strength before price fully confirms.
⸻
2. Slow RS (Confirmation)
• Add the same indicator again.
• Comparative Symbol: NIFTY
• Period: 52 weeks (1 year)
• Purpose: Confirms sustained leadership. Helps filter noise & false positives.