Active PMI Support/Resistance Levels [EdgeTerminal]The PMI Support & Resistance indicator revolutionizes traditional technical analysis by using Pointwise Mutual Information (PMI) - a statistical measure from information theory - to objectively identify support and resistance levels. Unlike conventional methods that rely on visual pattern recognition, this indicator provides mathematically rigorous, quantifiable evidence of price levels where significant market activity occurs.
- The Mathematical Foundation: Pointwise Mutual Information
Pointwise Mutual Information measures how much more likely two events are to occur together compared to if they were statistically independent. In our context:
Event A: Volume spikes occurring (high trading activity)
Event B: Price being at specific levels
The PMI formula calculates: PMI = log(P(A,B) / (P(A) × P(B)))
Where:
P(A,B) = Probability of volume spikes occurring at specific price levels
P(A) = Probability of volume spikes occurring anywhere
P(B) = Probability of price being at specific levels
High PMI scores indicate that volume spikes and certain price levels co-occur much more frequently than random chance would predict, revealing genuine support and resistance zones.
- Why PMI Outperforms Traditional Methods
Subjective interpretation: What one trader sees as significant, another might ignore
Confirmation bias: Tendency to see patterns that confirm existing beliefs
Inconsistent criteria: No standardized definition of "significant" volume or price action
Static analysis: Doesn't adapt to changing market conditions
No strength measurement: Can't quantify how "strong" a level truly is
PMI Advantages:
✅ Objective & Quantifiable: Mathematical proof of significance, not visual guesswork
✅ Statistical Rigor: Levels backed by information theory and probability
✅ Strength Scoring: PMI scores rank levels by statistical significance
✅ Adaptive: Automatically adjusts to different market volatility regimes
✅ Eliminates Bias: Computer-calculated, removing human interpretation errors
✅ Market Structure Aware: Reveals the underlying order flow concentrations
- How It Works
Data Processing Pipeline:
Volume Analysis: Identifies volume spikes using configurable thresholds
Price Binning: Divides price range into discrete levels for analysis
Co-occurrence Calculation: Measures how often volume spikes happen at each price level
PMI Computation: Calculates statistical significance for each price level
Level Filtering: Shows only levels exceeding minimum PMI thresholds
Dynamic Updates: Refreshes levels periodically while maintaining historical traces
Visual System:
Current Levels: Bright, thick lines with PMI scores - your actionable levels
Historical Traces: Faded previous levels showing market structure evolution
Strength Tiers: Line styles indicate PMI strength (solid/dashed/dotted)
Color Coding: Green for support, red for resistance
Info Table: Real-time display of strongest levels with scores
- Indicator Settings:
Core Parameters
Lookback Period (Default: 200)
Lower (50-100): More responsive to recent price action, catches short-term levels
Higher (300-500): Focuses on major historical levels, more stable but less responsive
Best for: Day trading (100-150), Swing trading (200-300), Position trading (400-500)
Volume Spike Threshold (Default: 1.5)
Lower (1.2-1.4): More sensitive, catches smaller volume increases, more levels detected
Higher (2.0-3.0): Only major volume surges count, fewer but stronger signals
Market dependent: High-volume stocks may need higher thresholds (2.0+), low-volume stocks lower (1.2-1.3)
Price Bins (Default: 50)
Lower (20-30): Broader price zones, less precise but captures wider areas
Higher (70-100): More granular levels, precise but may be overly specific
Volatility dependent: High volatility assets benefit from more bins (70+)
Minimum PMI Score (Default: 0.5)
Lower (0.2-0.4): Shows more levels including weaker ones, comprehensive view
Higher (1.0-2.0): Only statistically strong levels, cleaner chart
Progressive filtering: Start with 0.5, increase if too cluttered
Max Levels to Show (Default: 8)
Fewer (3-5): Clean chart focusing on strongest levels only
More (10-15): Comprehensive view but may clutter chart
Strategy dependent: Scalpers prefer fewer (3-5), swing traders more (8-12)
Historical Tracking Settings
Update Frequency (Default: 20 bars)
Lower (5-10): More frequent updates, captures rapid market changes
Higher (50-100): Less frequent updates, focuses on major structural shifts
Timeframe scaling: 1-minute charts need lower frequency (5-10), daily charts higher (50+)
Show Historical Levels (Default: True)
Enables the "breadcrumb trail" effect showing evolution of support/resistance
Disable for cleaner charts focusing only on current levels
Max Historical Marks (Default: 50)
Lower (20-30): Less memory usage, shorter history
Higher (100-200): Longer historical context but more resource intensive
Fade Strength (Default: 0.8)
Lower (0.5-0.6): Historical levels more visible
Higher (0.9-0.95): Historical levels very subtle
Visual Settings
Support/Resistance Colors: Choose colors that contrast well with your chart theme Line Width: Thicker lines (3-4) for better visibility on busy charts Show PMI Scores: Toggle labels showing statistical strength Label Size: Adjust based on screen resolution and chart zoom level
- Most Effective Usage Strategies
For Day Trading:
Setup: Lookback 100-150, Volume Threshold 1.8-2.2, Update Frequency 10-15
Use PMI levels as bounce/rejection points for scalp entries
Higher PMI scores (>1.5) offer better probability setups
Watch for volume spike confirmations at levels
For Swing Trading:
Setup: Lookback 200-300, Volume Threshold 1.5-2.0, Update Frequency 20-30
Enter on pullbacks to high PMI support levels
Target next resistance level with PMI score >1.0
Hold through minor levels, exit at major PMI levels
For Position Trading:
Setup: Lookback 400-500, Volume Threshold 2.0+, Update Frequency 50+
Focus on PMI scores >2.0 for major structural levels
Use for portfolio entry/exit decisions
Combine with fundamental analysis for timing
- Trading Applications:
Entry Strategies:
PMI Bounce Trades
Price approaches high PMI support level (>1.0)
Wait for volume spike confirmation (orange triangles)
Enter long on bullish price action at the level
Stop loss just below the PMI level
Target: Next PMI resistance level
PMI Breakout Trades
Price consolidates near high PMI level
Volume increases (watch for orange triangles)
Enter on decisive break with volume
Previous resistance becomes new support
Target: Next major PMI level
PMI Rejection Trades
Price approaches PMI resistance with momentum
Watch for rejection signals and volume spikes
Enter short on failure to break through
Stop above the PMI level
Target: Next PMI support level
Risk Management:
Stop Loss Placement
Place stops 0.1-0.5% beyond PMI levels (adjust for volatility)
Higher PMI scores warrant tighter stops
Use ATR-based stops for volatile assets
Position Sizing
Larger positions at PMI levels >2.0 (highest conviction)
Smaller positions at PMI levels 0.5-1.0 (lower conviction)
Scale out at multiple PMI targets
- Key Warning Signs & What to Watch For
Red Flags:
🚨 Very Low PMI Scores (<0.3): Weak statistical significance, avoid trading
🚨 No Volume Confirmation: PMI level without recent volume spikes may be stale
🚨 Overcrowded Levels: Too many levels close together suggests poor parameter tuning
🚨 Outdated Levels: Historical traces are reference only, not tradeable
Optimization Tips:
✅ Regular Recalibration: Adjust parameters monthly based on market regime changes
✅ Volume Context: Always check for recent volume activity at PMI levels
✅ Multiple Timeframes: Confirm PMI levels across different timeframes
✅ Market Conditions: Higher thresholds during high volatility periods
Interpreting PMI Scores
PMI Score Ranges:
0.5-1.0: Moderate statistical significance, proceed with caution
1.0-1.5: Good significance, reliable for most trading strategies
1.5-2.0: Strong significance, high-confidence trade setups
2.0+: Very strong significance, institutional-grade levels
Historical Context: The historical trace system shows how support and resistance evolve over time. When current levels align with multiple historical traces, it indicates persistent market memory at those prices, significantly increasing the level's reliability.
趨勢分析
[GalihRidha] Scalping Dashboard 5m Scalping Dashboard 5m is a practical, real-time, and user-friendly indicator designed for 5-minute intraday scalping strategies. This indicator provides clear, actionable signals along with dynamic risk management levels, all visualized in a single vertical dashboard on your chart.
Key Features:
Actionable Next Signal:
Generates a strong, easy-to-follow trading signal ("LONG" or "SHORT") every 5 minutes, based on a multi-factor algorithm (MA20/MA50 trend, RSI, price/volume strength, candle momentum, and market structure).
Dynamic TP/SL Calculation:
Automatically displays recommended Take Profit (TP) and Stop Loss (SL) price ranges, calculated from recent price action, support/resistance, and volatility (ATR).
Vertical Dashboard Layout:
Information is neatly split between "LAST SECTION" (your most recent executed signal, TP, and SL) and "NEXT SECTION" (real-time signal, recommended TP/SL, and current price). Perfectly formatted for both desktop and mobile TradingView use.
Live "Capturing" Status:
When a new signal is forming (1 minute before candle close), the dashboard shows an animated "Capturing..." status—so you always know when the indicator is preparing the next actionable trade.
Buffered Signal Logic:
Prevents “signal repainting” by ensuring that your "Last Signal" and TP/SL levels are exactly what was shown in the previous Next Signal, never the recalculated value from a new bar. This is vital for honest backtesting and live trade confidence.
Zero Lag, Mobile Ready:
Designed to be lightweight and responsive, with instant dashboard updates and no visual lag—even on slower connections or when switching timeframes.
No repaint, no lagging, pure price action + volatility logic.
How to Use:
Add to Chart
Apply the indicator to any liquid crypto or forex pair on the 5-minute (5m) timeframe.
Watch the Dashboard
1 minute before the close of each 5-minute candle, the "Next Signal" section will activate.
"Capturing..." status (with animated dots) means a new entry signal is forming.
Use the suggested Entry, TP Range, and SL for your scalping strategy.
Follow the Signal
When "Next Signal" appears, you have 1 minute to enter the trade if desired.
After the signal passes, the values are locked into the "Last Section" for reference, record-keeping, or trade management.
Mobile Friendly
The vertical format ensures the dashboard is always visible and readable on both web and mobile versions of TradingView.
No need to manually refresh or guess when a new signal is forming—just watch for "Capturing..."!
Best Practice & Tips:
For best results, use on trending or high-volume assets. Avoid low liquidity or choppy sideways markets.
Combine with your own risk management and execution strategy for maximum performance.
This dashboard is 100% Pine Script v5, fully open-source, and does not repaint. You can customize TP/SL logic or integrate with alerts for even more automation.
Why This Indicator?
Most scalping indicators provide signals, but don't show you the real, actionable context—especially in mobile or fast-moving markets.
This dashboard solves that problem by giving you everything you need for quick, clear, and confident trading—all in one place, with true buffer logic so your entries and results are always honest and reproducible.
Happy scalping and stay disciplined—let the dashboard do the heavy lifting for you! 🚀
EMA CPR Double Candle Strategy# EMA CPR Double Candle Strategy
## Strategy Overview
The **EMA CPR Double Candle Strategy** is a comprehensive technical analysis trading system that combines multiple indicators to identify high-probability entry points in trending markets. This strategy uses a systematic approach to filter trades based on trend direction, momentum, trend strength, and support/resistance levels.
## Core Components
### 1. **EMA (Exponential Moving Average) System**
- **EMA1** (Fast EMA - Default: 20 periods)
- **EMA2** (Slow EMA - Default: 50 periods)
- **Purpose**: Determines overall trend direction and provides dynamic support/resistance
- **Trend Identification**:
- Bullish when EMA1 > EMA2
- Bearish when EMA1 < EMA2
### 2. **CPR (Central Pivot Range)**
- **Components**: Pivot Point, Top Central (TC), Bottom Central (BC)
- **Calculation**: Based on previous day's High, Low, Close
- **Purpose**: Acts as support/resistance filter
- **Logic**:
- Long entries: CPR should be below current price (no resistance above)
- Short entries: CPR should be above current price (no support below)
### 3. **RSI (Relative Strength Index)**
- **Default Settings**: 14 periods, 30/70 levels
- **Purpose**: Momentum filter to avoid extreme overbought/oversold conditions
- **Logic**: RSI should be between oversold and overbought levels for both long and short entries
### 4. **ADX (Average Directional Index)**
- **Default Settings**: 14 periods, 25 threshold
- **Purpose**: Trend strength filter
- **Logic**: ADX must be above threshold to ensure strong trending conditions
## Entry Logic
### Bullish Entry Conditions
1. **Trend Confirmation**: EMA1 crossed above EMA2 (and remains above)
2. **Pattern Setup**:
- A red candle touches EMA1 (at selected candle position)
- Current candle is green and closes above EMA1
3. **CPR Filter** (if enabled): All CPR levels (TC, Pivot, BC) below current price
4. **RSI Filter** (if enabled): RSI between oversold and overbought levels
5. **ADX Filter** (if enabled): ADX above threshold (strong trend)
### Bearish Entry Conditions
1. **Trend Confirmation**: EMA1 crossed below EMA2 (and remains below)
2. **Pattern Setup**:
- A green candle touches EMA1 (at selected candle position)
- Current candle is red and closes below EMA1
3. **CPR Filter** (if enabled): All CPR levels (TC, Pivot, BC) above current price
4. **RSI Filter** (if enabled): RSI between oversold and overbought levels
5. **ADX Filter** (if enabled): ADX above threshold (strong trend)
## Risk Management
### Stop Loss
- **Long Positions**: Stop loss at EMA2 level
- **Short Positions**: Stop loss at EMA2 level
- **Logic**: Uses slower EMA as dynamic stop loss
### Take Profit
- **Calculation**: Risk-Reward ratio based (default 1:2)
- **Formula**: Risk × Risk-Reward Ratio
- **Example**: If risk is 10 points, TP is 20 points away
## Customizable Parameters
### EMA Settings
- **EMA1 Length**: Fast EMA period (default: 20)
- **EMA2 Length**: Slow EMA period (default: 50)
- **EMA1 Source**: Price source (close, open, high, low, hlc3, etc.)
- **EMA2 Source**: Price source (close, open, high, low, hlc3, etc.)
### Entry Settings
- **Entry Candle Position**: Which candle in sequence to use (1-5)
- 1 = First candle touching EMA
- 2 = Second candle (default)
- 3+ = Third candle and beyond
### CPR Settings
- **Show CPR Lines**: Display CPR levels on chart
- **Use CPR Filter**: Enable/disable CPR filtering
- **CPR Lookback**: Days to look back for CPR calculation
### RSI Settings
- **Use RSI Filter**: Enable/disable RSI filtering
- **RSI Length**: Period for RSI calculation (default: 14)
- **RSI Source**: Price source for RSI
- **Oversold Level**: Lower threshold (default: 30)
- **Overbought Level**: Upper threshold (default: 70)
### ADX Settings
- **Use ADX Filter**: Enable/disable ADX filtering
- **ADX Length**: Period for ADX calculation (default: 14)
- **ADX Threshold**: Minimum value for strong trend (default: 25)
### Risk Management
- **Risk-Reward Ratio**: Target profit vs risk ratio (default: 2.0)
## Strategy Advantages
### 1. **Multi-Layered Filtering**
- Combines trend, momentum, and volatility filters
- Reduces false signals significantly
- Adaptable to different market conditions
### 2. **Flexibility**
- Each filter can be independently enabled/disabled
- Customizable parameters for different instruments
- Adaptable entry candle positions
### 3. **Clear Risk Management**
- Defined stop loss and take profit levels
- Risk-reward ratio based position sizing
- Dynamic stop loss using EMA2
### 4. **Visual Clarity**
- Clear entry signals with triangular markers
- Optional indicator displays (RSI, ADX, CPR)
- Background color coding for trend direction
- Detailed debug labels showing all conditions
## Best Practices
### 1. **Market Conditions**
- Works best in trending markets (confirmed by ADX)
- Avoid during high volatility news events
- Consider market session timing
### 2. **Timeframe Selection**
- Higher timeframes (1H, 4H, Daily) for swing trading
- Lower timeframes (15M, 30M) for intraday trading
- Adjust EMA periods based on timeframe
### 3. **Parameter Optimization**
- Test different EMA combinations (8/21, 13/34, 20/50)
- Adjust RSI levels based on market volatility
- Optimize ADX threshold for different instruments
### 4. **Risk Management**
- Never risk more than 1-2% per trade
- Use proper position sizing
- Consider correlation between trades
## Common Use Cases
### 1. **Forex Trading**
- Major pairs during trending sessions
- Adjust for different volatility levels
- Consider economic news impact
### 2. **Stock Trading**
- Individual stocks with good liquidity
- Sector rotation strategies
- Earnings season considerations
### 3. **Cryptocurrency**
- Major cryptocurrencies with high volume
- Adjust for 24/7 market conditions
- Consider whale movements
### 4. **Index Trading**
- S&P 500, NASDAQ, DAX indices
- During market hours with good volume
- Economic data release timing
## Limitations
### 1. **Trending Markets Only**
- Performs poorly in ranging/sideways markets
- Requires ADX confirmation for effectiveness
### 2. **Lagging Nature**
- EMA-based signals can be delayed
- May miss very fast market moves
### 3. **Multiple Filters**
- Fewer signals due to strict conditions
- May miss some profitable opportunities
### 4. **Market Gaps**
- Stop losses may not be effective during gaps
- Consider gap risk in position sizing
## Conclusion
The EMA CPR Double Candle Strategy is a sophisticated trading system that combines multiple technical indicators to identify high-probability trading opportunities. Its strength lies in its comprehensive filtering system that helps traders avoid false signals while maintaining flexibility through customizable parameters. The strategy is particularly effective in trending markets and provides clear risk management rules for consistent trading performance.
**Remember**: No strategy guarantees profits. Always backtest thoroughly, use proper risk management, and consider market conditions before implementing any trading strategy.
BskLAB - Money Flow X🧠 BskLAB – Money Flow X | Full Usage Guide & Description
BskLAB – Money Flow X is a professional-grade volume analysis tool featuring two core modes designed to detect market pressure, momentum, and divergence with precision. When used alongside BskLAB Signal Assistant, it provides powerful volume-based confirmation to enhance signal quality.
🔧 Preset Modes Overview
📊 Mode 1: Money Flow (WaveTrend + Divergence)
This mode uses a custom WaveTrend oscillator to reflect momentum from buying/selling pressure, along with automatic divergence detection. It starts by calculating the average price from and filters through the EMA and SMA to create WT1 and WT2.
Key Features:Dual WaveTrend lines (WT1 & WT2) with crossover signals
Visual display of overbought / oversold zones
Automatic divergence detection:
🟢 Green = Classic Bullish Divergence
🔴 Red = Classic Bearish Divergence
🔵 Blue = Hidden Bullish Divergence
🟠 Orange = Hidden Bearish Divergence
Best Used For:
Identifying early reversals and exhaustion zones during high or low volatility phases.
🚀 Mode 2: Volume Momentum (Dynamic Histogram)
This mode displays volume-driven pressure using histogram bars that expand or contract with momentum. It calculates PercentB (%B) from Bollinger Band behavior to reflect how far price stretches away from its recent average range.
Key Features:Histogram expands with growing momentum
Dynamic bar coloring:
🔴 Red = selling pressure emerges
⚪ White = buying pressure emerges
Uses %B from Bollinger Band for calculation
Best Used For:
Confirming strong directional moves or identifying momentum buildup or fade — especially when price moves far from the average.
🔬 Internal Logic Breakdown (Main WT & Money Flow)
✅ 1. WaveTrend System (WT1 & WT2)
WT1 = Fast line (short-term momentum)
WT2 = Trend filter (slower)
Derived from (H+L+C)/3 with EMA and SMA smoothing
Color Logic:
🔼 WT1 crosses above WT2 → Cyan (Bullish Momentum)
🔽 WT1 crosses below WT2 → White (Bearish Momentum)
Zero Line Behavior:
Above 0 = strong uptrend confirmation
Below 0 = strong downtrend confirmation
✅ 2. Money Flow Line (MF Line)
Measures volume pressure based on price vs. long-period EMA
Displayed as an area plot underneath
Color Logic:
🔵 Light Cyan = Buying pressure emerging
⚪ Light White = Selling pressure emerging
Color dynamically changes based on volume shifts
Signal Strategy:
WT1 crossover + Cyan MF = Buy Confirmation
WT1 crossover + White MF = Sell Confirmation
Mismatched signals = caution advised
🧩 Designed to Pair with BskLAB – Signal Assistant
BskLAB – Money Flow X works best when used alongside 👉 BskLAB – Signals Assistant
Both tools are designed to complement each other:
Signals Assistant provides structural and momentum-based trade entries
Money Flow X confirms whether real buy/sell volume supports those entries
✅ How to Use Together:
Wait for a Buy/Sell signal from Signal Assistant
Confirm with:
WT crossover + MF color (Money Flow mode)
Histogram color shift (Volume Momentum mode)
✅ Money Flow X acts as the official volume confirmation layer within the BskLAB system to reduce false signals and improve decision-making confidence.
⚙️ Customization Options
Volume Length (for Volume Momentum)
WT Smoothing (for Money Flow)
Toggle Classic / Hidden Divergences
🔶 CONCLUSION
BskLAB – Money Flow X isn’t just another indicator — it’s a decision-making support system designed to uncover the truth behind price movements.
It helps traders gain clarity during uncertainty, separate strong signals from noise, and develop a systematic approach to entries.
By combining oscillator-based momentum + volume behavior + divergences, this tool becomes essential for traders who prioritize execution accuracy in real-world conditions.
🔶 RISK DISCLAIMER
Trading involves high risk and is not suitable for everyone. All tools, scripts, and content provided by BskLAB are for educational purposes only and do not constitute financial advice.
Past results do not guarantee future performance — trade responsibly.
BskLAB - Signals Assistant 🧠 BSKLab Signal Assistant – Full Description & Usage Guide
BSKLab Signal Assistant is a multi-strategy signal framework developed for traders seeking precise, filtered entries across different market conditions. Rather than being a simple combination of classic indicators, this script integrates custom-built tools and dynamic overlays that work synergistically to improve signal quality and reduce false entries.
It offers two distinct modes — Swing and Following — each designed with its own core logic, ensuring flexibility for traders whether they focus on reversals or trend-following strategies.
🌀 Mode 1: Swing (Reversal-Based Entries)
Objective: Detect price exhaustion and reversal zones.
This mode uses a custom TMA-based dynamic zone system (“Zone Style”) to define potential reversal areas. When price breaks below/above this zone and the Bollinger Band boundary, it suggests overextension. A confirmation from SuperTrend ensures that the price is not just bouncing but showing true directional momentum.
📌 Why this combination?
Each component plays a role:
Zone Style = defines reversal structure dynamically based on recent volatility.
Bollinger Bands = detects price extremes (OB/OS).
SuperTrend = filters noise with momentum confirmation.
🟢 Buy Logic:
Price closes below Zone Style and lower Bollinger Band
Then rebounds upward
SuperTrend shifts to bullish
🔴 Sell Logic:
Price closes above Zone Style and upper Bollinger Band
Then reverses down
SuperTrend shifts to bearish
✅ This helps traders avoid false breakouts or fake reversals in ranging markets.
Enhancing Swing Trade Accuracy with BSKLab - MoneyFlow X (Volume Momentum)
In Swing Trading Mode, we aim to catch price reversals after the market moves beyond extreme zones (TMA-based support/resistance). To avoid premature entries or false reversals, it’s highly recommended to confirm signals using BSKLab - MoneyFlow X in Volume Momentum mode.
📈 Mode 2: Following (Trend-Following System)
Objective: Trade only in the direction of the dominant market trend.
This mode replaces the reversal logic with a trend-filtering mechanism using BskLAB Cloud, a custom-modified version of Ichimoku Cloud. It scores trend strength using ATR-multiplied zones and offers 3 levels of confirmation strictness (Lv1–Lv3).
📌 Why this combination?
BskLAB Cloud provides a structured, flexible trend confirmation.
Bollinger Bands help detect entries during trend pullbacks or breakouts.
SuperTrend (optional) supports directional momentum validation.
🟢 Buy Logic:
Cloud confirms bullish trend (based on level)
Price breaks above Bollinger Band midline or upper zone
Entry is allowed only in the direction of the trend
🔴 Sell Logic:
Cloud confirms bearish trend
Price breaks below midline or lower Bollinger Band zone
✅ Perfect for momentum traders who want to stay in the direction of trend and avoid early reversals.
Advanced Confirmation with Volume Momentum (BSKLab - MoneyFlow X)
Improving Trend Signal Accuracy with BSKLab - MoneyFlow X
To increase confidence in each entry, we recommend using this trend-following mode together with the
BSKLab - MoneyFlow X indicator, set to Volume Momentum mode.
✅ How to use together:
Wait for a valid Buy/Sell signal from the Trend-Following Mode
Check volume reaction on MoneyFlow X:
🟢 Strong green spike = bullish momentum = confirms Buy
🔴 Strong red spike = bearish momentum = confirms Sell
🧩 Component Breakdown & Why They Work Together
📍 Zone Style (TMA + ATR Overlay)
A custom dynamic support/resistance zone using Triangular Moving Average with ATR-based width adjustment. It expands or contracts based on market volatility — making reversal zones adaptive to current conditions.
Prevents entries when price is in the middle of a range
Acts as a volatility filter, removing "weak" signals
☁️ BskLAB Cloud (Custom Ichimoku)
A custom trend engine adapted from Ichimoku Cloud. Uses ATR-weighted midlines to define trend strength with 3 adjustable strictness levels.
Used only in Following Mode
Avoids trendless/noise zones
Helps traders stay aligned with the macro trend
📊 Bollinger Band Behavior
Used in all modes, but especially in Swing and following, to detect overbought/oversold zones.
Provides clear statistical boundaries
Combines well with SuperTrend to detect exhaustion
✅ SuperTrend Confirmation
A momentum-based filter using ATR-based trailing stop logic.
Filters fake reversals
Confirms breakout direction
Used across all modes for high-accuracy entries
🔥 BSKLab Signal Assistant isn’t just another mashup of public indicators — it’s a purpose-built trading framework crafted for real market conditions.
Instead of throwing signals on every move, it combines structure, momentum, volatility, and trend filters to deliver clean, high-conviction entries.
📍 RISK DISCLAIMER
Trading involves significant risk and is not suitable for everyone. All tools, scripts, and educational materials provided by BSKLab are for informational and educational purposes only. We do not offer financial advice.
Past performance does not guarantee future results. Always trade responsibly
📍 CONCLUSION
At BSKLab, we believe that consistent trading success doesn't come from indicators alone — it comes from the trader’s ability to apply them with context, discipline, and understanding. Tools are only as powerful as the hands they’re in.
The goal of the BSKLab Signal Assistant is not to provide magic signals, but to empower traders with a clean, adaptive, and intelligent framework that helps identify high-probability opportunities while filtering out the noise.
Whether you’re a beginner or experienced trader, this tool is designed to support real decisions in real markets — not just theory.
You can request access below to join the BSKLab system and unlock our full trading suite.
Staccked SMA - Regime Switching & Persistance StatisticsThis indicator is designed to identify the prevailing market regime by analyzing the behavior of a "stack" of Simple Moving Averages (SMAs). It helps you understand whether the market is currently trending, mean-reverting, or moving randomly.
Core Concept: SMA Correlation
At its heart, the indicator examines the relationship between a set of nine SMAs with different lengths (3, 5, 8, 13, 21, 34, 55, 89, 144) and the lengths themselves.
In a strong trending market (either up or down), the SMAs will be neatly "stacked" in order of their length. The shortest SMA will be furthest from the longest SMA, creating a strong, almost linear visual pattern. When we measure the statistical correlation between the SMA values and their corresponding lengths, we get a value close to +1 (perfect uptrend stack) or -1 (perfect downtrend stack). The absolute value of this correlation will be very high (close to 1).
In a mean-reverting or sideways market, the SMAs will be tangled and crisscrossing each other. There is no clear order, and the relationship between an SMA's length and its price value is weak. The correlation will be close to 0.
This indicator calculates this Pearson correlation on every bar, giving a continuous measure of how ordered or "trendy" the SMAs are. An absolute correlation above 0.8 is considered strongly trending, while a value between 0.4 and 0.8 suggests a mean-reverting character. Below 0.4, the market is likely random or choppy.
Regime Classification and Statistics
The indicator doesn't just look at the current correlation; it analyzes its behavior over a user-defined lookback window (default is 252 bars) to classify the overall market "regime."
It presents its findings in a clear table:
📊 |SMA Correlation| Regime Table: This main table provides a snapshot of the current market character.
Median: Shows the median absolute correlation over the lookback period, giving a central tendency of the market's behavior.
% > 0.80: The percentage of time the market was in a strong trend during the lookback period.
% < 0.80 & > 0.40: The percentage of time the market showed mean-reverting characteristics.
🧠 Regime: The final classification. It's labeled "📈 Trend-Dominant" if the median correlation is high and it has spent a significant portion of the time trending. It's labeled "🔄 Mean-Reverting" if the median is in the middle range and it has spent significant time in that state. Otherwise, it's considered "⚖️ Random/ Choppy".
📐 Regime Significance: This tells you how statistically confident you can be in the current regime classification, using a Z-score to compare its occurrence against random chance. ⭐⭐⭐ indicates high confidence (99%), while "❌ Not Significant" means the pattern could be random.
Regime Transition Probabilities
Optionally, a second table can be displayed that shows the historical probability of the market transitioning from one regime to another over different time horizons (t+5, t+10, t+15, and t+20 bars).
📈 → 🔄 → ⚖️ Transition Table: This table answers questions like, "If the market is trending now (From: 📈), what is the probability it will be mean-reverting (→ 🔄) in 10 bars?"
This provides powerful insights into the market's cyclical nature, helping you anticipate future behavior based on past patterns. For example, you might find that after a period of strong trending, a transition to a choppy state is more likely than a direct switch to a mean-reverting
Indicator Settings
Lookback Window for Regime Classification: This sets the number of recent bars (default is 252) the script analyzes to determine the current market regime (Trending, Mean-Reverting, or Random). A larger number provides a more stable, long-term view, while a smaller number makes the classification more sensitive to recent price action.
Show Regime Transition Table: A simple toggle (on/off) to show or hide the table that displays the probabilities of the market switching from one regime to another.
Lookback Offset for Starting Regime: This determines the "starting point" in the past for calculating regime transitions. The default is 20 bars ago. The script looks at the regime at this point and then checks what it became at later points.
Step 1, 2, 3, 4 Offset (bars): These define the future time intervals (5, 10, 15, and 20 bars by default) for the transition probability table. For example, the script checks the regime at the "Lookback Offset" and then sees what it transitioned to 5, 10, 15, and 20 bars later.
Significance Filter Settings
Use Regime Significance Filter: When enabled, this filter ensures that the regime transition statistics only count transitions that were "statistically significant." This helps to filter out noise and focus on more reliable patterns.
Min Stars Required (1=90%, 2=95%, 3=99%): This sets the minimum confidence level required for a regime to be included in the transition statistics when the significance filter is on.
1 ⭐: Requires at least 90% confidence.
2 ⭐⭐: Requires at least 95% confidence (default).
3 ⭐⭐⭐: Requires at least 99% confidence.
EMA-Pack MTFEMA-Pack MTF
This TradingView Pine Script defines a custom indicator called "EMA-Pack MTF" that overlays various types of moving averages and Bollinger Bands across multiple timeframes on a chart. It begins by importing the built-in technical analysis library and defining a custom ma function that calculates several types of moving averages (SMA, EMA, TEMA, DEMA, HMA, and ALMA) based on user input. The ema function is the core logic, retrieving market data for the specified timeframe and calculating fast, mid, slow, 50, 100, and 200-period moving averages along with Bollinger Band components (basis, upper, and lower bands). The function adjusts values to the nearest valid price tick and returns them.
User input fields allow customization of timeframes, source data, moving average types, and Bollinger Band parameters. The script calls the ema function for each selected timeframe (1 minute, 5 minutes, 15 minutes, 1 hour, 4 hours, and 1 day), storing their respective computed values. It then plots the calculated moving averages and Bollinger Band basis lines on the chart, using different colors and line widths to distinguish between them. Some plots are hidden by default (display.none) to reduce chart clutter. This script is useful for multi-timeframe trend analysis using customizable moving averages and Bollinger Bands.
Jags Dynamic S/R with Breakout & Weakness SignalsThis script is designed to automatically identify and display significant support and resistance levels on your chart. It then goes a step further by actively monitoring for potential breakouts and signs of support weakness.
Core Functionality: Identifying Key Levels
At its heart, the script uses a pivot logic to find recent price highs and lows, which it then plots as horizontal lines representing potential resistance and support, respectively. You have full control over how these levels are identified:
Timeframe: You can choose to find these pivot points on the current chart's timeframe or a higher one (e.g., daily pivots on an hourly chart).
Lookback Period: You can define how many bars to the left and right of a pivot point the script should consider, allowing you to fine-tune the significance of the levels it identifies.
Line Management: To keep your chart clean, you can set the maximum number of support and resistance lines to display. The script also has a clever "merge" feature that combines new pivot levels with existing ones if they are very close together, preventing clutter.
Breakout Detection
A key feature of this indicator is its ability to signal when the price breaks through one of these identified support or resistance levels. You can enable or disable this feature and choose from several confirmation methods to suit your trading style:
Simple Price Action: A breakout is confirmed simply by the price closing above a resistance level or below a support level.
ATR (Average True Range): For a breakout to be valid, the price must close a certain distance (based on the ATR) beyond the level, filtering out minor fluctuations.
Volume: This option adds another layer of confirmation by requiring a significant increase in trading volume during the breakout, suggesting strong conviction behind the move.
Momentum: This method uses the RSI (Relative Strength Index) to confirm that the breakout is supported by strong underlying momentum.
Quantitative: A more advanced option that uses a combination of the Rate of Change (ROC) and a Volume-Weighted Moving Average (VWMA) to provide a robust, multi-faceted confirmation of the breakout.
When a confirmed breakout occurs, the script will:
Color the breakout bar green for a bullish breakout (upward) or red for a bearish breakout (downward).
Place an arrow below a bullish breakout or above a bearish breakout.
Trigger an alert to notify you of the event.
Support Weakness Detection
To provide an early warning of a potential breakdown, the script includes a unique "Support Weakness Detection" feature. When enabled, it looks for a specific confluence of bearish signals as the price approaches a support level:
The price is hovering just above a key support level.
The short-term trend has already turned bearish (based on a moving average).
Momentum is fading (indicated by a falling RSI).
If all these conditions are met, a blue down-arrow will appear above the price bar, signalling that the nearby support may not hold.
Alpha - Combined BreakoutThis Pine Script indicator, "Alpha - Combined Breakout," is a combination between Smart Money Breakout Signals and UT Bot Alert, The UT Bot Alert indicator was initially developer by Yo_adriiiiaan
The idea of original code belongs HPotter.
This Indicator helps you identify potential trading opportunities by combining two distinct strategies: Smart Money Breakout and a modified UT Bot (likely a variation of the Ultimate Trend Bot). It provides visual signals, draws lines for potential take profit (TP) and stop loss (SL) levels, and includes a dashboard to track performance metrics.
Tutorial:
Understanding and Using the "Alpha - Combined Breakout" Indicator
This indicator is designed for traders looking for confirmation of market direction and potential entry/exit points by blending structural analysis with a trend-following oscillator.
How it Works (General Concept)
The indicator combines two main components:
Smart Money Breakout: This part identifies significant breaks in market structure, which "smart money" traders often use to gauge shifts in supply and demand. It looks for higher highs/lows or lower highs/lows and flags when these structural points are broken.
UT Bot: This is a trend-following component that generates buy and sell signals based on price action relative to an Average True Range (ATR) based trailing stop.
You can choose to use these signals independently or combined to generate trading alerts and visual cues on your chart. The dashboard provides a quick overview of how well the signals are performing based on your chosen settings and display mode.
Parameters and What They Do
Let's break down each input parameter:
1. Smart Money Inputs
These settings control how the indicator identifies market structure and breakouts.
swingSize (Market Structure Time-Horizon):
What it does: This integer value defines the number of candles used to identify significant "swing" (pivot) points—highs and lows.
Effect: A larger swingSize creates a smoother market structure, focusing on longer-term trends. This means signals might appear less frequently and with some delay but could be more reliable for higher timeframes or broader market movements. A smaller swingSize will pick up more minor market structure changes, leading to more frequent but potentially noisier signals, suitable for lower timeframes or scalping.
Analogy: Think of it like a zoom level on your market structure map. Higher values zoom out, showing only major mountain ranges. Lower values zoom in, showing every hill and bump.
bosConfType (BOS Confirmation Type):
What it does: This string input determines how a Break of Structure (BOS) is confirmed. You have two options:
'Candle Close': A breakout is confirmed only if a candle's closing price surpasses the previous swing high (for bullish) or swing low (for bearish).
'Wicks': A breakout is confirmed if any part of the candle (including its wick) surpasses the previous swing high or low.
Effect: 'Candle Close' provides stronger, more conservative confirmation, as it implies sustained price movement beyond the structure. 'Wicks' provides earlier, more aggressive signals, as it captures momentary breaches of the structure.
Analogy: Imagine a wall. 'Candle Close' means the whole person must get over the wall. 'Wicks' means even a finger touching over the top counts as a breach.
choch (Show CHoCH):
What it does: A boolean (true/false) input to enable or disable the display of "Change of Character" (CHoCH) labels. CHoCH indicates the first structural break against the current dominant trend.
Effect: When true, it helps identify early signs of a potential trend reversal, as it marks where the market's "character" (its tendency to make higher highs/lows or lower lows/highs) first changes.
BULL (Bullish Color) & BEAR (Bearish Color):
What they do: These color inputs allow you to customize the visual appearance of bullish and bearish signals and lines drawn by the Smart Money component.
Effect: Purely cosmetic, helps with visual identification on the chart.
sm_tp_sl_multiplier (SM TP/SL Multiplier (ATR)):
What it does: A float value that acts as a multiplier for the Average True Range (ATR) to calculate the Take Profit (TP) and Stop Loss (SL) levels specifically when you're in "Smart Money Only" mode. It uses the ATR calculated by the UT Bot's nLoss_ut as its base.
Effect: A higher multiplier creates wider TP/SL levels, potentially leading to fewer trades but larger wins/losses. A lower multiplier creates tighter TP/SL levels, potentially leading to more frequent but smaller wins/losses.
2. UT Bot Alerts Inputs
These parameters control the behavior and sensitivity of the UT Bot component.
a_ut (UT Key Value (Sensitivity)):
What it does: This integer value adjusts the sensitivity of the UT Bot.
Effect: A higher value makes the UT Bot less sensitive to price fluctuations, resulting in fewer and potentially more reliable signals. A lower value makes it more sensitive, generating more signals, which can include more false signals.
Analogy: Like a noise filter. Higher values filter out more noise, keeping only strong signals.
c_ut (UT ATR Period):
What it does: This integer sets the look-back period for the Average True Range (ATR) calculation used by the UT Bot. ATR measures market volatility.
Effect: This period directly influences the calculation of the nLoss_ut (which is a_ut * xATR_ut), thus defining the distance of the trailing stop loss and take profit levels. A longer period makes the ATR smoother and less reactive to sudden price spikes. A shorter period makes it more responsive.
h_ut (UT Signals from Heikin Ashi Candles):
What it does: A boolean (true/false) input to determine if the UT Bot calculations should use standard candlestick data or Heikin Ashi candlestick data.
Effect: Heikin Ashi candles smooth out price action, often making trends clearer and reducing noise. Using them for UT Bot signals can lead to smoother, potentially delayed signals that stay with a trend longer. Standard candles are more reactive to raw price changes.
3. Line Drawing Control Buttons
These crucial boolean inputs determine which type of signals will trigger the drawing of TP/SL/Entry lines and flags on your chart. They act as a priority system.
drawLinesUtOnly (Draw Lines: UT Only):
What it does: If checked (true), lines and flags will only be drawn when the UT Bot generates a buy/sell signal.
Effect: Isolates UT Bot signals for visual analysis.
drawLinesSmartMoneyOnly (Draw Lines: Smart Money Only):
What it does: If checked (true), lines and flags will only be drawn when the Smart Money Breakout logic generates a bullish/bearish breakout.
Effect: Overrides drawLinesUtOnly if both are checked. Isolates Smart Money signals.
drawLinesCombined (Draw Lines: UT & Smart Money (Combined)):
What it does: If checked (true), lines and flags will only be drawn when both a UT Bot signal AND a Smart Money Breakout signal occur on the same bar.
Effect: Overrides both drawLinesUtOnly and drawLinesSmartMoneyOnly if checked. Provides the strictest entry criteria for line drawing, looking for strong confluence.
Dashboard Metrics Explained
The dashboard provides performance statistics based on the lines drawing control button selected. For example, if "Draw Lines: UT Only" is active, the dashboard will show stats only for UT Bot signals.
Total Signals: The total number of buy or sell signals generated by the selected drawing mode.
TP1 Win Rate: The percentage of signals where the price reached Take Profit 1 (TP1) before hitting the Stop Loss.
TP2 Win Rate: The percentage of signals where the price reached Take Profit 2 (TP2) before hitting the Stop Loss.
TP3 Win Rate: The percentage of signals where the price reached Take Profit 3 (TP3) before hitting the Stop Loss. (Note: TP1, TP2, TP3 are in order of distance from entry, with TP3 being furthest.)
SL before any TP rate: This crucial metric shows the number of times the Stop Loss was hit / the percentage of total signals where the stop loss was triggered before any of the three Take Profit levels were reached. This gives you a clear picture of how often a trade resulted in a loss without ever moving into profit target territory.
Short Tutorial: How to Use the Indicator
Add to Chart: Open your TradingView chart, go to "Indicators," search for "Alpha - Combined Breakout," and add it to your chart.
Access Settings: Once added, click the gear icon next to the indicator name on your chart to open its settings.
Choose Your Signal Mode:
For UT Bot only: Uncheck "Draw Lines: Smart Money Only" and "Draw Lines: UT & Smart Money (Combined)". Ensure "Draw Lines: UT Only" is checked.
For Smart Money only: Uncheck "Draw Lines: UT Only" and "Draw Lines: UT & Smart Money (Combined)". Ensure "Draw Lines: Smart Money Only" is checked.
For Combined Signals: Check "Draw Lines: UT & Smart Money (Combined)". This will override the other two.
Adjust Parameters:
Start with default settings. Observe how the signals appear on your chosen asset and timeframe.
Refine Smart Money: If you see too many "noisy" market structure breaks, increase swingSize. If you want earlier breakouts, try "Wicks" for bosConfType.
Refine UT Bot: Adjust a_ut (Sensitivity) to get more or fewer UT Bot signals. Change c_ut (ATR Period) if you want larger or smaller TP/SL distances. Experiment with h_ut to see if Heikin Ashi smoothing suits your trading style.
Adjust TP/SL Multiplier: If using "Smart Money Only" mode, fine-tune sm_tp_sl_multiplier to set appropriate risk/reward levels.
Interpret Signals & Lines:
Buy/Sell Flags: These indicate the presence of a signal based on your selected drawing mode.
Entry Line (Blue Solid): This is where the signal was generated (usually the close price of the signal candle).
SL Line (Red/Green Solid): Your calculated stop loss level.
TP Lines (Dashed): Your three calculated take profit levels (TP1, TP2, TP3, where TP3 is the furthest target).
Smart Money Lines (BOS/CHoCH): These lines indicate horizontal levels where market structure breaks occurred. CHoCH labels might appear at the first structural break against the prior trend.
Monitor Dashboard: Pay attention to the dashboard in the top right corner. This dynamically updates to show the win rates for each TP and, crucially, the "SL before any TP rate." Use these statistics to evaluate the effectiveness of the indicator's signals under your current settings and chosen mode.
*
Set Alerts (Optional): You can set up alerts for any of the specific signals (UT Bot Long/Short, Smart Money Bullish/Bearish, or the "Line Draw" combined signals) to notify you when they occur, even if you're not actively watching the chart.
By following this tutorial, you'll be able to effectively use and customize the "Alpha - Combined Breakout" indicator to suit your trading strategy.
Golden Pocket Syndicate [GPS]Golden Pocket Syndicate is a multi-layered market analysis toolkit built for precision entries and sniper-style reversals in both trending and ranging conditions. The script fuses volume dynamics, golden pocket structures, market maker behavior, and liquidation cluster tracking into one high-confluence system.
Core Features:
• 📐 Golden Pocket Zones: Dynamic GP levels from daily, weekly, monthly, and yearly timeframes. These levels update in real-time and serve as confluence zones for entries and exits.
• 📊 WaveTrend Divergence Diamonds: Momentum shifts are detected using a custom filtered WaveTrend cross system to mark high-probability reversal conditions.
• 🧠 Market Maker Premium Divergence: Tracks price dislocation between CME and Binance to detect large player manipulation using a configurable premium threshold.
• 💎 MM Reversal Diamonds: Identifies potential market maker traps and large player pivots using historical candle behavior, EMA alignment, and price structure breaks.
• 📉 Stealth Liquidation Cluster Arrows: Volume-based liquidation pressure visualized as lightweight directional arrows based on calculated wick expansion and volume bursts. Highlights key zones where price is likely to bounce or reject.
• 🧭 Trend Validation: Uses volume-based trend conditions and short-term EMA positioning to further qualify signals and eliminate noise.
How to Use:
This indicator is designed to help traders visualize confluence between key institutional price levels, momentum shifts, and volume-based pressure points. Long/short opportunities can be explored at marked reversal diamonds or liquidation zones that align with key GP levels. Intended for use on higher timeframes (15m to 4H), though flexible across any pair or market.
HL/OL Histogram + (Close-Open)🧠 Core Concept
This indicator is designed to detect meaningful directional intent in price action using a combination of:
Intrabar candle structure (high - open, open - low)
Net price momentum (close - open)
Timed trigger levels (frozen buy/sell prices based on selected timeframe closes)
The core idea is to visually separate bullish and bearish energy in the current bar, and to mark the price at which momentum flips from down to up or vice versa, based on a change in the close - open differential.
🔍 Components Breakdown
1. Histogram Bars
Green Bars (high - open): Represent bullish upper wicks, showing intrabar strength above the open.
Red Bars (open - low): Represent bearish lower wicks, showing pressure below the open.
Plotted as histograms above and below the zero line.
2. Close–Open Line (White)
Plots the difference between close and open for each bar.
Helps you visually track when momentum flips from negative to positive, or vice versa.
A bold black zero line provides clear reference for these flips.
3. Buy/Sell Signal Logic
A Buy Trigger is generated when close - open crosses above zero
A Sell Trigger occurs when close - open crosses below zero
These trigger events are one-shot, meaning they’re only registered once per signal direction. No retriggers occur until the opposite condition is met.
📈 Trigger Price Table (Static)
On a signal trigger, the close price from a lower timeframe (15S, 30S, 1, 2, 3, or 5 min) is captured.
This price is frozen and displayed in a table at the top-right of the pane.
The price remains fixed until the opposite trigger condition fires, at which point it is replaced.
Why close price?
Using the close from the lower timeframe gives a precise, decisive reference point — ideal for planning limit entries or confirming breakout commitment.
🛠️ Use Cases
Momentum traders can use the histogram and line to time entries after strong open rejection or close breakouts.
Scalpers can quickly gauge intrabar sentiment reversals and react to new momentum without waiting for candle closes.
Algo builders can use the frozen price logic as precise entry or confirmation points in automated strategies.
Fibonacci Retracement Engine (DFRE) [PhenLabs]📊 Fibonacci Retracement Engine (DFRE)
Version: PineScript™ v6
📌 Description
Dynamic Fibonacci Retracement Engine (DFRE) is a sophisticated technical analysis tool that automatically detects important swing points and draws precise Fibonacci retracement levels on various timeframes. The intelligent indicator eliminates the subjectivity of manual Fibonacci drawing using intelligent swing detection algorithms combined with multi timeframe confluence analysis.
Built for professional traders who demand accuracy and consistency, DFRE provides real time Fibonacci levels that adapt to modifications in market structure without sacrificing accuracy in changing market conditions. The indicator excels at identifying key support and resistance levels where price action is more likely to react, giving traders a potent edge in entry and exit timing.
🚀 Points of Innovation
Intelligent Swing Detection Algorithm : Advanced pivot detection with customizable confirmation bars and minimum swing percentage thresholds
Multi-Timeframe Confluence Engine : Simultaneous analysis across three timeframes to identify high-probability zones
Dynamic Level Management : Automatically updates and manages multiple Fibonacci sets while maintaining chart clarity
Adaptive Visualization System : Smart labeling that shows only the most relevant levels based on user preferences
Real-Time Confluence Detection : Identifies zones where multiple Fibonacci levels from different timeframes converge
Automated Alert System : Comprehensive notifications for level breakouts and confluence zone formations
🔧 Core Components
Swing Point Detection Engine : Uses pivot high/low calculations with strength confirmation to identify significant market turns
Fibonacci Calculator : Automatically computes standard retracement levels (0.236, 0.382, 0.5, 0.618, 0.786, 0.886) plus extensions (1.272, 1.618)
Multi-Timeframe Security Function : Safely retrieves Fibonacci data from higher timeframes without repainting
Confluence Analysis Module : Mathematically identifies zones where multiple levels cluster within specified thresholds
Dynamic Drawing Management : Efficiently handles line and label creation, updates, and deletion to maintain performance
🔥 Key Features
Customizable Swing Detection : Adjust swing length (3-50 bars) and strength confirmation (1-10 bars) to match your trading style
Selective Level Display : Choose which Fibonacci levels to show, from core levels to full extensions
Multi-Timeframe Analysis : Analyze up to 3 different timeframes simultaneously for confluence identification
Intelligent Labeling System : Options to show main levels only or all levels, with latest-set-only functionality
Visual Customization : Adjustable line width, colors, and extension options for optimal chart clarity
Performance Optimization : Limit maximum Fibonacci sets (1-5) to maintain smooth chart performance
Comprehensive Alerting : Get notified on level breakouts and confluence zone formations
🎨 Visualization
Dynamic Fibonacci Lines : Color-coded lines (green for uptrends, red for downtrends) with customizable width and extension
Smart Level Labels : Precise level identification with both ratio and price values displayed
Confluence Zone Highlighting : Visual emphasis on areas where multiple timeframe levels converge
Clean Chart Management : Automatic cleanup of old drawing objects to prevent chart clutter
Responsive Design : All visual elements adapt to different chart sizes and timeframes
📖 Usage Guidelines
Swing Detection Settings
Swing Detection Length - Default: 25 | Range: 3-50 | Controls the lookback period for identifying pivot points. Lower values detect more frequent swings but may include noise, while higher values focus on major market turns.
Swing Strength (Confirmation Bars) - Default: 2 | Range: 1-10 | Number of bars required to confirm a swing point. Higher values reduce false signals but increase lag.
Minimum Swing % Change - Default: 1.0% | Range: 0.1-10.0% | Minimum percentage change required to register a valid swing. Filters out insignificant price movements.
Fibonacci Level Settings
Individual Level Toggles : Enable/disable specific Fibonacci levels (0.236, 0.382, 0.5, 0.618, 0.786, 0.886)
Extensions : Show projection levels (1.272, 1.618) for target identification
Multi-Timeframe Settings
Timeframe Selection : Choose three higher timeframes for confluence analysis
Confluence Threshold : Percentage tolerance for level clustering (0.5-5.0%)
✅ Best Use Cases
Swing Trading : Identify optimal entry and exit points at key retracement levels
Confluence Trading : Focus on high-probability zones where multiple timeframe levels align
Support/Resistance Trading : Use dynamic levels that adapt to changing market structure
Breakout Trading : Monitor level breaks for momentum continuation signals
Target Setting : Utilize extension levels for profit target placement
⚠️ Limitations
Lagging Nature : Requires confirmed swing points, which means levels appear after significant moves
Market Condition Dependency : Works best in trending markets; less effective in extremely choppy conditions
Multiple Signal Complexity : Multiple timeframe analysis may produce conflicting signals requiring experience to interpret
Performance Considerations : Multiple Fibonacci sets and MTF analysis may impact indicator loading time on slower devices
💡 What Makes This Unique
Automated Precision : Eliminates manual drawing errors and subjective level placement
Multi-Timeframe Intelligence : Combines analysis from multiple timeframes for superior confluence detection
Adaptive Management : Automatically updates and manages multiple Fibonacci sets as market structure evolves
Professional-Grade Alerts : Comprehensive notification system for all significant level interactions
🔬 How It Works
Step 1 - Swing Point Identification : Scans price action using pivot high/low calculations with specified lookback periods, applies confirmation logic to eliminate false signals, and calculates swing strength based on surrounding price action for quality assessment.
Step 2 - Fibonacci Level Calculation : Automatically computes retracement and extension levels between confirmed swing points, creates dynamic level sets that update as new swing points are identified, and maintains multiple active Fibonacci sets for comprehensive market analysis.
Step 3 - Multi-Timeframe Confluence : Retrieves Fibonacci data from higher timeframes using secure request functions, analyzes level clustering across different timeframes within specified thresholds, and identifies high-probability zones where multiple levels converge.
💡 Note: This indicator works best when combined with other technical analysis tools and proper risk management. The multi-timeframe confluence feature provides the highest probability setups, but always confirm signals with additional analysis before entering trades.
Range Breakout [sgbpulse]Range Breakout
1. Overview
The "Range Breakout " indicator is a powerful tool designed to identify and visually display price ranges on your chart using pivot points. It dynamically draws two distinct boxes – an External Range and an Internal Range – helping traders pinpoint potential support and resistance zones. Beyond its visual representation, the indicator offers a comprehensive set of 12 unique breakout alerts, providing real-time notifications for significant price movements outside these defined ranges. Additionally, it integrates RSI and MFI metrics for momentum confirmation.
2. How It Works
The indicator operates by identifying pivot points based on user-defined "left" and "right" bar lengths. A high pivot is a bar with a specified number of lower highs both to its left and right, and similarly for a low pivot.
External Range: Calculated using longer pivot lengths (default: 15 bars left, 6 bars right). This range represents broader, more significant price consolidation areas.
Internal Range: Calculated using shorter pivot lengths (default: 4 bars left, 3 bars right). This range captures tighter, more immediate price consolidations within the broader trend.
The External Range will always be greater than or equal to the Internal Range, as it's based on a wider historical context. Both ranges are displayed as transparent boxes on your chart, dynamically adjusting as new pivots are formed.
3. Key Features and Settings
Customizable Pivot Lengths:
External Range (Left/Right Bars): Adjust sensitivity for identifying the broader price range. Longer lengths lead to more stable, but less frequent, range updates.
Internal Range (Left/Right Bars): Adjust sensitivity for the tighter, more immediate price range.
Tool Tips: Minimum 6 bars for the External Range, and minimum 2 bars for the Internal Range.
Customizable Range Colors: Easily change the background colors of the External and Internal Range boxes to match your chart's aesthetic.
Dynamic Range Display: The indicator automatically updates the range boxes as new pivot highs and lows are formed, always presenting the most current valid ranges.
RSI / MFI Settings:
Timeframe Source: Select the timeframe for RSI and MFI calculation.
- Chart: Calculation based on the current chart timeframe.
- Daily: Always calculated based on the daily ("D") timeframe, even if the chart is on a lower timeframe.
RSI Length: Period length for RSI calculation (default: 14).
RSI Overbought Level: Overbought level for RSI (default: 70.0).
RSI Oversold Level: Oversold level for RSI (default: 30.0).
MFI Length: Period length for MFI calculation (default: 14).
MFI Overbought Level: Overbought level for MFI (default: 80.0).
MFI Oversold Level: Oversold level for MFI (default: 20.0).
4. Synergy of Ranges & Breakout Strength
The interaction between the External and Internal Ranges provides deep insights into price movement and breakout strength:
Immediate Direction: The movement of the Internal Range (up or down) indicates the short-term directional bias within the broader framework of the External Range.
Strength Confirmation: A breakout of the External Range, followed by a breakout of the Internal Range, confirms the strength of the move and increases confidence in the breakout.
Strong Momentum ("Leaving" Ranges Behind): When price breaks out with exceptionally strong momentum, it continues to move aggressively and does not immediately form new pivots. In such situations, the existing ranges (External and Internal) remain in place while the candles "leave them behind." A "Full Candle" breakout, where the entire candle moves past both ranges, indicates a particularly powerful and decisive move.
Momentum (RSI / MFI) as Confirmation:
- RSI (Relative Strength Index): Measures the speed and change of price movements. Extreme values (above 70 or below 30) indicate overbought/oversold conditions respectively, confirming strong momentum in a breakout.
- MFI (Money Flow Index): Similar to RSI but incorporates volume. Extreme values (above 80 or below 20) indicate strong money flow in/out, reinforcing breakout confirmation.
- Importance of Confirmation: If a breakout occurs but momentum indicators do not confirm it (for example, an upside breakout while RSI is declining), this could signal weakness in the move and the risk of a false breakout (Fakeout).
5. Visuals
The indicator provides clear visual representations on the chart:
Range Boxes:
Two dynamic boxes are drawn on the chart: one for the External Range and one for the Internal Range.
These boxes update continuously, displaying the current range boundaries based on the latest pivots. They provide an immediate visual indication of support and resistance levels.
RSI/MFI Status Labels:
Small text labels appear to the right of the current bar, vertically centered.
They display the status of RSI and MFI: RSI OB (Overbought), RSI OS (Oversold), MFI OB, MFI OS, along with the exact value.
Important: The labels remain on the chart as long as the condition holds (indicator is above/below the level), unlike alerts which mark a singular crossover event.
Plotting of Key Values:
The indicator plots six invisible series on the chart, primarily to allow the user to view the exact numerical values of:
- The upper and lower bounds of the External Range (External High, External Low).
- The upper and lower bounds of the Internal Range (Internal High, Internal Low).
- The calculated RSI and MFI values (RSI, MFI).
These values are accessible for viewing through TradingView's Data Window and also via the Status Line when hovering over the relevant candle. This enables more precise quantitative analysis of range levels and momentum.
6. Comprehensive Breakout Alerts
The "Range Breakout " indicator provides 12 distinct alert conditions for breakouts, allowing you to select the required level of confirmation for each alert. All alerts are triggered only upon a fully confirmed bar close (barstate.isconfirmed) to minimize false signals and ensure reliability.
All breakout alerts are configured to detect a Crossover/Crossunder of the levels, meaning a specific event where the price moves from one side of the range to the other.
External Range Breakout UP
- Close: Price closes above the External Range.
- Real Body: The entire "real body" of the candle (min of open/close prices) closes above the External Range.
- Full Candle: The entire candle (the lowest point of the candle) closes above the External Range.
External Range Breakout DOWN
- Close: Price closes below the External Range.
- Real Body: The entire "real body" of the candle (max of open/close prices) closes below the External Range.
- Full Candle: The entire candle (the highest point of the candle) closes below the External Range.
Internal Range Breakout UP
- Close: Price closes above the Internal Range.
- Real Body: The "real body" of the candle closes above the Internal Range.
- Full Candle: The entire candle closes above the Internal Range.
Internal Range Breakout DOWN
- Close: Price closes below the Internal Range.
- Real Body: The "real body" of the candle closes below the Internal Range.
- Full Candle: The entire candle closes below the Internal Range.
7. Ideal Use Cases
This indicator is ideal for traders who:
Want to clearly identify and monitor price consolidation zones.
Seek confirmation for breakout strategies across various timeframes.
Require reliable and automated alerts for potential entry or exit points based on range expansion.
8. Complementary Indicator
For even more comprehensive market analysis, we highly recommend using this indicator in conjunction with Market Structure Support & Resistance External/Internal & BoS .
This powerful complementary indicator automatically and accurately identifies significant support and resistance levels by locating high and low pivot points, as well as key Pre-Market High/Low levels. Its strength lies in its dynamic adaptability to any timeframe and asset, providing precise and relevant real-time levels while maintaining a clean chart. It also identifies Break of Structure (BoS) to signal potential trend changes or continuations.
Using both indicators together provides a robust framework for identifying defined ranges and potential trend shifts, enabling more informed trading decisions.
View Market Structure Support & Resistance External/Internal & BoS Indicator
9. Important Note: Trading Risk
This indicator is intended for educational and informational purposes only and does not constitute investment advice or a recommendation for trading in any form whatsoever.
Trading in financial markets involves significant risk of capital loss. It is important to remember that past performance is not indicative of future results. All trading decisions are your sole responsibility. Never trade with money you cannot afford to lose.
Conservative High Low Identifier by AgungIndicator to identify high and low on candlestick chart.
This indicator use concept of every movement of high and low, there is small movement of high and low too. This movement can be identified by variance of bullish and bearish candle.
How to use this indicator?
Set number of bar that wanna be analyzed by this indicator on setting then there will be high and low label on your chart for identify high and low
db/dt [keypoems]Double Top / Double Bottom Marker
This indicator identifies classic double bottom/double top reversal patterns using pivot point analysis and breakout confirmation methodology, it also marks pivot based market structure shifts or flips.
WHAT IT DOES
The indicator detects two primary types of trading patterns:
1. Double Bottom/Top Patterns: Recognizes classic reversal formations where price creates two similar highs or lows before breaking the neckline
2. Market Structure Shifts (Flips): Identifies when price breaks through significant pivot levels indicating a potential trend change
HOW IT WORKS
Double Pattern Detection:
For double bottoms, the system identifies the first pivot low, then tracks the highest point between potential lows to establish the neckline level. It searches for a second pivot low within the specified price tolerance percentage of the first low. The pattern confirms when price breaks above the neckline. Double tops use the same logic but inverted, tracking the lowest point for the neckline and confirming on downward breaks.
Pattern Invalidation:
Double patterns are automatically invalidated if price creates new extremes beyond both pivot points before neckline confirmation occurs.
Flip Detection:
The algorithm uses a three-step process for each direction. For bullish shifts, it first identifies a pivot high using the specified left/right bar length parameters. It then waits for a subsequent pivot low that occurs after the pivot high. Finally, it confirms the shift when price closes above the original pivot high level. The bearish detection works inversely, starting with a pivot low, followed by a pivot high, and confirmed when price closes below the original pivot low.
CONFIGURATION OPTIONS
General Settings:
- Pivot High/Low Length: Controls the number of bars required on each side of a pivot point for validation
- Start Bar Index: Sets how many bars from the beginning of data to start pattern detection
- Time Filter: Optional start time to limit detection to specific periods
Double Pattern Settings:
- Separate pivot length controls for each pattern type
- Price Tolerance: Maximum percentage difference allowed between the two pivot points to qualify as a double pattern (0.1% to 20%)
- Individual start bar settings for each pattern type
Visual Controls:
- Toggle display for bullish flips, bearish flips, double bottoms, and double tops
- Optional text labels for each pattern type
- Sweep/Mitigation classification labels that distinguish between patterns where the second pivot sweeps beyond the first versus those that hold within tolerance
VISUAL PRESENTATION
Market structure shifts display as triangular markers above or below price with connecting lines that extend from the original pivot point to the breakout confirmation bar. Double patterns appear as rectangular boxes that encompass both pivot points with pattern type labels. The boxes automatically size themselves based on the price range and bar spacing of the pattern.
Color coding uses green for bullish signals, red for bearish signals, blue for double bottoms, and orange for double tops. All visual elements can be individually enabled or disabled based on trading preferences.
UNDERLYING CONCEPTS
This indicator applies market structure theory which suggests that trend changes are often preceded by breaks of significant swing points. The double pattern recognition is based on classical technical analysis principles where price creates similar levels twice before reversing direction, indicating exhaustion of the prevailing trend.
The pivot point methodology ensures that only statistically significant highs and lows are considered, filtering out minor fluctuations that might create false signals. The confirmation requirement prevents premature signals during consolidation phases.
PRACTICAL APPLICATION
Market structure shifts help identify potential trend changes early in their development. Double patterns provide high-probability reversal setups with clear entry levels at neckline breaks and logical stop placements beyond the pattern extremes.
The price tolerance setting allows adaptation to different market volatility conditions. Tighter tolerances work better in stable markets while looser tolerances accommodate more volatile instruments.
LIMITATIONS AND CONSIDERATIONS
This indicator works best in trending markets and may produce less reliable signals during extended sideways consolidation periods. The pivot-based approach means signals occur with some delay after actual market turns, as confirmation requires subsequent price action.
Users should be aware that the indicator plots historical patterns and breakout confirmations. Real-time trading decisions should account for the lag inherent in pivot point calculation and pattern completion requirements.
The effectiveness of detected patterns may vary significantly across different timeframes, market conditions, and instrument types. Combining these signals with additional analysis methods and proper risk management is recommended for practical trading applications.
Double pattern detection requires sufficient price history and bar spacing to properly identify and validate formations. Very short timeframes or instruments with limited volatility may not generate frequent pattern signals.
All pattern recognition is based on historical price data and does not guarantee future performance. Market conditions, fundamental factors, and external events can invalidate technical patterns regardless of their historical reliability.
VIX-Price Covariance MonitorThe VIX-Price Covariance Monitor is a statistical tool that measures the evolving relationship between a security's price and volatility indices such as the VIX (or VVIX).
It can give indication of potential market reversal, as typically, volatility and the VIX increase before markets turn red,
This indicator calculates the Pearson correlation coefficient using the formula:
ρ(X,Y) = cov(X,Y) / (σₓ × σᵧ)
Where:
ρ is the correlation coefficient
cov(X,Y) is the covariance between price and the volatility index
σₓ and σᵧ are the standard deviations of price and the volatility index
Enjoy!
Features
Dual Correlation Periods: Analyze both short-term and long-term correlation trends simultaneously
Adaptive Color Coding: Correlation strength is visually represented through color intensity
Market Condition Assessment: Automatic interpretation of correlation values into actionable market insights
Leading/Lagging Analysis: Optional time-shift analysis to detect predictive relationships
Detailed Information Panel: Real-time statistics including current correlation values, historical averages, and trading implications
Interpretation
Positive Correlation (Red): Typically bearish for price, as rising VIX correlates with falling markets. This is what traders should be looking for.
Negative Correlation (Green): Typically bullish for price, as falling VIX correlates with rising markets
How to use it
Apply the indicator to any chart to see its correlation with the default VIX index
Adjust the correlation length to match your trading timeframe (shorter for day trading, longer for swing trading)
Enable the secondary correlation period to compare different timeframes simultaneously
For advanced analysis, enable the Leading/Lagging feature to detect if VIX changes precede or follow price movements
Use the information panel to quickly assess the current market condition and potential trading implications
Last xHL📈 Last xHL – Visualize Key Highs and Lows
This script highlights the most recent significant highs and lows over a user-defined period, helping traders quickly identify key support and resistance zones.
🔍 Features:
Highest High (HH) and Highest Close/Open (HC) lines
Lowest Low (LL) and Lowest Close/Open (LC) lines
Dynamic updates with each new bar
Gradient-filled zones between HH–HC and LL–LC for visual clarity
⚙️ Customization:
Adjustable lookback period (_length) to suit your trading style
Color-coded lines and fills for quick interpretation
🧠 Use Case:
This tool is ideal for traders who want to:
Spot potential breakout or reversal zones
Identify price compression or expansion areas
Enhance their technical analysis with visual cues
This script is for educational and informational purposes only. It does not constitute financial advice. Always do your own research before making trading decisions.
Order + Breaker Blocks - Custom TimeframesThis indicator is a Hidden Liquidity Script, being a much more refined and precise version of "Order Blocks" also known as "Supply and Demand" zones.
This script is more refined and precise as this script is the only script that displays the exact body part of blocks on multiple timeframes, showing potentially powerful price reversal zones for taking a long or short.
This is a PRICE ACTION indicator, demonstrating price action that can result in potential good support/resistance levels for taking a long or short trade.
This indicator only displays the body part of order blocks, instead of including wicks that all other indicators do. That makes this script a much more refined version of all other scripts out there.
Not only that, this script can collate multiple timeframes into one indicator, again something other scripts cannot do.
This script is also unique compared to other Hidden Liquidity style scripts in that you have full control over each Order Block so you can see each individual block on a chart, whilst other charts combine them into a zone instead. This refined version gives you precise potential entries and much further refinement as well as more thorough backtesting capabilities.
This script also can highlight order blocks that pass THROUGH a Fair Value Gap. These are known as 'Breaker Blocks'. These powerful blocks can be places of interest as support or resistance for a long or short trade. Note: This script shows the body part of a block only and not the wick.
Breaker Blocks, where significant displacement has occurred in price past a block can be more powerful. This script does not highlight Fair Value Gaps themselves, only order blocks (supply and demand) and breaker blocks through displacement in price (through an FVG). FVGs on their own can be weaker without order blocks behind them hence they are not highlighted.
The BODY of the order block, and the 0.5 of the order block are key regions for considering a trade, treating that level as either resistance or support.
Important: PLEASE NOTE: This indicator will only show timeframes that are higher than or the same as the current chart timeframe.
For Example, only blocks 3 Days or higher will show on a 3D chart. It will not show 12h blocks on a 3D chart. You would need to go to a 12 hour chart with the 12h blocks showing to see all Blocks that are 12h or higher drawn.
This Script differs from others in that you can DEFINE your OWN TIMEFRAMES.
It caters for 4 timeframes. If it is slow loading, deselect the 3 others and show only one.
LTF can take a looong time to load and may not be possible at all on subscriptions with only 20s compute time on their plan.
However if you have a timeframe in mind you have wanted to check out that is not standard, you can do it with this Indicator.
For seconds, use the digit and add an “S” to it. Eg 45 seconds use “45S”
For Mintues and Hours, you must do them in minute format with no letter added. Eg 145 minutes is “145”. 30 minutes is “30”. 6 hours is “360” minutes. Trading View allows up to 24 hours in minute format.
For Days, eg 3 Days use “3D”
For Weeks, eg 5 Weeks, use ‘5W”
For Months, eg 6 Months, use “6M”.
If you don’t use the correct format as specified above it will not work or display anything.
SETTINGS:
There is options to change the colours of the boxes and to differentiate between Order Blocks and stronger Breaker Blocks if desired.
If this is NOT desired, make all color options the same color,.
Shown below is blue Order Blocks (Supply and Demand
Shown below there is Pink Breaker Blocks.
There is options to weaken the colour of blocks that have been tapped by a wick and thus partially used up, also called partially "mitigated".These blocks can be considered weaker support/resistance.
Once a block has had a wick or body close over it entirely, the block can be considered fully "mitigated" and will disappear from the indicator once that candle has closed. This block level can now be considered too weak. You can also choose to not show these partially mitigated blocks at all.
The charts above shows pale Violet blocks as partially mitigated or "tapped" blocks.
The blocks in HOT BRIGHT Violet are untapped and potentially stronger levels for a Long or Short trade. See below the 7h.
Additional SETTINGS:
Further options include, if selected: Counting the number of fair value gaps an order block may pass through. More FVGs an order block (now a breaker block) passes through can strengthen the support of that block level, making a reversal more likely.
There is an option of showing old mitigated order blocks and changing the color of these on the chart. This can aid in backtesting of levels.
Further Settings include:
- an option to remove very thin blocks that may not be strong points.
- an option to denote with a character such as a * blocks that have their EQ 0.5 region wicked - these can be considered weaker.
- an option to denote with an additional * or another character blocks that are barely tapped by a small percent so you know they are still considered quite strong.
- an option to show how many candles form the order block.
Additional Options include:
- an option to show blocks only within a specific price range or percent range of the current price.
- an option to only look X number of bars back.
There is Options regarding labelling, and Border widths on boxes.
It is ESSENTIAL to do your own research and backtesting!
It is recommended to combine these levels with other concepts for added confluence.
Other indicators are NOT included in this script. This is purely a refined order block script for the BODY of a block only.
You can combine Order Blocks and stronger versions known as Breaker Blocks in this script with other indicators or concepts to form a Full Trading Strategy.
Other potential concepts to combine, not shown in this script can include Smart Money Concepts, Market Structure, Fibonnaccis, SMAs, EMAs or any other concept to give added confluence to the support / resistance levels identified in this script that may indicate that the level is stronger.
This indicator is not a trading strategy on its own. It is best used in combination with other concepts to improve the success.
Backtesting this indicator is highly recommended and incorporated into a full trading system of your own design. This only identifies possible key regions based on Price Action Strategies.
This indicator simply makes the identification of these hot levels easier and simpler to find, especially across multiple timeframes.
A strong bright zone on the indicator can be a stronger level than a weak partial block that is in light colours.
Again -Please do your own research and backtesting.
These indicators make finding these levels much much simpler and easier when combined with a full trading strategy.
Any feedback is welcome.
Relative StrengthDescription:
This indicator provides a simplified yet powerful method for measuring a stock's momentum based on its proximity to its recent high. It is a direct implementation of a trading concept discussed in a lecture from the New York Institute of Finance.
Core Concept
The underlying theory, supported by academic research, is that a stock making a new high is one of the most bullish signals possible. Such stocks have a statistical tendency to continue making new highs in the near term.
Instead of requiring complex relative strength calculations against a universe of stocks, this indicator uses a simple and elegant ratio to act as a proxy for momentum:
Indicator Value = Current Close / Highest High of Lookback Period
A value approaching 1.0 indicates the stock is strong and nearing a new high. A value at 1.0 means a new high has just been made.
How to Use This Indicator
The indicator consists of two primary components:
RS Line (Teal): The core momentum calculation (Close / High).
Signal MA (Orange): A moving average of the NHRS Line, which acts as the trigger for signals.
The signals are generated based on the crossover between these two lines:
BUY Signal: When the RS Line crosses ABOVE its moving average. This suggests that short-term momentum is accelerating and a new uptrend may be starting. The background will turn green.
SELL Signal: When the RS Line crosses BELOW its moving average. This indicates that momentum is fading and it may be prudent to exit the position to avoid a decline. The background will turn red.
Indicator Settings
You can customize the indicator to fit your trading style and the timeframe you are analyzing:
High Lookback Period: Choose the period for the "Highest High" calculation. Options range from 1 Month to 12 Months (52 weeks), allowing you to measure short-term or long-term strength.
Moving Average Length: Adjust the length of the signal line's moving average. The lecturer defaults to 26 weeks for a six-month view.
Moving Average Type: Select the type of moving average for the signal line (SMA, EMA, WMA, HMA).
Credits and Inspiration
Proper credit is essential. This script is a practical application of a concept that builds upon foundational academic work.
The core idea that a stock's proximity to its 52-week high is an investable anomaly was detailed in the 2004 Journal of Finance paper:
"The 52 Week High and Momentum Investing" by Thomas J. George and Chuan-Yang Hwang.
The lecturer's contribution, which this script implements, was to simplify this concept into an actionable trading tool by applying a moving average crossover to generate clear and objective buy and sell signals.
Disclaimer: This tool is for educational and informational purposes only. It is not financial advice. All trading involves risk, and you should always perform your own research and backtesting before making any trading decisions.
Manual Trend Line [SDAlgo]There is a a saying "Necessity is the Father of Invention."
Truly speaking, this indicator also took birth from the same necessity when using TradingView's built-in drawing tool was unable to do what I was looking for. It's "Trend Line". What this built-in drawing tool lacks:
1. It cannot be extended to the current bar.
2. It doesn't provide the the ability to get the price value of the Trend Line at the current bar when extended.
3. It can only be a line but not a channel kind of thing.
So, this manual Trend Line overcome all those mentioned above but being simple without much intricacies or complex calculations.
How does this indicator works:
The following screenshot appears when user first select this Indicator to apply on your chart, it asks user to choose the start time point of of the Trend Line (instead of Point in drawing tool). The default setting is Resistance Trend Line, so user may opt for the time point where the user finds a suitable high. However, as there is multiple confirmation in different stages, user may also opt for time point where the user intend to place the support line start.:
photos.google.com
Once user choose the start time point, it will ask the end time point as per the below screenshot:
photos.google.com
Once the second point is also chosen, then the following screen appears for user to confirm other parameters:
photos.google.com
User can choose:
1. Trend Line Type: Resistance or Support
2. Trend Line Touch Points: Either High/Low of the candle (when resistance, it will touch the highs, when support, it will touch the lows for the selected time point candles.) or candle body (in this case, the trendline will touch the high of the candle body when Resistance is selected else it will touch the low of the candle body when Support is selected.)
3. Trend Line Visibility: Single Line or Multiple Line. The default screenshot with this publication shows the multiple line where the center dashed line is the touch points and outer solid lines are indicating a narrow zone. This zone is to cover some other high (or low points) which didn't exactly touch the dashed line but the rejection came to very near to it.
Once you click apply, say with other default setting except the time point, the trendline will be visible like the below screenshot:
photos.google.com
By default the Trend Line is extended left but it stops at the current running or the last historical bar with a small value mentioned at the right of the Trend Line as the price value of it at the current bar.
Also by default the resistance selection colors the line as Red and Green when selected support.
User can go into the settings and fiddle with it for other settings. If the line visibility is changed to Multiple Line, the Trend Line in the just previous picture will become multiple line as is below:
photos.google.com
Other parameter are:
1. Line Thickness: For single line type, the thickness can be made from 1 to 10.
2. The label size can be made from 8 to 16 for the Price Value of the Trend Line at current bar.
Draggability:
Unlike Built-in Trendline, this doesn't have the efficiency of dragging the start or endpoints but it has the another ability to drag the start and end time of the Trend Line. In that case, you just select the Trend Line and two vertical lines will appear on your chart on the start and end point of the Trend Line. User can drag the vertical time points to whichever bar user want to place to.
In this way, the semiautomatic "Manual Trend Line" can be drawn on the chart but with some additional features as mentioned earlier.
This Indicator is free for all but I'm hiding the source code for some unforeseen reasons. If Both the Upper Trend Line and Lower Trend Lines are required on a single chart, then the indicator should be added two times on the chart, that's it.
If user faces any issues during placement of the Indicator on the chart, I may be contacted over TradingView direct message and can help the user for any clarifications, overcoming any issues.
True Breakout Pattern [TradingFinder] Breakout Signal Indicator🔵 Introduction
In many market conditions, what initially appears to be a decisive breakout often turns out to be nothing more than a false breakout or fake breakout. Price breaks through a key swing level or an important support and resistance zone, only to quickly return to its previous range.
These failed breakouts, which are often the result of liquidity traps or market manipulation, serve more as a warning sign of structural weakness than confirmation of a new trend.
This indicator is designed around the concept of the fake breakout.
The logic is simple but precise : when price breaks a swing level and returns to that level within a maximum of five candles, the move is considered a false breakout. At this point, a Fibonacci retracement is applied to the recent price swing to evaluate the pullback area.
If price, within ten candles after the return to the breakout level, enters the Fibonacci zone between 0.618 and 1.0, the setup becomes valid for a potential entry. This area is identified as a long entry zone, with the stop loss placed just beyond the 1.0 level and the take profit defined based on the desired risk-to-reward ratio.
By combining accurate detection of false breakouts, analysis of price reaction to swing levels, and alignment with Fibonacci retracement logic, this framework allows traders to identify opportunities often missed by others. In a market where failed breakouts are a common and recurring phenomenon, this indicator aims to transform these traps into measurable trading opportunities.
Long Setup :
Short Setup :
🔵 How to Use
This indicator operates based on the recognition of false breakouts from structural levels in the market, specifically swing levels, and combines that with Fibonacci retracement analysis.
In this strategy, trades are only considered when price returns to the broken level within a defined time window and reacts appropriately inside a predefined Fibonacci range. Depending on the direction of the initial breakout, the system outlines two scenarios for long and short setups.
🟣 Long Setup
In the long setup, price initially breaks below a support level or swing low. If the price returns to the broken level within a maximum of five candles, the move is identified as a fake breakout.
At this stage, a Fibonacci retracement is drawn from the recent high to the low. If price, within ten candles of returning to the level, moves into the 0.618 to 1.0 Fibonacci zone, the conditions for a long entry are met.
The stop loss is placed slightly below the 1.0 level, while the take profit is set based on the trader’s preferred risk-reward ratio. This setup aims to capture deeply discounted entries at low risk, aligned with smart money reversals.
🟣 Short Setup
In the short setup, the price breaks above a resistance level or swing high. If the price returns to that level within five candles, the move is again treated as a false breakout. Fibonacci is then drawn from the recent low to the high to observe the retracement area.
Should price enter the 0.618 to 1.0 Fibonacci range within ten candles of returning, a short entry is considered valid. In this case, the stop loss is placed just above the 1.0 level, and the take profit is adjusted based on the intended risk-reward target. This method allows traders to identify high-probability short setups by focusing on failed breakouts and deep pullbacks.
🔵 Settings
🟣 Logical settings
Swing period : You can set the swing detection period.
Valid After Trigger Bars : Limits how many candles after a fake breakout the entry zone remains valid.
Max Swing Back Method : It is in two modes "All" and "Custom". If it is in "All" mode, it will check all swings, and if it is in "Custom" mode, it will check the swings to the extent you determine.
Max Swing Back : You can set the number of swings that will go back for checking.
🟣 Display settings
Displaying or not displaying swings and setting the color of labels and lines.
🟣 Alert Settings
Alert False Breakout : Enables alerts for Breakout.
Message Frequency : Determines the frequency of alerts. Options include 'All' (every function call), 'Once Per Bar' (first call within the bar), and 'Once Per Bar Close' (final script execution of the real-time bar). Default is 'Once per Bar'.
Show Alert Time by Time Zone : Configures the time zone for alert messages. Default is 'UTC'.
🔵 Conclusion
A sound understanding of the false breakout phenomenon and its relationship to structural price behavior is essential for technical traders aiming to improve precision and consistency. Many poor trading decisions stem from misinterpreting failed breakouts and entering too early into weak signals.
A structured approach, grounded in the analysis of swing levels and validated through specific price action and timing rules, can turn these misleading moves into valuable trade opportunities.
This indicator, by combining fake breakout detection with time filters and Fibonacci-based retracement zones, helps traders only engage with the market when multiple confirming factors are in alignment. The result is a strategy that emphasizes probability, risk control, and clarity in decision-making, offering a solid edge in navigating today’s volatile markets.
Support Resistance with Order BlocksIndicator Description
Professional Price Level Detection for Smart Trading. Master the Markets with Precision Support/Resistance and Order Block Analysis . It provides traders with clear visual cues for potential reversal and breakout areas, combining both retail and institutional trading concepts into one powerful tool.
The Support & Resistance with Order Blocks indicator is a versatile Pine Script tool designed to empower traders with clear, actionable insights into key market levels. By combining advanced pivot-based support and resistance (S/R) detection with order block (OB) filtering, this indicator delivers clean, high-probability zones for entries, exits, and reversals. With customizable display options (boxes or lines) and intuitive settings, it’s perfect for traders of all styles—whether you’re scalping, swing trading, or investing long-term. Overlay it on your TradingView chart and elevate your trading strategy today!
________________________________________
Key Features
✅ Dynamic Support/Resistance - Auto-adjusting levels based on price action
✅ Smart Order Block Detection - Identifies institutional buying/selling zones
✅ Dual Display Modes - Choose between Boxes or Clean Lines for different chart styles
✅ Customizable Sensitivity - Adjust detection parameters for different markets
✅ Broken Level Markers - Clearly shows when key levels are breached
✅ Timeframe-Adaptive - Automatically adjusts for daily/weekly charts
1. Dynamic Support & Resistance Detection
Identifies critical S/R zones using pivot high/low calculations with adjustable look back periods.
Visualizes active S/R zones with distinct colors and labels ("Support" or "Resistance" for boxes, lines for cleaner charts).
Marks broken S/R levels as "Br S" (broken support) or "Br R" (broken resistance) when historical display is enabled, aiding in breakout and reversal analysis.
2. Smart Order Block Identification
Detects bullish and bearish order blocks based on significant price movements (default: ±0.3% over 5 candles).
Highlights institutional buying/selling zones with customizable colors, displayed as boxes or lines.
Filters out overlapping OB zones to keep your chart clutter-free.
3. Dual Display Options
Boxes or Lines: Choose to display S/R and OB as boxes for detailed zones or lines for a minimalist view.
Line Width Customization: Adjust line widths for S/R and OB (1–5 pixels) for optimal visibility.
Color Customization: Tailor colors for active/broken S/R and bullish/bearish OB zones.
4. Advanced Overlap Filtering
Ensures S/R zones don’t overlap with OB zones or other S/R levels, providing only the most relevant levels.
Limits the number of active zones (default: 10) to maintain chart clarity.
5. Historical S/R Visualization
Optionally display broken S/R levels with distinct colors and labels ("Br S" or "Br R") to track historical price reactions.
Broken levels are dynamically updated and removed (or retained) based on user settings.
6. Timeframe Adaptability
Automatically adjusts pivot detection for daily/weekly timeframes (40-candle look back) versus shorter timeframes (20-candle look back).
Works seamlessly across all asset classes (stocks, forex, crypto, etc.) and timeframes.
________________________________________
How It Works
• Support & Resistance:
Uses ta.pivothigh and ta.pivotlow to detect significant price pivots, with a user-defined look back (default: 5 candles post-pivot).
Plots S/R as boxes (with labels "Support" or "Resistance") or lines, extending to the current bar for real-time relevance.
Broken S/R levels are marked with adjusted colors and labels ("S" or "R" for boxes, "Br S" or "Br R" for lines when historical display is enabled).
• Order Blocks:
Identifies OB based on strong price movements over 4 candles, plotted as boxes or lines at the candle’s midpoint.
Validates OB to prevent overlap, ensuring only significant zones are displayed.
Removes OB zones when price breaks through, keeping the chart focused on active levels.
• Customization:
Toggle S/R and OB visibility, adjust detection sensitivity, and set maximum active zones (4–50).
Fine-tune line widths and colors for a personalized chart experience.
________________________________________
Why Use This Indicator?
• Precision Trading: Pinpoint high-probability entry/exit zones with filtered S/R and OB levels.
• Clean Charts: Overlap filtering and zone limits reduce clutter, focusing on key levels.
• Versatile Display: Switch between boxes for detailed zones or lines for simplicity, with adjustable line widths.
• Institutional Edge: Leverage OB detection to align with institutional activity for smarter trades.
• User-Friendly: Intuitive settings and clear visuals make it accessible for beginners and pros alike.
________________________________________
Settings Overview________________________________________
⚙ Input Parameters
Settings Overview
Display Options:
Display Type: Choose "Boxes" or "Lines" for S/R and OB visualization.
S/R Line Width: Set line thickness for S/R lines (1–5 pixels, default: 2).
OB Line Width: Set line thickness for OB lines (1–5 pixels, default: 2).
Order Block Options:
Show Order Block: Enable/disable OB display.
Bull/Bear OB Colors: Customise border and fill colors for bullish and bearish OB zones.
Support/Resistance Options:
Show S/R: Toggle active S/R zones.
Show Historical S/R: Display broken S/R levels, marked as "Br S" or "Br R" for lines.
Detection Period: Set candle lookback for pivot detection (4–50, default: 5).
Max Active Zones: Limit active S/R and OB zones (4–50, default: 10).
Colors: Customise active and broken S/R colors for clear differentiation.
________________________________________
How to Use
1. Add to Chart: Apply the indicator to your TradingView chart.
2. Customize Settings:
o Select "Boxes" or "Lines" for your preferred display style.
o Adjust line widths, colors, and detection parameters to suit your trading style.
o Enable "Show Historical S/R" to track broken levels with "Br S" and "Br R" labels.
3. Analyze Levels:
o Use support zones (green) for buy entries and resistance zones (red) for sell entries.
o Monitor OB zones for institutional activity, signaling potential reversals or continuations.
o Watch for "Br S" or "Br R" labels to identify breakout opportunities.
4. Combine with Other Tools: Pair with trend indicators, volume analysis, or price action for a robust strategy.
5. Monitor Breakouts: Trade breakouts when price breaches S/R or OB zones, with historical labels providing context.
________________________________________
Example Use Cases
• Swing Trading: Use S/R and OB zones to identify entry/exit points, with historical broken levels for context.
• Breakout Trading: Trade price breaks through S/R or OB, using "Br S" and "Br R" labels to confirm reversals.
• Scalping: Adjust detection period for faster S/R and OB identification on lower timeframes.
________________________________________
• Performance: Optimized for all timeframes, with best results on 5M, 15M, 30M, 1H, 4H, or daily charts for swing trading.
• Compatibility: Works with any asset class and TradingView chart.
________________________________________
Get Started
Transform your trading with Support & Resistance with Order Blocks! Add it to your chart, customize it to your style, and trade with confidence. For questions or feedback, drop a comment on TradingView or message the author. Happy trading! 🚀
________________________________________
Disclaimer: This indicator is for educational and informational purposes only. Always conduct your own analysis and practice proper risk management before trading.
[CRTT] Dragon TrendModified Sonic R system based on Wyckoff logic to indicate current trend phase and strength based on the Dragon (EMA34) color.
1. Red : downtrend but the trend strength is weak and can be consider as phase |B| or |D|. Open positions in this color is risk, we should wait more.
2. Green : uptrend but the trend strength is weak and can be consider as phase |B| or |D|. Open positions in this color is risk, we should wait more.
3. Purple : uptrend and the strength of trend is strongly bullish that can be considered as phase |D| or |E| in accumulation phase. This is where we place our Long positions because the trend is strongly bullish and price could continue to run upward.
4. Blue : downtrend and the strength of trend is strongly bearish that can be considered as phase |D| or |E| in distribution phase. This is where we place our Short positions because the trend is strongly bearish and price could continue to run downward.