OPEN-SOURCE SCRIPT

Luxy Momentum, Trend and Breakout Indicators Suit V6

214
TABLE OF CONTENTS

This is Version 6 (V6) - the latest and most optimized release. If you are using any older versions (V5, V4, V3, etc.), it is highly recommended to replace them with V6.

  1. Why This Indicator is Different
  2. Who Should Use This
  3. Core Components Overview
  4. The UT Bot Trading System
  5. Understanding the Market Bias Table
  6. Candlestick Pattern Recognition
  7. Visual Tools and Features
  8. How to Use the Indicator
  9. Performance and Optimization
  10. FAQ


---

1. WHY THIS INDICATOR IS DIFFERENT
Most traders use multiple separate indicators on their charts, leading to cluttered screens, conflicting signals, and analysis paralysis. The Suite solves this by integrating proven technical tools into a single, cohesive system.

Key Advantages:

  • All-in-One Design: Instead of loading 5-10 separate indicators, you get everything in one optimized script. This reduces chart clutter and improves TradingView performance.
  • Multi-Timeframe Bias Table: Unlike standard indicators that only show the current timeframe, the Bias Table aggregates trend signals across multiple timeframes simultaneously. See at a glance whether 1m, 5m, 15m, 1h are aligned bullish or bearish - no more switching between charts.
  • Smart Confirmations: The indicator doesn't just give signals - it shows you WHY. Every entry has multiple layers of confirmation (MA cross, MACD momentum, ADX strength, RSI pullback, volume, etc.) that you can toggle on/off.
  • Dynamic Stop Loss System: Instead of static ATR stops, the SL is calculated from multiple support/resistance layers: UT trailing line, Supertrend, VWAP, swing structure, and MA levels. This creates more intelligent, price-action-aware stops.
  • R-Multiple Take Profits: Built-in TP system calculates targets based on your initial risk (1R, 1.5R, 2R, 3R). Lines freeze when touched with visual checkmarks, giving you a clean audit trail of partial exits.
  • Educational Tooltips Everywhere: Every single input has detailed tooltips explaining what it does, typical values, and how it impacts trading. You're not guessing - you're learning as you configure.
  • Performance Optimized: Smart caching, conditional calculations, and modular design mean the indicator runs fast despite having 15+ features. Turn off what you don't use for even better performance.
  • No Repainting: All signals respect bar close. Alerts fire correctly. What you see in history is what you would have gotten in real-time.


لقطة

What Makes It Unique:

  • Integrated UT Bot + Bias Table: No other indicator combines UT Bot's ATR trailing system with a live multi-timeframe dashboard. You get precision entries with macro trend context.
  • Candlestick Pattern Recognition with Interactive Tooltips: Patterns aren't just marked - hover over any emoji for a full explanation of what the pattern means and how to trade it.
  • Opening Range Breakout Tracker: Built-in ORB system for intraday traders with customizable session times and real-time status updates in the Bias Table.
  • Previous Day High/Low Auto-Detection: Automatically plots PDH/PDL on intraday charts with theme-aware colors. Updates daily without manual input.
  • Dynamic Row Labels in Bias Table: The table shows your actual settings (e.g., "EMA 10 > SMA 20") not generic labels. You know exactly what's being evaluated.
  • Modular Filter System: Instead of forcing a fixed methodology, the indicator lets you build your own strategy. Start with just UT Bot, add filters one at a time, test what works for your style.


---

2. WHO WHOULD USE THIS

Designed For:

  • Intermediate to Advanced Traders: You understand basic technical analysis (MAs, RSI, MACD) and want to combine multiple confirmations efficiently. This isn't a "one-click profit" system - it's a professional toolkit.
  • Multi-Timeframe Traders: If you trade one asset but check multiple timeframes for confirmation (e.g., enter on 5m after checking 15m and 1h alignment), the Bias Table will save you hours every week.
  • Trend Followers: The indicator excels at identifying and following trends using UT Bot, Supertrend, and MA systems. If you trade breakouts and pullbacks in trending markets, this is built for you.
  • Intraday and Swing Traders: Works equally well on 5m-1h charts (day trading) and 4h-D charts (swing trading). Scalpers can use it too with appropriate settings adjustments.
  • Discretionary Traders: This isn't a black-box system. You see all the components, understand the logic, and make final decisions. Perfect for traders who want tools, not automation.


