Maxtra Range Breakout StrategyRange Breakout Strategy
This strategy identifies periods of price consolidation (range) and enters trades when the price breaks above or below the defined range. A breakout above the range signals a potential uptrend (buy), while a breakout below indicates a potential downtrend (sell). It helps capture strong directional moves following low-volatility phases.
Breakout
Previous D/W/M HLOCHey traders,
Here's a simple Multi-Timeframe indicator that essentially turns time and price into a box. It'll take the previous high, low, opening price, or closing price from one of the three timeframes of your choice (day, week, or month). For whatever reason I can't get the opening price to function consistently so if you find improvements feel free to let me know, this will help traders who prefer to use opening price over closing price.
Naturally this form of charting is classical and nature and some key figures you could use to study its usage are
- Richard W. Schabacker (1930s)
- Edwards & Magee (1948)
- Peter Brandt
- Stacey Burke (more on the intraday side - typically our preference)
It's usage put plainly:
- Quantifying Accumulation or Distribution
- Revealing Energy Build-Up (Compression)
- Framing Breakouts and False Breakouts
- Structuring Time
- Identifying opportunities to trade a daily, weekly, or monthly range. 
Luxy BIG beautiful Dynamic ORBThis is an advanced Opening Range Breakout (ORB) indicator that tracks price breakouts from the first 5, 15, 30, and 60 minutes of the trading session. It provides complete trade management including entry signals, stop-loss placement, take-profit targets, and position sizing calculations.
The ORB strategy is based on the concept that the opening range of a trading session often acts as support/resistance, and breakouts from this range tend to lead to significant moves.
  
 What Makes This Different? 
Most ORB indicators simply draw horizontal lines and leave you to figure out the rest. This indicator goes several steps further:
 Multi-Stage Tracking 
Instead of just one ORB timeframe, this tracks FOUR simultaneously (5min, 15min, 30min, 60min). Each stage builds on the previous one, giving you multiple trading opportunities throughout the session.
 Active Trade Management 
When a breakout occurs, the indicator automatically calculates and displays entry price, stop-loss, and multiple take-profit targets. These lines extend forward and update in real-time until the trade completes.
 Cycle Detection 
Unlike indicators that only show the first breakout, this tracks the complete cycle: Breakout → Retest → Re-breakout. You can see when price returns to test the ORB level after breaking out (potential re-entry).
 Failed Breakout Warning 
If price breaks out but quickly returns inside the range (within a few bars), the label changes to "FAILED BREAK" - warning you to exit or avoid the trade.
 Position Sizing Calculator 
Built-in risk management that tells you exactly how many shares to buy based on your account size and risk tolerance. No more guessing or manual calculations.
 Advanced Filtering 
Optional filters for volume confirmation, trend alignment, and Fair Value Gaps (FVG) to reduce false signals and improve win rate.
  
 Core Features Explained
 
### 1. Multi-Stage ORB Levels
The indicator builds four separate Opening Range levels:
 
 ORB 5  - First 5 minutes (fastest signals, most volatile)
 ORB 15  - First 15 minutes (balanced, most popular)
 ORB 30  - First 30 minutes (slower, more reliable)
 ORB 60  - First 60 minutes (slowest, most confirmed)
 
Each level is drawn as a horizontal range on your chart. As time progresses, the ranges expand to include more price action. You can enable or disable any stage and assign custom colors to each.
 How it works:  During the opening minutes, the indicator tracks the highest high and lowest low. Once the time period completes, those levels become your ORB high and low for that stage.
### 2. Breakout Detection
When price closes outside the ORB range, a label appears:
 
 BREAK UP  (green label above price) - Price closed above ORB High
 BREAK DOWN  (red label below price) - Price closed below ORB Low
 
The label shows which ORB stage triggered (ORB5, ORB15, etc.) and the cycle number if tracking multiple breakouts.
 Important:  Signals appear on bar close only - no repainting. What you see is what you get.
### 3. Retest Detection
After price breaks out and moves away, if it returns to test the ORB level, a "RETEST" label appears (orange). This indicates:
 
 The original breakout level is now acting as support/resistance
 Potential re-entry opportunity if you missed the first breakout
 Confirmation that the level is significant
 
The indicator requires price to move a minimum distance away before considering it a valid retest (configurable in settings).
### 4. Failed Breakout Detection
If price breaks out but returns inside the ORB range within a few bars (before the breakout is "committed"), the original label changes to "FAILED BREAK" in orange.
This warns you:
 
 The breakout lacked conviction
 Consider exiting if already in the trade
 Wait for better setup
 
 Committed Breakout:  The indicator tracks how many bars price stays outside the range. Only after staying outside for the minimum number of bars does it become a committed breakout that can be retested.
  
### 5. TP/SL Lines (Trade Management)
When a breakout occurs, colored horizontal lines appear showing:
 
 Entry Line  (cyan for long, orange for short) - Your entry price (the ORB level)
 Stop Loss Line  (red) - Where to exit if trade goes against you
 TP1, TP2, TP3 Lines  (same color as entry) - Profit targets at 1R, 2R, 3R
 
These lines extend forward as new bars form, making it easy to track your trade. When a target is hit, the line turns green and the label shows a checkmark.
 Lines freeze (stop updating) when: 
 
 Stop loss is hit
 The final enabled take-profit is hit
 End of trading session (optional setting)
 
### 6. Position Sizing Dashboard
The dashboard (bottom-left corner by default) shows real-time information:
 
 Current ORB stage and range size
 Breakout status (Inside Range / Break Up / Break Down)
 Volume confirmation (if filter enabled)
 Trend alignment (if filter enabled)
 Entry and Stop Loss prices
 All enabled Take Profit levels with percentages
 Risk/Reward ratio
 Position sizing: Max shares to buy and total risk amount
 
 Position Sizing Example: 
If your account is $25,000 and you risk 1% per trade ($250), and the distance from entry to stop loss is $0.50, the calculator shows you can buy 500 shares (250 / 0.50 = 500).
  
### 7. FVG Filter (Fair Value Gap)
Fair Value Gaps are price inefficiencies - gaps left by strong momentum where one candle's high doesn't overlap with a previous candle's low (or vice versa).
When enabled, this filter:
 
 Detects bullish and bearish FVGs
 Draws semi-transparent boxes around these gaps
 Only allows breakout signals if there's an FVG near the breakout level
 
 Why this helps:  FVGs indicate institutional activity. Breakouts through FVGs tend to be stronger and more reliable.
 Proximity setting:  Controls how close the FVG must be to the ORB level. 2.0x means the breakout can be within 2 times the FVG size - a reasonable default.
### 8. Volume & Trend Filters
 Volume Filter: 
Requires current volume to be above average (customizable multiplier). High volume breakouts are more likely to sustain.
 
 Set minimum multiplier (e.g., 1.5x = 50% above average)
 Set "strong volume" multiplier (e.g., 2.5x) that bypasses other filters
 Dashboard shows current volume ratio
 
 Trend Filter: 
Only shows breakouts aligned with a higher timeframe trend. Choose from:
 
 VWAP - Price above/below volume-weighted average
 EMA - Price above/below exponential moving average
 SuperTrend - ATR-based trend indicator
 Combined modes (VWAP+EMA, VWAP+SuperTrend) for stricter filtering
 
### 9. Pullback Filter (Advanced)
 Purpose: 
Waits for price to pull back slightly after initial breakout before confirming the signal. 
This reduces false breakouts from immediate reversals.
 How it works: 
- After breakout is detected, indicator waits for a small pullback (default 2%)
- Once pullback occurs AND price breaks out again, signal is confirmed
- If no pullback within timeout period (5 bars), signal is issued anyway
 Settings: 
 
 Enable Pullback Filter:  Turn this filter on/off
 Pullback %:  How much price must pull back (2% is balanced)
 Timeout (bars):  Max bars to wait for pullback (5 is standard)
 
 When to use: 
- Choppy markets with many fake breakouts
- When you want higher quality signals
- Combine with Volume filter for maximum confirmation
 Trade-off: 
- Better signal quality
- May miss some valid fast moves
- Slight entry delay
  
 How to Use This Indicator 
