Smart Money Precision Structure [BullByte]Smart Money Precision Structure
Advanced Market Structure Analysis Using Institutional Order Flow Concepts
---
OVERVIEW
Smart Money Precision Structure (SMPS) is a comprehensive market analysis indicator that combines six analytical frameworks to identify high-probability market structure patterns. The indicator uses multi-dimensional scoring algorithms to evaluate market conditions through institutional order flow concepts, providing traders with professional-grade market analysis.
---
PURPOSE AND ORIGINALITY
Why This Indicator Was Developed
• Addresses the gap between retail and institutional analysis methods
• Consolidates multiple analysis techniques that professionals use separately
• Automates complex market structure evaluation into actionable insights
• Eliminates the need for multiple indicators by providing comprehensive analysis
What Makes SMPS Original
• Six-Layer Confluence System - Unique combination of market regime, structure, volume flow, momentum, price action, and adaptive filtering
• Institutional Pattern Recognition - Identifies smart money accumulation and distribution patterns
• Adaptive Intelligence - Parameters automatically adjust based on detected market conditions
• Real-Time Market Scoring - Proprietary algorithm rates market quality from 0-100%
• Structure Break Detection - Advanced pivot analysis identifies trend reversals early
---
HOW IT WORKS - TECHNICAL METHODOLOGY
1. Market Regime Analysis Engine
The indicator evaluates five core market dimensions:
• Volatility Score - Measures current volatility against 50-period historical baseline
• Trend Score - Analyzes alignment between 8, 21, and 50-period EMAs
• Momentum Score - Combines RSI divergence with MACD signal alignment
• Structure Score - Evaluates pivot point formation clarity
• Efficiency Score - Calculates directional movement efficiency ratio
These scores combine to classify markets into five regimes:
• TRENDING - Strong directional movement with aligned indicators
• RANGING - Sideways movement with mixed directional signals
• VOLATILE - Elevated volatility with unpredictable price swings
• QUIET - Low volatility consolidation periods
• TRANSITIONAL - Market shifting between different regimes
2. Market Structure Analysis
Advanced pivot point analysis identifies:
• Higher Highs and Higher Lows for bullish structure
• Lower Highs and Lower Lows for bearish structure
• Structure breaks when established patterns fail
• Dynamic support and resistance from recent pivot points
• Key level proximity detection using ATR-based buffers
3. Volume Flow Decoding
Institutional activity detection through:
• Volume surge identification when volume exceeds 2x average
• Buy versus sell pressure analysis using price-volume correlation
• Flow strength measurement through directional volume consistency
• Divergence detection between volume and price movements
• Institutional threshold alerts when unusual volume patterns emerge
4. Multi-Period Momentum Synthesis
Weighted momentum calculation across four timeframes:
• 1-period momentum weighted at 40%
• 3-period momentum weighted at 30%
• 5-period momentum weighted at 20%
• 8-period momentum weighted at 10%
Result smoothed with 6-period EMA for noise reduction.
5. Price Action Quality Assessment
Each bar evaluated for:
• Range quality relative to 20-period average
• Body-to-range ratio for directional conviction
• Wick analysis for rejection pattern identification
• Pattern recognition including engulfing and hammer formations
• Sequential price movement analysis
6. Adaptive Parameter System
Parameters automatically adjust based on detected regime:
• Trending markets reduce sensitivity and confirmation requirements
• Volatile markets increase filtering and require additional confirmations
• Ranging markets maintain neutral settings
• Transitional markets use moderate adjustments
---
COMPLETE SETTINGS GUIDE
Section 1: Core Analysis Settings
Analysis Sensitivity (0.3-2.0)
• Default: 1.0
• Lower values require stronger price movements
• Higher values detect more subtle patterns
• Scalpers use 0.8-1.2, swing traders use 1.5-2.0
Noise Reduction Level (2-7)
• Default: 4
• Controls filtering of false patterns
• Higher values reduce pattern frequency
• Increase in volatile markets
Minimum Move % (0.05-0.50)
• Default: 0.15%
• Sets minimum price movement threshold
• Adjust based on instrument volatility
• Forex: 0.05-0.10%, Stocks: 0.15-0.25%, Crypto: 0.20-0.50%
High Confirmation Mode
• Default: True (Enabled)
• Requires all technical conditions to align
• Reduces frequency but increases reliability
• Disable for more aggressive pattern detection
Section 2: Market Regime Detection
Enable Regime Analysis
• Default: True (Enabled)
• Activates market environment evaluation
• Essential for adaptive features
• Keep enabled for best results
Regime Analysis Period (20-100)
• Default: 50 bars
• Determines regime calculation lookback
• Shorter for responsive, longer for stable
• Scalping: 20-30, Swing: 75-100
Minimum Market Clarity (0.2-0.8)
• Default: 0.4
• Quality threshold for pattern generation
• Higher values require clearer conditions
• Lower for more patterns, higher for quality
Adaptive Parameter Adjustment
• Default: True (Enabled)
• Enables automatic parameter optimization
• Adjusts based on market regime
• Highly recommended to keep enabled
Section 3: Market Structure Analysis
Enable Structure Validation
• Default: True (Enabled)
• Validates patterns against support/resistance
• Confirms trend structure alignment
• Essential for reliability
Structure Analysis Period (15-50)
• Default: 30 bars
• Period for structure pattern analysis
• Affects support/resistance calculation
• Match to your trading timeframe
Minimum Structure Alignment (0.3-0.8)
• Default: 0.5
• Required structure score for valid patterns
• Higher values need stronger structure
• Balance with desired frequency
Section 4: Analysis Configuration
Minimum Strength Level (3-5)
• Default: 4
• Minimum confirmations for pattern display
• 5 = Maximum reliability, 3 = More patterns
• Beginners should use 4-5
Required Technical Confirmations (4-6)
• Default: 5
• Number of aligned technical factors
• Higher = fewer but better patterns
• Works with High Confirmation Mode
Pattern Separation (3-20 bars)
• Default: 8 bars
• Minimum bars between patterns
• Prevents clustering and overtrading
• Increase for cleaner charts
Section 5: Technical Filters
Momentum Validation
• Default: True (Enabled)
• Requires momentum alignment
• Filters counter-trend patterns
• Essential for trend following
Volume Confluence Analysis
• Default: True (Enabled)
• Requires volume confirmation
• Identifies institutional participation
• Critical for reliability
Trend Direction Filter
• Default: True (Enabled)
• Only shows patterns with trend
• Reduces counter-trend signals
• Disable for reversal hunting
Section 6: Volume Flow Analysis
Institutional Activity Threshold (1.2-3.5)
• Default: 2.0
• Multiplier for unusual volume detection
• Lower finds more institutional activity
• Stock: 2.0-2.5, Forex: 1.5-2.0, Crypto: 2.5-3.5
Volume Surge Multiplier (1.8-4.5)
• Default: 2.5
• Defines significant volume increases
• Adjust per instrument characteristics
• Higher for stocks, lower for forex
Volume Flow Period (12-35)
• Default: 18 bars
• Smoothing for volume analysis
• Shorter = responsive, longer = smooth
• Match to timeframe used
Section 7: Analysis Frequency Control
Maximum Analysis Points Per Hour (1-5)
• Default: 3
• Limits pattern frequency
• Prevents overtrading
• Scalpers: 4-5, Swing traders: 1-2
Section 8: Target Level Configuration
Target Calculation Method
• Default: Market Adaptive
• Three modes available:
- Fixed: Uses set point distances
- Dynamic: ATR-based calculations
- Market Adaptive: Structure-based levels
Minimum Target/Risk Ratio (1.0-3.0)
• Default: 1.5
• Minimum acceptable reward vs risk
• Higher filters lower probability setups
• Professional standard: 1.5-2.0
Fixed Mode Settings:
• Fixed Target Distance: 50 points default
• Fixed Invalidation Distance: 30 points default
• Use for consistent instruments
Dynamic Mode Settings:
• Dynamic Target Multiplier: 1.8x ATR default
• Dynamic Invalidation Multiplier: 1.0x ATR default
• Adapts to volatility automatically
Market Adaptive Settings:
• Use Structure Levels: True (default)
• Structure Level Buffer: 0.1% default
• Places levels at actual support/resistance
Section 9: Visual Display Settings
Color Theme Options
• Professional (Teal/Red)
- Bullish: Teal (#26a69a)
- Bearish: Red (#ef5350)
- Neutral: Gray (#78909c)
- Best for: Traditional traders, clean appearance
• Dark (Neon Green/Pink)
- Bullish: Neon Green (#00ff88)
- Bearish: Hot Pink (#ff0044)
- Neutral: Dark Gray (#333333)
- Best for: Dark theme users, high contrast
• Light (Green/Red Classic)
- Bullish: Green (#4caf50)
- Bearish: Red (#f44336)
- Neutral: Light Gray (#9e9e9e)
- Best for: Light backgrounds, traditional colors
• Vibrant (Cyan/Magenta)
- Bullish: Cyan (#00ffff)
- Bearish: Magenta (#ff00ff)
- Neutral: Medium Gray (#888888)
- Best for: High visibility, modern appearance
Dashboard Position
• Options: Top Left, Top Right, Bottom Left, Bottom Right, Middle Left, Middle Right
• Default: Top Right
• Choose based on chart layout preference
Dashboard Size
• Full: Complete information display (desktop)
• Mobile: Compact view for small screens
• Default: Full
Analysis Display Style
• Arrows : Simple directional markers
• Labels : Detailed text information
• Zones : Colored areas showing pattern regions
• Default: Labels (most informative)
Display Options:
• Display Analysis Strength: Shows star rating
• Display Target Levels: Shows target/invalidation lines
• Display Market Regime: Shows regime in pattern labels
---
HOW TO USE SMPS - DETAILED GUIDE
Understanding the Dashboard
Top Row - Header
• SMPS Dashboard title
• VALUE column: Current readings
• STATUS column: Condition assessments
Market Regime Row
• Shows: TRENDING, RANGING, VOLATILE, QUIET, or TRANSITIONAL
• Color coding: Green = Favorable, Red = Caution
• Status: FAVORABLE or CAUTION trading conditions
Market Score Row
• Percentage from 0-100%
• Above 60% = Strong conditions
• 40-60% = Moderate conditions
• Below 40% = Weak conditions
Structure Row
• Direction: BULLISH, BEARISH, or NEUTRAL
• Status: INTACT or BREAK
• Orange BREAK indicates structure failure
Volume Flow Row
• Direction: BUYING or SELLING
• Intensity: STRONG or WEAK
• Color indicates dominant pressure
Momentum Row
• Numerical momentum value
• Positive = Upward pressure
• Negative = Downward pressure
Volume Status Row
• INST = Institutional activity detected
• HIGH = Above average volume
• NORM = Normal volume levels
Adaptive Mode Row
• ACTIVE = Parameters adjusting
• STATIC = Fixed parameters
• Shows required confirmations
Analysis Level Row
• Minimum strength level setting
• Pattern separation in bars
Market State Row
• Current analysis: BULLISH, BEARISH, NEUTRAL
• Shows analysis price level when active
T:R Ratio Row
• Current target to risk ratio
• GOOD = Meets minimum requirement
• LOW = Below minimum threshold
Strength Row
• BULL or BEAR dominance
• Numerical strength value 0-100
Price Row
• Current price
• Percentage change
Last Analysis Row
• Previous pattern direction
• Bars since last pattern
Reading Pattern Signals
Bullish Structure Pattern
• Upward triangle or "Bullish Structure" label
• Star rating shows strength (★★★★★ = strongest)
• Green line = potential target level
• Red dashed line = invalidation level
• Appears below price bars
Bearish Structure Pattern
• Downward triangle or "Bearish Structure" label
• Star rating indicates reliability
• Green line = potential target level
• Red dashed line = invalidation level
• Appears above price bars
Pattern Strength Interpretation
• ★★★★★ = 6 confirmations (exceptional)
• ★★★★☆ = 5 confirmations (strong)
• ★★★☆☆ = 4 confirmations (moderate)
• ★★☆☆☆ = 3 confirmations (minimum)
• Below minimum = filtered out
Visual Elements on Chart
Lines and Levels:
• Gray Line = 21 EMA trend reference
• Green Stepline = Dynamic support level
• Red Stepline = Dynamic resistance level
• Green Solid Line = Active target level
• Red Dashed Line = Active invalidation level
Pattern Markers:
• Triangles = Arrow display mode
• Text Labels = Label display mode
• Colored Boxes = Zone display mode
Target Completion Labels:
• "Target" = Price reached target level
• "Invalid" = Pattern invalidated by price
---
RECOMMENDED USAGE BY TIMEFRAME
1-Minute Charts (Scalping)
• Sensitivity: 0.8-1.2
• Noise Reduction: 3-4
• Pattern Separation: 3-5 bars
• High Confirmation: Optional
• Best for: Quick intraday moves
5-Minute Charts (Precision Intraday)
• Sensitivity: 1.0 (default)
• Noise Reduction: 4 (default)
• Pattern Separation: 8 bars
• High Confirmation: Enabled
• Best for: Day trading
15-Minute Charts (Short Swing)
• Sensitivity: 1.0-1.5
• Noise Reduction: 4-5
• Pattern Separation: 10-12 bars
• High Confirmation: Enabled
• Best for: Intraday swings
30-Minute to 1-Hour (Position Trading)
• Sensitivity: 1.5-2.0
• Noise Reduction: 5-7
• Pattern Separation: 15-20 bars
• Regime Period: 75-100
• Best for: Multi-day positions
Daily Charts (Swing Trading)
• Sensitivity: 1.8-2.0
• Noise Reduction: 6-7
• Pattern Separation: 20 bars
• All filters enabled
• Best for: Long-term analysis
---
MARKET-SPECIFIC SETTINGS
Forex Pairs
• Minimum Move: 0.05-0.10%
• Institutional Threshold: 1.5-2.0
• Volume Surge: 1.8-2.2
• Target Mode: Dynamic or Market Adaptive
Stock Indices (ES, NQ, YM)
• Minimum Move: 0.10-0.15%
• Institutional Threshold: 2.0-2.5
• Volume Surge: 2.5-3.0
• Target Mode: Market Adaptive
Individual Stocks
• Minimum Move: 0.15-0.25%
• Institutional Threshold: 2.0-2.5
• Volume Surge: 2.5-3.5
• Target Mode: Dynamic
Cryptocurrency
• Minimum Move: 0.20-0.50%
• Institutional Threshold: 2.5-3.5
• Volume Surge: 3.0-4.5
• Target Mode: Dynamic
• Increase noise reduction
---
PRACTICAL APPLICATION EXAMPLES
Example 1: Strong Trending Market
Dashboard Reading:
• Market Regime: TRENDING
• Market Score: 75%
• Structure: BULLISH, INTACT
• Volume Flow: BUYING, STRONG
• Momentum: +0.45
Interpretation:
• Strong uptrend environment
• Institutional buying present
• Look for bullish patterns as continuation
• Higher probability of success
• Consider using lower sensitivity
Example 2: Range-Bound Conditions
Dashboard Reading:
• Market Regime: RANGING
• Market Score: 35%
• Structure: NEUTRAL
• Volume Flow: SELLING, WEAK
• Momentum: -0.05
Interpretation:
• No clear direction
• Low opportunity environment
• Patterns are less reliable
• Consider waiting for regime change
• Or switch to a range-trading approach
Example 3: Structure Break Alert
Dashboard Reading:
• Previous: BULLISH structure
• Current: Structure BREAK
• Volume: INST flag active
• Momentum: Shifting negative
Interpretation:
• Trend reversal potentially beginning
• Institutional participation detected
• Watch for bearish pattern confirmation
• Adjust bias accordingly
• Increase caution on long positions
Example 4: Volatile Market
Dashboard Reading:
• Market Regime: VOLATILE
• Market Score: 45%
• Adaptive Mode: ACTIVE
• Confirmations: Increased to 6
Interpretation:
• Choppy conditions
• Parameters auto-adjusted
• Fewer but higher quality patterns
• Wider stops may be needed
• Consider reducing position size
Below are a few chart examples of the Smart Money Precision Structure (SMPS) indicator in action.
• Example 1 – Bullish Structure Detection on SOLUSD 5m
• Example 2 – Bearish Structure Detected with Strong Confluence on SOLUSD 5m
---
TROUBLESHOOTING GUIDE
No Patterns Appearing
Check these settings:
• High Confirmation Mode may be too restrictive
• Minimum Strength Level may be too high
• Market Clarity threshold may be too high
• Regime filter may be blocking patterns
• Try increasing sensitivity
Too Many Patterns
Adjust these settings:
• Enable High Confirmation Mode
• Increase Minimum Strength Level to 5
• Increase Pattern Separation
• Reduce Sensitivity below 1.0
• Enable all technical filters
Dashboard Shows "CAUTION"
This indicates:
• Market conditions are unfavorable
• Regime is RANGING or QUIET
• Market score is low
• Consider waiting for better conditions
• Or adjust expectations accordingly
Patterns Not Reaching Targets
Consider:
• Market may be choppy
• Volatility may have changed
• Try Dynamic target mode
• Reduce target/risk ratio requirement
• Check if regime is VOLATILE
---
ALERTS CONFIGURATION
Alert Message Format
Alerts include:
• Pattern type (Bullish/Bearish)
• Strength rating
• Market regime
• Analysis price level
• Target and invalidation levels
• Strength percentage
• Target/Risk ratio
• Educational disclaimer
Setting Up Alerts
• Click Alert button on TradingView
• Select SMPS indicator
• Choose alert frequency
• Customize message if desired
• Alerts fire on pattern detection
---
DATA WINDOW INFORMATION
The Data Window displays:
• Market Regime Score (0-100)
• Market Structure Bias (-1 to +1)
• Bullish Strength (0-100)
• Bearish Strength (0-100)
• Bull Target/Risk Ratio
• Bear Target/Risk Ratio
• Relative Volume
• Momentum Value
• Volume Flow Strength
• Bull Confirmations Count
• Bear Confirmations Count
---
BEST PRACTICES AND TIPS
For Beginners
• Start with default settings
• Use High Confirmation Mode
• Focus on TRENDING regime only
• Paper trade first
• Learn one timeframe thoroughly
For Intermediate Users
• Experiment with sensitivity settings
• Try different target modes
• Use multiple timeframes
• Combine with price action analysis
• Track pattern success rate
For Advanced Users
• Customize per instrument
• Create setting templates
• Use regime information for bias
• Combine with other indicators
• Develop systematic rules
---
IMPORTANT DISCLAIMERS
• This indicator is for educational and informational purposes only
• Not financial advice or a trading system
• Past performance does not guarantee future results
• Trading involves substantial risk of loss
• Always use appropriate risk management
• Verify patterns with additional analysis
• The author is not a registered investment advisor
• No liability accepted for trading losses
---
VERSION NOTES
Version 1.0.0 - Initial Release
• Six-layer confluence system
• Adaptive parameter technology
• Institutional volume detection
• Market regime classification
• Structure break identification
• Real-time dashboard
• Multiple display modes
• Comprehensive settings
## My Final Thoughts
Smart Money Precision Structure represents an advanced approach to market analysis, bringing institutional-grade techniques to retail traders through intelligent automation and multi-dimensional evaluation. By combining six analytical frameworks with adaptive parameter adjustment, SMPS provides comprehensive market intelligence that single indicators cannot achieve.
The indicator serves as an educational tool for understanding how professional traders analyze markets, while providing practical pattern detection for those seeking to improve their technical analysis. Remember that all trading involves risk, and this tool should be used as part of a complete analysis approach, not as a standalone trading system.
- BullByte
Priceaction
Liquidity Sweep Breakout - LSBLiquidity Sweep Breakout - LSB
A professional session-based breakout system designed for OANDA:USDJPY and other JPY pairs.
Not guesswork, but precision - built on detailed observation of institutional moves to capture clear trade direction daily.
Master the Market’s Daily Bank Flow.
---
Strategy Detail:
I discovered this strategy after carefully studying how Japanese banks influence the forex market during their daily settlement period. Banks are some of the biggest players in the financial world, and when they adjust or settle their accounts in the morning, it often creates a push in the market. From years of observation, I noticed a consistent pattern, once banks finish their settlements, the market usually continues moving in the same direction that was formed right after those actions. This daily banking flow often sets the tone for the entire trading session, especially for JPY pairs like USDJPY.
To capture this move, I built the indicator so that it follows the bank-driven trend with clear rules for entries, stop-loss (SL), and take-profit (TP). The system is designed with professional risk management in mind. By default, it assumes a $10,000 account size, risks only 1% of that balance per trade, and targets a 1:1.5 reward-to-risk ratio. This means for every $100 risked, the potential profit is $150. Such controlled risk makes the system safer and more sustainable for long-term traders. At the same time, users are not limited to this setup, they can adjust the account balance in the settings, and the indicator will automatically recalculate the lot size and risk levels based on their own capital. This ensures the strategy works for small accounts and larger accounts alike.
🌍 Why It Works
Fundamentally driven: Based on **daily Japanese banking settlement flows**.
Session-specific precision: Targets the exact window when USDJPY liquidity reshapes.
Risk-managed: Always calculates lot size based on account and risk preferences.
Automatable: With webhook + MT5 EA, it can be fully hands-free.
---
✅ Recommended
Pair: USDJPY (best observed behavior).
Timeframe: 3-Minute chart.
Platform: TradingView Premium (for webhooks).
Execution: MT5 via EA.
---
🔎 Strategy Concept
The Tokyo Magic Breakout (TMB) is built on years of session observation and the unique daily rhythm of the Japanese banking system.
Every morning between 5:50 AM – 6:10 AM PKT (09:50 – 10:10 JST), Japanese banks perform daily reconciliation and settlement. This often sets the tone for the USDJPY direction of the day.
This strategy isolates that critical moment of liquidity adjustment and waits for a clean breakout confirmation. Instead of chasing noise, it executes only when price action is aligned with the Tokyo market’s hidden flows.
---
🕒 Timing Logic
Session Start: 5:00 AM PKT (Tokyo market open range).
Magic Candle: The 5:54 AM PKT candle is marked as the reference “breakout selector.”
Checkpoints: First confirmation at 6:30 AM PKT, then every 15 minutes until 8:30 AM PKT.
* If price stays inside the magic range → wait.
* If a breakout happens but the candle wick touches the range → wait for the next checkpoint.
* If by 8:30 AM PKT no clean breakout occurs → the day is marked as No Trade Day (NTD).
👉 Recommended timeframe: 3-Minute chart (3M) for precise signals.
---
📈 Trade Execution
Entry: Clean break above/below the magic candle’s range.
Stop-Loss: Opposite side of the Tokyo session high/low.
Take-Profit: Calculated by Reward\:Risk ratio (default 1.5:1).
Lot Size: Auto-calculated based on your risk model:
* Fixed Dollar
* % of Equity
* Conservative (minimum of both).
Visuals include:
✅ Entry/SL/TP lines
✅ Shaded risk (red) and reward (green) zones
✅ Trade labels (Buy/Sell with lot size & levels)
✅ TP/SL hit markers
---
🔔 Alerts & Automation (AutoTMB)
This strategy is fully automation-ready with EA + MT5:
1. Enable alerts in TMB settings.
2. Insert your PineConnector License Key.
3. Configure your risk management preferences.
4. Create a TradingView alert → in the message box simply type:
Pine Script®
{{alert_message}}
and set the EA webhook.
Now, every breakout trade (with exact entry, SL, TP, and lot size) is sent instantly.
👉 On your MT5:
* Install the EA.
* Use the same license key.
* Run it on a VPS or local MT5 terminal.
You now have a hands-free trading system: AutoTMB.
Sniper Fade Indicator™️Sniper Fade Indicator™️
The Sniper Fade Indicator™️ is built to help traders spot potential fade opportunities — areas where price may exhaust and reverse during key sessions.
Features:
Fade Zone Mapping → visual zones highlighting likely reversal areas.
Time-Based Filters → optimized for London & New York sessions.
Clean Visual Overlays → boxes & markers for quick recognition.
Customizable Alerts → get notified when fade conditions align.
Works Across Markets → Forex, Futures, and Indices (including NAS100).
How to Use:
Use this indicator to plan trades around potential exhaustion zones. It works best when combined with daily bias context and liquidity levels. Always apply risk management and confirmation from your own strategy.
Notes:
Educational purposes only.
Not financial advice.
For best results, test in multiple markets and sessions.
PriceActionLibrary "PriceAction"
Hi all!
This library will help you to plot the market structure and liquidity. By now, the only part in the price action section is liquidity, but I plan to add more later on. The market structure will be split into two parts, 'Internal' and 'Swing' with separate pivot lengths. For these two trends it will show you:
• Break of structure (BOS)
• Change of character (CHoCH/CHoCH+) (mandatory)
• Equal high/low (EQH/EQL)
It's inspired by "Smart Money Concepts (SMC) " by LuxAlgo.
This library is now the same code as the code in my library 'MarketStructure', but it has evolved into a more price action oriented library than just a market structure library. This is more accurate and I will continue working on this library to keep it growing.
This code does not provide any examples, but you can look at my indicators 'Market structure' () and 'Order blocks' (), where I use the 'MarketStructure' library (which is the same code).
Market structure
Both of these market structures can be enabled/disabled by setting them to 'na'. The pivots lengths can be configured separately. The pivots found will be the 'base' of and will show you when price breaks it. When that happens a break of structure or a change of character will be created. The latest 5 pivots found within the current trends will be kept to take action on. They are cleared on a change of character, so nothing (break of structures or change of characters) can happen on pivots before a trend change. The internal market structure is shown with dashed lines and swing market structure is shown with solid lines.
Labels for a change of character can have either the text 'CHoCH' or 'CHoCH+'. A Change of Character plus is formed when price fails to form a higher high or a lower low before reversing. Note that a pivot that is created after the change of character might have a higher high or a lower low, thus not making the break a 'CHoCH+'. This is not changed after the pivot is found but is kept as is.
A break of structure is removed if an earlier pivot within the same trend is broken, i.e. another break of structure (with a longer distance) is created. Like in the images below, the first pivot (in the first image) is removed when an earlier pivot's higher price within the same trend is broken (the second image):
[image [https://www.tradingview.com/x/PRP6YtPA/
Equal high/lows have a configurable color setting and can be configured to be extended to the right. Equal high/lows are only possible if it's not been broken by price. A factor (percentage of width) of the Average True Length (of length 14) that the pivot must be within to to be considered an Equal high/low. Equal highs/lows can be of 2 pivots or more.
You are able to show the pivots that are used. "HH" (higher high), "HL" (higher low), "LH" (lower high), "LL" (lower low) and "H"/"L" (for pivots (high/low) when the trend has changed) are the labels used. There are also labels for break of structures ('BOS') and change of characters ('CHoCH' or 'CHoCH+'). The size of these texts is set in the 'FontSize' setting.
When programming I focused on simplicity and ease of read. I did not focus on performance, I will do so if it's a problem (haven't noticed it is one yet).
You can set alerts for when a change of character, break of structure or an equal high/low (new or an addition to a previously found) happens. The alerts that are fired are on 'once_per_bar_close' to avoid repainting. This has the drawback to alert you when the bar closes.
Price action
The indicator will create lines and zones for spotted liquidity. It will draw a line (with dotted style) at the price level that was liquidated, but it will also draw a zone from that level to the bar that broke the pivot high or low price. If that zone is large the liquidation is big and might be significant. This can be disabled in the settings. You can also change the confirmation candles (that does not close above or below the pivot level) needed after a liquidation and how many pivots back to look at.
The lines and boxes drawn will look like this if the color is orange:
Hope this is of help!
Will draw out the market structure for the disired pivot length.
Liqudity(liquidity)
Will draw liquidity.
Parameters:
liquidity (Liquidity) : The 'PriceAction.Liquidity' object.
Pivot(structure)
Sets the pivots in the structure.
Parameters:
structure (Structure)
PivotLabels(structure)
Draws labels for the pivots found.
Parameters:
structure (Structure)
EqualHighOrLow(structure)
Draws the boxes for equal highs/lows. Also creates labels for the pivots included.
Parameters:
structure (Structure)
BreakOfStructure(structure)
Will create lines when a break of strycture occures.
Parameters:
structure (Structure)
Returns: A boolean that represents if a break of structure was found or not.
ChangeOfCharacter(structure)
Will create lines when a change of character occures. This line will have a label with "CHoCH" or "CHoCH+".
Parameters:
structure (Structure)
Returns: A boolean that represents if a change of character was found or not.
VisualizeCurrent(structure)
Will create a box with a background for between the latest high and low pivots. This can be used as the current trading range (if the pivots broke strucure somehow).
Parameters:
structure (Structure)
StructureBreak
Holds drawings for a structure break.
Fields:
Line (series line) : The line object.
Label (series label) : The label object.
Pivot
Holds all the values for a found pivot.
Fields:
Price (series float) : The price of the pivot.
BarIndex (series int) : The bar_index where the pivot occured.
Type (series int) : The type of the pivot (-1 = low, 1 = high).
Time (series int) : The time where the pivot occured.
BreakOfStructureBroken (series bool) : Sets to true if a break of structure has happened.
LiquidityBroken (series bool) : Sets to true if a liquidity of the price level has happened.
ChangeOfCharacterBroken (series bool) : Sets to true if a change of character has happened.
Structure
Holds all the values for the market structure.
Fields:
LeftLength (series int) : Define the left length of the pivots used.
RightLength (series int) : Define the right length of the pivots used.
Type (series Type) : Set the type of the market structure. Two types can be used, 'internal' and 'swing' (0 = internal, 1 = swing).
Trend (series int) : This will be set internally and can be -1 = downtrend, 1 = uptrend.
EqualPivotsFactor (series float) : Set how the limits are for an equal pivot. This is a factor of the Average True Length (ATR) of length 14. If a low pivot is considered to be equal if it doesn't break the low pivot (is at a lower value) and is inside the previous low pivot + this limit.
ExtendEqualPivotsZones (series bool) : Set to true if you want the equal pivots zones to be extended.
ExtendEqualPivotsStyle (series string) : Set the style of equal pivot zones.
ExtendEqualPivotsColor (series color) : Set the color of equal pivot zones.
EqualHighs (array) : Holds the boxes for zones that contains equal highs.
EqualLows (array) : Holds the boxes for zones that contains equal lows.
BreakOfStructures (array) : Holds all the break of structures within the trend (before a change of character).
Pivots (array) : All the pivots in the current trend, added with the latest first, this is cleared when the trend changes.
FontSize (series int) : Holds the size of the font displayed.
AlertChangeOfCharacter (series bool) : Holds true or false if a change of character should be alerted or not.
AlertBreakOfStructure (series bool) : Holds true or false if a break of structure should be alerted or not.
AlerEqualPivots (series bool) : Holds true or false if equal highs/lows should be alerted or not.
Liquidity
Holds all the values for liquidity.
Fields:
LiquidityPivotsHigh (array) : All high pivots for liquidity.
LiquidityPivotsLow (array) : All low pivots for liquidity.
LiquidityConfirmationBars (series int) : The number of bars to confirm that a liquidity is valid.
LiquidityPivotsLookback (series int) : A number of pivots to look back for.
FontSize (series int) : Holds the size of the font displayed.
PriceAction
Holds all the values for the general price action and the market structures.
Fields:
Liquidity (Liquidity)
Swing (Structure) : Placeholder for all objects used for the swing market structure.
Internal (Structure) : Placeholder for all objects used for the internal market structure.
Previous Candle High/Low (Global Rays)Previous Candle High/Low (Global Rays, Corrected)
This indicator tracks the high and low of the most recently closed candle and projects them forward as global horizontal rays.
Features:
✅ Automatically updates the levels once a candle fully closes.
✅ Draws persistent lines at the previous candle’s high (green) and low (red), extending them into the future.
✅ Highlights real-time breakouts:
✅ Includes built-in alert conditions for both breakout events.
How to Use:
Use the levels as reference points for breakout trades, liquidity sweeps, or stop hunts.
Alerts can help you catch moves without needing to constantly watch the chart.
Works on any timeframe and symbol.
ICT Multi-Session Hi/L/EQ
Indicator Overview: The "ICT Multi-Session Hi/L/EQ" indicator is a versatile tool designed for traders utilizing Inner Circle Trader (ICT) strategies, enabling the visualization of key price levels—High (H), Low (L), Equilibrium (EQ, the midpoint between high and low), and Optimal Trade Entry (OTE) levels at 61.8%, 70%, and 79% of the session range—across up to 6 customizable market sessions on a single chart.
Core Functionality: It dynamically tracks and plots session-specific highs, lows, and EQ, updating in real-time as price action evolves, providing traders with immediate insights into potential support, resistance, and balance zones during defined periods like the Asian, London, or New York sessions. This multi-session capability allows for comprehensive market analysis without the need for multiple indicators.
Unique OTE Auto Detection: A standout feature is the automatic detection and directional calculation of OTE levels. When a session forms a new high, OTE levels are recalculated downward from the high to the low (bearish bias), highlighting potential short entry zones. Conversely, a new low triggers upward OTE levels from the low to the high (bullish bias), signaling long opportunities. This auto-detection adapts to market momentum without manual input, making it highly unique for ICT traders seeking efficient entry signals based on range retracements. No other indicator combines this session-based auto-directionality with OTE percentages tailored for ICT methodologies.
Left-Side Trimming Innovation: Another innovative aspect is the left-side trimming option, which allows users to limit the historical extension of lines to a user-defined number of bars (e.g., the last 8 bars), reducing chart clutter and focusing attention on recent price action. This feature is particularly unique as it addresses a common issue in multi-session indicators where full historical lines can overwhelm the chart, making it ideal for scalpers or day traders who prioritize clarity.
Without trimming the left side:
And when left side trimming is enabled:
Multi-Session Customization: Support for up to 6 independent sessions, each with individual time ranges (HHMM-HHMM format), timezones, and enable/disable toggles, offers unparalleled flexibility. Traders can configure sessions for specific market phases (e.g., Asia: 2000-0000 UTC) and customize colors, line styles (solid, dashed, dotted), and label properties separately, ensuring a personalized setup for global trading environments.
Auto-Deletion at Market Close: Levels can be automatically deleted at the session's calculated market close (17:00 NY timestamp), keeping the chart clean for the next session or day, a useful feature for avoiding accumulation of outdated levels.
Label and Visual Controls: Users can toggle labels on/off, adjust text color, background color, transparency, and size (tiny, small, normal, large), with options to stick labels to the right for better visibility. This level of customization ensures the indicator integrates seamlessly with any chart style.
No External Dependencies: All calculations are performed using built-in Pine Script functions on the chart's price data, making it self-contained and reliable without needing external libraries or data sources.
Professional and Compliant Design: Developed to comply with TradingView House Rules, this indicator is original in its combination of multi-session plotting, directional OTE auto-detection, and left-side trimming, providing traders with a robust tool for ICT-based analysis.
How It Works
Session Setup: Define session times and timezones in settings; the script tracks high/low from session start.
Level Calculation: High/low update on every bar; EQ is the midpoint. OTE levels recalculate directionally upon new extremes.
Drawing Mechanism: Lines extend with user-defined padding; trimming cuts left side for cleanliness.
Update Logic: OTE direction shifts based on new high/low detection, with levels refreshed accordingly.
Deletion: Auto-deletes at session end if enabled, resetting for new sessions.
Uniqueness and Innovation
Session OTE Auto Detection: Automatically adjusts OTE direction based on new highs/lows, a feature not commonly available in other indicators, enabling hands-free bias identification.
Left-Side Trimming: Unique clutter-reduction tool that trims historical lines, improving chart readability—a rare capability in session-based indicators.
Multi-Session Support: Handles 6 sessions independently, with per-session OTE, making it a one-stop tool for global market analysis.
Directional OTE: Adapts to market bias, offering dynamic entry zones tailored to ICT strategies.
Full Customization: Extensive controls for visuals and behavior, ensuring adaptability to individual trading styles.
User Guide: How to Use the "ICT Multi-Session Hi/L/EQ" Indicator
This guide provides a comprehensive, step-by-step explanation of how to use the "ICT Multi-Session Hi/L/EQ" indicator on TradingView. The indicator is designed to help Inner Circle Trader (ICT) enthusiasts plot key price levels—High (H), Low (L), Equilibrium (EQ, the midpoint), and Optimal Trade Entry (OTE) levels at 61.8%, 70%, and 79% of the session range—across up to 6 customizable sessions. It also includes a Candle Open line for midnight or custom times. I'll break it down by settings groups, explaining each option, its purpose, how to tweak it, and tips for optimal use. All settings are accessible via the indicator's settings panel (cog icon next to the indicator name on your chart).
General Settings
These control global behaviors that apply to all sessions and levels. They allow you to customize the overall appearance and functionality of the indicator on your chart.
Line Padding (Bars Beyond Current): This integer input (default: 2, minimum: 0) extends the plotted lines beyond the current bar by the specified number of bars.
How to Use/Tweak: Increase this value (e.g., to 5) for longer forward projections of levels, useful for anticipating future price action. Decrease to 0 for no extension. It's ideal for traders who like to see levels projected ahead in volatile markets.
Tip: On lower timeframes (e.g., 5M), higher padding (4-6) helps visualize potential targets; on higher timeframes (1H), keep it low to avoid clutter.
Label Padding (Bars from Line End): An integer (default: 3, minimum: 0) that positions labels away from the end of the lines by the specified bars.
How to Use/Tweak: Adjust to move labels further right (higher value) or closer to the line end (lower value). This prevents label overlap with price action or other indicators.
Tip: If your chart has many labels, set to 5+ for better readability; use 1-2 for minimalistic setups.
Enable Left-Side Trimming: A boolean toggle (default: true) to trim lines from the left, limiting their historical extension.
How to Use/Tweak: Turn on to reduce chart clutter by showing only recent bars of the lines; turn off for full historical view. Pairs with "Left Trim Bars" for fine-tuning.
Tip: Enable for clean charts during live trading; disable for backtesting to see long-term patterns.
Left Trim Bars: An integer (default: 8, minimum: 1) specifying how many bars back from the current bar to trim lines when left trimming is enabled.
How to Use/Tweak: Set higher (e.g., 20) for more historical visibility while trimmed; lower (e.g., 4) for ultra-clean charts focusing on immediate action.
Tip: Use 8-12 for intraday trading on 15M charts; adjust based on timeframe to balance context and clarity.
Stick Labels to Right of Current Bar: A boolean toggle (default: true) to position labels at the right end of the lines.
How to Use/Tweak: Enable for labels to "stick" right, keeping them visible as the chart updates; disable for labels at the current bar position.
Tip: Keep enabled for real-time trading to avoid labels shifting left; disable for static analysis.
Delete Previous Session Lines/Labels on Market Close: A boolean toggle (default: true) to automatically delete session lines and labels at the calculated market close (17:00 NY time).
How to Use/Tweak: Enable to keep the chart clean by clearing old sessions; disable to retain historical levels for reference.
Tip: Enable for live trading to focus on active sessions; disable for educational reviews or backtesting.
Session 1 to 6 Settings
Each session has identical options, allowing independent configuration. I'll describe Session 1; replicate for others by changing the number (e.g., Session 2 uses "Session 2 Name", etc.).
Session Name: String input (default: "Asia" for Session 1) to label the session (e.g., "Asia" or "London").
How to Use/Tweak: Enter a descriptive name like "NY Open" for clarity in labels (e.g., "NY Open High").
Tip: Use short names to avoid long labels; this appears in all session labels for easy identification.
Session Time (HHMM-HHMM): Session input (default: "2000-0000" for Session 1) to define the start and end time.
How to Use/Tweak: Set the time range (e.g., "0930-1600" for NY session). Ensure start < end in 24-hour format.
Tip: Use for custom sessions like "London Kill Zone" (0800-1100); validate with the timezone setting.
Session Timezone: String selection (default: "America/New_York") from a list of options.
How to Use/Tweak: Choose the timezone matching your session (e.g., "Europe/London" for UK times).
Tip: Align with session name for accuracy; "Etc/UTC" for universal times.
Enable Session Drawings: Boolean toggle (default: true for Session 1, false for others) to activate the session's lines and labels.
How to Use/Tweak: Enable to show the session; disable to hide it without removing settings.
Tip: Enable one session at a time for focused analysis; use for multi-session overlays.
Enable EQ Line/Label: Boolean toggle (default: true) to show the EQ line and label.
How to Use/Tweak: Enable for midpoint plotting; disable to hide EQ while keeping high/low.
Tip: Useful for ICT fair value gaps; toggle off if focusing on extremes only.
Enable Labels: Boolean toggle (default: true) to show labels for high, low, EQ, and OTE levels.
How to Use/Tweak: Enable for annotated levels; disable for lines-only view.
Tip: Disable on crowded charts; customize label size for better readability.
Enable OTE Levels: Boolean toggle (default: false) to activate OTE levels (61.8%, 70%, 79%).
How to Use/Tweak: Enable for OTE plotting; disable to hide while keeping high/low/EQ.
Tip: Toggle on for entry zone identification; adjust colors for visual distinction.
Line Color: Color input (default varies by session, e.g., blue for Session 1) for lines.
How to Use/Tweak: Choose a color to differentiate sessions (e.g., green for bullish).
Tip: Use contrasting colors for multiple sessions; match your chart theme.
Line Style: String selection (default: "Dashed") from "Solid", "Dashed", "Dotted".
How to Use/Tweak: Select style for line appearance (e.g., dotted for OTE).
Tip: Use dashed for OTE to distinguish from solid high/low lines.
Label Text Color: Color input (default: white) for label text.
How to Use/Tweak: Set to contrast with background (e.g., black on white charts).
Tip: Use bright colors for visibility; match line color for cohesion.
Label Background Color: Color input (default: black) for label background.
How to Use/Tweak: Choose a semi-transparent background for readability.
Tip: Set to chart background color for subtle labels.
Label Transparency (0=opaque, 100=transparent): Integer input (default: 70) for label opacity.
How to Use/Tweak: Lower for solid labels (e.g., 0); higher for see-through (e.g., 90).
Tip: Use 50-80 for balance; 100 hides background entirely.
Label Text Size: String selection (default: "Small") from "Tiny", "Small", "Normal", "Large".
How to Use/Tweak: Choose size for label visibility (e.g., "Large" for emphasis).
Tip: "Small" for crowded charts; "Large" for main levels.
OTE 61.8% Color: Color input (default: purple) for 61.8% OTE line.
How to Use/Tweak: Customize to highlight the 61.8% level (e.g., gold for key entry).
Tip: Use distinct colors for each OTE level to differentiate (e.g., purple, orange, teal).
OTE 70% Color: Color input (default: orange) for 70% OTE line.
How to Use/Tweak: Set to a secondary color for mid-range OTE.
Tip: Coordinate with overall theme; use faded shades for less prominence.
OTE 79% Color: Color input (default: teal) for 79% OTE line.
How to Use/Tweak: Choose for the deepest OTE level (e.g., red for aggressive entries).
Tip: Make it stand out if 79% is your preferred entry zone.
Candle Open Settings
This section adds a custom open line (e.g., midnight open) with similar customization.
Use Time 1: Boolean toggle (default: true) to enable the first time setting.
How to Use/Tweak: Enable for the open line; disable to hide.
Tip: Use for midnight open in ICT setups; toggle off if not needed.
Name: String input (default: "Midnight Open") for the open line label.
How to Use/Tweak: Change to "Daily Open" or similar for context.
Tip: Keep short for clean labels.
Start Time: String input (default: "0000") for open range start.
How to Use/Tweak: Set in HHMM format (e.g., "0000" for midnight).
Tip: Ensure valid (0000-2359); pair with end time for narrow ranges.
End Time: String input (default: "0001") for open range end.
How to Use/Tweak: Set slightly after start (e.g., "0001") for precise open capture.
Tip: Use for quick ranges; start < end always.
Color: Color input (default: teal) for the open line.
How to Use/Tweak: Customize to distinguish from session lines.
Tip: Use gray for subtle open lines.
Timezone: String selection (default: "America/New_York") for the open line.
How to Use/Tweak: Choose matching your chart or session.
Tip: "Etc/UTC" for universal opens.
Enable Line/Label: Boolean toggle (default: true) for the open line/label.
How to Use/Tweak: Enable to show; disable to hide.
Tip: Use for daily opens in ICT; toggle off for session-only focus.
Enable Label: Boolean toggle (default: true) for the open label.
How to Use/Tweak: Enable for named label; disable for line-only.
Tip: Disable if labels clutter the chart.
Auto Delete at 18:00 NY: Boolean toggle (default: true) to delete at 18:00 NY.
How to Use/Tweak: Enable for cleanup; disable to retain.
Tip: Align with new day start; useful for resetting.
Stick Label to Right: Boolean toggle (default: true) for label positioning.
How to Use/Tweak: Enable for right-side labels; disable for current bar.
Tip: Keep enabled for visibility as chart updates.
Enable Left-Side Trimming: Boolean toggle (default: true) for open line trimming.
How to Use/Tweak: Enable to trim historical open line; disable for full view.
Tip: Similar to session trimming; use for clean charts.
Left Trim Bars: Integer input (default: 8) for open line trim bars.
How to Use/Tweak: Set the number of bars back to show when trimming.
Tip: Lower for more focus; higher for context.
Line Padding (Bars Beyond Current): Integer input (default: 2) for open line extension.
How to Use/Tweak: Increase for forward projection; decrease for no extension.
Tip: Match general padding for consistency.
Label Padding (Bars from Line End): Integer input (default: 3) for open label position.
How to Use/Tweak: Adjust to move label away from line end.
Tip: Higher for spaced labels; lower for compactness.
Line Style: String selection (default: "Solid") for open line style.
How to Use/Tweak: Choose "Dashed" or "Dotted" for distinction.
Tip: Use dotted for subtle opens.
Label Text Color: Color input (default: white) for open label text.
How to Use/Tweak: Set to contrast with background.
Tip: Black for light charts.
Label Background Color: Color input (default: black) for open label background.
How to Use/Tweak: Customize for visibility.
Tip: Semi-transparent for blend.
Label Transparency: Integer input (default: 70) for open label opacity.
How to Use/Tweak: 0 for opaque; 100 for transparent.
Tip: 50-80 for balance.
Label Text Size: String selection (default: "Small") for open label size.
How to Use/Tweak: "Large" for emphasis; "Tiny" for minimalism.
Tip: "Normal" for standard use.
PreviousDayHLEQCME_MINI:NQ1!
Indicator Overview: The "PreviousDayHLEQ" indicator is an essential tool for traders employing Inner Circle Trader (ICT) methodologies, designed to plot the High (H), Low (L), Equilibrium (EQ, the midpoint between high and low), and Optimal Trade Entry (OTE) levels at 61.8%, 70%, and 79% of the previous trading day's range. It provides a clear visual reference for potential support, resistance, and entry zones based on the prior day's price action, helping traders anticipate continuations or reversals in the current day. This indicator stands out by incorporating directional OTE auto-detection, adjusting levels based on whether the previous day formed a new high or low relative to the day before, offering insights into market bias without manual recalculation.
Core Functionality: It tracks and displays the previous day's high and low, calculating the EQ as the average for balance points, and OTE levels as percentage retracements of the range. The script uses a user-defined trading day definition (with timezone support) to accurately capture the day's extremes, ensuring alignment with global market sessions. This core setup allows traders to quickly identify key ICT levels like fair value gaps or liquidity pools from the prior day.
Unique OTE Auto Detection: One of the indicator's most innovative features is its automatic detection of OTE direction. If the previous day made a new high compared to the day before, OTE levels are calculated downward from the high to the low (bearish bias), highlighting potential short entries. Conversely, a new low triggers upward OTE levels from the low to the high (bullish bias), signaling long opportunities. This auto-detection is unique, as it dynamically adapts to historical price expansion without user input, a capability not found in standard previous day indicators that typically use fixed directions. It empowers ICT traders to gauge carry-over momentum from the prior day, such as in scenarios where a bullish expansion suggests buying dips to the 61.8% level.
Directional Bias Indication: Beyond plotting levels, the OTE calculation inherently indicates the previous day's bias (expansion upward or downward), providing context for current day trades. This unique bias detection helps traders align with market structure, e.g., favoring shorts if OTE is downward-oriented, enhancing decision-making in ICT frameworks like order block identification.
Left-Side Trimming Innovation: The indicator includes a highly unique left-side trimming option, allowing users to restrict the historical extension of lines to a specified number of bars (e.g., the last 8 bars). This reduces visual clutter on charts with long history, focusing attention on recent and relevant price action—a feature rarely seen in previous day indicators, where lines often span the entire chart and obscure current developments. Traders can toggle trimming on/off and adjust the bar count, making it ideal for clean, professional setups.
Customization and Visual Controls: Users can fully customize line colors (separate for high, low, EQ, and each OTE level), styles (solid, dashed, dotted), and label properties (text color, background color, transparency, size). This level of granularity ensures the indicator fits any chart theme or strategy, with options to enable/disable individual elements like EQ or OTE for minimalistic views. The stick-right label option keeps labels visible as the chart updates, preventing overlap.
Auto-Deletion at Trading Day End: Levels can be automatically cleared at the indicator's calculated market close (17:00 NY time), a unique feature that prevents accumulation of outdated data, keeping the chart fresh for the next day. This is particularly useful for day traders who reset their setups daily.
No External Dependencies: The indicator operates solely on chart price data using built-in Pine Script functions, ensuring reliability and compatibility without needing additional libraries or internet access.
How It Works
Previous Day Data Capture: The script identifies the previous trading day using the user-defined timezone and calculates high, low, EQ, and OTE levels based on that day's range.
OTE Calculation: Levels are computed as percentages of the range, with auto-detection switching direction if a new high/low was made relative to the day before.
Drawing and Trimming: Lines are plotted with user-set padding for extension, and trimming cuts the left side to focus on current action.
Update Mechanism: Levels update in real-time as the previous day's data is fixed, but the script refreshes on chart reloads or new days.
Deletion Logic: At market close, if auto-delete is enabled, all elements are removed to prepare for the next cycle.
Uniqueness and Innovation
Session OTE Auto Detection: Automatically determines OTE direction based on previous day's high/low expansion, a rare feature that provides bias insights not available in basic previous day high/low indicators, aiding ICT traders in identifying entry zones with market context.
Left-Side Trimming: This innovation allows customizable historical line length, solving chart clutter issues unique to previous day indicators that typically show full history, enhancing usability for live trading.
Directional OTE with Multi-Level Support: Combines auto-bias detection with three OTE percentages (61.8%, 70%, 79%), offering more granular entry options than single-level tools, tailored for ICT's focus on range retracements.
Independent Customization per Element: Separate controls for high, low, EQ, and OTE colors/styles, plus transparency and size, provide unmatched flexibility compared to rigid indicators.
Auto-Deletion for Cleanliness: Unique cleanup at market close prevents level buildup, a practical feature for multi-day analysis not commonly implemented in similar tools.
How to Use It
Setup: Add to chart, configure timezone (e.g., "America/New_York"), and enable the indicator.
Customization: Adjust line colors (e.g., blue for high), styles (dashed for OTE), and enable trimming (8 bars for focus).
Interpretation: Use OTE for entries (e.g., buy at 61.8% in bullish bias); EQ for reversion.
Tips: Test on historical data; combine with ICT concepts like CISD, FVG etc.
This indicator elevates ICT trading with its auto-detection and trimming. Use with risk management; trading carries risk
#TheStrat Multi-Timeframe In-Force Signals, Failed 2's, and FTFCThis indicator combines #TheStrat concepts of bar combinations, in-force signals, and timeframe continuity with 'Failed 2's' which can be early indication of a trend reversal.
It’s designed to help identify the prevailing trend but also reversal points when timeframe-based ranges are reclaimed because a signal failed or went out-of-force.
Core Concepts
1. TheStrat Bar Types
• 1 (Inside Bar): High ≤ previous high and Low ≥ previous low.
• 2U (Two Up): High > previous high and Low ≥ previous low.
• 2D (Two Down): Low < previous low and High ≤ previous high.
• 3 (Outside Bar): High > previous high and Low < previous low.
2. Failed 2’s — Definition & Detection
A Failed 2 occurs when a directional break (2U or 2D) reverses before following through.
This script lets you choose from four failure-definition modes:
1. Open — A 2U fails if last price is below open; a 2D fails if last price is above open.
2. Reclaim — A 2U or 2D fails if last price is within the previous bar’s range.
3. Both — Both of the above conditions must be met.
4. Either — Either condition must be met.
Failed 2U setups are bearish; Failed 2D setups are bullish.
You can also enable FTFC Override, which ignores reclaim-type failures when all higher timeframes are in full agreement with the current trend.
3. Timeframe Continuity (TFC)
TFC measures directional agreement across multiple timeframes.
• Full TFC (FTFC) Up: All selected timeframes above their opens.
• Full TFC (FTFC) Down: All selected timeframes below their opens.
• Mixed or neutral conditions are also displayed.
The indicator tracks classic TFC and supports trend-flip alerts when full agreement changes direction.
Features
• Customizable TFC table showing bar types, failed status, in-force status, reclaims, and direction arrows.
• Automatic bar coloring for TFC alignment, failed-2 transitions, or neutral states.
• Alerts for TFC trend flips.
• Multi-timeframe scanning with selectable intervals.
• Option to highlight bars that trigger a TFC flip due to failed-2 events.
Use Cases
• Quickly gauge market bias across multiple timeframes
• Identify failed 2 reversals against higher timeframes
• Spot potential turning points when trend flips occur
Limitations
This is a tool which can give earlier indication of trend reversals but is highly dependent on selected timeframes. This is discretionary, but having a range of higher and lower timeframes works best. In many cases, it will give the same trend 'flip' that classic FTFC would (based on open).
Ranges are based on timeframes, not swing highs and lows. The selected timeframes must capture the swing high or low to show a 'range' reclaim.
Timeframes lower than the display timeframe cannot be accurately shown due to PineScript limitations. They are 'greyed out' and not included in calculations or displays.
This script is based on the FTFC indicator by TradeForOpportunity with deep gratitude. It has been modified and expanded with permission under MPL 2.0.
Inside Bar Coloring (Real-time + Historical) w/ AlertsDescription
This Pine Script v6 indicator identifies and colors inside bars, whose entire range (high and low) stays within the previous bar's range. It gives the option to color the real-time bar as well as historical inside bars.
Inside bars are colored differently based on whether they close above or below their opening price (bullish vs bearish). The indicator offers flexible display options including real-time-only highlighting, historical inside bar visualization with transparency, and optional triangle markers for enhanced visibility.
Utility
Inside bars represent periods of market consolidation and reduced volatility, and are by nature consolidating. During this equilibrium, it can be valuable to observe price development rather than engage with it. Conversely, a break of the equilibrium often marks a shift in volatility and provides opportunity. This indicator provides instant visual identification of this price action on your chart.
Features
Smart Coloring System: Separate colors for bullish (close ≥ open) and bearish (close < open) inside bars
Flexible Display Modes: Show only real-time bar, all historical bars, or customize transparency levels
Visual Markers: Optional triangles above or below inside bars
Real-time Alerts: Configurable alerts notify you when new inside bars form
Optimized Performance: Efficient Pine Script v6 code with minimal resource usage
Open Source: Released under Mozilla Public License 2.0
Settings
Customizable colors for bullish/bearish inside bars (real-time and historical)
Toggle historical inside bar display
Real-time bar only mode for clean charts
Adjustable marker position (above/below bars)
Alert activation with detailed price information
XAUMO MEGABAR Detector]XAUMO MegaBar Detector – Breakout Candle Identification Tool
Purpose:
The XAUMO MegaBar Detector is built to highlight rare, high-impact candles where strong price movement and high trading volume occur together. These moments often reflect aggressive market activity and can be used to confirm potential breakouts or reversals.
How It Works (High-Level Overview)
The tool continuously monitors two primary conditions:
Price Expansion – Identifies large-bodied candles compared to recent averages.
Volume Expansion – Confirms that the move is supported by above-average trading activity.
When both conditions are present, the candle is marked:
🟢 Mega Bull – Strong bullish pressure.
🔴 Mega Bear – Strong bearish pressure.
Key Features
Automatic Timeframe Adjustment – Detection sensitivity changes based on chart timeframe, so results stay relevant from 1-minute scalps to multi-day swing setups.
Clear Visual Output – Significant candles are highlighted directly on the chart for easy recognition.
Optional Labels – Toggle on/off text labels (“Mega Bull” / “Mega Bear”) for a cleaner chart view.
Alert Integration – Set TradingView alerts to be notified immediately when a qualifying candle appears.
Universal Compatibility – Works on Forex, Commodities, Indices, Crypto, Stocks, ETFs, and Futures.
Practical Uses for Traders
As a confirmation tool when price approaches support/resistance or Fibonacci levels.
To filter low-quality setups by focusing only on moments where both price and volume confirm the move.
As part of a trend-following or breakout strategy when combined with other analysis methods.
Using the Indicator
Add the indicator to any chart and select your preferred timeframe.
Watch for highlighted candles – they indicate significant combined momentum and liquidity.
Use as a signal filter or confirmation alongside your existing trading system.
Optional: Set alerts to receive push/email/webhook notifications.
===================================
📌 MEGA BAR TRADING CHEAT SHEET
Spot Big Money. Ride the Move.
===================================
🧠 WHAT’S A MEGA BAR?
A Mega Bar is a candle so big it makes the rest look tiny — and it often means institutions are making a move.
Check the 4 Rules:
✅ Body size ≥ 2x average
✅ High relative volume (vs. last 20 bars)
✅ Closes near high (bull) or low (bear)
✅ Comes after sideways chop or price squeeze
📈 WHY IT MATTERS
Mega Bars = intent, not random spikes.
🟢 Mega Bull near support/Fib pullback → Likely accumulation
🔴 Mega Bear near resistance/Fib extension → Likely distribution or trap
🔧 HOW TO TRADE IT
1. WAIT FOR IT
No Mega Bar → No trade.
Mega Bull (big green) → BUY bias.
Mega Bear (big red) → SELL bias.
2. FIND THE SPOT
Fib levels: 61.8% / 78.6% / 138.2%
Major Support/Resistance
3. CONFIRM ON BIGGER TIMEFRAME
Example: 15M Mega Bar → Check 1H trend direction.
4. SET YOUR LEVELS
Stop-Loss:
Long → Below Mega Bull low (+0.2×ATR)
Short → Above Mega Bear high (+0.2×ATR)
Take-Profit:
Fib extensions: 127.2% / 161.8% / 261.8%
Prior highs/lows
5. RISK SMART
Risk 1–2% max per trade
Aim for 2:1+ R:R
🌍 WORKS ON:
Forex • Commodities • Stocks • Crypto • Indices
THE RETAILER’S FORMULA:
🟢 Big Green → Buy
🔴 Big Red → Sell
🎯 Fibs = Payday
One setup. One signal. Discipline = profit.
Smart Zone Detector by Mihkel00Advanced support/resistance indicator with dynamic zones and volume confirmation.
Smart Zone Detector automatically identifies key support and resistance zones using pivot points with following features:
Dynamic ATR-based zones that adapt to market volatility
Volume confirmation to filter out weak levels
Touch counting with strength classification (3x, 8x, 13x+ touches)
What You Get
Active Zones: Current qualified S/R levels (3+ touches)
Strong Zones: High-confidence areas with multiple confirmations
Color-coded zone strength (Green=Strong, Orange=Medium, Red=Weak)
Touch count labels showing zone significance
How to Use
Zone Identification: Look for zones with 3+ touches - these are qualified levels
Strength Assessment: Higher touch counts (8x, 13x+) = stronger zones
Volume Confirmation: volume-backed zones (more reliable)
Zone Interactions: Green/red X-crosses show real-time support/resistance tests
Dynamic Sizing: Zones automatically adjust width based on ATR
Settings
Lookback: How far back to scan for pivots (default: 100 bars)
Min Touches: Qualification threshold (default: 3 touches)
Volume Confirmation: Enable for higher-quality zones
Zone Tolerance: Sensitivity for merging nearby levels
Price Action 101 Pro3-in-1 Price Action Pro: Complete Trading System
The Ultimate All-in-One Price Action, Support & Resistance, and Break & Retest Professional Trading Suite
---
🤔 What Makes This Indicator Unique?
This is the only indicator you'll ever need for complete price action mastery.
Unlike traditional single-purpose tools, the 3-in-1 Price Action Pro combines three essential trading methodologies into one seamlessly integrated system. This isn't just another indicator collection—it's a sophisticated trading ecosystem that automatically detects market structure shifts, identifies dynamic and static support/resistance levels, and signals high-probability break and retest opportunities across multiple timeframes simultaneously.
The 3-in-1 Price Action Pro is your complete price action trading command center.
This revolutionary all-in-one system eliminates the need for multiple indicators cluttering your charts. By combining advanced swing point detection, multi-timeframe support and resistance analysis, and professional-grade break & retest signals into one unified tool, you get institutional-level market analysis with the simplicity of a single indicator. Whether you're scalping 1-minute charts or swing trading daily timeframes, this comprehensive suite adapts to your strategy while maintaining the clean, professional presentation that serious traders demand.
---
📊 Core Swing Point Detection System (Price Action Module)
Multi-Length Swing Point Analysis Engine
Transform your market structure analysis with our proprietary multi-length swing detection algorithm. This advanced system simultaneously monitors multiple swing lengths, creating a layered view of market dynamics that captures everything from minor intraday reversals to major trend shifts across multiple time horizons.
Intelligent Swing Point Classification:
- HH (Higher High) - Bullish momentum confirmation
- HL (Higher Low) - Uptrend structure validation
- LH (Lower High) - Bearish momentum signal
- LL (Lower Low) - Downtrend confirmation
The system instantly reveals current market structure by automatically labelling the relationship between consecutive swing points—absolutely crucial for professional trend analysis and strategic trade planning.
Advanced Visual Display Features
Dynamic Swing Point Breakout Lines
Our breakthrough visualization system plots intelligent breakout lines based on recent swing point activity, providing crystal-clear identification of:
- Critical structure shift moments
- High-probability breakout and reversal levels
- Precise entry and exit timing signals
Professional Moving Average Integration
- Standard SMA: Dynamic trend direction with built-in support/resistance functionality
- Exclusive 20SMA River: Creates a flowing price channel system that highlights average price movement range, assists in trend channel trading, and identifies high-probability mean reversion zones
Enhanced Daily Trend Display System
Revolutionary Multi-Mode Trend Analysis
Choose from three powerful trend analysis modes tailored to your trading style:
✅ Real-Time Mode: Live trend updates for scalpers and day traders requiring instant market feedback
✅ Daily Close Mode: Confirmed daily candle analysis perfect for swing traders seeking noise-free signals
✅ Both Mode: Side-by-side comparison display for traders demanding complete market context
---
🎯 Multi-Timeframe Support & Resistance Detection System
Automated Dual-Layer S&R Technology
Experience the power of our advanced support and resistance detection engine that automatically identifies and plots critical price levels across multiple timeframes with institutional-grade precision.
Daily Support & Resistance Levels (Automated)
- Proprietary algorithm uses advanced high/low analysis to generate precise support and resistance zones
- Dynamic colour-changing technology when price interacts with levels
- Fully customizable lookback periods optimized for timeframes from 4H down to 1M
- Professional visual zone creation around key institutional price areas
Higher Timeframe Support & Resistance Integration (Automated)
- Intelligent auto-updating system based on higher timeframe swing point analysis
- Perfect for establishing longer-term bias and strategic positioning
- Independent customization settings separate from daily level analysis
- Optimized performance for timeframes from Daily down to 1H
Weekly Separator Integration
Visual weekly separators enhance time-based analysis, helping you maintain proper temporal context for all support and resistance decisions.
Professional Applications
- Multi-timeframe confluence analysis for high-probability setups
- Institutional price level identification for trading with the smart money
- Enhanced bounce and breakout opportunity detection
- Precise stop-loss and take-profit placement** based on actual market structure
---
🚀 Break & Retest Pro: Advanced Strategy Signal System
Professional Break & Retest Detection Engine
Transform your breakout trading with our sophisticated break and retest identification system. This advanced module combines cutting-edge price action analysis with visual trend confirmation and automated signal generation for executing proven high-probability strategies with institutional-level precision.
Multi-Timeframe Break Analysis Technology
- Advanced break point detection across multiple sensitivity levels
- Dynamic line plotting system visualizes key support and resistance violations
- Real-time identification of significant price structure breaks
- Intelligent filtering eliminates false breakouts and focuses on high-conviction setups
Exclusive SMA River Analysis System
- Professional-grade SMA River with advanced price smoothing algorithms
- Creates dynamic support and resistance channels perfect for river strategy implementation
- Fully customizable transparency and colour schemes for optimal chart clarity
- Visual "river" channel flow identifies trend direction and critical price interaction zones
Integrated Daily Support & Resistance Automation
- Optional automated daily S&R detection and plotting system
- Precision calculation of key daily support and resistance zones
- Clean, professional line display with complete customization control
- Perfect complement to dynamic river levels for comprehensive institutional-style analysis
Advanced Signal Generation
Professional Visual Trading Signals
- Crystal-clear buy/sell arrow indicators for instant trade identification
- Fully customizable arrow display with complete toggle control
- Intelligent color-coded signals that adapt to real-time market conditions
Real-Time Trend Direction Display
- Live trend status table showing current market momentum
- Daily timeframe trend analysis for enhanced probability setups
- Professional customizable colour schemes for all market conditions
Complete Professional Customization Suite
- Adjustable line styles (Solid, Dashed, Dotted) for personal preference
- Full colour customization for all visual elements
- Clean, uncluttered professional chart presentation
- Organized settings interface for efficient configuration
---
⚡ Why Choose 3-in-1 Price Action Pro?
Complete Trading System Integration:
This isn't just another indicator—it's a complete price action trading ecosystem that replaces multiple tools with one professional-grade solution.
Institutional-Level Analysis:
Access the same level of market structure analysis used by professional trading firms, but simplified for individual trader implementation.
Multi-Strategy Compatibility:
Whether you're a scalper, day trader, swing trader, or position trader, this system adapts to your methodology while maintaining consistent professional-grade analysis.
Clean Professional Presentation: Maintain uncluttered charts while accessing comprehensive market analysis—perfect for traders who demand both functionality and visual clarity.
Proven Methodology Integration: Based on time-tested price action principles combined with modern algorithmic precision for the ultimate trading advantage.
---
🎯 Perfect For All Trading Styles
- Day Traders: Real-time structure analysis with instant breakout detection
- Swing Traders: Multi-day level analysis with confirmed trend direction
- Scalpers: Fast structure shifts with clean entry/exit visualization
- Position Traders: Long-term trend confirmation with strategic level identification
- All Experience Levels: Intuitive visual signals suitable for beginners to professionals
Stop using multiple indicators that conflict with each other. Start trading with the only system that gives you complete price action mastery in one professional package.
Liquidity Hunter Pro iDea TradeAutomatically detects and visualizes key liquidity levels across multiple timeframes.
Features include:
Multi-timeframe high/low liquidity mapping
Automatic and manual timeframe options
Real-time “sweep” and “touch” detection
Customizable colors and labels
Alerts for liquidity touches and sweeps
Option to display mitigated (swept) liquidity as dashed lines
How to use:
Enable the desired timeframes and alerts, adjust colors or labels to fit your style, and monitor the chart for liquidity sweeps and reactions. Use as a technical tool to spot potential support/resistance or sweep zones.
Note:
This script does not provide trading signals or financial advice. For technical analysis and educational purposes only. Always manage your risk.
Protected script. Source code is hidden but free for all TradingView users.
FVG Pro - Advanced Multi-Timeframe iDea TradeFVG Pro – Advanced Multi-Timeframe
This indicator automatically detects and visualizes Fair Value Gaps (FVGs) across two different timeframes. Features include:
Dual-timeframe FVG detection (bullish & bearish)
Customizable display: boxes, lines, or both
Optional Fibonacci levels inside gaps (25%, 50%, 75%)
Touch tracking & “respected” status
Adjustable quality scoring and filtering
Automatic removal of filled gaps (configurable)
You can easily tailor colors, label size, and visibility for your needs.
How to use:
Enable the timeframes you want, set your visual preferences, and use the quality filter if you wish to highlight only the strongest imbalances. FVGs can be used as potential support/resistance or reaction zones—combine with your own trading strategy.
Note:
This script does not provide buy/sell signals. It is for technical analysis only and should not be considered financial advice. Please use proper risk management.
Protected script. Source code is hidden but free for all TradingView users.
PulseWave Strategy Markking77PulseWave Strategy (Markking77) — Description & Indicator Roadmap
PulseWave Strategy (Markking77) is a sleek, straightforward trading system that fuses three powerful market indicators — VWAP, MACD, and RSI — into one harmonious tool. Designed for traders who want clear, actionable signals, this strategy captures trend direction, momentum shifts, and market strength to help you spot optimal entry and exit points.
Step 1: VWAP — The Market Trend Compass (Color: Blue)
What it does:
The Volume Weighted Average Price (VWAP) is the average price a security has traded at throughout the day, weighted by volume. It acts as a dynamic benchmark that many institutional traders rely on.
Why it matters:
Price above the VWAP (blue line) signals bullish momentum — buyers dominate.
Price below the VWAP signals bearish momentum — sellers in control.
PulseWave use:
VWAP sets the trend foundation — we trade in the direction the price sits relative to VWAP.
Step 2: MACD — Momentum Confirmation (Colors: Orange & Blue)
What it does:
MACD tracks momentum by comparing short-term and long-term moving averages, using the MACD line and a signal line to indicate shifts.
Why it matters:
When the MACD line (orange) crosses above the Signal line (blue), it signals rising momentum — a bullish cue.
When the MACD line crosses below the signal line, it signals weakening momentum — bearish cue.
PulseWave use:
MACD confirms momentum that aligns with the VWAP trend before entering trades.
Step 3: RSI — The Strength Filter (Color: Purple)
What it does:
The Relative Strength Index (RSI) measures how fast prices are changing to indicate overbought or oversold conditions.
Why it matters:
RSI above 70 = overbought (possible reversal or pause).
RSI below 30 = oversold (potential bounce).
PulseWave use:
RSI filters out trades taken at extreme price levels, avoiding entries that are too stretched.
Color-Coded Roadmap Summary:
Step Indicator Role Buy Signal Sell Signal Color
1 VWAP Trend Direction Price > VWAP (bullish) Price < VWAP (bearish) Blue
2 MACD Momentum Confirmation MACD line crosses above Signal line MACD line crosses below Signal line Orange & Blue
3 RSI Entry Filter RSI < 70 (not overbought) RSI > 30 (not oversold) Purple
How PulseWave Strategy Works:
Buy when price sits above VWAP, MACD line crosses above the Signal line, and RSI is below 70.
Sell (exit) when price drops below VWAP, MACD line crosses below the Signal line, and RSI is above 30.
This layered approach ensures you only trade when trend, momentum, and strength align — reducing false signals and improving your edge.
Why Use PulseWave Strategy?
Clear & Simple: No guesswork — clear color-coded signals guide your decisions.
Robust: Combines trend, momentum, and strength in one system.
Versatile: Fits day trading and swing trading styles alike.
Visual: Easily interpreted signals with minimal clutter.
Mayfair Reversal Change✅ Mayfair Reversal Change — By EastWave Capital
Description:
The Mayfair Reversal Change indicator is a tool designed to help traders identify potential market turning points using Stochastic Oscillator behavior and filtered price action logic. It acts as a reversal signal filter and is particularly effective when the market is overextended (overbought/oversold) and about to revert from exhaustion zones.
🔍 How It Works:
This script monitors the Stochastic %K and %D crossovers and adds a custom logic layer to filter only high-quality reversal points:
Stochastic Filter Conditions:
Uses smoothed stochastic settings:
%K smoothing = 3
%D smoothing = 3
Only shows signals after %K crosses back below 80 (for Sell) or above 20 (for Buy)
This prevents signals from appearing too early during an active overbought or oversold phase.
Directional Confirmation Logic:
Bullish signal is printed only when %K re-enters below 20 after a confirmed stochastic crossover.
Bearish signal appears only when %K re-enters above 80.
This reduces false signals that occur during continued trending moves.
Toggle Switch:
A user-toggle input is included to enable or disable the reversal filter logic.
This gives flexibility for traders who want to test signals with or without the stochastic condition.
📈 How to Use:
Timeframes: Recommended for 5M, 15M, and 30M
Markets: Compatible with any market — FX, Gold, Indices, Crypto
Entry Approach:
Wait for signal after price has reached a potential extreme area.
Confirm with chart structure, support/resistance, or SMC zone.
Enter on confirmation, placing stop loss beyond the swing high/low.
Combine with trendline breaks or price imbalances (FVG) for extra confluence.
Can be used in combination with the Mayfair FX Scalper script for dual-layer confirmation.
⚠️ Important Notes:
Signals are visual only and should be confirmed with proper strategy.
This indicator does not execute or manage trades automatically.
Designed to assist with reversal setups but should not be used in isolation.
Always manage risk, use SL/TP, and avoid over-leveraging.
Mayfair Fx Scalper✅ Mayfair FX Scalper — By EastWave Capital
The Mayfair FX Scalper is a precision-focused, closed-source indicator designed for short-term intraday trading, particularly scalping on lower timeframes such as 1-minute, 3-minute, and 5-minute charts. This tool is developed by EastWave Capital and is based on a combination of Relative Strength Index (RSI) extremes and specific candlestick structure patterns to detect potential exhaustion and reversal points in the market.
🔍 How It Works:
The algorithm operates by evaluating three core elements:
RSI Extremes:
RSI is calculated using default settings.
Buy signals are considered only when the RSI on the previous candle is below 22 (oversold), and the current candle is bullish, while the previous one was bearish.
Sell signals are considered when the RSI on the previous candle is above 78 (overbought), and the current candle is bearish, while the previous one was bullish.
Candle Confirmation Logic:
The system waits for candle confirmation (e.g., shift in bullish/bearish structure) rather than triggering signals based on RSI alone.
This avoids false triggers in strong trends and filters weak entries.
SL/TP Estimation (Visual):
While not automatically placing orders, the indicator can optionally display lines or small labels showing a Stop Loss at the previous swing high/low (±0.5) and TP levels at 1R, 2R, and 3R based on that stop.
These visual aids help traders plan risk/reward and exits manually.
📈 How to Use:
Timeframes: Best suited for 1M, 3M, and 5M charts
Markets: Works well on Gold (XAU/USD), Forex majors, Indices, and Crypto
Session: Performs best during high volatility sessions (London & NY)
Use Case:
Wait for a signal label to appear after a clear momentum move.
Confirm price action and trend context.
Use provided visual SL/TP labels or apply your manual RR planning.
Combine with structure breaks, FVG zones, or liquidity sweeps for confluence.
⚠️ Important Notes:
This indicator does not repaint.
No automatic trades are executed. Signals are visual.
Not intended for use in isolation; best when combined with proper trade management and confirmation tools.
Past performance does not guarantee future results. Always manage risk appropriately
Historical Data: 1H Edge NQ [Herman]Historical Data: 1H Edge NQ
This Pine Script indicator is designed to provide traders with visual tools and historical statistical insights for analyzing hourly price behavior on the Nasdaq-100 futures (NQ) contract.
It focuses on key concepts such as Opening Ranges (OR) and Trading Windows (TW), drawing from established trading principles like session-based ranges and return probabilities.
This unique indicator stands out by incorporating pre-computed statistics derived from over 4 years of 1-minute timeframe data, offering detailed hourly probabilistic insights in an editable sticky note format—making it a distinctive tool for in-depth analysis.
The goal is to help users visualize potential price dynamics and assess historical tendencies, enabling more informed decision-making based on past data patterns.
All calculations are based on historical price action, and the indicator does not make predictions or generate trading signals—it simply displays pre-computed statistics and visual aids for educational and analytical purposes.
Key Features and Visual ElementsVertical Lines for Time Sessions:
Orange Line - Opening Range Midline (50%)
Horizontal Dotted Lines - Opening Range High and Low
Solid Red Line - Midnight Open
Dashed Vertical lines - Opening range and trading window start/close times
Blue Dashed Line - Trading Window Candle Open
The indicator marks the start of the user-selected Opening Range (OR) and Trading Window (TW) with customizable vertical lines.
These represent the time periods where the OR is formed (e.g., 02:00-03:00 NY time) and where trading activity is observed (e.g., 03:00-04:00 NY time).
Users can adjust these sessions via inputs for flexibility across different hours.
-Horizontal Lines for Price Levels:Opening Range High and Low:
-Solid or dashed lines (customizable) show the high and low of the selected OR, extended horizontally to highlight potential support/resistance levels during the TW.
-50% OR Midpoint: An optional dashed line at the midpoint (50%) of the OR, which serves as a reference for mean reversion analysis.
-Trading Window Open Price: A line marking the open price at the start of the TW, useful for tracking returns to this level.
-Midnight Open (Red Line): A dedicated red horizontal line indicating the open price at midnight (00:00 NY time), which acts as a daily reference point for overnight price action.
Statistical Display via Sticky Note and Table:A customizable "Sticky Note" table displays pre-computed backtest results for the selected OR hour, including sections for combined results, above-midnight scenarios, and below-midnight scenarios. Content is user-editable via inputs.
A main info table shows session details, total historical sessions, and probabilities for returns (if enabled).
Customization Options: Users can toggle visuals, adjust colors, styles, widths, positions, and themes (light/dark). The indicator supports up to 500 lines/labels/boxes for historical drawing.
Logic and PrincipleThe indicator operates on a per-hour basis, treating each hour (0-23 NY time) as an independent "session" for analysis:Session Definition:
For any given hour (e.g., 02:00), the OR is the high/low range formed in that hour.
The TW is the subsequent hour where price action is tracked.
Tracking Price Action: During the TW, the script checks if price "sweeps" (crosses) the OR high or low. It then monitors for "returns"—instances where price crosses back to the TW open price or the 50% midpoint of the OR after a sweep.
Statistical Calculation: Probabilities are derived from historical counts:Total sessions: Number of historical days where data was available for that hour.
Return to TW Open: Percentage of sessions where, after sweeping OR high/low, price returned to the TW open (calculated as returns / total sessions with sweeps).
Return to 50% OR: Similar percentage for returning to the OR midpoint.
These are computed cumulatively across all historical bars loaded on the chart, resetting flags daily to ensure independence per session. No real-time predictions are made; stats accumulate from past data.
Midnight Open Integration: The red line resets daily at 00:00 NY, providing context for overnight gaps or continuations.
Breakout Origin: Scans recent bars for conditions where a breakout from OR occurs without opposite direction breach, drawing lines to the origin bar's open for visual reference.
The core principle is rooted in range-based analysis, a common technical approach where traders observe how price interacts with session highs/lows and midpoints.
By quantifying historical return rates after sweeps, the indicator highlights tendencies like mean reversion or continuation, but all insights are retrospective and depend on the loaded data.
Data Source and BacktestingThe statistical data embedded in the sticky notes (e.g., return percentages, sweep rates) was generated using Python in a Jupyter Notebook environment.
It analyzes approximately 1089 days (about 4 years) of 1-minute historical data for NQ futures, sourced BacktestMarket.
The backtests focused on NY time sessions, calculating metrics like:Sweep rates (e.g., first sweep high after above-midpoint open).
Return probabilities post-sweep.
Conditional splits (above/below midnight open).
These pre-computed values are hardcoded into the script via text areas for display, ensuring transparency.
Note: Historical performance is not indicative of future results; this is for analytical reference only.
Purpose and UsageThis indicator aims to assist traders in evaluating price direction potential by combining visual session markers with historical probabilities.
For example:If historical data shows a high probability of returning to the 50% OR after a sweep, it might suggest monitoring for mean reversion.
Trend Strength Index [Alpha Extract]The Trend Strength Index leverages Volume Weighted Moving Average (VWMA) and Average True Range (ATR) to quantify trend intensity in cryptocurrency markets, particularly Bitcoin. The combination of VWMA and ATR is particularly powerful because VWMA provides a more accurate representation of the market's true average price by weighting periods of higher trading volume more heavily—capturing genuine momentum driven by increased participation rather than treating all price action equally, which is crucial in volatile assets like Bitcoin where volume spikes often signal institutional interest or market shifts.
Meanwhile, ATR normalizes this measurement for volatility, ensuring that trend strength readings remain comparable across different market conditions; without ATR's adjustment, raw price deviations from the mean could appear artificially inflated during high-volatility periods (like during news events or liquidations) or understated in low-volatility sideways markets, leading to misleading signals. Together, they create a volatility-adjusted, volume-sensitive metric that reliably distinguishes between meaningful trend developments and noise.
This indicator measures the normalized distance between price and its volume-weighted mean, providing a clear visualization of trend strength while accounting for market volatility. It helps traders identify periods of strong directional movement versus consolidation, with color-coded gradients for intuitive interpretation.
🔶 CALCULATION
The indicator processes price data through these analytical stages:
Volume Weighted Moving Average: Computes a smoothed average weighted by trading volume
Volatility Normalization: Uses ATR to account for market volatility
Distance Measurement: Calculates absolute deviation between current price and VWMA
Strength Normalization: Divides price deviation by ATR for a volatility-adjusted metric
Formula:
VWMA = Volume-Weighted Moving Average of Close over specified length
ATR = Average True Range over specified length
Price Distance = |Close - VWMA|
Trend Strength = Price Distance / ATR
🔶 DETAILS Visual Features:
VWMA Line: Blue line overlay on the price chart representing the volume-weighted mean
Trend Strength Area: Histogram-style area plot with dynamic color gradient (red for weak trends, transitioning through orange and yellow to green for strong trends)
Threshold Line: Horizontal red line at the customizable Trend Enter level
Background Highlight: Subtle green background when trend strength exceeds the enter threshold for strong trend visualization
Alert System: Triggers notifications for strong trend detection
Interpretation:
0-Weak (Red): Minimal trend strength, potential consolidation or ranging market
Mid-Range (Orange/Yellow): Building momentum, watch for breakout potential
At/Above Enter Threshold (Green): Strong trend conditions, potential for continued directional moves
Threshold Crossing: Trend strength crossing above the enter level signals increasing conviction in the current direction
Color Transitions: Gradual shifts from warm (red/orange) to cool (green) tones indicate strengthening trends
🔶 EXAMPLES
Strong Trend Entry: When trend strength crosses above the enter threshold (e.g., 1.2), it identifies the onset of a powerful move where price deviates significantly from the mean.
Example: During a rally, trend strength rising from yellow (around 1.0) to green (1.2+) often precedes sustained upward momentum, providing entry opportunities for trend followers.
Consolidation Detection: Low trend strength values in red shades (below 0.5) highlight periods of low volatility and mean reversion potential.
Example: After a sharp sell-off, persistent red values signal a likely sideways phase, allowing traders to avoid whipsaws and wait for orange/yellow transitions as a precursor to recovery.
Volatility-Adjusted Pullbacks: In volatile markets, the ATR component ensures trend strength remains accurate; a dip back to yellow from green during minor corrections can indicate healthy pullbacks within a strong trend.
Example: Trend strength briefly falling to yellow levels (e.g., 0.8-1.1) after hitting green provides profit-taking signals without invalidating the overall bullish bias if the VWMA holds as support.
Threshold Alert Integration: The alert condition combines strength value with the enter threshold for timely notifications.
Example: Receiving a "Strong Trend Detected" alert when the area plot turns green helps confirm Bitcoin's breakout from consolidation, aligning with increased volume for higher-probability trades.
🔶 SETTINGS
Customization Options:
Lengths: VWMA length (default 14), ATR length (default 14)
Thresholds: Trend enter (default 1.2, step 0.1), trend exit (default 1.15, for potential future signal enhancements)
Visuals: Automatic color scaling with red at 0, transitioning to green at/above enter threshold
Alert Conditions: Strong trend detection (when strength > enter)
The Trend Strength Index equips traders with a robust, easy-to-interpret tool for gauging trend intensity in volatile markets like Bitcoin. By normalizing price deviations against volatility, it delivers reliable signals for identifying high-momentum opportunities while the gradient coloring and alerts facilitate quick assessments in both trending and choppy conditions.
Order Block Finder - yzeen ayoubCore Concept
Order blocks represent areas where large institutional traders (banks, hedge funds) have placed significant orders, creating zones of potential support or resistance. The script identifies these zones by looking for specific candlestick patterns.
How It Detects Order Blocks
Bullish Order Blocks
Formation: Starts with a single bearish candle (close < open)
Confirmation: Followed by a sequence of consecutive bullish candles
Displacement: Price must move up by a minimum percentage from the formation candle
Bearish Order Blocks
Formation: Starts with a single bullish candle (close > open)
Confirmation: Followed by a sequence of consecutive bearish candles
Displacement: Price must move down by a minimum percentage from the formation candle
Key Features
Visual Elements
Rectangles: Draw the actual order block zones using the high/low of formation candles
Equilibrium Lines: Show the middle point of each order block
Risk/Reward Lines: Display stop loss (SL), 2R, and 3R take profit levels
Color Themes: Bright or dark color schemes
Customizable Parameters
Confirmation Candles: How many consecutive candles needed (default: 5)
Display Count: Maximum order blocks to show (default: 20)
Minimum Displacement: Required percentage move after formation (default: 0.2%)
Visual Options: Toggle equilibrium lines, risk/reward levels, signature
Smart Features
Array Management: Automatically removes old order blocks to keep chart clean
Alert System: Notifies when price enters an order block zone
Performance Optimized: Uses efficient counting functions instead of complex loops
Trading Logic
The script assumes that:
Institutional Imbalance: The formation candle represents institutional order flow
Retail Response: The confirmation sequence shows retail traders responding
Future Reaction: When price returns to these zones, it may find support/resistance
Practical Use
Traders use this to:
Identify high-probability entry zones
Set stop losses below/above order blocks
Target 2R and 3R profit levels
Get alerts when price approaches these critical zones
The script essentially automates the process of finding these institutional footprints that many smart money traders look for manually.
Combined Predictive Indicator### Combined Predictive Zones & Levels
This indicator is a powerful hybrid tool designed to provide a comprehensive map of potential future price action. It merges two distinct predictive models into a single, cohesive view, helping traders identify key levels of support, resistance, and areas of high confluence.
#### How It Works: Two Models in One
This script is built on two core components that you can use together or analyze separately:
**Part 1: Classic Range & Fibonacci Prediction**
This model uses classic technical analysis principles to project a potential range for the upcoming price action.
* **Highest High / Lowest Low:** It identifies the significant trading range over a user-defined lookback period.
* **Fibonacci Levels:** It automatically plots key Fibonacci retracement levels (e.g., 38.2% and 61.8%) within this range, which often act as critical support or resistance.
* **ATR & Average Range:** It calculates a "predicted" upper and lower boundary based on the average historical range and current volatility (ATR).
**Part 2: Advanced Predictive Ranges (Self-Adjusting Channels)**
This is a dynamic model that creates adaptive support and resistance zones based on a smoothed average price and volatility.
* **Dynamic Average:** It uses a unique moving average that only adjusts when the price moves significantly, creating a stable baseline.
* **ATR-Based Zones:** It projects multiple levels of support (S1, S2) and resistance (R1, R2) around this average, which widen and narrow based on market volatility. These zones often signal areas where price might stall or reverse.
#### Key Features:
* **Hybrid Model for Confluence:** The true power of this indicator lies in finding where the levels from both models overlap. A Fibonacci level aligning with a Predictive Range support zone is a much stronger signal.
* **Comprehensive Data Table:** A clean, on-chart table displays the precise values of all key predictive levels, allowing for quick reference and precise trade planning.
* **Multi-Timeframe (MTF) Capability:** The Advanced Predictive Ranges can be calculated on a higher timeframe, giving you a broader market context.
* **Fully Customizable:** All lengths, multipliers, and levels for both models are fully adjustable in the settings to fit any asset or trading style.
* **Clear Visuals:** All zones and levels are color-coded for intuitive and easy-to-read analysis.
#### How to Use:
1. Look for areas of **confluence** where multiple levels from both models cluster together. These are high-probability zones for price reactions.
2. Use the Predictive Range zones (S1/S2 and R1/R2) as potential targets for trades or as areas to watch for entries and exits.
3. Pay attention to the on-chart table for exact price levels to set limit orders or stop-losses.
**Disclaimer:** This script is an analytical tool for educational purposes and should not be considered financial advice. All trading involves risk. Past performance is not indicative of future results. Always use this indicator as part of a comprehensive trading strategy with proper risk management.
Feedback is welcome! If you find this tool useful, please leave a like.
Price Action All In OnePrice Action All In One. Scalping and Day Trading with this PA indicator. Enjoy
Price Exhaustion Envelope [BackQuant]Price Exhaustion Envelope
Visual preview of the bands:
What it is
The Price Exhaustion Envelope (PEE) is a multi‑factor overextension detector wrapped inside a dynamic envelope framework. It measures how “tired” a move is by blending price stretch, volume surges, momentum and acceleration, plus optional RSI divergence. The result is a composite exhaustion score that drives both on‑chart signals and the adaptive width of three optional envelope bands around a smoothed baseline. When the score spikes above or below your chosen threshold, the script can flag exhaustion, paint candles, tint the background and fire alerts.
How it works under the hood
Exhaustion score
Price component: distance of close from its mean in standard deviation units.
Volume component: normalized volume pressure that highlights unusual participation.
Momentum component: rate of change and acceleration of price, scaled by their own volatility.
RSI divergence (optional): bullish and bearish divergences gently push the score lower or higher.
Mode control: choose Price, Volume, Momentum or Composite. Composite averages the main pieces for a balanced view.
Energy scale (0 to 100)
The composite score is pushed through a logistic transform to create an “energy” value. High energy (above 70 to 80) signals a move that may be running hot, while very low energy (below 20 to 30) points to exhaustion on the downside.
Envelope engine
Baseline: EMA of price over the main lookback length.
Width: base width is standard deviation times a multiplier.
Type selector:
• Static keeps the width fixed.
• Dynamic expands width in proportion to the absolute exhaustion score.
• Adaptive links width to the energy reading so bands breathe with market “heat.”
Smoothing: a short EMA on the width reduces jitter and keeps bands pleasant to trade around.
Band architecture
You can toggle up to three symmetric bands on each side of the baseline. They default to 1.0, 1.6 and 2.2 multiples of the smoothed width. Soft transparent fills create a layered thermograph of extension. The outermost band often maps to true blow‑off extremes.
On‑chart elements
Baseline line that flips color in real time depending on where price sits.
Up to three upper and lower bands with progressive opacity.
Triangle markers at fresh exhaustion triggers.
Tiny warning glyphs at extreme upper or lower breaches.
Optional bar coloring to visually tag exhausted candles.
Background halo when energy > 80 or < 20 for instant context.
A compact info table showing State, Score, Energy, Momentum score and where price sits inside the envelope (percent).
How to use it in trading
Mean reversion plays
When price pierces the outer band and an exhaustion marker prints, look for reversal candles or lower‑timeframe confirmation to fade the move back toward the baseline.
For conservative entries, wait for the composite score to roll back under the threshold or for energy to drop from extreme to neutral.
Set stops just beyond the extreme levels (use extreme_upper and extreme_lower as natural invalidation points). Targets can be the baseline or the opposite inner band.
Trend continuation with smart pullbacks
In strong trends, the first tag of Band 1 or Band 2 against the dominant direction often offers low‑risk continuation entries. Use energy readings: if energy is low on a pullback during an uptrend, a bounce is more likely.
Combine with RSI divergence: hidden bullish divergence near a lower band in an uptrend can be a powerful confirmation.
Breakout filtering
A breakout that occurs while the composite score is still moderate (not exhausted) has a higher chance of follow‑through. Skip signals when energy is already above 80 and price is punching the outer band, as the move may be late.
Watch env_position (Envelope %) in the table. Breakouts near 40 to 60 percent of the envelope are “healthy,” while those at 95 percent are stretched.
Scaling out and risk control
Use exhaustion alerts to trim positions into strength or weakness.
Trail stops just outside Band 2 or Band 3 to stay in trends while letting the envelope expand in volatile phases.
Multi‑timeframe confluence
Run the script on a higher timeframe to locate exhaustion context, then drill down to a lower timeframe for entries.
Opposite signals across timeframes (daily exhaustion vs. 5‑minute breakout) warn you to reduce size or tighten management.
Key inputs to experiment with
Lookback Period: larger values smooth the score and envelope, ideal for swing trading. Shorter values make it reactive for scalps.
Exhaustion Threshold: raise above 2.0 in choppy assets to cut noise, drop to 1.5 for smooth FX pairs.
Envelope Type: Dynamic is great for crypto spikes, Adaptive shines in stocks where volume and volatility wave together.
RSI Divergence: turn off if you prefer a pure price/volume model or if divergence floods the score in your asset.
Alert set included
Fresh upper exhaustion
Fresh lower exhaustion
Extreme upper breach
Extreme lower breach
RSI bearish divergence
RSI bullish divergence
Hook these to TradingView notifications so you get pinged the moment a move hits exhaustion.
Best practices
Always pair exhaustion signals with structure. Support and resistance, liquidity pools and session opens matter.
Avoid blindly shorting every upper signal in a roaring bull market. Let the envelope type help you filter.
Use the table to sanity‑check: a very high score but mid‑range env_position means the band may still be wide enough to absorb more movement.
Backtest threshold combinations on your instrument. Different tickers carry different volatility fingerprints.
Final note
Price Exhaustion Envelope is a flexible framework, not a turnkey system. It excels as a context layer that tells you when the crowd is pressing too hard or when a move still has fuel. Combine it with sound execution tactics, risk limits and market awareness. Trade safe and let the envelope breathe with the market.