Works Across All Markets:
  • Stocks (US, international)
  • Cryptocurrency (24/7 markets supported)
  • Forex pairs
  • Indices (SPY, QQQ, etc.)
  • Commodities


NOT Ideal For:

  • Complete Beginners: If you don't know what a moving average or RSI is, start with basics first. This indicator assumes foundational knowledge.
  • Algo Traders Seeking Black Box: This is discretionary. Signals require context and confirmation. Not suitable for blind automated execution.
  • Mean-Reversion Only Traders: The indicator is trend-following at its core. While VWAP bands support mean-reversion, the primary methodology is trend continuation.


---

3. CORE COMPONENTS OVERVIEW

The indicator combines these proven systems:
Trend Analysis:
  • Moving Averages: Four customizable MAs (Fast, Medium, Medium-Long, Long) with six types to choose from (EMA, SMA, WMA, VWMA, RMA, HMA). Mix and match for your style.
  • Supertrend: ATR-based trend indicator with unique gradient fill showing trend strength. One-sided ribbon visualization makes it easier to see momentum building or fading.
  • ZLSMA: Zero-lag linear-regression smoothed moving average. Reduces lag compared to traditional MAs while maintaining smooth curves.

Momentum & Filters:
  • MACD: Standard MACD with separation filter to avoid weak crossovers.
  • RSI: Pullback zone detection - only enter longs when RSI is in your defined "buy zone" and shorts in "sell zone".
  • ADX/DMI: Trend strength measurement with directional filter. Ensures you only trade when there's actual momentum.
  • Volume Filter: Relative volume confirmation - require above-average volume for entries.
  • Donchian Breakout: Optional channel breakout requirement.

Signal Systems:
  • UT Bot: The primary signal generator. ATR trailing stop that adapts to volatility and gives clear entry/exit points.
  • Base Signals: MA cross system with all the above filters applied. More conservative than UT Bot alone.

Visual Intelligence:
  • Market Bias Table: Multi-timeframe dashboard showing trend alignment across 7 timeframes plus macro bias (3-day, weekly, monthly, quarterly, VIX).
  • Candlestick Patterns: Six major reversal patterns auto-detected with interactive tooltips.
  • ORB Tracker: Opening range high/low with breakout status (intraday only).
  • PDH/PDL: Previous day levels plotted automatically on intraday charts.
  • VWAP + Bands: Session-anchored VWAP with up to three standard deviation band pairs.


لقطة
---

4. THE UT BOT TRADING SYSTEM

The UT Bot is the heart of the indicator's signal generation. It's an advanced ATR trailing stop that adapts to market volatility.

Why UT Bot is Superior to Fixed Stops:
Traditional ATR stops use a fixed multiplier (e.g., "stop = entry - 2×ATR"). UT Bot is smarter:
  • It TRAILS the stop as price moves in your favor
  • It WIDENS during high volatility to avoid premature stops
  • It TIGHTENS during consolidation to lock in profits
  • It FLIPS when price breaks the trailing line, signaling reversals


Visual Elements You'll See:
  • Orange Trailing Line: The actual UT stop level that adapts bar-by-bar
  • Buy/Sell Labels: Aqua triangle (long) or orange triangle (short) when the line flips
  • ENTRY Line: Horizontal line at your entry price (optional, can be turned off)
  • Suggested Stop Loss: A composite SL calculated from multiple support/resistance layers:
    - UT trailing line
    - Supertrend level
    - VWAP
    - Swing structure (recent lows/highs)
    - Long-term MA (200)
    - ATR-based floor
  • Take Profit Lines: TP1, TP1.5, TP2, TP3 based on R-multiples. When price touches a TP, it's marked with a checkmark and the line freezes for audit trail purposes.
  • Status Messages: "SL Touched ❌" or "SL Frozen" when the trade leg completes.