### For Beginners - Simple Setup
 
 Add the indicator to your chart (5-minute or 15-minute timeframe recommended)
 Leave all default settings - they work well for most stocks
 Watch for BREAK UP or BREAK DOWN labels to appear
 Check the dashboard for entry, stop loss, and targets
 Use the position sizing to determine how many shares to buy
 
 Basic Trading Plan: 
 
 Wait for a clear breakout label
 Enter at the ORB level (or next candle open if you're late)
 Place stop loss where the red line indicates
 Take profit at TP1 (50% of position) and TP2 (remaining 50%)
 
### For Advanced Traders - Customized Setup
 
 Choose which ORB stages to track (you might only want ORB15 and ORB30)
 Enable filters: Volume (stocks) or Trend (trending markets)
 Enable FVG filter for institutional confirmation
 Set "Track Cycles" mode to catch retests and re-breakouts
 Customize stop loss method (ATR for volatile stocks, ORB% for stable ones)
 Adjust risk per trade and account size for accurate position sizing
 
 Advanced Strategy Example: 
 
 Enable ORB15 only (disable others for cleaner chart)
 Turn on Volume filter at 1.5x with Strong at 2.5x
 Enable Trend filter using VWAP
 Set Signal Mode to "Track Cycles" with Max 3 cycles
 Wait for aligned breakouts (Volume + Trend + Direction)
 Enter on retest if you missed the initial break
 
### Timeframe Recommendations
 
 5-minute chart:  Scalping, very active trading, crypto
 15-minute chart:  Day trading, balanced approach (most popular)
 30-minute chart:  Swing entries, less screen time
 60-minute chart:  Position trading, longer holds
 
The indicator works on any intraday timeframe, but ORB is fundamentally a day trading strategy. Daily charts don't make sense for ORB.
 
 DEFAULT CONFIGURATION  
ON by Default:
• All 4 ORB stages (5/15/30/60)
• Breakout Detection
• Retest Labels
• All TP levels (1/1.5/2/3)
• TP/SL Lines (Detailed mode)
• Dashboard (Bottom Left, Dark theme)
• Position Size Calculator
OFF by Default (Optional Filters):
• FVG Filter
• Pullback Filter
• Volume Filter
• Trend Filter
• HTF Bias Check
• Alerts
Recommended for Beginners:
• Leave all defaults
• Session Mode: Auto-Detect
• Signal Mode: Track Cycles
• Stop Method: ATR
• Add Volume Filter if trading stocks
 Recommended for Advanced: 
• Enable ORB15 + ORB30 only (disable 5 & 60)
• Enable: Volume + Trend + FVG 
• Signal Mode: Track Cycles, Max 3 
• Stop Method: ATR or Safer 
• Enable HTF Daily bias check 
 
## Settings Guide
The settings are organized into logical groups. Here's what each section controls:
### ORB COLORS Section
 
 Show Edge Labels:  Display "ORB 5", "ORB 15" labels at the right edge of the levels
 Background:  Fill the area between ORB high/low with color
 Transparency:  How see-through the background is (95% is nearly invisible)
 Enable ORB 5/15/30/60:  Turn each stage on or off individually
 Colors:  Assign colors to each ORB stage for easy identification
 
### SESSION SETTINGS Section
 
 Session Mode:  Choose trading session (Auto-Detect works for most instruments)
 Custom Session Hours:  Define your own hours if needed (format: HHMM-HHMM)
 
Auto-Detect uses the instrument's natural hours (stocks use exchange hours, crypto uses 24/7).
### BREAKOUT DETECTION Section
 
 Enable Breakout Detection:  Master switch for signals
 Show Retest Labels:  Display retest signals
 Label Size:  Visual size for all labels (Small recommended)
 Enable FVG Filter:  Require Fair Value Gap confirmation
 Show FVG Boxes:  Display the gap boxes on chart
 Signal Mode:  "First Only" = one signal per direction per day, "Track Cycles" = multiple signals
 Max Cycles:  How many breakout-retest cycles to track (6 is balanced)
 Breakout Buffer:  Extra distance required beyond ORB level (0.1-0.2% recommended)
 Min Distance for Retest:  How far price must move away before retest is valid (2% recommended)
 Min Bars Outside ORB:  Bars price must stay outside for committed breakout (2 is balanced)
 
### TARGETS & RISK Section
 
 Enable Targets & Stop-Loss:  Calculate and show trade management
 TP1/TP2/TP3 checkboxes:  Select which profit targets to display
 Stop Method:  How to calculate stop loss placement
  - ATR: Based on volatility (best for most cases)
  - ORB %: Fixed % of ORB range
  - Swing: Recent swing high/low
  - Safer: Widest of all methods
 ATR Length & Multiplier:  Controls ATR stop distance (14 period, 1.5x is standard)
 ORB Stop %:  Percentage beyond ORB for stop (20% is balanced)
 Swing Bars:  Lookback period for swing high/low (3 is recent)
 
### TP/SL LINES Section
 
 Show TP/SL Lines:  Display horizontal lines on chart
 Label Format:  "Short" = minimal text, "Detailed" = shows prices
 Freeze Lines at EOD:  Stop extending lines at session close
 
### DASHBOARD Section
 
 Show Info Panel:  Display the metrics dashboard
 Theme:  Dark or Light colors
 Position:  Where to place dashboard on chart
 Toggle rows:  Show/hide specific information rows
 Calculate Position Size:  Enable the position sizing calculator
 Risk Mode:  Risk fixed $ amount or % of account
 Account Size:  Your total trading capital
 Risk %:  Percentage to risk per trade (0.5-1% recommended)
 
### VOLUME FILTER Section
 
 Enable Volume Filter:  Require volume confirmation
 MA Length:  Average period (20 is standard)
 Min Volume:  Required multiplier (1.5x = 50% above average)
 Strong Volume:  Multiplier that bypasses other filters (2.5x)
 
### TREND FILTER Section
 
 Enable Trend Filter:  Require trend alignment
 Trend Mode:  Method to determine trend (VWAP is simple and effective)
 Custom EMA Length:  If using EMA mode (50 for swing, 20 for day trading)
 SuperTrend settings:  Period and Multiplier if using SuperTrend mode
 
### HIGHER TIMEFRAME Section
 
 Check Daily Trend:  Display higher timeframe bias in dashboard
 Timeframe:  What TF to check (D = daily, recommended)
 Method:  Price vs MA (stable) or Candle Direction (reactive)
 MA Period:  EMA length for Price vs MA method (20 is balanced)
 Min Strength %:  Minimum strength threshold for HTF bias to be considered
  - For "Price vs MA": Minimum distance (%) from moving average
  - For "Candle Direction": Minimum candle body size (%)
  - 0.5% is balanced - increase for stricter filtering
  - Lower values = more signals, higher values = only strong trends
 
### ALERTS Section
 
 Enable Alerts:  Master switch (must be ON to use any alerts)
 Breakout Alerts:  Notify on ORB breakouts
 Retest Alerts:  Notify when price retests after breakout
 Failed Break Alerts:  Notify on failed breakouts
 Stage Complete Alerts:  Notify when each ORB stage finishes forming
 
After enabling desired alert types, click "Create Alert" button, select this indicator, choose "Any alert() function call".
## Tips & Best Practices
### General Trading Tips
 
 ORB works best on liquid instruments (stocks with good volume, major crypto pairs)
 First hour of the session is most important - that's when ORB is forming
 Breakouts WITH the trend have higher success rates - use the trend filter
 Failed breakouts are common - use the "Min Bars Outside" setting to filter weak moves
 Not every day produces good ORB setups - be patient and selective
 
### Position Sizing Best Practices
 
 Never risk more than 1-2% of your account on a single trade
 Use the built-in calculator - don't guess your position size
 Update your account size monthly as it grows
 Smaller accounts: use $ Amount mode for simplicity
 Larger accounts: use % of Account mode for scaling
 
### Take Profit Strategy
 
 Most traders use: 50% at TP1, 50% at TP2
 Aggressive: Hold through TP1 for TP2 or TP3
 Conservative: Full exit at TP1 (1:1 risk/reward)
 After TP1 hits, consider moving stop to breakeven
 TP3 rarely hits - only on strong trending days
 
### Filter Combinations
 
 Maximum Quality:  Volume + Trend + FVG (fewest signals, highest quality)
 Balanced:  Volume + Trend (good quality, reasonable frequency)
 Active Trading:  No filters or Volume only (many signals, lower quality)
 Trending Markets:  Trend filter essential (indices, crypto)
 Range-Bound:  Volume + FVG (avoid trend filter)
 
### Common Mistakes to Avoid
 
 Chasing breakouts - wait for the bar to close, don't FOMO into wicks
 Ignoring the stop loss - always use it, move it manually if needed
 Over-leveraging - the calculator shows MAX shares, you can buy less
 Trading every signal - quality > quantity, use filters
 Not tracking results - keep a journal to see what works for YOU
 
## Pros and Cons
### Advantages
 
 Complete all-in-one solution - from signal to position sizing
 Multiple timeframes tracked simultaneously
 Visual clarity - easy to see what's happening
 Cycle tracking catches opportunities others miss
 Built-in risk management eliminates guesswork
 Customizable filters for different trading styles
 No repainting - what you see is locked in
 Works across multiple markets (stocks, forex, crypto)
 
### Limitations
 
 Intraday strategy only - doesn't work on daily charts
 Requires active monitoring during first 1-2 hours of session
 Not suitable for after-hours or extended sessions by default
 Can produce many signals in choppy markets (use filters)
 Dashboard can be overwhelming for complete beginners
 Performance depends on market conditions (trends vs ranges)
 Requires understanding of risk management concepts
 
### Best For
 
 Day traders who can watch the first 1-2 hours of market open
 Traders who want systematic entry/exit rules
 Those learning proper position sizing and risk management
 Active traders comfortable with multiple signals per day
 Anyone trading liquid instruments with clear sessions
 
### Not Ideal For
 
 Swing traders holding multi-day positions
 Set-and-forget / passive investors
 Traders who can't watch market open
 Complete beginners unfamiliar with trading concepts
 Low volume / illiquid instruments
 
## Frequently Asked Questions
 Q: Why are no signals appearing? 
A: Check that you're on an intraday timeframe (5min, 15min, etc.) and that the current time is within your session hours. Also verify that "Enable Breakout Detection" is ON and at least one ORB stage is enabled. If using filters, they might be blocking signals - try disabling them temporarily.
 Q: What's the best ORB stage to use? 
A: ORB15 (15 minutes) is most popular and balanced. ORB5 gives faster signals but more noise. ORB30 and ORB60 are slower but more reliable. Many traders use ORB15 + ORB30 together.
 Q: Should I enable all the filters? 
A: Start with no filters to see all signals. If too many false signals, add Volume filter first (stocks) or Trend filter (trending markets). FVG filter is most restrictive - use for maximum quality but fewer signals.
 Q: How do I know which stop loss method to use? 
A: ATR works for most cases - it adapts to volatility. Use ORB% if you want predictable stop placement. Swing is for respecting chart structure. Safer gives you the most room but largest risk.
 Q: Can I use this for swing trading? 
A: Not really - ORB is fundamentally an intraday strategy. The ranges reset each day. For swing trading, look at weekly support/resistance or moving averages instead.
 Q: Why do TP/SL lines disappear sometimes? 
A: Lines freeze (stop extending) when: stop loss is hit, the last enabled take-profit is hit, or end of session arrives (if "Freeze at EOD" is enabled). This is intentional - the trade is complete.
 Q: What's the difference between "First Only" and "Track Cycles"? 
A: "First Only" shows one breakout UP and one DOWN per day maximum - clean but might miss opportunities. "Track Cycles" shows breakout-retest-rebreak sequences - more signals but busier chart.
 Q: Is position sizing accurate for options/forex? 
A: The calculator is designed for shares (stocks). For options, ignore the share count and use the risk amount. For forex, you'll need to adapt the lot size calculation manually.
 Q: How much capital do I need to use this? 
A: The indicator works for any account size, but practical day trading typically requires $25,000 in the US due to Pattern Day Trader rules. Adjust the "Account Size" setting to match your capital.
 Q: Can I backtest this strategy? 
A: This is an indicator, not a strategy script, so it doesn't have built-in backtesting. You can visually review historical signals or code a strategy script using similar logic.
 Q: Why does the dashboard show different entry price than the breakout label? 
A: If you're looking at an old breakout, the ORB levels may have changed when the next stage completed. The dashboard always shows the CURRENT active range and trade setup.
 Q: What's a good win rate to expect? 
A: ORB strategies typically see 40-60% win rate depending on market conditions and filters used. The strategy relies on positive risk/reward ratios (2:1 or better) to be profitable even with moderate win rates.
 Q: Does this work on crypto? 
A: Yes, but crypto trades 24/7 so you need to define what "session start" means. Use Session Mode = Custom and set your preferred daily reset time (e.g., 0000-2359 UTC).
## Credits & Transparency
### Development
This indicator was developed with the assistance of AI technology to implement complex ORB trading logic.
The strategy concept, feature specifications, and trading logic were designed by the publisher. The implementation leverages modern development tools to ensure:
 
 Clean, efficient, and maintainable code
 Comprehensive error handling and input validation
 Detailed documentation and user guidance
 Performance optimization
 
### Trading Concepts
This indicator implements several public domain trading concepts:
 
 Opening Range Breakout (ORB):  Trading strategy popularized by Toby Crabel, Mark Fisher and many more talanted traders.
 Fair Value Gap (FVG):  Price imbalance concept from ICT methodology
 SuperTrend:  ATR-based trend indicator using public formula
 Risk/Reward Ratio:  Standard risk management principle
 
All mathematical formulas and technical concepts used are in the public domain.
### Pine Script
Uses standard TradingView built-in functions:
 ta.ema(), ta.atr(), ta.vwap(), ta.highest(), ta.lowest(), request.security() 
No external libraries or proprietary code from other authors.
## Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice.
Trading involves substantial risk of loss and is not suitable for every investor. Past performance shown in examples is not indicative of future results.
The indicator provides signals and calculations, but trading decisions are solely your responsibility. Always:
 
 Test strategies on paper before using real money
 Never risk more than you can afford to lose
 Understand that all trading involves risk
 Consider seeking advice from a licensed financial advisor
 
The publisher makes no guarantees regarding accuracy, profitability, or performance. Use at your own risk.
---
 Version:  3.0
 Pine Script Version:  v6
 Last Updated:  October 2024
For support, questions, or suggestions, please comment below or send a private message.
---
 Happy trading, and remember: consistent risk management beats perfect entry timing every time.
HV Spike Strategy (HVP + OR Breakout + Reversal + TP/SL Modes)Here is a script that I tried to make it simple, although it has several parameters, I will try to explain, here we go:
Logic: Open Range Breakout: otherwise knows as First Candle Rule, usually used for the first candle in the opening of a market session, in my strategy there is an option to use it even for Crypto that operate 24/7, how to do that? Simply by detecting Volatility from the HVP (Historical Volatility Percentile). Then the ORB logic kicks in and the first candle with high volatility gives the ranges for the trades. The proper HVP Activation Threshold has to be selected for each currency pair/index/crypto in order to have maximum profit.
Enter a trade: when the price goes 100% above/below the First Candle Rule Range. That way it is filtering fake breakouts. Also if the price reverses back into the range the strategy takes the opposite trade.
Exit a trade: SL/TP By percentage or ATR, selection in the input menu.
My intention is to avoid using lagging indicators or guessing of Price Action, purely Bull/Bear indication by the first candle.
I hope you find this helpful! Wishing all successful Trades!
NOVA Breakout Strategy v2.1 (TF M30)A clean, rules-based breakout signal tool for 30-minute charts.
It detects Dow swing breakouts and filters them with RSI, MACD and Volume so you only see the higher-quality entries. The script does not place trades and does not calculate SL/TP – it only prints clear LONG/SHORT labels at the entry price.
⸻
How it works
	1.	Timeframe enforcement – Signals are generated only on M30. On other timeframes the script shows a notice and stays silent.
	2.	Breakout engine (Dow swings) – The last confirmed swing high/low (pivots) is tracked.
	•	Breakout Up: bar closes above the last swing high by a small buffer.
	•	Breakout Down: bar closes below the last swing low by a small buffer.
	3.	Quality filters (all must be true):
	•	RSI (default length 30):
	•	Long: RSI > threshold and rising.
	•	Short: RSI < threshold and falling.
	•	MACD (12/26/9):
	•	Long: histogram > 0 and line > signal.
	•	Short: histogram < 0 and line < signal.
	•	Volume: current volume > SMA(volume, 20) × multiplier.
	4.	Debounce / anti-spam
	•	Cooldown of 4 hours (8 M30 bars) after any signal.
	•	Minimum price distance from the previous signal to avoid clustered labels.
	5.	Optional trend filter – Require EMA34 > EMA89 for Longs (and the opposite for Shorts).
Signals appear once the bar closes (barstate.isconfirmed). No swing lines are drawn to keep the chart clean; only entry labels are shown.
⸻
Inputs (key)
	•	RSI length & thresholds for Long/Short confirmation.
	•	MACD uses 12/26/9 (fixed).
	•	Volume multiplier (relative to SMA 20).
	•	Breakout buffer %, Cooldown hours, Min distance %.
	•	Enable EMA 34/89 trend filter (on/off).
	•	Show labels (on/off).
⸻
Usage tips
	•	Start with gold/major FX/indices on M30; use “Once per bar close” if you attach alerts.
	•	Increase the breakout buffer and volume multiplier in choppy markets.
	•	Tighten RSI thresholds (e.g., 55/45) if you want fewer but stronger signals.
⸻
Notes & limitations
	•	Pivots confirm after a few bars by definition; signals themselves are printed only on confirmed bar close and do not repaint once shown.
	•	This is a signal indicator, not investment advice. Always manage risk.
Magnus Bestest 2This indicator is a sophisticated version of my  Magnus Bestest  signature move only as this script is highly advanced and has a huge amount of lines of code and structures so I had to create a new separate indicator for it. It signals only when there is a very nice liquidity and broken pivot points, confirming a truly nice trade opportunity.
My main indicator named  Magnus Bestest  is still working great and has all the other signals and alerts.
DISCLAIMER: I'm not a financial adviser and this is not a financial advise, just for educational purposed. Remember, most traders lose money.
DM Scalping Combo (Price vs EMA9 • EMA20 • VWAP)Here’s a simple, tradeable way to use your indicator. I’ll give you two core “enter” playbooks (one momentum, one pullback), with exact triggers, invalidation, and targets. You can use either or both.
1) Momentum after consolidation (my top pick)
Idea: wait for a tight consolidation, then take the first aligned break when price is above/below the ema combo line. for bull enter green after consolidation break. 
For bear enter red after consolidation break
MILLION MEN - Discount Zone BreakoutsWhat it is
MILLION MEN — Discount Zone Breakouts (Lite & Stable) highlights a structure-based trading range from the latest confirmed swing high/low, renders Premium/Equilibrium/Discount zones, and raises one-shot breakout signals when price closes outside the range. It focuses on stable visuals and simple breakout logic suitable for intraday and swing trading.
How it works (high-level)
Confirmed swings: Uses ta.pivothigh/ta.pivotlow with auto or manual pivot length.
Range & zones: From the swing range, the tool derives Premium (top 25%), Equilibrium (50%), and Discount (bottom 25%).
Anchoring: Left edge is locked at the bar where the pivot confirms; the right edge can extend N bars.
One-shot breakouts:
Up breakout: first close > swingHigh (resets on new range).
Down breakout: first close < swingLow (resets on new range).
Optional on-close only mode to avoid intrabar noise.
Clean UI: Optional zone boxes, dashed equilibrium line, mid-labels (“Premium / Equilibrium / Discount”), and minimal candle coloring by regime.
How to use
Treat Discount as value area in bullish contexts and Premium as distribution area in bearish contexts.
Breakout dots (up/down) mark regime shifts beyond the current range; confirm with your higher-TF bias, volume, or momentum.
Tune pivot length and forward extension to your timeframe (e.g., smaller for scalping, larger for swings).
Originality & value
Unlike generic S/R overlays, this lite tool prioritizes confirmed swing structure with a fixed anchor, clear 25/50/75 zone mapping, and one-shot breakout logic to prevent repetitive signals until a new range forms. The emphasis is on stability + readability, making it a dependable building block in multi-indicator workflows.
Limitations & transparency
Breakouts on strong trends can retest or fail; always add confirmation (structure/volume).
Pivots confirm with delay equal to pivot length—this reduces repaint and is intentional.
Non-standard bar types are not supported for signal logic.
This indicator provides analysis, not financial advice.
 Arabic 
