Inside SwingsOverview
The Inside Swings indicator identifies and visualizes "inside swing" patterns in price action. These patterns occur when price creates a series of pivots that form overlapping ranges, indicating potential consolidation or reversal zones.
What are Inside Swings?
Inside swings are specific pivot patterns where:
- HLHL Pattern: High-Low-High-Low sequence where the first high is higher than the second high, and the first low is lower than the second low
- LHLH Pattern: Low-High-Low-High sequence where the first low is lower than the second low, and the first high is higher than the second high
Here an Example
These patterns create overlapping price ranges that often act as:
- Support/Resistance zones
- Consolidation areas
- Potential reversal points
- Breakout levels
Levels From the Created Range
Input Parameters
Core Settings
- Pivot Lookback Length (default: 5): Number of bars on each side to confirm a pivot high/low
- Max Boxes (default: 100): Maximum number of patterns to display on chart
Extension Settings
- Extend Lines: Enable/disable line extensions - this extends the Extremes of the Swings to where a new Swing Started or Extended Right for the Latest Inside Swings
- Show High 1 Line: Display first high/low extension line
- Show High 2 Line: Display second high/low extension line
- Show Low 1 Line: Display first low/high extension line
- Show Low 2 Line: Display second low/high extension line
Visual Customization
Box Colors
- HLHL Box Color: Color for HLHL pattern boxes (default: green)
- HLHL Border Color: Border color for HLHL boxes
- LHLH Box Color: Color for LHLH pattern boxes (default: red)
- LHLH Border Color: Border color for LHLH boxes
Line Colors
- HLHL Line Color: Extension line color for HLHL patterns
- LHLH Line Color: Extension line color for LHLH patterns
- Line Width: Thickness of extension lines (1-5)
Pattern Detection Logic
HLHL Pattern (Bullish Inside Swing)
Condition: High1 > High2 AND Low1 < Low2
Sequence: High → Low → High → Low
Visual: Two overlapping boxes with first range encompassing second
Detection Criteria:
1. Last 4 pivots form High-Low-High-Low sequence
2. Fourth pivot (first high) > Second pivot (second high)
3. Third pivot (first low) < Last pivot (second low)
LHLH Pattern (Bearish Inside Swing)
Condition: Low1 < Low2 AND High1 > High2
Sequence: Low → High → Low → High
Visual: Two overlapping boxes with first range encompassing second
Detection Criteria:
1. Last 4 pivots form Low-High-Low-High sequence
2. Fourth pivot (first low) < Second pivot (second low)
3. Third pivot (first high) > Last pivot (second high)
Visual Elements
Boxes
- Box 1: Spans from first pivot to last pivot (larger range)
- Box 2: Spans from third pivot to last pivot (smaller range)
- Overlap: The intersection of both boxes represents the inside swing zone
Extension Lines
- High 1 Line: Horizontal line at first high/low level
- High 2 Line: Horizontal line at second high/low level
- Low 1 Line: Horizontal line at first low/high level
- Low 2 Line: Horizontal line at second low/high level
Line Extension Behavior
- Historical Patterns: Lines extend until the next pattern starts
- Latest Pattern: Lines extend to the right edge of chart
- Dynamic Updates: All lines are redrawn on each bar for accuracy
Trading Applications
Support/Resistance Levels
Inside swing levels often act as:
- Dynamic support/resistance
- Breakout confirmation levels
- Reversal entry points
Pattern Interpretation
- HLHL Patterns: Potential bullish continuation or reversal
- LHLH Patterns: Potential bearish continuation or reversal
- Overlap Zone: Key area for price interaction
Entry Strategies
1. Breakout Strategy: Enter on break above/below inside swing levels
2. Reversal Strategy: Enter on bounce from inside swing levels
3. Range Trading: Trade between inside swing levels
Technical Implementation
Data Structures
type InsideSwing
int startBar // First pivot bar
int endBar // Last pivot bar
string patternType // "HLHL" or "LHLH"
float high1 // First high/low
float low1 // First low/high
float high2 // Second high/low
float low2 // Second low/high
box box1 // First box
box box2 // Second box
line high1Line // High 1 extension line
line high2Line // High 2 extension line
line low1Line // Low 1 extension line
line low2Line // Low 2 extension line
bool isLatest // Latest pattern flag
Memory Management
- Pattern Storage: Array-based storage with automatic cleanup
- Pivot Tracking: Maintains last 4 pivots for pattern detection
- Resource Cleanup: Automatically removes oldest patterns when limit exceeded
Performance Optimization
- Duplicate Prevention: Checks for existing patterns before creation
- Efficient Redraw: Only redraws lines when necessary
- Memory Limits: Configurable maximum pattern count
Usage Tips
Best Practices
1. Combine with Volume: Use volume confirmation for breakouts
2. Multiple Timeframes: Check higher timeframes for context
3. Risk Management: Set stops beyond inside swing levels
4. Pattern Validation: Wait for confirmation before entering
Common Scenarios
- Consolidation Breakouts: Inside swings often precede significant moves
- Reversal Zones: Failed breakouts at inside swing levels
- Trend Continuation: Inside swings in trending markets
Limitations
- Lagging Indicator: Patterns form after completion
- False Signals: Not all inside swings lead to significant moves
- Market Dependent: Effectiveness varies by market conditions
Customization Options
Visual Adjustments
- Modify colors for different market conditions
- Adjust line widths for visibility
- Enable/disable specific elements
Detection Sensitivity
- Increase pivot length for smoother patterns
- Decrease for more sensitive detection
- Balance between noise and signal
Display Management
- Control maximum pattern count
- Adjust cleanup frequency
- Manage memory usage
Conclusion
The Inside Swings indicator provides a systematic approach to identifying consolidation and potential reversal zones in price action. By visualizing overlapping pivot ranges
The indicator's strength lies in its ability to:
- Identify key price levels automatically
- Provide visual context for market structure
- Offer flexible customization options
- Maintain performance through efficient memory management
Motif-Motif Chart
Wolfe Waves [BigBeluga]🔵 OVERVIEW
The Wolfe Waves pattern was first introduced by Bill Wolfe , a trader and analyst in the 1980s–1990s who specialized in market geometry and natural rhythm cycles. Wolfe observed that price often forms symmetrical wave structures that anticipate equilibrium points where supply and demand meet. These formations, called Wolfe Waves , gained popularity as a reliable pattern for forecasting both short- and long-term reversals.
The Wolfe Waves indicator automatically detects these patterns in real time. It tracks sequences of five pivots (points 1 through 5) and connects them with wave lines. Users can select either Bullish or Bearish Wolfe Waves depending on their trading bias. When the pattern fails, the lines automatically turn red to highlight invalidation.
🔵 CONCEPTS
Five-Point Structure – Wolfe Waves are defined by five pivots (1–5), which together form the basis of the wave pattern.
Bullish Pattern – Occurs when price compresses downward into point 5, signaling a potential upside reversal.
Bearish Pattern – Occurs when price extends upward into point 5, forecasting a downside reversal.
Validation & Failure – The pattern is considered valid once all five pivots form; if price fails to respect the expected breakout, the indicator marks the structure as broken with red lines.
🔵 FEATURES
Automatic detection of Bullish and Bearish Wolfe Waves.
Labels each pivot (1–5) on the chart for clarity.
Draws connecting lines between pivots to visualize the wave structure.
Projects target/dashed lines (EPA/ETA) based on Wolfe Wave geometry.
Lines automatically turn red when the pattern is broken, giving immediate feedback.
Customizable color scheme for bullish (lime) and bearish (orange) waves.
Adjustable sensitivity for pivot detection.
🔵 HOW TO USE
Choose between Bullish or Bearish mode depending on your analysis.
Watch for the formation of all five pivots; the indicator labels them clearly.
Look for potential entries near point 5, with the expectation that price will travel toward the projected EPA line.
Use invalidation (lines turning red) as a risk management warning to exit failed setups.
Combine with momentum, volume, or higher-timeframe analysis to increase reliability.
🔵 CONCLUSION
The Wolfe Waves brings the classic Wolfe Wave theory into an automated TradingView tool. Inspired by Bill Wolfe’s original concept of natural market cycles, this indicator detects, labels, and validates Wolfe Waves in real time. With automatic invalidation marking and customizable settings, it offers traders a structured way to harness one of the most well-known geometric reversal patterns.
Smart Money Dynamics Blocks — Pearson MatrixSmart Money Dynamics Blocks — Pearson Matrix
A structural fusion of Prime Number Theory, Pearson Correlation, and Cumulative Delta Geometry.
1. Mathematical Foundation
This indicator is built on the intersection of Prime Number Theory and the Pearson correlation coefficient, creating a structural framework that quantifies how price and time evolve together.
Prime numbers — unique, indivisible, and irregular — are used here as nonlinear time intervals. Each prime length (2, 3, 5, 7, 11…97) represents a regression horizon where correlation is measured between price and time. The result is a multi-scale correlation lattice — a geometric matrix that captures hidden directional strength and temporal bias beyond traditional moving averages.
2. The Pearson Matrix Logic
For every prime interval p, the indicator calculates the linear correlation:
r_p = corr(price, bar_index, p)
Each r_p reflects how closely price and time move together across a prime-defined window. All r_p values are then averaged to create avgR, a single adaptive coefficient summarizing overall structural coherence.
- When avgR > 0.8 → strong positive correlation (labeled R+).
- When avgR < -0.8 → strong negative correlation (labeled R−).
This approach gives a mathematically grounded definition of trend — one that isn’t based on pattern recognition, but on measurable correlation strength.
3. Sequential Prime Slope and Median Pivot
Using the ordered sequence of 25 prime intervals, the model computes sequential slopes between adjacent primes. These slopes represent the rate of change of structure between two prime scales. A robust median aggregator smooths the slopes, producing a clean, stable directional vector.
The system anchors this slope to the 41-bar pivot — the median of the first 25 primes — serving as the geometric midpoint of the prime lattice. The resulting yellow line on the chart is not an ordinary regression line; it’s a dynamic prime-slope function, adapting continuously with correlation feedback.
4. Regression-Style Parallel Bands
Around this prime-slope line, the indicator constructs parallel bands using standard deviation envelopes — conceptually similar to a regression channel but recalculated through the prime–Pearson matrix.
These bands adjust dynamically to:
- Volatility, via standard deviation of residuals.
- Correlation strength, via avgR sign weighting.
Together, they visualize statistical deviation geometry, making it easier to observe symmetry, expansion, and contraction phases of price structure.
5. Volume and Cumulative Delta Peaks
Below the geometric layer, the indicator incorporates a custom lower-timeframe volume feed — by default using 15-second data (custom_tf_input_volume = “15S”). This allows precise delta computation between up-volume and down-volume even on higher timeframe charts.
From this feed, the indicator accumulates delta over a configurable period (default: 100 bars). When cumulative delta reaches a local maximum or minimum, peak and trough markers appear, showing the precise bar where buying or selling pressure statistically peaked.
This combination of geometry and order flow reveals the intersection of market structure and energy — where liquidity pressure expresses itself through mathematical form.
6. Chart Interpretation
The primary chart view represents the live execution of the indicator. It displays the relationship between structural correlation and volume behavior in real time.
Orange “R+” and blue “R−” labels indicate regions of strong positive or negative Pearson correlation across the prime matrix. The yellow median prime-slope line serves as the structural backbone of the indicator, while green and red parallel bands act as dynamic regression boundaries derived from the underlying correlation strength. Peaks and troughs in cumulative delta — displayed as numerical annotations — mark statistically significant shifts in buying and selling pressure.
The secondary visualization (Prime Regression Concept) expands on this by illustrating how regression behavior evolves across prime intervals. Each colored regression fan corresponds to a prime number window (2, 3, 5, 7, …, 97), demonstrating how multiple regression lines would appear if drawn independently. The indicator integrates these into one unified geometric model — eliminating the need to plot tens of regression lines manually. It’s a conceptual tool to help visualize the internal logic: the synthesis of many small-scale regressions into a single coherent structure.
7. Interpretive Insight
This model is not a prediction tool; it’s an instrument of mathematical observation. By translating price dynamics into a prime-structured correlation space, it reveals how coherence unfolds through time — not as a forecast, but as a measurable evolution of structure.
It unifies three analytical domains:
- Prime distribution — defines a nonlinear temporal architecture.
- Pearson correlation — quantifies statistical cohesion.
- Cumulative delta — expresses behavioral imbalance in order flow.
The synthesis creates a geometric analysis of liquidity and time — where structure meets energy, and where the invisible rhythm of market flow becomes measurable.
8. Contribution & Feedback
Share your observations in the comments:
- The time gap and alternation between R+ and R− clusters.
- How different timeframes change delta sensitivity or reveal compression/expansion.
- Prime intervals/clusters that tend to sit near turning points or liquidity shifts.
- How avgR behaves across assets or regimes (trending, ranging, high-vol).
- Notable interactions with the parallel bands (touches, breaks, mean-revert).
Your field notes help others read the model more effectively and compare contexts.
Summary
- Primes define the structure.
- Pearson quantifies coherence.
- Slope median stabilizes geometry.
- Regression bands visualize deviation.
- Cumulative delta locates imbalance.
Together, they construct a framework where mathematics meets market behavior.
Divergence for Many Indicators v5 - No RepaintUses confirmed bar processing to prevent repainting, ensuring
signals never change after they appear. Automatically draws
divergence lines on the chart and labels show which indicators
are diverging. Customizable settings include pivot period,
minimum divergence threshold, line styles, and colors for
different divergence types.
Ideal for identifying potential trend reversals (regular
divergence) and trend continuations (hidden divergence) with
high-confidence multi-indicator confirmation.
Trend Strength Detector TSDTrend Strength Detector (TSD)
*Objective Trend Quality Measurement for Educational Market Analysis*
Note: This mathematical framework is a proprietary quantitative model developed by Ario Pinelab, inspired by classical EMA, ADX, RSI and MACD principles, yet not documented in any public technical or academic publication.
## 🎯 Purpose & Design Philosophy
The ** Trend Strength Detector- TSD ** is an educational research tool that provides **quantitative measurement of trend quality** through two independent scoring systems (0-100 scale). It answers the analytical question: *"How strong and aligned is the current market trend environment?"*
This indicator is designed with a **modular, complementary approach** to work alongside various analysis methodologies, particularly pattern-based recognition systems.
## 🔗 Complementary Research Framework
### Designed to Work With Pattern Detection Systems
This indicator provides **environmental context measurement** that complements qualitative pattern recognition tools. It works particularly well alongside systems like:
- **RMBS Smart Detector - Multi-Factor Momentum System**
- Traditional chart pattern analyzers
- Any momentum-based pattern identification tools
🔍 **To find RMBS Smart Detector:**
- Search in TradingView Indicators Library: `" RMBS Smart Detector - Multi-Factor Momentum System"`
- Look for: *Multi-Factor Momentum System*
- By author: ` `
### Why This Complementary Approach?
**Trend Quality Measurement** (TSD - this tool) provides:
- ✅ Structural trend alignment (0-100 score)
- ✅ Momentum intensity levels (0-100 score)
- ✅ Environment classification (Strong/Moderate/Weak)
- 📌 **Answers:** *"HOW STRONG is the underlying trend environment?"*
### Educational Research Value
When used together in a research context, these tools enable systematic study of questions like:
- How do reversal patterns behave when Strength Score is above 70 vs below 30?
- Do continuation patterns in weakening environments (declining scores) show different characteristics?
- What is the correlation between high Alignment Scores and pattern "success rates"?
- Can environment classification help identify genuine trend initiation vs false starts?
⚠️ **Important Note:** Both tools are **independent and work standalone**. TSD provides value whether used alone or with other analysis methods. The relationship with RMBS (or any pattern tool) is **complementary for research purposes**, not dependent.
---
###Mathematical Foundation
##TSA Formula: scoring method developed by Ario
-Trend Model (0 – 100)
TAS = EMA Alignment (0–40) + Price Position (0–30) + Trend Consistency (0–30)
EMA Alignment checks EMA_fast vs EMA_slow vs EMA_trend structure.
Price Position evaluates if Close is above/below all EMAs.
Consistency = 3 × max(bullish,bearish bars within 10 candles).
-Strength Model (0 – 100)
Strength = ADX (0–50) + EMA Slope (0–25) + RSI (0–15) + MACD (0–10)
ADX measures trend energy; Slope shows EMA momentum %;
RSI assesses zone positioning; MACD confirms directional agreement.
Note: This formula represents a proprietary quantitative model by Ario_Pinelab, inspired by classical technical concepts but not published in any external reference.________________________________________
📊 Environment Classification
Based on Total Strength Score:
🟢 Strong Environment: Score ≥ 60
→ Well-defined momentum, clear directional bias
🟡 Moderate Environment: 40 ≤ Score < 60
→ Mixed signals, transitional conditions
🔴 Weak Environment: Score < 40
→ Ranging, choppy, low conviction movement
Color Coding:
• Green background: Strong (≥60)
• Yellow background: Moderate (40-59)
• Red background: Weak (<40)
________________________________________
📈 Visual Components
Main Chart Display
Score Labels (Top-Right Corner):
┌─────────────────────────────────┐
│ 📊 Alignment: 75 | Strength: 82 │
│ Environment: Strong 🟢 │
└─────────────────────────────────┘
Color-Coded Background:
• Environment strength visually indicated via background color
• Helps quick identification of market regime
• Customizable transparency (default: 90%)
Reference Lines:
• Dotted line at 60: Strong/Moderate threshold
• Dotted line at 40: Moderate/Weak threshold
• Mid-line at 50: Neutral reference
________________________________________
🔧 Customization Settings
Input Parameters
The best setting is the default mode.
🚫 Important Disclaimers & Limitations
What This Indicator IS:
✅ Educational measurement tool for trend quality research
✅ Quantitative assessment of current market environment
✅ Complementary analysis tool for pattern-based systems
✅ Historical data analyzer for systematic study
✅ Multi-factor scoring system based on technical calculations
What This Indicator IS NOT:
❌ NOT a trading system or signal generator
❌ NOT financial advice or trade recommendations
❌ NOT predictive of future price movements
❌ NOT a guarantee of pattern success/failure
❌ NOT a substitute for comprehensive risk management
________________________________________
Known Limitations
1. Lagging Nature:
⚠️ All components (EMA, ADX, RSI, MACD) are calculated
from historical price data
→ Scores reflect CURRENT and RECENT conditions
→ Cannot predict sudden reversals or black swan events
→ Trend measurements lag actual price turning points
2. Whipsaw Risk:
⚠️ In choppy/ranging markets, scores may fluctuate rapidly
→ Moderate zone (40-60) can see frequent transitions
→ Low timeframes more susceptible to noise
→ Consider higher timeframes for stable measurements
3. Component Conflicts:
⚠️ Individual components may disagree
→ Example: Strong ADX but weak RSI alignment
→ Scores average these conflicts (may hide nuance)
→ Check individual components for deeper insight
4. Not Predictive:
⚠️ High scores do NOT guarantee continuation
⚠️ Low scores do NOT guarantee reversal
→ Measurement ≠ Prediction
→ Use for CONTEXT, not SIGNALS
→ Combine with comprehensive analysis
________________________________________
Risk Acknowledgments
Market Risk:
• All trading involves substantial risk of loss
• Past performance (even systematic studies) does not guarantee future results
• No indicator, system, or methodology can eliminate market risk
Measurement Limitations:
• Scores are mathematical calculations, not market predictions
• Environmental classification is descriptive, not prescriptive
• Strong measurements can deteriorate rapidly without warning
Educational Purpose:
• This tool is designed for LEARNING about market structure
• Not designed, tested, or validated as a standalone trading system
• Any trading decisions are user’s sole responsibility
No Warranty:
• Indicator provided “as-is” for educational purposes
• No guarantee of accuracy, reliability, or profitability
• Users must verify calculations and apply critical thinking
Open Source
Full Pine Script code available for educational study and modification. Feedback and improvement suggestions welcome.
“All logic is presented for research and educational visualization.”
---
**Attribution & Fair Use Notice**
The Trend Strength Detector (TSD) scoring framework (Multi-Factor Momentum System) was originally designed and formulated by *Ahmadrezarahmati( Ario or Ario_ Pine Lab)*.
If you build upon, modify, or republish this logic—please include proper attribution to the original author. This request is made under a spirit of open collaboration and educational fairness.
Dynamic S/R Levels# Complete Parameter Guide
## 1. Lookback Bars (Default: 500)
- **Function**: Number of historical bars the script analyzes to identify levels
- **Example**: If set to 500, the script examines the last 500 candles
- **Increase when**: Trading long-term, searching for old historical levels
- **Decrease when**: Day trading or short-term trading, viewing only recent levels
- **Recommendation**: 200-300 for day trading, 500-1000 for swing trading
## 2. Min Touches (Default: 3)
- **Function**: Minimum number of touches required for a level to be considered valid
- **Example**: If set to 3, a level with only 2 touches will not be displayed
- **Increase (4-5) when**: You want only very strong and confirmed levels
- **Decrease (2) when**: You want to identify potential levels early
- **Recommendation**: 3 is a balanced value - not too loose, not too strict
## 3. Extrema Type (Default: both)
- **Function**: Which type of extrema to identify
- **Options**:
- **min**: Support levels only (pivot lows)
- **max**: Resistance levels only (pivot highs)
- **both**: Both types
- **When to change**:
- In uptrend looking for support only: select "min"
- In downtrend looking for resistance only: select "max"
## 4. Pivot Window (Default: 5)
- **Function**: How many bars on each side are required to confirm a pivot
- **Technical explanation**: pivot low = price lower than 5 bars before it and 5 bars after it
- **Increase (7-10) when**:
- More significant extrema needed
- Less noise, fewer levels
- Good for higher timeframes
- **Decrease (3-4) when**:
- More sensitivity needed
- More levels wanted
- Good for scalping
- **Important**: Higher value = quality over quantity
## 5. Clustering Sensitivity % (Default: 0.5%)
- **Function**: Percentage deviation allowed to group touches into the same level
- **Example**: If level at $100 and sensitivity 0.5%, touches between $99.5-$100.5 count as same level
- **Increase (1-2%) when**:
- Volatile assets (crypto, small stocks)
- More consolidation of nearby levels
- Fewer levels on chart
- **Decrease (0.2-0.3%) when**:
- Stable assets (indices, forex majors)
- Higher precision needed
- Separation between close levels
- **Recommendation**: Start at 0.5% and adjust per instrument
## 6. Max Levels to Show (Default: 10)
- **Function**: Maximum number of support/resistance lines displayed on chart
- **Selection criteria**: Script prioritizes levels by:
1. Number of touches (more = stronger)
2. Price spread (tighter = more accurate)
3. Recency (most recent touch closer to present)
- **Low value (5-10)**: Clean chart with only strongest levels
- **High value (20-50)**: More options, including weaker levels
## 7. Min Bar Separation (Default: 5)
- **Function**: Minimum distance in bars between two touches of the same type (min or max)
- **Why important**: Prevents double-counting the same extremum
- **Example**: If pivot low at bar 100 and another at bar 103, only one counts
- **Increase (10-20) when**:
- Lower timeframes with much noise
- Avoiding false consolidation
- **Decrease (2-3) when**:
- Higher timeframes
- Identifying quick movements
## 8. Alert Proximity % (Default: 1%)
- **Function**: Distance from level at which to trigger alert
- **Example**: Level at $100, proximity 1% = alert between $99-$101
- **Increase (2-3%) when**:
- Earlier alerts wanted
- More preparation time needed
- May create false alerts
- **Decrease (0.5%) when**:
- More precise alerts wanted
- Stronger confirmation needed
- Less reaction time
- **Recommendation**: 1% works well for most cases
## 9. Show Price Bands (Default: true)
- **Function**: Displays zone around level instead of just a line
- **Zone size**: Plus/minus Clustering Sensitivity %
- **Why useful**:
- Levels are never exact lines
- Zone better represents reality
- Helps identify entries and exits within zone
- **Off**: Cleaner chart with only lines
## 10. Show Info Table (Default: true)
- **Function**: Displays information table in chart corner
- **Table contents**:
- Type: S (Support) / R (Resistance) / N (Neutral)
- Price: Level price
- Touches: Number of touches
- Bars Ago: How many bars since last touch
- **Off**: If you know the levels and want a clean chart
## Recommended Settings by Trading Style:
### Day Trading (Intraday)
```
Lookback Bars: 200-300
Min Touches: 2-3
Pivot Window: 3-5
Sensitivity: 0.3-0.5%
Max Levels: 5-8
```
### Swing Trading (Days-Weeks)
```
Lookback Bars: 500-800
Min Touches: 3-4
Pivot Window: 5-7
Sensitivity: 0.5-1%
Max Levels: 10-15
```
### Position Trading (Months)
```
Lookback Bars: 1000-2000
Min Touches: 4-5
Pivot Window: 7-10
Sensitivity: 1-2%
Max Levels: 8-12
```
**Important tip**: Start with default values and adjust gradually based on the asset and results.
Signal vs. Noise Have been working on this to get a better feel for market conditions. Am generally a pretty shit trader so just wanted to give this a go. Any feedback is appreciated.
Torus Trend Bands — Windowed HammingTorus Trend Bands — Windowed Hamming
This TradingView indicator creates dynamic support and resistance bands on your chart. It uses the mathematical model of a torus (a donut shape) to generate cyclical and responsive channel boundaries. The bands are further refined with an advanced smoothing method called a Hamming window to reduce noise and provide a clearer signal.
How It Works
The Torus Model: The indicator maps price action onto a geometric torus shape. This is defined by two key parameters:
Major Radius (a): The distance from the center of the torus to the center of the tube. This controls the overall size and primary cycle.
Minor Radius (b): The radius of the tube itself. This controls the secondary, faster "breathing" motion of the bands.
Dual-Phase Engine: The behavior of the bands is driven by two different cyclical inputs, or "phases":
Major Rotation (φ): A slow, time-based cycle (φ period) that governs the long-term oscillation of the bands.
Minor Rotation (q): A fast, momentum-based cycle derived from the Relative Strength Index (RSI). This makes the bands react quickly to price momentum, expanding and contracting as the market becomes overbought or oversold.
Standard Technical Core : The torus model is anchored to the price chart using standard indicators:
Midline : A central moving average that acts as the baseline for the channel. You can choose from EMA, SMA, HMA, or VWAP.
Width Source: A volatility measure that determines the fundamental width of the bands. You can choose between the Average True Range (ATR) or Standard Deviation.
Hamming Window Smoothing: This is a sophisticated weighted averaging technique (a Finite Impulse Response filter) used in digital signal processing. It provides exceptionally smooth results with less lag than traditional moving averages. You can apply this smoothing to the RSI, the midline, and the width source independently to filter out market noise.
How to Interpret and Use the Indicator
Dynamic Support & Resistance: The primary use is to identify potential reversal or continuation points. The upper band acts as dynamic resistance, and the lower band acts as dynamic support.
Trend Identification: The color of the bands helps you quickly see the current trend. Teal bands indicate an uptrend (the midline is rising), while red bands indicate a downtrend (the midline is falling).
Volatility Gauge: When the bands widen, it signals an increase in market volatility. When they contract, it suggests volatility is decreasing.
Alerts: The indicator includes built-in alerts that can notify you when the price touches or breaks through the upper or lower bands, helping you stay on top of key price action.
Key Settings
Torus Parameters : Adjust Major radius a and Minor radius b to change the shape and cyclical behavior of the bands.
Phase Controls:
φ period: Controls the length of the main, slow cycle in bars.
RSI length → q: Sets the lookback for the RSI that drives the momentum-based cycle.
Midline & Width: Choose the type and length for the central moving average and the volatility source (ATR/StDev) that best fits your trading style.
Width & Bias Shaping:
Min/Max width ×: Control how much the bands expand and contract.
Bias ×: Shifts the entire channel up or down based on RSI momentum, helping the bands better capture strong trends.
Hamming Controls: Enable or disable the advanced smoothing on different parts of the indicator and set the Hamming length (a longer length results in more smoothing).
This indicator provides a unique and highly customizable way to visualize market cycles, volatility, and trend, combining geometry with proven technical analysis tools.
CVD Divergence + Volume MarkerHere is a Pine Script concept to mark candlestick chart candles when cumulative delta is divergent to price action and volume is above average. Cumulative delta divergence typically occurs when the price forms new highs/lows while cumulative delta forms lower highs/lows (or vice versa). The script should include a marker only when this divergence occurs alongside above-average volume, increasing signal strength and filtering out weak setups.
Coding Concept
Calculate cumulative delta (approximation using price and volume if true bid/ask volume is unavailable, e.g., on spot).
Calculate moving average of volume.
Detect bullish divergence (price makes lower low, cumulative delta makes higher low) and bearish divergence (price makes higher high, cumulative delta makes lower high).
Mark candle with above-average volume when divergence is present.
3-Candle Range Breakout (Buy/Sell Signal)⚡ 3-Candle Range Breakout (Buy/Sell Signal)
This indicator identifies a 3-candle range breakout pattern, designed to capture early momentum shifts after a short-term price contraction. It’s simple, price-action-based, and works effectively for scalping and intraday trading.
🧩 Concept
The setup looks for a 3-bar formation where:
The first candle (Mother) defines the range (High–Low).
The next two candles form inside bars within the first candle’s range.
Depending on candle colors, it identifies potential bullish or bearish setups.
A breakout beyond the first candle’s high or low confirms the entry.
📈 Signal Logic
✅ Buy Setup:
1st candle is red, next two candles are green (price recovery).
Both 2nd and 3rd candles stay inside the 1st candle’s range.
A break above the 1st candle’s high triggers a Buy signal.
❌ Sell Setup:
1st candle is green, next two candles are red (price weakness).
Both 2nd and 3rd candles stay inside the 1st candle’s range.
A break below the 1st candle’s low triggers a Sell signal.
⚙️ Features
🔔 Buy/Sell markers with clear visual labels
🟩 Green triangle for Buy entries
🟥 Red triangle for Sell entries
📊 Pure price-action logic — no lagging indicators
⏱️ Works on any timeframe or instrument
💡 Usage Tip
Use this indicator alongside volume, trend EMAs, or higher timeframe bias for stronger confirmation and better trade filtering.
NWOG/NDOG + EHPDA🌐 ENGLISH DESCRIPTION
Hybrid NWOG/NDOG + EHPDA – Advanced Gaps & Event Horizon Indicator
(Enhanced with Real-Time Alerts and Info Table)
📊 Overview
This advanced indicator combines automatic detection of weekly gaps (NWOG) and daily gaps (NDOG) with the Event Horizon (EHPDA) concept, now featuring customizable alerts and a real-time info table for a more efficient trading experience. Designed for traders who operate based on institutional price structures, liquidity zones, and SMC/ICT confluences.
✨ Key Features
1. Gap Detection & Visualization
NWOG (New Week Opening Gap): Identifies and visualizes the gap between Friday’s close and Monday’s open.
NDOG (New Day Opening Gap): Detects daily gaps on intraday timeframes.
Enhanced visualization: Semi-transparent boxes, price levels (top, middle, bottom), and lines extended to the current bar.
Customizable labels: Display gap formation date and price levels (optional).
2. Event Horizon (EHPDA)
Automatically calculates the Event Horizon level between two non-overlapping gaps.
Dashed line marking the equilibrium zone between bullish and bearish gaps.
3. Advanced 5pm-6pm Mode
Special option to detect the Sunday-Monday gap using 4H bars.
4. Real-Time Alerts
New gaps (NWOG/NDOG): Immediate notification when a new gap forms.
Gap fill: Alert when price completely fills a gap.
Event Horizon active: Notification when the Event Horizon level is triggered.
5. Info Table
Real-time display: number of active gaps, Event Horizon status, time remaining until weekly/daily close.
Customizable: position, size, and style.
🎨 Customization
Configurable colors for bullish gaps, bearish gaps, and Event Horizon line.
Customizable price labels and date format.
📈 Use Cases
Reversal trading, price targets, liquidity zones, SMC/ICT confluences.
⚙️ Recommended Settings
Timeframes: Daily and intraday (15m, 1H, 4H, etc.).
NWOG: Enable on all timeframes.
NDOG: Enable only on intraday.
Max Gaps: 3-5 for clean charts, 10-15 for historical analysis.
📝 Important Notes
Works best on 24/5 markets (Forex, Crypto).
Gaps automatically close when filled.
Event Horizon only appears with at least 2 non-overlapping gaps.
Dollar Volume Ownership GaugePurpose:
DVOG tracks the real money moving through a ticker by converting share volume into dollar volume (price × volume). It helps identify when institutional-sized players enter, defend, or unload positions — information that plain volume bars often hide.
How it works:
Each bar represents 4-minute aggregated dollar volume.
Green bars = moderate sponsorship ($400 K–$1 M per 4 min).
Red bars = heavy sponsorship ($1 M+ per 4 min).
Black bars = normal retail flow (under $400 K).
Optional horizontal guides mark both thresholds for quick reference.
Alerts:
Green Bar Alert: fires every time a bar exceeds $400 K, signaling fresh institutional activity.
Cross Alerts: trigger once when dollar volume crosses the $400 K or $1 M levels, perfect for automation or notifications.
Why it’s useful:
DVOG visually confirms when a breakout, knife-and-reclaim, or coil is being driven by real capital rather than low-liquidity noise.
It turns abstract volume into a direct measure of who’s actually in control.
Recommended use:
Run it in a separate pane below price. Combine with your normal structure analysis — higher lows, double bottoms, coils, etc. — and act only when structure and sponsorship line up.
Clean Swing Signals - Real-Time EntryThe Clean Swing Signals – Real-Time Entry indicator is designed for swing traders who seek precise and real-time entry signals without unnecessary chart noise. It identifies potential trend reversals, continuation setups, and momentum shifts using a blend of price action structure, moving averages, and dynamic swing points.
This tool automatically detects:
✅ Clean swing highs & lows
✅ Real-time buy/sell signals with confirmation
✅ Trend direction and strength visualization
✅ Smart filtering to avoid false breakouts
Whether you trade stocks, forex, or crypto, this indicator adapts to multiple timeframes, offering clear entries and exits aligned with market structure.
⚙️ Features
Swing-based signal generation with minimal repainting
Works best on 1H, 4H, and Daily charts
Customizable filters for trend strength
Alerts for buy/sell signals in real time
Ideal for medium-term traders
💡 How to Use
Add the indicator to your chart.
Wait for a confirmed Buy (Green) or Sell (Red) signal near a swing level.
Combine with support/resistance or volume for stronger confluence.
Set stop loss below/above the last swing point.
⚠️ Disclaimer
This script is for educational purposes only and not financial advice. Always perform your own analysis before entering trades.
PDB 4 MA + Candle Strength/Weakness Detector
4MA Strength & Reversal Detector
Unlock the power of momentum with this advanced 4 Moving Average system (20, 50, 100, 200) designed to pinpoint market strength and early reversal zones with precision.
How It Works:
- Bearish Reversal: Triggered when all moving averages align (20 < 50 < 100 < 200) and bearish reversal candles appear — highlighting potential tops.
- Bullish Reversal: Triggered when all moving averages align (200 < 100 < 50 < 20) and bullish reversal candles form — marking potential bottoms
:Best For:
⚡ Scalpers and day traders using 1–5 minute timeframes
📈 Identifying momentum shifts and trend exhaustion early
Tip: Combine this with volume or RSI for stronger confirmation and fewer false signals.
5-Minute Topping Tail ScannerScans for Topping Tail setups on 5-minute charts for when symbols break above the HOD but can't hold that value and close below it on a 5-minute timeframe.
EMA20 + BBP Alerts with MarkersThis version is simpler, faster, and gives clear BUY/SELL signals directly based on EMA 20 and BBP — no swing logic.This version is simpler, faster, and gives clear BUY/SELL signals directly based on EMA 20 and BBP — no swing logic.This version is simpler, faster, and gives clear BUY/SELL signals directly based on EMA 20 and BBP — no swing logic.
Fair Value GapThe indicator plots a rectangle when a Fair Value Gap is set.
Green rectangle = Long FVG
Red rectangle = Short FVG
EMA 13/21 Trend Cloud📈 EMA 13/21 Crossover Indicator
This indicator uses the 13-period and 21-period Exponential Moving Averages (EMAs) to identify short- to mid-term trend shifts in the market.
🔍 How It Works:
EMA 13 (fast) reacts more quickly to price changes.
EMA 21 (slow) responds more gradually, filtering out short-term noise.
A bullish crossover occurs when EMA 13 crosses above EMA 21 — a potential buy signal.
A bearish crossover happens when EMA 13 crosses below EMA 21 — a potential sell signal.
✅ Use Case:
Suitable for trend-following strategies.
Works well on intraday and swing trading timeframes.
Helps confirm entry and exit points by identifying momentum shifts.
Breakout Scanner [Europe] 🚀 Breakout Scanner - Situational Analysis Mastery
Professional Breakout & Trend-Following Strategy Based on Tom Hougaard's Situational Analysis
🎯 WHAT IS THIS INDICATOR?
A sophisticated multi-timeframe breakout scanner designed for European trading sessions, implementing the powerful "Situational Analysis" methodology from renowned trader Tom Hougaard. This professional tool identifies high-probability breakout opportunities with comprehensive filter systems to ensure quality signals.
⭐ KEY FEATURES
🏛️ SESSION-BASED TRADING
- European Overnight Range
- London Pre-Open & First Breakouts
- Tokyo Box & London Launch Sessions
- Smart Session Detection with Auto-DST
🎯 ENHANCED CONDITIONS
- School Run Strategy (SRS) by Tom Hougaard
- Anti-SRS Filter** for counter-trend opportunities
- Session-specific logic for optimal entry timing
🛡️ ADVANCED FILTER SYSTEMS
- Heiken Ashi Momentum Confirmation
- EMA 200 Trend Filter
- Ichimoku Baseline & Divergence
- RSI Threshold Filter
- ATR Volatility Filter
- Multi-timeframe Compatibility
⚡ SMART ALERTS & VISUALS
- Multi-timeframe Alert Confirmation
- Breakout Size Detection (Beyond/Within Range)
- Take Profit Levels with ATR Calculation
- Customizable Visual Markers
- Enhanced Alert Messages with Filter Status
📈 OPTIMIZED FOR
- GERMAN DAX ⚡
- OIL & GOLD 🛢️
- NIKKEI 🇯🇵
- US30 & NASDAQ 🇺🇸
- All Major Indices & Commodities
🔧 CORE STRATEGY PHILOSOPHY
This indicator embodies Tom Hougaard's Situational Analysis approach :
- Identify the Situation : Market context through session analysis
- Define the Action : Clear breakout levels and ranges
- Execute with Precision : Filtered, high-quality signals
- Manage the Trade : Built-in TP levels and size detection
🎨 CUSTOMIZATION OPTIONS
Session Management
- Toggle individual trading sessions
- Smart session auto-disable with SRS/Anti-SRS
- Customizable session times
Filter Controls
- Enable/disable all filter systems independently
- Adjustable timeframe for each filter
- Custom threshold settings
Visual Preferences
- Heiken Ashi overlay display
- Breakout marker styles and colors
- TP line customization
- Debug information panel
📊 HOW TO USE
1. SETUP : Apply to your preferred instrument (DAX, Oil, Gold, etc.)
2. CONFIGURE : Enable your preferred sessions and filters
3. MONITOR : Watch for breakout markers during active sessions
4. EXECUTE : Enter on confirmed breakouts with filter alignment
5. MANAGE : Use built-in TP levels or your own risk management
⚠️ RISK DISCLAIMER
This indicator is for educational and informational purposes only. Trading involves substantial risk and is not suitable for every investor. Always practice proper risk management and backtest strategies before live trading. Past performance is not indicative of future results.
🔒 TECHNICAL SPECIFICATIONS
- Platform : TradingView Pine Script v6
- Compatibility : All timeframes
- Markets : Forex, Indices, Commodities, Stocks
- Updates : Regular improvements and bug fixes
📞 SUPPORT & UPDATES
Regular updates based on user feedback and market changes. For suggestions or issues, please comment on the publication.
⭐ If this indicator helps your trading, please like and follow for more advanced tools! ⭐
Why Traders Love This Indicator:
✅ Comprehensive Filter System reduces false signals
✅ Session-Based Logic aligns with professional trading hours
✅ Multiple Timeframe Analysis for confirmation
✅ Customizable for Any Trading Style
✅ Professional-Grade Risk Management Tools
Boost your breakout trading profitability with institutional-grade session analysis!
🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀
Midpoint Levels + Previous Week Close//@version=5
indicator("Midpoint Levels + Previous Week Close", overlay=true)
// === Inputs for Day Midpoint ===
showDay = input.bool(true, "Show Day Midpoint")
dayColor = input.color(color.orange, "Day Midpoint Color")
dayWidth = input.int(1, "Day Line Thickness", minval=1, maxval=5)
dayStyleOpt = input.string("Solid", "Day Line Style", options= )
dayStyle = dayStyleOpt == "Dashed" ? line.style_dashed : dayStyleOpt == "Dotted" ? line.style_dotted : line.style_solid
// === Inputs for Week Midpoint ===
showWeek = input.bool(true, "Show Week Midpoint")
weekColor = input.color(color.blue, "Week Midpoint Color")
weekWidth = input.int(1, "Week Line Thickness", minval=1, maxval=5)
weekStyleOpt = input.string("Solid", "Week Line Style", options= )
weekStyle = weekStyleOpt == "Dashed" ? line.style_dashed : weekStyleOpt == "Dotted" ? line.style_dotted : line.style_solid
// === Inputs for Month Midpoint ===
showMonth = input.bool(true, "Show Month Midpoint")
monthColor = input.color(color.purple, "Month Midpoint Color")
monthWidth = input.int(1, "Month Line Thickness", minval=1, maxval=5)
monthStyleOpt = input.string("Solid", "Month Line Style", options= )
monthStyle = monthStyleOpt == "Dashed" ? line.style_dashed : monthStyleOpt == "Dotted" ? line.style_dotted : line.style_solid
// === Inputs for Previous Week Close ===
showWeekClose = input.bool(true, "Show Previous Week Close")
prevWeekCloseColor = input.color(color.red, "Previous Week Close Color")
prevWeekCloseWidth = input.int(1, "Week Close Line Thickness", minval=1, maxval=5)
weekCloseStyleOpt = input.string("Solid", "Week Close Line Style", options= )
weekCloseStyle = weekCloseStyleOpt == "Dashed" ? line.style_dashed : weekCloseStyleOpt == "Dotted" ? line.style_dotted : line.style_solid
// === Fetch Previous Highs, Lows, Closes
prevDayHigh = request.security(syminfo.tickerid, "D", high , lookahead=barmerge.lookahead_on)
prevDayLow = request.security(syminfo.tickerid, "D", low , lookahead=barmerge.lookahead_on)
prevDayClose = request.security(syminfo.tickerid, "D", close , lookahead=barmerge.lookahead_on)
prevWeekHigh = request.security(syminfo.tickerid, "W", high , lookahead=barmerge.lookahead_on)
prevWeekLow = request.security(syminfo.tickerid, "W", low , lookahead=barmerge.lookahead_on)
prevWeekClose = request.security(syminfo.tickerid, "W", close , lookahead=barmerge.lookahead_on)
prevMonthHigh = request.security(syminfo.tickerid, "M", high , lookahead=barmerge.lookahead_on)
prevMonthLow = request.security(syminfo.tickerid, "M", low , lookahead=barmerge.lookahead_on)
// === Calculate Midpoints
dayMid = (prevDayHigh + prevDayLow) / 2
weekMid = (prevWeekHigh + prevWeekLow) / 2
monthMid = (prevMonthHigh + prevMonthLow) / 2
// === Detect new time periods
newDay = ta.change(time("D"))
newWeek = ta.change(time("W"))
newMonth = ta.change(time("M"))
// === Line variables
var line dayLine = na
var line weekLine = na
var line monthLine = na
var line weekCloseLine = na
// === Create/Update Lines Conditionally
if newDay and showDay
if not na(dayLine)
line.delete(dayLine)
dayLine := line.new(bar_index, dayMid, bar_index + 1, dayMid, color=dayColor, width=dayWidth, style=dayStyle, extend=extend.right)
if newWeek
if not na(weekLine)
line.delete(weekLine)
if showWeek
weekLine := line.new(bar_index, weekMid, bar_index + 1, weekMid, color=weekColor, width=weekWidth, style=weekStyle, extend=extend.right)
if not na(weekCloseLine)
line.delete(weekCloseLine)
if showWeekClose
weekCloseLine := line.new(bar_index, prevWeekClose, bar_index + 1, prevWeekClose, color=prevWeekCloseColor, width=prevWeekCloseWidth, style=weekCloseStyle, extend=extend.right)
if newMonth and showMonth
if not na(monthLine)
line.delete(monthLine)
monthLine := line.new(bar_index, monthMid, bar_index + 1, monthMid, color=monthColor, width=monthWidth, style=monthStyle, extend=extend.right)
// ========================================================================
// === Inputs: Previous Day High/Low/Close
showPrevHigh = input.bool(true, "Show Previous Day High")
prevHighColor = input.color(color.green, "Prev Day High Color")
prevHighWidth = input.int(1, "Prev Day High Thickness", minval=1, maxval=5)
prevHighStyleOpt = input.string("Solid", "Prev Day High Style", options= )
prevHighStyle = prevHighStyleOpt == "Dashed" ? line.style_dashed : prevHighStyleOpt == "Dotted" ? line.style_dotted : line.style_solid
showPrevLow = input.bool(true, "Show Previous Day Low")
prevLowColor = input.color(color.maroon, "Prev Day Low Color")
prevLowWidth = input.int(1, "Prev Day Low Thickness", minval=1, maxval=5)
prevLowStyleOpt = input.string("Solid", "Prev Day Low Style", options= )
prevLowStyle = prevLowStyleOpt == "Dashed" ? line.style_dashed : prevLowStyleOpt == "Dotted" ? line.style_dotted : line.style_solid
showPrevClose = input.bool(true, "Show Previous Day Close")
prevCloseColor = input.color(color.navy, "Prev Day Close Color")
prevCloseWidth = input.int(1, "Prev Day Close Thickness", minval=1, maxval=5)
prevCloseStyleOpt = input.string("Solid", "Prev Day Close Style", options= )
prevCloseStyle = prevCloseStyleOpt == "Dashed" ? line.style_dashed : prevCloseStyleOpt == "Dotted" ? line.style_dotted : line.style_solid
// === Detect start of new day
isNewDay = ta.change(time("D"))
// === Line variables for Prev Day High/Low/Close
var line prevHighLine = na
var line prevLowLine = na
var line prevCloseLine = na
// === Create lines only once per new day
if isNewDay
if not na(prevHighLine)
line.delete(prevHighLine)
if not na(prevLowLine)
line.delete(prevLowLine)
if not na(prevCloseLine)
line.delete(prevCloseLine)
if showPrevHigh
prevHighLine := line.new(bar_index, prevDayHigh, bar_index + 1, prevDayHigh, color=prevHighColor, width=prevHighWidth, style=prevHighStyle, extend=extend.right)
if showPrevLow
prevLowLine := line.new(bar_index, prevDayLow, bar_index + 1, prevDayLow, color=prevLowColor, width=prevLowWidth, style=prevLowStyle, extend=extend.right)
if showPrevClose
prevCloseLine := line.new(bar_index, prevDayClose, bar_index + 1, prevDayClose, color=prevCloseColor, width=prevCloseWidth, style=prevCloseStyle, extend=extend.right)
RSI EMA WMARSI EMA WMA + Trendline Breakout
🧠 Overview
The RSI EMA WMA indicator combines the power of the Relative Strength Index (RSI) with Exponential (EMA) and Weighted Moving Averages (WMA) to identify market momentum, sustained overbought/oversold conditions, and key breakout points on RSI trendlines.
It is designed for momentum-based traders who want to filter false signals and confirm strong directional moves.
⚙️ Core Components
1. RSI (Relative Strength Index)
Default length: 14
Source: Close price
Detects overbought/oversold zones:
RSI > 70 → Overbought
RSI < 30 → Oversold
2. EMA (Exponential Moving Average)
Default length: 9
Plotted directly on the RSI line to capture short-term momentum.
RSI crosses above EMA → Bullish momentum
RSI crosses below EMA → Bearish momentum
3. WMA (Weighted Moving Average)
Default length: 45
Represents long-term momentum, helping filter short-term noise.
EMA > WMA → Uptrend confirmation
EMA < WMA → Downtrend confirmation
4. Pivot & Trendline Breakout (Auto-Draw)
Uses the HoanGhetti/SimpleTrendlines library.
Automatically detects RSI pivot highs/lows and draws connecting trendlines.
When RSI breaks the trendline beyond a specified threshold (RSI Difference), a breakout signal is triggered.
🎨 Color Logic & Visuals
Condition RSI Color Candle Color Meaning
RSI > 80 for 3 consecutive bars 🔴 Red 🔴 Red Strong overbought – potential reversal zone
RSI < 20 for 3 consecutive bars 🟢 Lime 🟢 Lime Strong oversold – potential bullish reversal
RSI crosses above EMA 🟢 Green 🟢 Green Bullish momentum
RSI crosses below EMA or RSI < EMA 🔴 Red 🔴 Red Bearish momentum
Neutral state 🟣 Default color — Neutral RSI zone
Horizontal dashed lines at 80 and 20 mark the overbought and oversold zones for quick visual reference.
Mother & Baby — Nifty 5m (Bull/Bear)Mother & Baby — Nifty 5m (Bull/Bear)
This indicator identifies Mother & Baby (Inside Bar) patterns on the Nifty 5-minute chart, helping traders spot potential reversals or continuation setups based on price compression.
🔍 Concept
The “Mother & Baby” setup occurs when:
The Mother candle (previous bar) has a larger range.
The Baby candle (current bar) forms completely inside the Mother’s range.
A Bullish pattern forms when the Mother is bearish (red) and the Baby is bullish (green).
A Bearish pattern forms when the Mother is bullish (green) and the Baby is bearish (red).
These formations often signal a pause before breakout and can help identify early momentum shifts.
⚙️ Features
🧭 Works on any symbol/timeframe (default: Nifty 5m)
📊 Optional ATR-based size filter to validate Mother candle strength
🟩🟥 Colored boxes and labels to highlight setups clearly
⚠️ Alerts for both Bullish and Bearish M&B signals
📈 Optional Mother candle high/low lines for visual reference
💡 Trading Idea
Bullish M&B → potential breakout above Mother high
Bearish M&B → potential breakdown below Mother low
Combine with volume, trend filters, or higher timeframe bias for confirmation.