How UT Bot Differs from Other ATR Systems:
  • Multiple Filters Available: You can require 2-bar confirmation, minimum % price change, swing structure alignment, or ZLSMA directional filter. Most UT implementations have none of these.
  • Smart SL Calculation: Instead of just using the UT line as your stop, the indicator suggests a better SL based on actual support/resistance. This prevents getting stopped out by wicks while keeping risk controlled.
  • Visual Audit Trail: All SL/TP lines freeze when touched with clear markers. You can review your trades weeks later and see exactly where entries, stops, and targets were.
  • Performance Options: "Draw UT visuals only on bar close" lets you reduce rendering load without affecting logic or alerts - critical for slower machines or 1m charts.


Trading Logic:
  1. UT Bot flips direction (Buy or Sell signal appears)
  2. Check Bias Table for multi-timeframe confirmation
  3. Optional: Wait for Base signal or candlestick pattern
  4. Enter at signal bar close or next bar open
  5. Place stop at "Suggested Stop Loss" line
  6. Scale out at TP levels (TP1, TP2, TP3)
  7. Exit remaining position on opposite UT signal or stop hit


لقطة

---

5. UNDERSTANDING THE MARKET BIAS TABLE

This is the indicator's unique multi-timeframe intelligence layer. Instead of looking at one chart at a time, the table aggregates signals across seven timeframes plus macro trend bias.

Why Multi-Timeframe Analysis Matters:
Professional traders check higher and lower timeframes for context:
  • Is the 1h uptrend aligning with my 5m entry?
  • Are all short-term timeframes bullish or just one?
  • Is the daily trend supportive or fighting me?


Doing this manually means opening multiple charts, checking each indicator, and making mental notes. The Bias Table does it automatically in one glance.

Table Structure:
Header Row:
  • On intraday charts: 1m, 5m, 15m, 30m, 1h, 2h, 4h (toggle which ones you want)
  • On daily+ charts: D, W, M (automatic)
  • Green dot (🟢) next to title = live updating


Headline Rows - Macro Bias:
These show broad market direction over longer periods:
  • 3 Day Bias: Trend over last 3 trading sessions (uses 1h data)
  • Weekly Bias: Trend over last 5 trading sessions (uses 4h data)
  • Monthly Bias: Trend over last 30 daily bars
  • Quarterly Bias: Trend over last 13 weekly bars
  • VIX Fear Index: Market regime based on VIX level - bullish when low, bearish when high
  • Opening Range Breakout: Status of price vs. session open range (intraday only)


These rows show text: "BULLISH✔️", "BEARISH✖️", or "NEUTRAL⚠️"

Indicator Rows - Technical Signals:
These evaluate your configured indicators across all active timeframes:
  • Fast MA > Medium MA (shows your actual MA settings, e.g., "EMA 10 > SMA 20")
  • Price > Long MA (e.g., "Price > SMA 200")
  • Price > VWAP
  • MACD > Signal
  • Supertrend (up/down/neutral)
  • ZLSMA Rising
  • RSI In Zone
  • ADX ≥ Minimum


These rows show emojis: 🟩 (bullish), 🟥 (bearish), 🟡 (neutral/NA)

AVG Column:
Shows percentage of active timeframes that are bullish for that row. This is the KEY metric:
  • AVG > 70% = strong multi-timeframe bullish alignment
  • AVG 40-60% = mixed/choppy, no clear trend
  • AVG < 30% = strong multi-timeframe bearish alignment


How to Use the Table:

For a long trade:
  1. Check AVG column - want to see > 60% ideally
  2. Check headline bias rows - want to see BULLISH, not BEARISH
  3. Check VIX row - bullish market regime preferred
  4. Check ORB row (intraday) - want ABOVE for longs
  5. Scan indicator rows - more green = better confirmation


For a short trade:
  1. Check AVG column - want to see < 40% ideally
  2. Check headline bias rows - want to see BEARISH, not BULLISH
  3. Check VIX row - bearish market regime preferred
  4. Check ORB row (intraday) - want BELOW for shorts
  5. Scan indicator rows - more red = better confirmation


When AVG is 40-60%:
Market is choppy, mixed signals. Either stay out or reduce position size significantly. These are low-probability environments.

