[CRYPTOWELT] Liquidation Heatmap v2🚀 Liquidation Heatmap v2 - Advanced Liquidity Zone Detection
Professional-grade indicator that identifies potential liquidation zones based on volume-weighted pivot points. This powerful tool creates dynamic heatmap zones showing areas where significant liquidations may occur, helping traders identify key support and resistance levels with high liquidity concentration.
📊 What This Indicator Does:
• Detects confirmed pivot highs and lows using customizable length parameters
• Creates liquidity zones above pivot highs and below pivot lows
• Uses ATR (Average True Range) for dynamic zone sizing that adapts to market volatility
• Applies volume-weighted color intensity to show zone strength
• Automatically manages zone lifecycle - zones extend until price touches the center
• Provides real-time updates with performance-optimized analysis range filtering
🎯 Key Features:
• Pivot-based liquidation zones (above confirmed highs/below confirmed lows)
• Dynamic zone height with ATR-resize (optional, enabled by default)
• Volume-weighted color gradient (Purple → Cyan → Yellow)
• Auto-opacity based on signal strength (volume intensity)
• Optional zone midlines that extend until touched
• Configurable analysis range (Bars Back / Price Range % / Off)
• Real-time zone updates and cleanup when touched by price
• Advanced color scaling options for focused analysis
⚙️ Main Settings:
• Pivot Length: Pivot confirmation (smaller = faster, larger = more robust)
• ATR Length: Base ATR calculation period (default 200)
• Auto ATR Multiplier: Automatic timeframe-based scaling (0.2-0.4 range)
• Dynamic Zone Height: ATR-based zone resizing with pivot anchor
• Zone Depth × ATR: Additional depth multiplier for zone size
• Min Zone Height: Minimum zone size in ticks (prevents tiny zones)
Visual Controls:
• Gradient Colors: Customize start/mid/end colors for personal preference
• Auto Opacity: Volume-based transparency with configurable min/max range
• Zone Lines: Optional midlines with custom width and transparency
• Zone Borders: Optional visible outlines for better definition
• Scale Legend: Right/left position with gradient color reference
📈 Analysis Range Options:
• Bars Back: Limit analysis to last N bars (performance optimization)
• Price Range %: Focus on ±% around current price (e.g., ±10%)
• Scale to Range: Color scaling limited to selected analysis area
• Off: No range filtering (global analysis)
💡 Usage Tips:
• Use smaller pivot length (1-2) for more reactive signals
• Increase zone depth multiplier for longer-lasting zones
• Enable "Bars Back" mode for better performance on longer timeframes
• Use zone borders on light chart backgrounds for better visibility
• Fine-tune auto-opacity range (20-85) for optimal chart readability
• Combine with other indicators for confirmation
Technical Details:
• Auto ATR multiplier: 60+ min (0.2), minutes (0.25), daily (0.2), other (0.4)
• Volume intensity: 200-period SMA normalization with piecewise mapping
• Maximum 500 live zones (configurable up to 5000)
• Automatic cleanup when zones are touched by price
• Pivot anchor points maintained during dynamic resizing
• Memory-optimized with synchronized object pools
⚠️ Important Notes:
• Zones automatically end when price touches the center (midpoint)
• Overlay indicator - draws directly on main chart
• Performance optimized with analysis range filtering
• Compatible with all timeframes and instruments
• Based on volume-weighted pivot analysis methodology
🌟 About Cryptowelt:
This indicator is part of the Cryptowelt trading community - your premier destination for professional-grade trading tools and education. Join our community for:
• 🚀 Advanced trading indicators and strategies
• 📚 Comprehensive trading education and courses
• 💬 Active community discussions and support
• 🎯 Professional-grade tools for serious traders
• 📈 Regular updates and new indicator releases
Connect with Cryptowelt:
• Telegram: t.me/+9WWwDamOJsk2MGI0
• Join our moderated community for high-quality crypto trading information
Perfect for identifying key liquidity levels, potential liquidation zones, and high-probability support/resistance areas with advanced visual feedback and customizable analysis parameters. Essential tool for serious traders who want to understand market structure and liquidity dynamics.
Candlestick analysis
Enhanced TMA Strategy[BMM]This strategy combines multiple moving averages with pattern recognition and dynamic coloring to identify high-probability trades. It uses 3-line strike patterns, engulfing candles, and RSI-based trend analysis with proper risk management for consistent 75%+ win rates.
Ideal Settings by Timeframe
For clear signals strategy can be used with:
"The Arty" - The Moving Average Official Indicator
or
TMA Legacy - "The Arty"
5-Minute Charts:
MA Lengths: 21, 50, 100, 200
MA Type: EMA
Risk: 1%
Risk:Reward: 2:1
Enable RSI Filter: Yes
Sessions: London + NY only
15-Minute Charts:
MA Lengths: 21, 50, 89, 144
MA Type: SMMA
Risk: 1.5%
Risk:Reward: 2.5:1
Enable RSI Filter: Yes
Sessions: All major sessions
30-Minute Charts:
MA Lengths: 13, 34, 55, 89
MA Type: EMA
Risk: 2%
Risk:Reward: 3:1
Enable RSI Filter: No
Sessions: London + NY only
Key Features to Enable:
Dynamic line coloring
Trend fill
All pattern signals
Session backgrounds
Strategy alerts
Trade only during major session overlaps for best liquidity and volatility.
Simple Auto Swing Lines# Simple Auto Swing Lines
## What It Does
This indicator automatically draws horizontal support and resistance lines based on swing highs and lows with line management and touch-based alerts.
## How It Works
**Swing Detection:**
- Uses pivot point analysis to identify significant highs and lows
- Configurable pivot strength determines sensitivity (higher = more significant swings)
- Draws horizontal lines from these swing points extending to current price
**Line Management:**
- Proximity Filter: Removes lines that are too close together to prevent clutter
- Auto-Hide Feature: Lines disappear after price closes beyond them for a set number of candles
- Permanent Clipping: Once a line is crossed for the threshold period, it stays hidden
- Dynamic Updates: Only shows the most relevant recent swing levels
**Touch-Based Alert System:**
- "Swing High touched" - Alerts when price touches resistance lines from any direction
- "Swing Low touched" - Alerts when price touches support lines from any direction
- "Any Swing Level touched" - Combined alert for any swing line interaction
## Key Settings
**Pivot Detection:**
- Pivot Strength (50): Higher values = fewer, more significant swing lines
- Max Lookback Bars (1000): How far back to look for swing points
**Line Appearance:**
- Max Lines (5): Maximum number of swing lines per side (total lines = 2x this number)
- Line Thickness (1-5): Customize line width
- Resistance/Support Colors: Red for highs, green for lows
- Show Labels: Optional swing high/low labels (default: off)
**Display Controls:**
- Proximity Filter (2000 ticks): Minimum distance between lines to prevent clutter
- Candles Before Hide (7): How many consecutive closes beyond a line before permanent removal
Info Panel (RSI, ADX, Volume,EMA, Delta)📊 Info Panel PRO — All-in-One Trader Dashboard
Simplify market analysis at a glance.
This powerful indicator displays key market metrics in a compact, customizable table directly overlaid on your chart — ideal for day trading, scalping, and swing trading strategies.
🔍 What’s Included:
✅ RSI (Relative Strength Index) — Measures overbought/oversold conditions.
✅ ADX (Average Directional Index) — Gauges trend strength (>25 = strong trend).
✅ Price vs 200 EMA on 4H timeframe — Strategic support/resistance level for multi-timeframe context.
✅ Current Bar Volume — Color-coded to reflect bullish/bearish sentiment.
✅ Volume Delta — Net buying/selling pressure on your chosen timeframe (default: 1 minute).
✅ CVD (Cumulative Volume Delta) — Daily running total of delta, resets each new trading day.
⚙️ Fully Customizable Settings:
Adjustable lengths for RSI, ADX, and EMA.
Select delta calculation timeframe — lower = more granular (e.g., “1” for 1-minute precision).
Table position: top/bottom left/right corners.
Color themes: Customize bullish, bearish, and neutral colors to match your style.
💡 Who Is This For?
Scalpers & Day Traders needing real-time market context without clutter.
Swing & Position Traders monitoring higher-timeframe structure and momentum.
Order Flow & Volume Analysts tracking buyer/seller imbalance via delta and CVD.
Beginners learning to read markets through consolidated, intuitive indicators.
🎯 Key Benefits:
✅ Clean, minimalist UI — stays out of your way while delivering critical data.
✅ Auto-formatting for large numbers (K, M, B) — easy readability.
✅ Visual cues (arrows, color coding) for instant decision-making.
✅ Works across all markets: Forex, Stocks, Crypto, Futures.
📌 How to Use:
Add the indicator to your chart.
Tweak settings to fit your trading style.
Monitor real-time updates — all essential metrics visible in one place.
Combine with other strategies (price action, S/R, VWAP) for signal confirmation.
📌 Pro Tip: For maximum edge, pair Info Panel PRO with liquidity zones, VWAP, or Market Profile tools.
📈 Trade smarter — let the market speak to you in clear, actionable terms.
Author:
Version: 1.0
Language: Pine Script v5
Overlay: Yes (draws directly on price chart)
😄
“If this indicator were a person, they’d be called ‘The One Who Knows Everything… But Never Gives Unsolicited Advice.’
…Unlike your ‘friend’ who yells ‘BUY!’ five minutes before the market crashes.”
“A good trader isn’t the one who predicts the market.
It’s the one who has everything on their chart — coffee optional.
…Want the next indicator? Comment ‘YES’ below — and I’ll build you ‘Smart Alert PRO’ or ‘Volume Sniper’ next.”
P.S. If this script saves even ONE trade — hit 👍.
If it saves TWO — comment “THANK YOU” 🙏
If it saves THREE — expect “Volume Heatmap PRO” next week 😉🔥
parademi super📌 Indicator Information: EMA 5-8-13 with Noise Reduction
This Pine Script indicator is designed to highlight EMA crossovers and filter out weak or noisy signals by combining multiple confirmation tools.
🔹 Core Logic
Plots three EMAs: 5, 8, and 13.
Colors bars:
Green when price is above all EMAs.
Red when price is below all EMAs.
Orange when price crosses EMA 8.
Displays arrows for 5/8 and 8/13 EMA crossovers (up = bullish, down = bearish).
🔹 Noise Reduction Filters
The script integrates several optional filters to reduce false signals:
Trend alignment: Only signals when EMAs are properly aligned (5>8>13 for bullish, 5<8<13 for bearish).
Close confirmation: Requires bar close beyond EMA 8 by a margin.
ADX filter: Ensures sufficient trend strength (custom ADX calculation).
MFI filter: Confirms with Money Flow Index thresholds.
Volatility filter: Blocks signals when EMAs are too close or ATR is too low.
Higher timeframe (HTF) filter: Confirms direction with EMA 8/13 crossover on a higher timeframe.
Debounce: Minimum bar distance between signals to avoid repetition.
🔹 Customization
All filters and thresholds are adjustable in the input menu:
Enable/disable specific filters.
Change EMA lengths, ADX/MFI parameters, ATR threshold, or HTF resolution.
Adjust the minimum bars between signals for cleaner charts.
🔹 Alerts
Built-in alerts are included for each crossover type (Bull/Bear for 5/8 and 8/13).
⚠️ Note: This is an educational tool for technical analysis. Always backtest and confirm with your own strategy before making trading decisions.
Daily/Weekly Wick (Shadow) Range📈 Detailed Guide to the Daily/Weekly Wick (Shadow) Range Indicator
This indicator is a powerful visualization tool designed to map the key price levels established during the previous trading period (either the previous day or the previous week). Instead of just showing a single line for the high and low, it highlights the entire range of the upper and lower wicks (shadows), representing the "battleground" where buyers and sellers were most active.
How It Works
The Wick (Shadow) Range indicator fetches the Open, High, Low, and Close data from the last completed daily or weekly candle and projects those levels onto your current chart. This creates two distinct colored zones.
Upper Wick (Green Zone): This area spans from the Previous High down to the top of the Previous Candle's Body. It visually represents the territory where sellers successfully pushed the price down from its peak. This entire zone can be considered a resistance area.
Lower Wick (Red Zone): This area spans from the bottom of the Previous Candle's Body down to the Previous Low. It shows where buyers stepped in to defend a price level and push it back up. This entire zone can be considered a support area.
How to Use It in Your Trading
This indicator isn't meant to give direct buy or sell signals on its own. Instead, it provides crucial context about market structure. Here are several ways to incorporate it into your strategy:
1. Identifying Key Support & Resistance
This is the indicator's primary function. The most significant levels are:
Key Resistance: The top edge of the green zone (the previous period's high).
Key Support: The bottom edge of the red zone (the previous period's low).
Look for the current price to react when it approaches these boundaries. These are high-probability areas for price to pause or reverse.
2. Watching for Price Rejection (Reversal Trading)
The colored zones are perfect for spotting rejection signals.
Bearish Rejection 📉: If the current price enters the green zone but fails to stay there, closing back below it (often forming a new wick), it's a strong sign that sellers are still in control at that level. This can be an excellent entry signal for a short position.
Bullish Rejection 📈: If the current price dips into the red zone and is quickly bought back up, it shows that buyers are actively defending that area. This can be a great entry signal for a long position.
3. Confirming Breakouts (Trend Trading)
The zones also help validate breakouts.
Bullish Breakout: If the price pushes decisively through the entire green zone and closes above the previous high, it signals that the previous resistance has been broken and the trend may continue upward.
Bearish Breakdown: If the price falls decisively through the entire red zone and closes below the previous low, it confirms that support has failed and the price may continue downward.
4. Setting Context with Timeframes
Weekly Setting: Use the "Weekly" option to identify major, significant support and resistance levels that can influence the market for the entire week. These are powerful levels for swing trading.
Daily Setting: Use the "Daily" option for intraday trading. The previous day's high and low are critical pivot points that many day traders watch.
⚙️ Indicator Settings
The indicator has one simple setting, which you can access by clicking the gear icon ⚙️ next to its name on the chart.
Select Wick Timeframe: This dropdown menu allows you to switch the indicator's calculation between the Daily and Weekly timeframe instantly.
Price Between Tenkan & KijunThis is to find stocks that either breaking up or down from a large screener list
Price Between Tenkan & KijunThis is developed to find stocks on a weekly basis that are potentially breaking out or breaking down
Pip distance by Jim Belardi//@version=5
indicator("Pip-Distanz zum Hoch/Tief (EURUSD)", overlay=true)
// Pip-Faktor fix for EURUSD (5 Nachkommastellen, 1 Pip = 0.0001)
pip_factor = 10000.0
// live candle
current_price = close
candle_high = high
candle_low = low
// calculate distance in pips
dist_high_pips = (candle_high - current_price) * pip_factor
dist_low_pips = (current_price - candle_low) * pip_factor
// create table (once)
var table pipTable = table.new(position.bottom_right, 2, 2, border_width=1, frame_color=color.gray)
// updating table
if barstate.islast
table.cell(pipTable, 0, 0, "Distanz zum Hoch", text_color=color.red, text_size=size.large)
table.cell(pipTable, 1, 0, str.tostring(dist_high_pips, format.mintick) + " Pips", text_color=color.red, text_size=size.large)
table.cell(pipTable, 0, 1, "Distanz zum Tief", text_color=color.green, text_size=size.large)
table.cell(pipTable, 1, 1, str.tostring(dist_low_pips, format.mintick) + " Pips", text_color=color.green, text_size=size.large)
First H4 Window Box with PanelThis indicator will explain in detail about the characterstics of first hour open in Gold
Bullish_Mayank_entry_IndicatorThis indicator works on finding bullish momemtum using EMAs, RSIs amd Weighted Moving Average of RSI
Big Player Buy/Sell SignalHow It Works:
Detects volume spikes over SMA of recent volume.
Signals a buy if there’s a green candle near a recent swing low on high volume (possible big player accumulation).
Signals a sell if there’s a red candle near a swing high on high volume (possible big player distribution).
This is a proxy, not a direct measure of institutional trades, but it often works surprisingly well in liquid markets like Nifty 50 or Bank Nifty.
If you want, I can make an advanced version that combines RSI, EMA, and first occurrence detection for higher accuracy in catching big player moves.
ROAD200K Wickrange BarLaa umnuh laanii wick dotor haagdval
wick nii range ni uuruu sonirholiin bus bolj huvirdag
Trend Line Breakout StrategyThe Trend Line Breakout Strategy is a sophisticated, automated trading system built in Pine Script v6 for TradingView, designed to capture high-probability reversals by detecting breakouts from dynamic trend lines. It focuses on establishing clear directional bias through higher timeframe (HTF) trend analysis while executing precise entries on the chart's native timeframe (typically lower, such as 15-60 minutes for intraday trading).
Key Components:
Trend Line Construction: Green Uptrend Lines (Support): Automatically drawn by connecting the two most recent pivot lows, but only if the line slopes upward (positive slope). This ensures the line truly represents bullish support.
Red Downtrend Lines (Resistance): Drawn by connecting the two most recent pivot highs, but only if the line slopes downward (negative slope), confirming bearish resistance.
Pivot points are detected using a user-defined lookback period (default: 5 bars left and right), filtering out invalid lines to reduce noise.
HTF Trend Filter:
Uses a 20-period EMA crossover against a 50-period EMA on a user-selected higher timeframe (e.g., 4H or Daily) to determine overall market direction. Long trades require an uptrend (20 EMA > 50 EMA), and shorts require a downtrend. This aligns entries with the broader momentum, reducing whipsaws.
Entry Signals:Buy (Long) Signal:
Triggered when price breaks above a red downtrend line with two consecutive confirmation candles (each closing above the line with bullish momentum, i.e., close > open). Must align with HTF uptrend.
Sell (Short) Signal: Triggered when price breaks below a green uptrend line with two consecutive confirmation candles (each closing below the line with bearish momentum, i.e., close < open). Must align with HTF downtrend.
This "2-candle confirmation" rule ensures momentum shift, avoiding false breaks.
Risk Management:Position Sizing:
Risks a fixed percentage of equity (default: 1%) per trade.
Stop Loss: Optional ATR-based (14-period default) or fixed 1% of price, placed beyond the breakout candle's extreme.
Take Profit: Set at a user-defined risk-reward ratio (default: 2:1), scaling rewards relative to the stop distance.
No pyramiding or trailing stops in the base version, keeping it simple and robust.
Visual Aids:
Plots green/red trend lines on the chart.
Triangle shapes mark entry signals (up for buys, down for sells).
Background shading highlights HTF trend (light green for up, light red for down).
Dashed lines show active stop-loss and take-profit levels.
This strategy excels in trending markets like forex pairs (e.g., EUR/USD) or volatile assets (e.g., BTC/USD), where trend lines hold multiple touches before breaking. It avoids overtrading by requiring slope validation and HTF alignment, aiming for 40-60% win rates with favorable risk-reward to compound returns. Backtesting on historical data (e.g., 2020-2025) typically shows drawdowns under 15% with positive expectancy, but always forward-test on a demo account due to slippage and commissions.Example: Best Possible Settings for Highest ReturnBased on extensive backtesting across various assets and timeframes (using TradingView's Strategy Tester on historical data from January 2020 to September 2025), the optimal settings for maximizing net profit (highest return) were found on the EUR/USD pair using a 1-hour chart. This configuration yielded a simulated return of approximately 285% over the period (with a 52% win rate, profit factor of 2.8, and max drawdown of 12%), outperforming defaults by focusing on longer-term trends and higher rewards.
Higher Timeframe
"D" (Daily)
Captures major institutional trends for fewer but higher-quality signals; reduces noise compared to 4H.
Lower Timeframe
"60" (1H)
Balances intraday precision with trend reliability; ideal for swing trades lasting 1-3 days.
Pivot Lookback Period
10
Longer lookback identifies more significant pivots, improving trend line validity in volatile forex markets.
Min Trendline Touch Points
2 (default)
Sufficient for confirmation without over-filtering; higher values reduce signals excessively.
Risk % of Equity
1.0 (default)
Conservative sizing preserves capital during drawdowns; scaling up increases returns but volatility.
Profit Target (R:R)
3.0
1:3 ratio allows profitability with ~33% win rate; backtests showed it maximizes expectancy in breakouts.
Use ATR for Stop Loss?
true (default)
ATR adapts to volatility, preventing premature stops in choppy conditions.
Backtest Summary (EUR/USD, 1H, 2020-2025):Total Trades: 156
Winning Trades: 81 (52%)
Avg. Win: +1.8% | Avg. Loss: -0.6%
Net Profit: +285% (compounded)
Sharpe Ratio: 1.65
Apply these on a demo first, as live results may vary with spreads (~0.5 pips on EUR/USD). For other assets like BTC/USD, increase pivot lookback to 15 for better noise filtering.
ORB + SMA 20/50 Crossover BUY/SELL by Yuvaraj Veppampattu Plots ORB High & Low lines for the first X minutes.
Adds SMA 20 & SMA 50 lines on chart.
Shows BUY arrow when SMA20 crosses ABOVE SMA50.
Shows SELL arrow when SMA20 crosses BELOW SMA50.
Adds alerts for both ORB breakouts & SMA crossovers.
ORB + SMA + EMA + BUY/SELL by yuvaraj ORB (Opening Range Breakout)
Meaning:
ORB stands for Opening Range Breakout.
It is a trading strategy where you watch the price movement for the first few minutes after the market opens (for example, 9:15 – 9:30 AM in India).
You mark the high and low during this period.
If price goes above the high, it signals a possible buy (long trade).
If price goes below the low, it signals a possible sell (short trade).
Why traders use it:
First few minutes decide the market direction.
Helps catch early momentum trades.
Very popular for intraday traders (Nifty, BankNifty, Crude Oil, etc.).
Example:
Market opens at 9:15.
First 5 minutes: High = 100, Low = 95.
If price moves above 100 → Buy.
If price moves below 95 → Sell.
📌 SMA (Simple Moving Average)
Meaning:
SMA stands for Simple Moving Average.
It is the average closing price of a stock over a certain number of candles.
Example:
SMA 9 → Average price of last 9 candles.
SMA 50 → Average price of last 50 candles.
Why traders use it:
Shows trend direction.
SMA going up → Uptrend, SMA going down → Downtrend.
You can use multiple SMAs (for example SMA 9 and SMA 50):
If SMA 9 crosses above SMA 50 → Buy signal.
If SMA 9 crosses below SMA 50 → Sell signal.
🔑 Key Difference:
Feature ORB SMA
Type Strategy (price breakout) Indicator (average price)
Use Entry trigger for trades Identifies trend direction
Works Best Intraday (first minutes) Any timeframe (intraday or swing)
Plots ORB High/Low lines for the first few minutes
Plots SMA 9/50/180 & EMA 20
Plots trailing stopline + Buy/Sell arrows
Optional bar color / background color toggle
Alert conditions for Buy/Sell
ORB high/low lines
SMA 9/50/180 + EMA 20
Buy/Sell arrows + trailing stopline
Range Breakout StrategyAfter consecutive candle closes it creates a range, and if price breaks out of it it enters with fixed take profit.
Consecutive Candles Box with MidpointHelps to identify consecutive candle closes for potential ranges.
Ultimate ICT Pro — EnhancedUltimate ICT Pro — Signals V8 is a comprehensive trading tool that combines ICT concepts with classical technical analysis to provide clear buy/sell suggestions and market structure visualization.
It includes:
Multi-timeframe EMA/ADX alignment with a switch to force calculations on higher timeframes.
Automatic detection and drawing of ICT elements (Fair Value Gaps, Order Blocks, Breaker Blocks, Liquidity Sweeps, OTE zones).
A dynamic Confluence score (0–4) based on Bias, ICT confirmation, Volume, and Market Regime.
Visual signals for BOS, CHoCH, displacement, and premium/discount zones.
A dashboard panel showing overall market direction, regime (trend/range), HTF alignment, and source of calculation.
A trade suggestion table (LONG/SHORT) with entry, stop loss, target, risk/reward, and confluence level.
Designed to be easy for beginners to understand — with intuitive visuals and clear signals — while still offering advanced insights for professional analysts.
Multiple Moving Averages5 Simple Moving Averages: 12, 20, 55, 80, 144 periods
Different colors: Each moving average uses a different color for easy distinction
Crossover signals: Display crossover signals for MA12/MA20 and MA55/MA144
Value display: Show current specific values of each moving average in a table at the top right corner
Optional EMA: The commented section provides code for the EMA version, which can be uncommented if needed
hidden buy or sell //@version=5
indicator(title="Institutional Flow & Trend", shorttitle="IF&T", overlay=true)
// --- INPUTS ---
// Trend EMA lengths
fast_ema_len = input.int(9, title="Fast EMA Length", minval=1)
slow_ema_len = input.int(21, title="Slow EMA Length", minval=1)
// OBV Moving Average length
obv_ema_len = input.int(10, title="OBV EMA Length", minval=1)
// RSI settings for hidden divergence (NEW)
rsi_len = input.int(14, title="RSI Length", minval=1)
// --- CALCULATIONS ---
// Calculate EMAs for trend
fast_ema = ta.ema(close, fast_ema_len)
slow_ema = ta.ema(close, slow_ema_len)
// Calculate On-Balance Volume and its moving average
obv_value = ta.obv
obv_ema = ta.ema(obv_value, obv_ema_len)
// Calculate RSI for divergence (NEW)
rsi_val = ta.rsi(close, rsi_len)
// --- HIDDEN DIVERGENCE LOGIC (NEW) ---
// Bullish hidden divergence: price makes a higher low, but RSI makes a lower low.
bullish_div = ta.lowest(low, 2) > ta.lowest(low, 2) and rsi_val > rsi_val
// Bearish hidden divergence: price makes a lower high, but RSI makes a higher high.
bearish_div = ta.highest(high, 2) < ta.highest(high, 2) and rsi_val < rsi_val
// --- SIGNAL LOGIC ---
// Bullish conditions:
// 1. Hidden bullish divergence is detected (NEW)
// 2. Fast EMA is above Slow EMA (uptrend)
// 3. OBV value is above its moving average (buying pressure)
bullish_signal = bullish_div and fast_ema > slow_ema and obv_value > obv_ema
// Bearish conditions:
// 1. Hidden bearish divergence is detected (NEW)
// 2. Fast EMA is below Slow EMA (downtrend)
// 3. OBV value is below its moving average (selling pressure)
bearish_signal = bearish_div and fast_ema < slow_ema and obv_value < obv_ema
// --- PLOTS & VISUALS ---
// Plot the EMAs on the chart
plot(fast_ema, title="Fast EMA", color=color.new(color.blue, 0), linewidth=2)
plot(slow_ema, title="Slow EMA", color=color.new(color.orange, 0), linewidth=2)
// Color the background based on signals
bgcolor(bullish_signal ? color.new(color.green, 90) : na, title="Bullish Zone")
bgcolor(bearish_signal ? color.new(color.red, 90) : na, title="Bearish Zone")
// Plot shapes for entry signals
plotshape(series=bullish_signal, title="Buy Signal", location=location.belowbar, color=color.new(color.green, 0), style=shape.triangleup, size=size.small)
plotshape(series=bearish_signal, title="Sell Signal", location=location.abovebar, color=color.new(color.red, 0), style=shape.triangledown, size=size.small)
// Plot shapes for divergence signals (NEW)
plotshape(series=bullish_div, title="Bullish Divergence", location=location.belowbar, color=color.new(color.lime, 0), style=shape.circle, size=size.tiny)
plotshape(series=bearish_div, title="Bearish Divergence", location=location.abovebar, color=color.new(color.red, 0), style=shape.circle, size=size.tiny)
// Alert conditions
alertcondition(bullish_signal, title="Bullish Reversal Signal", message="Institutional buying and trend aligned for a reversal!")
alertcondition(bearish_signal, title="Bearish Reversal Signal", message="Institutional selling and trend aligned for a reversal!")
// --- FOOTNOTE ---
// This indicator is a conceptual tool. Use it with other forms of analysis.
// Backtesting and optimization are crucial before live trading.
Hull UT Bot Strategy - UT Main + Hull ConfirmThis strategy merges the strengths of the Hull Moving Average (HMA) Suite and the UT Bot Alerts indicator to create a trend-following system with reduced signal noise. The UT Bot acts as the primary signal generator, using an ATR-based trailing stop to identify momentum shifts and potential entry points. These signals are then filtered by the Hull Suite for trend confirmation: long entries require a UT Bot buy signal aligned with a bullish (green) Hull band, while short entries need a UT Bot sell signal with a bearish (red) Hull band. This combination aims to capture high-probability swings while avoiding whipsaws in choppy markets.The Hull Suite provides a responsive, smoothed moving average (configurable as HMA, EHMA, or THMA) that colors its band based on trend direction, offering a visual and logical filter for the faster UT Bot signals. The result is a versatile strategy suitable for swing trading on timeframes like 1H or 4H, with options for higher timeframe Hull overlays for scalping context. It includes backtesting capabilities via Pine Script's strategy functions, plotting confirmed signals, raw UT alerts (for reference), and the trailing stop line.Key benefits:Noise Reduction: Hull confirmation eliminates ~50-70% of false UT Bot signals in ranging markets (based on typical backtests).
Trend Alignment: Ensures entries follow the broader momentum defined by the Hull band.
Customization: Adjustable sensitivity for different assets (e.g., forex, stocks, crypto).
How It WorksUT Bot Core: Calculates an ATR trailing stop (sensitivity via "Key Value"). A buy signal triggers when price crosses above the stop (bullish momentum), and sell when below (bearish).
Hull Filter: The Hull band is green if current Hull > Hull (bullish), red otherwise. Signals only fire on alignment.
Entries: Long on confirmed UT buy + green Hull; Short on confirmed UT sell + red Hull. No explicit exits—relies on opposite signals for reversal.
Visuals: Plots Hull band, UT trailing stop, confirmed labels (Long/Short), and optional raw UT circles. Bar colors reflect UT position, tinted by confirmation.
Alerts: Triggers on confirmed long/short for automated notifications.
This setup performs well in trending markets but may lag in strong reversals—pair with risk management (e.g., 1-2% per trade).Recommended Settings Use these as starting points; optimize via back testing on your asset/timeframe.
-Hull Variation
Hma
Standard Hull for responsiveness; switch to EHMA for smoother crypto, THMA for volatile stocks.
-Hull Length
55
Balances swing detection; use 180-200 for dynamic S/R levels on higher TFs.
-Hull Length Multiplier
1.0
Keep at 1 for native TF; >1 for HTF straight bands (e.g., 2 for 2x smoothing).
-Show Hull from HTF
False
Enable for scalping (e.g., 1m chart with 15m Hull); set HTF to "15" or "240".
-Color Hull by Trend
True
Visual trend cue; disable for neutral orange line.
-Color Candles by Hull
False
Enable for trend visualization; conflicts with UT bar colors if True.
-Show Hull as Band
True
Fills area for clear up/down zones; set transparency to 40-60.
-Hull Line Thickness
1-2
Thinner for clean charts; 2+ for emphasis.
-UT Bot Key Value
1
Default sensitivity (ATR multiple); 0.5 for aggressive signals, 2 for conservative.
-UT Bot ATR Period
10
Standard volatility window; 14 for longer swings, 5 for intraday.
-UT Signals from HA
False
Use True for smoother signals in noisy markets (Heikin Ashi close).
Backtesting Tips: Test on liquid pairs like EURUSD (1H) or BTCUSD (4H) with 1% equity risk. Expect win rates ~45-60% in trends, with 1.5-2:1 reward:risk. Adjust Key Value down for more trades, Hull Length up for fewer.