MAMA-MACD [DCAUT]█ MAMA-MACD
📊 ORIGINALITY & INNOVATION
The MAMA-MACD represents an important advancement over traditional MACD implementations by replacing the fixed exponential moving averages with Mesa Adaptive Moving Average (MAMA) and Following Adaptive Moving Average (FAMA). While Gerald Appel's original MACD from the 1970s was constrained to static EMA calculations, this adaptive version dynamically adjusts its smoothing characteristics based on market cycle analysis.
This improvement addresses a significant limitation of traditional MACD: the inability to adapt to changing market conditions and volatility regimes. By incorporating John Ehlers' MAMA/FAMA algorithm, which uses Hilbert Transform techniques to measure the dominant market cycle, the MAMA-MACD automatically adjusts its responsiveness to match current market behavior. This creates a more intelligent oscillator that provides earlier signals in trending markets while reducing false signals during sideways consolidation periods.
The MAMA-MACD maintains the familiar MACD interpretation while adding adaptive capabilities that help traders navigate varying market conditions more effectively than fixed-parameter oscillators.
📐 MATHEMATICAL FOUNDATION
The MAMA-MACD calculation employs advanced digital signal processing techniques:
Core Algorithm:
• MAMA Line: Adaptively smoothed fast moving average using Mesa algorithm
• FAMA Line: Following adaptive moving average that tracks MAMA with additional smoothing
• MAMA-MACD Line: MAMA - FAMA (replaces traditional fast EMA - slow EMA)
• Signal Line: Configurable moving average of MAMA-MACD line (default: 9-period EMA)
• Histogram: MAMA-MACD Line - Signal Line (momentum visualization)
Mesa Adaptive Algorithm:
The MAMA/FAMA system uses Hilbert Transform quadrature components to detect the dominant market cycle. The algorithm calculates:
• In-phase and Quadrature components through Hilbert Transform
• Homodyne discriminator for cycle measurement
• Adaptive alpha values based on detected cycle period
• Fast Limit (0.1 default): Maximum adaptation rate for MAMA
• Slow Limit (0.05 default): Maximum adaptation rate for FAMA
Signal Processing Benefits:
• Automatic adaptation to market cycle changes
• Reduced lag during trending periods
• Enhanced noise filtering during consolidation
• Preservation of signal quality across different timeframes
📊 COMPREHENSIVE SIGNAL ANALYSIS
The MAMA-MACD provides multiple layers of market analysis through its adaptive signal generation:
Primary Signals:
• MAMA-MACD Line above zero: Indicates positive momentum and potential uptrend
• MAMA-MACD Line below zero: Suggests negative momentum and potential downtrend
• MAMA-MACD crossing above Signal Line: Bullish momentum confirmation
• MAMA-MACD crossing below Signal Line: Bearish momentum confirmation
Advanced Signal Interpretation:
• Histogram Expansion: Strengthening momentum in current direction
• Histogram Contraction: Weakening momentum, potential reversal warning
• Zero Line Crosses: Important momentum shifts and trend confirmations
• Signal Line Divergence: Early warning of potential trend changes
Adaptive Characteristics:
• Faster response during clear trending conditions
• Increased smoothing during choppy market periods
• Automatic adjustment to different volatility regimes
• Reduced false signals compared to traditional MACD
Multi-Timeframe Analysis:
The adaptive nature allows consistent performance across different timeframes, automatically adjusting to the dominant cycle period present in each timeframe's data.
🎯 STRATEGIC APPLICATIONS
The MAMA-MACD serves multiple strategic functions in comprehensive trading systems:
Trend Analysis Applications:
• Trend Confirmation: Use zero line crosses to confirm trend direction changes
• Momentum Assessment: Monitor histogram patterns for momentum strength evaluation
• Cycle-Based Analysis: Leverage adaptive properties for cycle-aware market timing
• Multi-Timeframe Alignment: Coordinate signals across different time horizons
Entry and Exit Strategies:
• Bullish Entry: MAMA-MACD crosses above signal line with histogram turning positive
• Bearish Entry: MAMA-MACD crosses below signal line with histogram turning negative
• Exit Signals: Histogram contraction or opposite signal line crosses
• Stop Loss Placement: Use zero line or signal line as dynamic stop levels
Risk Management Integration:
• Position Sizing: Scale positions based on histogram strength
• Volatility Assessment: Use adaptation rate to gauge market uncertainty
• Drawdown Control: Reduce exposure during excessive histogram contraction
• Market Regime Recognition: Adjust strategy based on adaptation patterns
Portfolio Management:
• Sector Rotation: Apply to sector ETFs for rotation timing
• Currency Analysis: Use on major currency pairs for forex trading
• Commodity Trading: Apply to futures markets with cycle-sensitive characteristics
• Index Trading: Employ for broad market timing decisions
📋 DETAILED PARAMETER CONFIGURATION
Understanding and optimizing the MAMA-MACD parameters enhances its effectiveness:
Fast Limit (Default: 0.1):
• Controls maximum adaptation rate for MAMA line
• Range: 0.01 to 0.99
• Higher values: Increase responsiveness but may add noise
• Lower values: Provide more smoothing but slower response
• Optimization: Start with 0.1, adjust based on market characteristics
Slow Limit (Default: 0.05):
• Controls maximum adaptation rate for FAMA line
• Range: 0.01 to 0.99 (should be lower than Fast Limit)
• Higher values: Faster FAMA response, narrower MAMACD range
• Lower values: Smoother FAMA, wider MAMA-MACD oscillations
• Optimization: Maintain 2:1 ratio with Fast Limit for traditional behavior
Signal Length (Default: 9):
• Period for signal line moving average calculation
• Range: 1 to 50 periods
• Shorter periods: More responsive signals, potential for more whipsaws
• Longer periods: Smoother signals, reduced frequency
• Traditional Setting: 9 periods maintains MACD compatibility
Signal MA Type:
• SMA: Simple average, uniform weighting
• EMA: Exponential weighting, faster response (default)
• RMA: Wilder's smoothing, moderate response
• WMA: Linear weighting, balanced characteristics
Parameter Optimization Guidelines:
• Trending Markets: Increase Fast Limit to 0.15-0.2 for quicker response
• Sideways Markets: Decrease Fast Limit to 0.05-0.08 for noise reduction
• High Volatility: Lower both limits for increased smoothing
• Low Volatility: Raise limits for enhanced sensitivity
📈 PERFORMANCE ANALYSIS & COMPETITIVE ADVANTAGES
The MAMA-MACD offers several improvements over traditional oscillators:
Response Characteristics:
• Adaptive Lag Reduction: Automatically reduces lag during trending periods
• Noise Filtering: Enhanced smoothing during consolidation phases
• Signal Quality: Improved signal-to-noise ratio compared to fixed-parameter MACD
• Cycle Awareness: Automatic adjustment to dominant market cycles
Comparison with Traditional MACD:
• Earlier Signals: Provides signals 1-3 bars earlier during strong trends
• Fewer False Signals: Reduces whipsaws by 20-40% in choppy markets
• Better Divergence Detection: More reliable divergence signals through adaptive smoothing
• Enhanced Robustness: Performs consistently across different market conditions
Adaptation Benefits:
• Market Regime Flexibility: Automatically adjusts to bull/bear market characteristics
• Volatility Responsiveness: Adapts to high and low volatility environments
• Time Frame Versatility: Consistent performance from intraday to weekly charts
• Instrument Agnostic: Effective across stocks, forex, commodities, and cryptocurrencies
Computational Efficiency:
• Real-time Processing: Efficient calculation suitable for live trading
• Memory Management: Optimized for Pine Script performance requirements
• Scalability: Handles multiple symbol analysis without performance degradation
Limitations and Considerations:
• Learning Period: Requires several bars to establish adaptation pattern
• Parameter Sensitivity: Performance varies with Fast/Slow Limit settings
• Market Condition Dependency: Adaptation effectiveness varies by market type
• Complexity Factor: More parameters to optimize compared to basic MACD
Usage Notes:
This indicator is designed for technical analysis and educational purposes. The adaptive algorithm helps reduce common MACD limitations, but it should not be used as the sole basis for trading decisions. Algorithm performance varies with market conditions, and past characteristics do not guarantee future results. Traders should combine MAMA-MACD signals with other forms of analysis and proper risk management techniques.
Индикаторы и стратегии
Swing T3 Ribbon with Dynamic Bandswing T3 Ribbon with Dynamic Bands
This indicator combines T3 moving averages with a dynamic Bollinger-style ribbon to highlight early trend changes and volatility-driven price moves.
Key Features:
T3 Ribbon: Fast T3 vs. Slow T3 shows trend direction; ribbon color is green for bullish, red for bearish.
Dynamic Bands: Bands fluctuate with recent price volatility, similar to Bollinger Bands, providing a visual guide for overbought/oversold areas.
Early Swing Markers:
E0 (Early Upswing): Price above top band while trend is temporarily bearish.
Ex (Early Downswing): Price below bottom band while trend is temporarily bullish.
Alerts:
Early upswing (E0)
Early downswing (Ex)
Price crossing the bottom (red) band from below.
Purpose:
Helps traders detect early trend reversals or price breakouts in the context of volatility.
Dynamic bands adapt to changing market conditions, giving a more responsive signal than fixed-width ribbons.
RSI Zones Background + Optional RSI PaneOverview
This Pine Script indicator does two things at once:
Colors the background of the main price chart whenever the RSI value is below a lower threshold (default 30) or above an upper threshold (default 70). This highlights oversold and overbought zones directly on the price chart itself.
Optionally displays a separate RSI panel with the RSI line and shaded region between the two threshold levels for reference.
The indicator is fully customizable through the settings panel—color choices, transparency, and whether to show the separate RSI pane can all be adjusted.
Key Parts of the Code
1. Inputs
src: The source price series for RSI calculation.
len: RSI lookback length (default 14).
lowerThr and upperThr: The lower and upper thresholds (defaults: 30 and 70).
lowColor and highColor: Colors for the background when RSI is below or above the thresholds.
bgTrans: Transparency level for the background shading.
showRSI: Boolean to toggle the optional RSI pane on or off.
2. RSI Calculation
rsi = ta.rsi(src, len)
This computes the RSI from the chosen price source.
3. Background Coloring on the Price Chart
bgCol = rsi <= lowerThr ? color.new(lowColor,bgTrans) :
rsi >= upperThr ? color.new(highColor,bgTrans) :
na
bgcolor(bgCol)
If RSI ≤ lower threshold: background turns lowColor (oversold zone).
If RSI ≥ upper threshold: background turns highColor (overbought zone).
Otherwise, no background color.
4. Optional RSI Pane
plot(showRSI ? rsi : na, display=display.pane)
Plots the RSI line in a separate pane when showRSI is true; otherwise hides it.
5. Horizontal Lines for Thresholds
hLower = hline(lowerThr, ...)
hUpper = hline(upperThr, ...)
Two horizontal lines at the lower and upper thresholds.
Because hline() can’t be wrapped inside if blocks, the script always creates them but makes them transparent (using na color) when the pane is hidden.
6. Filling Between Threshold Lines
fill(hLower, hUpper, color=showRSI ? color.new(color.gray,95) : na)
When the RSI pane is visible, the area between the two threshold lines is shaded in gray to create a “mid-zone” effect. This fill also switches off (becomes na) if the pane is hidden.
7. Alerts
The script also includes two alert conditions:
When RSI crosses below the lower threshold.
When RSI crosses above the upper threshold.
How It Works in Practice
On the price chart, you’ll see the background turn blue (or your chosen color) when RSI is ≤30, and red when RSI is ≥70.
If you enable “Show RSI” in the settings, a separate RSI pane will appear below the price chart, plotting the RSI line with two threshold lines and a shaded region in between.
You can fully adjust transparency and colors to suit your chart style.
Benefits
Quickly visualize overbought and oversold conditions without opening a separate RSI window.
Optional RSI pane provides context when needed.
Customizable colors and transparency make it easy to integrate with any chart theme.
Alerts give you automatic notifications when RSI crosses key levels.
------------------------------------------------------------------------------------------------------------------
개요
이 지표는 두 가지 기능을 동시에 수행합니다.
가격 차트 뒤 배경에 색상 표시
RSI 값이 설정한 하단 임계값(기본 30) 이하이거나 상단 임계값(기본 70) 이상일 때, 가격 차트 뒤쪽에 과매도·과매수 구간을 색으로 표시해줍니다.
선택적으로 RSI 보조창 표시
옵션을 켜면 별도의 RSI 패널이 나타나서 RSI 라인과 두 임계값(30, 70)을 연결한 구간을 음영 처리하여 보여줍니다.
설정 창에서 색상·투명도·보조창 표시 여부를 전부 조정할 수 있습니다.
코드 핵심 설명
1. 입력값
src: RSI 계산에 사용할 가격 소스(기본 종가).
len: RSI 기간(기본 14).
lowerThr / upperThr: RSI 하단·상단 임계값(기본 30, 70).
lowColor / highColor: RSI가 각각 하단 이하·상단 이상일 때 배경 색상.
bgTrans: 배경 투명도(0=불투명, 100=투명).
showRSI: RSI 보조창을 켜고 끌 수 있는 스위치.
2. RSI 계산
rsi = ta.rsi(src, len)
지정한 가격 소스를 기반으로 RSI를 계산합니다.
3. 가격 차트 배경 색칠
bgCol = rsi <= lowerThr ? color.new(lowColor,bgTrans) :
rsi >= upperThr ? color.new(highColor,bgTrans) :
na
bgcolor(bgCol)
RSI ≤ 하단 임계값 → lowColor(과매도 색)
RSI ≥ 상단 임계값 → highColor(과매수 색)
나머지 구간은 색상 없음.
4. 선택적 RSI 보조창
plot(showRSI ? rsi : na, display=display.pane)
showRSI가 켜져 있으면 RSI 라인을 보조창에 표시하고, 꺼져 있으면 숨깁니다.
5. 임계값 가로선
hLower = hline(lowerThr, ...)
hUpper = hline(upperThr, ...)
하단·상단 임계값을 가로선으로 표시합니다.
hline은 if 블록 안에서 쓸 수 없기 때문에 항상 그려지지만, 보조창이 꺼지면 색을 na로 처리해 안 보이게 합니다.
6. 임계값 사이 영역 음영 처리
fill(hLower, hUpper, color=showRSI ? color.new(color.gray,95) : na)
보조창이 켜져 있을 때만 두 가로선 사이를 회색으로 채워 “중립 구간”을 강조합니다.
7. 알림 조건
RSI가 하단 임계값을 아래로 돌파할 때 알림.
RSI가 상단 임계값을 위로 돌파할 때 알림.
실제 작동 모습
가격 차트 뒤쪽에 RSI ≤30이면 파란색, RSI ≥70이면 빨간색 배경이 나타납니다(색상은 설정에서 변경 가능).
RSI 보조창을 켜면, RSI 라인과 임계값 가로선, 그리고 그 사이 음영 영역이 함께 나타납니다.
투명도를 높이거나 낮추어 강조 정도를 조절할 수 있습니다.
장점
별도의 RSI창을 열지 않고도 가격 차트 배경만으로 과매수·과매도 상태를 직관적으로 확인 가능.
필요하면 보조창으로 RSI를 직접 확인하면서 임계값 가이드와 음영 영역을 함께 볼 수 있음.
색상·투명도를 자유롭게 조절할 수 있어 차트 스타일에 맞게 커스터마이징 가능.
RSI가 임계값을 돌파할 때 자동 알림을 받을 수 있음.
Multi-Timeframe Precision SignalsMulti-Timeframe Precision Signals - Description
Indicator Overview:
Multi-Timeframe Precision Signals is a non-repainting technical analysis indicator that uses adaptive moving averages across multiple timeframes to generate precise trading signals. Designed for active traders and scalpers, it provides clear entry/exit points with configurable alert options.
Key Features:
Non-Repainting Signals: Configurable delay ensures signals don't change after formation
Multi-Timeframe Analysis: Primary + alternate resolution for confirmation
12 MA Types: SMMA, EMA, ALMA, HullMA, LSMA, and 8 other variants
Visual Alerts: Clear buy/sell triangles on chart
Real-Time Alerts: Separate buy/sell alert conditions
Scalping-Friendly: Fast signals suitable for short-term trading
Customizable Settings: Adjustable parameters for any trading style
Technical Specifications:
Signal Type: Non-repainting crossover/crossunder
Default Settings: 8-period MA, 3x alternate resolution
Alert Options: Price, webhook, email, and push notifications
Compatibility: All markets and timeframes
Ideal For:
Scalping: Fast, precise signals for short-term trades
Day Trading: Multi-timeframe confirmation for intraday moves
Swing Trading: Reliable signals across higher timeframes
All Markets: Forex, stocks, crypto, indices
Usage Notes:
Apply to your preferred chart and enable alerts for real-time notifications. The non-repainting feature ensures signals remain stable once formed. Adjust MA period and type based on your trading timeframe and volatility preferences.
Risk Disclosure:
This indicator is for educational purposes only. Past performance doesn't guarantee future results. Trading involves substantial risk. Test thoroughly in demo accounts before live trading.
DCA vs One-ShotCompare a DCA strategy by choosing the payment frequency (daily, weekly, or monthly), and by choosing whether or not to pay on weekends for cryptocurrency. You can add fees and the reference price (opening, closing, etc.).
HTF Candle Highs and Lows with Labels + High Probability Signals█ OVERVIEW
This indicator overlays Weekly, Daily, and H4 High/Low levels directly onto your chart, allowing traders to visualize key support and resistance zones from higher timeframes. It also includes high probability breakout signals that appear one candle after a confirmed breakout above or below these levels, filtered by volume and candle strength.
Use this tool to identify breakout opportunities with greater confidence and clarity.
█ FEATURES
• Plots Weekly, Daily, and H4 High and Low levels using request.security. • Customizable line colors, widths, and label sizes. • Toggle visibility for each timeframe independently. • Signals appear one candle after a confirmed breakout: • Bullish: Close above HTF High, strong candle, high volume. • Bearish: Close below HTF Low, strong candle, high volume. • Signal shapes match the color of the broken level for visual clarity.
█ HOW TO USE
1 — Enable the timeframes you want to track using the input toggles. 2 — Watch for triangle-shaped signals: • Upward triangle = Bullish breakout. • Downward triangle = Bearish breakout. 3 — Confirm the breakout: • Candle closes beyond the HTF level by at least 0.1%. • Candle body shows momentum (close > open for bullish, close < open for bearish). • Volume exceeds 20-period average. 4 — Enter trade on the candle after the signal. 5 — Use the HTF level as a reference for stop-loss placement. 6 — Combine with other indicators (e.g., RSI, EMA) for confluence.
█ LIMITATIONS
• Signals may lag by one candle due to confirmation logic. • Not optimized for low-volume assets or illiquid markets. • Best used in trending environments; avoid during consolidation. • Does not include automatic alerts (can be added manually).
█ BEST PRACTICES
• Use on H1 or higher timeframes for cleaner signals. • Avoid trading during news events or low volatility. • Backtest thoroughly before live trading. • Adjust breakout percentage and volume filter based on asset volatility. • Maintain a trading journal to track performance.
Opening Candle Zone with ATR Bands by nkChartsThis indicator highlights the opening range of each trading session and projects dynamic ATR-based zones around it.
Key Features
Plots high and low levels of the opening candle for each new daily session.
Extends these levels across the session, providing clear intraday support and resistance zones.
Adds ATR-based offset bands above and below the opening range for volatility-adjusted levels.
Customizable colors, ATR length, and multiplier for flexible use across markets and timeframes.
Adjustable session history limit to control how many past levels remain on the chart.
How to Use:
The opening range high/low often acts as strong intraday support or resistance.
The ATR bands give an adaptive volatility buffer, useful for breakout or mean-reversion strategies.
Works on any market with clear session opens.
This tool is designed for traders who want to combine session-based price action with volatility insights, helping identify potential breakouts, reversals, or consolidation areas throughout the day.
⚠️ Disclaimer: This indicator is for educational purposes only. It does not provide financial advice or guarantee profits. Always perform your own analysis before making trading decisions.
Dark Pool Estimate Signal TrackerDark Pool Signal— Detect Potential Institutional Activity
Overview
The Dark Pool Signal v1.6 indicator is a technical analysis tool designed to identify potential institutional activity by interpreting the relationship between volume, price action, and key benchmarks. It specifically targets moments of high-volume trading near the VWAP, which may suggest hidden accumulation or distribution often associated with dark pool transactions.
Instead of being a simple mashup of existing indicators, this script's core value lies in how it synergizes these components to filter out market noise and highlight statistically significant events that may otherwise go unnoticed.
Disclaimer: This script is for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset. All trading involves risk. Past performance is not indicative of future results.
🔍 Core Logic & Calculation Concepts
This script's engine operates on a multi-stage filtering process to generate signals. The underlying concept is that institutional orders, often executed algorithmically, tend to appear as volume spikes that do not cause immediate, proportional price moves, and frequently occur near an institutional benchmark like the VWAP.
Here is a conceptual breakdown of how a signal is generated:
Volume Anomaly Detection: First, the script establishes a baseline for "normal" volume by calculating a Simple Moving Average (SMA) of volume over a specific lookback period. A "Volume Spike" is identified when the current bar's volume exceeds this baseline by a user-defined multiplier (e.g., 2.5x). This serves as the initial trigger for a potential event.
Price Action Context (VWAP Proximity): A volume spike alone is insufficient. To qualify as a potential institutional trade, the script verifies if this spike occurred while the price was trading closely to the VWAP. This "proximity" is not a fixed value; it's a dynamic channel around the VWAP calculated using the Average True Range (ATR). This intelligent filter helps distinguish potential dark pool prints from standard high-volume breakouts that move sharply away from the VWAP.
Directional Bias (Trend Filter): Once a high-volume event near the VWAP is confirmed, the script assigns a directional bias (Buy or Sell). This is achieved by referencing a short-term Exponential Moving Average (EMA).
If the event occurs while the price is above the EMA, it is flagged as a potential Buy Signal (Accumulation).
If the event occurs while the price is below the EMA, it is flagged as a potential Sell Signal (Distribution).
Signal Strength Assessment: Signals are categorized for better interpretation. A "Strong" signal is triggered if the volume spike is exceptionally large (e.g., >4x the average). An "Accumulated" signal appears when multiple regular signals occur within a short user-defined window, suggesting sustained institutional pressure.
By following this logical sequence, the indicator filters thousands of bars to present only those that meet the strict criteria for potential large-scale, off-exchange activity.
🧩 Features
Dynamic VWAP Range (ATR-based): Automatically adjusts VWAP proximity sensitivity based on current market volatility.
Multi-tiered Signal Strength: Differentiates between Normal, Strong, and Accumulated signals to visualize the intensity of activity.
Non-Repainting Confirmation: Signals are confirmed only on bar close to ensure they do not repaint.
Language Support: Dual-language display (English / Korean).
Customizable Visualization: Easily adjust label size, color transparency, offset, and the duration of highlighted zones.
Smart Alert System (v1.6): Provides comprehensive alert() and alertcondition() calls for real-time push notifications.
Recommended Timeframe Notice (v1.6): Displays a small on-chart note suggesting optimal timeframes for analysis.
🕒 Recommended Timeframes
Type Recommended Use Description
1-Hour (default) Primary Analysis Offers a good balance between signal clarity and noise reduction. Ideal for most equities and ETFs.
30-Minute Short-term Confirmation Useful for intraday analysis and refining entry/exit points.
Daily Macro View Helps identify long-term institutional positioning and potential trend reversal zones.
< 15-Minute Experimental May generate excessive noise due to market micro-volatility. Not recommended for primary analysis.
💡 Tip: Combine 1H detection with Daily chart confirmation for a more robust, dual-layer view of institutional flow.
📊 Visualization
Purple Diamonds: Strong or Normal Buy signals
Red Diamonds: Strong or Normal Sell signals
Translucent Boxes: Highlight the estimated duration of unusual activity.
Optional Labels: Display volume, VWAP delta, and signal strength for detailed analysis.
All visual components can be toggled on or off in the indicator settings.
⚙️ Alert System (v1.6)
You can create alerts for each specific signal type directly from the chart's alert menu.
⚡ Strong Buy/Sell
📡 Accumulated Buy/Sell
⬆️ Normal Buy/Sell
➖ Neutral Activity (Volume spike near VWAP without clear direction)
For confirmed, non-repainting signals, set the alert frequency to "Once Per Bar Close".
🧭 How to Use
Add the indicator to your chart.
Choose your preferred language and timeframe from the settings.
Customize visualization and alert preferences to your liking.
Observe how the combination of volume + VWAP + trend reveals potential accumulation or distribution zones.
Use alerts to monitor for significant institutional activity in real-time while you focus on other tasks.
🧠 Important Notes
This indicator is non-repainting. All signals are confirmed at the close of the bar.
It is intended for analytical and educational use, not as a stand-alone trading system.
The tool works across equities, ETFs, and crypto, but the reliability of volume data can vary by exchange. Always use this indicator as part of a comprehensive trading strategy that includes your own risk management.
BayesStack RSI [CHE]BayesStack RSI — Stacked RSI with Bayesian outcome stats and gradient visualization
Summary
BayesStack RSI builds a four-length RSI stack and evaluates it with a simple Bayesian success model over a rolling window. It highlights bull and bear stack regimes, colors price with magnitude-based gradients, and reports per-regime counts, wins, and estimated win rate in a compact table. Signals seek to be more robust through explicit ordering tolerance, optional midline gating, and outcome evaluation that waits for events to mature by a fixed horizon. The design focuses on readable structure, conservative confirmation, and actionable context rather than raw oscillator flips.
Motivation: Why this design?
Classical RSI signals flip frequently in volatile phases and drift in calm regimes. Pure threshold rules often misclassify shallow pullbacks and stacked momentum phases. The core idea here is ordered, spaced RSI layers combined with outcome tracking. By requiring a consistent order with a tolerance and optionally gating by the midline, regime identification becomes clearer. A horizon-based maturation check and smoothed win-rate estimate provide pragmatic feedback about how often a given stack has recently worked.
What’s different vs. standard approaches?
Reference baseline: Traditional single-length RSI with overbought and oversold rules or simple crossovers.
Architecture differences:
Four fixed RSI lengths with strict ordering and a spacing tolerance.
Optional requirement that all RSI values stay above or below the midline for bull or bear regimes.
Outcome evaluation after a fixed horizon, then rolling counts and a prior-smoothed win rate.
Dispersion measurement across the four RSIs with a percent-rank diagnostic.
Gradient coloring of candles and wicks driven by stack magnitude.
A last-bar statistics table with counts, wins, win rate, dispersion, and priors.
Practical effect: Charts emphasize sustained momentum alignment instead of single-length crosses. Users see when regimes start, how strong alignment is, and how that regime has recently performed for the chosen horizon.
How it works (technical)
The script computes RSI on four lengths and forms a “stack” when they are strictly ordered with at least the chosen tolerance between adjacent lengths. A bull stack requires a descending set from long to short with positive spacing. A bear stack requires the opposite. Optional gating further requires all RSI values to sit above or below the midline.
For evaluation, each detected stack is checked again after the horizon has fully elapsed. A bull event is a success if price is higher than it was at event time after the horizon has passed. A bear event succeeds if price is lower under the same rule. Rolling sums over the training window track counts and successes; a pair of priors stabilizes the win-rate estimate when sample sizes are small.
Dispersion across the four RSIs is measured and converted to a percent rank over a configurable window. Gradients for bars and wicks are normalized over a lookback, then shaped by gamma controls to emphasize strong regimes. A statistics table is created once and updated on the last bar to minimize overhead. Overlay markers and wick coloring are rendered to the price chart even though the indicator runs in a separate pane.
Parameter Guide
Source — Input series for RSI. Default: close. Tips: Use typical price or hlc3 for smoother behavior.
Overbought / Oversold — Guide levels for context. Defaults: seventy and thirty. Bounds: fifty to one hundred, zero to fifty. Tips: Narrow the band for faster feedback.
Stacking tolerance (epsilon) — Minimum spacing between adjacent RSIs to qualify as a stack. Default: zero point twenty-five RSI points. Trade-off: Higher values reduce false stacks but delay entries.
Horizon H — Bars ahead for outcome evaluation. Default: three. Trade-off: Longer horizons reduce noise but delay success attribution.
Rolling window — Lookback for counts and wins. Default: five hundred. Trade-off: Longer windows stabilize the win rate but adapt more slowly.
Alpha prior / Beta prior — Priors used to stabilize the win-rate estimate. Defaults: one and one. Trade-off: Larger priors reduce variance with sparse samples.
Show RSI 8/13/21/34 — Toggle raw RSI lines. Default: on.
Show consensus RSI — Weighted combination of the four RSIs. Default: on.
Show OB/OS zones — Draw overbought, oversold, and midline. Default: on.
Background regime — Pane background tint during bull or bear stacks. Default: on.
Overlay regime markers — Entry markers on price when a stack forms. Default: on.
Show statistics table — Last-bar table with counts, wins, win rate, dispersion, priors, and window. Default: on.
Bull requires all above fifty / Bear requires all below fifty — Midline gate. Defaults: both on. Trade-off: Stricter regimes, fewer but cleaner signals.
Enable gradient barcolor / wick coloring — Gradient visuals mapped to stack magnitude. Defaults: on. Trade-off: Clearer regime strength vs. extra rendering cost.
Collection period — Normalization window for gradients. Default: one hundred. Trade-off: Shorter values react faster but fluctuate more.
Gamma bars and shapes / Gamma plots — Curve shaping for gradients. Defaults: zero point seven and zero point eight. Trade-off: Higher values compress weak signals and emphasize strong ones.
Gradient and wick transparency — Visual opacity controls. Defaults: zero.
Up/Down colors (dark and neon) — Gradient endpoints. Defaults: green and red pairs.
Fallback neutral candles — Directional coloring when gradients are off. Default: off.
Show last candles — Limit for gradient squares rendering. Default: three hundred thirty-three.
Dispersion percent-rank length / High and Low thresholds — Window and cutoffs for dispersion diagnostics. Defaults: two hundred fifty, eighty, and twenty.
Table X/Y, Dark theme, Text size — Table anchor, theme, and typography. Defaults: right, top, dark, small.
Reading & Interpretation
RSI stack lines: Alignment and spacing convey regime quality. Wider spacing suggests stronger alignment.
Consensus RSI: A single line that summarizes the four lengths; use as a smoother reference.
Zones: Overbought, oversold, and midline provide context rather than standalone triggers.
Background tint: Indicates active bull or bear stack.
Markers: “Bull Stack Enter” or “Bear Stack Enter” appears when the stack first forms.
Gradients: Brighter tones suggest stronger stack magnitude; dull tones suggest weak alignment.
Table: Count and Wins show sample size and successes over the window. P(win) is a prior-stabilized estimate. Dispersion percent rank near the high threshold flags stretched alignment; near the low threshold flags tight clustering.
Practical Workflows & Combinations
Trend following: Enter only on new stack markers aligned with structure such as higher highs and higher lows for bull, or lower lows and lower highs for bear. Use the consensus RSI to avoid chasing into overbought or oversold extremes.
Exits and stops: Consider reducing exposure when dispersion percent rank reaches the high threshold or when the stack loses ordering. Use the table’s P(win) as a context check rather than a direct signal.
Multi-asset and multi-timeframe: Defaults travel well on liquid assets from intraday to daily. Combine with higher-timeframe structure or moving averages for regime confirmation. The script itself does not fetch higher-timeframe data.
Behavior, Constraints & Performance
Repaint and confirmation: Stack markers evaluate on the live bar and can flip until close. Alert behavior follows TradingView settings. Outcome evaluation uses matured events and does not look into the future.
HTF and security: Not used. Repaint paths from higher-timeframe aggregation are avoided by design.
Resources: max bars back is two thousand. The script uses rolling sums, percent rank, gradient rendering, and a last-bar table update. Shapes and colored wicks add draw overhead.
Known limits: Lag can appear after sharp turns. Very small windows can overfit recent noise. P(win) is sensitive to sample size and priors. Dispersion normalization depends on the collection period.
Sensible Defaults & Quick Tuning
Start with the shipped defaults.
Too many flips: Increase stacking tolerance, enable midline gates, or lengthen the collection period.
Too sluggish: Reduce stacking tolerance, shorten the collection period, or relax midline gates.
Sparse samples: Extend the rolling window or increase priors to stabilize P(win).
Visual overload: Disable gradient squares or wick coloring, or raise transparency.
What this indicator is—and isn’t
This is a visualization and context layer for RSI stack regimes with simple outcome statistics. It is not a complete trading system, not predictive, and not a signal generator on its own. Use it with market structure, risk controls, and position management that fit your process.
Metadata
- Pine version: v6
- Overlay: false (price overlays are drawn via forced overlay where applicable)
- Primary outputs: Four RSI lines, consensus line, OB/OS guides, background tint, entry markers, gradient bars and wicks, statistics table
- Inputs with defaults: See Parameter Guide
- Metrics and functions used: RSI, rolling sums, percent rank, dispersion across RSI set, gradient color mapping, table rendering, alerts
- Special techniques: Ordered RSI stacking with tolerance, optional midline gating, horizon-based outcome maturation, prior-stabilized win rate, gradient normalization with gamma shaping
- Performance and constraints: max bars back two thousand, rendering of shapes and table on last bar, no higher-timeframe data, no security calls
- Recommended use-cases: Regime confirmation, momentum alignment, post-entry management with dispersion and recent outcome context
- Compatibility: Works across assets and timeframes that support RSI
- Limitations and risks: Sensitive to parameter choices and market regime changes; not a standalone strategy
- Diagnostics: Statistics table, dispersion percent rank, gradient intensity
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Best regards and happy trading
Chervolino.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
X-MOMOnly works for MOM GOLD H4 Breakout Strategy.
Dedicated to MOM GOLD's creativity and integration, I wrote this script fully based on her strategy in gold trading.
MAMA [DCAUT]█ MAMA (MESA Adaptive Moving Average)
📊 OVERVIEW
The MESA Adaptive Moving Average (MAMA) represents an advanced implementation of John F. Ehlers' adaptive moving average system using the Hilbert Transform Discriminator. This indicator automatically adjusts to market cycles, providing superior responsiveness compared to traditional fixed-period moving averages while maintaining smoothness.
MAMA dynamically calculates two lines: the fast-adapting MAMA line and the following FAMA (Following Adaptive Moving Average) line. The system's core strength lies in its ability to automatically detect and adapt to the dominant market cycle, reducing lag during trending periods while providing stability during consolidation phases.
🎯 CORE CONCEPTS
Signal Interpretation:
• MAMA above FAMA: Indicates bullish trend momentum with the fast line leading upward movement
• MAMA below FAMA: Suggests bearish trend momentum with the fast line leading downward movement
• Golden Cross: MAMA crossing above FAMA signals potential upward momentum shift
• Death Cross: MAMA crossing below FAMA indicates potential downward momentum shift
• Line Convergence: MAMA and FAMA approaching each other suggests trend consolidation or potential reversal
Primary Applications:
• Trend Following: Enhanced responsiveness to trend changes compared to traditional moving averages
• Crossover Signals: MAMA/FAMA crossovers for identifying potential entry and exit points
• Cycle Analysis: Automatic adaptation to market's dominant cycle characteristics
• Reduced Lag: Minimized delay in trend detection while maintaining signal smoothness
📐 MATHEMATICAL FOUNDATION
Hilbert Transform Discriminator Technology:
The MAMA system employs John F. Ehlers' Hilbert Transform Discriminator, a sophisticated signal processing technique borrowed from telecommunications engineering. The Hilbert Transform creates a complex representation of the price series by generating a 90-degree phase-shifted version of the original signal, enabling precise cycle measurement.
The discriminator analyzes the instantaneous phase relationships between the original price series and its Hilbert Transform counterpart. This mathematical relationship reveals the dominant cycle period present in the market data at each point in time, forming the foundation for adaptive smoothing.
Instantaneous Period Calculation:
The algorithm computes the instantaneous period using the arctangent of the ratio between the Hilbert Transform and the original price series. This calculation produces a real-time measurement of the market's dominant cycle, typically ranging from short-term noise cycles to longer-term trend cycles.
The instantaneous period measurement undergoes additional smoothing to prevent erratic behavior from single-bar anomalies. This smoothed period value becomes the basis for calculating the adaptive alpha coefficient that controls the moving average's responsiveness.
Dynamic Alpha Coefficient System:
The adaptive alpha calculation represents the core mathematical innovation of MAMA. The alpha coefficient is derived from the instantaneous period measurement and constrained within the user-defined fast and slow limits.
The mathematical relationship converts the measured cycle period into an appropriate smoothing factor: shorter detected cycles result in higher alpha values (increased responsiveness), while longer cycles produce lower alpha values (increased stability). This creates an automatic adaptation mechanism that responds to changing market conditions.
MAMA/FAMA Calculation Process:
The MAMA line applies the dynamically calculated alpha coefficient to an exponential moving average formula: MAMA = alpha × Price + (1 - alpha) × MAMA . The FAMA line then applies a secondary smoothing operation to the MAMA line, creating a following average that provides confirmation signals.
This dual-line approach ensures that the fast-adapting MAMA line captures trend changes quickly, while the FAMA line offers a smoother confirmation signal, reducing the likelihood of acting on temporary price fluctuations.
Cycle Detection Mechanism:
The underlying cycle detection employs quadrature components derived from the Hilbert Transform to measure both amplitude and phase characteristics of price movements. This allows the system to distinguish between genuine trend changes and temporary price noise, automatically adjusting the smoothing intensity accordingly.
The mathematical framework ensures that during strong trending periods with clear directional movement, the algorithm reduces smoothing to minimize lag. Conversely, during consolidation phases with mixed signals, increased smoothing helps filter out false breakouts and whipsaws.
📋 PARAMETER CONFIGURATION
Source Selection Strategy:
• HL2 (High+Low)/2 (Default): Recommended for cycle analysis as it represents the midpoint of each period's trading range, reducing impact of opening gaps and closing spikes
• Close Price: Traditional choice reflecting final market sentiment, suitable for end-of-day analysis
• HLC3 (High+Low+Close)/3: Balanced approach incorporating range information with closing emphasis
• OHLC4 (Open+High+Low+Close)/4: Most comprehensive price representation for complete market view
Fast Limit Configuration (Default 0.5):
Controls the maximum responsiveness of the adaptive system. Higher values increase sensitivity to recent price changes but may introduce more noise. This parameter sets the upper bound for the dynamic alpha calculation.
Slow Limit Configuration (Default 0.05):
Determines the minimum responsiveness, providing stability during uncertain market conditions. Lower values increase smoothing but may cause delayed signals. This parameter sets the lower bound for the dynamic alpha calculation.
Parameter Relationship Considerations:
The fast and slow limits work together to define the adaptive range. The wider the range between these limits, the more dramatic the adaptation between trending and consolidating market conditions. Different market characteristics may benefit from different parameter configurations, requiring individual testing and validation.
📊 COLOR CODING SYSTEM
Line Visualization:
• Green Line (MAMA): The fast-adapting moving average that responds quickly to price changes
• Red Line (FAMA): The following adaptive moving average that provides confirmation signals
The fixed color scheme provides consistent visual identification of each line, enabling clear differentiation between the fast-adapting MAMA and the following FAMA throughout all market conditions.
💡 CORE VALUE PROPOSITION
Advantages Over Traditional Moving Averages:
• Cycle Adaptation: Automatically adjusts to market's dominant cycle rather than using fixed periods
• Reduced Lag: Faster response to genuine trend changes while filtering market noise
• Mathematical Foundation: Based on advanced signal processing techniques from telecommunications engineering
• Dual-Line System: Provides both fast adaptation (MAMA) and confirmation (FAMA) in one indicator
Comparative Performance Characteristics:
Unlike fixed-period moving averages that apply the same smoothing regardless of market conditions, MAMA adapts its behavior based on current market cycle characteristics. This may help reduce whipsaws during consolidation periods while maintaining responsiveness during trending phases.
Usage Considerations:
This indicator is designed for technical analysis purposes. The adaptive nature means that parameter optimization should consider the specific characteristics of the asset and timeframe being analyzed. Like all technical indicators, MAMA should be used as part of a comprehensive analysis approach rather than as a standalone signal generator.
Alert Functionality:
The indicator includes alert conditions for MAMA/FAMA crossovers, enabling automated notification of potential momentum shifts. These alerts can assist in timing analysis but should be combined with other forms of market analysis for decision-making purposes.
Advanced Psychological Level-J-Algo📊 Advanced Psychological Level - Universal Market Support
📝 TradingView Publication Write-up
Title:
Advanced Psychological Level
Short Description:
Professional-grade psychological levels indicator with smart detection for ALL cryptocurrencies, dynamic ATR-based spacing, real-time distance calculations, and intelligent visibility management. Works seamlessly across Forex, Indices, and Crypto markets.
🎯 OVERVIEW
Advanced Psychological Level is a sophisticated trading indicator that automatically identifies and displays critical psychological price levels where institutional orders cluster and market reversals occur.
This advanced system goes beyond basic round number indicators by incorporating intelligent adaptive technology that automatically calibrates to any market and price range - from micro-cap cryptocurrencies to major indices, delivering institutional-grade analysis for retail traders.
✨ KEY FEATURES
🧠 Advanced Intelligence Engine
The core of this indicator uses an advanced methodology combining:
Smart market type detection
Automatic level calibration
Dynamic range optimization
Real-time distance calculations
🌍 Universal Market Intelligence
Forex: Pip-based levels (100, 250) with intraday precision (0.2, 0.5, 0.8)
Indices/CFDs: Optimized whole number intervals with intelligent spacing
Crypto: Revolutionary auto-detection that scales from $0.001 to $100,000+
Proprietary scaling for any cryptocurrency
Intelligent level spacing based on logarithmic price magnitude
Zero manual configuration needed
📈 Dynamic ATR-Based Levels (Optional)
Levels that adapt to market volatility in real-time
Advanced ATR calculations with customizable parameters
Self-adjusting to market conditions
Professional-grade volatility analysis
📊 Real-Time Distance Analytics
Instant calculation of distance to key levels
Percentage-based risk/reward computations
Dual-directional target analysis
Customizable display with professional formatting
🎨 Smart Visibility Management
Intelligent Range Filtering: Shows only statistically relevant levels
Performance Optimized: Advanced rendering prevents lag
Dynamic Clutter Reduction: 70% cleaner charts with 100% effectiveness
Configurable visibility parameters
🏷️ Intelligent Price Labels
Smart label placement system
Hierarchical level classification (Major/Standard/Mid)
Professional typography and spacing
Adaptive positioning based on chart scale
🔔 Advanced Alert System
Multi-tier alerts for different level types
Smart alert filtering to prevent spam
Customizable alert conditions
Real-time level breach detection
⚙️ CONFIGURATION GUIDE
Core Settings
Dynamic ATR Mode: Toggle adaptive volatility-based calculations
ATR Parameters: Fine-tune sensitivity (Period & Multiplier)
Visibility Range: Control smart display range (default 10%)
Price Labels: Configure intelligent price display
Level Controls
Major Levels: Primary psychological barriers (250 pip/point)
Standard Levels: Secondary levels (100 pip/point)
Mid Levels: 50% calculations between majors (crypto-optimized)
Intraday Levels: Micro-structure levels (Forex/Crypto only)
Analytics Display
Distance Table: Real-time calculation display
Position Options: Four-corner placement
Visual Parameters: Full color customization
📖 TRADING METHODOLOGY
For Scalpers
Activate intraday levels for micro-structure analysis
Use distance table for precision entries
Configure alerts for quick level breaks
Optimize visibility to 5% for focused trading
For Day Traders
Focus on Major and Standard levels
Enable smart labels for quick analysis
Use distance calculations for targets
Set visibility range to 10-15%
For Swing Traders
Enable ATR-based dynamic levels
Use Major levels as primary targets
Expand visibility range to 20%
Add mid-levels for additional confluence
For Crypto Traders
Let auto-detection handle any coin automatically
Enable mid-levels for volatile markets
Use distance analytics for position sizing
Monitor cluster zones for high-probability setups
💡 ADVANCED TECHNIQUES
Confluence Trading: Combine with volume profile for high-probability zones
Multi-Timeframe Analysis: Apply daily levels to intraday charts
Risk Management: Use distance percentages for position sizing
Smart Confluence: Identify where multiple levels align
Adaptive Display: Automatically adjusts to your zoom level
🚀 THE ADVANCED ADVANTAGE
vs. Basic Round Number Indicators
✅ Universal crypto support (not just BTC/ETH)
✅ Integrated distance calculations
✅ Smart visibility management
✅ ATR-based adaptive levels
✅ Professional framework
vs. Other Psychological Level Tools
✅ Auto-calibration for any asset
✅ Real-time analytical display
✅ Optimized performance
✅ Complete customization
✅ Clean, uniform appearance
📊 MARKET APPLICATIONS
Forex Trading
Major pairs: 100/250 pip detection
Intraday: Precision 20/50/80 pip levels
Session-optimized performance
Institutional-grade analysis
Index Trading
S&P 500: Smart 100/250 point levels
NASDAQ: Thousand-level detection
DAX: Optimized intervals
Futures-ready calculations
Crypto Trading
Bitcoin: Auto-scaling to $1000/5000 levels
Ethereum: Intelligent $100/250 detection
Altcoins: Perfect scaling for any price
Micro-caps: Works on $0.00001 tokens
🔬 TECHNICAL SPECIFICATIONS
Version: v2.0 (Pine Script v6)
Calculation Method: Real-time, non-repainting
Performance: Optimized for all timeframes
Memory Management: Advanced array handling
Compatibility: All TradingView plans
Support: Open-source with detailed comments
⚠️ KEY BENEFITS
Zero Configuration: Works instantly on any chart
Universal Coverage: One indicator for all markets
Professional Display: Clean, institutional-quality visuals
Real-Time Analytics: Instant risk/reward calculations
Performance Optimized: No lag even on complex charts
🎯 IDEAL FOR
✅ Price action traders
✅ Institutional level analysis
✅ Smart money concepts
✅ Multi-timeframe strategies
✅ Risk management focused trading
✅ Any trader seeking reliable S/R levels
💬 FINAL NOTES
This advanced indicator represents extensive development and real-world testing. It solves critical trading challenges:
Automatic Calibration: No manual adjustment across markets
Intelligent Filtering: Shows only relevant levels
Real-Time Analytics: Instant distance and risk calculations
Universal Compatibility: One solution for all markets
The distance table alone transforms trading by providing instant context for risk/reward decisions. The smart crypto detection means you'll never need another psychological level indicator.
Professional-grade tool, available free and open-source because quality trading tools should be accessible to everyone.
ICT SMC — OB & FVG (Enhanced v6)This indicator is a comprehensive implementation of ICT Smart Money Concepts (SMC), focusing on Order Blocks (OB) and Fair Value Gaps (FVG) with enhanced detection logic and session-based filtering.
🔍 Key Features
Impulse-Based OB Detection: Identifies bullish and bearish order blocks using configurable impulse bar logic and ATR-based movement thresholds.
Fair Value Gap Detection: Highlights FVGs based on price displacement logic, helping traders spot potential inefficiencies in price action.
Session Filtering: Allows users to filter signals based on major trading sessions (Sydney, Tokyo, London, New York).
Trend & Volume Confirmation: Integrates EMA slope, market structure breaks, and volume analysis to score trade signals.
Visual Zones: Displays OB and FVG zones using colored boxes with customizable transparency and color settings.
Signal Alerts: Generates long/short trade signals based on a scoring system and session validation, with built-in alert conditions.
⚙️ Customization
Adjustable EMA and ATR lengths
Configurable impulse bar count and movement thresholds
Toggleable session filters
Custom colors for OB and FVG zones
📈 Use Cases
This tool is ideal for traders who follow ICT concepts and want a visual, automated way to identify high-probability zones and trade setups based on smart money principles.
icreature RSI Divergence + OB/OSThis script simply showing all divergences and fill in colours when ob or os . Enjoy!
Multi-Symbol 2m EMA DashboardIndicator Summary for Publishing
The Multi-Symbol 2-Minute EMA Dashboard is a streamlined tool designed to monitor multiple symbols simultaneously using key EMAs and crossover signals. It provides a clear, color-coded table for quick trend analysis and trade signal tracking.
Key Features:
Multi-Symbol Support: Track up to 4 symbols at once in a single dashboard.
2-Minute Timeframe: All calculations are standardized to a 2-minute chart for fast-paced trading decisions.
EMA Columns:
EMA13, EMA48, EMA200 — Displays whether price is above (B, green) or below (S, red) each EMA.
Crossover Signals (TBuy / TSell):
TBuy (green) when EMA13 crosses above EMA48 — bullish momentum signal.
TSell (red) when EMA13 crosses below EMA48 — bearish momentum signal.
The column always displays the latest crossover event, making it easy to track the most recent trend shift.
Clean Visuals:
Table format with intuitive colors for fast decision-making.
Black background indicates neutral/no crossover state.
Breaout and followthroughThis indicator is designed to identify and highlight a single, powerful entry signal at the beginning of a new trend. It filters for high-volatility breakout bars that show strong directional conviction, helping traders catch the initial momentum of a potential move. It will only paint one bullish or bearish signal after a trend change is detected, preventing repeat signals during a sustained move.
Core Concept
The indicator combines four key concepts to generate high-probability signals:
Trend Direction: It first establishes the overall trend (bullish or bearish) using a configurable Exponential or Simple Moving Average (EMA/SMA).
Volatility Expansion: It looks for bars with a larger-than-average range by comparing the bar's size to the Average True Range (ATR). This helps identify moments of increased market interest.
Closing Strength (IBS): It uses the Internal Bar Strength (IBS) to measure directional conviction. A high IBS (closing near the top) suggests bullish strength, while a low IBS (closing near the bottom) suggests bearish pressure.
Breakout Confirmation: As an optional but powerful filter, it can confirm the signal by ensuring the bar is breaking above the high or below the low of a user-defined number of previous bars.
A signal is only generated on the first bar that meets all these criteria after the price crosses the trend-defining moving average, making it ideal for capturing the start of a new swing.
Features
Bullish Signals (Green): Highlights the first bar in an uptrend that is larger than the ATR, closes with a high IBS (>70), and optionally breaks out above the recent highs.
Bearish Signals (Red): Highlights the first bar in a downtrend that is larger than the ATR, closes with a low IBS (<30), and optionally breaks out below the recent lows.
"First Signal Only" Logic: The script is hard-coded to show only the initial signal in a new trend, filtering out noise and redundant signals.
Fully Customizable Trend Filter:
Choose between EMA or SMA for trend definition.
Set the MA length (default is a short-term 7-period MA).
Option to show or hide the moving average on the chart.
Optional Breakout Filter:
Enable or disable the requirement for the signal bar to break the high/low of previous bars.
Customize the lookback period for the breakout confirmation.
How to Use
This indicator can be used as a primary signal for a trend-following or momentum-based trading system.
Look for a Green Bar (Bullish Signal): This suggests the start of a potential uptrend. Consider it a signal for a long entry. A logical stop-loss could be placed below the low of the highlighted signal bar.
Look for a Red Bar (Bearish Signal): This suggests the start of a potential downtrend. Consider it a signal for a short entry. A logical stop-loss could be placed above the high of the highlighted signal bar.
Adjust Settings: Use the settings menu to configure the indicator to your preferred market and timeframe. A longer Trend MA Length will result in fewer, more long-term signals, while a shorter length will be more responsive.
As with any tool, this indicator is best used in conjunction with other forms of analysis, such as market structure, support/resistance levels, and proper risk management.
TONYLASUERTEIndicator Description
This indicator is designed to provide a clear market reading by combining trend analysis, low-activity zones, and potential reaction signals:
- Moving Averages (50 and 200 periods): the 50-period (blue) and 200-period (red) moving averages help define the overall market trend while also acting as dynamic support and resistance levels. Their alignment or crossover serves as a key signal for assessing market strength.
- Asian Session Highlighting: the indicator marks rectangles over the Asian session ranges, a phase typically characterized by low volatility and tight ranges. This helps avoid trading in low-interest conditions and focus on more liquid phases.
- Post-Asia Reactions: the imbalance occurring after the Asian session is highlighted, making it easier to spot potential breakout points and the start of directional moves.
- Divergent Candles (visual signals): divergence candles are highlighted with different colors. When combined with the moving averages and the post-Asia imbalance, they can anticipate possible reversals or confirm trend continuation.
📌 Indicator Objective: filter out low-quality trading phases, highlight key reaction zones, and improve entry timing by leveraging the interaction between trend (moving averages), divergences, and post-Asian session dynamics.
icreature RSI Divergence Indicator with Customizable OB/OS Spotsicreature RSI Divergence Indicator with Customizable OB/OS Spots
Institutions ZonesInstitutions Zone Tracker
This indicator automatically detects, draws, and manages institutional zones using refined order block logic. It is built to highlight high-probability reversal or breakout areas across any timeframe, with advanced zone management features that go beyond typical open-source versions.
How It Works
The script identifies price regions where significant institutional buying or selling has previously occurred and tracks how they evolve in real time:
Green = Areas of strong institutional buying interest.
Red = Areas of institutional selling interest.
Gray = Tested Zone: If price re-enters a previously drawn zone, it turns gray and relabels as “Tested,” signaling reduced reaction strength.
Unlike many standard supply/demand tools, this script includes automatic zone removal, tested-zone tracking, and no-repaint logic to maintain chart accuracy and reduce clutter.
Features
Dynamic zone creation and removal based on order block and mitigation rules.
Real-time updates with no repainting.
Visual clarity controls (adjustable transparency, labels inside zones).
Automatic zone lifecycle tracking, with clear status indicators (“Demand Zone,” “Supply Zone,” “Tested”).
How to Use
Apply the indicator to any chart and timeframe.
Use Demand Zones as potential long/swing-low areas and Supply Zones as potential short/swing-high areas.
When a zone turns gray, treat it as weakened — reactions may be less reliable.
Combine with your own technical or fundamental analysis for confirmation.
Best Practices
Pair with candlestick reversal signals or momentum indicators for higher accuracy.
Adjust tuning/mitigation parameters to fit your trading style and the asset’s volatility.
Use across multiple timeframes to validate institutional order flow alignment.
Why This Script Is Different
Most open-source supply/demand indicators only plot static zones. This script introduces:
Automatic zone removal to keep charts clean and relevant.
Dynamic “tested zone” logic that tracks weakening institutional levels.
Real-time, no-repaint drawing, ensuring zones remain accurate as price action evolves.
These unique features make the tool more practical for live trading and justify closed-source protection.
⚠️ Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice. Always conduct your own analysis and consult a licensed professional before trading. The author is not liable for losses or damages. Use at your own risk.
W Pattern Finder📊 W Pattern Finder
English:
This indicator automatically detects W-Patterns (Double Bottoms) following the HLHL structure and marks the last four crucial points on the chart.
Additionally, it draws the neckline, a Take Profit (TP) and a Stop Loss (SL) – including a Risk/Reward ratio.
✨ Features
* Automatic detection of W-Patterns (Double Bottoms)
* Draws the neckline and the last 4 key points
* Calculates and displays TP and SL levels (with adjustable RR ratio)
* Auto-Clear: All objects are removed once TP or SL is reached
* Fully customizable colors & widths for pattern, TP and SL lines
* Tolerance filter for lows to improve clean pattern recognition
* Visual marking of the W-pattern directly in the chart
⚙️ Settings
* Pivot Length → controls sensitivity of pattern detection
* Line color & width for the pattern
* Individual colors and widths for TP and SL lines
* Risk/Reward Ratio (RR) freely adjustable
* Tolerance (%) for deviation of lows
📈 Use Case
This indicator is especially useful for chart technicians & pattern traders who trade W-formations (Double Bottoms).
With the automatic calculation of TP & SL, it becomes instantly clear whether a trade is worth taking.
⚠️ Disclaimer:
This indicator is not financial advice. It is intended for educational and analytical purposes only.
Use it in trading at your own risk
BDH Multi‑Timeframe Dashboard 📊 BDH Multi-Timeframe Dashboard (4H, D, W, M)
The Buy Don’t Hold (BDH) Screener is inspired by the book Buy—Don’t Hold by Leslie N. Masonson. It is designed to rotate into the strongest ETFs during bullish phases while stepping aside in weak markets.
✅ How It Works
The screener evaluates three filters across multiple timeframes (4H, Daily, Weekly, Monthly):
Price > 100-DMA
Price Rising (close > lookback)
MACD > Signal
Each timeframe earns a PASS if at least 2 out of 3 conditions are met.
🖥️ Features
Multi-timeframe dashboard table with green/red checks
🚀 Strategy Application
Scan for ETFs with multi-timeframe PASS signals
Buy the strongest performers
Rotate out when an ETF falls out of strength ranking
This rotation method is designed to historically outperform passive SPY holding by maintaining exposure only to strong, trending ETFs
📌 ETFs Watchlist (copy-paste ready)
Use this watch list for screening :
ARKF, ARKG, ARKK, ARKQ, ARKW, ASHR, BATT, BLCN, BLOK, CLOU, CQQQ, EEM, EMQQ, ESPO, HACK, IBUY, ICVT, IWM, IZRL, KWEB, MDY, OGIG, PBW, PRNT, QCLN, QQQ, REMX, SMH, SOCL, SPY, TAN, TLT, URA, VB, XBI, XHB, XLC, XLE, XLF, XLY, XOP, XRT
✨ With this dashboard, traders can quickly identify ETFs that meet the BDH conditions across multiple timeframes, helping them follow a disciplined rotation strategy.
Multi-MA Trend Indicator with ATR by nkChartsThe MMA-ATR is a powerful all-in-one tool that combines multi-timeframe Moving Averages with ATR-based Stop Loss & Take Profit levels. It is designed to help traders quickly assess trend direction, volatility, and potential trade levels in one clean visual setup.
Key Features
Multi-MA Trend Detection
Plots 5 customizable moving averages (choose from EMA, SMA, RMA, WMA, VWMA).
Automatic color coding: Bullish (green), Bearish (red), Neutral (gray).
MA Trend Table with:
MA values
Current chart trend
Higher timeframe (Daily) trend confirmation
ATR-Based Trade Levels
Dynamic Stop Loss (SL) and Take Profit (TP) levels based on ATR multipliers.
Separate visual lines for long and short setups.
ATR Table with:
ATR value for the current chart timeframe
ATR value for the Daily timeframe
Customizations
Choose MA type, length, and price source.
Customize bullish, bearish, and neutral colors.
Adjustable table position and text size.
Fully configurable ATR length, multipliers, and colors.
How to Use
Add the indicator to your chart.
Use the MA Trend Table to identify short-term and higher timeframe trend direction.
Refer to ATR-based SL/TP levels to manage risk and potential profit targets.
Combine both to filter entries and improve trade timing.
Best For
Swing traders and intraday traders who rely on trend confirmation and volatility-based risk management.
Traders looking for a multi-timeframe confirmation system that reduces noise.
⚠️ Disclaimer: This indicator is for educational purposes only. It does not provide financial advice or guarantee profits. Always perform your own analysis before making trading decisions.