Unique Features:

  • Dynamic Labels: Row names show your actual settings (e.g., "EMA 10 > SMA 20" not generic "Fast > Slow"). You know exactly what's being evaluated.
  • Customizable Rows: Turn off rows you don't care about. Only show what matters to your strategy.
  • Customizable Timeframes: On intraday charts, disable 1m or 4h if you don't trade them. Reduces calculation load by 20-40%.
  • Automatic HTF Handling: On Daily/Weekly/Monthly charts, the table automatically switches to D/W/M columns. No configuration needed.
  • Performance Smart: "Hide BIAS table on 1D or above" option completely skips all table calculations on higher timeframes if you only trade intraday.


لقطة

---

6. CANDLESTICK PATTERN RECOGNITION

The indicator automatically detects six major reversal patterns and marks them with emojis at the relevant bars.

Why These Six Patterns:
These are the most statistically significant reversal patterns according to trading literature:
  • High win rate when appearing at support/resistance
  • Clear visual structure (not subjective)
  • Work across all timeframes and assets
  • Studied extensively by institutions


The Patterns:
Bullish Patterns (appear at bottoms):
  • 🔺 Bullish Engulfing: Green candle completely engulfs prior red candle's body. Strong reversal signal.
  • 🔨 Hammer: Small body with long lower wick (at least 2× body size). Shows rejection of lower prices by buyers.
  • 🌅 Morning Star: Three-candle pattern (large red → small indecision → large green). Very strong bottom reversal.

Bearish Patterns (appear at tops):
  • 🔻 Bearish Engulfing: Red candle completely engulfs prior green candle's body. Strong reversal signal.
  • 🌠 Shooting Star: Small body with long upper wick (at least 2× body size). Shows rejection of higher prices by sellers.
  • 🌆 Evening Star: Three-candle pattern (large green → small indecision → large red). Very strong top reversal.


Interactive Tooltips:
Unlike most pattern indicators that just draw shapes, this one is educational:
  • Hover your mouse over any pattern emoji
  • A tooltip appears explaining: what the pattern is, what it means, when it's most reliable, and how to trade it
  • No need to memorize - learn as you trade


Noise Filter:
"Min candle body % to filter noise" setting prevents false signals:
  • Patterns require minimum body size relative to price
  • Filters out tiny candles that don't represent real buying/selling pressure
  • Adjust based on asset volatility (higher % for crypto, lower for low-volatility stocks)


لقطة

How to Trade Patterns:

Patterns are NOT standalone entry signals. Use them as:
  • Confirmation: UT Bot gives signal + pattern appears = stronger entry
  • Reversal Warning: In a trade, opposite pattern appears = consider tightening stop or taking profit
  • Support/Resistance Validation: Pattern at key level (PDH, VWAP, MA 200) = level is being respected


Best combined with:
  • UT Bot or Base signal in same direction
  • Bias Table alignment (AVG > 60% or < 40%)
  • Appearance at obvious support/resistance


---

7. VISUAL TOOLS AND FEATURES

VWAP (Volume Weighted Average Price):

Session-anchored VWAP with standard deviation bands. Shows institutional "fair value" for the trading session.

  • Anchor Options: Session, Day, Week, Month, Quarter, Year. Choose based on your trading timeframe.
  • Bands: Up to three pairs (X1, X2, X3) showing statistical deviation. Price at outer bands often reverses.
  • Auto-Hide on HTF: VWAP hides on Daily/Weekly/Monthly charts automatically unless you enable anchored mode.


Use VWAP as:
  • Directional bias (above = bullish, below = bearish)
  • Mean reversion levels (outer bands)
  • Support/resistance (the VWAP line itself)


Previous Day High/Low:

Automatically plots yesterday's high and low on intraday charts:
  • Updates at start of each new trading day
  • Theme-aware colors (dark text for light charts, light text for dark charts)
  • Hidden automatically on Daily/Weekly/Monthly charts


These levels are critical for intraday traders - institutions watch them closely as support/resistance.

Opening Range Breakout (ORB):

Tracks the high/low of the first 5, 15, 30, or 60 minutes of the trading session:
  • Customizable session times (preset for NYSE, LSE, TSE, or custom)
  • Shows current breakout status in Bias Table row (ABOVE, BELOW, INSIDE, BUILDING)
  • Intraday only - auto-disabled on Daily+ charts


