MA Crossover with R SquaredThis indicator enhances the classic Moving Average (MA) crossover strategy with statistical filtering and prediction capabilities.
Let me explain what it does:
Instead of just showing when a fast MA crosses above/below a slow MA, this indicator adds R² (R-squared) filtering to identify higher-quality crossovers and predicts future crossovers.
What is R²?
R² (Coefficient of Determination) is a statistical measure that shows how well one variable explains the movement of another variable. In simpler terms:
R² = 1.0: Perfect relationship - 100% of the movement in one MA is explained by the other MA
R² = 0.8: Strong relationship - 80%
R² = 0.5: Moderate relationship - 50%
R² = 0.0: No relationship - 0%
Imagine two cars driving on a highway:
High R² (0.9): Both cars are in the same lane, moving together consistently
Low R² (0.3): One car is weaving between lanes while the other stays straight - poor coordination.
Traditional MA crossovers often generate false signals during:
Choppy markets (price bouncing around)
Sideways/ranging markets
Low volatility periods
News events causing temporary spikes
The R² Solution:
R² acts as a "quality filter" that answers: "How meaningful this crossover is?"
What this means:
Before R² filtering: Every crossover generates a signal
After R² filtering: Only crossovers with R² > threshold generate signals
Result: Fewer but higher-quality signals.
MARKET REGIME DETECTION
High R² (> 0.7): Strong trending market - MA crossovers are reliable
Medium R² (0.4-0.7): Moderate trending - use with caution
Low R² (< 0.4): Choppy/range-bound market - avoid MA crossover signals
Increasing R²: MAs are converging/moving together more closely
Decreasing R²: MAs are diverging/losing coordination
Sudden R² drop: Potential market regime change.
Why Square the Correlation?
Correlation: Measures direction AND strength (-1 to +1)
R²: Measures strength ONLY (0 to 1)
In trading: We care about relationship strength, not direction
Direction is already indicated by crossover type (bullish/bearish)
Real-World Interpretation:
If R² = 0.64, it means:
64% of the variation in the fast MA is explained by the slow MA
36% is "noise" or unexplained movement
The MAs are moderately coordinated.
R² Trend Confirmation:
Entry: When crossover occurs AND R² is above threshold
Confirmation: R² continues rising after entry
Exit: R² drops below threshold (relationship weakening)
Multi-Timeframe R² Analysis
Check R² on higher timeframe for trend context
Use current timeframe for entry signals
Example: Daily R² > 0.7 gives bullish bias, use 1-hour for entries.
R² LIMITATIONS & CAUTIONS
1. Lagging Nature
R² is calculated from past data
By the time R² is high, the trend may already be established
2. Not a Standalone Indicator
R² should confirm other signals, not generate them alone
Always combine with price action, volume, support/resistance
3. Curve Fitting Risk
Don't over-optimize R² thresholds on historical data
What worked in the past may not work in the future
Use R² as a filter, not a predictor
4. Market-Specific Behavior
R² thresholds that work in trending stocks may fail in Forex
Cryptocurrencies may require different R² settings than commodities
Always test on your specific market/instrument
Before Taking Any Signal:
✅ Does the crossover have a colored circle? (R² > threshold)
✅ What's the R² number shown? (Higher = better)
✅ Is R² rising or falling? (Rising = strengthening relationship)
✅ Check history table - what happened with similar R² values?
✅ Consider prediction - does it align with current signal?
Simple R² Rules of Thumb:
R² > 0.8: Excellent signal quality
R² 0.6-0.8: Good signal quality
R² 0.4-0.6: Moderate - use additional confirmation
R² < 0.4: Poor - avoid or use extreme caution
Think of R² as:
A quality control inspector for MA crossovers
A relationship therapist for your moving averages
A statistical bouncer that only lets strong signals through
Higher win rate + Better risk/reward = More profitable trading
This script transforms the basic "when lines cross" approach into a sophisticated, statistically-validated trading system. R² is the secret sauce that separates random crossovers (Golden/Death) from meaningful trend changes.
DISCLAIMER: This information is provided for educational purposes only and should not be considered financial, investment, or trading advice. Please do boost if you like it. Happy Trading.
Forecasting
BTC - Liquisync: Macro Pulse & Desync EngineLiquisync: Macro Pulse & Desync Engine | RM
Strategic Context: The Macro Fuel Tank
Why compare Global Liquidity to Bitcoin? Because Bitcoin acts as a "Global M2 Sponge." As central banks expand their balance sheets, this "Fuel" filters into the system, taking roughly 56 to 70 days to reach Bitcoin's price. Liquisync measures this lead-lag relationship to determine if the "Engine" (Price) is properly supported by the "Fuel" (M2).
How the Model Differs: Liquisync vs. Standard Macro Composites
Many existing macro scripts focus on a Linear Sum of indicators—adding up M2, Spread, and Copper/Gold into a single Z-score. While useful for general sentiment, these "Composite" models often suffer from Directional Blindness. They tell you if the environment is "Risk-On," but they cannot tell you if the Price is currently lying about the Liquidity.
The Liquisync Edge:
• Conflict Detection: Unlike composites that simply turn red or green, Liquisync identifies Desync.
• Velocity Normalization: Instead of Z-scoring absolute values, we measure the Acceleration (Slope) of the move, allowing us to see "Decay" before the trend actually flips.
How the Model Works
1. Pulse Velocity Mapping (The Dual-Slope Architecture)
The engine utilizes a Dual-Slope Architecture to measure the "Dynamic Force" behind the market. By calculating the Linear Regression Slope for both Global Liquidity and BTC Price, we are measuring Acceleration.
• Liquidity Slope (The Fuel): Measures the speed at which central banks are expanding or contracting the money supply.
• Price Slope (The Engine): Measures the speed at which the market is repricing Bitcoin in response to that money (or due to other factors).
The Mathematical Bridge: We don't just plot these lines independently; we normalize them. Because Global M2 is measured in Trillions and BTC in Thousands of Dollars, we transform both into a unified Relative Pulse Score (-100 to +100).
Liquisync: The 4 Macro Scenarios (Directional Matrix) By measuring the interconnectivity of these two pulses, the engine identifies four distinct market regimes:
Scenario A: Institutional Expansion (Harmony) Liquidity Slope (+ rising) | Price Slope (+ rising) Harmony. The trend is "True." The price increase is fully supported by global money. (Scenario Jan 2023)
Scenario B: The Bear Trap (Desync / "Open Mouth") Liquidity Slope (+ rising) | Price Slope (- falling) The Core Edge. Liquidity is filling up, but price is dropping due to short-term panic. Because the fuel is there, the price must eventually snap upward to catch up with the liquidity reality. (Scenario Jun 2020)
Scenario C: The Bull Trap (Desync / "Open Mouth") Liquidity Slope (- falling) | Price Slope (+ rising) The Danger Zone. Price is climbing on "Empty Fuel." Retail FOMO is driving the market while liquidity is being pulled. Highly unstable. (Scenario Jul 2022)
Scenario D: Macro Contraction (Harmony) Liquidity Slope (- falling) | Price Slope (- falling) The Drain. Global liquidity is shrinking and price is following. A fundamental bear market. (Scenario Nov/Dec 2021)
2. Directional Desync (The Conflict Filter)
Liquisync is a Conflict Filter. It ignores "Synchronous" phases where both lines move together and focuses 100% of its visual energy on the Desync scenarios (Bear Trap or Bull Trap). When the lines travel in opposite directions, the indicator generates Cyan Columns. The height of these columns tells you the intensity of the conflict. When the pulses move in Harmony (Scenario A & D), the desync value remains at zero. This creates a 'Visual Silence' on the chart, signaling that the current price trend is structurally healthy and macro-supported.
3. Liquisync Extreme (The Snap-Back Star ✦)
This triggers when the "Open Mouth" (the Liquidity Pulse (Golden Line) and the Price Pulse (White Area) pull in diametrically opposite directions) desync reaches 85% of its 1-year historical record. This is a generational signal identifying the absolute limits of market irrationality relative to the macro reality (Price up, M2 down or vice versa).
How to Read the Chart
• Golden Pulse: The Liquidity Slope
• White Area: The Price Slope
• Harmony (No Columns): Price and Liquidity are in sync. Trend-following is safe.
• Open Mouth (Cyan Columns): These are not momentum bars; they are Conflict Bars . They only appear when the Price and Liquidity are traveling in opposite directions. The taller the column, the more "stretched" the macro rubber band has become.
• Magenta Stars: The desync is at a statistical limit. Expect a violent Macro Snap-Back toward the Golden Liquidity line.
The 60-Day Lead-Lag Principle: Why the Delay?
The Liquisync engine utilizes a specific forward-lag (defaulted to 60–80 days or 9 weeks, to be parametrized by the user) based on the Monetary Transmission Mechanism. Research into global liquidity cycles shows that central bank injections (M2 expansion) do not impact high-beta risk assets instantaneously. Capital follows a "Waterfall Effect": it moves first into primary dealer banks, then into credit markets and equities, and finally—once the "liquidity tide" has sufficiently risen—into the cryptocurrency ecosystem. Statistical correlation studies confirm that the peak relationship between Global M2 and Bitcoin historically occurs with a 56 to 63-day delay. By shifting the liquidity data forward, we align the "Macro Cause" with its "Market Effect," revealing a clearer predictive map that standard, unlagged indicators miss.
Settings & Calibration: Tuning the Liquisync Engine
The Liquisync engine is a precision instrument that requires specific calibration to align the "Macro Fuel" with the "Price Engine."
Slope Lookback defines the sensitivity of our acceleration measurement; a setting of 6 (Weekly) or 30 (Daily) ensures we capture structural shifts while filtering out intraday noise
Liquidity Lag is perhaps the most critical setting, as it shifts the M2 data forward to account for the standard 60–80 day (or 9-week) transmission delay—the time it takes for central bank liquidity to actually hit the crypto order books.
Extreme Window establishes our statistical benchmark; by default, this is set to 52 (representing one full year on the Weekly timeframe), allowing the engine to identify "Magenta Star" signals by comparing the current directional desync against the highest records of the last 365 days.
Recommended Calibration :
• Daily (1D): Set Lag to 60–80 and Lookback to 30 .
• Weekly (1W): Set Lag to 9 (9 weeks) and Lookback to 6 . The 1W chart is the preferred filter for macro cycles.
Detailed Script Calculations
The script aggregates liquidity from the FED, RRP, TGA, PBoC, ECB, and BoJ using request.security. We calculate the ta.linreg slope of this aggregate, normalize it via EMA-smoothed RSI mapping (-100 to +100), and apply a ta.change filter to identify directional opposition. The "Extreme" signal is derived from a rolling ta.highest window of the desync intensity.
The Liquisync engine calculates the Linear Regression Slope (m) over a user-defined window:
m =
Where:
• Δy = The distance between the current linear regression end-point and the previous bar.
• Δx = The defined bar-count (Lookback).
Risk Disclaimer & Credits
The Liquisync is a thematic macro tool. Global liquidity data is subject to reporting delays (Note: Because central bank M2 data is typically reported with a lag, the Golden Pulse represents the most recently available macro data, not a real-time high-frequency feed.). This is not financial advice; it is a statistical model for institutional education. Rob Maths is not liable for losses incurred via use of this model.
Tags:
indicator, bitcoin, btc, macro, liquidity, desync, liquisync, institutional, m2, robmaths, Rob Maths
ATR Based SL & TP Targets from Entry (Long/Short)ATR-based target helper for manual trade planning.
Plots a single entry level plus ATR-based stop loss and take-profit targets on the price scale. The script uses a standard ATR (default 14) and lets you select the position side (Long or Short). For Long positions, it places the stop loss 1× ATR below the entry and take-profit levels at 1, 2, 3, and 4× ATR above. For Short positions, it mirrors this logic, placing the stop 1× ATR above the entry and targets 1–4× ATR below. You can adjust the entry price and ATR multipliers from the settings, and all levels update instantly, giving a clean visual of your risk and reward targets on the price scale.
-------------------
Tip:
After entry, and after I set my SL & TP levels, I hide the indicator until it's needed again.
ZLT - Date and Time MarkerPine Script v5 indicator called “DateTime Marker” that overlays on the chart and marks bars whose timestamp matches a user-defined schedule. When a bar “matches,” it can draw:
a vertical line through the bar,
a label with a time/date string, and
a triangle marker below the bar (always plotted on matches).
What you can configure
Marker Type (the matching rule)
You choose one of five modes:
Every Minute
Inputs: everyNMinutes (default 15), minuteOffset (default 0)
Match condition: minute % everyNMinutes == minuteOffset
Example with defaults: marks bars at :00, :15, :30, :45 each hour.
Hourly
Inputs: everyNHours (default 4), hourlyMinute (default 0)
Match condition: hour % everyNHours == 0 AND minute == hourlyMinute
Example with defaults: marks bars at 00:00, 04:00, 08:00, 12:00, 16:00, 20:00 (at minute 00).
Daily Time
Inputs: dailyHour (default 10), dailyMinute (default 0)
Match condition: hour == dailyHour AND minute == dailyMinute
Example with defaults: marks 10:00 every day.
Weekly Day & Time
Inputs: weekDay (default Tuesday), weeklyHour (default 16), weeklyMinute (default 0)
It converts the weekday name to Pine’s dayofweek number via getDayNumber().
Match condition: dayofweek == targetDay AND hour == weeklyHour AND minute == weeklyMinute
Example with defaults: marks Tuesday 16:00.
Monthly Date & Time
Inputs: monthlyDay (default 2), monthlyHour (default 23), monthlyMinute (default 0)
Match condition: dayofmonth == monthlyDay AND hour == monthlyHour AND minute == monthlyMinute
Example with defaults: marks the 2nd day of each month at 23:00.
Visual settings
showLine: whether to draw the vertical line.
lineStyle: Solid/Dashed/Dotted (mapped to Pine line styles by getLineStyle()).
lineColor, lineWidth: styling for the line (width is rounded to an integer because Pine line width is integer).
showLabel: whether to draw a label.
labelColor: background color of the label (text is forced white).
What happens when a bar matches
When isMatch becomes true on a bar:
Vertical line: line.new() at that bar’s bar_index, from low to high, extended extend.both (so it spans the full chart vertically).
Label: label.new() at the bar’s high, with mode-specific text:
Minute/Hourly/Daily: "HH:mm"
Weekly: "Tuesday HH:mm" (or whatever day selected)
Monthly: "Day 2 - HH:mm" (or chosen day)
Triangle marker: plotshape() draws a triangle up below the bar on every match (this happens regardless of showLine / showLabel).
Important practical implications
This uses the bar’s exchange/chart time (TradingView’s time, hour, minute, etc.), so results depend on the symbol/session and chart timezone settings.
On timeframes coarser than 1 minute, “Every Minute” still checks only the bar’s timestamp minute value; it won’t mark intra-bar minutes that don’t exist as separate bars.
Because it can create many objects (lines/labels), it sets max_labels_count=500. Lines are not capped here, so very dense marking can still clutter the chart.
If you tell me your intended use (e.g., “mark NY open,” “mark every 15m candle close,” “mark macro events weekly”), I can point out whether the current matching logic fits that precisely or needs adjustments (sessions, timezones, avoiding duplicates, limiting lines, etc.).
NQ Pro Dashboard (Master Fix)This indicator is a "Head-Up Display" designed specifically for trading NQ (Nasdaq-100 Futures). It aggregates data from the broader market (volatility) and the specific stocks that drive the Nasdaq index (The "Magnificent 7") to give you a single Trend Power Score.
Here is a breakdown of how the logic works under the hood:
1. The Inputs (Data Feed)
The script watches 9 specific assets in real-time (daily timeframe data):
Fear Gauges:
VIX: The volatility index for the S&P 500.
VXN: The volatility index specifically for the Nasdaq-100.
The Engine (Mag 7):
NVDA, AAPL, MSFT, AMZN, GOOGL, META, TSLA.
2. The Logic: "Weighted" Market Strength
Instead of treating every stock equally, the script applies a Weighting Multiplier to the Mag 7 stocks based on their approximate impact on the Nasdaq-100 index.
Heavyweights (1.5x): NVDA, AAPL, MSFT (These move the market the most).
Middleweights (1.0x): AMZN, GOOGL, META.
Lightweight (0.7x): TSLA (Has the least pull of the group).
It calculates a single percentage number (MAG 7 (W)) representing the combined push or pull of these stocks.
3. The "Trend Power" Score (0-100)
This is the core signal. It starts at a neutral 50 and adds/subtracts points based on market conditions.
Fear Factor:
If VIX or VXN drops > 2% (Fear dying), it adds points (Bullish).
If VIX or VXN spikes > 2% (Fear rising), it subtracts points (Bearish).
Stock Strength:
If the Weighted Mag 7 Average is > 1.0% (Strong Rally), it adds a massive 30 points.
If it's negative (Sell-off), it subtracts points.
The Score Breakdown:
80 - 100 (Green): STRONG BULL. The engines are firing (stocks up) and the brakes are off (VIX down). Do not short.
0 - 20 (Red): STRONG BEAR. Panic selling is occurring. Do not buy.
40 - 60 (Orange): CHOP / RANGE. Conflicting signals (e.g., stocks are up but VIX is also up). Be careful.
4. The "Exhaustion" Meter (ATR)
The RANGE row tells you if the market has "gas left in the tank."
It compares Today's Range (High - Low) to the 14-Day Average Range (ATR).
< 50% (Yellow): Compressed. The market hasn't moved much yet. Expect a breakout soon.
> 120% (Purple): Extended. The market has moved massive amounts today. A reversal or pause is statistically likely (mean reversion).
5. The Visuals (Leaders Row)
The bottom row gives you a quick visual scan of the individual stocks:
N▲ (Green): Nvidia is up.
T▼ (Red): Tesla is down.
This helps you spot "divergences"—for example, if the Trend Score is high but NVDA is Red, the rally might be fragile.
Ultimate MACD [captainua]Ultimate MACD - Comprehensive MACD Trading System
Overview
This indicator combines traditional MACD calculations with advanced features including divergence detection, volume analysis, histogram analysis tools, regression forecasting, strong top/bottom detection, and multi-timeframe confirmation to provide a comprehensive MACD-based trading system. The script calculates MACD using configurable moving average types (EMA, SMA, RMA, WMA) and applies various smoothing methods to reduce noise while maintaining responsiveness. The combination of these features creates a multi-layered confirmation system that reduces false signals by requiring alignment across multiple indicators and timeframes.
Core Calculations
MACD Calculation:
The script calculates MACD using the standard formula: MACD Line = Fast MA - Slow MA, Signal Line = Moving Average of MACD Line, Histogram = MACD Line - Signal Line. The default parameters are Fast=12, Slow=26, Signal=9, matching the traditional MACD settings. The script supports four moving average types:
- EMA (Exponential Moving Average): Standard and most responsive, default choice
- SMA (Simple Moving Average): Equal weight to all periods
- RMA (Wilder's Moving Average): Smoother, less responsive
- WMA (Weighted Moving Average): Recent prices weighted more heavily
The price source can be configured as Close (standard), Open, High, Low, HL2, HLC3, or OHLC4. Alternative sources provide different sensitivity characteristics for various trading strategies.
Configuration Presets:
The script includes trading style presets that automatically configure MACD parameters:
- Scalping: Fast/Responsive settings (8,18,6 with minimal smoothing)
- Day Trading: Balanced settings (10,22,7 with minimal smoothing)
- Swing Trading: Standard settings (12,26,9 with moderate smoothing)
- Position Trading: Smooth/Conservative settings (15,35,12 with higher smoothing)
- Custom: Full manual control over all parameters
Histogram Smoothing:
The histogram can be smoothed using EMA to reduce noise and filter minor fluctuations. Smoothing length of 1 = raw histogram (no smoothing), higher values (3-5) = smoother histogram. Increased smoothing reduces noise but may delay signals slightly.
Percentage Mode:
MACD values can be converted to percentage of price (MACD/Close*100) for cross-instrument comparison. This is useful when comparing MACD signals across instruments with different price levels (e.g., BTC vs ETH). The percentage mode normalizes MACD values, making them comparable regardless of instrument price.
MACD Scale Factor:
A scale factor multiplier (default 1.0) allows adjusting MACD display size for better visibility. Use 0.3-0.5 if MACD appears too compressed, or 2.0-3.0 if too small.
Dynamic Overbought/Oversold Levels:
Overbought and oversold levels are calculated dynamically based on MACD's mean and standard deviation over a lookback period. The formula: OB = MACD Mean + (StdDev × OB Multiplier), OS = MACD Mean - (StdDev × OS Multiplier). This adapts to current market conditions, widening in volatile markets and narrowing in calm markets. The lookback period (default 20) controls how quickly the levels adapt: longer periods (30-50) = more stable levels, shorter (10-15) = more responsive.
OB/OS Background Coloring:
Optional background coloring can highlight the entire panel when MACD enters overbought or oversold territory, providing prominent visual indication of extreme conditions. The background colors are drawn on top of the main background to ensure visibility.
Divergence Detection
Regular Divergence:
The script uses the MACD line (not histogram) for divergence detection, which provides more reliable signals. Bullish divergence: Price makes a lower low while MACD line makes a higher low. Bearish divergence: Price makes a higher high while MACD line makes a lower high. Divergences often precede reversals and are powerful reversal signals.
Pivot-Based Divergence:
The divergence detection uses actual pivot points (pivotlow/pivothigh) instead of simple lowest/highest comparisons. This provides more accurate divergence detection by identifying significant pivot lows/highs in both price and MACD line. The pivot-based method compares two recent pivot points: for bullish divergence, price makes a lower low while MACD makes a higher low at the pivot points. This method reduces false divergences by requiring actual pivot points rather than just any low/high within a period.
The pivot lookback parameters (left and right) control how many bars on each side of a pivot are required for confirmation. Higher values = more conservative pivot detection.
Hidden Divergence:
Continuation patterns that signal trend continuation rather than reversal. Bullish hidden divergence: Price makes a higher low but MACD makes a lower low. Bearish hidden divergence: Price makes a lower high but MACD makes a higher high. These patterns indicate the trend is likely to continue in the current direction.
Zero-Line Filter:
The "Don't Touch Zero Line" option ensures divergences occur in proper context: for bullish divergence, MACD must stay below zero; for bearish divergence, MACD must stay above zero. This filters out divergences that occur in neutral zones.
Range Filtering:
Minimum and maximum lookback ranges control the time window between pivots to consider for divergence. This helps filter out divergences that are too close together (noise) or too far apart (less relevant).
Volume Confirmation System
Volume threshold filtering requires current volume to exceed the volume SMA multiplied by the threshold factor. The formula: Volume Confirmed = Volume > (Volume SMA × Threshold). If the threshold is set to 1.0 or lower, volume confirmation is effectively disabled (always returns true). This allows you to use the indicator without volume filtering if desired. Volume confirmation significantly increases divergence and signal reliability.
Volume Climax and Dry-Up Detection:
The script can mark bars with extremely high volume (volume climax) or extremely low volume (volume dry-up). Volume climax indicates potential reversal points or strong momentum continuation. Volume dry-up indicates low participation and may produce unreliable signals. These markers use standard deviation multipliers to identify extreme volume conditions.
Zero-Line Cross Detection
MACD zero-line crosses indicate momentum shifts: above zero = bullish momentum, below zero = bearish momentum. The script includes alert conditions for zero-line crosses with cooldown protection to prevent alert spam. Zero-line crosses can provide early warning signals before MACD crosses the signal line.
Histogram Analysis Tools
Histogram Moving Average:
A moving average applied to the histogram itself helps identify histogram trend direction and acts as a signal line for histogram movements. Supports EMA, SMA, RMA, and WMA types. Useful for identifying when histogram momentum is strengthening or weakening.
Histogram Bollinger Bands:
Bollinger Bands are applied to the MACD histogram instead of price. The calculation: Basis = SMA(Histogram, Period), StdDev = stdev(Histogram, Period), Upper = Basis + (StdDev × Deviation Multiplier), Lower = Basis - (StdDev × Deviation Multiplier). This creates dynamic zones around the histogram that adapt to histogram volatility. When the histogram touches or exceeds the bands, it indicates extreme conditions relative to recent histogram behavior.
Stochastic MACD (StochMACD):
Stochastic MACD applies the Stochastic oscillator formula to the MACD histogram instead of price. This normalizes the histogram to a 0-100 scale, making it easier to identify overbought/oversold conditions on the histogram itself. The calculation: %K = ((Histogram - Lowest Histogram) / (Highest Histogram - Lowest Histogram)) × 100. %K is smoothed, and %D is calculated as the moving average of smoothed %K. Standard thresholds are 80 (overbought) and 20 (oversold).
Regression Forecasting
The script includes advanced regression forecasting that predicts future MACD values using mathematical models. This helps anticipate potential MACD movements and provides forward-looking context for trading decisions.
Regression Types:
- Linear: Simple trend line (y = mx + b) - fastest, works well for steady trends
- Polynomial: Quadratic curve (y = ax² + bx + c) - captures curvature in MACD movement
- Exponential Smoothing: Weighted average with more weight on recent values - responsive to recent changes
- Moving Average: Uses difference between short and long MA to estimate trend - stable and smooth
Forecast Horizon:
Number of bars to forecast ahead (default 5, max 50 for linear/MA, max 20 for polynomial due to performance). Longer horizons predict further ahead but may be less accurate.
Confidence Bands:
Optional upper/lower bands around forecast show prediction uncertainty based on forecast error (standard deviation of prediction vs actual). Wider bands = higher uncertainty. The confidence level multiplier (default 1.5) controls band width.
Forecast Display:
Forecast appears as dotted lines extending forward from current bar, with optional confidence bands. All forecast values respect percentage mode and scale factor settings.
Strong Top/Bottom Signals
The script detects strong recovery from extreme MACD levels, generating "sBottom" and "sTop" signals. These identify significant reversal potential when MACD recovers substantially from overbought/oversold extremes.
Strong Bottom (sBottom):
Triggered when:
1. MACD was at or near its lowest point in the bottom period (default 10 bars)
2. MACD was in or near the oversold zone
3. MACD has recovered by at least the threshold amount (default 0.5) from the lowest point
4. Recovery persists for confirmation bars (default 2 consecutive bars)
5. MACD has moved out of the oversold zone
6. Volume is above average
7. All enabled filters pass
8. Minimum bars have passed since last signal (reset period, default 5 bars)
Strong Top (sTop):
Triggered when:
1. MACD was at or near its highest point in the top period (default 7 bars)
2. MACD was in or near the overbought zone
3. MACD has declined by at least the threshold amount (default 0.5) from the highest point
4. Decline persists for confirmation bars (default 2 consecutive bars)
5. MACD has moved out of the overbought zone
6. Volume is above average
7. All enabled filters pass
8. Minimum bars have passed since last signal (reset period, default 5 bars)
Label Placement:
sTop/sBottom labels appear on the historical bar where the actual extreme occurred (not on current bar), showing the exact MACD value at that extreme. Labels respect the unified distance checking system to prevent overlaps with Buy/Sell Strength labels.
Signal Strength Calculation
The script calculates a composite signal strength score (0-100) based on multiple factors:
- MACD distance from signal line (0-50 points): Larger separation indicates stronger signal
- Volume confirmation (0-15 points): Volume above average adds points
- Secondary timeframe alignment (0-15 points): Higher timeframe agreement adds points
- Distance from zero line (0-20 points): Closer to zero can indicate stronger reversal potential
Higher scores (70+) indicate stronger, more reliable signals. The signal strength is displayed in the statistics table and can be used as a filter to only accept signals above a threshold.
Smart Label Placement System
The script includes an advanced label placement system that tracks MACD extremes and places Buy/Sell Strength labels at optimal locations:
Label Placement Algorithm:
- Labels appear on the current bar at confirmation (not on historical extreme bars), ensuring they're visible when the signal is confirmed
- The system tracks pending signals when MACD enters OB/OS zones or crosses the signal line
- During tracking, the system continuously searches for the true extreme (lowest MACD for buys, highest MACD for sells) within a configurable historical lookback period
- Labels are only finalized when: (1) MACD exits the OB/OS zone, (2) sufficient bars have passed (2x minimum distance), (3) MACD has recovered/declined by a configurable percentage from the extreme (default 15%), and (4) tracking has stopped (no better extreme found)
Label Spacing and Overlap Prevention:
- Minimum Bars Between Labels: Base distance requirement (default 5 bars)
- Label Spacing Multiplier: Scales the base distance (default 1.5x) for better distribution. Higher values = more spacing between labels
- Effective distance = Base Distance × Spacing Multiplier (e.g., 5 × 1.5 = 7.5 bars minimum)
- Unified distance checking prevents overlaps between all label types (Buy Strength, Sell Strength, sTop, sBottom)
Strength-Based Filtering:
- Label Strength Minimum (%): Only labels with strength at or above this threshold are displayed (default 75%)
- When multiple potential labels are close together, the system automatically compares strengths and keeps only the strongest one
- This ensures only the most significant signals are displayed, reducing chart clutter
Zero Line Polarity Enforcement:
- Enforce Zero Line Polarity (default enabled): Ensures labels follow traditional MACD interpretation
- Buy Strength labels only appear when the tracked extreme MACD value was below zero (negative territory)
- Sell Strength labels only appear when the tracked extreme MACD value was above zero (positive territory)
- This prevents counter-intuitive labels (e.g., Buy labels above zero line) and aligns with standard MACD trading principles
Recovery/Decline Confirmation:
- Recovery/Decline Confirm (%): Percent move away from the extreme required before finalizing (default 15%)
- For Buy labels: MACD must recover by at least this percentage from the tracked bottom
- For Sell labels: MACD must decline by at least this percentage from the tracked top
- Higher values = more confirmation required, fewer but more reliable labels
Historical Lookback:
- Historical Lookback for Label Placement: Number of bars to search for true extremes (default 20)
- The system searches within this period to find the actual lowest/highest MACD value
- Higher values analyze more history but may be slower; lower values are faster but may miss some extremes
Cross Quality Score
The script calculates a MACD cross quality score (0-100) that rates crossover quality based on:
- Cross angle (0-50 points): Steeper crosses = stronger signals
- Volume confirmation (0-25 points): Volume above average adds points
- Distance from zero line (0-25 points): Crosses near zero line are stronger
This score helps identify high-quality crossovers and can be used as a filter to only accept signals meeting minimum quality threshold.
Filtering System
Histogram Filter:
Requires histogram to be above zero for buy signals, below zero for sell signals. Ensures momentum alignment before generating signals.
Signal Strength Filter:
Requires minimum signal strength score for signals. Higher threshold = only strongest signals pass. This combines multiple confirmation factors into a single filter.
Cross Quality Filter:
Requires minimum cross quality score for signals. Rates crossover quality based on angle, volume, momentum, and distance from zero. Only signals meeting minimum quality threshold will be generated.
All filters use the pattern: filterResult = not filterEnabled OR conditionMet. This means if a filter is disabled, it always passes (returns true). Filters can be combined, and all must pass for a signal to fire.
Multi-Timeframe Analysis
The script can display MACD from a secondary (higher) timeframe and use it for confirmation. When secondary timeframe confirmation is enabled, signals require the higher timeframe MACD to align (bullish/bearish) with the signal direction. This ensures signals align with the larger trend context, reducing counter-trend trades.
Secondary Timeframe MACD:
The secondary timeframe MACD uses the same calculation parameters (fast, slow, signal, MA type) as the main MACD but from a higher timeframe. This provides context for the current timeframe's MACD position relative to the larger trend. The secondary MACD lines are displayed on the chart when enabled.
Noise Filtering
Noise filtering hides small histogram movements below a threshold. This helps focus on significant moves and reduces chart clutter. When enabled, only histogram movements above the threshold are displayed. Typical threshold values are 0.1-0.5 for most instruments, depending on the instrument's price range and volatility.
Signal Debounce
Signal debounce prevents duplicate MACD cross signals within a short time period. Useful when MACD crosses back and forth quickly, creating multiple signals. Debounce ensures only one signal per period, reducing signal spam during choppy markets. This is separate from alert cooldown, which applies to all alert types.
Background Color Modes
The script offers three background color modes:
- Dynamic: Full MACD heatmap based on OB/OS conditions, confidence, and momentum. Provides rich visual feedback.
- Monotone: Soft neutral background but still allows overlays (OB/OS zones). Keeps the chart clean without overpowering candles.
- Off: No MACD background (only overlays and plots). Maximum chart cleanliness.
When OB/OS background colors are enabled, they are drawn on top of the main background to ensure visibility.
Statistics Table
A real-time statistics table displays current MACD values, signal strength, distance from zero line, secondary timeframe alignment, volume confirmation status, and all active filter statuses. The table dynamically adjusts to show only enabled features, keeping it clean and relevant. The table position can be configured (Top Left, Top Right, Bottom Left, Bottom Right).
Performance Statistics Table
An optional performance statistics table shows comprehensive filter diagnostics:
- Total buy/sell signals (raw crossover count before filters)
- Filtered buy/sell signals (signals that passed all filters)
- Overall pass rates (percentage of signals that passed filters)
- Rejected signals count
- Filter-by-filter rejection diagnostics showing which filters rejected how many signals
This table helps optimize filter settings by showing which filters are most restrictive and how they impact signal frequency. The diagnostics format shows rejections as "X B / Y S" (X buy signals rejected, Y sell signals rejected) or "Disabled" if the filter is not active.
Alert System
The script includes separate alert conditions for each signal type:
- MACD Cross: MACD line crosses above/below Signal line (with or without secondary confirmation)
- Zero-Line Cross: MACD crosses above/below zero
- Divergence: Regular and hidden divergence detections
- Secondary Timeframe: Higher timeframe MACD crosses
- Histogram MA Cross: Histogram crosses above/below its moving average
- Histogram Zero Cross: Histogram crosses above/below zero
- StochMACD: StochMACD overbought/oversold entries and %K/%D crosses
- Histogram BB: Histogram touches/breaks Bollinger Bands
- Volume Events: Volume climax and dry-up detections
- OB/OS: MACD entry/exit from overbought/oversold zones
- Strong Top/Bottom: sTop and sBottom signal detections
Each alert type has its own cooldown system to prevent alert spam. The cooldown requires a minimum number of bars between alerts of the same type, reducing duplicate alerts during volatile periods. Alert types can be filtered to only evaluate specific alert types (All, MACD Cross, Zero Line, Divergence, Secondary Timeframe, Histogram MA, Histogram Zero, StochMACD, Histogram BB, Volume Events, OB/OS, Strong Top/Bottom).
How Components Work Together
MACD crossovers provide the primary signal when the MACD line crosses the Signal line. Zero-line crosses indicate momentum shifts and can provide early warning signals. Divergences identify potential reversals before they occur.
Volume confirmation ensures signals occur with sufficient market participation, filtering out low-volume false breakouts. Histogram analysis tools (MA, Bollinger Bands, StochMACD) provide additional context for signal reliability and identify significant histogram zones.
Signal strength combines multiple confirmation factors into a single score, making it easy to filter for only the strongest signals. Cross quality score rates crossover quality to identify high-quality setups. Multi-timeframe confirmation ensures signals align with higher timeframe trends, reducing counter-trend trades.
Usage Instructions
Getting Started:
The default configuration shows MACD(12,26,9) with standard EMA calculations. Start with default settings and observe behavior, then customize settings to match your trading style. You can use configuration presets for quick setup based on your trading style.
Customizing MACD Parameters:
Adjust Fast Length (default 12), Slow Length (default 26), and Signal Length (default 9) based on your trading timeframe. Shorter periods (8,17,7) for faster signals, longer (15,30,12) for smoother signals. You can change the moving average type: EMA for responsiveness, RMA for smoothness, WMA for recent price emphasis.
Price Source Selection:
Choose Close (standard), or alternative sources (HL2, HLC3, OHLC4) for different sensitivity. HL2 uses the midpoint of the high-low range, HLC3 and OHLC4 incorporate more price information.
Histogram Smoothing:
Set smoothing to 1 for raw histogram (no smoothing), or increase (3-5) for smoother histogram that reduces noise. Higher smoothing reduces false signals but may delay signals slightly.
Percentage Mode:
Enable percentage mode when comparing MACD across instruments with different price levels. This normalizes MACD values, making them directly comparable.
Dynamic OB/OS Levels:
The dynamic thresholds automatically adapt to volatility. Adjust the multipliers (default 1.5) to fine-tune sensitivity: higher values (2.0-3.0) = more extreme thresholds (fewer signals), lower (1.0-1.5) = more frequent signals. Adjust the lookback period to control how quickly levels adapt. Enable OB/OS background colors for visual indication of extreme conditions.
Volume Confirmation:
Set volume threshold to 1.0 (default, effectively disabled) or higher (1.2-1.5) for standard confirmation. Higher values require more volume for confirmation. Set to 0.1 to completely disable volume filtering.
Filters:
Enable filters gradually to find your preferred balance. Start with histogram filter for basic momentum alignment, then add signal strength filter (threshold 50+) for moderate signals, then cross quality filter (threshold 50+) for high-quality crossovers. Combine filters for highest-quality signals but expect fewer signals.
Divergence:
Enable divergence detection and adjust pivot lookback parameters. Pivot-based divergence provides more accurate detection using actual pivot points. Hidden divergence is useful for trend-following strategies. Adjust range parameters to filter divergences by time window.
Zero-Line Crosses:
Zero-line cross alerts are automatically available when alerts are enabled. These provide early warning signals for momentum shifts.
Histogram Analysis Tools:
Enable Histogram Moving Average to see histogram trend direction. Enable Histogram Bollinger Bands to identify extreme histogram zones. Enable Stochastic MACD to normalize histogram to 0-100 scale for overbought/oversold identification.
Multi-Timeframe:
Enable secondary timeframe MACD to see higher timeframe context. Enable secondary confirmation to require higher timeframe alignment for signals.
Signal Strength:
Signal strength is automatically calculated and displayed in the statistics table. Use signal strength filter to only accept signals above a threshold (e.g., 50 for moderate, 70+ for strong signals only).
Smart Label Placement:
Configure label placement settings to control label appearance and quality:
- Label Strength Minimum (%): Set threshold (default 75%) to show only strong signals. Higher = fewer, stronger labels
- Label Spacing Multiplier: Adjust spacing (default 1.5x) for better distribution. Higher = more spacing between labels
- Recovery/Decline Confirm (%): Set confirmation requirement (default 15%). Higher = more confirmation, fewer labels
- Enforce Zero Line Polarity: Enable (default) to ensure Buy labels only appear when tracked extreme was below zero, Sell labels only when above zero
- Historical Lookback: Adjust search period (default 20 bars) for finding true extremes. Higher = more history analyzed
Cross Quality:
Cross quality score is automatically calculated for crossovers. Use cross quality filter to only accept high-quality crossovers (threshold 50+ for moderate, 70+ for high quality).
Alerts:
Set up alerts for your preferred signal types. Enable alert cooldown (default enabled, 5 bars) to prevent alert spam. Use alert type filter to only evaluate specific alert types (All, MACD Cross, Zero Line, Divergence, Secondary Timeframe, Histogram MA, Histogram Zero, StochMACD, Histogram BB, Volume Events, OB/OS, Strong Top/Bottom). Each signal type has its own alert condition, so you can be selective about which signals trigger alerts.
Visual Elements and Signal Markers
The script uses various visual markers to indicate signals and conditions:
- MACD Line: Green when above signal (bullish), red when below (bearish) if dynamic colors enabled. Optional black outline for enhanced visibility
- Signal Line: Orange line with optional black outline for enhanced visibility
- Histogram: Color-coded based on direction and momentum (green for bullish rising, lime for bullish falling, red for bearish falling, orange for bearish rising)
- Zero Line: Horizontal reference line at MACD = 0
- Fill to Zero: Green/red semi-transparent fill between MACD line and zero line showing bullish/bearish territory
- Fill Between OB/OS: Blue semi-transparent fill between overbought/oversold thresholds highlighting neutral zone
- OB/OS Background Colors: Background coloring when MACD enters overbought/oversold zones
- Background Colors: Dynamic or monotone backgrounds indicating MACD state, or custom chart background
- Divergence Labels: "🐂" for bullish, "🐻" for bearish, "H Bull" for hidden bullish, "H Bear" for hidden bearish
- Divergence Lines: Colored lines connecting pivot points when divergences are detected
- Volume Climax Markers: ⚡ symbol for extremely high volume
- Volume Dry-Up Markers: 💧 symbol for extremely low volume
- Buy/Sell Strength Labels: Show signal strength percentage (e.g., "Buy Strength: 75%")
- Strong Top/Bottom Labels: "sTop" and "sBottom" for extreme level recoveries
- Secondary MACD Lines: Purple lines showing higher timeframe MACD
- Histogram MA: Orange line showing histogram moving average
- Histogram BB: Blue bands around histogram showing extreme zones
- StochMACD Lines: %K and %D lines with overbought/oversold thresholds
- Regression Forecast: Dotted blue lines extending forward with optional confidence bands
Signal Priority and Interpretation
Signals are generated independently and can occur simultaneously. Higher-priority signals generally indicate stronger setups:
1. MACD Cross with Multiple Filters - Highest priority: Requires MACD crossover plus all enabled filters (histogram, signal strength, cross quality) and secondary timeframe confirmation if enabled. These are the most reliable signals.
2. Zero-Line Cross - High priority: Indicates momentum shift. Can provide early warning signals before MACD crosses the signal line.
3. Divergence Signals - Medium-High priority: Pivot-based divergence is more reliable than simple divergence. Hidden divergence indicates continuation rather than reversal.
4. MACD Cross with Basic Filters - Medium priority: MACD crosses signal line with basic histogram filter. Less reliable alone but useful when combined with other confirmations.
Best practice: Wait for multiple confirmations. For example, a MACD crossover combined with divergence, volume confirmation, and secondary timeframe alignment provides the strongest setup.
Chart Requirements
For proper script functionality and compliance with TradingView requirements, ensure your chart displays:
- Symbol name: The trading pair or instrument name should be visible
- Timeframe: The chart timeframe should be clearly displayed
- Script name: "Ultimate MACD " should be visible in the indicator title
These elements help traders understand what they're viewing and ensure proper script identification. The script automatically includes this information in the indicator title and chart labels.
Performance Considerations
The script is optimized for performance:
- Calculations use efficient Pine Script functions (ta.ema, ta.sma, etc.) which are optimized by TradingView
- Conditional execution: Features only calculate when enabled
- Label management: Old labels are automatically deleted to prevent accumulation
- Array management: Divergence label arrays are limited to prevent memory accumulation
The script should perform well on all timeframes. On very long historical data with many enabled features, performance may be slightly slower, but it remains usable.
Known Limitations and Considerations
- Dynamic OB/OS levels can vary significantly based on recent MACD volatility. In very volatile markets, levels may be wider; in calm markets, they may be narrower.
- Volume confirmation requires sufficient historical volume data. On new instruments or very short timeframes, volume calculations may be less reliable.
- Higher timeframe MACD uses request.security() which may have slight delays on some data feeds.
- Stochastic MACD requires the histogram to have sufficient history. Very short periods on new charts may produce less reliable StochMACD values initially.
- Divergence detection requires sufficient historical data to identify pivot points. Very short lookback periods may produce false positives.
Practical Use Cases
The indicator can be configured for different trading styles and timeframes:
Swing Trading:
Use MACD(12,26,9) with secondary timeframe confirmation. Enable divergence detection. Use signal strength filter (threshold 50+) and cross quality filter (threshold 50+) for higher-quality signals. Enable histogram analysis tools for additional context.
Day Trading:
Use MACD(8,17,7) or use "Day Trading" preset with minimal histogram smoothing for faster signals. Enable zero-line cross alerts for early signals. Use volume confirmation with threshold 1.2-1.5. Enable histogram MA for momentum tracking.
Trend Following:
Use MACD(12,26,9) or longer periods (15,30,12) for smoother signals. Enable secondary timeframe confirmation for trend alignment. Hidden divergence signals are useful for trend continuation entries. Use cross quality filter to identify high-quality crossovers.
Reversal Trading:
Focus on divergence detection (pivot-based for accuracy) combined with zero-line crosses. Enable volume confirmation. Use histogram Bollinger Bands to identify extreme histogram zones. Enable StochMACD for overbought/oversold identification.
Multi-Timeframe Analysis:
Enable secondary timeframe MACD to see context from larger timeframes. For example, use daily MACD on hourly charts to understand the larger trend context. Enable secondary confirmation to require higher timeframe alignment for signals.
Practical Tips and Best Practices
Getting Started:
Start with default settings and observe MACD behavior. The default configuration (MACD 12,26,9 with EMA) is balanced and works well across different markets. After observing behavior, customize settings to match your trading style. Consider using configuration presets for quick setup.
Reducing Repainting:
All signals are based on confirmed bars, minimizing repainting. The script uses confirmed bar data for all calculations to ensure backtesting accuracy.
Signal Quality:
MACD crosses with multiple filters provide the highest-quality signals because they require alignment across multiple indicators. These signals have lower frequency but higher reliability. Use signal strength scores to identify the strongest signals (70+). Use cross quality scores to identify high-quality crossovers (70+).
Filter Combinations:
Start with histogram filter for basic momentum alignment, then add signal strength filter for moderate signals, then cross quality filter for high-quality crossovers. Combining all filters significantly reduces false signals but also reduces signal frequency. Find your balance based on your risk tolerance.
Volume Filtering:
Set volume threshold to 1.0 (default, effectively disabled) or lower to effectively disable volume filtering if you trade instruments with unreliable volume data or want to test without volume confirmation. Standard confirmation uses 1.2-1.5 threshold.
MACD Period Selection:
Standard MACD(12,26,9) provides balanced signals suitable for most trading. Shorter periods (8,17,7) for faster signals, longer (15,30,12) for smoother signals. Adjust based on your timeframe and trading style. Consider using configuration presets for optimized settings.
Moving Average Type:
EMA provides balanced responsiveness with smoothness. RMA is smoother and less responsive. WMA gives more weight to recent prices. SMA gives equal weight to all periods. Choose based on your preference for responsiveness vs. smoothness.
Divergence:
Pivot-based divergence is more reliable than simple divergence because it uses actual pivot points. Hidden divergence indicates continuation rather than reversal, useful for trend-following strategies. Adjust pivot lookback parameters to control sensitivity.
Dynamic Thresholds:
Dynamic OB/OS thresholds automatically adapt to volatility. In volatile markets, thresholds widen; in calm markets, they narrow. Adjust the multipliers to fine-tune sensitivity. Enable OB/OS background colors for visual indication.
Zero-Line Crosses:
Zero-line crosses indicate momentum shifts and can provide early warning signals before MACD crosses the signal line. Enable alerts for zero-line crosses to catch these early signals.
Alert Management:
Enable alert cooldown (default enabled, 5 bars) to prevent alert spam. Use alert type filter to only evaluate specific alert types. Signal debounce (default enabled, 3 bars) prevents duplicate MACD cross signals during choppy markets.
Technical Specifications
- Pine Script Version: v6
- Indicator Type: Non-overlay (displays in separate panel below price chart)
- Repainting Behavior: Minimal - all signals are based on confirmed bars, ensuring accurate backtesting results
- Performance: Optimized with conditional execution. Features only calculate when enabled.
- Compatibility: Works on all timeframes (1 minute to 1 month) and all instruments (stocks, forex, crypto, futures, etc.)
- Edge Case Handling: All calculations include safety checks for division by zero, NA values, and boundary conditions. Alert cooldowns and signal debounce handle edge cases where conditions never occurred or values are NA.
Technical Notes
- All MACD values respect percentage mode conversion when enabled
- Volume confirmation uses cached volume SMA for performance
- Label arrays (divergence) are automatically limited to prevent memory accumulation
- Background coloring: OB/OS backgrounds are drawn on top of main background to ensure visibility
- All calculations are optimized with conditional execution - features only calculate when enabled (performance optimization)
- Signal strength calculation combines multiple factors into a single score for easy filtering
- Cross quality calculation rates crossover quality based on angle, volume, and distance from zero
- Secondary timeframe MACD uses request.security() for higher timeframe data access
- Histogram analysis features (Bollinger Bands, MA, StochMACD) provide additional context beyond basic MACD signals
- Statistics table dynamically adjusts to show only enabled features, keeping it clean and relevant
- Divergence detection uses MACD line (not histogram) for more reliable signals
- Configuration presets automatically optimize MACD parameters for different trading styles
- Smart label placement: Labels appear on current bar at confirmation, using strength from tracked extreme point
- Label spacing uses effective distance (base distance × spacing multiplier) for better distribution
- Zero line polarity enforcement ensures Buy labels only appear when tracked extreme MACD < 0, Sell labels only when tracked extreme MACD > 0
- Label finalization requires MACD exit from OB/OS zone, sufficient bars passed, and recovery/decline percentage confirmation
- Strength-based filtering automatically compares and keeps only the strongest label when multiple signals are close together
- Enhanced visualization: Line outlines drawn behind main lines for superior visibility (black default, configurable)
- Enhanced visualization: Fill between MACD and zero line provides instant visual feedback (green above, red below)
- Enhanced visualization: Fill between OB/OS thresholds highlights neutral zone when dynamic levels are active
- Custom chart background overrides background mode when enabled, allowing theme-consistent indicator panels
15M Swing Sweep Lines + SMT (ES vs NQ)15M Swing Sweep Lines (NY Killzones)Visualize liquidity sweeps of 15-minute swing highs/lows exclusively during high-impact London & New York killzones.This ICT-inspired indicator detects when price sweeps (wicks beyond) the most recent confirmed 15-minute swing high or low — classic signs of liquidity raids or stop hunts — but only if the sweep happens during key "killzone" sessions where institutional activity is typically highest.Key Features15M Swing Detection: Uses confirmed pivot highs/lows (length 2) on the 15-minute timeframe for reliable structure points.
Killzone Filters (New York time):London Killzone: 3:00 AM – 4:59 AM
New York Killzone: 9:30 AM – 10:59 AM (captures the high-volatility NY open overlap)
Sweep Visualization:Bearish Sweep (high > last 15M swing high): Thick red horizontal line from the swing point to the sweep bar.
Bullish Sweep (low < last 15M swing low): Thick green horizontal line from the swing point to the sweep bar.
Lines use xloc.bar_time for precise placement and extend only to the bar where the sweep occurs.
No duplicates: Prevents multiple lines for the same swing sweep.
Non-repainting logic with lookahead_off for clean, trustworthy signals.
Why Killzones MatterMany ICT/SMC traders focus on these windows because they often feature aggressive manipulation, equal highs/lows sweeps, and the setup for strong directional moves. This tool helps you instantly spot when buy-side or sell-side liquidity has been raided on the 15M structure during these prime times.Ideal ForConfirming potential reversals or inducements after liquidity grabs.
Adding confluence to entries during London or NY sessions.
Futures traders (ES, NQ, etc.) looking for clean visual cues of smart money engineering.
Lightweight, overlay-friendly, and focused — add it to your chart for clearer insight into 15M liquidity sweeps when it matters most. Perfect companion for killzone-based strategies!
tncylyv - Improved Delta Volume BubbleThis script is a specialized modification and structural upgrade of the excellent "Delta Volume Bubble " by tncylyv.
While the original tool provided a fantastic foundation for statistical volume analysis, this "Zero Float" Edition was built to solve specific visual challenges faced by active traders—specifically the issue of indicators "floating" or disconnecting from price when zooming in on lower timeframes.
The Straight Improvements
This version turns a "Signal Indicator" into a complete "Trading System" with five specific upgrades:
1. Visual Stability (The "Zero Float" Fix)
Original: Used complex coordinates that could desynchronize, causing bubbles to drift or float away from candles on fast charts (1m/5m).
My Upgrade: Implemented "Magnetic Anchoring." Labels and bubbles are now physically locked to the candle wicks. They never drift, overlap, or float, no matter how much you zoom or resize the chart.
2. Cognitive Load (The HUD)
Original: Displayed raw numbers inside colored circles, requiring you to memorize color codes.
My Upgrade: Replaced numbers with Semantic Text Labels (e.g., "ABSORB", "SQUEEZE", "MOMENTUM"). You can read the market intent instantly without decoding it.
3. Regime Adaptation (AI Engine)
Original: Used a fixed threshold (e.g., Z-Score > 2.0).
My Upgrade: Added an Adaptive Learning Window. The script scans recent volatility to automatically raise the threshold during choppy markets (filtering noise) and lower it during quiet sessions (catching subtle entries).
4. Market Memory (Smart Structure)
Original: Signals disappeared into history.
My Upgrade: Draws Support/Resistance Rails extending from major volume events. This helps you visualize exactly where institutions are defending their positions.
5. Robust Data Handling
My Upgrade: Added a Hybrid Fallback Engine. If granular 1-minute data isn't available (e.g., on historical charts), the script seamlessly switches to an estimation model so the indicator never "breaks" or disappears.
Core Logic
Z-Score Normalization: We don't look at raw volume; we look at statistical anomalies (Standard Deviations).
Absorption: Detects "Effort vs. Result"—high volume with tiny price movement (Trapped Traders).
Squeeze: Highlights areas where a breakout is imminent due to volatility compression.
Credits
Original Concept & Code: tncylyv (Delta Volume Bubble ). This script would not exist without his brilliant groundwork.
Modifications: Visual Anchoring, HUD Text System, AI Thresholding, and Structure Rails added in this edition.
This script is open-source to keep the spirit of the original author alive. Use it to understand the "Why" behind the move.
RSI Forecast [QuantAlgo]🟢 Overview
While standard RSI excels at measuring current momentum and identifying overbought or oversold conditions, it only reflects what has already happened in the market. The RSI Forecast indicator builds upon this foundation by projecting potential RSI trajectories into future bars, giving traders a framework to consider where momentum might head next. Three analytical models power these projections: a market structure approach that reads swing highs and lows, a volume analysis method that weighs accumulation and distribution patterns, and a linear regression model that extrapolates recent trend behavior. Each model processes market data differently, allowing traders to choose the approach that best fits their analytical style and the asset they're trading.
🟢 How It Works
At its foundation, the indicator calculates RSI using the standard methodology: comparing average upward price movements against average downward movements over a specified period, producing an oscillator that ranges from 0 to 100. Traders can apply an optional signal line using various moving average types (e.g., SMA, EMA, SMMA/RMA, WMA, or VWMA), and when SMA smoothing is selected, Bollinger Bands can be added to visualize RSI volatility ranges.
The forecasting mechanism operates by first estimating future price levels using the chosen projection method. These estimated prices then pass through a simulated RSI engine that mirrors the actual indicator's mathematics. The simulation updates the internal gain and loss averages bar by bar, applying the same RMA smoothing that powers real RSI calculations, to produce authentic projected values.
Since RSI characteristically moves in waves rather than straight lines, the projection system incorporates dynamic oscillation. This draws from stored patterns of recent RSI movements, factors in the tendency for RSI to pull back from extreme readings, and applies mathematical wave functions tied to current momentum conditions. The Oscillation Intensity control lets traders adjust how much waviness appears in projections. Signal line (RSI-based MA) projections follow the same logic, advancing the chosen moving average type forward using its proper mathematical formula. The complete system generates 15 bars of projected RSI and signal line values, displayed as dashed lines extending beyond current price action.
🟢 Key Features
1. Market Structure Model
This projection method reads price action through swing point analysis. It scans for pivot highs and pivot lows within a defined lookback range, then evaluates whether the market is building bullish patterns (successive higher highs and higher lows) or bearish patterns (successive lower highs and lower lows). The algorithm recognizes structural shifts when price violates previous swing levels in either direction.
Price projections under this model factor in proximity to key swing levels and overall trend strength, measured by tallying trend-confirming swings over recent history. When bullish structure prevails and price hovers near support, upward price bias enters the projection, pushing forecasted RSI higher. Bearish structure near resistance creates the opposite effect. The model scales its projections using ATR to keep them proportional to current volatility conditions.
▶ Practical Implications for Traders:
Aligns well with traders who focus on support, resistance, and swing-based entries
Provides context for where RSI might travel as price interacts with structural levels
Tends to perform better when markets display clear directional swings
May produce less useful output during consolidation phases with overlapping swings
Offers early visualization of potential divergence setups
Swing traders can use structure-based projections to time entries around key pivot zones
Position traders could benefit from the trend strength component when holding through larger moves
On lower timeframes, it helps scalpers identify micro-structure shifts for quick momentum plays
Useful for mapping out potential RSI behavior around breakout and breakdown levels
Day traders can combine structural projections with session highs and lows for intraday context
2. Volume-Weighted Model
This method blends multiple volume indicators to inform its price projections. It tracks On-Balance Volume to gauge cumulative buying and selling pressure, monitors the Accumulation/Distribution Line to assess where price closes relative to its range on each bar, and calculates volume-weighted returns to give heavier influence to high-volume price movements. The model examines the directional slope of these metrics to assess whether volume confirms or contradicts price direction.
Unusually high volume bars receive special attention, with their directional bias factored into projections. When all volume metrics point the same direction, the model produces more aggressive price forecasts and consequently stronger RSI movements. Conflicting volume signals lead to more muted projections, suggesting RSI may move sideways rather than trending.
▶ Practical Implications for Traders:
Suited for traders who incorporate volume confirmation into their analysis
Works best with instruments that report accurate, meaningful volume data
Useful for identifying situations where momentum lacks volume support
Less applicable to instruments with sparse or unreliable volume information
Scalpers on liquid markets can spot volume-backed momentum for quick entries and exits
Helps intraday traders distinguish between genuine moves and low-volume fakeouts
Position traders can assess whether institutional participation supports longer-term trends
Effective during news events or market opens when volume spikes often drive directional moves
Swing traders can use volume divergence in projections to anticipate potential reversals
3. Linear Regression Model
The simplest of the three methods, linear regression fits a straight line through recent price data using least-squares mathematics and extends that line forward. These projected prices then generate corresponding RSI forecasts. This creates a clean momentum projection without conditional logic or interpretation of market characteristics. The forecast simply asks: if the recent price trend continues at its current rate of change, where would RSI be in the coming bars?
▶ Practical Implications for Traders:
Delivers a clean, mathematically neutral projection baseline
Functions well during sustained, orderly trends
Involves fewer parameters and produces consistent, reproducible output
Responds more slowly when trend direction shifts
Works best in trending environments rather than ranging markets
Ideal for position traders who want to ride established trends
Useful for swing traders to gauge trend exhaustion when actual RSI deviates from linear projections
Scalpers can use the smooth output as a reference point to measure short-term momentum deviations
Effective baseline for comparing against structure or volume models to measure market complexity
Works particularly well on higher timeframes where trends develop more gradually
🟢 Universal Applications Across All Models
Regardless of which forecasting method you select, the indicator projects future RSI positions that may help with:
▶ Overbought/Oversold Planning: See whether RSI trajectories point toward extreme zones, giving you time to prepare responses before conditions develop
▶ Entry and Exit Timing: Factor projected RSI levels into your timing decisions for opening or closing positions
▶ Crossover Anticipation: Watch for projected crossings between RSI and its signal line (RSI-based MA) that might indicate upcoming momentum shifts
▶ Mean Reversion Context: When RSI sits at extremes, projections can illustrate potential paths back toward the midline
▶ Momentum Evaluation: Assess whether current directional strength appears likely to continue or fade based on projection direction
▶ Divergence Awareness: Use forecast trajectories alongside price action to spot potential divergence formations earlier
▶ Comparative Analysis: Run different projection methods and note where they agree or disagree, using alignment as an additional filter, for instance
▶ Multi-Timeframe Context: Compare RSI projections across different timeframes to identify alignment or conflict in momentum outlook
▶ Trade Management: Reference projected RSI levels when adjusting stops, scaling positions, or setting profit targets
▶ Rule-Based Systems: Incorporate projected RSI conditions into systematic trading approaches for more forward-looking signal generation
Note: It is essential to recognize that these forecasts derive from mathematical analysis of recent price behavior. Markets are dynamic environments shaped by innumerable factors that no technical tool can fully capture or foresee. The projected RSI values represent potential scenarios for how momentum might develop, and actual readings can take different paths than those visualized. Historical tendencies and past patterns offer no guarantee of future behavior. Consider these projections as one element within a comprehensive trading approach that encompasses disciplined risk management, appropriate position sizing, and diverse analytical methods. The true benefit lies not in expecting precise forecasts but in developing a forward-thinking perspective on possible market conditions and planning your responses accordingly.
Rapid Signal GeometryMechanism Explained (Simple & Practical)
1. Fair Value Baseline
A smoothed moving average (RMA) is used to represent price equilibrium. This baseline filters noise and avoids reacting to minor fluctuations.
2. Volatility Envelope
ATR or Standard Deviation (user selectable) defines how far price must move away from equilibrium to be considered meaningful. This adaptive range expands and contracts with market conditions.
3. Regime Shift Detection
A bullish regime is confirmed when price decisively breaks above the upper volatility boundary.
A bearish regime is confirmed when price decisively breaks below the lower volatility boundary.
The logic resets on every candle — there is no trailing or repainting behaviour.
4. Signal Candle Geometry
On the first candle of a new regime, RSG draws two short horizontal guides:
• 50% Body Level
The midpoint of the signal candle’s body, representing balance within the impulse.
• Projected Wick Level
A mirrored wick projection calculated from the candle’s close:
– Bullish signal: upper wick distance projected downward
– Bearish signal: lower wick distance projected upward
These levels provide a geometric framework for execution planning.
Signals & Alerts
• Buy signal prints only on the first confirmed bullish regime
• Sell signal prints only on the first confirmed bearish regime
• No repeated signals during the same trend
Alert options include:
• Buy only
• Sell only
• Combined Buy/Sell
All alerts are bar-close confirmed.
How to Use Rapid Signal Geometry
RSG is best used as an execution aid, not a standalone strategy.
Common use cases:
• Refining entries after a confirmed directional bias
• Identifying pullback or reaction zones on signal candles
• Aligning discretionary entries with volatility-aware structure
• Complementing higher-timeframe analysis or session-based strategies
The geometric levels are reference points — traders should always apply their own risk management.
Recommended Timeframes
RSG performs best on:
• 15-minute
• 1-hour
These timeframes provide a strong balance between signal clarity and noise reduction.
Lower timeframes may produce more frequent regime changes, while higher timeframes offer fewer but broader signals.
Important Notes
• This indicator does not predict future price movement
• Signals are not trade recommendations
• Designed for educational and analytical purposes
• Always combine with your own market context and risk rules
Summary
Rapid Signal Geometry focuses on one thing only:
revealing the internal geometry of decisive market moments .
By combining volatility-aware regime detection with precise candle-level reference marks, RSG offers a clean and disciplined approach to execution-focused chart analysis.
TCI Time Oracle - Intraday
🟢 Green Zone — Opening & Closing Liquidity Window
Time:
Opening Green: ~9:15 – 9:30 AM
Closing Green: ~3:15 – 3:30 PM
Market Character:
Highest liquidity of the day
Overnight positions unwind / fresh positions initiate
Strong directional intent often revealed
Smart money sets the day’s bias
Trading Insight:
Best zone for trend bias identification
Option premiums react fastest here
Not ideal for late entries, but excellent for confirmation
🔵 Blue Zone — Midday Compression / Algo Control
Time: ~11:15 AM – 12:00 PM
Market Character:
Volatility contraction
Algo-driven price control
Time decay dominates options
Fake breakouts and mean reversion
Trading Insight
Worst zone for aggressive option buying
Best for range scalping or staying flat
Institutions wait, retailers get chopped
🔴 Red Zone — Institutional Expansion / Trap Zone
Time: ~1:15 PM – 2:00 PM
Market Character:
Sudden volatility expansion
Institutional orders hit the market
Trend acceleration or sharp reversal
Options see rapid delta & gamma shift
Trading Insight:
High probability trend continuation or trap creation
Strong zone for directional option trades
Requires strict risk management
Big Picture Takeaway
Green sets the intent
Blue compresses and traps
Red expands and delivers the real move
This time-zone behavior is exactly why one strategy cannot work all day. Edge comes from trading the right setup in the right time window.
Gold ORB Strategy (3/5/15/30 Min)It's a multi-mode Opening Range Breakout system for Gold futures that automates the detection of the 7:20-7:23 AM CT opening range and provides clear visual signals for four different trading styles.
In Plain English:
"It draws a box around gold's first 3 minutes of trading, then alerts you when price breaks out with confirmation from volume, VWAP, and moving averages. It automatically calculates your entry, stop, and target prices based on your chosen strategy style."
What Makes It Unique:
4 Trading Personalities in One Tool:
Aggressive = "I want every breakout, I'll manage the fakeouts"
Confirmed = "Show me only moves that close beyond the range"
Retest = "I want the pullback entry for better R:R"
Fibonacci = "Let me buy the dip after the initial move"
Smart Confluence Filtering:
Doesn't just show every breakout
Checks if VWAP agrees (trend filter)
Verifies EMA alignment (momentum filter)
Flags volume spikes (conviction filter)
Complete Trade Management:
Automatically calculates stops (3 different methods)
Shows profit targets based on your R:R preference
Labels stick to price levels as you scroll
Visual dashboard shows all key info at a glance
What It's NOT:
Not a "buy here, sell there" robot - you still need to read the market
Not foolproof - no strategy works every day
Not optimized yet - you'll need to backtest and adjust settings for your style
The Real Value:
It takes a proven strategy from your research and makes it systematic and repeatable. Instead of manually drawing boxes and calculating stops every morning, it does the math and shows you exactly where the setup is.
LJ Parsons Adjustable expanding MRT Fib Version 2Based on premium/discount/fair-value levels the indicator will expand with the market by settable dates.
The levels are not fib based as such but are resonant levels within an multiplicative /12 log scale using the LJ Parsons Market resonance hypothesis.
Monthly Seasonality (for last N Years)Monthly Seasonality analyzes historical price behavior to reveal how a symbol typically performs in each calendar month. It helps traders identify recurring seasonal patterns, stronger months, weaker months, and overall consistency across years.
What this indicator does?
1. Calculates monthly percentage returns using historical price data
2. Aggregates results over a user-defined lookback period (max up to 20 years)
3. Displays a seasonality table showing:
> Average return (%) for each month
> Win rate (%) — how often the month closed positive
> Number of years included in the calculation
4. Automatically highlights:
> 📈 Best performing month
> 📉 Worst performing month
Seasonality Table:
Green shading indicates positive average returns
Red shading indicates negative average returns
⭐ A star marks the strongest and weakest months
Table colors automatically adapt to light and dark themes
Table position is fully customizable (top, middle, bottom)
How Traders Use It?
Identify seasonally strong months for swing trades or position entries
Avoid historically weak periods or tighten risk controls
Combine with technical indicators for higher-probability trade timing
Useful for equities, ETFs, and indices with long trading histories
Examples:
1. AAPL
2. BTCUSD
LJ Parsons Adjustable expanding MRT FibBased on premium/discount/fair-value levels the indicator will expand with the market by settable dates.
The levels are not fib based as such but are resonant levels within an multiplicative /12 log scale using the LJ Parsons Market resonance hypothesis.
Sector Flow AnalysisSector Flow Analysis - Track market leadership and rotation across 11 major sector ETFs with real-time performance rankings.
Key Features:
Monitors all 11 S&P sector ETFs (XLK, XLF, XLI, XLU, XLV, XLP, XLY, XLB, XLRE, XLC, XLE)
Configurable lookback period (5-60 days) for performance calculation
Color-coded risk indicators: 🟢 Risk-On sectors leading (bullish), 🟠 Risk-Off sectors leading (defensive), 🟡 Neutral sectors
Display top N sectors (1-11) to declutter your chart
Fully customizable positioning, text size, and color
Clean, minimal table overlay that won't obstruct your chart
Use Cases:
Identify sector rotation patterns and market leadership changes
Gauge market sentiment (risk-on vs risk-off behavior)
Find opportunities by tracking which sectors are gaining/losing momentum
Confirm trend strength when your stock's sector is leading
Perfect companion to comprehensive market analysis tools for a complete picture of sector dynamics.
NQ Geometric Trading System NQ Geometric Trading System
Advanced confluence indicator for NQ futures implementing Michael S. Jenkins' geometric methodology.
Core Features:
Automatic spike detection (9:30-9:35) captures institutional footprint
Geometric levels from opening range using Jenkins ratios (R_50, R_25, R_67, extensions)
Rising zero angles provide dynamic time+price support/resistance
Fibonacci time windows highlight natural reversal periods
Weighted confluence algorithm (spike levels = 2x, others = 1x)
Real-time dashboard displays score 0-10 and signal strength
Customizable alerts for high-probability setups
How It Works:
System automatically detects opening spike extremes, calculates geometric ratios from 9:30-10:00 range, projects zero angles rising at 0.75 points/minute, and highlights Fibonacci time windows. When multiple factors align, dashboard shows confluence score with color-coded signals (Strong 5+, Trade 4, Watch 3).
Optimized For:
NQ/MNQ scalping and day trading on 1-5 minute timeframes. Works best during regular trading hours with timezone set to Exchange.
Customizable:
15+ parameters including angle rate, confluence threshold, price tolerance, time windows, and visual settings. Default optimized for NQ but adaptable.
Requirements:
Chart timezone must be "Exchange" or "America/New_York" for proper spike/range detection.
Perfect for traders seeking mechanical, objective signals based on proven geometric principles.
Ichimoku MTF Heatmap W/ adj alert placement W and D cloud ALERTShows green FLAG 50 bars back when Daily and Weekly Cloud metrics are ACTIVE.
Ichimoku + Time Theory Cluster PRO++ (ZZZ)## Ichimoku + Time Theory Cluster PRO++ (ZZZ)
### 1) What does this script do?
**Ichi+Time PRO++** combines **Ichimoku + Ichimoku Time Theory (Hosoda’s time cycles)** to:
- Automatically plot **Ichimoku (Tenkan/Kijun/Chikou/Kumo)** as a **trend filter & support/resistance framework**.
- Calculate **projected time targets** derived from **pivots (swing highs/lows)**, then **cluster** nearby targets into **“time windows”** where the probability of **reversal / acceleration / strong volatility** is higher than usual.
- Show **early warnings (countdown “~in N bars”)** and classify clusters as **Normal / Strong** using a **score**.
> Core idea: **Price can travel far/short based on “price”, but it often turns hard around certain “time” marks.** Ichimoku helps define *direction and key areas*, while Time Clusters tell you *when to be on alert*.
---
### 2) How it works (simple overview)
1. **Detect pivots** (swing highs/lows) using Pivot Left/Right
- A pivot is confirmed only after *pivRight* bars → less noise.
2. From each pivot, the script generates **projected time targets** based on Time Theory cycle offsets (bar intervals).
3. Nearby projections are **grouped into clusters** using **“Tolerance ± bars”**.
4. A cluster is kept only if it meets:
- **Min hits**: minimum number of projections inside the same window
- **Min score**: minimum score threshold
Score = **baseScore (weighted hits)** + **contextBonus (Ichimoku context)**
→ Clusters aligned with favorable Ichimoku conditions are **prioritized**.
---
### 3) What you will see on the chart
- **Ichimoku**: Tenkan / Kijun / Chikou / Kumo (to read trend & key zones).
- **Time Cluster Window**:
- **Normal**: meets baseline conditions.
- **Strong (TC++)**: higher score (≥ strongScore) → more important.
- **Tooltips / info labels** (e.g., hits, base, ctx, score, ~in N bars) show:
- How strong a cluster is
- How many bars remain until the “time window”
---
### 4) Practical usage (recommended workflow)
**Step 1 — Filter the trend with Ichimoku**
- Prefer Long when: price is **above Kumo**, Tenkan > Kijun, Chikou is not obstructed.
- Prefer Short when: price is **below Kumo**, Tenkan < Kijun, Chikou is not obstructed.
**Step 2 — Use Time Clusters to pick the “WHEN”**
- When a **Time Cluster (Normal/Strong)** appears, interpret it as:
- A **“sensitive time window”** → higher chance of reversal, breakout, acceleration, or sharp shakeout.
- Not an automatic entry; you still need **price action confirmation**.
**Step 3 — Entry trigger**
- Wait for confirmation such as: structure break, pin/engulf candle, range breakout, Kijun/Kumo retest, etc.
- **Strong clusters** are often useful to:
- Hunt reversals around Ichimoku zones (Kijun/Kumo)
- Hunt breakouts when consolidating and Ichimoku agrees with the trend
**Step 4 — Risk management**
- Place SL using the nearest structure (swing/pivot/Kijun) + buffer.
- If already in a trade, Time Clusters can help you:
- tighten SL, take partial profits, or anticipate volatility.
---
### 5) Presets (A/B) & signal tuning
- **Mode A: “Fewer but stronger”**
Stricter filtering → fewer clusters, higher quality (swing/position-friendly).
- **Mode B: “More early warnings”**
Moderate filtering → more clusters (good for earlier monitoring and flexibility).
- **Custom**
Manually adjust key parameters:
- Pivot Left/Right
- Tolerance ± bars
- Min hits / Min score / Strong score
- Filter small pivots (reduce noise)
> Tip: Higher timeframes (4H–1D) usually work best with Mode A (cleaner). Lower timeframes (15m–1H) can use Mode B, but require disciplined triggers.
---
### 6) Important notes (avoid misinterpretation)
- Pivots require confirmation → pivot-based signals **do not print exactly at the top/bottom**, but after *pivRight* bars.
- Future **projected clusters may shift** when new pivots appear (they update with new data).
Treat Time Clusters as **time windows to be alert**, not “exact entry points”.
- This script does not replace a trading plan; always use proper position sizing and risk control.
---
### 7) Performance
This script uses many drawing objects (box/label/line). If your device is slow:
- Reduce **Max pivots stored**
- Reduce the number of clusters displayed or switch to **Mode A**
- Use a higher timeframe
---
**Disclaimer:** This tool is for technical analysis support only and is not financial advice. You are responsible for your own trading decisions.
---
## User Guide
### 1) What is this indicator for?
This indicator combines **Auto Ichimoku** + **Time Theory Clusters** to:
- Identify **trend & equilibrium zones** via Ichimoku (Kumo, Tenkan/Kijun, Chikou).
- Find **time windows** with higher probability of volatility/reversal/acceleration (Time Clusters).
- Score each time cluster based on **cluster strength (hits)** and **Ichimoku context (context bonus)**.
> Key reminder: Time Clusters answer **WHEN**, not **WHERE**. Always combine them with **price confirmation / Ichimoku / PA** before entering.
---
### 2) Add the indicator & quick setup
1. Open a chart → **Indicators** → choose **Ichimoku + Time Theory Cluster PRO++**.
2. Recommended timeframes:
- Swing/position: **H4 – D1 – W1**
- Intraday: **M15 – H1** (noisier; needs stricter filtering).
3. Choose **Mode (Preset)**:
- **A: Fewer but stronger** → stricter, fewer signals, higher quality (recommended for swing).
- **B: More early warnings** → more signals (recommended for intraday monitoring).
- **Custom** → fine-tune all parameters.
---
### 3) Signal meaning (how to read the chart)
The indicator marks **Time Clusters** in two levels:
- **Time Cluster Enter (Normal)**: meets minimum thresholds (minHits/minScore).
- **Time Cluster Enter (Strong / TC++)**: strong cluster (score ≥ strongScore) → higher priority.
**Correct interpretation:**
- As price approaches a Time Cluster window, the market is more likely to:
- reverse,
- break out of consolidation,
- accelerate a trend,
- or produce strong volatility (sweep/false break).
- Trading direction should be aligned with **Ichimoku context** (see section 4).
---
### 4) Suggested trading rules (practical & simple)
#### A. Trend trading (recommended)
**Prefer LONG when:**
- Price is **above Kumo**, future Kumo is bullish (Span A > Span B).
- Tenkan is **above** Kijun (or just crossed up), Chikou is not trapped by price/cloud.
- At a Time Cluster:
- Look for a **pullback** to Kijun/Tenkan or structural support,
- Wait for confirmation (engulfing/pinbar/micro-structure break),
- Enter.
**Prefer SHORT when:**
- Price is **below Kumo**, future Kumo is bearish (Span A < Span B).
- Tenkan is **below** Kijun, Chikou is pressured/blocked.
- At a Time Cluster:
- Look for a rally into Kijun/cloud edge,
- Wait for rejection, then enter.
✅ Tip: **Strong clusters (TC++)** matter most when they align with:
- Kumo edge,
- Kijun,
- horizontal S/R,
- supply/demand (order block) or swing high/low.
#### B. Reversal trading (only with strong confirmation)
Consider reversals only when:
- Time Cluster is **Strong (TC++)**
- + you see a **structure shift** (BOS/CHoCH) or a clear reversal candle setup,
- + Ichimoku shows weakness (price inside cloud, flat Tenkan/Kijun, Chikou trapped).
---
### 5) Risk management (mandatory)
- Do not enter just because you “reached a Time Cluster”.
- Always set SL by structure:
- LONG: below swing low / below Kijun / below nearest cloud edge.
- SHORT: above swing high / above Kijun / above nearest cloud edge.
- Take profit using:
- minimum R:R **1:1.5 – 1:2**
- or key targets (prior highs/lows, cloud boundaries, fib levels, etc.)
---
### 6) Inputs explained (Custom mode)
- **Pivot Left / Pivot Right**: pivot confirmation (higher = fewer but more reliable pivots).
- **Max pivots stored**: how many pivots are stored for clustering (more = more sensitive but heavier).
- **Tolerance ± bars**: cluster window width (larger = more clusters; smaller = sharper).
- **Min hits**: minimum overlaps to qualify as a cluster.
- **Min score**: minimum score to accept a cluster.
- **Strong score**: threshold to mark strong clusters (TC++).
- **Filter small pivots / Filter mode**: remove small pivots to reduce noise (recommended ON).
---
### 7) Alerts (recommended)
You can create alerts for:
- **Time Cluster Enter (Normal)**
- **Time Cluster Enter (Strong / TC++)**
Recommendation: set alerts on your main trading timeframe (H1/H4/D1) to avoid spam on very small TFs.
---
### 8) Disclaimer
This indicator is for technical analysis support only and is **not financial advice**. All trading decisions are your responsibility. Please test (forward/backtest) and apply risk management before using real money.
---
### 9) Access (Invite-only, if applicable)
To request access, send me a private message on TradingView with:
- TradingView username
- Market you trade (Crypto/FX/Indices…)
- Primary timeframe (e.g., H1/H4/D1)
I will grant access in order of requests.
---
Forex Pairs Relative Analysis and SuggestionsThis Pine Script (version 5) indicator, titled "Forex Pairs Relative Analysis and Suggestions," is designed for use on TradingView charts. It provides real-time analysis of major forex pairs sourced from the IC Markets exchange, facilitating relative value or pair trading strategies by evaluating currency strengths against the US Dollar (USD). The script focuses on seven major currencies—EUR, GBP, AUD, NZD, JPY, CAD, and CHF—through their respective pairs: EURUSD, GBPUSD, AUDUSD, NZDUSD, USDJPY, USDCAD, and USDCHF.
Key features include:
Relative Currency Strengths: Calculated using the Rate of Change (ROC) over a user-defined lookback period (default: 14 bars), normalized to reflect performance versus USD. Positive values indicate strengthening, while negative values denote weakening.
Annualized Volatilities: Derived from the standard deviation of logarithmic returns, annualized assuming 252 trading days, and expressed as percentages to compare risk levels across pairs.
Full Pairwise Correlations: A comprehensive matrix displaying Pearson correlation coefficients between all pairs over the lookback period, aiding in identifying hedging opportunities (e.g., low or negative correlations for diversification).
Automated Pair Suggestions: Identifies the strongest and weakest currencies, proposing a long position in the pair to buy the strong currency and a short position (or opposite direction) to sell the weak currency against USD. Suggestions include estimated lot sizes based on user-input account balance, risk percentage (default: 1%), and a stop-loss proxy using 1x Average True Range (ATR).
Visual Elements: A table displays all metrics with color-coded rows for readability (optimized for dark mode), alternating backgrounds, and merged cells for suggestions. Strengths are also plotted in a separate pane with matching colors for trend visualization.
Customization: Users can adjust the lookback length, ATR period, account balance, and risk percentage via indicator settings to tailor the analysis.
Ensure access to IC Markets data in your TradingView account. The table appears in the top-left position by default and updates on the last bar. This tool is intended for educational and analytical purposes, supporting informed decision-making in forex trading by highlighting relative strengths, risks, and potential hedges.
Guidance on Choosing a Timeframe:
The indicator adapts to the chart's timeframe, with the lookback period influencing the historical window for metrics. Select based on your strategy:
Short-Term (Intraday/Scalping): Use 15-minute to 1-hour charts for timely signals; adjust lookback to 5–10 for responsiveness.
Medium-Term (Swing Trading): Opt for 4-hour to daily charts (recommended default) for balanced trends; 14-bar lookback covers days to weeks.
Long-Term (Position Trading): Choose weekly or monthly charts for macro views; increase lookback to 20–50 for smoother data.
Test across timeframes via backtesting to align with your risk and objectives.
Disclaimer:
This script is provided for informational and educational purposes only and does not constitute financial, investment, or trading advice. Trading forex involves significant risk of loss and is not suitable for all individuals. Past performance is not indicative of future results. The calculations, suggestions, and metrics (including lot sizes) are based on historical data and simplified assumptions, such as using ATR for stop-loss estimation, and may not account for real-time market conditions, slippage, commissions, or other factors. Users should conduct their own research, consult with qualified financial professionals, and verify the script's outputs before making any trading decisions. The author assumes no responsibility or liability for any losses incurred from the use of this script.
BulletProof Long Wick Reversal Markers with LinesThis custom Pine Script indicator for TradingView identifies and marks potential reversal points on your chart based on long wick candles at swing highs (tops) and lows (bottoms). It focuses on candles where the wick is significantly longer than the body (e.g., shooting stars or hammers) and where the subsequent price reversal exceeds a minimum percentage move. Markers appear as colored circles (green for tops, red for bottoms), with horizontal lines extending from each marker to the current bar for easy reference as support/resistance levels.Key Features and InterpretationMarkers (Dots): Green circles at tops: Indicate a potential bearish reversal where price was pushed down after a long upper wick candle.
Red circles at bottoms: Indicate a potential bullish reversal where price was pushed up after a long lower wick candle.
These only appear if the wick-to-body ratio meets the threshold (default 2.0) and the reversal move is at least the minimum percentage (default 1%).
Lines: Horizontal lines extend from each marker to the current bar (updating in real-time). Use these as dynamic levels—e.g., a green top line might act as resistance, while a red bottom line could be support. Lines do not extend into the future blank space on the chart.
Time Filtering: By default, only markers from the last 7 days are shown to reduce clutter. Set to 0 to display all historical ones.
Best Used On: 1-hour charts as per your request, but it works on any timeframe. It's ideal for spotting reversals in trending markets or confirming entries/exits with other indicators.






















