ابحث في النصوص البرمجية عن "liquidity"
Bars Since EMA OverlayCounts number of bars since an EMA Touch or an EMA cross with close and shades the area when a threshold is exceeded. Currently supported for 3 thresholds.
TQ's Support & Resistance(My goal creating this indicator): Provide a way to categorize and label key structures on multiple different levels so I can create a plan based on those observable facts.
The Underlying Concept / What is Momentum?
Momentum indicates transaction pressure. If the algorithm detects price is going up, that would be considered positive momentum. If the algorithm detects price is going down negative momentum would be detected.
The Momentum shown is derived from a price action pattern. Unlike my previous Support & Resistance indicator that used Super Trend, this indicator uses a unique pattern I created. On the first bar bearish momentum is detected a resistance Level is made at the highest point of the previous bullish condition. On the first bar bullish momentum is detected a support Level is made at the lowest point of the previous bearish condition. This happens on 5 different Momentum Levels, (short-term to long-term). I currently use this pattern to trade so the source code is protected.
What is Severity?
Severity is How we differentiate the importance of different Highs and Lows. If Momentum is detected on a higher level the Supply or Demand Level is updated. The Color and Size representing that Level will be shown. Demand and Supply Levels made by higher levels are more SEVERE than a demand level made by a lower level.
Technical Inputs
- to ensure the correct calculation of Support and Resistance levels change BAR_INDEX. BAR_INDEX creates a buffer at the start of the chart. For example: If you set BAR_INDEX to 300. The script will wait for 300 bars to elapse on the current chart before running. This allows the script more time to gather data. Which is needed in order for our dynamic lookback length to never return an error (Dynamic lookback length can't be negative or zero). The lower the timeframe the greater the number of bars need. For Example, if I open up a 1min chart I would enter 5000 as my BAR_INDEX since that will provide enough data to ensure the correct calculation of Support and Resistance levels. If I was on a daily chart, I would enter a lower number such as 800. Don't be afraid to play around with this.
- Toggle options (Close) or (High & Low) creates Support and Resistance Levels using the Lowest close and Highest close or using the Lowest low and Highest high.
Level Inputs
- The indicator has 5 Different Levels indicating SEVEREITY of a Supply and Demand Levels. The higher the Level the more SEVERE the Level.
Display Inputs
- You have the option to customize the Length, Width, Line Style, and Colors of all 5 different
- This indicator includes a Trend Chart. To Easily verify the current trend of any displayed by this indicator toggle on Chart On/Off. You also get the option to change the Chart Position and the size of the Trend Chart
How Trend Is being Determined?
(Close > Current Supply Level) if this statement is true technically price made a HH, so the trend is bullish.
(Close < Current Demand Level) if this statement is true technically price made a LL, so the trend is bearish.
- Fully customize how you display Market Structure on different levels. Line Length, Line Width, Line Style, and Line color can all be customized.
How it can be used?
(Examples of Different ways you can use this indicator): Easily categorize the severity of each and every Supply or Demand Level in the market (The higher Level the stronger the level)
: Quickly Determine the trend of any Level.
: Get a consistent view of a market and how different Levels are behaving but just use one chart.
: Take the discretion from hand drawing support and resistance lines out of your trading.
: Find and categorize strong levels for potential breakouts.
: Trend Analysis, use Levels to create a narrative based on observable facts from these Levels.
: Different Targets to take money off the table.
: Use Severity to differentiate between different trend line setups.
: Find Great places to move your stop loss too.
Visible Range Support and Resistance [AlgoAlpha]🌟 Introducing the Visible Range Support and Resistance 🌟
Discover key support and resistance levels with the innovative "Visible Range Support and Resistance" indicator by AlgoAlpha! 🚀📈 This advanced tool dynamically identifies significant price zones based on the visible range of your chart, providing traders with crucial insights for making informed decisions.
Key Features:
Dynamic support and resistance levels based on visible chart range 📏
User-defined resolution for tailored analysis 🎯
Clear visual representation of significant key zones 🖼️
Easy integration with any trading strategy 💼
How to Use:
🛠 Add the Indicator : Add the indicator to favourites. Adjust settings like resolution and horizontal extension to suit your trading style.
📊 Market Analysis : Identify key support and resistance zones based on the highlighted areas. These zones indicate significant price levels where the market may react.
How it Works:
The indicator segments the price range into user-defined resolutions, analyzing the highest and lowest points to establish boundaries. It calculates the frequency of price action within these segments, highlighting key levels where price movements are least concentrated (areas where price tends to pivot). Customizable settings like resolution and horizontal extension allow for tailored analysis, while the intuitive visual representation makes it easy to spot potential support and resistance zones directly on your chart.
By leveraging this indicator, you can gain deeper insights into market dynamics and improve your trading strategy with data driven support and resistance analysis. Happy trading! 💹✨
Delta Magnet Zone Extended – Selective HideLiquidity Zone Reversal — Description 🔍📊
This indicator automatically identifies liquidity zones where price previously grabbed orders, swept highs/lows, or created strong reaction points. Instead of plotting thin lines, this version converts those levels into zones, giving traders a clearer view of where the market has unfinished business and where future reactions are likely to occur.
These zones act as institutional magnets — areas where liquidity providers, algos, and larger players commonly enter or exit positions.
How It Works ⚙️💡
The script scans recent price action and detects local swing highs and lows. It then builds rectangular liquidity zones around these levels, extending them forward so you can see:
🟥 Bearish liquidity sweep zones
🟩 Bullish liquidity sweep zones
🔁 Areas where price previously failed, rejected, or consolidated
🎯 Potential reversal targets on both sides of the market
These zones update automatically as new structure forms, giving you an always-current map of market memory.
Why the 9-Day Look-Back Is Powerful (My Default) 📅✨
I personally keep the look-back set to 9 days by default because:
✔️ It captures the entire previous trading week
✔️ It maps out where SPY/QQQ/ES has already tapped liquidity
✔️ It shows the true zones institutions defended
✔️ It reveals where price is most likely to react again moving forward
Using a 9-day window gives you a clean, high-signal map of:
Last week’s highs & lows
Prior liquidity sweeps
Rejection zones
Imbalance cleanup levels
This keeps the chart minimal, powerful, and hyper-relevant to current order flow.
How Traders Use These Zones 🎯📈
Here are the most common ways traders use these liquidity zones:
1️⃣ Identify High-Probability Reversal Areas 🔄
Price often reacts strongly when returning to a past liquidity zone — especially if it previously swept stops there.
2️⃣ Confirm Breakouts or Failures 🚪➡️
Break above a bearish zone?
Momentum continuation is likely.
Reject inside a zone?
Reversal or range expansion often follows.
3️⃣ Set Targets & Stop Placement 🎯🛡️
Zones give logical:
Profit targets
Trend exhaustion points
Areas to avoid entering new trades
4️⃣ Time 0DTE Scalps With Precision ⚡
Liquidity zones tighten your expectations for:
Where SPY/QQQ will bounce
Where reversals start
Where liquidity magnets pull price by end of day
Why This Indicator Matters 🧠🔥
Liquidity drives markets.
Not indicators.
Not moving averages.
Not random levels.
This tool shows you where actual orders exist, where they were previously swept, and where institutions are most likely to step in again.
It gives you:
Cleaner charts
Higher confidence
Better strike selection
More precise entries
Stronger exits
All without noise.
Directional Pressure (maybexo)Liquidity Candles, observed in financial markets, display distinctive candlestick patterns that are noteworthy. These candles exhibit intentional price behavior aimed at triggering stop-loss orders and momentarily misleading traders. The pattern typically starts with a price movement against the current trend, activating stop-loss orders and capitalizing on liquidity from traders anticipating the prevailing trend. Subsequently, the price swiftly changes course, breaking and conclusively closing beyond the prior candle's range, often surprising unsuspecting traders.
Characteristics:
1. Liquidity Grab:
- Liquidity Candles initiate with a deliberate move against the existing trend, aimed at triggering stop-loss orders and gathering liquidity from traders who have placed stops in anticipation of the initial trend.
- Notably, the size of the wick in this liquidity grab is significant; a larger wick indicates a more substantial liquidity grab and can strengthen the indication of a potential market reversal.
2. Swift Reversal and Breakout:
- Following the liquidity grab, the price swiftly changes direction, breaking and conclusively closing above or below the previous candle's range.
3. Institutional Behavior:
- These candles are often linked to institutional trading behavior, suggesting potential involvement by significant market participants due to their distinct and deliberate price action.
// Diamonds
1. RSI Diamonds:
The RSI Diamonds represent RSI entering either overbought or oversold levels.
These Diamonds serve as an early indication for "Spooky Diamonds" as Spooky Diamonds can only form in these conditions
2. Spooky Diamonds:
The Spooky Diamonds highlight specific candle conditions, aiding in the identification of bullish or bearish momentum in the market while considering the RSI status.
Bullish Candle Momentum: The candle size is greater than the previous candle multiplied by a user-defined factor (filterMultiplier) and the closing price is higher than the opening price. This can suggest bullish momentum.
Bearish Candle Momentum: The candle size is greater than the previous candle multiplied by the filterMultiplier, and the closing price is lower than the opening price. This can suggest bearish momentum.
Important Notes:
The Candles + Diamonds should not be used in isolation as buy or sell signals but rather as additional information for your trading strategy.
The goal of this indicator is to provide a visual representation of RSI data and potential momentum during overbought or oversold conditions.
By utilizing the diamonds and candles, you can easily identify RSI levels and their interaction with candles, aiding in decision-making within your trading strategy.
Disclaimer: Always consider your risk tolerance and conduct thorough analysis before making any trading decisions.
Inspiration Credits:
Vanitati
Mr. Casino
🧠 Rogue BTC Dominance + BTC Price MonitorLiquidity never lies.
When whales are done pumping, they exit before price tanks, often during sideways chop or fake strength.
So we build a tracker that detects:
Volume drop during uptrend (distribution phase)
Exchange inflows of coins
Rising USDT.D while price holds → stealth exit
Divergence between price & on-chain flows
👁️ Quick Use Case: BTC/USDT with USDT.D Overlay
If you see this pattern:
BTC sideways or slow uptrend
Volume declining
USDT.D rising
BTC.D holding flat
→ Liquidity Exit Detected.
Smart money is exiting quietly, waiting for retail to hold the bag.
Liquidity Stress Index (SOFR - IORB)How to use:
> +10 bps — TIGHT
−5 +10 bps — NEUTRAL
< −5 bps — LOOSE
Liquidity Sweeps (Improved)this is improved version of liqudity sweep and alert thois is my third attempt
Multi-Timeframe Sweep IndicatorsLiquidity Sweeps: Identify when price sweeps stops above/below key levels
Breakout Confirmation: Confirm breakouts across multiple timeframes
Entry Timing: Use lower timeframe sweeps for precise entries
Risk Management: Higher timeframe sweeps may indicate stronger moves
The indicator works best when combined with other analysis techniques like support/resistance levels, volume analysis, and market structure.
Liquidity Fvg IdentifierDear Traders,
This indicator is very effective and supports Price action Traders.
Swing Identification
This automatically Detect swings level and mark as per the chart Time frame. these lines can be used for support and resistance.This is represented by Yellow and Blue lines
There is an option to put Higher time frame swing levels and these are represented by Green and Red Lines. Eg: if you are trading in 5 mins and you also want 1 hour swing levels , then you can get this by selecting higher time frame 1 hour and select both Chart and Htf in the option provided.
Trade: If price is approaching where both Times frames swing lines are coinciding these levels act as strong Support and Resistance . You need to wait for proper price action to form and take Trades.
FVG
This also automatically detect Fare Value Gaps and mark as per the chart Time Frame. These can be used for reversal trades . This is represented buy purple blocks
There is an option to put higher time frame FVG and these are represented by Red Blocks. Eg : if you are trading in 15 mins and you also want 4 hours FVG, then you can get this by selecting Higher time frame 4 hours and select both chart and HTF in the option provided.
Trade: If price is approaching where both time frames FVG are coinciding , these box will act as strong support and reversal. wait for proper price action and trade can be taken.
Volume Breakout.
This will automatically detect and volume breakout of last 60 candles and plots below the candle. These can be adjusted in setting as per requirement. suppose you want for last 30 candles , you can select 30 and it will plot below candle when ever there is breakout.
Trade: When ever volume breakout is coming near swing or fvg support or resistance , this can be considered to support reversal.
Pls take your financial advisor suggesting before using taking trades .
any suggestion reach to us thru message
Thanks
Volume-Weighted Price MovementThe Volume-Weighted Price Movement (VWPM) indicator is an easy to read technical analysis tool that analyses how volume and price movement work together to drive market momentum.
How It Works
The VWPM indicator tracks two primary components:
Bullish Movement (green line): Measures the upward price movement weighted by volume. When price closes above the open, this component calculates how much buying pressure exists by multiplying the price change (close - open) by the volume of that period.
Bearish Movement (red line): Measures the downward price movement weighted by volume. When price closes below the open, this component calculates how much selling pressure exists by multiplying the price change (open - close) by the volume of that period.
Bull-Bear Difference (lime/orange line): Shows the net momentum by subtracting bearish movement from bullish movement, providing an at-a-glance view of which force is dominant.
The VWPM integrates volume data to identify whether price movements are backed by significant participation. A large price move with low volume carries less weight than the same move with high volume, providing a more accurate reflection of market strength.
A shorter lookback period makes the indicator more responsive to recent price action, while a longer period smooths out market noise for trend identification.
Interpretation
Bullish Signals
When the green line (bull movement) rises and stays above the red line
When the Bull-Bear Difference line crosses above zero and maintains positive momentum
Divergence between price making lower lows but the bull line making higher lows (hidden strength)
Bearish Signals
When the red line (bear movement) rises and stays above the green line
When the Bull-Bear Difference line crosses below zero and maintains negative momentum
Divergence between price making higher highs but the bull line making lower highs (hidden weakness)
open source, if anyone makes the script better please let me know :)
Liquidity Levels [LuxAlgo]The Peak Activity Levels indicator displays support and resistance levels from prices accompanied by significant volume. The indicator includes a histogram returning the frequency of closing prices falling between two parallel levels, each bin shows the number of bullish candles within the levels.
1. Settings
Length: Lookback for the detection of volume peaks.
Number Of Levels: Determines the number of levels to display.
Levels Color Mode: Determines how the levels should be colored. "Relative" will color the levels based on their location relative to the current price. "Random" will apply a random color to each level. "Fixed" will use a single color for each level.
Levels Style: Style of the displayed levels. Styles include solid, dashed, and dotted.
1.1 Histogram
Show Histogram: Determines whether to display the histogram or not.
Histogram Window: Lookback period of the histogram calculation.
Bins Colors: Control the color of the histogram bins.
2. Usage
The indicator can be used to display ready-to-use support and resistance. These are constructed from peaks in volume. When a peak occurs, we take the price where this peak occurred and use it as the value for our level.
If one of the levels was previously tested, we can hypothesize that the level might be used as support/resistance in the future. Additional analysis using volume can be done in order to confirm a potential bounce.
The histogram can return various information to the user. It can show if the price stayed within two levels for a long time and if the price within two levels was mostly made of bullish or bearish candles.
In the chart above, we can see that over the most recent 200 bars (determined by Histogram Window) 68 closing prices fall between levels A and B, with 27 bars being bullish.
Additionally, the width of a bin and its length can sometimes give information about the volatility of a specific price variation. If a bin is very wide but short (a low number of closing prices fallen within the levels) then we can conclude a most of the movement was done on a short amount of time.
Titan VSA + SMC Prime (Professional Institutional System)Titan VSA + SMC Prime is a comprehensive, hybrid trading system designed to bridge the gap between Volume Spread Analysis (VSA) and Smart Money Concepts (SMC) By Sultan of Multan. This script is built for traders who want to identify institutional activity, spot liquidity traps, and trade in harmony with the "Smart Money."
Unlike standard indicators that repaint or lag, Titan Prime focuses on price action, structural shifts, and volume anomalies to generate high-probability setups.
🔥 Key Features
1. Smart Money Concepts (SMC) Suite
Market Structure: Automatically maps BOS (Break of Structure) and CHoCH (Change of Character) with real-time trend identification (Bullish/Bearish).
Institutional Zones: clearly plots Order Blocks (OB), Breaker Blocks (BB), Fair Value Gaps (FVG), and Supply/Demand Zones.
Mitigation Tracking: Zones are automatically marked as "Mitigated" or removed once price has tested them, keeping your chart clean.
Premium & Discount Zones: Automatically draws the Equilibrium (EQ) to help you sell in Premium and buy in Discount areas.
2. Advanced Liquidity & Traps
Liquidity Sweeps (⚔): Identifies when key Highs or Lows are swept to grab liquidity.
Inducement (IDM 🪤): Highlights short-term highs/lows that act as "traps" for retail traders before the real move occurs. This helps you avoid false breakouts.
3. Volume Spread Analysis (VSA) Engine
Volume Bar Coloring: Candles are color-coded based on volume intensity:
🟨 Yellow: Ultra High Volume (Institutional Activity).
⬜ Gray: Low Volume (Lack of interest).
VSA Signals: Automatically detects powerful VSA patterns including:
No Demand (ND) / No Supply (NS)
Stopping Volume & Climaxes (SC/BC)
UpThrusts (UT) & Springs
Effort to Rise / Fall
Absorption
4. The "Smart Entry" System
This is the core of the indicator. It does not spam signals. It waits for a specific institutional sequence:
Liquidity Sweep: Price grabs liquidity.
Displacement: Price reverses aggressively.
Retest: The system waits for a pullback to the Order Block or FVG.
Confirmation: Only then does it display a "RETEST COMPLETE ✅ - SMART ENTRY" label with suggested TP/SL levels.
5. Professional Dashboards
Trade Status Panel (Top-Right): Monitors active signals, Entry, Stop Loss, Take Profit, and VSA Trend Score.
SMC Status Panel (Bottom-Right): A live scanner showing the status of Supply/Demand, FVGs, Structure, and overall Market Bias at a glance.
How to Use
Identify Trend: Use the dashboard to check if the market structure is Bullish or Bearish.
Wait for Traps: Look for IDM or Liquidity Sweep (⚔) labels. Smart moves usually happen after these traps.
Entry Confirmation: Do not enter blindly. Wait for the "RETEST COMPLETE" label which confirms that price has respected a Smart Money Zone.
Confluence: The best trades occur when an SMC Zone aligns with a VSA Signal (e.g., A Buying Climax inside a Demand Zone).
Customization
Visual Control: Fully adjustable text sizes, colors, and box lengths to fit your charting style.
Zoom Stability: Labels and text are pinned to ensure they remain readable when zooming in or out.
Disclaimer
This tool is for educational and analytical purposes. Always manage your risk and do not rely solely on any single indicator for financial decisions.
GHOST SNIPERGHOST SNIPER™ – BB Reversal Engine + Smart Entry / Exit Structure Core
MNQ / MES / Stocks / ETFs / Crypto / FX
BB Reversals · Breakouts · PD Structure · Liquidity Sweeps · Displacement · Smart Targets · Quick SL & TP Logic
________________________________________
Summary
Ghost Sniper™ is a high-precision reversal and breakout engine designed for intraday scalping on MNQ/MES, while remaining highly effective across equities, ETFs, crypto, and FX.
It blends a custom Bollinger Reversal Framework (BB Bottom / BB Top Sniper) with an internal ICT-style structure core to filter noise and isolate only high-quality turning points.
The system reads stretch and failure conditions, detects band breakouts, and identifies Bollinger Band failures to anticipate sharp reversals. It includes a Quick TP (QTP) and Quick SL (SL-Q) module for micro-scalps, along with full ICT-style structural targets (TP1, TP2, TP3) for extended runs.
All TP levels and SL placement are derived from smart structural logic, designed to reduce premature stop-outs and improve fill reliability during volatility.
Real-time intrabar logic ensures entries trigger the moment structure confirms — no repainting.
________________________________________
BUY / SELL Signal Activation & Checklist HUD
Ghost Sniper™ uses a rule-based BUY / SELL triggering system driven by real-time structural confirmation — not delayed indicators or hindsight logic.
Entries only activate when a multi-condition internal checklist aligns, combining:
• Bollinger stretch, failure, or breakout behavior
• Liquidity sweep or rejection context
• Micro structure confirmation (BOS / displacement)
• Premium / Discount positioning
• Momentum and reversal candle confirmation
A built-in Checklist Activation HUD visually displays when conditions are forming, aligning, or fully confirmed, allowing traders to see why a signal is valid — not just that it fired.
BUY / SELL signals trigger only when checklist confirmation is reached, filtering low-probability setups and maintaining clean, high-quality entries.
All logic operates intrabar and in real time, with no repainting.
________________________________________
Market Structure & Context Awareness
Ghost Sniper™ incorporates a streamlined ICT-inspired framework, including:
• Liquidity sweep awareness (stop-runs and grabs)
• Micro BOS confirmation
• Premium / Discount context
• Impulse and displacement reads
• Reversal candle assist
• Optional PD / HTF alignment gates
To support institutional-grade context without visual clutter, Ghost Sniper™ also includes a comprehensive set of fully optional, user-selectable tools, allowing traders to tailor the chart to their workflow:
• VWAP
• Up to 5 configurable moving averages
• Bollinger Bands
• Automatic liquidity sweep level detection
• Opening Range Breakout (ORB)
• Midnight Open
• 9:30 AM New York Open
• Previous Day High / Low (PDH / PDL)
• Previous Week High / Low (PWH / PWL)
• Current Week High / Low (CWH / CWL)
• Monthly High / Low
• Previous Month High / Low (PMH / PML)
• Global session tracking, including:
o Asia Session
o London Session
o New York Session
All levels and context tools are individually selectable, designed to provide structure and bias awareness while keeping charts clean and focused.
________________________________________
Execution & Risk Logic
Ghost Sniper™ automatically prints clean, minimal BUY / SELL signals, intelligent stop placement, and progressive target logic:
QTP → TP1 → TP2 → TP3
A built-in Break-Even engine, structural invalidation logic, and one-trade-at-a-time control help maintain disciplined execution and consistent risk management.
Designed for traders who want a fast, decisive, and high-probability entry engine without visual noise or unnecessary complexity.
________________________________________
Disclaimer
This tool is for educational and research purposes only and is not financial advice.
Always test thoroughly in replay or paper trading before using in live markets.
POWER INDICATOR - PRO PREMIUM by OeZKAN 👑 POWER INDICATOR PRO PREMIUM V24: Predictive Intelligence Meets Precision ExecutionThe POWER INDICATOR PRO PREMIUM V24 is the pinnacle of algorithmic trading intelligence. This system transcends traditional indicators by utilizing a sophisticated framework of advanced mathematical equations to predict the impending trend direction before the market moves. It combines Smart Money Concepts (SMC), Multi-Timeframe (MTF) convergence, and Dynamic Risk Management to deliver unparalleled clarity and execution confidence.If you seek a trading partner that provides leading, predictive signals and high-probability entries, this system is your definitive solution.🧠 The Core Element: Predictive Market Context & Directional ForecastThe foundational strength of the POWER INDICATOR is its ability to forecast the market's bias through advanced quantification:🚀 Directional Pre-Cognition (LRC & Mathematical Models):The system utilizes the Linear Regression Curve (LRC) and proprietary statistical models as its core mathematical engine. This process extrapolates the probable trend path and generates a Directional Forecast for the coming bars, enabling you to anticipate moves rather than react to them. This forecast serves as the ultimate bias filter.🧠 The Convictional Filter: Quantifying Probability ($60\%$ Confidence):This filter is our proprietary Probability Brain. It eliminates market noise by forcing convergence across multiple high-level factors (MTF agreement, Momentum, SMC levels).High-Conviction Threshold: Independent analysis confirms that the Conviction Filter provides an exceptionally high win rate and signal quality starting at just $60\%$. Setting your threshold at this level ensures you only consider trades where the predictive mathematical components are in strong alignment.🌊 FVG & GP Predictive Zones:The system automatically identifies and projects critical Fair Value Gaps (FVG/LSOB) and the Golden Pocket (GP) Re-Test Zone. These zones are algorithmically identified as high-probability targets for pullbacks and reversals, providing a clear map of where liquidity will be sought.💡 The Convictional Trading Workflow: A 3-Step Guide to ExecutionContext Check: Confirm the LRC Directional Forecast aligns with your trade and the Conviction Score Meter is above your desired threshold (minimum $60\%$).Optimal Entry: Wait for the signal to trigger at a high-R:R entry point (GP, FVG, or Aggressive Impulse), guided by your chosen trading mode.Dynamic Management: Let the system handle risk, utilizing Structural SL and automatic Multi-Method Trailing Stops post-TP1.🎯 Mode Selection: Matching Strategy to MarketThe indicator's power lies in its Modularity. Selecting the correct mode is crucial for optimizing your results.Trading StyleRecommended ModesPrimary Rationale & Entry LogicHigh-Frequency ScalpingCT Scalp-OnlyDesigned for counter-trend entries in a pullback towards the Golden Pocket (GP). Uses tighter SL/TP multipliers for quick profit-taking. (Fast, high-R:R)ATR Channel Scalp (ACS)Utilizes volatility channels (ATR bands) for quick mean-reversion trades when price overextends.Strategic Day Trading / Swing TradingUltimate Fusion Mode (UFM)The highest probability mode. Best for catching major shifts confirmed by SMC (LRC, GP, FVG, MSS). Waits for a deep, high-R:R Re-Test Entry.Haupttrend & Scalp (Kombi)Excellent general-purpose mode. Focuses on trend continuation but allows for high-R:R pullback entries at key levels (GP/FVG). (Balanced)FVG Mitigation Entry (FME)Ideal for SMC traders. Waits for the price to precisely re-test and mitigate an unmitigated Fair Value Gap (FVG) or Liquidity Sweep (LSOB) zone before entry.Breakout & Momentum TradingBand Breakout-OnlyTriggers an entry only when price decisively breaks outside the SMA Volatility Bands (configurable). Filtered by momentum requirements.Dynamic Range Expansion (DRE)Specifically detects low-volatility consolidation before an anticipated high-momentum expansion phase.🔔 The Master Alert System: Your Execution EdgeThe powerful Alert functionality ensures you can monitor multiple assets and timeframes without being glued to the screen.1. ✅ Dynamic MASTER ALARM (Compact Text)The core alert uses a compact, dynamic JSON/text message that contains all necessary information for quick execution:Action: BUY / SELLMode Used: Conviction Score: Key Level: 2. LRC/GP Combo-Alert (High-R:R)This is the most valuable alert for strategic traders. It triggers only when the LRC direction is confirmed and the price enters the Golden Pocket (GP) Re-Test Zone, indicating an optimal high-R:R pullback opportunity.Final Note: To maximize the predictive power, ensure the useConvictionFilter is set to a minimum of $60\%$ and the useStructureSL is activated to protect your capital with intelligent stop placement.Stop reacting. Start predicting. Activate the POWER INDICATOR PRO PREMIUM V24 and lead the market today!
Golden Volume Lines📌 Golden Volume — Lines (Golden Team)
Golden Volume — Lines is an advanced volume-based indicator that detects Ultra High Volume candles using a statistical percentile model, then automatically draws and tracks key price levels derived from those candles.
The indicator highlights where real market interest and liquidity appear and shows how price reacts when those levels are broken.
🔍 How It Works
Volume Measurement
Choose between:
Units (raw volume)
Money (Volume × Average Price)
Average price can be calculated using HL2 or OHLC4.
Percentile-Based Classification
Volume is classified into:
Medium
High
Ultra High Volume
Thresholds are calculated using a rolling percentile window.
Ultra Volume candles are colored orange.
Dynamic High & Low Levels
For every Ultra Volume candle:
A High and Low dotted line is drawn.
Lines extend to the right until price breaks them.
Smart Line Break Detection (Wick-Based)
A line is considered broken when price wicks through it.
When a break occurs:
🟧 Orange line → broken by an Ultra Volume candle
⚪ White line → broken by a normal candle
The line stops exactly at the breaking candle.
🔔 Alerts
Alert on Ultra High Volume candles
Alert when a High or Low line is broken
Separate alerts for:
Break by Ultra Volume candle
Break by Normal candle
🎯 Use Cases
Breakout & continuation confirmation
Liquidity sweep detection
Volume-validated support & resistance
Market reaction after extreme participation
⚙️ Key Inputs
Volume display mode (Units / Money)
Percentile thresholds
Lookback window size
Maximum number of active Ultra levels
Optional dynamic alerts
⚠️ Disclaimer
This indicator is a volume and market structure tool, not a standalone trading system.
Always use proper risk management and additional confirmation.
NQ Market DNA: ML ScorerNQ Market DNA: ML Scorer — Indicator Description
NQ Market DNA: ML Scorer is a session-structure and machine-learning scoring tool designed specifically for Nasdaq futures (NQ/MNQ). It converts the market’s overnight behavior into a single, probability-style score (0–100%) and a clear directional bias for the upcoming New York session.
This script is not a generic “trend indicator.” It is a rules-based implementation of a machine-learning model whose feature set and weightings were built and calibrated in Python using historical session data. The Pine Script version is the real-time execution layer: it measures the live session structure, applies the model weights, and displays the result on-chart.
________________________________________
What the indicator plots
1) Session Boxes (Structure Map)
The indicator draws three session ranges using boxes and a midline:
• Asia Session (20:00–02:00 NY time by default)
• London Session (02:00–08:00 NY time by default)
• New York Session (08:00–16:00 NY time by default)
Each session box:
• Expands in real time as highs/lows develop
• Includes a dotted midline (session midpoint)
• “Locks” its final values once the session ends
2) Extension Levels (Target Interaction)
When Asia or London ends, the script projects high and low extension lines forward into the day. These lines extend until one of the following happens:
• Price trades back through the level (a touch/cross condition), or
• The script reaches the hard stop at 16:00 (end of NY session)
This makes it easy to visually track whether later sessions respect or invalidate prior-session extremes.
________________________________________
The ML scoring concept
Output: “Probability of High First” (0–100%)
The model’s output is a normalized score intended to behave like a probability. Practically:
• Score ≥ 50% → Bullish bias (“London High First”)
• Score < 50% → Bearish bias (“London Low First”)
The score is produced by summing weighted session features. If a feature is bullish, it contributes its weight; if bearish, it contributes zero. The weights approximately sum to ~100, so the final score naturally maps into a 0–100 range.
Bias coloring
The on-chart score cell uses a risk-style color gradient:
• Strong Bullish (typically > 75): green
• Neutral / mixed (around 40–75): orange
• Bearish / weak (below ~40): red
________________________________________
Features used by the model (and why they matter)
The ML scorer is driven by session positioning, trend, and volatility. Your Python research determined the relative importance of each feature; the largest weights reflect the strongest historical explanatory power.
Primary drivers (most important)
1. NY Open Location (Weight ~63.73%)
Checks whether the NY session opens above or below the London midpoint.
This is treated as the dominant structural signal because it captures whether NY is opening in the “upper half” or “lower half” of London’s range.
2. London Trend (Weight ~28.09%)
London close vs London open (bullish if close > open).
This represents whether London printed a directional push versus chop.
3. London Outcome / Structure (Weight ~4.21%)
Classifies London relative to Asia:
o “High-only sweep” (bullish structure) if London breaks Asia high without breaking Asia low
This is a proxy for one-sided liquidity behavior rather than symmetric volatility.
Minor factors (smaller weights, but still additive)
4. London Volatility (Weight ~1.11%)
London range relative to its own rolling average (lookback-controlled).
Used as a contextual amplifier: higher-than-normal London range can support continuation.
5. Asia Volatility (Weight ~1.05%)
Asia range relative to its rolling average.
Helps distinguish “quiet overnight” vs “expanded overnight,” which can change the day’s tendency.
6. Asia Trend (Weight ~1.00%)
Asia close vs Asia open.
A light directional context input.
7. London Open Location vs Asia Mid (Weight ~0.81%)
Whether London opens above/below the Asia midpoint.
Helps quantify early handoff positioning.
________________________________________
How to read the table
The table is designed to be a compact decision panel:
• ML PREDICTOR: the score (%) for the current day once NY has opened
• NY Bias: bullish or bearish interpretation based on the 50 threshold
• Top Drivers: shows the state of the highest-weighted features (NY location, London trend, structure)
• Minor Factors: a condensed read on volatility context (e.g., “High Vol” vs “Mixed/Low”)
This layout lets you quickly understand not only the bias, but what caused it.
________________________________________
Best-practice usage notes
• This tool is intended to be used as a context engine, not a standalone entry signal.
• It is most effective when combined with your execution framework (levels, risk model, confirmations, etc.).
• Because it relies on session boundaries, chart symbol and market hours must match the intended instrument (NQ futures) for the cleanest behavior.
________________________________________
Critical disclaimer and settings warning
IMPORTANT — DO NOT CHANGE SETTINGS.
This indicator’s machine-learning weights and feature calibration were derived in Python from historical data under a specific configuration (session windows, timezone, and feature definitions). Changing any inputs—especially session times, timezone, rolling windows, or ML feature weights—can materially invalidate the model’s expected behavior and may produce misleading outputs.
Use with caution.
This script is provided for educational and informational purposes only and does not constitute financial advice. Futures trading involves substantial risk and is not suitable for all traders. Past performance and historical patterns do not guarantee future results. You are solely responsible for any trading decisions and risk management.
If you ever re-train or re-calibrate the model in Python, update the weights only by replacing them with the new Python-derived values as a complete set—do not “tune” them manually.
zhanzhang66Key Indicators for Crypto & US Stock Analysis
These indicators are vital for crypto and US stock trading, aiding in trend identification, overbought/oversold judgment, valuation assessment and reversal signal capture, supporting rational trading decisions.
Crypto Indicators
• RSI: Measures price strength to spot overbought/oversold conditions.
• MACD: Tracks trend direction and momentum, capturing reversal signals.
• Bollinger Bands: Gauges price volatility and potential breakouts.
• Volume: Verifies trend validity and market liquidity.
• EMA/SMA: Identifies short/long-term trend directions.
• RSI Divergence: Warns of potential trend reversals.
• Fibonacci Retracement: Predicts key support/resistance levels.
• Stochastic Oscillator: Pinpoints extreme overbought/oversold states.
US Stock Indicators
• EPS: Reflects company profitability, a core fundamental metric.
• P/E Ratio: Evaluates stock valuation rationality.
• MACD/RSI: Tracks trend, momentum and overbought/oversold conditions.
• Volume: Confirms price movement strength.
• SMA/EMA: Clarifies short/long-term trends.
• ADX: Measures trend strength to avoid sideways market trades.
• Bollinger Bands: Judges volatility and breakout directions.
• Dividend Yield: Key for value investors, showing stable returns.
• ROE: Assesses company profit efficiency for long-term investment.
VX-Session-Boxes-(AM/PM Split)(Customizable) by Ikaru-s-VX-Session-Boxes-(AM/PM Split) is a session-based visualization tool for TradingView that highlights major market sessions directly on the chart using dotted range boxes and an optional AM/PM split.
The indicator allows traders to visually separate market behavior across different sessions while keeping the chart clean and readable.
🔹 Key Features
Custom Session Definitions
Define up to 4 independent sessions using TradingView’s session format (HHMM-HHMM + weekdays).
Timezone-Aware
All sessions are calculated using a user-defined timezone (IANA or UTC offset), ensuring accurate session alignment across markets.
Dotted Session Boxes
Each session is drawn as a dotted box based on the session’s high/low range, providing a clear view of volatility and price structure.
AM / PM Split Visualization
Sessions can be visually split into AM and PM parts:
Separate box shading for AM and PM
Optional dotted vertical split line at the AM → PM transition (12:00 in the selected timezone)
Session Labels
Optional labels at the start of each session for quick identification (e.g. Sydney, Tokyo, London, New York).
Fully Customizable Visuals
Adjustable opacity, border width, and visibility toggles for boxes, split lines, and labels.
🔹 Use Cases
Session-based market analysis (Asia / London / New York)
Identifying session ranges and volatility expansion
Observing price behavior differences between AM and PM
Studying session transitions and liquidity shifts
🔹 Notes
Session boxes are based on session high and low, not full chart height.
AM/PM split is based on 12:00 (noon) in the selected timezone.
Designed for clarity and performance on intraday timeframes.
🔹 Compatibility
Pine Script® v6
Works on all intraday timeframes
Overlay indicator (draws directly on the price chart)
SLO Pro-J-Algo # Smart Liquidity & OTE Analysis Tool
## OVERVIEW
This indicator is designed for traders who utilize institutional trading concepts, specifically liquidity sweeps and optimal trade entry (OTE) zones, combined with session-based market structure analysis. It identifies potential market manipulation points where stop losses are likely clustered, and highlights high-probability entry zones based on Fibonacci retracements.
The tool combines four main analytical components that work synergistically to identify trading opportunities aligned with smart money behavior.
---
## CORE CONCEPTS & METHODOLOGY
### 1. TRADING SESSIONS ANALYSIS
**What it does:**
The indicator tracks three major forex trading sessions with customizable time zones:
- **Asian Session** (Default: 01:00-13:00 UTC+4) - Typically characterized by range-bound price action
- **London Session** (Default: 11:00-20:00 UTC+4) - High volatility period with increased institutional activity
- **New York Session** (Default: 17:00-00:00 UTC+4) - Overlaps with London creating peak liquidity
**How it works:**
- Automatically highlights active sessions with colored background boxes
- Draws session high/low lines which often act as intraday support/resistance
- Identifies session overlaps (e.g., London-NY overlap) where volatility and liquidity are highest
- Color-codes the price bars during overlaps to alert traders to increased opportunity periods
- Displays real-time session status (🟢 Open / 🔴 Closed) for quick reference
**Trading Application:**
Session highs and lows frequently become liquidity targets. The indicator helps traders anticipate when price might sweep these levels before continuing in the original direction. Session overlaps are prime times for major moves as multiple institutional players are active simultaneously.
---
### 2. EXTERNAL LIQUIDITY SWEEPS
**What it does:**
Identifies when price "sweeps" or breaks beyond significant swing highs and lows where stop losses are typically clustered. These sweeps often precede reversals or continuations after liquidity is collected.
**How it works:**
- Scans the previous 20 bars (configurable) to identify swing high and low points
- Marks these levels as "buyside liquidity" (above highs) or "sellside liquidity" (below lows)
- Monitors price action using three detection methods:
* **Wick Break:** Any candle wick extending beyond the liquidity level
* **Close Break:** Candle body closing beyond the level (stronger confirmation)
* **Full Retrace:** Price breaks the level then closes back inside the range (classic liquidity grab)
- Uses an ATR-based buffer to avoid false signals from minor price spikes
- Confirms sweeps only after a configurable number of confirmation bars to reduce repainting
**The Logic Behind It:**
Institutional traders need liquidity to fill large orders. Stop losses clustered above swing highs and below swing lows provide this liquidity. When these levels are swept, it often indicates smart money is entering positions in the opposite direction, causing reversals.
**Visual Representation:**
- Blue horizontal lines mark buyside liquidity zones (above price)
- Gray horizontal lines mark sellside liquidity zones (below price)
- Labels indicate when liquidity has been swept (✓) or remains active
- Historical zones are maintained for context (configurable display limit)
---
### 3. INTERNAL LIQUIDITY DETECTION
**What it does:**
Identifies equal highs (EQH) and equal lows (EQL) within recent price action - levels that have been tested multiple times without breaking. These represent internal liquidity pools that price often revisits before making larger moves.
**How it works:**
- Examines the most recent 8 bars (configurable) for price levels that occur multiple times
- Uses an ATR-based threshold (default 0.1% of ATR) to determine if highs or lows are "equal"
- Requires minimum 3 occurrences (configurable) of the same level to qualify as internal liquidity
- Tracks both the creation and sweeping of these internal levels
- Differentiates between wick breaks and close breaks for sweep confirmation
**The Concept:**
Unlike external liquidity at swing points, internal liquidity represents recent stop clusters and pending orders within the current price structure. Identifying these levels helps traders anticipate short-term price targets and potential reversal points before larger directional moves.
**Why This Matters:**
Price often needs to clear internal liquidity before making sustained moves to external liquidity levels. This creates a "roadmap" of where price is likely to go in sequence, improving trade timing.
**Visual Representation:**
- Cyan lines mark internal buyside liquidity (equal highs)
- Orange lines mark internal sellside liquidity (equal lows)
- Dashed or solid lines based on user preference
- Labels show when internal levels are swept
---
### 4. OPTIMAL TRADE ENTRY (OTE) ZONES
**What it does:**
Calculates and displays Fibonacci retracement zones (0.618-0.786) from recent swing points, representing "discount" or "premium" areas where institutional traders often enter positions after a liquidity sweep or structure break.
**How it works:**
- Identifies swing highs and lows using a 10-bar lookback period (configurable)
- Calculates three key Fibonacci levels:
* **0.618** - The "golden ratio" retracement (most significant)
* **0.705** - Mid-point between 0.618 and 0.786
* **0.786** - Deep retracement level (square root of 0.618)
- Optionally requires a structure break before displaying OTE zones
- Dynamically extends zones as new price action develops
- Tracks whether price has entered the zone (✅) or exited without filling (❌)
- Displays up to 2 most recent zones (configurable) to avoid chart clutter
**The Methodology:**
OTE zones represent areas where price is at a "discount" (for longs) or "premium" (for shorts) relative to the recent swing. After a liquidity sweep or structure break, institutional traders often wait for retracements into these zones before entering, as it offers better risk-to-reward ratios.
**Combining with Liquidity:**
The most powerful setups occur when:
1. External liquidity is swept
2. Price retraces into an OTE zone
3. Internal liquidity is present as a target
This confluence suggests smart money activity and high-probability trade opportunities.
**Visual Representation:**
- Shaded blue zone between 0.618 and 0.786 levels
- Three horizontal lines showing key Fibonacci levels with different colors/styles
- Labels (🎯) indicate bullish or bearish OTE zones
- Entry (✅) and exit (❌) status for each zone
---
## WHY THESE FEATURES WORK TOGETHER
This indicator combines these four components because they represent different stages of institutional trading behavior:
1. **Session Timing** - Identifies WHEN institutional activity is highest
2. **Liquidity Sweeps** - Shows WHERE smart money is collecting liquidity
3. **OTE Zones** - Highlights WHERE institutional entries likely occur after sweeps
4. **Internal Liquidity** - Provides SHORT-TERM targets for profit-taking or add-ons
Rather than using each concept in isolation, this integration creates a complete market structure framework. For example:
- A buyside liquidity sweep during London open →
- Followed by a retrace into a bullish OTE zone →
- With internal sellside liquidity as the initial target
This sequence represents a complete high-probability trade setup aligned with smart money principles.
---
## ANTI-REPAINTING FEATURES
**The Repainting Problem:**
Many indicators that identify patterns on historical data repaint their signals when live trading, showing signals that weren't actually there in real-time. This creates a false sense of accuracy.
**Our Solution:**
- **Confirmation Bars Setting:** Signals only appear after X bars have confirmed the pattern (default: 2 bars)
- **Marked Confirmation:** Labels show "C" when using confirmed signals
- **Trade-off:** More confirmation = less repainting but slightly delayed signals
- **User Control:** Traders can toggle between real-time signals (faster but may repaint) and confirmed signals (delayed but reliable)
---
## KEY CUSTOMIZATION OPTIONS
### Master Controls
- Toggle each major feature on/off independently
- Combine only the features relevant to your trading style
### Display Settings
- Adjust lookback periods for each component
- Control number of historical zones displayed
- Customize colors, line styles, and transparency
- Show/hide labels and session names
- Configure text sizes for different screen setups
### Detection Sensitivity
- **Sweep Detection:** Choose between wick breaks, close breaks, or full retraces
- **ATR Buffer:** Add distance requirements to confirm sweeps (reduces false signals)
- **Equal Level Threshold:** Adjust how close levels must be to qualify as "equal"
- **Confirmation Bars:** Balance between signal speed and reliability
### Alert System
- Session open/close notifications
- Liquidity sweep alerts
- OTE zone entry alerts
- Configurable alert frequency and types
---
## HOW TO USE THIS INDICATOR
### Basic Setup
1. Add the indicator to your chart (works on all timeframes, though 5M-1H recommended for intraday)
2. Enable the features you want to use via Master Controls
3. Adjust colors and transparency to match your chart preferences
4. Configure alert preferences if using notifications
### Trading Workflow
**Step 1: Identify the Session**
- Determine which trading session is active or approaching
- Note session highs/lows as potential liquidity targets
- Be especially alert during session overlaps
**Step 2: Watch for Liquidity Sweeps**
- Monitor external liquidity lines (swing highs/lows)
- When price sweeps liquidity, anticipate a potential reversal
- Stronger sweeps (close breaks + full retraces) are more significant
**Step 3: Wait for OTE Retracement**
- After a sweep, wait for price to retrace into the OTE zone (0.618-0.786)
- Bullish OTE after sellside sweep = potential long
- Bearish OTE after buyside sweep = potential short
**Step 4: Use Internal Liquidity as Targets**
- Look for internal liquidity in the direction of your trade
- These serve as initial profit targets
- External liquidity serves as extended targets
**Step 5: Manage Confirmation Settings**
- For live trading, use confirmed signals (2+ confirmation bars)
- For backtesting or analysis, you may use real-time signals
- Note that confirmed signals appear with "C" marking
### Example Trade Scenarios
**Bullish Setup:**
1. London session opens (increased volume)
2. Price sweeps sellside liquidity below Asian low
3. Price retraces into bullish OTE zone (0.618-0.786 of the sweep move)
4. Target internal buyside liquidity, then external buyside liquidity
**Bearish Setup:**
1. NY session overlap with London (peak liquidity)
2. Price sweeps buyside liquidity above recent high
3. Price retraces into bearish OTE zone
4. Target internal sellside liquidity, then session lows
---
## BEST PRACTICES
### What This Indicator Does Well
✓ Identifies high-probability institutional trading zones
✓ Provides clear visual roadmap of likely price targets
✓ Reduces chart clutter with configurable history limits
✓ Works across multiple timeframes and instruments
✓ Minimizes repainting with confirmation settings
### What This Indicator Doesn't Do
✗ Does not provide entry/exit arrows (intentional - requires trader discretion)
✗ Does not guarantee winning trades (no indicator does)
✗ Does not work in isolation (combine with price action/market context)
✗ Does not replace risk management (always use stop losses)
### Recommended Complementary Analysis
- Price action patterns (engulfing candles, pinbars at OTE zones)
- Volume profile or footprint charts for order flow confirmation
- Higher timeframe trend context (don't fade strong trends)
- Economic calendar awareness (avoid major news events)
---
## TECHNICAL NOTES
### Performance Optimization
- Uses max_bars_back limitation to reduce memory usage
- Automatic cleanup of old zones to prevent slowdown
- Efficient array management with configurable display limits
- Suitable for both intraday and swing trading timeframes
### Timeframe Recommendations
- **1-5 Minute:** Scalping with tight internal liquidity targets
- **15-30 Minute:** Intraday trading with session-based setups
- **1-4 Hour:** Swing trading with multi-session analysis
- **Daily:** Position trading using weekly liquidity levels
### Instrument Compatibility
Works on all liquid instruments:
- Forex pairs (optimal due to clear sessions)
- Stock index futures (ES, NQ, etc.)
- Cryptocurrency (24/7 markets - use custom session times)
- Individual stocks (less pronounced session effects)
---
## EDUCATIONAL RESOURCES
To better understand the concepts used in this indicator:
**Liquidity Concepts:**
- Study institutional order flow and stop loss hunting
- Learn about market microstructure and liquidity provision
- Understand the difference between retail and institutional trading
**Fibonacci/OTE:**
- Research Fibonacci retracements in trending markets
- Study the mathematical significance of the golden ratio (0.618)
- Practice identifying retracement entries on historical charts
**Session Trading:**
- Analyze volume profiles during different forex sessions
- Study typical price behavior during session overlaps
- Understand timezone conversions for your local trading hours
---
## VERSION HISTORY & UPDATES
This script represents a complete integration of multiple smart money concepts into a single, cohesive tool. Future updates will be published using the Update feature rather than creating separate scripts for minor variations.
---
## DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice or trading recommendations. All trading involves risk, and past performance does not guarantee future results. Always practice proper risk management and never risk more than you can afford to lose.
The concepts presented here (liquidity sweeps, OTE zones, session analysis) are widely discussed trading theories. This indicator is an interpretation and visualization of these concepts, not a guarantee of their effectiveness.
---
## SETTINGS SUMMARY
**Master Controls:** Enable/disable each major feature independently
**Repainting Controls:** Adjust confirmation requirements for signals
**Trading Sessions:** Customize session times, colors, and display options
**External Liquidity:** Configure detection sensitivity and visual styling
**Internal Liquidity:** Adjust lookback periods and threshold sensitivity
**OTE Zones:** Select which Fibonacci levels to display and entry requirements
**Alerts:** Configure notifications for sessions, sweeps, and entries
---
## SUPPORT & FEEDBACK
If you find this indicator helpful, please leave a like and comment with your feedback. For questions about specific settings or concepts, refer to the tooltips in the indicator settings panel - each parameter includes a detailed explanation.
Remember: The best indicator is the one you understand and can apply consistently within your trading plan. Take time to practice with this tool on demo accounts before risking real capital.
Liquidity_Detection_Fx_Shepherd [ALLDYN]### Breakdown of the Basic "Fx_Shepherd_Liquidity" Script
#### 1. **Purpose of the Script:**
This basic version of the "Fx_Shepherd_Liquidity" script is designed to help traders detect potential liquidity grabs by analyzing price movements and candle patterns in the market. It works by identifying large price deviations and compares multiple candles to detect liquidity sweeps either to the upside or downside.
#### 2. **How it Works:**
- **User Inputs:**
- `Maru_rate`: This is a user-defined percentage that helps determine how much the price movement of a candle needs to deviate from the candle's range (high - low) to be considered a liquidity grab.
- `Compare`: Another percentage input used to compare the relative size of three candles versus one candle.
- `MA`: This represents the "Big candle period," or the moving average period for big candles.
- `urgent_rate`: This is used to determine urgency by comparing the current candle's range to an SMA of previous candles.
- **Key Calculation Steps:**
- **Candle Deviation (Up and Down):**
- `Up` measures how much the current candle closes above its open (bullish deviation).
- `Down` measures how much the current candle closes below its open (bearish deviation).
- **Average Deviations:**
- `UP_Sum` and `Do_Sum` calculate the SMA of Up and Down deviations, respectively, over the defined period (MA). These averages help detect when a candle deviates significantly from the norm.
- **Urgency Detection:**
- `Check_Up_Urgent` and `Check_Dow_Urgent` are conditions that check if the current candle’s high-low range exceeds the defined urgent rate. This signals whether the price movement is "urgent" or significant.
- **Liquidity Detection:**
- **For Upward Liquidity:**
- The script checks if the candle is bullish (`close > open`) and whether the price deviation (`close - open`) meets or exceeds the user-defined `Maru_rate`.
- The script then compares the size of the previous three candles (`high - low`) with a single candle (`Compare`) to confirm a liquidity grab.
- Finally, it looks for continuous upward candle patterns to confirm the strength of the move.
- **For Downward Liquidity:**
- Similar logic applies, but for bearish candles. It checks whether the candle is bearish (`close < open`) and applies the same size comparisons to detect downward liquidity grabs.
- **Candle Highlighting:**
- If the conditions for a liquidity grab are met (both urgency and size), the script changes the bar color to green for upward liquidity and yellow for downward liquidity. These colored bars visually highlight the candles that meet the liquidity grab conditions.
- The script also colors up to three consecutive candles if they meet the liquidity grab conditions (offset = -1, -2).
#### 3. **Benefits of Using This Script:**
- **Liquidity Grab Detection:**
This script helps detect potential liquidity grabs, which occur when large players in the market push the price in a direction to trigger stop-losses or lure retail traders into a position before reversing the price direction. By detecting these movements, traders can avoid being trapped and potentially take advantage of the upcoming reversal.
- **Simple & Lightweight:**
The script uses basic inputs and calculations to detect liquidity grabs, making it easy to use and understand. It's less complex than the advanced version, which makes it suitable for traders who prefer simplicity or are new to liquidity grab detection.
- **Visual Clarity:**
The script uses color changes (green for upward grabs and yellow for downward grabs) to help traders easily spot potential liquidity grab areas on the chart. These visual cues make it more straightforward to interpret.
#### 4. **When to Use This Basic Version:**
- **Quick Liquidity Detection:** This script is ideal for traders who need a quick way to detect potential liquidity grabs without the complexity of managing dynamic parameters or volume confirmation.
- **Simplified Trading Strategies:** If your trading strategy doesn’t rely heavily on volume or multi-timeframe liquidity grab adjustments, this script can work well for basic setups where price action is the primary indicator.
- **Faster Execution:** Since this version doesn’t require dynamic adjustments or volume confirmation, it executes faster, making it suitable for traders who need lightweight tools to stay on top of fast-moving markets.
### Conclusion:
The basic version of the **Fx_Shepherd_Liquidity** script offers a simplified tool for detecting potential liquidity grabs. Its straightforward design, adjustable Maru rate, and visual bar color changes make it easy to integrate into any trading strategy focused on price action. While it lacks the advanced features of the premium version, it serves as a solid, lightweight solution for traders who prefer simplicity over complexity.






