ORB is a classic day trading strategy - breakout above opening range often leads to continuation.

Extra Labels:

  • Change from Open %: Shows how far price has moved from session open (intraday) or daily open (HTF). Green if positive, red if negative.

  • ADX Badge: Small label at bottom of last bar showing current ADX value. Green when above your minimum threshold, red when below.

  • RSI Badge: Small label at top of last bar showing current RSI value with zone status (buy zone, sell zone, or neutral).


These labels provide quick at-a-glance confirmation without needing separate indicator windows.

---

8. HOW TO USE THE INDICATOR

Step 1: Add to Chart
  • Load the indicator on your chosen asset and timeframe
  • First time: Everything is enabled by default - the chart will look busy
  • Don't panic - you'll turn off what you don't need


Step 2: Start Simple
Turn OFF everything except:
  • UT Bot labels (keep these ON)
  • Bias Table (keep this ON)
  • Moving Averages (Fast and Medium only)
  • Suggested Stop Loss and Take Profits


Hide everything else initially. Get comfortable with the basic UT Bot + Bias Table workflow first.

Step 3: Learn the Core Workflow
  1. UT Bot gives a Buy or Sell signal
  2. Check Bias Table AVG column - do you have multi-timeframe alignment?
  3. If yes, enter the trade
  4. Place stop at Suggested Stop Loss line
  5. Scale out at TP levels
  6. Exit on opposite UT signal


Trade this simple system for a week. Get a feel for signal frequency and win rate with your settings.

Step 4: Add Filters Gradually
If you're getting too many losing signals (whipsaws in choppy markets), add filters one at a time:
  • Try: "Require 2-Bar Trend Confirmation" - wait for 2 bars to confirm direction
  • Try: ADX filter with minimum threshold - only trade when trend strength is sufficient
  • Try: RSI pullback filter - only enter on pullbacks, not chasing
  • Try: Volume filter - require above-average volume


Add one filter, test for a week, evaluate. Repeat.

Step 5: Enable Advanced Features (Optional)
Once you're profitable with the core system, add:
  • Supertrend for additional trend confirmation
  • Candlestick patterns for reversal warnings
  • VWAP for institutional anchor reference
  • ORB for intraday breakout context
  • ZLSMA for low-lag trend following


Step 6: Optimize Settings
Every setting has a detailed tooltip explaining what it does and typical values. Hover over any input to read:
  • What the parameter controls
  • How it impacts trading
  • Suggested ranges for scalping, day trading, and swing trading


Start with defaults, then adjust based on your results and style.

Step 7: Set Up Alerts
Right-click chart → Add Alert → Condition: "Luxy Momentum v6" → Choose:
  • "✅UT Bot — Buy✅" for long entries
  • "❌UT Bot — Sell❌" for short entries
  • "Base Long/Short" for filtered MA cross signals


Optionally enable "Send real-time alert() on UT flip" in settings for immediate notifications.

Common Workflow Variations:
Conservative Trader:
  • UT signal + Base signal + Candlestick pattern + Bias AVG > 70%
  • Enter only at major support/resistance
  • Wider UT sensitivity, multiple filters


Aggressive Trader:
  • UT signal + Bias AVG > 60%
  • Enter immediately, no waiting
  • Tighter UT sensitivity, minimal filters


Swing Trader:
  • Focus on Daily/Weekly Bias alignment
  • Ignore intraday noise
  • Use ORB and PDH/PDL less (or not at all)
  • Wider stops, patient approach


---

9. PERFORMANCE AND OPTIMIZATION

The indicator is optimized for speed, but with 15+ features running simultaneously, chart load time can add up. Here's how to keep it fast:

Biggest Performance Gains:

  • Disable Unused Timeframes: In "Time Frames" settings, turn OFF any timeframe you don't actively trade. Each disabled TF saves 10-15% calculation time. If you only day trade 5m, 15m, 1h, disable 1m, 2h, 4h.
  • Hide Bias Table on Daily+: If you only trade intraday, enable "Hide BIAS table on 1D or above". This skips ALL table calculations on higher timeframes.
  • Draw UT Visuals Only on Bar Close: Reduces intrabar rendering of SL/TP/Entry lines. Has ZERO impact on logic or alerts - purely visual optimization.