يعرض السكربت آخر مدى مؤكد من قمّة/قاع ويرسم مناطق Premium / Equilibrium / Discount، ويعطي إشارة اختراق لمرة واحدة عند إغلاق السعر فوق القمّة أو تحت القاع. الفكرة بسيطة وثابتة بصريًا، وتصلح للإنترادي والسوينغ. يُفضّل تأكيد الاختراق بهيكل أعلى إطار أو فوليوم/مومنتُم. تذكير: تأكيد القمم/القيعان متأخر بحسب طول البيفوت لتفادي إعادة الرسم.
Advanced Candle Compression BollingerColors  candles  based on Bollinger Band width relative to its average — showing when volatility tightens.
Orange = medium compression
Red = strong compression
Candle color appears only after several consecutive bars meet the condition.
You can adjust thresholds, colors, bar count, and the Bollinger source (default: (High+Low+Close)/3).
Useful to spot low-volatility zones that often precede breakouts.
Luxy Momentum, Trend, Bias and Breakout Indicators  V7
TABLE OF CONTENTS
This is Version 7 (V7) - the latest and most optimized release. If you are using any older versions (V6, V5, V4, V3, etc.), it is highly recommended to replace them with V7. 
 
 Why This Indicator is Different
 Who Should Use This
 Core Components Overview
 The UT Bot Trading System
 Understanding the Market Bias Table
 Candlestick Pattern Recognition
 Visual Tools and Features
 How to Use the Indicator
 Performance and Optimization
 FAQ
 
---
 ### CREDITS & ATTRIBUTION 
