Macro Nexus Model | MrAlvarezMacro Nexus Model (MNM)
The Macro Nexus Model (MNM) is a sophisticated, next-generation oscillator engineered to synthesise the intricate dynamics of the global financial system into an actionable signal. Where traditional indicators are limited to price action, the MNM provides a quantitative measure of the underlying macro forces driving assets like Bitcoin.
Key Features:
Dynamic & Regime-Aware: Unlike static indicators, the MNM is built on a dynamic engine that identifies the prevailing market regime. It understands that the factors driving the market during periods of expansion are fundamentally different from those that matter during systemic contractions.
Intelligent, Self-Adjusting Weights: At its core, the MNM analyses a diverse basket of global macro inputs—including global growth indicators, credit spreads, central bank liquidity, and safe-haven flows. The indicator's proprietary engine continuously and smoothly adjusts the importance of each of these factors based on its real-time assessment of the global risk environment.
The Macro Trend Line: The final output is a single, smoothed line representing the net macro pressure on risk assets. A positive value indicates a supportive, expansionary environment, while a negative value signals a contractionary environment where caution is warranted.
Automated Divergence Detection: The MNM automatically identifies and plots powerful bullish and bearish divergences between the macro trend and price, providing clear, early warnings of potential market tops and bottoms.
The Macro Nexus Model is more than an indicator; it is a sophisticated dashboard for quantifying the primary forces driving the market. Use it to elevate your analysis, gain a decisive edge, and make more informed, data-driven decisions.
中心震盪指標
RSI Shift Zone [ChartPrime]OVERVIEW
RSI Shift Zone is a sentiment-shift detection tool that bridges momentum and price action. It plots dynamic channel zones directly on the price chart whenever the RSI crosses above or below critical thresholds (default: 70 for overbought, 30 for oversold). These plotted zones reveal where market sentiment likely flipped, helping traders pinpoint powerful support/resistance clusters and breakout opportunities in real time.
⯁ HOW IT WORKS
When the RSI crosses either the upper or lower level:
A new Shift Zone channel is instantly formed.
The channel’s boundaries anchor to the high and low of the candle at the moment of crossing.
A mid-line (average of high and low) is plotted for easy visual reference.
The channel remains visible on the chart for at least a user-defined minimum number of bars (default: 15) to ensure only meaningful shifts are highlighted.
The channel is color-coded to reflect bullish or bearish sentiment, adapting dynamically based on whether the RSI breached the upper or lower level. Labels with actual RSI values can also be shown inside the zone for added context.
⯁ KEY TECHNICAL DETAILS
Uses a standard RSI calculation (default length: 14).
Detects crossovers above the upper level (trend strength) and crossunders below the lower level (oversold exhaustion).
Applies the channel visually on the main chart , rather than only in the indicator pane — giving traders a precise map of where sentiment shifts have historically triggered price reactions.
Auto-clears the zone when the minimum bar length is satisfied and a new shift is detected.
⯁ USAGE
Traders can use these RSI Shift Zones as powerful tactical levels:
Treat the channel’s high/low boundaries as dynamic breakout lines — watch for candles closing beyond them to confirm fresh trend continuation.
Use the midline as an equilibrium reference for pullbacks within the zone.
Visual RSI value labels offer quick checks on whether the zone formed due to extreme overbought or oversold conditions.
CONCLUSION
RSI Shift Zone transforms a simple RSI threshold crossing into a meaningful structural tool by projecting sentiment flips directly onto the price chart. This empowers traders to see where momentum-based turning points occur and leverage those levels for breakout plays, reversals, or high-confidence support/resistance zones — all in one glance.
Pivot Squeeze IndicatorThe Pivot Squeeze Indicator is an oscillator that identifies when markets are "squeezed" between recent pivot highs and lows, then signals when they're ready to make their next big move.
How it Works
The indicator calculates the percentage distance between the current price and the most recent pivot high vs. pivot low. When this distance gets compressed (small), the market is "squeezed" and building energy. When it expands rapidly, you get your breakout signal.
The indicator adapts to current market volatility using four different modes:
- ATR-Based
- Bollinger Bands
- Keltner Channels
- Fixed %
What to Look For
🟠 Orange Background = Squeeze Zone
Market is compressed between recent pivots
Low volatility, building pressure
🟢 Green Breakout = Bullish Signal
Price breaking out above recent highs
Momentum shifting upward
Time to look for long opportunities
🔴 Red Breakout = Bearish Signal
Price breaking down below recent lows
Momentum shifting downward
Time to look for short opportunities
Using Histogram Colors:
Green bars = Bullish territory (closer to recent highs)
Red bars = Bearish territory (closer to recent lows)
Orange bars = Squeeze conditions (compressed between pivots)
Using MA Line:
When Histogram bars cross below or above MA Line in opposite direction, it might be good time to exit.
Default Settings: ATR-based thresholds with 14-period lookback - works great out of the box, but feel free to experiment with the different threshold modes to find what works best for your trading style! Recommended to use with other indicators to confirm signals
52SIGNAL RECIPE AMA Momentum Vector═══52SIGNAL RECIPE AMA Momentum Vector═══
◆ Overview
52SIGNAL RECIPE AMA Momentum Vector is an advanced technical indicator based on Adaptive Moving Average (AMA), integrating volume filtering and gradient zone visualization to provide comprehensive analysis of price trends and momentum.
It automatically adjusts to market conditions by calculating efficiency ratios, reducing noise while clearly capturing significant trends. The volume confirmation system helps traders identify high-probability entry and exit points with precision.
─────────────────────────────────────
◆ Key Features
• Adaptive Moving Average: Smart moving average that automatically adjusts based on market conditions
• Volume Filter Integration: Double-confirmation of important price movements through volume analysis
• Momentum Gradient Zones: Intuitive visualization of trend strength through color gradation
• Signal Confirmation System: Generation of high-reliability buy/sell signals by combining multiple factors
• Trend Direction Identification: Clear color distinction between bullish and bearish market conditions
• Automatic Adaptation: Intelligent design that self-adjusts to various market situations
─────────────────────────────────────
◆ Technical Foundation
■ AMA Calculation Principles
• Efficiency Ratio (ER): Measures how efficiently price moves in one direction
• Dynamic Smoothing Coefficient: Automatically adjusts faster or slower based on market conditions
• Adaptive Algorithm: Less sensitive during sideways markets, more responsive during trending markets
• Noise Reduction Function: Filters out meaningless price movements while capturing important signals
■ Momentum Vector Implementation
• Trend-Price Distance Calculation: Measures trend strength by the distance between AMA and current price
• Color Gradation: Visual system where color intensity changes proportionally to trend strength
• ATR-Based Adjustment: Automatically adjusts gradient zone width according to market volatility
• Directional Color Distinction: Intuitive display with blue/cyan for uptrends and red for downtrends
─────────────────────────────────────
◆ Practical Applications
■ Price Trend Interpretation
• Trend Direction Assessment:
▶ Price above AMA with blue gradation indicates ongoing bullish momentum
▶ Price below AMA with red gradation indicates ongoing bearish momentum
• Momentum Strength Verification:
▶ Deeper gradient colors mean stronger momentum and healthier trends
▶ Lighter gradient colors suggest weakening momentum and potential reversal
■ Trading Strategy Utilization
• Trend Following Strategy:
▶ Buy signal when price crosses above AMA with increased volume
▶ Sell signal when price crosses below AMA with increased volume
• Momentum Confirmation Trading:
▶ Deep gradation increases confidence in trend continuation for entry decisions
▶ Multiple consecutive candles staying on one side of AMA increases trend reliability
─────────────────────────────────────
◆ Advanced Configuration Options
■ Input Parameter Guide
• Fast Period (Default: 2)
▶ 1-2: Responds very quickly to price changes. Suitable for short-term trading.
▶ 3-5: Moderate response that reduces frequent signals.
▶ 6-10: Slower response but captures only more definitive trends.
• Slow Period (Default: 30)
▶ 20-25: AMA moves faster. Good for shorter timeframe trading.
▶ 26-35: Balanced speed suitable for most market conditions.
▶ 36-50: AMA moves slowly, smoothly following long-term trends.
• Efficiency Ratio Period (Default: 10)
▶ 5-8: Focuses more on recent price movements. Responds quickly to changes.
▶ 9-12: Balanced period suitable for most situations.
▶ 13-20: Considers longer-term price movements, ignoring temporary fluctuations.
• Volume Average Period (Default: 20)
▶ 10-15: Compares with the average volume of the last 10-15 days. More sensitive to changes.
▶ 16-25: Compares with the average volume of approximately the last month. Balanced setting.
▶ 26-50: Compares with long-term average volume, capturing only truly significant volume changes.
• Volume Threshold Multiplier (Default: 1.2)
▶ 1.0-1.1: Recognizes volume just 10% above average as valid.
▶ 1.2-1.5: Requires volume 20-50% higher than average (e.g., 1.2 means 120% of average).
▶ 1.6-2.0: Recognizes only very high volume at least 1.6 times (160%) above average.
■ Timeframe-Specific Recommended Settings
• Short Timeframes (5min-1hr):
Fast Period 2, Slow Period 20, Efficiency Ratio Period 8
→ Responds quickly to price changes, suitable for day trading.
• Medium Timeframes (4hr-daily):
Fast Period 2, Slow Period 30, Efficiency Ratio Period 10
→ Most balanced setting for general swing trading.
• Long Timeframes (daily-weekly):
Fast Period 2, Slow Period 40, Efficiency Ratio Period 14
→ Optimized for smoothly tracking longer trends.
■ Market-Specific Recommended Settings
• Stock Market:
Volume Threshold 1.2, Volume Average Period 20
→ Signal is valid when volume is 20% above average.
• Forex Market:
Volume Threshold 1.5, Efficiency Ratio Period 12
→ Forex requires higher volume to be meaningful and slightly longer efficiency measurement.
• Cryptocurrency Market:
Volume Threshold 1.3, Fast Period 2, Slow Period 25
→ Settings optimized for highly volatile cryptocurrencies.
─────────────────────────────────────
◆ Synergy with Other Indicators
• Moving Averages: Trend reliability increases when AMA and key moving averages point in the same direction
• RSI/Stochastic: Powerful reversal signals when AMA crossovers occur in overbought/oversold zones
• MACD: Signal probability greatly increases when MACD histogram direction changes coincide with AMA crossovers
• Bollinger Bands: Trend strength can be determined by AMA's position within Bollinger Bands
• Support/Resistance Levels: Success probability dramatically increases when AMA breakouts occur at key price levels
─────────────────────────────────────
◆ Conclusion
AMA Momentum Vector provides accurate price trend analysis by combining the advanced features of adaptive moving averages with momentum visualization technology.
It perfectly adapts to constantly changing market environments through its self-adjusting algorithm and generates highly reliable trading signals through its volume confirmation system.
Users can optimize the indicator for their trading style and market conditions with simple parameter adjustments, enabling effective trading decisions that comprehensively consider price direction, momentum strength, and volume confirmation.
─────────────────────────────────────
※ Disclaimer: Past performance does not guarantee future results. Always use appropriate risk management strategies.
═══52SIGNAL RECIPE AMA Momentum Vector═══
◆ 개요
52SIGNAL RECIPE AMA Momentum Vector는 적응형 이동평균(AMA)을 기반으로 한 고급 기술적 지표로, 볼륨 필터링과 그라데이션 존 시각화를 통합하여 가격 추세와 모멘텀을 종합적으로 분석합니다.
시장 효율성 비율을 자동으로 계산하여 시장 상황에 맞게 스스로 조정되며, 노이즈는 줄이고 중요한 추세는 선명하게 포착합니다. 또한 볼륨 확인 시스템을 통해 높은 확률의 매매 시점을 정확하게 식별할 수 있도록 도와줍니다.
─────────────────────────────────────
◆ 주요 특징
• 적응형 이동평균: 시장 상황에 따라 자동으로 조정되는 스마트한 이동평균선
• 볼륨 필터 통합: 중요한 가격 움직임을 볼륨으로 한번 더 확인
• 모멘텀 그라데이션 존: 색상 그라데이션으로 추세의 강도를 직관적으로 시각화
• 신호 확인 시스템: 여러 요소를 종합하여 신뢰도 높은 매수/매도 신호 생성
• 추세 방향 식별: 상승세와 하락세를 색상으로 명확하게 구분
• 자동 적응 기능: 다양한 시장 상황에 알아서 맞춰지는 지능형 설계
─────────────────────────────────────
◆ 기술적 기반
■ AMA 계산 원리
• 효율성 비율 (ER): 가격이 얼마나 효율적으로 한 방향으로 움직이는지 측정
• 동적 평활화 계수: 시장 상황에 따라 빠르거나 느리게 자동 조절되는 계수
• 적응형 알고리즘: 횡보장에서는 둔감하게, 추세장에서는 민감하게 반응
• 노이즈 감소 기능: 무의미한 가격 움직임은 걸러내고 중요한 신호만 포착
■ 모멘텀 벡터 구현
• 추세-가격 거리 계산: AMA와 현재 가격 사이의 거리로 추세 강도 측정
• 색상 그라데이션: 추세 강도에 비례하여 색상 농도가 변하는 시각화 시스템
• ATR 기반 조정: 시장 변동성에 맞춰 그라데이션 영역 너비 자동 조절
• 방향성 색상 구분: 상승세는 파란색/청록색, 하락세는 빨간색으로 직관적 표시
─────────────────────────────────────
◆ 실용적 응용
■ 가격 추세 해석
• 추세 방향 판단:
▶ 가격이 AMA 위에 있고 파란색 그라데이션이 보이면 상승 모멘텀 진행 중
▶ 가격이 AMA 아래에 있고 빨간색 그라데이션이 보이면 하락 모멘텀 진행 중
• 모멘텀 강도 확인:
▶ 그라데이션 색상이 진할수록 모멘텀이 강하고 추세가 건강함을 의미
▶ 그라데이션 색상이 옅을수록 모멘텀이 약해지고 있으며 반전 가능성 시사
■ 트레이딩 전략 활용
• 추세 추종 전략:
▶ 가격이 AMA를 상향 돌파하고 볼륨이 증가하면 매수 신호
▶ 가격이 AMA를 하향 돌파하고 볼륨이 증가하면 매도 신호
• 모멘텀 확인 트레이딩:
▶ 진한 그라데이션은 추세 지속 가능성이 높음을 의미하므로 진입 확신 강화
▶ 여러 캔들이 연속해서 AMA 한쪽에 머물면 추세의 신뢰도가 높아짐
─────────────────────────────────────
◆ 고급 설정 옵션
■ 인풋 파라미터 가이드
• 빠른 기간 (Fast Period) (기본값: 2)
▶ 1-2: 가격 변화에 매우 빠르게 반응합니다. 단기 거래에 적합합니다.
▶ 3-5: 적당히 반응하여 잦은 신호를 줄여줍니다.
▶ 6-10: 반응이 느리지만 더 확실한 추세만 포착합니다.
• 느린 기간 (Slow Period) (기본값: 30)
▶ 20-25: AMA가 더 빠르게 움직입니다. 짧은 시간 거래에 좋습니다.
▶ 26-35: 균형 잡힌 속도로 대부분의 시장 상황에 적합합니다.
▶ 36-50: AMA가 천천히 움직여 장기 추세를 부드럽게 따라갑니다.
• 효율성 비율 기간 (Efficiency Ratio Period) (기본값: 10)
▶ 5-8: 최근 가격 움직임에 더 집중합니다. 변화에 빠르게 반응합니다.
▶ 9-12: 균형 잡힌 기간으로 대부분의 상황에 적합합니다.
▶ 13-20: 더 긴 기간의 가격 움직임을 고려하여 일시적인 변동을 무시합니다.
• 볼륨 평균 기간 (Volume Average Period) (기본값: 20)
▶ 10-15: 최근 10-15일의 평균 볼륨과 비교합니다. 변화에 민감합니다.
▶ 16-25: 지난 약 한 달간의 평균 볼륨과 비교합니다. 균형 잡힌 설정입니다.
▶ 26-50: 장기 평균 볼륨과 비교하여 정말 큰 볼륨 변화만 포착합니다.
• 볼륨 임계값 승수 (Volume Threshold Multiplier) (기본값: 1.2)
▶ 1.0-1.1: 평균보다 약 10% 정도만 높아도 유효한 볼륨으로 인정합니다.
▶ 1.2-1.5: 평균보다 20~50% 높은 볼륨을 요구합니다(예: 1.2는 평균의 120%).
▶ 1.6-2.0: 평균의 최소 1.6배(160%) 이상 되는 매우 높은 볼륨만 인정합니다.
■ 타임프레임별 추천 설정
• 짧은 시간 차트 (5분-1시간):
빠른 기간 2, 느린 기간 20, 효율성 비율 기간 8
→ 가격 변화에 빠르게 반응하며 단타에 적합합니다.
• 중기 차트 (4시간-일봉):
빠른 기간 2, 느린 기간 30, 효율성 비율 기간 10
→ 일반적인 스윙 트레이딩에 가장 균형 잡힌 설정입니다.
• 장기 차트 (일봉-주봉):
빠른 기간 2, 느린 기간 40, 효율성 비율 기간 14
→ 더 긴 추세를 매끄럽게 추적하는 데 최적화되었습니다.
■ 시장별 추천 설정
• 주식 시장:
볼륨 임계값 1.2, 볼륨 평균 기간 20
→ 평균보다 20% 많은 볼륨이 있을 때 신호가 유효합니다.
• 외환 시장:
볼륨 임계값 1.5, 효율성 비율 기간 12
→ 외환은 볼륨이 더 높아야 의미가 있으며, 약간 더 긴 효율성 측정이 필요합니다.
• 암호화폐 시장:
볼륨 임계값 1.3, 빠른 기간 2, 느린 기간 25
→ 변동성이 큰 암호화폐에 최적화된 설정입니다.
─────────────────────────────────────
◆ 다른 지표와의 시너지
• 이동평균선: AMA와 주요 이동평균선이 같은 방향을 가리킬 때 추세 신뢰도 상승
• RSI/스토캐스틱: 과매수/과매도 구간에서 AMA 교차 발생 시 강력한 반전 신호
• MACD: MACD 히스토그램 방향 변화와 AMA 교차가 일치하면 신호 확률 대폭 증가
• 볼린저 밴드: AMA가 볼린저 밴드 내에서 어떤 위치에 있는지로 추세 강도 판단
• 지지/저항 레벨: 중요 가격대에서 AMA 돌파 시 성공 확률이 크게 증가
─────────────────────────────────────
◆ 결론
AMA Momentum Vector는 적응형 이동평균의 고급 기능과 모멘텀 시각화 기술을 결합하여 정확한 가격 추세 분석을 제공합니다.
자체 조정 알고리즘으로 시시각각 변하는 시장 환경에 완벽하게 적응하며, 볼륨 확인 시스템을 통해 신뢰도 높은 매매 신호를 생성합니다.
사용자는 간단한 파라미터 조정으로 자신의 거래 스타일과 시장 상황에 맞게 지표를 최적화할 수 있어, 가격 방향, 모멘텀 강도, 볼륨 확인을 종합적으로 고려한 효과적인 거래 결정을 내릴 수 있습니다.
─────────────────────────────────────
※ 면책 조항: 과거 성과가 미래 결과를 보장하지 않습니다. 항상 적절한 리스크 관리 전략을 사용하세요.
RSI with 2-Pole FilterA momentum indicator that tells you if a stock is overbought or oversold.
RSI goes between 0 and 100.
70 = overbought (might fall)
<30 = oversold (might rise)
It often looks jagged or choppy on volatile days.
Think of this filter like a momentum smoother:
It still follows RSI closely,
But it doesn’t react to every little jiggle in price,
Which helps avoid false signals.
it keeps track of:
The current RSI,
The last 2 RSI values (inputs), and
The last 2 outputs (filtered RSIs).
It uses feedback to shape the output based on previous values, making it smoother than a simple moving average.
Pure Price Action Momentum OscillatorComplete Trading Guide: Pure Price Action Momentum Oscillator
1. Script Overview
What It Does
Tracks real-time momentum strength (bullish/bearish acceleration)
Identifies dynamic support/resistance zones for momentum (not price)
Alerts when momentum breaks or holds critical levels
What It Doesn’t Do
Predict long-term trends (use with trend indicators)
Replace price-based S/R levels (use alongside them)
Work well in extreme choppiness (adjust settings or avoid)
2. Key Features & Components
Feature Purpose Visual Cue
Momentum Histogram Shows strength/direction of price acceleration Color-coded bars
Zero Line Bullish/bearish momentum baseline Gray line (0 level)
Support Zone (Blue) Momentum floor where bounces happen Blue horizontal line
Resistance Zone (Orange) Momentum ceiling where pullbacks start Orange horizontal line
Stateful Alerts Persistent signals until conditions reverse Green/Red labels
3. Best Timeframes & Markets
Market Recommended Timeframe Notes
Stocks 5min - 1H Works best with high liquidity
Forex 15min - 4H Avoid during major news spikes
Crypto 1H - 4H Use with volume confirmation
Futures 5min - 1H Ideal for intraday momentum trades
❌ Avoid: Tick charts, <1min (too noisy), >Daily (loses sensitivity).
4. Confirmation Tools (Must-Use Combos)
A. Trend Confirmation
200 EMA (Price Chart)
Only trade longs if price > 200 EMA + momentum supports
Only trade shorts if price < 200 EMA + momentum confirms
ADX (14)
Use when ADX > 25 (strong trend) + momentum aligns
B. Volume Confirmation
Volume Profile
Enter longs only if momentum breaks resistance at high-volume nodes
VWAP
Buy pullbacks when momentum holds support and price is above VWAP
C. Price Structure
Fibonacci Retracements
Look for momentum breaks at 61.8% Fib levels for high-probability trades
Market Structure (Higher Lows/Lower Highs)
Momentum breakouts work best when price confirms trend
5. Trading Signals & Execution Rules
A. Breakout Trades (High Momentum)
Signal Conditions Action
Resistance Broken Histogram > Orange Zone + Price > Key S/R Enter Long
Support Broken Histogram < Blue Zone + Price < Key S/R Enter Short
Stop Loss:
Longs: 1 tick below nearest swing low
Shorts: 1 tick above nearest swing high
Take Profit:
Trail using the opposite zone (exit long when momentum drops below support)
B. Reversal Trades (Momentum Exhaustion)
Signal Conditions Action
Resistance Holding Histogram rejects Orange Zone + Bearish candle Short Entry
Support Holding Histogram bounces off Blue Zone + Bullish candle Long Entry
Stop Loss:
Beyond the recent swing high/low
Take Profit:
At next key S/R level
6. Advanced Interpretation
A. Divergence Trading
Hidden Bullish Divergence:
Price makes higher low, but momentum makes lower low → Potential reversal up
Hidden Bearish Divergence:
Price makes lower high, but momentum makes higher high → Potential reversal down
B. Session-Based Trading
London Open (3 AM EST): Watch for momentum breaks with volume surge
NY Midday (10 AM - 12 PM EST): Best for trend continuation
Crypto (UTC Midnight): Often sees volatility spikes
7. Risk Management & Position Sizing
Risk per trade: 1-2% of account
Leverage: ≤5x for intraday, ≤2x for swing
Avoid trading:
First 15 mins after major news
Low-volume periods (e.g., forex after 5 PM EST)
8. Pro Tips for Consistency
✅ Wait for Close: Don’t trade wicks, wait for candle close beyond zones.
✅ Combine with Price Action: Only trade if momentum aligns with candlestick patterns (e.g., pin bars, engulfing).
✅ Adjust Lookback: Increase in choppy markets, decrease in trends.
9. Limitations & Fixes
Issue Solution
Whipsaws in choppy markets Increase Min Lookback to 30+
Slow reaction in trends Reduce Max Lookback to 50
False breakouts Require volume confirmation
Final Verdict
This script is best used as a momentum filter – not a standalone system. Combine with:
✔ Trend indicators (200 EMA, ADX)
✔ Volume analysis (VWAP, Volume Profile)
✔ Price structure (S/R, Fibs)
Spread AnalysisSpread Analysis - Futures vs Spot Price Analysis
Advanced spread analysis tool that compares futures/perp prices with spot prices across multiple exchanges, providing insights into market sentiment and potential trading opportunities.
Multi-Asset Support: Automatically detects and analyzes crypto perpetual vs spot spreads, index futures vs cash indices (ES/SPX, NQ/NDX, YM/DJI), and commodity futures vs spot prices (GC/GOLD, CL/USOIL)
Multi-Exchange Aggregation: For crypto, aggregates prices from Binance, BitMEX, Kraken, Bybit, OKX, and Coinbase to calculate mean perp and spot prices
Z-Score Based Alerts: Uses statistical Z-score analysis to identify extreme spread conditions that may signal potential reversals or continuation patterns
Visual Histogram Display: Shows spread differences as colored columns - green for futures premium, red for futures discount
Flexible Calculation Methods: Supports absolute price differences, percentage spreads, or basis point calculations
Trading Applications: Identify market sentiment divergence, spot potential reversal opportunities, and confirm trend strength
Risk Management: Use extreme Z-scores to identify overvalued conditions and potential mean reversion setups
Market Analysis: Understand the relationship between futures and spot markets across different asset classes
Timing Tool: Spread momentum often precedes price moves, providing early signals for entry/exit decisions
Perfect for traders who want to understand the relationship between futures and spot markets, identify divergences, and spot potential reversal opportunities across crypto, indices, and commodities.
Key Features:
• Automatic asset detection and appropriate spread calculation
• Configurable Z-score alerts for extreme conditions
• Comprehensive tooltips and information guide
• Multiple calculation methods (absolute, percentage, basis points)
• Clean, customizable visual display
Use Cases:
• Crypto traders analyzing perp vs spot relationships
• Futures traders monitoring basis relationships
• Mean reversion strategies using extreme spreads
• Trend confirmation using spread momentum
• Market sentiment analysis across asset classes
RSI Mansfield +RSI Mansfield+ – Adaptive Relative Strength Indicator with Divergences
Overview
RSI Mansfield+ is an advanced relative strength indicator that compares your instrument’s performance against a configurable benchmark index or asset (e.g., Bitcoin Dominance, S&P 500). It combines Mansfield normalization, adaptive smoothing techniques, and automatic detection of bullish and bearish divergences (regular and hidden), delivering a comprehensive tool for assessing relative strength across any market and timeframe.
Originality and Motivation
Unlike traditional relative strength scripts, this indicator introduces several distinctive improvements:
Mansfield Normalization: Scales the ratio between the asset and the benchmark relative to its moving average, transforming it into a normalized oscillator that fluctuates around zero, making it easier to spot outperformance or underperformance.
Adaptive Smoothing: Automatically selects whether to use EMA or SMA based on the market type (crypto or stocks) and timeframe (intraday, daily, weekly, monthly), avoiding manual configuration and providing more robust results under varying volatility conditions.
Divergence Detection: Identifies four types of divergences in the Mansfield oscillator to help anticipate potential reversal points or trend confirmations.
Multi-Market Support: Offers benchmark selection among major crypto and global stock indices from a single input.
These enhancements make RSI Mansfield+ more practical and powerful than conventional relative strength scripts with static benchmarks or without divergence capabilities.
Core Concepts
Relative Strength (RS): Compares price evolution between your asset and the selected benchmark.
Mansfield Normalization: Measures how much the RS deviates from its historical moving average, expressed as a scaled oscillator.
Divergences: Detects regular and hidden bullish or bearish divergences within the Mansfield oscillator.
Timeframe Adaptation: Dynamically adjusts moving average lengths based on timeframe and market type.
How It Works
Benchmark Selection
Choose among over 10 indices or market domains (BTC Dominance, ETH Dominance, S&P 500, European indices, etc.).
Ratio Calculation
Computes the price-to-benchmark ratio and smooths it with the adaptive moving average.
Normalization and Scaling
Transforms deviations into a Mansfield oscillator centered around zero.
Dynamic Coloring
Green indicates relative outperformance, red signals underperformance.
Divergence Detection
Automatically identifies bullish and bearish (regular and hidden) divergences by comparing oscillator pivots against price pivots.
Baseline Reference
A clear zero line helps interpret relative strength trends.
Usage Guidelines
Benchmark Comparison
Ideal for traders analyzing whether an asset is outperforming or lagging its sector or market.
Divergence Analysis
Helps detect potential reversal or continuation signals in relative strength.
Multi-Timeframe Compatibility
Can be applied to intraday, daily, weekly, or monthly charts.
Interpretation
Oscillator >0 and green: outperforming the benchmark.
Oscillator <0 and red: underperforming.
Bullish divergences: potential relative strength reversal to the upside.
Bearish divergences: possible loss of momentum or reversal to the downside.
Credits
The concept of Mansfield Relative Strength is based on Stan Weinstein’s original work on relative performance analysis. This script was built entirely from scratch in TradingView Pine Script v6, incorporating original logic for adaptive smoothing, normalized scaling, and divergence detection, without reusing any external open-source code.
Adaptive Squeeze Momentum +Adaptive Squeeze Momentum+ (Auto-Timeframe Version)
Overview
Adaptive Squeeze Momentum+ is an enhanced volatility and momentum indicator designed to identify compression and expansion phases in price action. It is inspired by the classic Squeeze Momentum Indicator by LazyBear but introduces automatic parameter adaptation to any timeframe, making it simpler to use across different markets without manual configuration.
Concepts and Methodology
The script combines Bollinger Bands (BB) and Keltner Channels (KC) to detect periods when volatility contracts (squeeze) or expands (release).
A squeeze occurs when BB are inside KC, suggesting low volatility and potential breakout scenarios.
A squeeze release is detected when BB expand outside KC.
Momentum is derived using a linear regression applied to the difference between price and a midrange reference level.
Original Improvements
Compared to the original Squeeze Momentum Indicator, this version offers several enhancements:
Automatic Adaptation: BB and KC lengths and multipliers are dynamically adjusted based on the chart’s timeframe (from 1 minute up to 1 month), removing the need for manual tuning.
Simplified Visualization: A clean, minimalist histogram and clear squeeze state cross markers allow for faster interpretation.
Flexible Application: Designed to work consistently on intraday, daily, and higher timeframes across crypto, forex, stocks, and indices.
Features
Dynamic Squeeze Detection:
Gray Cross: Neutral (no squeeze detected)
Blue Cross: Active squeeze
Yellow Cross: Squeeze released
Momentum Histogram:
Positive/negative momentum shown with slope-based coloring.
Timeframe-Aware Parameters:
Automatically sets optimal BB/KC configurations.
Usage
Watch for blue crosses indicating an active squeeze phase that may precede a directional move.
Use the histogram color and slope to gauge momentum strength and direction.
Combine squeeze release signals with momentum confirmation for potential entries or exits.
Credits and Licensing
This script was inspired by LazyBear’s OLD “Squeeze Momentum Indicator” (). The implementation here significantly expands upon the original by introducing auto-adaptive parameters, restructured logic, and a new visualization approach. Published under the Mozilla Public License 2.0.
Disclaimer
This indicator is for educational purposes only and does not constitute financial advice. Use at your own risk.
day trading check indicatorDay Trading Check Indicator
By Trades per Minute · Creator: Trader Malik
Overview
The Day Trading Check Indicator is an on‐chart status panel that gives you a quick “go/no-go” snapshot of four key metrics—MACD, VWAP, Float, and Bearish Sell-Off—directly in TradingView’s top-right corner. It’s designed for fast decision-making during high-velocity intraday sessions, letting you instantly see whether each metric is “bullish” (green) or “bearish” (red), plus live float data.
What It Shows
Column Description
Metric The name of each metric: MACD, VWAP, Float, Bearish Sell-Off
Status/Value A color-coded status (“GREEN”/“RED” or “YES”/“NO”) or the float value formatted in K/M/B
Metrics & Calculations
MACD (1-Minute)
Calculation: Standard MACD using EMA (12) – EMA (26) with a 9-period signal line, all fetched from the 1-minute timeframe via request.security().
Status:
GREEN if MACD ≥ Signal
RED if MACD < Signal
VWAP (Session-Anchored)
Calculation: Built-in session VWAP (ta.vwap(close)) resets each new trading session.
Status:
GREEN if current price ≥ VWAP
RED if current price < VWAP
Float
Calculation: Retrieves syminfo.shares_outstanding_float (total float), then scales it into thousands (K), millions (M), or billions (B), e.g. “12.3 M.”
Display: Always shown as the absolute float value, white on semi-transparent black.
Bearish Sell-Off
Calculation: Checks the last five 1-minute bars for any “high-volume down” candle (volume above its 20-bar SMA and close < open).
Status:
YES if at least one such bar occurred in the past 5 minutes
NO otherwise
Key Features
Dynamic Table: Automatically shows only the metrics you enable via the Display Options group.
Size Selector: Choose Small, Medium, or Large text for easy visibility.
Clean Styling: Distinct header row with custom background, consistent row shading, centered status text, and a subtle gray border.
Lightweight Overlay: No cluttering plots—just a concise status panel in the corner.
Published by Trader Malik / Trades per Minute
Version: Pine Script v5
Crypto Breadth | AlphaNatt\ Crypto Breadth | AlphaNatt\
A dynamic, visually modern market breadth indicator designed to track the strength of the top 40 cryptocurrencies by measuring how many are trading above their respective 50-day moving averages. Built with precision, branding consistency, and UI enhancements for fast interpretation.
\ 📊 What This Script Does\
* Aggregates the performance of \ 40 major cryptocurrencies\ on Binance
* Calculates a \ breadth score (0.00–1.00)\ based on how many tokens are above their moving averages
* Smooths the breadth with optional averaging
* Displays the result as a \ dynamic, color-coded line\ with aesthetic glow and gradient fill
* Provides automatic \ background zones\ for extreme bullish/bearish conditions
* Includes \ alerts\ for key threshold crossovers
* Highlights current values in an \ information panel\
\ 🧠 How It Works\
* Pulls real-time `close` prices for 40 coins (e.g., XRP, BNB, SOL, DOGE, PEPE, RENDER, etc.)
* Compares each coin's price to its 50-day SMA (adjustable)
* Assigns a binary score:
• 1 if the coin is above its MA
• 0 if it’s below
* Aggregates all results and divides by 40 to produce a normalized \ breadth percentage\
\ 🎨 Visual Design Features\
* Smooth blue-to-pink \ color gradient\ matching the AlphaNatt brand
* Soft \ glow effects\ on the main line for enhanced legibility
* Beautiful \ multi-stop fill gradient\ with 16 transition zones
* Optional \ background shading\ when extreme sentiment is detected:
• Bullish zone if breadth > 80%
• Bearish zone if breadth < 20%
\ ⚙️ User Inputs\
* \ Moving Average Length\ – Number of periods to calculate each coin’s SMA
* \ Smoothing Length\ – Smooths the final breadth value
* \ Show Background Zones\ – Toggle extreme sentiment overlays
* \ Show Gradient Fill\ – Toggle the modern multicolor area fill
\ 🛠️ Utility Table (Top Right)\
* Displays live breadth percentage
* Shows how many coins (e.g., 27/40) are currently above their MA
\ 🔔 Alerts Included\
* \ Breadth crosses above 50%\ → Bullish signal
* \ Breadth crosses below 50%\ → Bearish signal
* \ Breadth > 80%\ → Strong bullish trend
* \ Breadth < 20%\ → Strong bearish trend
\ 📈 Best Used For\
* Gauging overall market strength or weakness
* Timing trend transitions in the crypto market
* Confirming trend-based strategies with broad market support
* Visual dashboard in macro dashboards or strategy overlays
\ ✅ Designed For\
* Swing traders
* Quantitative investors
* Market structure analysts
* Anyone seeking a macro view of crypto performance
Note: Not financial advise
52SIGNAL RECIPE CCI Linreg Bands═══ 52SIGNAL RECIPE CCI Linreg Bands ═══
◆ Overview
52SIGNAL RECIPE CCI Linreg Bands is an advanced technical indicator that combines the CCI (Commodity Channel Index) with Linear Regression Bands. This indicator visualizes the volatility of the CCI using linear regression bands, helping to clearly identify overbought/oversold areas and more accurately capture potential trend reversal points.
─────────────────────────────────────
◆ Key Features
• CCI-Based Overbought/Oversold Analysis: Uses the traditional CCI indicator to identify overbought/oversold conditions in the market
• Integrated Linear Regression Bands: Applies linear regression analysis to the CCI to visually represent the direction and strength of trends
• Dual Overbought/Oversold Levels: Sets overbought/oversold levels for both CCI and Linear Regression Bands to increase the accuracy of signals
• Advanced Visualization: Intuitive chart analysis is possible with color changes according to trend direction and clear band display
• Multiple Alert Settings: Alert functions for various conditions ensure you don't miss important trading moments
─────────────────────────────────────
◆ Technical Foundation
■ CCI (Commodity Channel Index)
• Basic Settings: 20-period CCI with Weighted Moving Average (WMA) applied
• Calculation Method: Measures the deviation from the average price normalized to a specific range
• Overbought/Oversold Levels: Default values set to +150 (overbought) and -150 (oversold)
■ Linear Regression Bands
• Period: Default value of 100 days
• Deviation: Default value of 4.5 standard deviations
• Center Line: The center line of the linear regression analysis for the CCI values
• Band Width: Displays the range of volatility around the center line based on the calculated standard deviation
• Overbought/Oversold Levels: Default values set to +250 (overbought) and -250 (oversold)
─────────────────────────────────────
◆ Practical Applications
■ Identifying Trading Signals
• Buy Signal:
▶ When the CCI falls below the oversold level (-150)
▶ When the lower band of the Linear Regression Bands falls below the oversold level (-250)
▶ When both conditions are met simultaneously (extreme oversold state) - a strong buy signal
• Sell Signal:
▶ When the CCI rises above the overbought level (+150)
▶ When the upper band of the Linear Regression Bands rises above the overbought level (+250)
▶ When both conditions are met simultaneously (extreme overbought state) - a strong sell signal
■ Trend Analysis
• Uptrend: When the linear regression center line is rising and the CCI is moving above the zero line
• Downtrend: When the linear regression center line is falling and the CCI is moving below the zero line
• Trend Strength: The wider the gap between the bands, the greater the volatility; the narrower, the more stable the trend
■ Divergence Confirmation
• Bearish Divergence: Price forms a new high, but the CCI is lower than the previous high (potential bearish signal)
• Bullish Divergence: Price forms a new low, but the CCI is higher than the previous low (potential bullish signal)
─────────────────────────────────────
◆ Advanced Setting Options
■ CCI Setting Adjustments
• CCI Source: Selectable options include Close (default), Open, High, Low, HL2, HLC3, OHLC4, etc.
• CCI Length: Adjust to lower values for short-term volatility, higher values for long-term trends
■ Linear Regression Setting Adjustments
• Period: Use lower values (20-50) for short-term analysis, higher values (100-200) for long-term analysis
• Deviation: Higher values create wider bands (more signals), lower values create narrower bands (more accurate signals)
■ Overbought/Oversold Level Adjustments
• CCI Levels: Adjust to more extreme values (±200) in highly volatile markets
• Linear Regression Band Levels: Adjustable to ±300 or ±200 depending on market conditions
─────────────────────────────────────
◆ Synergy with Other Indicators
• Bollinger Bands: Use alongside Bollinger Bands on the price chart to compare price volatility with CCI volatility
• MACD: Use with MACD for momentum and trend confirmation
• Fibonacci Retracement: Check CCI Linreg Bands signals with key support/resistance levels
• Moving Averages: Combine moving average crossovers with CCI Linreg Bands signals to improve reliability
─────────────────────────────────────
◆ Conclusion
52SIGNAL RECIPE CCI Linreg Bands provides a powerful and accurate technical analysis tool by combining traditional CCI with linear regression analysis. The dual overbought/oversold system increases the accuracy of trading signals and clearly visualizes trend direction and strength to help traders make decisions. You can achieve optimal results by adjusting various settings to match your trading style and market conditions.
─────────────────────────────────────
※ Disclaimer: Past performance does not guarantee future results. Always use appropriate risk management strategies.
═══ 52SIGNAL RECIPE CCI 선형회귀 밴드 ═══
◆ 개요
52SIGNAL RECIPE CCI 선형회귀 밴드는 CCI(Commodity Channel Index)와 선형회귀 밴드를 결합한 고급 기술적 지표입니다. 이 지표는 선형회귀 밴드를 사용하여 CCI의 변동성을 시각화하여 과매수/과매도 영역을 명확하게 식별하고 잠재적인 추세 반전 지점을 더 정확하게 포착하는 데 도움을 줍니다.
─────────────────────────────────────
◆ 주요 특징
• CCI 기반 과매수/과매도 분석: 전통적인 CCI 지표를 사용하여 시장의 과매수/과매도 상태를 식별
• 통합된 선형회귀 밴드: CCI에 선형회귀 분석을 적용하여 추세의 방향과 강도를 시각적으로 표현
• 이중 과매수/과매도 레벨: CCI와 선형회귀 밴드 모두에 과매수/과매도 레벨을 설정하여 신호의 정확도 향상
• 고급 시각화: 추세 방향에 따른 색상 변화와 명확한 밴드 표시로 직관적인 차트 분석 가능
• 다중 알림 설정: 다양한 조건에 대한 알림 기능으로 중요한 트레이딩 시점을 놓치지 않도록 보장
─────────────────────────────────────
◆ 기술적 기반
■ CCI (Commodity Channel Index)
• 기본 설정: 20기간 CCI에 가중이동평균(WMA) 적용
• 계산 방법: 평균 가격에 대한 편차를 측정하여 정규화한 값으로 표현
• 과매수/과매도 레벨: 기본값으로 +150(과매수)과 -150(과매도) 설정
■ 선형회귀 밴드
• 기간: 기본값 100일
• 편차: 기본값 4.5 표준편차
• 중심선: CCI 값에 대한 선형회귀 분석의 중심선
• 밴드 폭: 계산된 표준편차에 기반하여 중심선 주변의 변동성 범위 표시
• 과매수/과매도 레벨: 기본값으로 +250(과매수)와 -250(과매도) 설정
─────────────────────────────────────
◆ 실용적 응용
■ 트레이딩 신호 식별
• 매수 신호:
▶ CCI가 과매도 레벨(-150) 아래로 떨어질 때
▶ 선형회귀 밴드의 하단이 과매도 레벨(-250) 아래로 떨어질 때
▶ 두 조건이 동시에 충족될 때(극단적 과매도 상태) - 강한 매수 신호
• 매도 신호:
▶ CCI가 과매수 레벨(+150) 위로 상승할 때
▶ 선형회귀 밴드의 상단이 과매수 레벨(+250) 위로 상승할 때
▶ 두 조건이 동시에 충족될 때(극단적 과매수 상태) - 강한 매도 신호
■ 추세 분석
• 상승 추세: 선형회귀 중심선이 상승하고 CCI가 0선 위로 움직일 때
• 하락 추세: 선형회귀 중심선이 하락하고 CCI가 0선 아래로 움직일 때
• 추세 강도: 밴드 사이의 간격이 넓을수록 변동성이 크고, 좁을수록 추세가 안정적
■ 다이버전스 확인
• 약세 다이버전스: 가격이 신고점을 형성하지만 CCI가 이전 고점보다 낮을 때(잠재적 약세 신호)
• 강세 다이버전스: 가격이 신저점을 형성하지만 CCI가 이전 저점보다 높을 때(잠재적 강세 신호)
─────────────────────────────────────
◆ 고급 설정 옵션
■ CCI 설정 조정
• CCI 소스: 선택 가능한 옵션에는 종가(기본값), 시가, 고가, 저가, HL2, HLC3, OHLC4 등이 포함
• CCI 길이: 단기 변동성을 위해 낮은 값으로, 장기 추세를 위해 높은 값으로 조정
■ 선형회귀 설정 조정
• 기간: 단기 분석을 위해 낮은 값(20-50), 장기 분석을 위해 높은 값(100-200) 사용
• 편차: 높은 값은 더 넓은 밴드(더 많은 신호), 낮은 값은 더 좁은 밴드(더 정확한 신호) 생성
■ 과매수/과매도 레벨 조정
• CCI 레벨: 변동성이 큰 시장에서는 더 극단적인 값(±200)으로 조정
• 선형회귀 밴드 레벨: 시장 상황에 따라 ±300 또는 ±200으로 조정 가능
─────────────────────────────────────
◆ 다른 지표와의 시너지
• 볼린저 밴드: 가격 차트의 볼린저 밴드와 함께 사용하여 가격 변동성과 CCI 변동성 비교
• MACD: 모멘텀과 추세 확인을 위해 MACD와 함께 사용
• 피보나치 되돌림: CCI 선형회귀 밴드 신호를 주요 지지/저항 레벨과 함께 확인
• 이동평균선: 이동평균 교차와 CCI 선형회귀 밴드 신호를 결합하여 신뢰성 향상
─────────────────────────────────────
◆ 결론
52SIGNAL RECIPE CCI 선형회귀 밴드는 전통적인 CCI와 선형회귀 분석을 결합하여 강력하고 정확한 기술적 분석 도구를 제공합니다. 이중 과매수/과매도 시스템은 트레이딩 신호의 정확도를 높이고 추세 방향과 강도를 명확하게 시각화하여 트레이더의 의사 결정을 돕습니다. 다양한 설정을 트레이딩 스타일과 시장 상황에 맞게 조정하여 최적의 결과를 얻을 수 있습니다.
─────────────────────────────────────
※ 면책 조항: 과거 성과가 미래 결과를 보장하지 않습니다. 항상 적절한 리스크 관리 전략을 사용하세요.
Rifle UnifiedThis script is designed for use on 30-second charts of Dow Jones-related symbols (YM, MYM, US30). It provides automated buy and sell signals using a combination of price action, RSI (Relative Strength Index), and volume analysis. The script is intended for both live trading signals and backtesting, with configurable risk management and debugging features.
Core Functionality
1. Signal Generation Logic
Trigger: The algorithm looks for a sharp price move (drop or rise) of a user-defined threshold (default: 80 points) within a specified lookback window (default: 20 minutes).
Levels: It monitors for price drops below specific numerical levels ending in 23, 43, or 73 (e.g., 42223, 42273).
RSI Condition: When price falls below one of these levels and the RSI is below 30, the setup is considered active.
Buy Signal: A buy is triggered if, after setup:
Price rises back above the level,
The RSI rate of change (ROC) indicates exhaustion of the drop,
The current bar shows positive momentum.
2. Trade Management
Stop Loss & Take Profit: Configurable fixed or trailing stop loss and take profit levels are plotted and managed automatically.
Exit Signals: The script signals exit based on price action relative to these risk management levels.
3. Filters & Enhancements
Parabolic Move Filter: Prevents entries during extreme price moves.
Dead Cat Bounce Filter: Avoids false signals after sharp reversals.
Volume Filter: Optionally requires volume conditions for trade entries (especially for shorts).
Multiple Confirmation Layers : Includes checks for 5-minute RSI, momentum, and price retracement.
User Inputs & Customization
Trade Direction: Toggle between LONG and SHORT signal generation.
Trigger Settings: Adjust thresholds for price moves, lookback windows, RSI ROC, and volume requirements.
Trade Settings: Set take profit, stop loss, and trailing stop behavior.
Debug & Visualization: Enable or disable various plots, labels, and debug tables for in-depth analysis.
Backtesting: Integrated backtester with summary and detailed statistics tables.
Technical Features
Uses External Libraries: Relies on RifleShooterLib for core logic and BackTestLib for backtesting and statistics.
Multi-timeframe Analysis: Incorporates both 30-second and 5-minute RSI calculations.
Chart Annotations: Plots entry/exit points, risk levels, and debug information directly on the chart.
Alert Conditions: Built-in alert triggers for key events (initial move, stall, entry).
Intended Use
Markets: Dow Jones symbols (YM, MYM, US30, or US30 CFD).
Timeframe: 30-second chart.
Purpose: Automated signal generation for discretionary or algorithmic trading, with robust risk management and backtesting support.
Notable Customization & Extension Points
Momentum Calculation: Plans to replace the current momentum measure with "sqz momentum".
Displacement Logic: Future update to use "FVG concept" for displacement.
High-Contrast RSI: Optional visual enhancements for RSI extremes.
Time-based Stop: Consideration for adding a time-based stop mechanism.
This script is highly modular, with extensive user controls, and is suitable for both live trading and historical analysis of Dow Jones index movements
Institutional Momentum Scanner [IMS]Institutional Momentum Scanner - Professional Momentum Detection System
Hunt explosive price movements like the professionals. IMS identifies maximum momentum displacement within 10-bar windows, revealing where institutional money commits to directional moves.
KEY FEATURES:
▪ Scans for strongest momentum in rolling 10-bar windows (institutional accumulation period)
▪ Adaptive filtering reduces false signals using efficiency ratio technology
▪ Three clear states: LONG (green), SHORT (red), WAIT (gray)
▪ Dynamic volatility-adjusted thresholds (8% ATR-scaled)
▪ Visual momentum flow with glow effects for signal strength
BASED ON:
- Pocket Pivot concept (O'Neil/Morales) applied to price momentum
- Adaptive Moving Average principles (Kaufman KAMA)
- Market Wizards momentum philosophy
- Institutional order flow patterns (5-day verification window)
HOW IT WORKS:
The scanner finds the maximum price displacement in each 10-bar window - where the market showed its hand. An adaptive filter (5-bar regression) separates real moves from noise. When momentum exceeds the volatility-adjusted threshold, states change.
IDEAL FOR:
- Momentum traders seeking explosive moves
- Swing traders (especially 4H timeframe)
- Position traders wanting institutional footprints
- Anyone tired of false breakout signals
Default parameters (10,5) optimized for 4H charts but adaptable to any timeframe. Remember: The market rewards patience and punishes heroes. Wait for clear signals.
"The market is honest. Are you?"
MACD Trend StatusOverview:
The Dynamic MACD Trend Status indicator is a sophisticated yet easy-to-interpret tool designed to provide instant, color-coded insights into the current MACD momentum and trend strength directly on your chart. Unlike traditional MACD indicators that clutter your main price panel, this indicator distills complex MACD calculations into a single, prominent text label, ideal for quick confirmations and fast-paced trading.
It features two distinct logic modes, allowing you to customize its sensitivity and confirmation level, making it adaptable to various market conditions and trading styles.
Key Features & How It Works:
Two Selectable Logic Modes:
This indicator offers a unique dropdown setting (Logic Selection) to switch between two powerful MACD interpretation algorithms:
a) Option 3 (Robust) - (Default)
This is the most stringent and reliable mode, designed to filter out market noise and highlight only strong, accelerating trends. It declares a "Bullish" or "Bearish" status when ALL of the following conditions are met:
Bullish: MACD Line is above Signal Line AND MACD Histogram is positive AND MACD Histogram is increasing (momentum is accelerating) AND both MACD Line and Signal Line are above the Zero Line (confirming an overall uptrend).
Bearish: MACD Line is below Signal Line AND MACD Histogram is negative AND MACD Histogram is decreasing (momentum is accelerating) AND both MACD Line and Signal Line are below the Zero Line (confirming an overall downtrend).
Neutral: If none of the above strong conditions are met, indicating sideways movement, weakening momentum, or a transition phase.
b) Option 4 (Simplified + Enhanced)
This mode offers a more responsive signal while still providing a clear distinction for exceptionally strong moves. It determines status based on:
"MACD Bullish +" (Super Bullish): If all the rigorous conditions of "Option 3 (Robust) - Bullish" are met. This provides an immediate visual cue of extreme bullish strength within the simpler logic.
"MACD Bearish +" (Super Bearish): If all the rigorous conditions of "Option 3 (Robust) - Bearish" are met. This highlights exceptional bearish strength.
"MACD Bullish": MACD Line is above Signal Line AND MACD Histogram is positive (basic bullish momentum).
"MACD Bearish": MACD Line is below Signal Line AND MACD Histogram is negative (basic bearish momentum).
"MACD Neutral": If none of the above conditions are met.
Instant Color-Coded Status:
The indicator provides clear visual feedback through dynamic text colors:
Green: "MACD Bullish" (Standard Bullish)
Red: "MACD Bearish" (Standard Bearish)
Gray: "MACD Neutral" (Choppy/Unclear)
Blue: "MACD Bullish +" (Enhanced Strong Bullish - when using Option 4)
Fuchsia/Purple: "MACD Bearish +" (Enhanced Strong Bearish - when using Option 4)
(Note: Colors for "+" signals are customizable in the code if you wish)
Unobtrusive Display:
The status is displayed in a transparent, discreet table positioned at the middle-right of your main chart panel. This avoids cluttering the top corners or the indicator sub-panel, keeping your price action clear.
Ideal Use Cases:
Quick Confirmation: Rapidly confirm your trade ideas with a glance at the MACD's underlying momentum.
Scalping & Day Trading: The instant visual feedback is invaluable for fast-paced short-term strategies.
Momentum Filtering: Use it to filter trades, ensuring you're entering when MACD momentum is in your favor.
Complementary Tool: Designed to work hand-in-hand with your primary analysis (price action, support/resistance, other indicators). It's not intended as a standalone signal but as a powerful re-confirmation tool.
Customization Options:
MACD Settings: Adjust Fast Length, Slow Length, and Signal Length.
Logic Selection: Toggle between "Option 3 (Robust)" and "Option 4 (Simplified)" for different sensitivities.
Show Status Text: Toggle the visibility of the status text On/Off.
Text Size: Choose from "tiny", "small", "normal", "large", "huge" for optimal visibility.
Important Disclaimer:
This indicator is a technical analysis tool and should be used as part of a comprehensive trading strategy. It is not financial advice. Trading in financial markets involves substantial risk, and you could lose money. Always perform your own research and risk management.
ANDROMEDA - Directional Strength Matrix [Multi-Asset]ANDROMEDA - Directional Strength Matrix
Pedro Canto – Portfolio Manager | CGA/CGE
OVERVIEW
The Directional Strength Matrix is a multi-symbol indicator designed to track and compare the directional momentum of up to five financial instruments simultaneously.
It builds upon the logic of the classic Currency Strength Slope, but expands its utility beyond currencies—making it applicable to indices, commodities, stocks, and crypto assets. The core of the system relies on a normalized slope algorithm, using a TMA-compensated moving average and ATR-based scaling to deliver accurate, real-time momentum readings.
This tool is ideal for traders seeking a quantitative view of strength and weakness across multiple assets, enabling fast relative analysis and improved decision-making in both trend-following and mean-reversion strategies.
---
WALKTHROUGH
Each asset’s directional strength is calculated using the slope of a weighted moving average (WMA), adjusted for volatility using the Average True Range (ATR). To reduce lag while maintaining stability, a TMA-compensated formula is applied — replicating behavior seen in the classic MQL4 CSS Indicator.
The normalized slope values are plotted as independent lines in a dedicated window, making it easy to spot which assets are strengthening or weakening at any given moment.
Key logic flow:
i) Calculate a TMA-style WMA for each instrument
ii) Estimate directional slope via differential between current and previous weighted averages
iii) Normalize by ATR to make values comparable across different assets and price ranges
iv) Plot all slope values on a shared matrix
Traders can compare multiple symbols side by side and visually identify the relative direction, strength, and acceleration of each asset.
---
USE CASES
- Comparing strength across indices like US30, US500, NASDAQ, Oil and Crypto
- Detecting early momentum shifts between competing assets
- Timing entries based on momentum divergence or alignment
- Filtering out weaker assets in trend strategies
- Creating custom strength overlays in multi-asset dashboards
---
KEY FEATURES
1. Multi-Asset Capability
Analyze up to 5 assets in real time, including the chart’s native symbol plus 4 customizable inputs.
2. TMA-Compensated Slope Algorithm
Provides low-lag slope estimation with high reactivity and accuracy.
3. ATR-Based Normalization
Ensures comparability across assets with different price scales and volatility levels.
4. Customizable Color Scheme
Assign distinct colors to each asset line for clean visual separation.
5. Real-Time Responsiveness
Supports shift adjustments to align with candle timing (real-time or closed-bar mode).
6. Compatible with All Asset Classes
Works with forex, indices, commodities, stocks, and crypto (a major improvement from the original Currency Strength Slope Indicator).
---
INPUTS AND CUSTOMIZATION
- Moving Average Period: Adjustable WMA length
- ATR Period: Volatility scaling parameter
- Shift: Choose between real-time view (-1) or closed-candle confirmation (0)
- Asset Inputs: Symbol selection for Asset 2 to 5
- Colors: Fully customizable for each line
---
DISCLAIMER
This indicator is a tool for technical analysis and educational purposes only. It is not intended as financial advice or a trading signal provider. Always apply proper risk management and consider fundamental and macroeconomic context before making investment decisions.
Past performance does not guarantee future results.
Better MACD📘 Better MACD – Adaptive Momentum & Divergence Suite
Better MACD is a comprehensive momentum-trend tool that evolves the traditional MACD into a multi-dimensional, divergence-aware oscillator. It leverages exponential smoothing across logarithmic rate-of-change of OHLC data, adaptive signal processing, and intelligent divergence detection logic to provide traders with earlier, smoother, and more reliable momentum signals.
This indicator is built for professional-level analysis, suitable for scalping, swing trading, and trend-following systems.
🧬 Core Concept
Unlike the classic MACD which subtracts two EMAs of price, Better MACD constructs a signal by:
Applying logarithmic transformation on the change between OHLC components (Close, High, Low, Open).
Using double EMA smoothing to filter noise and volatility, Triangular method. 1st to 2nd Smoothing.
Averaging and de-biasing the results through a custom linear regression model, 4th Smoothing.
Subtracting a fast SMA and slow SMA response to yield a dynamic MACD value, 3rd Smoothing.
The result is a smooth, adaptive, and high-resolution MACD-style oscillator that responds more naturally to trend conditions and price geometry.
🧠 Features Breakdown
1. 📈 Multi-Layer MACD Engine
Src1: Smoothed Log Rate-of-Change on Close
Src2: Smoothed Log Rate-of-Change on High
Src3: Smoothed Log Rate-of-Change on Low
Src4: Smoothed Log Rate-of-Change on Open
These are blended using highest high, lowest low, and average Close price over a configurable window for more complete trend detection. The open-based Src4 is subtracted using SMA.
2. 🧮 Signal Line
A fast EMA (signalLength) of the Better MACD value is used for crossover logic.
Crossovers of MACD and Signal line signal potential entries or exits.
3. 📊 MACD Histogram
Visualizes the difference between MACD and Signal line.
Dynamically color-coded:
Green/Light Green for bullish impulse
Red/Pink for bearish impulse
Width and color intensity reflect strength and momentum slope.
🎨 Visual Enhancements
Feature Description
✅ Ribbon Fill Optional fill between MACD and Signal line, colored by trend direction
✅ Zero-Line Background Background highlights above/below 0 to easily read bullish/bearish bias
✅ Crossover Highlights Tiny circles plotted when MACD crosses Signal line
🔍 Divergence Detection Suite
The script includes a full Divergence Engine to detect:
🔼 Bullish Regular Divergence (Price lower lows + Indicator higher lows)
🔽 Bearish Regular Divergence (Price higher highs + Indicator lower highs)
🟢 Bullish Hidden Divergence (Price higher lows + Indicator lower lows)
🔴 Bearish Hidden Divergence (Price lower highs + Indicator higher highs)
🧩 Divergence Modes:
Supports both Regular, Hidden, or Both simultaneously
Detects from either Close Price or Heikin Ashi-derived candles
Uses dynamic pivot tracking with configurable lookback and divergence sensitivity
Divergence lines are labeled, colored, and plotted in real-time
🔁 Styling & Customization:
Choose from Solid, Dashed, or Dotted line styles
Configure separate colors and widths for all divergence types
Control number of divergence lines visible or only show the most recent
Divergences update live without repainting
⚠️ Alerts
Alerts are built-in for real-time notification:
MACD Histogram reversals (rising → falling, or vice versa)
Divergence signals (all 4 types, grouped and individually)
Combines seamlessly with TradingView alerts for actionable triggers
🔧 Input Controls (Grouped by Purpose)
Better MACD Group
1st–4th Smoothing Lengths: Controls responsiveness of MACD core engine
Signal Length: Smoothness of signal line
Toggles for crossover highlights, zero cross fills, and ribbon fills
Divergence Settings
Enable/disable divergence lines
Choose divergence type (Regular, Hidden, Both)
Set confirmation requirements
Customize pivot detection and bar search depth
Styling Options
Colors, line widths, and line styles for each divergence type
Heikin Ashi Mode for smoother pivots and divergences
🧠 How to Use
✅ For Trend Traders:
Use MACD > Signal + Histogram > 0 → Bullish confirmation
MACD < Signal + Histogram < 0 → Bearish confirmation
Wait for pullbacks with hidden divergences to enter in trend direction
✅ For Reversal Traders:
Look for Regular Divergences at trend exhaustion points
Combine with price action (e.g., support/resistance or candle pattern)
✅ For Swing & Day Traders:
Enable Heikin Ashi Mode for smoother divergence pivots
Use zero line background + histogram color to time entries
📌 Summary
Feature Description
🚀 Advanced MACD Core Smoother, more reliable, multi-source-based MACD
🔍 Divergence Engine Detects 4 divergence types with pivot logic
🎯 Real-Time Alerts Alerts for histogram slope and divergences
🎛️ Deep Customization Full styling, smoothing, and detection controls
📉 Heikin Ashi Support Improved signal quality in trend-based markets
ANDROMEDA - TrendSyncANDROMEDA - TrendSync
Pedro Canto - Portfolio Manager | CGA/CGE
OVERVIEW
Trend Sync is a multi-layered trend-following indicator designed to help traders identify high-probability trend continuation setups while avoiding low-quality entries caused by overbought or oversold market conditions.
This indicator combines the power of Moving Averages (MA), MACD , and a visual RSI-based filter to validate both trend direction and timing for entries. It's goal is simple: filter out noise and highlight only the most technically relevant buy and sell signals based on objective momentum and trend criteria.
---
WALKTHROUGH
This indicator is built for traders seeking to operate in the direction of established trends. It's core principle is to identify and validate current trend conditions, and then signal entry opportunities during pullbacks to key moving averages.
Trend identification is achieved through the alignment of two moving averages. When these MAs are crossed and angled in the same direction, they confirm that a trend is in progress. To double-confirm trend direction, the MACD histogram is used—only. When both the MAs and MACD are aligned in the same direction, then the trend is considered valid.
Once all trend criteria are met, a dynamic coloring system is activated to visually reinforce the trend across the candles and moving averages.
To avoid poor entries during market exhaustion, an RSI-based filter is used. This short-term RSI highlights overbought or oversold zones, helping traders filter trades in extreme price conditions.
Only when the trend is validated and price pulls back to one of the MAs will a buy/sell signal be triggered, aligning momentum, price action and timing into a single actionable setup.
This combination ensures that each component plays a specific role:
i) Moving Averages define the trend
ii) MACD validates it
iii) RSI filters noise
iv) Intrabar price action triggers entries
This synchronism helps improve decision-making and entry timing, especially for swing and intraday traders.
---
USE CASES
- Identifying trend continuation setups
- Filtering false signals during consolidation phases
- Avoiding trades in overbought or oversold zones
- Enhancing entry timing for both swing and intraday strategies
- Providing visual confirmation of trend strength and momentum alignment
---
KEY FEATURES
1. Dual Moving Average Setup
The indicator allows full customization of two moving averages (MA1 and MA2), supporting both EMA and SMA types. The slope of the longer MA (MA2) acts as an essential trend filter, ensuring signals are only generated when the market shows clear directional bias.
2. MACD Histogram Trend Confirmation
A classic MACD Histogram calculation is used to validate the momentum of the prevailing trend.
- Bullish Trend: Histogram > 0
- Bearish Trend: Histogram < 0
This step filters out counter-trend signals and ensures trades are aligned with momentum.
3. Intrabar Price Trigger
Unlike standard crossover systems, this indicator waits for intrabar price action to trigger entries:
- Buy Signal: Price crosses below one of the MAs during an uptrend (dip-buy logic)
- Sell Signal: Price crosses above one of the MAs during a downtrend (rally-sell logic)
This intrabar trigger improves entry timing and helps capture retracement-based opportunities.
4. RSI Visual Filter
A short-term RSI is plotted and color-coded to visually highlight overbought and oversold conditions, acting as a discretionary filter for users to avoid low-probability trades during exhaustion points.
5. Dynamic Coloring System
Bar Colors:
- Blue: Bullish trend
- Red: Bearish trend
- Orange: RSI Overbought/Oversold zones
MA Colors:
- Blue for bullish conditions
- Red for bearish conditions
- Gray for neutral/no-trend phases
6. Signal Markers and Alerts
Clear visual buy and sell markers are plotted directly on the chart.
Additionally, the indicator includes real-time alerts for both Buy and Sell signals, helping traders stay informed even when away from the screen.
---
INPUTS AND CUSTOMIZATION OPTIONS
- Moving Average Types: EMA or SMA for both MA1 and MA2.
- MACD Settings: Customizable fast, slow, and signal periods.
- RSI Settings: Source, length, and overbought/oversold levels fully adjustable.
- Color Customization: Adjust RSI zone colors to suit your chart theme.
---
DISCLAIMER
This indicator is a technical analysis tool designed for educational and informational purposes only. It should not be used as a standalone trading system. Always combine it with sound risk management, price action analysis, and, where applicable, fundamental context.
Past performance does not guarantee future results.
Chandelier Exit Oscillator [LuxAlgo]The Chandelier Exit Oscillator is a technical analysis tool that provides insights into potential trend reversals, momentum shifts, and trend continuation patterns, helping traders pinpoint optimal exit points for both long and short positions.
By calculating trailing stop levels based on a multiple of the Average True Range (ATR), the oscillator visually indicates when prices move above or below these critical stop levels.
This script uniquely combines the Chandelier Exit indicator with an oscillator format, equipping traders with a versatile tool that leverages ATR-based levels for enhanced trend analysis.
🔶 USAGE
Displaying the Chandelier Exit as an oscillator allows traders to gauge trend momentum and strength, recognize potential reversals, and refine their market insights.
The Timeframe option specifies the timeframe used for calculations, enabling multi-timeframe analysis and allowing traders to align the indicator’s signals with broader or narrower market trends.
The Chandelier Exit Oscillator allows users to select between a Regular or Normalized oscillator type. The Regular option displays raw oscillator values, while the Normalized version smooths values and scales them from 0 to 100.
The Chandelier Exit Overlay allows users to enable or disable the display of Chandelier Exit levels directly on the price chart. When enabled, this overlay plots trailing stop levels for both long and short positions, helping traders visually monitor potential exit points and trend boundaries alongside the price action.
The Trend-based Bar Color feature allows users to color the bars on the price chart according to the current trend direction. This visual differentiation aids in quicker decision-making and provides a clearer understanding of market dynamics.
🔶 SETTINGS
🔹 Chandelier Exit Settings
Timeframe: Sets the timeframe for calculations, allowing multi-timeframe analysis.
ATR Length: Defines the number of bars used for calculating the Average True Range (ATR), which helps in setting Chandelier Exit levels.
ATR Multiplier: Adjusts the sensitivity of the Chandelier Exit lines based on the ATR. Higher values make the indicator more conservative, while lower values make it more responsive.
🔹 Chandelier Exit Oscillator
Chandelier Exit Oscillator: Allows users to choose between a Regular or Normalized oscillator type. The Regular option displays raw oscillator values, while the Normalized version smooths values and scales them from 0 to 100.
Oscillator Smoothing: Controls the level of smoothing applied to the oscillator. Higher smoothing values filter out minor fluctuations.
🔹 Chandelier Exit Overlay
Chandelier Exit Overlay: Enables or disables the display of Chandelier Exit levels directly on the price chart.
Trend-based Bar Colors: Allows users to color bars based on trend direction, enhancing the visual analysis of market direction.
🔶 RELATED SCRIPTS
Market-Structure-Oscillator
RSI OS/OB Background StripesThe "RSI OS/OB Background Stripes" indicator is a simple tool designed to help traders visualize overbought and oversold market conditions using the Relative Strength Index (RSI). It highlights these conditions by displaying colored background stripes directly on your chart, making it easy to spot potential trading opportunities.
How It Works:RSI Calculation: The indicator calculates the RSI, a popular momentum indicator that measures the speed and change of price movements, using a default period of 14 (customizable).
Overbought/Oversold Levels: It marks areas where the RSI is above a user-defined overbought level (default: 70) with red background stripes, and below an oversold level (default: 30) with green background stripes.
Visual Feedback: The colored stripes appear on the chart when the RSI enters overbought (red) or oversold (green) zones, helping you quickly identify market conditions.
Customization: You can adjust the RSI period, overbought/oversold levels, background colors, and transparency. You can also choose to show the RSI line in a separate panel or display RSI values on the chart for debugging.
Alerts: The indicator includes optional alerts that notify you when the RSI crosses into overbought or oversold territory.
Who It’s For: This indicator is perfect for beginner and intermediate traders who want a clear, visual way to track RSI-based overbought and oversold conditions without cluttering their charts.
Key Features:Easy-to-read background stripes for overbought (red) and oversold (green) conditions.
Fully customizable RSI settings, colors, and transparency.
Optional RSI plot and value display for deeper analysis.
Alerts to keep you informed of key RSI level crossings.
This indicator is a straightforward way to monitor market momentum and make informed trading decisions.
TTM Squeeze Value OscillatorThis indicator is specifically designed for use with TradingView's Stock Screener, not for chart analysis. It provides numerical values and binary signals that allow traders to efficiently scan stocks for specific TTM Squeeze conditions, momentum patterns, and EMA alignments.
What It Does
The TTM Squeeze Value Oscillator converts the popular TTM Squeeze indicator into a screenable format by outputting specific numerical values and binary signals (1 or 0) that can be filtered in TradingView's screener tool.
Key Features
1. TTM Squeeze Compression Levels
Value 0: Low Compression (Black) - Bollinger Bands inside outer Keltner Channels
Value 1: Mid Compression (Red) - Bollinger Bands inside middle Keltner Channels
Value 2: High Compression (Orange) - Bollinger Bands inside inner Keltner Channels
Value 3: Squeeze Fired (Green) - Bollinger Bands outside Keltner Channels
2. Momentum Analysis
Four distinct momentum conditions based on TTM Squeeze methodology:
Buy Momentum Increasing - Positive momentum growing stronger
Buy Momentum Decreasing - Positive momentum weakening
Sell Momentum Increasing - Negative momentum growing stronger
Sell Momentum Decreasing - Negative momentum weakening
3. EMA Stacking Analysis
Three EMA alignment patterns using 8, 21, and 48 period EMAs:
EMA Stacked Bullish - 8 EMA > 21 EMA > 48 EMA (uptrend alignment)
EMA Stacked Bearish - 8 EMA < 21 EMA < 48 EMA (downtrend alignment)
EMA Mixed - EMAs not in clear bullish or bearish alignment
4. Consecutive Day Counters
Tracks how many consecutive days each squeeze condition has persisted:
Low Compression Days
Mid Compression Days
High Compression Days
Squeeze Fired Days
5. Combined Signal Analysis
Pre-calculated combinations of squeeze conditions with momentum:
All squeeze levels combined with all four momentum conditions
16 total combined signals for advanced screening
Contrarian RSIContrarian RSI Indicator
Pairs nicely with Contrarian 100 MA (optional hide/unhide buy/sell signals)
Description
The Contrarian RSI is a momentum-based technical indicator designed to identify potential reversal points in price action by combining a unique RSI calculation with a predictive range model inspired by the "Contrarian 5 Levels" logic. Unlike traditional RSI, which measures price momentum based solely on price changes, this indicator integrates a smoothed, weighted momentum calculation and predictive price ranges to generate contrarian signals. It is particularly suited for traders looking to capture reversals in trending or range-bound markets.
This indicator is versatile and can be used across various timeframes, though it performs best on higher timeframes (e.g., 1H, 4H, or Daily) due to reduced noise and more reliable signals. Lower timeframes may require additional testing and careful parameter tuning to optimize performance.
How It Works
The Contrarian RSI combines two primary components:
Predictive Ranges (5 Levels Logic): This calculates a smoothed price average that adapts to market volatility using an ATR-based mechanism. It helps identify significant price levels that act as potential support or resistance zones.
Contrarian RSI Calculation: A modified RSI calculation that uses weighted momentum from the predictive ranges to measure buying and selling pressure. The result is smoothed and paired with a user-defined moving average to generate clear signals.
The indicator generates buy (long) and sell (exit) signals based on crossovers and crossunders of user-defined overbought and oversold levels, making it ideal for contrarian trading strategies.
Calculation Overview
Predictive Ranges (5 Levels Logic):
Uses a custom function (pred_ranges) to calculate a dynamic price average (avg) based on the ATR (Average True Range) multiplied by a user-defined factor (mult).
The average adjusts only when the price moves beyond the ATR threshold, ensuring responsiveness to significant price changes while filtering out noise.
This calculation is performed on a user-specified timeframe (tf5Levels) for multi-timeframe analysis.
Contrarian RSI:
Compares consecutive predictive range values to calculate gains (g) and losses (l) over a user-defined period (crsiLength).
Applies a Gaussian weighting function (weight = math.exp(-math.pow(i / crsiLength, 2))) to prioritize recent price movements.
Computes a "wave ratio" (net_momentum / total_energy) to normalize momentum, which is then scaled to a 0–100 range (qrsi = 50 + 50 * wave_ratio).
Smooths the result with a 2-period EMA (qrsi_smoothed) for stability.
Moving Average:
Applies a user-selected moving average (SMA, EMA, WMA, SMMA, or VWMA) with a customizable length (maLength) to the smoothed RSI (qrsi_smoothed) to generate the final indicator value (qrsi_ma).
Signal Generation:
Long Entry: Triggered when qrsi_ma crosses above the oversold level (oversoldLevel, default: 1).
Long Exit: Triggered when qrsi_ma crosses below the overbought level (overboughtLevel, default: 99).
Entry and Exit Rules
Long Entry: Enter a long position when the Contrarian RSI (qrsi_ma) crosses above the oversold level (default: 1). This suggests the asset is potentially oversold and due for a reversal.
Long Exit: Exit the long position when the Contrarian RSI (qrsi_ma) crosses below the overbought level (default: 99), indicating a potential overbought condition and a reversal to the downside.
Customization: Adjust overboughtLevel and oversoldLevel to fine-tune sensitivity. Lower timeframes may benefit from tighter levels (e.g., 20 for oversold, 80 for overbought), while higher timeframes can use extreme levels (e.g., 1 and 99) for stronger reversals.
Timeframe Considerations
Higher Timeframes (Recommended): The indicator is optimized for higher timeframes (e.g., 1H, 4H, Daily) due to its reliance on predictive ranges and smoothed momentum, which perform best with less market noise. These timeframes typically yield more reliable reversal signals.
Lower Timeframes: The indicator can be used on lower timeframes (e.g., 5M, 15M), but signals may be noisier and require additional confirmation (e.g., from price action or other indicators). Extensive backtesting and parameter optimization (e.g., adjusting crsiLength, maLength, or mult) are recommended for lower timeframes.
Inputs
Contrarian RSI Length (crsiLength): Length for RSI momentum calculation (default: 5).
RSI MA Length (maLength): Length of the moving average applied to the RSI (default: 1, effectively no MA).
MA Type (maType): Choose from SMA, EMA, WMA, SMMA, or VWMA (default: SMA).
Overbought Level (overboughtLevel): Upper threshold for exit signals (default: 99).
Oversold Level (oversoldLevel): Lower threshold for entry signals (default: 1).
Plot Signals on Main Chart (plotOnChart): Toggle to display signals on the price chart or the indicator panel (default: false).
Plotted on Lower:
Plotted on Chart:
5 Levels Length (length5Levels): Length for predictive range calculation (default: 200).
Factor (mult): ATR multiplier for predictive ranges (default: 6.0).
5 Levels Timeframe (tf5Levels): Timeframe for predictive range calculation (default: chart timeframe).
Visuals
Contrarian RSI MA: Plotted as a yellow line, representing the smoothed Contrarian RSI with the applied moving average.
Overbought/Oversold Lines: Red line for overbought (default: 99) and green line for oversold (default: 1).
Signals: Blue circles for long entries, white circles for long exits. Signals can be plotted on the main chart (plotOnChart = true) or the indicator panel (plotOnChart = false).
Usage Notes
Use the indicator in conjunction with other tools (e.g., support/resistance, trendlines, or volume) to confirm signals.
Test extensively on your chosen timeframe and asset to optimize parameters like crsiLength, maLength, and mult.
Be cautious with lower timeframes, as false signals may occur due to market noise.
The indicator is designed for contrarian strategies, so it works best in markets with clear reversal patterns.
Disclaimer
This indicator is provided for educational and informational purposes only. Always conduct thorough backtesting and risk management before using any indicator in live trading. The author is not responsible for any financial losses incurred.
Momentum Trail Oscillator [AlgoAlpha]🟠 OVERVIEW
This script builds a Momentum Trail Oscillator designed to measure directional momentum strength and dynamically track shifts in trend bias using a combination of smoothed price change calculations and adaptive trailing bands. The oscillator aims to help traders visualize when momentum is expanding or contracting and to identify transitions between bullish and bearish conditions.
🟠 CONCEPTS
The core idea combines two methods. First, the script calculates a normalized momentum measure by smoothing price changes relative to their absolute values, which creates a bounded oscillator that highlights whether moves are directional or choppy. Second, it uses a trailing band mechanism inspired by volatility stops, where bands adapt to the oscillator’s volatility, adjusting the thresholds that define a shift in directional bias. This dual approach seeks to address both the magnitude and persistence of momentum, reducing false signals in ranging markets.
🟠 FEATURES
The momentum calculation applies Hull Moving Averages and double EMA smoothing to price changes, producing a smooth, responsive oscillator.
The trailing bands are derived by offsetting a weighted moving average of the oscillator by a multiple of recent momentum volatility. A directional state variable tracks whether the oscillator is above or below the bands, updating when the momentum crosses these dynamic thresholds.
Overbought and oversold zones are visually marked between fixed levels (+30/+40 and -30/-40), with color fills to highlight when momentum is in extreme areas. The script plots signals on both the oscillator pane and optionally overlays markers on the main price chart for clarity.
🟠 USAGE
To use the indicator, apply it to any symbol and timeframe. The “Oscillator Length” controls how sensitive the momentum line is to recent price changes—lower values react faster, higher values smooth out noise. The “Trail Multiplier” sets how far the adaptive bands sit from the oscillator mid-line, which affects how often trend state changes occur. When the momentum line rises into the upper filled area and then crosses back below +40, it signals potential overbought exhaustion. The opposite applies for the oversold zone below -40. The plotted trailing bands switch visibility depending on the current directional state: when momentum is trending up, the lower band acts as the active trailing stop, and when trending down, the upper band becomes active. Trend changes are marked with circular symbols when the direction variable flips, and optional overlay arrows appear on the price chart to highlight overbought or oversold reversals. Traders can combine these signals with their own price action or volume analysis to confirm entries or exits.