Additional Optimizations:
  • Turn off VWAP bands if you don't use them
  • Disable candlestick patterns if you don't trade them
  • Turn off Supertrend fill if you find it distracting (keep the line)
  • Reduce "Limit to 10 bars" for SL/TP lines to minimize line objects


Performance Features Built-In:
  • Smart Caching: Higher timeframe data (3-day bias, weekly bias, etc.) updates once per day, not every bar
  • Conditional Calculations: Volume filter only calculates when enabled. Swing filter only runs when enabled. Nothing computes if turned off.
  • Modular Design: Every component is independent. Turn off what you don't need without breaking other features.


Typical Load Times:
  • 5m chart, all features ON, 7 timeframes: ~2-3 seconds
  • 5m chart, core features only, 3 timeframes: ~1 second
  • 1m chart, all features: ~4-5 seconds (many bars to calculate)


If loading takes longer, you likely have too many indicators on the chart total (not just this one).

---

10. FAQ

Q: Can I use this for automated trading?
A: The indicator is designed for discretionary trading. While it has clear signals and alerts, it's not a mechanical system. Context and judgment are required.
Q: Does it repaint?
A: No. All signals respect bar close. UT Bot logic runs intrabar but signals only trigger on confirmed bars. Alerts fire correctly with no lookahead.
Q: How is this different from standard UT Bot indicators?
A: Standard UT Bot is just the ATR trailing line and flip signals. This implementation adds:
  • Multiple confirmation filters (swing, %, 2-bar, ZLSMA)
  • Smart composite stop loss system
  • R-multiple take profit system with freeze-on-touch
  • Integration with multi-timeframe Bias Table
  • Visual audit trail with checkmarks

Q: Do I need to use all the features?
A: Absolutely not. The indicator is modular. Many profitable traders use just UT Bot + Bias Table + Moving Averages. Start simple, add complexity only if needed.
Q: How do I know which settings to use?
A: Every single input has a detailed tooltip. Hover over any setting to see:
  • What it does
  • How it affects trading
  • Typical values for scalping, day trading, swing trading


Start with defaults, adjust gradually based on results.

Q: Can I use this on crypto 24/7 markets?
A: Yes. ORB will not work (no defined session), but everything else functions normally. Use "Day" anchor for VWAP instead of "Session".

Q: The Bias Table is blank or not showing.
A: Check:
  • "Show Table" is ON
  • Table position isn't overlapping another indicator's table (change position)
  • At least one row is enabled
  • "Hide BIAS table on 1D or above" is OFF (if on Daily+ chart)


Q: Why are candlestick patterns not appearing?
A: Patterns are relatively rare by design - they only appear at genuine reversal points. Check:
  • Pattern toggles are ON
  • "Min candle body %" isn't too high (try 0.05-0.10)
  • You're looking at a chart with actual reversals (not strong trending market)


Q: UT Bot is too sensitive/not sensitive enough.
A: Adjust "Sensitivity (Key×ATR)". Lower number = tighter stop, more signals. Higher number = wider stop, fewer signals. Read the tooltip for guidance.

Q: Can I get alerts for the Bias Table?
A: The Bias Table is a dashboard for visual analysis, not a signal generator. Set alerts on UT Bot or Base signals, then manually check Bias Table for confirmation.

Q: Does this work on stocks with low volume?
A: Yes, but turn OFF the volume filter. Low volume stocks will never meet relative volume requirements.

Q: How often should I check the Bias Table?
A: Before every entry. It takes 2 seconds to glance at the AVG column and headline rows. This one check can save you from fighting the trend.

Q: What if UT signal and Base signal disagree?
A: UT Bot is more aggressive (ATR trailing). Base signals are more conservative (MA cross + filters). If they disagree, either:
  • Wait for both to align (safest)
  • Take the UT signal but with smaller size (aggressive)
  • Skip the trade (conservative)


There's no "right" answer - depends on your risk tolerance.

---

FINAL NOTES

The indicator gives you an edge. How you use that edge determines results.

For questions, feedback, or support, comment on the indicator page or message the author.


Happy Trading! 🎯

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.