Math by Thomas - SMC OB + FVG📄 Description
This script is designed for traders following the Smart Money Concepts (SMC) methodology. It automatically detects:
✅ Bullish and Bearish Order Blocks (OBs) based on structural breakouts, displacement, and volume conditions.
✅ Fair Value Gaps (FVGs) using a 3-candle price imbalance model.
🔄 Both OBs and FVGs clean up dynamically when invalidated by price action.
Built with institutional logic, this tool helps identify areas of interest for potential reversals, liquidity grabs, or mitigation plays.
⚙️ How It Works
🔷 Order Blocks (OB)
A Bullish OB is marked after a Break of Structure (BOS) to the upside.
A Bearish OB is marked after BOS to the downside.
Filters like displacement candle and volume spike can be toggled in settings.
Boxes are drawn from the opposing candle in the move, and will disappear once broken or expired.
🟥 Fair Value Gaps (FVG)
FVGs are detected when the middle candle leaves a price imbalance between the first and third candle.
Zones are marked with transparent boxes.
Labels (FVG) appear only once every 20 bars to reduce clutter.
Gaps are removed only after a full candle closes through the zone (conservative logic).
🛠️ User Settings
Choose volume multiplier and ATR period for OB displacement logic.
Set box extension, label transparency, and cleanup behavior.
Full control over colors and midline display.
📈 How to Use
Apply the indicator to any chart (works best on indices, forex, crypto).
Use OBs as points of interest for potential reaction zones or mitigation setups.
Use FVGs to identify imbalances that may attract price.
Watch for confluence between OBs and FVGs for high-probability entries.
📚 Best Practice
Use on 15m–1h timeframe for clean structure.
Align with higher TF bias for direction.
Combine with liquidity sweeps, EQH/EQL, or breaker blocks for refinement.
Chart patterns
VWAP ORB StrategyPlots the 15-min Opening Range for NY (9:30–9:45 AM ET) and London (3:00–3:15 AM ET), with breakout levels and range-based targets. Includes VWAP and EMA for trend confirmation.
PD Fractal Levels EnhancedThis indicator identifies fractal highs and lows across user-selected timeframes (Chart, M1, M3, M15, M30, H1, H4, D, W, M). It plots customizable horizontal lines with labels at unmitigated fractal levels, resetting daily.
Lines are drawn from the day's start to the current time
Previous day fractals remain visible even if mitigated before 9:30 AM NY time. I.e. mitigation only occurs during NY trading session.
Hammer Confirmation Labels - 15m & 1Hon 15 minutes and 1 hour time frame only, a hammer candle is formed and the following candle closes above hammer high, print white label HC15 below the hammer candle on 15 minutes chart, and HC1H when it is on 1 hour time frame.
EMA Crossover with RSI FilterWhat this indicator does:
Plots two EMAs (default: 9 & 21).
Uses RSI to filter entries (avoids buy signals when RSI is overbought, sell signals when RSI is oversold).
Gives simple visual buy/sell signals when EMA crossovers occur and RSI confirms.
Light background color to visualize bullish/bearish conditions.
Smart Order Block IdentifierThis custom TradingView indicator identifies and highlights Smart Money Order Blocks (OBs) based on refined multi-candle price action logic. It detects bearish and bullish order blocks using a structured pattern involving five candles. For a bearish order block, the central (OB) candle must have a high that is greater than the highs of both the candle before and after it—signaling local strength. Additionally, the high of the candle two bars after (the “next-next” candle) must be lower than the OB candle’s low, indicating a potential shift in momentum and confirming bearish intent. Conversely, a bullish order block is identified when the OB candle has a low lower than the lows of both the previous and following candle. The candle two bars later must have a low higher than the OB candle’s high, showing price rejection and a likely reversal. The indicator marks these blocks visually with boxes on the chart and optionally filters out mitigated zones.
Smart OBsSmart Order Block Indicator with Mitigation Detection
This indicator identifies bullish and bearish order blocks on the chart using a price action-based logic. For a bearish order block, it detects a candle whose high is higher than the highs of the candles immediately before and after it, followed by a candle after the next one whose high is below the low of the order block candle. Conversely, a bullish order block is identified where a candle’s low is lower than the lows of its neighboring candles and the subsequent candle after next has a low above the high of the order block candle. This method helps to spot potential areas where institutional buying or selling occurred.
Once identified, the indicator plots rectangular zones on the chart highlighting these order blocks, allowing traders to visualize key supply and demand areas. The zones extend forward by a configurable number of bars to anticipate potential future price reactions. Additionally, the indicator checks if the order block zone has been “mitigated” or “consumed” by current price action, meaning price has retraced into or through the zone, potentially weakening its strength. Mitigated zones are not replotted, keeping the chart cleaner.
This tool assists traders in spotting high-probability reversal or continuation zones, aiding in entry, stop-loss, and take-profit placement decisions by visually marking institutional order flow areas.
Failed 2 Candle Detector (Highlight)Failed 2 bar indicator. Failed two in this indicator is determined by the failed candle closing above or below the 50% level of the previous candle.
EMAs mit RSI & Candlestick-Signalen & großen KerzenkörpernMulti-Signal Indicator: EMAs, Candlestick Patterns & RSI Signals
This versatile indicator combines three proven technical analysis tools in a single script:
🔹 1. Exponential Moving Averages (EMAs)
Multiple EMAs are displayed on the chart, helping to quickly identify trends. You can customize the periods - ideal for short-term and long-term strategies.
🔹 2. candlestick pattern recognition
The indicator automatically recognizes common bullish and bearish candlestick formations such as:
Hammer / Hanging Man
Engulfing Pattern
Doji / Spinning Top
As soon as a pattern is recognized, a visual marker appears on the chart.
🔹 3. RSI-based signals
The Relative Strength Index (RSI) is analyzed to identify overbought and oversold conditions. Additional visual cues help to identify potential reversal points.
✅ Advantages:
All-in-one indicator - no overload from multiple scripts
Visual clarity through clear markings and coloring
Fully customizable in the settings menu
⚙️ Application:
Suitable for traders who want to trade technical patterns, follow trends or react to RSI reversal points.
Note: This indicator is for educational purposes only and is not a substitute for sound trading strategy or financial advice.
Head-Flag basicAttention:
I've been waiting... seconds, minutes, even hours... But the real one isn't there. They're ghosts, illusions.
Yet, look... the eyes of humanity are fixed on that.
Detailed Description: How to Use the "Head-Flag Basic" Indicator
This indicator is designed to automatically detect classic chart patterns widely used in technical analysis. These patterns help identify possible trend reversals or continuations. The script works on any timeframe and with any asset, as long as data is available.
Patterns Detected by the Indicator
Head and Shoulders
A red cross appears above the bar.
Indicates a potential reversal from an uptrend to a downtrend.
The pattern forms when there’s a higher peak (the head) between two lower peaks (the shoulders), and the current low is below the middle low.
Inverted Head and Shoulders
A green diamond appears below the bar.
Indicates a potential reversal from a downtrend to an uptrend.
The opposite of the previous pattern: there’s a lower trough (the head) between two higher troughs (the shoulders), and the current high exceeds the head’s high.
Bull Flag
A blue flag appears below the bar.
Suggests a potential continuation of an upward trend.
The price forms higher highs and lows, and closes above a recent resistance.
Bear Flag
A yellow flag appears above the bar.
Suggests a potential continuation of a downward trend.
The price forms lower highs and lows, and closes below a recent support.
Ascending Triangle
A purple triangle appears above the bar.
Signals a consolidation pattern with a potential breakout to the upside.
Highs are flat (horizontal resistance), while lows are rising.
Descending Triangle
An orange triangle appears below the bar.
Signals a consolidation pattern with a potential breakout to the downside.
Lows are flat (horizontal support), while highs are falling.
How to Use the Indicator on the Chart
Copy the Pine Script code and paste it into the TradingView Pine Editor.
Click “Add to Chart.”
The indicator will automatically display graphic symbols above or below bars when patterns are detected.
Use the signals as alerts. Always confirm with other tools (such as volume, moving averages, RSI, or support/resistance zones).
Never trade solely based on the indicator. It should serve as a visual clue — not a confirmation by itself.
Final Notes
This is a simple, visual, and straightforward indicator. It helps you notice patterns that may go unnoticed in the market’s flow. However, no tool should be used in isolation. Use it wisely, validate it with broader context, and always follow your risk management plan.
Failed 2 Candle Detector (Highlight)This indicator detects failed 2-bar candles, defined by a close above or below the 50% midpoint of the previous candle.
AI-Optimized Gann IndicatorThe AI-Optimized Gann Angle System is a next-generation implementation of W.D. Gann's geometric trading principles, enhanced with AI logic, adaptive alerts, and real-time confidence scoring — specifically tuned for mid-volatility, large-cap trending stocks like AAPL, MSFT, NVDA, TSLA, UNH, JPM, and others.
Traditional Gann tools require manual plotting and static assumptions. This script automatically detects swing points using ATR-tuned ZigZag logic, dynamically draws key Gann angles (1x1, 2x1, 1x2, 3x1, 1x3), and evaluates price reactions in real time to create a confluence score, helping traders measure the reliability of the current geometry.
🔍 Key Features:
📐 AI-Powered Swing Detection
Uses ATR-multiplied thresholds and pivot logic to auto-select the most statistically valid anchor points.
📊 Dynamic Gann Angle Drawing
Angles like 1x1, 2x1, and 1x2 auto-project based on the current market regime, adapting to both steep and shallow trends.
🧠 Confluence Scoring System
Measures how frequently price respects projected Gann lines, displayed as a real-time reliability percentage.
🚨 Intelligent Alerting with Volume Filters
Get notified only when price is near key Gann levels and (optionally) confirmed by a volume spike for higher signal quality.
🎨 Adaptive Visuals & Dashboard
Clear visualization of anchor points, trend directions, real-time alerts, and volume confirmation — all in a compact table view.
🧠 Optimization Philosophy:
This system simulates an AI-style adaptation loop. It continuously tracks and adjusts based on:
Recent price volatility (ATR)
Trend steepness
Number of respected angle touches
Market structure evolution
While this is not using a neural network, the rule-based logic mimics machine learning feature prioritization — giving traders the power of AI without complexity.
✅ Recommended Instruments:
Designed and tuned for large-cap U.S. equities and index instruments that trend structurally with institutional flows.
Works best with:
AAPL, MSFT, NVDA, TSLA, AMZN, UNH, GOOG, JPM, SPY, QQQ, NDX, and more.
⏱️ Best Timeframes:
15 min, 1 hour, 4 hour, and Daily
Intraday scalping on volatile names
Swing trading in trend-following conditions
📌 Pro Tip: Set the anchor method to "Auto-Detect" for AI swing detection.
Use volume confirmation for higher-quality signals.
Confluence Score > 70% often aligns with key price decision zones.
🛠️ This is an open framework — use it standalone, or integrate with Smart Money Concepts (SMC), order block detection, or momentum filters for strategy refinement.
Vertical Lines at Specific Times (UTC)AMDX cycle for both London and NY session.
Blue lines indicate London AMDX Cycle.
Green Line is the crossover from London to New York
Red lines indicate New York AMDX Cycle
Each quarter is to showcase the Accumulation, Manipulation, Distribution and Execute/Exit cycles throughout each session. These are 90 minute sections.
Daily Vertical Lines (NY Time)vertical lines for chart 5 lines which are useful for timming and differentiation
Third Candle MarkerTitel: Third Candle Marker – Highlights Trend Continuation
Beschreibung:
This script highlights potential trend continuation setups by marking the third candle after two consecutive candles of the same direction.
If the previous two candles were bullish (green), the third candle is colored green.
If the previous two candles were bearish (red), the third candle is colored red.
A white color indicates that no clear trend was detected in the previous two candles.
Additionally, the script plots small triangle markers:
Green upward triangle below the bar if the last two candles were bullish.
Red downward triangle above the bar if the last two candles were bearish.
Use this tool to visually identify potential continuation signals in trending markets. Suitable for all timeframes.
Note: This script does not generate buy/sell signals; it is meant to assist in visual trend recognition.
Inside Bar Advancedthis script is advanced inside bar it just does not check previous candle it check more than one candle , that's why i wrote advanced Inside bar
Real-Time Spring DetectorThis is a Pine Script for Trading View that creates a "Real-Time Spring Detector" indicator. This Pine Script is essentially a sophisticated pattern recognition tool that helps identify "spring" setups - a popular trading pattern where price briefly breaks below support but then bounces back strongly, often indicating that sellers are exhausted and buyers are ready to step in.What is a "Spring" in Trading?
A spring is a technical analysis pattern that occurs when:
Price breaks below a support level (like breaking below a floor)
But then quickly bounces back up (like a spring rebounds)
This often signals that sellers are weak and buyers are stepping in
Think of it like testing the strength of a trampoline - you push down, but it springs back up stronger.
What This Script Does
This Pine Script automatically detects spring patterns on your chart and alerts you when they happen. Here's how it works:
Main Components
1. Input Parameters (Settings You Can Adjust)
Lookback Period (10): How many bars back to look for patterns
Min Support Touches (2): How many times price must touch the support level
Min Penetration % (0.1%): How far below support price must break
Min Rejection % (30%): How much price must bounce back up
Alert Settings: Choose when to get notifications
2. Support Level Detection
The script finds "support levels" - price levels where buyers have stepped in before:
It looks at recent low points
Identifies areas where price has bounced multiple times
Uses a small tolerance (0.5%) to account for minor price differences
3. Spring Detection Logic
The script identifies three types of springs:
Real-Time Spring (happening right now):
Price breaks below support by the minimum amount
Price bounces back strongly (rejection %)
Current candle closes higher than it opened (bullish)
Volume is reasonable
Confirmed Spring (already completed):
Same as real-time, but the candle has finished forming
Potential Spring (early warning):
Price is near support but hasn't fully formed the pattern yet
4. Visual Elements
Markers on Chart:
🟢 Green Triangle: Confirmed spring (reliable signal)
🟡 Yellow Triangle: Spring forming right now (live signal)
🟠 Orange Circle: Potential spring (early warning)
Labels:
Show "SPRING" with the rejection percentage
"FORMING" for developing patterns
"?" for potential springs
Support Line:
Red dotted line showing the support level
Background Colors:
Light red when price penetrates support
Light yellow for potential springs
5. Information Box
A table in the top-left corner shows:
Current support level price
Whether penetration is happening
Rejection percentage
Current pattern status
Live price
6. Alert System
Two types of alerts:
Real-time alerts: Notify when spring is forming (current bar)
Confirmed alerts: Notify when spring is complete (bar closed)
Alert cooldown: Prevents spam by waiting 5 bars between alerts
How to Use This Script
1. Installation
Copy the script code
Open TradingView
Go to Pine Editor
Paste the code
Click "Add to Chart"
2. Settings
Adjust the input parameters based on your trading style:
Lower lookback = more sensitive, faster signals
Higher support touches = more reliable but fewer signals
Lower penetration % = catches smaller springs
Higher rejection % = only strong bounces
3. Interpretation
Green triangles: High-confidence buy signals
Yellow triangles: Watch closely, pattern developing
Orange circles: Early warning, not tradeable yet
4. Best Practices
Use on higher timeframes (15min+) for more reliable signals
Combine with other indicators for confirmation
Pay attention to volume - higher volume springs are more reliable
Wait for confirmed signals if you're a conservative trader
Key Features for Small Timeframes
The script includes special detection for shorter timeframes:
Quick bounce detection: Identifies rapid reversals
Hammer pattern recognition: Spots candlestick patterns
Relaxed volume requirements: Works when volume data is limited
Advanced Features
Volume Analysis
Compares current volume to 10-bar average
Requires at least 80% of average volume (flexible for small timeframes)
Pattern Enhancement
Looks for hammer-like candles (long lower wick, small upper wick)
Identifies quick bounces where the upper wick is small
Multiple Confirmation
Combines multiple criteria to reduce false signals
Stronger springs get priority for alerts
Common Use Cases
Entry Signals: Buy when confirmed springs appear
Support Level Identification: Visual support lines help identify key levels
Risk Management: Failed springs (continued breakdown) can be stop-loss triggers
Market Structure: Understanding where buyers are defending price levels
Limitations
Works best in trending or ranging markets May produce false signals in very choppy conditions
small timeframe signals can be noisy should be combined with other analysis methods.The key advantage is that it can catch these patterns as they happen, rather than you having to constantly watch charts. This is especially valuable for active traders who want to capitalize on quick reversals at support levels.
LRHA Trend Shift DetectorLRHA Trend Shift Detector (TSD)
The LRHA Trend Shift Detector is an advanced momentum exhaustion indicator that identifies potential trend reversals and changes by analyzing Linear Regression Heikin Ashi (LRHA) candle patterns. TSD focuses on detecting when strong directional moves begin to lose momentum.
🔬 Methodology
The indicator employs a three-stage detection process:
LRHA Calculation: Applies linear regression smoothing to Heikin Ashi candles, creating ultra-smooth trend-following candles that filter out market noise
Extended Move Detection: Identifies sustained directional moves by counting consecutive bullish or bearish LRHA candles
Momentum Exhaustion Analysis: Monitors for significant changes in candle size compared to recent averages
When an extended move shows clear signs of momentum exhaustion, the indicator signals a potential trend shift with red dots plotted above or below your candlesticks.
⚙️ Parameters
Core Settings
LRHA Length (11): Linear regression period for smoothing calculations. Lower values = more responsive, higher values = smoother trends.
Minimum Trend Bars (4): Consecutive candles required to establish an "extended move." Higher number detects longer term trend changes.
Exhaustion Bars (3): Number of consecutively smaller candles needed to signal exhaustion. Lower is more sensitive.
Size Reduction Threshold (40%): Percentage decrease in candle size to qualify as "exhaustion." Lower is more sensitive.
Trend Trading
Pullback Entries: Identify exhaustion in counter-trend moves for trend continuation
Exit Strategy: Recognize when main trend momentum is fading
Position Sizing: Reduce size when seeing exhaustion in your direction
🎛️ Optimization Tips
For More Signals (Aggressive)
- Decrease LRHA Length (7-9)
- Reduce Minimum Trend Bars (2-3)
- Lower Size Reduction Threshold (25-35%)
For Higher Quality (Conservative)
- Increase LRHA Length (13-18)
- Raise Minimum Trend Bars (5-6)
- Higher Size Reduction Threshold (45-55%)
⚠️ Important Notes⚠️
- **Not a Complete Strategy**: Use as confluence with other analysis methods
- **Market Context Matters**: Consider overall trend direction and key support/resistance levels
- **Risk Management Essential**: Always use proper position sizing and stop losses
- **Backtest First**: Optimize parameters for your specific trading style and instruments
Absolute High and Low {Darkoexe}This indicator identifies and visually highlights the absolute highest and lowest closing prices on a chart. It is designed to help traders quickly recognize major price extremes that can serve as significant support/resistance levels or turning points in historical price action.
🔧 What It Does
The script plots persistent horizontal lines on your chart to mark either:
The absolute highest and lowest closing prices of the entire visible chart, or
The highest and lowest closing prices within a custom range of candles, defined by the user.
These price levels are plotted using thick green and red lines, respectively, and are updated dynamically as new highs or lows are set.
⚙️ How It Works
When “Use all candles” is enabled, the script continuously updates the high and low lines based on the full price history of the chart. These lines remain until a new extreme is made.
When disabled, the script checks only the most recent N candles (max bars back input). It scans this window to find and plot the highest and lowest closes.
The lines extend to the right to help users visually anchor these key levels in future price action.
🎯 Use Cases
Spotting extreme price levels for potential mean-reversion strategies.
Confirming breakout or breakdown conditions.
Defining long-term support and resistance zones.
This tool is especially useful for discretionary traders who value historical context and want clear visual markers for past price extremes.
⚠️ Notes and Limitations
This script is not predictive. It simply marks historical price extremes based on closing values.
When using the fixed range mode (max bars back), be aware that values outside this range will not be considered.
The indicator does not repaint, but in full chart mode, it updates only when a new extreme is formed.
1 Candle SMT Divergence (Nephew_Sam_)📊 1 Candle SMT Divergence Detector
3-Way Smart Money Theory (SMT) Divergence Scanner for Multi-Symbol Analysis
This indicator identifies 1-candle SMT divergences by comparing one primary symbol against up to 2 correlation symbols across multiple timeframes simultaneously. Perfect for detecting institutional smart money moves and market inefficiencies.
🎯 Key Features:
3-Way Comparison: Compare 1 "From" symbol vs 2 "To" symbols (configurable)
5 Symbol Pairs: Pre-configure up to 5 different symbol combinations
Multi-Timeframe: Scan 5 timeframes simultaneously (Chart, 1H, 4H, Daily, Weekly)
Smart Filtering: Only displays timeframes equal to or higher than your chart
Real-Time Detection: Compares current vs previous candle highs/lows
Visual Alerts: Clean table display with color-coded divergence status
Line Drawing: Optional trend lines connecting divergence points
Replay Compatible: Works with TradingView's replay mode
📈 How It Works:
Detects when one symbol makes a higher high while correlated symbols make lower highs (and vice versa for lows). This creates SMT divergence signals that often precede significant market moves.
NQHARP with Scalingthis is something ive developed over years of backtesting based on ATR vales and FIB measurements measured is as well. enjoy
Multi Asset Comparative📊 Multi Asset Comparative – Compare Baskets of Cryptos Visually
This indicator allows you to compare the performance of two groups of cryptocurrencies (or any assets) over time, using a clean and intuitive chart.
Instead of looking at each asset separately, this tool gives you a global view by showing how one group performs relative to another — all displayed in the form of candlesticks.
🧠 What This Tool Is For
Markets constantly shift, and capital rotates between sectors or tokens. This script helps you visually track those shifts by answering a key question:
"Is this group of assets getting stronger or weaker compared to another group?"
For example:
Compare altcoins vs Bitcoin
Track the DeFi sector vs Ethereum
Analyze your custom portfolio vs the market
Spot moments when money flows from majors to smaller caps, or vice versa
🧩 How It Works (Simplified)
You select two groups of assets:
Group 1 (up to 20 assets) — the one you want to analyze
Group 2 (up to 5 assets) — your comparison baseline
The indicator then creates a single line of candles that represents the performance of Group 1 compared to Group 2. If the candles go up, it means Group 1 is gaining strength over Group 2. If the candles go down, it's losing ground.
This lets you see market dynamics in one glance, instead of switching charts or running calculations manually.
🚀 Why It's Unique
Unlike many indicators that just show data from one asset, this one provides a bird's-eye view of multiple assets at once — condensed into a simple visual ratio.
It’s:
Customizable (you choose the assets)
Visual and intuitive (no need to interpret tables or formulas)
Actionable (helps with trend confirmation, macro views, and market rotation)
Whether you're a swing trader, a macro analyst, or building your own strategy, this tool can help you spot opportunities hidden in plain sight.
✅ How to Use It
Choose your two groups of assets (e.g., altcoins vs BTC/ETH)
Watch the direction of the candles:
Uptrend = Group 1 gaining strength over Group 2
Downtrend = Group 1 weakening
Use it to confirm market shifts, anticipate rotations, or analyze sector strength