This indicator implements proven trading concepts using entirely original code developed specifically for this project.
 ### CONCEPTUAL FOUNDATIONS 
 • UT Bot ATR Trailing System 
  - Original concept by @QuantNomad: (search "UT-Bot-Strategy"
  - Our version is a complete reimplementation with significant enhancements:
  - Volume-weighted momentum adjustment
  - Composite stop loss from multiple S/R layers
  - Multi-filter confirmation system (swing, %, 2-bar, ZLSMA)
  - Full integration with multi-timeframe bias table
  - Visual audit trail with freeze-on-touch
  - NOTE: No code was copied - this is a complete reimplementation with enhancements.
 • Standard Technical Indicators (Public Domain Formulas): 
   - Supertrend: ATR-based trend calculation with custom gradient fills
   - MACD: Gerald Appel's formula with separation filters
   - RSI: J. Welles Wilder's formula with pullback zone logic
   - ADX/DMI: Custom trend strength formula inspired by Wilder's directional movement concept, reimplemented with volume weighting and efficiency metrics
   - ZLSMA: Zero-lag formula enhanced with Hull MA and momentum prediction
  ### Custom Implementations 
- Trend Strength: Inspired by Wilder's ADX concept but using volume-weighted pressure calculation and efficiency metrics (not traditional +DI/-DI smoothing)
- All code implementations are original
 ### ORIGINAL FEATURES (70%+ of codebase) 
- Multi-Timeframe Bias Table with live updates
- Risk Management System (R-multiple TPs, freeze-on-touch)
- Opening Range Breakout tracker with session management
- Composite Stop Loss calculator using 6+ S/R layers
- Performance optimization system (caching, conditional calcs)
- VIX Fear Index integration
- Previous Day High/Low auto-detection
- Candlestick pattern recognition with interactive tooltips
- Smart label and visual management
- All UI/UX design and table architecture
 ### DEVELOPMENT PROCESS 
 **AI Assistance:**  This indicator was developed over 2+ months with AI assistance (ChatGPT/Claude) used for:
- Writing Pine Script code based on design specifications
- Optimizing performance and fixing bugs
- Ensuring Pine Script v6 compliance
- Generating documentation
 **Author's Role:**  All trading concepts, system design, feature selection, integration logic, and strategic decisions are original work by the author. The AI was a coding tool, not the system designer.
 **Transparency:**  We believe in full disclosure - this project demonstrates how AI can be used as a powerful development tool while maintaining creative and strategic ownership.
---
 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.
 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: 
UT Bot flips direction (Buy or Sell signal appears)
Check Bias Table for multi-timeframe confirmation
Optional: Wait for Base signal or candlestick pattern
Enter at signal bar close or next bar open
Place stop at "Suggested Stop Loss" line
Scale out at TP levels (TP1, TP2, TP3)
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: GREEB (bullish), RED (bearish), GRAY/YELLOW (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: 
Check AVG column - want to see > 60% ideally
Check headline bias rows - want to see BULLISH, not BEARISH
Check VIX row - bullish market regime preferred
Check ORB row (intraday) - want ABOVE for longs
Scan indicator rows - more green = better confirmation
 For a short trade: 
Check AVG column - want to see < 40% ideally
Check headline bias rows - want to see BEARISH, not BULLISH
Check VIX row - bearish market regime preferred
Check ORB row (intraday) - want BELOW for shorts
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 
UT Bot gives a Buy or Sell signal
Check Bias Table AVG column - do you have multi-timeframe alignment?
If yes, enter the trade
Place stop at Suggested Stop Loss line
Scale out at TP levels
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: How is this different from standard UT Bot indicators?
A: Standard UT Bot (originally by @QuantNomad) is just the ATR trailing line and flip signals. This implementation adds:
- Volume weighting and momentum adjustment to the trailing calculation
- Multiple confirmation filters (swing, %, 2-bar, ZLSMA)
- Smart composite stop loss system from multiple S/R layers
- R-multiple take profit system with freeze-on-touch
- Integration with multi-timeframe Bias Table
- Visual audit trail with checkmarks
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: 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! 
Smart Breakout Detector: Trendline Retest & Angle FilteringDetect trendline breakouts with two important filtering controls: retest validation and angle filtering. Require multiple price retests (2-4 touches) before a trendline is considered valid, eliminating weak single-touch lines. Set precise angle limits to filter out unreliable steep or shallow trendlines. Three independent timeframe sets (fast/medium/slow) with customizable pivot lengths allow you to get low risk entry point for both short-term and major trend continuations/reversals.
═══════════════════════════════════════════
CORE METHODOLOGY
═══════════════════════════════════════════
This indicator identifies trendline breakouts using two configurable filtering parameters that are uncommon in publicly available indicators:
1. RETEST VALIDATION
Requires a specified number of price touches (2-4) before considering a trendline valid. This reduces false signals from randomly aligned single-touch lines. Higher thresholds decrease signal frequency while increasing reliability.
2. ANGLE FILTERING
Applies maximum angle constraints (0-20) to trendlines independently for resistance and support, both upward and downward slopes. This filters trendlines with extreme angles that typically lack predictive value.
═══════════════════════════════════════════
TECHNICAL IMPLEMENTATION
═══════════════════════════════════════════
DETECTION ALGORITHM:
1. Identifies pivot highs/lows using configurable lookback periods
2. Connects pivots within ATR-based proximity threshold
3. Validates trendlines only after minimum retest requirement is met
4. Applies angle constraints using arctangent calculations
5. Verifies no price penetration occurred between pivot points
6. Triggers breakout signals when price breaches validated lines
THREE INDEPENDENT TREND LINE BANKS:
The indicator operates three parallel detection systems with separate parameters:
- Level Set A: Short pivot periods (default 5 bars)
- Level Set B: Medium pivot periods (default 10 bars)  
- Level Set C: Long pivot periods (default 6 bars)
Each system maintains independent arrays of resistance and support lines.
ADAPTIVE COMPONENTS:
- Proximity tolerance scales with ATR(40) to accommodate volatility
- Angle thresholds adjust using combined absolute and percentage ATR factors
- Line lifespan configurable by bar count (default 180/200/300 bars per set)
══════════════════════════════════════════
USE CASES
══════════════════════════════════════════
Appropriate for:
- Filtering breakout candidates by reliability metrics
- Multi-timeframe trendline analysis
- Automated breakout monitoring
- Reducing chart noise from weak trendlines
Not appropriate for:
- Range-bound or highly choppy markets
- Instruments with insufficient historical data
- Strategies requiring predictive (non-historical) trendlines
Tight Entry Trend Engine Strategy═══════════════════════════════════════
TIGHT ENTRY TREND ENGINE
═══════════════════════════════════════
A breakout-based trend-following system designed to capture explosive 
moves by entering at precise resistance/support breakouts with minimal 
entry risk and massive profit potential.
⚠️ LOW WIN RATE, HIGH REWARD SYSTEM ⚠️
This is NOT a high win-rate strategy. Expect 25-35% winners, but 
when it hits, winners are typically 10X+ larger than losers.
═══════════════════════════════════════
🎯 WHAT THIS SYSTEM DOES
═══════════════════════════════════════
The Tight Entry Trend Engine identifies powerful breakout opportunities 
by detecting when price breaks through established trendlines with 
confirmation from higher timeframe trends:
1. DYNAMIC TRENDLINE DETECTION (3 BANKS)
   • Automatically draws support and resistance trendlines
   • 3 separate "banks" capture short-term, medium-term, and long-term levels
   • Each bank has configurable parameters (required pivot touch count, 
     angle limits, lengths)
2. BREAKOUT ENTRY TIMING
   • Enters LONG when price breaks ABOVE resistance trendlines
   • Enters SHORT when price breaks BELOW support trendlines
   • Entry Alert occurs at the exact moment of breakout = "tight entry"
   • Stop-loss placed just below/above the broken trendline (configurable)
3. HIGHER TIMEFRAME TREND FILTER
   • Uses Hull Moving Average (HMA) on higher timeframe for trend following
   • Auto-adjusts HTF based on your chart timeframe
   • Optional filters prevent entries against major trend
   • Optional "overextension" filter avoids buying parabolic moves
4. VOLATILITY-ADAPTIVE RISK MANAGEMENT
   • Stop-loss calculated using Average True Range (ATR)
   • Tighter stops = better R:R
   • Profit targets adjust dynamically with volatility
   • Breakeven stop moves automatically when in profit
   • Extended profit targets when far from HTF trend
═══════════════════════════════════════
📊 HOW IT WORKS (METHODOLOGY)
═══════════════════════════════════════
STEP 1: TRENDLINE FORMATION
The system continuously scans for pivot highs and pivot lows to 
construct trendlines. You control:
BANK 1 (Short-Term):
- Pivot Length: How many bars to look back for swing points
- Min Touches: How many pivots needed to form a line (default: 3)
- Max Length: How far back lines can reach (default: 180 bars)
- Angle Limits: Maximum steepness allowed for valid trendlines
- Tolerance: How close pivots must align to form horizontal lines
BANK 2 (Medium-Term):
- Slightly longer pivot periods for more significant levels
- Captures medium-term trend structure
- Default Max Length: 200 bars
BANK 3 (Long-Term):
- Focuses on major support/resistance zones
- Often uses horizontal levels (angled lines disabled by default)
- Default Max Length: 300 bars
The system draws RESISTANCE lines (red) above price and SUPPORT 
lines (green) below price. These adapt in real-time as new pivots form.
STEP 2: BREAKOUT DETECTION
LONG SIGNALS:
- Price closes above a resistance trendline
- Higher timeframe trend is up (optional filter)
- Price not overextended from HTF trend (optional filter)
- No position currently open
SHORT SIGNALS:
- Price closes below a support trendline
- Higher timeframe trend is down (optional filter)
- Price not overextended from HTF trend (optional filter)
- No position currently open
The "tight" aspect: Because you're entering right at the trendline 
break, your stop-loss can be placed very close (just below the 
broken resistance for longs), creating exceptional risk/reward ratios.
STEP 3: POSITION SIZING
Choose between:
- Fixed $ Risk Per Trade: Risk same dollar amount every trade
- % Risk Per Trade: Risk percentage of current equity
Position size automatically calculated based on:
- Your risk amount
- Distance to stop-loss (ATR-based)
- Works with stocks, futures, crypto (auto-adjusts for contract multipliers)
STEP 4: EXIT MANAGEMENT
Multiple exit methods working together:
- PROFIT TARGET: Exits when profit reaches 100x your risk
- EXTENDED PROFIT: Earlier exit (80R) when very far from HTF trend
- STOP LOSS: Fixed ATR-based stop below entry
- HTF TREND EXIT: Exits when price crosses below HTF trend with profit
- BREAKEVEN PULLBACK: Exits if profit drops below 0.6R after reaching breakeven
- PARTIAL PROFITS: Optional - take partial profits at specified R-multiple
═══════════════════════════════════════
🔧 KEY COMPONENTS EXPLAINED
═══════════════════════════════════════
HULL MOVING AVERAGE (HMA)
A smoothed moving average that reduces lag compared to traditional 
MAs. The system uses HMA on a higher timeframe to determine the 
dominant trend direction. You can choose:
- Auto HTF: System picks appropriate HTF based on your chart timeframe
- Manual HTF: You specify the higher timeframe
AVERAGE TRUE RANGE (ATR)
Measures current market volatility. Used for:
- Stop-loss distance (tighter when volatility low)
- Profit targets (larger when volatility high)
- Position sizing (smaller positions in volatile conditions)
- Breakeven trigger distance
TRENDLINE ANGLE FILTERING
Each trendline bank has angle limits to ensure quality:
- Resistance lines: Max downward/upward slope allowed
- Support lines: Max downward/upward slope allowed
- Angles automatically adjust based on current volatility
- Prevents overly steep/unreliable trendlines
SENSITIVITY CONTROL
One master slider adjusts multiple parameters:
- Trendline detection sensitivity
- HTF MA length
- Exit timing
- Auto-adjusts for daily+ timeframes (60% increase)
═══════════════════════════════════════
⚙️ WHAT YOU SEE ON YOUR CHART
═══════════════════════════════════════
TRENDLINES:
✓ Red resistance lines above price
✓ Green support lines below price  
✓ Orange broken lines (past breakouts)
✓ Lines extend to show current levels
HTF TREND:
✓ Thick colored line showing higher timeframe trend
✓ Color gradient: Red (bearish) → Orange → Yellow → Green (bullish)
✓ 250-bar smoothed curve for visual clarity
ENTRY/EXIT SIGNALS:
✓ Small green dot below bar = Long entry
✓ Small red dot above bar = Short entry
✓ Small red dot above = Long exit
✓ Small black dot below = Short exit
OPTIONAL DETAILED LABELS:
✓ Bank number that triggered entry (Bank 1, 2, or 3)
✓ Exit reason (Profit Target, Stop Loss, HTF Exit, etc.)
✓ Partial profit notifications
POSITION TRACKING:
✓ Yellow dashed line at entry price (extends right)
✓ Green/red fill showing current profit/loss zone
✓ Lime arrows at top = Currently in long position
✓ Red arrows at bottom = Currently in short position
✓ Gray background = No position (flat)
STATS TABLE (Top Right):
✓ Current position (LONG/SHORT/FLAT)
✓ Risk per trade ($ or %)
✓ Entry price
✓ Unrealized P/L in dollars
✓ P/L in R-multiples (how many R's profit/loss)
✓ Average winner/loser R ($ mode) OR CAGR (% mode)
═══════════════════════════════════════
📈 OPTIMAL USAGE
═══════════════════════════════════════
BEST ASSETS:
- NASDAQ:QQQ on 1-hour (reg) chart ⭐ (PRIMARY OPTIMIZATION)
- Strong trending stocks: NVDA, AAPL, TSLA, MSFT, GOOGL, AMZN
- High volatility tech stocks
- Crypto: BTC, ETH
- Any liquid asset with clear trends and momentum (GOLD)
AVOID:
- Low volatility stocks
- Ranging/choppy markets
- Penny stocks or illiquid assets
- Assets without clear directional movement
BEST TIMEFRAMES:
- PRIMARY: 1-hour charts (optimal for QQQ)
- ALSO EXCELLENT: 2H, 4H, 8H
- WORKS: 15min, 30min (only momentum leaders, more noise)
- WORKS WITH ADJUSTMENTS: 1D, 2D (decrease trendline pivot lengths)
═══════════════════════════════════════
📊 BACKTEST RESULTS (QQQ 1H (Reg hours), 1999-2024)
═══════════════════════════════════════
The system showed on NASDAQ:QQQ 1-hour timeframe (regular hours):
- Total Return: 1,100,000%+ over 24 years
- Total Trades: 500+
- Win Rate: ~20-24% (LOW - this is by design!)
- Average Winner: 8-15% gain
- Average Loser: 2-4% loss
- Win/Loss Ratio: 10:1 (winners much bigger than losers)
- Profit Factor: 3+
- Max Drawdown: 45-50%
- Risk per trade: 3% of capital
KEY INSIGHT: This is a LOW WIN RATE, HIGH REWARD system. You will 
lose more trades than you win, but the few winners are so large 
they more than compensate for many small losses.
IMPORTANT: These are backtested results using optimal parameters 
on historical data. Real trading results will vary based on:
- Your execution and timing
- Slippage and commissions
- Your emotional discipline
- Market conditions during your trading period
═══════════════════════════════════════
🎓 WHO IS THIS FOR?
═══════════════════════════════════════
IDEAL FOR:
✓ Swing traders comfortable holding winners for longer period
✓ Part-time traders (1H = check 2-3x per day)
✓ Traders seeking exceptional risk/reward ratios
✓ Those comfortable with low win rates if winners are huge
✓ Technical analysis enthusiasts
✓ Breakout traders
✓ Trend followers
═══════════════════════════════════════
🚀 GETTING STARTED - STEP BY STEP
═══════════════════════════════════════
STEP 1: APPLY TO YOUR CHART
- Search "Tight Entry Trend Engine" in indicators
- Click to apply to your chart
- Trendlines and HTF line will appear immediately
STEP 2: CHOOSE YOUR SETTINGS
For BEGINNERS - Use These Settings First:
1. Trade Direction & Filters:
   • ENABLE LONGS: ✓ ON
   • ENABLE SHORTS: ✗ OFF (start with longs only)
   • Sensitivity: 1.0 (default)
   • HTF Trend Entry Filter: ✓ ON (safer entries)
   • Block Entries When Overextended: ✓ ON (avoid parabolic tops)
2. Position Sizing & Risk:
   • Position Sizing: "Per Risk"
   • RISK Type: "$ Per Trade"
   • Risk Amount: $200 (or 1-3% of your account)
   
3. Visual Settings:
   • Show Support Lines: ✗ OFF (unless trading shorts)
   • Show Detailed Entry/Exit Labels: ✓ ON
   • Show Stats Table: ✓ ON
   • Show Entry Line & P/L Fill: ✓ ON
   
4. Leave everything else at DEFAULT for now
STEP 3: UNDERSTAND WHAT YOU SEE
When trendlines appear:
- RED lines above = Resistance (watch for price breaking UP through these)
- GREEN lines below = Support (watch for price breaking DOWN)
- When price breaks a red line = Potential LONG entry
- When price breaks a green line = Potential SHORT entry
The HTF trend line (thick colored):
- Green/lime = Strong uptrend (favorable for longs)
- Red = Strong downtrend (favorable for shorts if enabled)
- Orange/yellow = Transitioning
STEP 4: OBSERVE SIGNALS
- Small GREEN dot below bar = System entered LONG
- Small RED dot above bar = System exited LONG
- Check the label to see which "Bank" triggered (Bank 1, 2, or 3)
- Watch the yellow entry line and colored fill show your P/L
STEP 5: PAPER TRADE FIRST
- Use TradingView's paper trading feature
- Watch how signals perform on YOUR chosen asset
- Understand the win rate will be LOW (20-35%)
- Verify that winners are indeed much larger than losers
- Test for at least 20-30 signals before going live
STEP 6: OPTIMIZE FOR YOUR ASSET (OPTIONAL)
If default settings aren't working well:
For FASTER signals (more trades):
- Reduce Pivot Length 1 to 3-4
- Reduce Max Length 1 to 120-150
- Increase Sensitivity to 1.2-1.5
For SLOWER signals (higher quality):
- Increase Pivot Length 1 to 7-10
- Increase Max Length 1 to 250+
- Decrease Sensitivity to 0.7-0.9
For DAILY timeframes:
- Increase all Pivot Lengths by 30-50%
- Increase all Max Lengths significantly
- Sensitivity: 0.6-0.8
═══════════════════════════════════════
⚙️ ADVANCED SETTINGS EXPLAINED
═══════════════════════════════════════
TRENDLINE BANK SETTINGS:
Each bank (1, 2, 3) has these parameters:
- Min Touches: Minimum pivots to form a line
  - Lower (2) = More lines, earlier detection
  - Higher (4+) = Fewer lines, higher quality
- Pivot Length: Lookback for swing points
  - Lower (3-5) = Reacts to recent price action
  - Higher (10+) = Only major swing points
- Max Length: How old a trendline can be
  - Shorter (100-150) = Only recent lines
  - Longer (300+) = Include historical levels
- Tolerance: Alignment strictness for horizontal lines
  - Lower (3.0-3.5) = Very strict horizontal
  - Higher (4.5+) = More forgiving alignment
- Allow Angled Lines: Enable diagonal trendlines
  - ON = Catches sloped support/resistance
  - OFF = Only horizontal levels
- Angle Limits: Maximum steepness allowed
  - Lower (1-2) = Only gentle slopes
  - Higher (4-6) = Accept steeper angles
  - Automatically adjusts for volatility
ATR MULTIPLIERS:
- STOP LOSS ATR (0.6): Distance to stop-loss
  - Lower (0.4-0.5) = Tighter stops, stopped out more
  - Higher (0.8-1.0) = Wider stops, more room
- PROFIT TARGET ATR (100): Main profit target
  - This is 100x your risk = 10,000% R:R
  - Lower (50-80) = Take profits sooner
  - Higher (120+) = Let winners run longer
- BREAKEVEN ATR (40): When to move stop to breakeven
  - Lower (20-30) = Protect profits earlier
  - Higher (60+) = Give more room before protecting
HIGHER TIMEFRAME:
- Auto HTF: Automatically selects appropriate HTF
  - 5min chart → uses 2H
  - 15-30min → uses 6H
  - 1-4H → uses 2D
  - Daily → uses 4D
- HTF MA Length (300): HMA period for trend
  - Lower (150-250) = More responsive
  - Higher (400-500) = Smoother, less whipsaw
- HTF Trend Following Exit: Exits when crossing HTF
  - ON = Additional exit method
  - OFF = Rely only on profit targets/stops
- HTF Trend Entry Filter: Only trade with HTF trend
  - ON = Safer, fewer signals
  - OFF = More aggressive, more signals
- Block Entries When Overextended: Prevents chasing
  - ON = Avoids parabolic tops/bottoms
  - OFF = Enter all breakouts regardless
═══════════════════════════════════════
💡 TRADING PHILOSOPHY & EXPECTATIONS
═══════════════════════════════════════
This system is built on one core principle:
"ACCEPT SMALL, FREQUENT LOSSES TO CAPTURE RARE, MASSIVE WINS"
What this means:
- You WILL lose 65%-75% of your trades
- Most losses will be small (1-2R)
- Some winners hit 80R+
- Over time, math works in your favour
Session Gap Fill [LuxAlgo]The  Session Gap Fill  tool detects and highlights filled and unfilled price gaps between regular sessions. It features a dashboard with key statistics about the detected gaps.
The tool is highly customizable, allowing users to filter by different types of gaps and customize how they are displayed on the chart.
🔶  USAGE 
  
By default, the tool detects all price gaps between sessions. A price gap is defined as a difference between the opening price of one session and the closing price of the previous session. In this case, the tool uses the opening price of the first bar of the session against the closing price of the previous bar.
A bullish gap is detected when the session open price is higher than the last close, and a bearish gap is detected when the session open price is lower than the last close.
  
Gaps represent a change in market sentiment, a difference in what market participants think between the close of one trading session and the open of the next.
What is useful to traders is not the gap itself, but how the market reacts to it.
 
 Unfilled gaps occur when prices do not return to the previous session's closing price.
 Filled gaps occur when prices come back to the previous session's close price.
 
By analyzing how markets react to gaps, traders can understand market sentiment, whether different prices are accepted or rejected, and take advantage of this information to position themselves in favor of bullish or bearish market sentiment.
Next, we will cover the Gap Type Filter and Statistics Dashboard.
🔹  Gap Type Filter 
  
Traders can choose from three options: display all gaps, display only overlapping gaps, or display only non-overlapping gaps. All gaps are displayed by default.
An overlapping gap is defined when the first bar of the session has any price in common with the previous bar. No overlapping gap is defined when the two bars do not share any price levels.
As we will see in the next section, there are clear differences in market behavior around these types of gaps.
🔹  Statistics Dashboard 
  
The Statistics Dashboard displays key metrics that help traders understand market behavior around each type of gap.
 
 Gaps: The percentage of bullish and bearish gaps.
 Filled: The percentage of filled bullish and bearish gaps.
 Reversed: The percentage of filled gaps that move in favor of the gap
 Bars Avg.: The average number of bars for a gap to be filled.
 
Now, let's analyze the chart on the left of the image to understand those stats. These are the stats for all gaps, both overlapping and non-overlapping.
Of the total, bullish gaps represent 55%, and bearish ones represent 44%. The gap bias is pretty balanced in this market.
The second statistic, Filled, shows that 63% of gaps are filled, both bullish and bearish. Therefore, there is a higher probability that a gap will be filled than not.
The third statistic is reversed. This is the percentage of filled gaps where prices move in favor of the gap. This applies to filled bullish gaps when the close of the session is above the open, and to filled bearish gaps when the close of the session is below the open. In other words, first there is a gap, then it fills, and finally it reverses. As we can see in the chart, this only happens 35% of the time for bullish gaps and 29% of the time for bearish gaps.
The last statistic is Bars Avg., which is the average number of bars for a gap to be filled. On average, it takes between one and two bars for both bullish and bearish gaps. On average, gaps fill quickly.
As we can see on the chart, selecting different types of gaps yields different statistics and market behavior. For example, overlapping gaps have a greater than 90% chance of being filled, whereas non-overlapping gaps have a less than 40% chance.
🔶  SETTINGS 
 
 Gap Type: Select the type of gap to display.
 
🔹  Dashboard 
 
  Dashboard: Enable or disable the dashboard.
  Position: Select the location of the dashboard.
  Size: Select the dashboard size.
 
🔹  Style 
 
 Filled Bullish Gap: Enable or disable this gap and choose the color.
 Filled Bearish Gap: Enable or disable this gap and choose the color.
 Unfilled Gap: Enable or disable this gap and choose the color.
 Max Deviation Level: Enable or disable this level and choose the color.
 Open Price Level: Enable or disable this level and choose the color.
Breakout Score (0–100)Breakouts are often the trader's best setups.  Often seen on the chart as wedges and flags, consolidation before a pop up or down.  This script attempts to visualize breakout potential with gradients in the background.      I built this to place on my side charts to quickly visualize that a setup was forming.
For this indicator, Breakouts have generally been assumed as:
Decrease in average volume over N candles
Proximity to VWAP
Convergence/cross of price to the 9, 20 and 50 EMAs
Range compression (formation of flag or consolidation)
each of these factors are scored and rated.  Multiple signals exponentially increase the gradient.  Depending on the score, the chart will display a visual gradient behind the chart.   Color, opacity and filtering fully customizable.
Enjoy!
Quant Trend + Donchian (Educational, Public-Safe)What this does 
Educational, public-safe visualization of a quant regime model:
•  Trend : EMA(64) vs EMA(256) (EWMAC proxy)
•  Breakout : Donchian channel (200)
•  Volatility-awareness : internal z-scores (not plotted) for concept clarity
 Why it’s useful 
• Shows when trend & breakout align (clean regimes) vs conflict (chop)
• Helps explain why  volatility-aware  systems size up in smooth trends and scale down in noise
 How to read it 
• EMA64 above EMA256 with price near/above Donchian high → trend-following alignment
• EMA64 below EMA256 with price near/below Donchian low → bearish alignment
• Inside channel with EMAs tangled → range/chop risk
 Notes 
• Indicator is educational only (no orders). 
• Built entirely with TradingView built-ins.
• For consistent visuals: enable “Indicator values on price scale” and disable “Scale price chart only” in  Settings → Scales .
Trend-Following & Breakout — Index Quant Strategy (NASDAQ)📈 Trend-Following & Breakout — Index Quant Strategy (NASDAQ & S&P 500) 
Type: Invite-only strategy
Markets: NASDAQ 100 (NAS100 / US100 / NQ), S&P 500 (US500 / SPX), and other major equity indices.
🧠  Concept:  Continuous trend model combining EWMAC (trend-following) and Donchian (breakout) signals, scaled by forecast strength and portfolio risk.
⚙️ Execution: Rebalances only on decision-bar closes, using hysteresis and a no-trade band to reduce churn.
📊 Default bias: Long-only — aligned with equity index drift.
🧩  How it works 
• EWMAC Trend: Difference between fast and slow EMAs, normalized by an EWMA of absolute returns.
• Donchian Breakout: Distance beyond a 200-bar channel (Strict mode) or relative z-score position within it.
• Forecast combination: Weighted sum of trend and breakout points, clamped to ± capPoints.
• Hysteresis: Prevents quick sign flips near zero forecast.
• Risk scaling: Maps forecast strength to position size using equity × risk budget × ATR-based stop distance.
• Rebalance: Executes only if the required quantity change exceeds the Δqty threshold; can optionally block increases on Sundays (for CFDs).
 ⚙️ Default parameters 
 Deployed on NQ / US100 / NAS100 on Daily Timeframe 
• Decision timeframe = 360 min (other options from 1 min to 1 week).
• Trend (EWMAC): Fast = 64, Slow = 256, Vol Norm = 32, Weight = 0.8.
• Breakout (Donchian): Length = 200, Mode = Strict, Weight = 0.2.
• Forecast scaling: ptsPerSigma = 1.0, capPoints = 10.
• Risk % per rebalance = 4 % of equity.
• ATR stop: ATR(14) × 1.0.
• No-trade band (Δqty) = 4 units.
• Hysteresis = 2 forecast points.
• Bias = Long-only (Neutral / Long-bias 50 % optional).
• Skip Sunday increases = false (default).
 📋 Backtest properties (documented) 
• Initial capital = 100 000 USD.
• Commission = 0.20 % per trade.
• Pyramiding = 10.
• Calc on every tick = false.
• Point value = 1 (for NAS100 CFD).
• No financing or slippage modeled.
• If using CFDs, account for overnight funding.
• On futures (NQ / ES), carry is implicit.
 📊 Typical behaviour 
• Many small scratches, a few large winners.
• Performs best during multi-week / multi-month trends.
• Underperforms in tight or volatile ranges.
• Average hold ≈ 30 – 90 days in historical tests.
 💡 Risk and performance guide (illustrative) 
Sharpe ≈ 1.25
Sortino ≈ 1.10 – 1.30
Max drawdown ≈ –18 % to –25 %
Annual volatility ≈ 24 – 28 %
CAGR ≈ 50 – 60 % (at 4 % risk)
Edge ratio ≈ 5 (MFE / MAE)
 Historical backtests only — past performance does not guarantee future results. 
 🌍 Intended markets and timeframes 
Optimized for NASDAQ 100 and S&P 500; also effective on similar indices (DAX, Dow Jones, FTSE).
Best on Daily or higher timeframes.
Aligns with long-term index drift — suitable for long-bias systematic trend portfolios.
 ⚠️ Limitations 
• Backtests exclude CFD funding costs.
• Trend models will have losing streaks in range-bound markets.
• Designed for experienced traders seeking systematic exposure.
 🔑 Requesting access 
Send a private TradingView message to   with the text:
“Request access to Trend-Following & Breakout — Index Quant Strategy.”
Access is granted only on explicit request.
For further information, see my TradingView Signature.
 🆕 Release notes (v1.0) 
• Initial release (360 min TF): EWMAC 64/256 + Donchian 200 Strict.
• Risk 4 %, ATR × 1.0, Long-only bias, hysteresis 2 pts, Δqty ≥ 4.
• Developed for NASDAQ 100 and S&P 500 indices.
• Implements continuous risk-scaled positioning and no-trade band logic.
 🧾 Originality statement 
This strategy is original work built entirely from TradingView built-ins (EMA, ATR, Highest, Lowest).
It does not reuse open-source invite-only code.
Any future reuse of open scripts will be done with explicit permission and credit.
ORB Pro w/ Filters + Debug + ORB Fib + Golden Pocket + HTF Trend🚀 ORB Pro – Advanced Opening Range Breakout System
A professional ORB indicator with built-in filters, retest confirmation, EMA/HTF trend alignment, and automatic risk/reward targets. Designed to eliminate false breakouts and give traders clean LONG/SHORT signals with Fibonacci and debug overlays for maximum precision.
This script is an advanced Opening Range Breakout (ORB) system designed for futures, indices, and options traders who want more precision, cleaner entries, and higher win probability. It combines classic ORB logic with modern filters, Fibonacci confluence, and higher-timeframe trend confirmation.
The indicator automatically:
Plots the ORB box based on user-defined NY session times (default: 9:30–9:45 EST).
Generates long/short signals when price breaks the ORB range, with optional conditions like:
Candle close outside the range
Retest confirmation (with tolerance %)
Volume spike validation
EMA trend alignment
Higher-timeframe EMA slope alignment
Cooldown filters to prevent over-trading
Integrates Fibonacci retracements & extensions from the ORB box for confluence levels.
Includes Golden Pocket (0.5–0.618) retests for precision entries
Risk/Reward visualization — automatically plots stop loss and take profit levels based on user-defined R:R or fixed % levels.
Debug mode overlay to show why a signal is blocked (e.g., low volume, ORB too small, too late, wrong trend).
This tool is built for scalpers, day traders, and 0DTE options traders who need both flexibility and discipline.
⚙️ Inputs & Features
ORB Settings
ORB Start & End Time (NY) → Default: 9:30–9:45
Require Candle Close → Ensures breakouts are confirmed, not wick traps.
Retest Confirmation → Optional retest before entry (tolerance % adjustable).
Filters
Volume Spike → Validates breakouts only with above-average volume.
EMA Trend Filter → Confirms trade direction with EMA slope.
Higher Timeframe Trend → Optional (e.g., 15m ORB with 1h EMA alignment).
Cooldown Bars → Prevents consecutive false signals.
ORB Size Filter → Blocks signals when ORB is too small/too large.
Fibonacci Levels
Retracements: 0.236, 0.382, 0.5, 0.618, 0.786
Extensions: 1.272, 1.618
Golden Pocket Retest filter for high-probability trades
Risk Management
R:R Stops/Targets → Automatically plots SL/TP levels.
Custom Stop % / Take Profit % if not using R:R
Debug Overlay → Explains why signals are blocked
🧑💻 How to Use
Load the indicator on your chart (works best on 1m, 5m, and 15m).
Adjust ORB window (default 9:30–9:45 EST).
Select filters (candle close, retest, volume, EMA, HTF trend).
Watch for Long/Short labels outside ORB box with filters aligned.
Manage trades using plotted SL/TP levels or your own Webull/R:R calculator.
✅ Best Use Cases
Futures (NQ1!, ES1!)
ETFs (QQQ, SPY, IWM)
0DTE Options Trading
Scalping around market open
⚠️ Disclaimer
This tool is for educational purposes only. It does not constitute financial advice. Trading carries risk, and past performance does not guarantee future results. Always test on paper trading before using real capital.
-----------------------------------------
ORB Pro w/ Filters + Debug + ORB Fib + Golden Pocket + HTF Trend
A professional Opening Range Breakout (ORB) toolkit designed for intraday traders who want precision entries, risk-managed exits, and layered confirmation filters. Built for futures, stocks, and ETFs (e.g. NQ, ES, QQQ).
🔎 Core Logic
This script plots and trades breakouts from the Opening Range (9:30 – 9:45 NY time), then applies multiple confirmation filters before signaling a LONG or SHORT setup:
ORB Box: Defines the first 15 minutes of market activity (customizable).
Breakout Candle Confirmation: Requires a candle close outside the ORB box.
Retest Confirmation: Price must retest the ORB edge within tolerance before triggering.
Trend Filter: EMA confirmation to align trades with intraday trend.
Higher-Timeframe Trend Filter: Optional (default: 45-minute EMA) to avoid countertrend trades.
Fibonacci Levels: Auto-plot retracements (0.236 → 0.786) for confluence and trade management.
Golden Pocket Retest (Optional): Adds an extra precision filter at 0.5–0.618 retracement.
⚙️ Default Settings (Optimized for Beginners)
These are the pre-configured inputs so traders can load and trade immediately:
ORB Session: 9:30 – 9:45 NY
✅ Require Candle Close Outside ORB
✅ Require Retest Confirmation (tolerance 0.333%)
❌ Require Volume Spike (off by default, optional toggle)
✅ Require EMA Trend (50 EMA intraday)
✅ Require Higher-TF Trend (45m, EMA 21)
❌ Higher-TF EMA slope required (off)
✅ Cooldown Between Signals (10 bars)
ORB % Range: Min 0.3%, Max 0.5%
Max Minutes After ORB: 180
✅ ORB-based Risk/Reward Stops & Targets (default: 2R)
Stop Loss: 0.5% (if not R:R)
Take Profit: 1% (if not R:R)
✅ Debug Overlay (shows why signals are blocked)
✅ Fibonacci Retracements Plotted
❌ Extensions (off by default, toggle if needed)
✅ Golden Pocket Retest available, tolerance 0.11 (optional)
📈 Signals
Green "LONG" Label: Valid breakout above ORB with trend confirmation.
Red "SHORT" Label: Valid breakdown below ORB with trend confirmation.
Blocked (debug text): Signal suppressed by filters (low volume, too late, no retest, etc.).
🎯 Trade Management
Default R:R is 2:1 (stop at ORB edge, TP projected).
For manual trading (e.g., Webull, IBKR), you can use the plotted TP/SL boxes directly.
Fibonacci + Golden Pocket give additional profit-taking levels and retest filters.
✅ Best Practices
Use 15m chart for main ORB entries.
Confirm direction with HTF trend (45m EMA by default).
Avoid signals blocked by “Low Volume” or “Too Late” (debug helps identify).
Adjust ORB % range for asset volatility (tight for ETFs, wider for futures).
🚀 Why ORB Pro?
This is more than a standard ORB indicator. It’s a professional breakout system with filters designed to avoid false breakouts, automatically handle risk/reward, and guide traders with clear visual signals. Perfect for both systematic day traders and discretionary scalpers who want structure and confidence.
👉 Recommended starting point:
Load defaults → trade the 15m ORB with EMA + HTF filters on → let the script handle retests and stop/target placement.
Universal Breakout Strategy [KedArc Quant]Description:
A flexible breakout framework where you can test different logics (Prev Day, Bollinger, Volume, ATR, EMA Trend, RSI Confirm, Candle Confirm, Time Filter) under one system.
Choose your breakout mode, and the strategy will handle entries, exits, and optional risk management (ATR stops, take-profits, daily loss guard, cooldowns). 
An on-chart info table shows live mode values (like Prev High/Low, Bollinger levels, RSI, etc.) plus P&L stats for quick analysis.
Use it to compare which breakout style works best on your instrument and timeframe, whether intraday, swing, or positional trading
 🔑 Why it’s useful
* Flexibility: Switch between breakout strategies without loading different indicators.
* Clarity: On-chart info table displays current mode, relevant indicator levels, and live strategy P&L stats.
* Testing efficiency: Quickly A/B test different breakout styles under the same backtest environment.
* Transparency: Every trade is rule-based and displayed with entry/exit markers.
 🚀 How it helps traders
* Lets you experiment with breakout strategies quickly without loading multiple scripts.
* Helps identify which breakout method fits your instrument & timeframe.
* Gives clear on-chart visual + statistical feedback for confident decision-making.
 ⚙️ Input Configuration
* Breakout Mode → choose which strategy to test:
  * *Prev Day* → breakouts of yesterday’s High/Low.
  * *Bollinger* → Upper/Lower BB pierce.
  * *Volume* → Breakout confirmed with volume above average.
  * *ATR Stop* → Wide range breakout using ATR filter.
  * *Time Filter* → Breakouts inside defined session hours.
  * *EMA Trend* → Breakouts only in EMA fast > slow alignment.
  * *RSI Confirm* → Breakouts with RSI confirmation (e.g. >55 for longs).
  * *Candle Confirm* → Breakouts validated by bullish/bearish candle.
* Lookback / ATR / Bollinger inputs → adjust sensitivity.
* Intrabar mode → option to evaluate breakouts using bar highs/lows instead of closes.
* Table options → show/hide info table, show/hide P&L stats, choose corner placement.
 📈 Entry & Exit Logic
* Entry → occurs when breakout condition of chosen mode is met.
* Exit → default exits via opposite signals or optional stop/target if enabled.
* Session filter → optional auto-flat at session end.
* P&L management → optional daily loss guard, cooldown between trades, and ATR-based stop/take profit.
 ❓ FAQ — Choosing the best setup
Q: Which strategy should I use for which chart?
* *Prev Day Breakouts*: Best on indices, FX, and liquid futures with strong daily levels.
* *Bollinger*: Works well in range-bound environments, or crypto pairs with volatility compression.
* *Volume*: Good on equities where breakout strength is tied to volume spikes.
* *ATR Stop*: Suits volatile instruments (commodities, crypto).
* *EMA Trend*: Useful in trending markets (stocks, indices).
* *RSI Confirm*: Adds momentum filter, better for swing trades.
* *Candle Confirm*: Ideal for scalpers needing visual confirmation.
* *Time Filter*: For intraday traders who want signals only in high-liquidity sessions.
Q: What timeframe should I use?
* Intraday traders → 5m to 15m (Time Filter, Candle Confirm).
* Swing traders → 1H to 4H (EMA Trend, RSI Confirm, ATR Stop).
* Position traders → Daily (Prev Day, Bollinger).
* Breakout
	A trade entry condition triggered when price crosses above a resistance level (for longs) or below a support level (for shorts).
* Prev Day High/Low
	Formula:
	Prev High = High of (Day )
	Prev Low = Low of (Day )
* Bollinger Bands
	Formula:
	Basis = SMA(Close, Length)
	Upper Band = Basis + (Multiplier × StdDev(Close, Length))
	Lower Band = Basis – (Multiplier × StdDev(Close, Length))
* Volume Confirmation
	A breakout is only valid if:
	Volume > SMA(Volume, Length)
* ATR (Average True Range)
	Measures volatility.
	
	Formula:
	ATR = SMA(True Range, Length)
	where True Range = max(High–Low, |High–Close |, |Low–Close |)
* EMA (Exponential Moving Average)
	Weighted moving average giving more weight to recent prices.
	Formula:
	EMA = (Price × α) + (EMA  × (1–α))
	with α = 2 / (Length + 1)
* RSI (Relative Strength Index)
	
	Momentum oscillator scaled 0–100.
	
	Formula:
	RSI = 100 – (100 / (1 + RS))
	where RS = Avg(Gain, Length) ÷ Avg(Loss, Length)
* Candle Confirmation
	
	Bullish candle: Close > Open AND Close > Close 
	Bearish candle: Close < Open AND Close < Close 
	Win Rate (%)
	Formula:
	Win Rate = (Winning Trades ÷ Total Trades) × 100
* Average Trade P&L
	Formula:
	Avg Trade = Net Profit ÷ Total Trades
📊 Performance Notes
	The Universal Breakout Strategy is designed as a framework rather than a single-asset optimized system. Results will vary depending on the chart, timeframe, and asset chosen.
	On the current defaults (15-minute, INR-denominated example), the backtest produced 132 trades over the selected period. This provides a statistically sufficient sample size.
	Win rate (~35%) is relatively low, but this is balanced by a positive reward-to-risk ratio (~1.8). In practice, a lower win rate with larger wins versus smaller losses is sustainable.
	The average P&L per trade is close to breakeven under default settings. This is expected, as the strategy is not tuned for a single symbol but offered as a universal breakout framework.
	Commissions (0.1%) and slippage (1 tick) are included in the simulation, ensuring realistic conditions.
	Risk management is conservative, with order sizing set at 1 unit per trade. This avoids over-leveraging and keeps exposure well under the 5-10% equity risk guideline.
👉 Traders are encouraged to:
	Experiment with inputs such as ATR period, breakout length, or Bollinger parameters.
	Test across different timeframes and instruments (equities, futures, forex, crypto) to find optimal setups.
	Combine with filters (trend direction, volatility regimes, or volume conditions) for further refinement.
⚠️ Disclaimer This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
Power Hour Breakout Signals [LuxAlgo]The  Power Hour Breakout  tool helps traders identify key price levels from the Power Hour and spot breakouts from those levels easily. This tool features Power Hour extensions, Fibonacci levels, and session break marks for the trader's convenience.
🔶  USAGE 
  
The Power Hour is defined as the last hour of the trading session and is set by default from 3:00 p.m. to 4:00 p.m. New York time. During this period, volume and volatility enter the market. Traders using higher timeframes may use this period to enter or exit positions by placing MOC (Market on Close) orders.
This tool highlights the Power Hour and the top and bottom price levels. Each time prices break out from these levels, a signal is displayed on the chart.
We can use the Power Hour to gauge market sentiment:
 
 Bullish sentiment: Price trades above the Power Hour.
 Mixed sentiment: Price trades within the Power Hour.
 Bearish sentiment: Price trades below the Power Hour.
 
🔹  Displaying Power Hours and Breakouts 
  
By default, all detected Power Hours are displayed. Traders can manually adjust this number by disabling the "Display All" parameter in the Settings panel.
Breakouts are displayed by default, too, but this feature can be disabled as well.
The chart above shows different configurations of these parameters.
🔹  Power Hour Extensions 
  
Traders can use Power Hour extensions as potential targets for breakout signals.
In the settings panel, traders can select the percentage of the Power Hour price range to use for each extension. For example, 100% uses the full range, 200% uses the range twice, and so on.
As seen on the chart, traders can configure different percentages for the top and bottom extensions.
🔹  Fibonacci Levels 
  
Traders can display default or custom Fibonacci levels on the Power Hour range to identify retracement opportunities and evaluate market movement strength. Each level can be enabled or disabled, as well as customized by level, color, and line style.
For example, as we can see on the chart, prices attempt to break out at the Power Hour top level, then retrace to the 0.618 Fibonacci level, and then rise to the 200% Power Hour top extension.
🔶  SETTINGS 
 
 Display Last X Power Hours: Select how many Power Hours to display or enable the Display All feature.
 Power Hour (NY Time): Choose a custom Power Hour in New York time.
 
🔹  Breakouts 
 
 Breakouts: Enable or disable breakouts.
 Bullish Breakout: Select color for bullish breakouts.
 Bearish Breakout: Select color for bearish breakouts.
 
🔹  Extensions 
 
 Top Extension: Enable or disable the top extension and choose the percentage of Power Hour to use.
 Bottom extension: Enable or disable the bottom extension and choose the percentage of Power Hour to use.
 
🔹  Fibonacci Levels 
 
 Display Fibonacci: Enable or disable Fibonacci levels.
 Reverse: Reverse Fibonacci levels.
 Levels, Colors & Style
 Display Labels: Enable or disable labels and choose text size.
 
🔹  Style 
 
 Power Hour Colors
 Extension Transparency: Choose the extension's transparency. 0 is solid, and 100 is fully transparent.
 Session Breaks: Enable or disable session breaks.
Opening Candle Zone with ATR Bands by nkChartsThis indicator highlights the opening range of each trading session and projects dynamic ATR-based zones around it.
 Key Features 
 
 Plots high and low levels of the opening candle for each new daily session.
 Extends these levels across the session, providing clear intraday support and resistance zones.
 Adds ATR-based offset bands above and below the opening range for volatility-adjusted levels.
 Customizable colors, ATR length, and multiplier for flexible use across markets and timeframes.
 Adjustable session history limit to control how many past levels remain on the chart.
 
 How to Use: 
 
 The opening range high/low often acts as strong intraday support or resistance.
 The ATR bands give an adaptive volatility buffer, useful for breakout or mean-reversion strategies.
 Works on any market with clear session opens.
 
This tool is designed for traders who want to combine session-based price action with volatility insights, helping identify potential breakouts, reversals, or consolidation areas throughout the day.
 ⚠️ Disclaimer: This indicator is for educational purposes only. It does not provide financial advice or guarantee profits. Always perform your own analysis before making trading decisions.
Breakout Volume
指标名称:Breakout Volume (BrkVol)
功能:本指标用于识别成交量异常放大,同时结合价格新高,帮助交易者发现潜在突破机会。
主要特性:
可调成交量均线周期(MA Length)
可调放量倍数(Volume Multiplier)
可调价格新高周期(Lookback High Length)
成交量柱颜色区分:绿色=阳线放量,红色=阴线放量,灰色=无信号
蓝色均量阈值线,可直观比较放量情况
出现成交量突破 + 新高时,图表上显示绿色三角形标记
支持提醒功能,可在条件触发时收到通知
使用建议:
调整参数以适应不同品种和时间周期
可结合趋势、支撑阻力位使用,避免假信号
适合快速发现短线或中长线突破机会
English Description
Name: Breakout Volume (BrkVol)
Function: This indicator detects unusual volume spikes combined with new highs in price, helping traders identify potential breakout opportunities.
Key Features:
Adjustable moving average period (MA Length) for volume
Adjustable volume multiplier (Volume Multiplier)
Adjustable lookback period for price highs (Lookback High Length)
Color-coded volume bars: Green = bullish candle with volume breakout, Red = bearish candle with volume breakout, Gray = normal volume
Blue threshold line (volume MA × multiplier) for easy comparison
Green triangle marker appears when both volume breakout and new high conditions are met
Supports alerts for real-time notifications
Usage Tips:
Adjust parameters to suit different symbols and timeframes
Combine with trend or support/resistance levels to reduce false signals
Useful for spotting short-term or medium/long-term breakout opportunities
Trendlines Breakouts Pro V1.2 - 4TP [Wukong Algo]Trendlines Breakouts Pro  
 
 Trading method “High Tight Trendline Breakout”. This is a simple but effective and flexible method that can support many other methods such as: support and resistance, supply and demand, volume profile...
 Automatically connect TradingView and MetaTrader 5 (MT5) for automatic trading and order management via PineConnector
 The system includes a risk management grid including the levels: Stop Loss (SL), Break-even (BE), Trail Trigger, Trailing Stop, TP1 (1/4), TP2 (2/4), TP3 (3/4), TP4 (4/4). This grid helps you easily monitor and manage orders on TradingView in parallel with automatic order management on MT5.
 Focus on tight capital and risk management, reduce emotion and stress when trading
 Suitable for all markets: Forex, Gold, Crypto, Stocks, as long as you use MT5 and TradingView
 If you do not need to trade automatically via MT5, the Trendlines Breakokuts Pro can also be used as an effective indicator in visual order management on TradingView charts, helps maintain discipline and good trading psychology (less Stress or FOMO)
 
 Trendlines Breakouts Pro System User Guide 
 Step 1 - Draw trendline AB. Just click to select 2 points A, B on the chart 
This is a straight line at the border of a chart pattern or support/resistance zone on the chart that you determine has high potential when it is broken, the price will have strong momentum and you will enter the order (Entry). The trendline AB can be a diagonal line or a horizontal line.
  
 Step 2 - Entry Window: Set the time allowed for transactions 
You can choose the earliest and latest time allowed for trading signals, called Entry Window. This means that the system will not allow trading outside the Entry Window. This option allows you to manage trading times as you wish, avoiding bad times for trading such as sideways, choppy, high volatility, news
  
 Step 3 - Set up the input parameters for trading 
 
 You choose the direction you want to wait for trading: Wait Long (Buy), Wait Short (Sell), Turn Off, Hidden
 You enter the ID of your PineConnector account if you want to trade automatically from TradingView to MT5
 You enter the order parameters: Lotsize per order, Stop Loss (SL%), BE(%), Trail Trigger (%), TP1(%), TP2(%), TP3(%), TP4(%)
 You enter the safe filter parameters for Entry: max distance from entry to swing high/low, max distance from entry to trendline's breakpoint C, max entries per trendlines
 See more details in the screenshots
 
  
 Step 4 - Set up automatic trading from TradingView via MT5 
 
 If you do not need automatic trading in MT5, skip this step. Entry signals and risk management grids will still be displayed on the TradingView chart for you to see, but there is no connection and automatic trading signal shooting and automatic order management from TradingView to MT5 via PineConnector.
 We need to create an Alert in TradingView and attach it to this Indicator so that the Alert's trading signals are transmitted via MetaTrader 5 (MT5) via PineConnector.
 When trading, you need to turn on 3 software at the same time to be able to connect to each other to operate: TradingView, MetaTrader 5 (MT5), PineConnector
 See more details in the screenshots
 
  
 Step 5 - Complete setup, and wait for trading signals 
 
 You have completed the setup steps for the Indicator, ready when there is a trading signal
 You do not need to sit in front of the screen all day if you do not want. The system has been set up to execute and manage orders automatically.
 Of course, sometimes you should still check your transaction status, in case of unexpected problems such as lost internet connection.
 If you still have questions about this Indicator, please email tuanwukongvn@gmail.com for support.
 
  
  
Initial Balance Breakout Signals [LuxAlgo]The  Initial Balance Breakout Signals  help traders identify breakouts of the Initial Balance (IB) range. 
The indicator includes automatic detection of IB or can use custom sessions, highlights top and bottom IB extensions, custom Fibonacci levels, and goes further with an IB forecast with two different modes.
🔶  USAGE 
  
The initial balance is the price range made within the first hour of the trading session. It is an intraday concept based on the idea that high volume and volatility enter the market through institutional trading at the start of the session, setting the tone for the rest of the day.
The initial balance is useful for gauging market sentiment, or, in other words, the relationship between buyers and sellers.
 
 Bullish sentiment: Price trades above the IB range.
 Mixed sentiment: Price trades within the IB range.
 Bearish sentiment: Price trades below the IB range.
 
The initial balance high and low are important levels that many traders use to gauge sentiment. There are two main ideas behind trading around the IB range.
 
 IB Extreme Breakout: When the price breaks and holds the IB high or low, there is a high probability that the price will continue in that direction.
 IB Extreme Rejection: When the price tries to break those levels but fails, there is a high probability that it will reach the opposite IB extreme.
 
This indicator is a complete Initial Balance toolset with custom sessions, breakout signals, IB extensions, Fibonacci retracements, and an IB forecast. All of these features will be explained in the following sections.
🔹  Custom Sessions and Signals 
  
By default, sessions for Initial Balance and breakout signals are in Auto mode. This means that Initial Balance takes the first hour of the trading session and shows breakout signals for the rest of the session.
With this option, traders can use the tool for open range trading, making it highly versatile. The concept behind open range (OR) is the same as that of initial balance (IB), but in OR, the range is determined by the first minute, three or five minutes, or up to the first 30 minutes of the trading session.
As shown in the image above, the top chart uses the Auto feature for the IB and Breakouts sessions. The bottom chart has the Auto feature disabled to use custom sessions for both parameters. In this case, the first three minutes of the trading session are used, turning the tool into an Open Range trading indicator.
  
This chart shows another example of using custom sessions to display overnight NASDAQ futures sessions.
The left chart shows a custom session from the Tokyo open to the London open, and the right chart shows a custom session from the London open to the New York open.
The chart shows both the Asian and European sessions, their top and bottom extremes, and the breakout signals from those extremes.
🔹  Initial Balance Extensions 
  
Traders can easily extend both extremes of the Initial Balance to display their preferred targets for breakouts. Enable or disable any of them and set the IB percentage to use for the extension.
As the chart shows, the percentage selected on the settings panel directly affects the displayed levels.
Setting 25 means the tool will use a quarter of the detected initial balance range for extensions beyond the IB extremes. Setting 100 means the full IB range will be used.
Traders can use these extensions as targets for breakout signals.
🔹  Fibonacci Levels 
  
Traders can display default or custom Fibonacci levels on the IB range to trade retracements and assess the strength of market movements. Each level can be enabled or disabled and customized by level, color, and line style.
As we can see on the chart, after the IB was completed, prices were unable to fall below the 0.236 Fibonacci level. This indicates significant bullish pressure, so it is expected that prices will rise.
Traders can use these levels as guidelines to assess the strength of the side trying to penetrate the IB. In this case, the sellers were unable to move the market beyond the first level.
🔹  Initial Balance Forecast 
  
The tool features two different forecasting methods for the current IB. By default, it takes the average of the last ten values and applies a multiplier of one.
 
 IB Against Previous Open: averages the difference between IB extremes and the open of the previous session.
 Filter by current day of the week: averages the difference between IB extremes and the open of the current session for the same day of the week.
 
This feature allows traders to see the difference between the current IB and the average of the last IBs. It makes it very easy to interpret: if the current IB is higher than the average, buyers are in control; if it is lower than the average, sellers are in control.
For example, on the left side of the chart, we can see that the last day was very bullish because the IB was completely above the forecasted value. This is the IB mean of the last ten trading days.
On the right, we can see that on Monday, September 15, the IB traded slightly higher but within the forecasted value of the IB mean of the last ten Mondays. In this case, it is within expectations.
🔶  SETTINGS 
 
 Display Last X IBs: Select how many IBs to display.
 Initial Balance: Choose a custom session or enable the Auto feature.
 Breakouts: Enable or disable breakouts. Choose custom session or enable the Auto feature.
 
🔹  Extensions 
 
 Top Extension: Enable or disable the top extension and choose the percentage of IB to use.
 Bottom extension: Enable or disable the bottom extension and choose the percentage of IB to use.
 
🔹  Fibonacci Levels 
 
 Display Fibonacci: Enable or disable Fibonacci levels.
 Reverse: Reverse Fibonacci levels.
 Levels, Colors & Style
 Display Labels: Enable or disable labels and choose text size.
 
🔹  Forecast 
 
 Display Forecast: Select the forecast method.
- IB Against Previous Open: Calculates the average difference between the IB high and low and the previous day's IB open price.
- Filter by Current Day of Week: Calculates the average difference between the IB high and low and the IB open price for the same day of the week.
 Forecast Memory: The number of data points used to calculate the average.
 Forecast Multiplier: This multiplier will be applied to the average. Bigger numbers will result in wider predicted ranges.
 Forecast Colors: Choose from a variety of colors.
 Forecast Style: Choose a line style.
 
🔹  Style 
 
 Initial Balance Colors
 Extension Transparency: Choose the extension's transparency. 0 is solid, and 100 is fully transparent.






















