Liquidity Sweep Detector – PDH/PDL LevelsPrevious Day High/Low Liquidity Sweep Detector (Intraday Accurate)
This indicator tracks the previous day's high and low using intraday data, rather than the daily candle, ensuring precise sweep detection across lower timeframes (15m to 4H).
It monitors for liquidity sweeps—moments when price briefly moves above the previous high or below the previous low—and visually marks these events on the chart.
Key Features
Intraday-accurate PDH/PDL tracking
Real-time sweep detection
On-chart labels marking sweep events
Toggleable table showing sweep status
Alert conditions for PDH/PDL sweep triggers
Best For
Traders who use Smart Money Concepts (SMC), liquidity-based strategies, or look for stop hunts and reversal zones tied to key prior-day levels.
Works well across FX, crypto, and indices on 15m, 1H, and 4H charts.
Análise de Tendência
[T] FVG Size MarkerThis scripts marks the size of the FVG on the chart. As well as lets you place custom text based on gap size. Custom text lets you overlay contract size risk based on the gap size.
CoffeeShopCrypto Supply Demand PPO AdvancedCoffeeShopCrypto PPO Advanced is a structure-aware momentum oscillator and price-trend overlay designed to help traders interpret momentum strength, exhaustion, and continuation across evolving market conditions. It’s not a “buy/sell” signal tool — it's a momentum context tool that helps confirm trend intent.
Original Code derived from the Price Oscillator Indicators (PPO) found in the TradingView Technical Indicators categories. You can view the info and calculation for the original PPO here
www.tradingview.com
Much like the MACD, the PPO uses a couple lagging indicators to present Momentum as a percentage. But it lacks context to market structure.
What It’s Based On
This tool is based on a dual-moving-average PPO oscillator structure (Percentage Price Oscillator) enhanced by:
Oscillator pivot structure: detection of Lower Highs (LH) and Higher Lows (HL) inside the oscillator.
Detection of Supply and Demand Trends via Market Absorption
Ability to transfer its average plots to price action
Detection of Trend Exhaustion
Real-time price-based exhaustion levels: projecting potential future supply and demand using trendlines from weakening momentum.
Integrated fast and slow Moving Averages on price using the same inputs as the oscillator, to visualize alignment between short- and long-term trends.
These elements combine momentum context with price action in a visual, intuitive system.
How It Works
1. Oscillator Structure
LHs (above zero): momentum weakening in uptrends.
HLs (below zero): momentum strengthening in downtrends.
Only valid pivots are shown (e.g., an LH must be preceded by a valid LL).
2. Exhaustion Levels
Green demand lines: price is making new lows, but oscillator prints HL → potential exhaustion.
Red supply lines: price is making new highs, but oscillator prints LH → potential exhaustion.
These lines are future-facing, projecting likely reaction zones based on momentum weakening.
3. Moving Averages on Price
Two MAs are drawn on the price chart:
Fast MA (same length as PPO short input)
Slow MA (same length as PPO long input)
These are not signal lines — they're visual guides for trend alignment.
MA crossover = PO crosses zero. This indicates short- and long-term momentum are syncing — a powerful signal of trend conviction.
When price is above both MAs, and the PO is rising above zero, bullish momentum is dominant.
When price is below both MAs, and the PO is falling below zero, bearish momentum dominates.
How Traders Can Use It
✅ Spot Trend Initiation
Wait for clear trend confirmation in price.
Use PPO Momentum+ to confirm momentum structure is aligned (e.g., HH/HL in oscillator + price above both MAs).
🔁 Track Continuations
In uptrends, look for oscillator HH and HL sequences with price holding above both MAs.
In downtrends, seek LL and LH sequences with price below both MAs.
⚠️ Watch for Exhaustion
Price breaking below red (supply) lines after oscillator LH = bearish exhaustion signal.
Price breaking above green (demand) lines after oscillator HL = bullish exhaustion signal.
These levels act like pre-mapped S/R zones, showing where momentum previously failed and price may react.
Why This Is Different
Momentum tools often lag or mislead when used blindly. This tool visualizes structural failure in momentum and maps potential outcomes. The integration of oscillator and price-based tools ensures traders are always reading context, not just raw signals.
Demand Trendlines
Demand trendlines show us Wykoff's law of "Absorbed Supply Reversal" In real time.
When aggressive selling pressure is persistently absorbed by passive buying interest without significant downward price continuation, and supply becomes exhausted, the market structure shifts as demand regains control—resulting in a directional reversal to the upside.
This commonly happens in a 3 phase interaction of price.
1. Selling pressure is absorbed quickly by buyers.
This PPO tool will calculate the trend of this absorption process
2. After there is a notable Bearish Exhaustion of price action, the PPO tool will draw a trendline of this absorption showing us the potential future prices where aggressive buyers will want to step in at lower prices.
3. After higher lows are defined in the oscillator, you'll see prices react in a strong bullish pattern at this trendline where aggressive buyers stepped in to reverse price action to the upside.
Supply Trendlines
Supply trendlines show us Wykoff's law of "Absorbed Demand Reversal" In real time.
When aggressive buying pressure is persistently absorbed by passive selling interest without significant downward price continuation, and demand becomes exhausted, the market structure shifts as supply regains control—resulting in a directional reversal to the downside.
This commonly happens in a 3 phase interaction of price.
1. Buying pressure is absorbed quickly by sellers.
This PPO tool will calculate the trend of this absorption process.
2. After there is a notable Bullish Exhaustion of price action, the PPO tool will draw a trendline of this absorption showing us the potential future prices where aggressive sellers will want to step in at higher prices.
3. After lower highs are defined in the oscillator, you'll see prices react in a strong bearish pattern at this trendline where aggressive sellers stepped in to reverse price action to the downside.
Lower High and Higher Low Signals
When the oscillator signals Lower Highs or High Lows its only noting that momentum in that trend direction is slowing. THis indicates a coming pause in the market and the proceeding longs of an uptrend or shorts of a downtrend should be taken with caution.
**These LH and HL markers are not reading as divergences in price vs momentum.**
They are simply registering against the highs and lows of itself..
Moving Averages on Price Action
The Oscillator will cross over its ZERO level the same time your Short and Long MAs cross each other. This will indicate that the short term average trend is moving ahead of the long term.
Crossovers are not an entry signal. It's a method in determining you current timeframe trend strength. Always observe price action as it passes through each of your moving averages and compare it to the positioning and direction of the oscillator.
If price dips in between the moving averages while the oscillator still shows a strong trend strength, you can wait for price to move ahead of your fast moving average.
Bar Colors and Signal Line for Trend Strength
Good Bullish Trend = Oscillator above zero + Signal rising below Oscillator
Weak Bullish Trend = Oscillator above zero + Signal above Oscillator
Good Bearish Trend = Oscillator below zero + Signal falling above Oscillator
Weak Bearish Trend = Oscillator below zero + Signal below Oscillator
Bar Colors
Bars are colored to match Oscillator Momentum Strength. Colors are set by user.
Why alter the known PPO (Percentage Price Oscillator) in this manner?
The PPO tool is great for measuring the strength as percentage of price action over and average amount of candles however, with these changes,
you know have the ability to correlate:
Wycoff theory of supply and demand,
Measure the depth of reversals and pullback by price positioning against moving averages,
Project potential reversal and exhaustion pricing,
Visibly note the structure of momentum much like you would note market structure,
Its not enough to know there is momentum. Its better to know
A) Is it enough
B) Is there something in the way which will cause price to push back
C) Does this momentum correlate to the prevailing trend
[Pandora's Chambers] Liquidity Grab Magnet Tool VDV_V6Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6
The “Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6” indicator is built as a mathematical function library in Pine Script® that identifies “magnet” points (local maxima) of price action density, based on a combination of frequency analysis (wick density) and Fibonacci values. The algorithm considers the distribution of wick touches within a lookback range, builds volume profiles at different price levels, and then marks the strongest dynamic support and resistance levels. This structure has been empirically proven to be particularly effective for rapid scalping, as these “magnet points” are characterized by strong market forces influencing sharp price movements.
Background and Methodology
Price Range Division into Bins: The range between the minimum and maximum price over the last N candles is divided into k equal bins.
Wick Touch Counting: For each bin, the number of times the bin center falls within the wick body of a candle is calculated.
Bullish and Bearish Candles:
For bullish candles (close > open), touches between the low and the open are counted.
For bearish candles (close < open), touches between the open and the high are counted.
Density Function: For each bin j, a density function ρ(j) = number of touches in j is obtained.
Strongest Levels: The strongest support level below the current price is arg max_{binCenter < close} ρ(j), and the resistance – above the price.
Integrated Volume Profile: For each bin, the trading volume of the candles where the bin center is included in the wick body is accumulated, adding a volume dimension to the selection of magnet points.
The Secret Algorithm
The algorithm utilizes several key constructs:
Dynamic Trailing with Sensitivity Threshold (trailTolerance): To avoid market noise, the line is redrawn only when the new point differs by Δ ≥ trailTolerance from the previous level.
Fibonacci Value Integration: After identifying support (sell-side) and resistance (buy-side) levels, Fibonacci lines are calculated at n ratios (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0), with the option to extend them to additional "snap" values (1.618, 2.618). Each line also displays the corresponding trading volume in its paired bin, providing an indication of market depth at the Fibonacci point.
Visualization and Functionality:
Clear and Dynamic Colored Lines: Support is colored purple, resistance is colored cyan.
Transparent Labels: Displaying the actual volume value for each level.
“Magnet Point” Markers (red dots): Appearing upon the breakout of a line – enabling the identification of rapid scalping opportunities. Crossing of a line indicates the price "drinking liquidity." A red dot appears when the price reaches equilibrium.
Continued Liquidity: If the line moves away from the price, liquidity is expected to continue.
Key Parameters
Parameter Description
Lookback Bars Number of candles for historical analysis; size of the discrete dimension for density distribution.
Bin Count Number of bins for dividing the price range; determines the analysis resolution.
Tolerance Minimum threshold for a level change before a new line is created (to reduce noise).
Fibonacci Offsets Number of candles to the right to display Fibonacci lines with volume labels.
Show Liquidity Snap Toggle to display extended "snap" values outside the main range.
Line Width & Color Adjustable thickness, style, and color of support and resistance lines.
Label Size/Offset Adjustment of label text size and position – to prevent overlaps on the chart.
Export to Sheets
How to Use for Scalping
Identify the Magnet Point: Follow the red dot (•) the moment the price crosses a liquidity level downwards/upwards.
Parameter Adjustment: To increase sensitivity for scalping – reduce the Lookback or increase the Bin Count.
Market Depth Confirmation: Use the volume labels alongside the Fibonacci lines to confirm that the point is indeed accompanied by significant volume movement.
Mathematical Conclusion
The indicator combines statistical principles of density and historical memory with Fibonacci geometry, in a configuration that allows for the identification of reliable “magnet points.” For quantitative traders, this is a formal tool for drawing conclusions about market forces in the language of density functions and volume profiles, providing an ideal environment for rapid and precise scalps.
צור מחדש אבל תחליף את המילים סופורט וריסיסטנס לליקווידיטי
בטח, הנה הגרסה המחודשת של התיאור עם החלפת המילים "סופורט" ו"ריסיסטנס" ב"ליקווידיטי":
חדרי פנדורה – כלי מגנט ללכידת נזילות VDV_V6
האינדיקטור “חדרי פנדורה – כלי מגנט ללכידת נזילות VDV_V6” נבנה כספריית פונקציות מתמטית ב‑Pine Script® המזהה נקודות “מגנט” (מקסימום מקומי) של צפיפות תנועת המחיר, על בסיס שילוב של ניתוח תדרים (צפיפות וויקים) וערכי פיבונאצ’י. האלגוריתם מתייחס להתפלגות נגיעות הוויקים בתוך טווח הסתכלות (lookback), בונה פרופילי נפח במחיריים שונים, ולאחר מכן מסמן את רמות הנזילות הדינמיות החזקות ביותר. המבנה הוכח אמפירית כיעיל במיוחד לסקאלפינג מהיר, שכן “נקודות המגנט” מתאפיינות בכוחות שוק חזקים המשפיעים על תנועה חדה של המחיר.
רקע ומתודולוגיה
חלוקת טווח המחיר לבינים (bins): הטווח בין המחיר המינימלי למקסימלי ב־N הנרות האחרונים מחולק ל־k תאים שווים.
בכל תא מחשבים את מספר הפעמים שבהן מרכז התא נכנס לתוך גוף הוויק (wick) של הנר.
נרות בולשים ודובשים:
בנרות בולשים (close > open) נספרים מגעים בין ה־low ל־open.
בנרות דובשים (close < open) נספרים מגעים בין ה־open ל־high.
פונקציית צפיפות (Density Function): עבור כל תא j מתקבלת פונקציית צפיפות ρ(j) = מספר המגעים ב־j.
הרמה החזקה ביותר מתחת למחיר הנוכחי היא arg max_{binCenter < close} ρ(j), ולהתנגדות – מעל המחיר.
פרופיל נפח משולב (Volume Profile): לכל תא מצטבר נפח המסחר של הנרות שבהם מרכז התא נכלל בגוף הוויק, מה שמוסיף ממד נפחי לבחירת נקודות המגנט.
האלגוריתם הסודי
האלגוריתם עושה שימוש בכמה קונסטרוקטים עיקריים:
טריילינג דינמי עם סף רגישות (trailTolerance): כדי למנוע רעשי שוק, הקו ניזון מחדש רק כאשר הנקודה החדשה שונה ב־Δ ≥ trailTolerance מהרמה הקודמת.
שילוב ערכי פיבונאצ’י: לאחר זיהוי רמות נזילות (sell-side) ורמות נזילות (buy-side), מחושבים קווי פיבונאצ’י ב־n יחסיות (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0), ואפשרות להרחבתם לערכי סנאפ נוספים (1.618, 2.618). כל קו מציג גם את נפח המסחר המתאים בתא התאום שלו, מה שנותן אינדיקציה לקריאות עומק השוק בנקודת פי
You stopped this response
Giv'atayim, Israel
צור מחדש אבל תחליף את המילים סופורט וריסיסטנס לליקווידיטי
באנגלית
Okay, here's the revised English description with "support" and "resistance" replaced by "liquidity":
Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6
The “Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6” indicator is built as a mathematical function library in Pine Script® that identifies “magnet” points (local maxima) of price action density, based on a combination of frequency analysis (wick density) and Fibonacci values. The algorithm considers the distribution of wick touches within a lookback range, builds volume profiles at different price levels, and then marks the strongest dynamic liquidity levels. This structure has been empirically proven to be particularly effective for rapid scalping, as these “magnet points” are characterized by strong market forces influencing sharp price movements.
Background and Methodology
Price Range Division into Bins: The range between the minimum and maximum price over the last N candles is divided into k equal bins.
Wick Touch Counting: For each bin, the number of times the bin center falls within the wick body of a candle is calculated.
Bullish and Bearish Candles:
For bullish candles (close > open), touches between the low and the open are counted.
For bearish candles (close < open), touches between the open and the high are counted.
Density Function: For each bin j, a density function ρ(j) = number of touches in j is obtained.
Strongest Levels: The strongest sell-side liquidity level below the current price is arg max_{binCenter < close} ρ(j), and the buy-side liquidity – above the price.
Integrated Volume Profile: For each bin, the trading volume of the candles where the bin center is included in the wick body is accumulated, adding a volume dimension to the selection of magnet points.
The Secret Algorithm
The algorithm utilizes several key constructs:
Dynamic Trailing with Sensitivity Threshold (trailTolerance): To avoid market noise, the line is redrawn only when the new point differs by Δ ≥ trailTolerance from the previous level.
Fibonacci Value Integration: After identifying sell-side liquidity and buy-side liquidity levels, Fibonacci lines are calculated at n ratios (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0), with the option to extend them to additional "snap" values (1.618, 2.618). Each line also displays the corresponding trading volume in its paired bin, providing an indication of market depth at the Fibonacci point.
Visualization and Functionality:
Clear and Dynamic Colored Lines: Sell-side liquidity is colored purple, buy-side liquidity is colored cyan. Crossing of a line indicates the price "drinking liquidity."
Transparent Labels: Displaying the actual volume value for each level.
“Magnet Point” Markers (red dots): Appearing upon the breakout of a line – enabling the identification of rapid scalping opportunities. A red dot appears when the price reaches equilibrium. If the line moves away from the price, liquidity is expected to continue.
Key Parameters
Parameter Description
Lookback Bars Number of candles for historical analysis; size of the discrete dimension for density distribution.
Bin Count Number of bins for dividing the price range; determines the analysis resolution.
Tolerance Minimum threshold for a level change before a new line is created (to reduce noise).
Fibonacci Offsets Number of candles to the right to display Fibonacci lines with volume labels.
Show Liquidity Snap Toggle to display extended "snap" values outside the main range.
Line Width & Color Adjustable thickness, style, and color of liquidity lines.
Label Size/Offset Adjustment of label text size and position – to prevent overlaps on the chart.
Export to Sheets
How to Use for Scalping
Identify the Magnet Point: Follow the red dot (•) the moment the price crosses a liquidity level downwards/upwards.
Parameter Adjustment: To increase sensitivity for scalping – reduce the Lookback or increase the Bin Count.
Market Depth Confirmation: Use the volume labels alongside the Fibonacci lines to confirm that the point is indeed accompanied by significant volume movement.
Mathematical Conclusion
The indicator combines statistical principles of density and historical memory with Fibonacci geometry, in a configuration that allows for the identification of reliable “magnet points.” For quantitative traders, this is a formal tool for drawing conclusions about market forces in the language of density functions and volume profiles, providing an ideal environment for rapid and precise scalps.
Smart Range DetectorSmart Range Detector
What It Does
This indicator automatically detects and validates significant trading ranges using pivot point analysis combined with logarithmic fibonacci relationships. It operates by identifying specific pivot patterns (High-Low-High and Low-High-Low) that meet fibonacci validation criteria to filter out noise and highlight only the most reliable trading ranges. Each range is continuously monitored for potential mitigation (breakout) events.
Key Features
Identifies both High-Low-High and Low-High-Low range patterns
Validates each range using logarithmic fibonacci relationships (more accurate than linear fibs)
Detects range mitigations (breakouts) and visually differentiates them
Shows fibonacci levels within ranges (25%, 50%, 75%) for potential reversal points
Visualizes extension levels beyond ranges for breakout targets
Analyzes volume profile with customizable price divisions (default: 60)
Displays Point of Control (POC) and Value Area for traded volume analysis
Implements performance optimization with configurable range limits
Includes user-adjustable safety checks to prevent Pine Script limitations
Offers fully customizable colors, line widths, and transparency settings
How To Use It
Identify Valid Ranges : The indicator automatically detects and highlights trading ranges that meet fibonacci validation criteria
Monitor Fibonacci Levels : Watch for price reactions at internal fib levels (25%, 50%, 75%) for potential reversal opportunities
Track Extension Targets : Use the extension lines as potential targets when price breaks out of a range
Analyze Volume Structure : Enable the volume profile mode to see where most volume was traded within mitigated ranges
Trade Range Boundaries : Look for reactions at range highs/lows combined with volume POC for higher probability entries
Manage Performance : Adjust the maximum displayed ranges and history bars settings for optimal chart performance
Settings Guide
Left/Right Bars Look Back : Controls how far back the indicator looks to identify pivot points (higher values find more ranges but may reduce sensitivity)
Max History Bars : Limits how far back in history the indicator will analyze (stays within Pine Script's 10,000 bar limitation)
Max Ranges to Display : Restricts the total number of ranges kept in memory for improved performance (1-50)
Volume Profile : When enabled, shows volume distribution analysis for mitigated ranges
Volume Profile Divisions : Controls the granularity of the volume analysis (higher values show more detail)
Display Options : Toggle visibility of range lines, fibonacci levels, extension lines, and volume analysis elements
Transparency & Color Settings : Fully customize the visual appearance of all indicator elements
Line Width Settings : Adjust the thickness of lines for better visibility on different timeframes
Technical Details
The indicator uses logarithmic fibonacci calculations for more accurate price relationships
Volume profile analysis creates 60 price divisions by default (adjustable) for detailed volume distribution
All timestamps are properly converted to work with Pine Script's bar limitations
Safety checks prevent "array index out of bounds" errors that plague many complex indicators
Time-based coordinates are used instead of bar indices to prevent "bar index too far" errors
This indicator works well on all timeframes and instruments, but performs best on 5-minute to daily charts. Perfect for swing traders, range traders, and breakout strategists.
What Makes It Different
Most range indicators simply draw boxes based on recent highs and lows. Smart Range Detector validates each potential range using proven fibonacci relationships to filter out noise. It then adds sophisticated volume analysis to help traders identify the most significant price levels within each range. The performance optimization features ensure smooth operation even on lower timeframes and extended history analysis.
Spent Output Profit Ratio Z-Score | Vistula LabsOverview
The Spent Output Profit Ratio (SOPR) Z-Score indicator is a sophisticated tool designed by Vistula Labs to help cryptocurrency traders analyze market sentiment and identify potential trend reversals. It leverages on-chain data from Glassnode to calculate the Spent Output Profit Ratio (SOPR) for Bitcoin and Ethereum, transforming this metric into a Z-Score for easy interpretation.
What is SOPR?
Spent Output Profit Ratio (SOPR) measures the profit ratio of spent outputs (transactions) on the blockchain:
SOPR > 1: Indicates that, on average, coins are being sold at a profit.
SOPR < 1: Suggests that coins are being sold at a loss.
SOPR = 1: Break-even point, often seen as a key psychological level.
SOPR provides insights into holder behavior—whether they are locking in profits or cutting losses—making it a valuable gauge of market sentiment.
How It Works
The indicator applies a Z-Score to the SOPR data to normalize it relative to its historical behavior:
Z-Score = (Smoothed SOPR - Moving Average of Smoothed SOPR) / Standard Deviation of Smoothed SOPR
Smoothed SOPR: A moving average (e.g., WMA) of SOPR over a short period (default: 30 bars) to reduce noise.
Moving Average of Smoothed SOPR: A longer moving average (default: 180 bars) of the smoothed SOPR.
Standard Deviation: Calculated over a lookback period (default: 200 bars).
This Z-Score highlights how extreme the current SOPR is compared to its historical norm, helping traders spot significant deviations.
Key Features
Data Source:
Selectable between BTC and ETH, using daily SOPR data from Glassnode.
Customization:
Moving Average Types: Choose from SMA, EMA, DEMA, RMA, WMA, or VWMA for both smoothing and main averages.
Lengths: Adjust the smoothing period (default: 30) and main moving average length (default: 180).
Z-Score Lookback: Default is 200 bars.
Thresholds: Set levels for long/short signals and overbought/oversold conditions.
Signals:
Long Signal: Triggered when Z-Score crosses above 1.02, suggesting potential upward momentum.
Short Signal: Triggered when Z-Score crosses below -0.66, indicating potential downward momentum.
Overbought/Oversold Conditions:
Overbought: Z-Score > 2.5, signaling potential overvaluation.
Oversold: Z-Score < -2.0, indicating potential undervaluation.
Visualizations:
Z-Score Plot: Teal for long signals, magenta for short signals.
Threshold Lines: Dashed for long/short, solid for overbought/oversold.
Candlestick Coloring: Matches signal colors.
Arrows: Green up-triangles for long entries, red down-triangles for short entries.
Background Colors: Magenta for overbought, teal for oversold.
Alerts:
Conditions for Long Opportunity, Short Opportunity, Overbought, and Oversold.
Usage Guide
Select Cryptocurrency: Choose BTC or ETH.
Adjust Moving Averages: Customize types and lengths for smoothing and main averages.
Set Thresholds: Define Z-Score levels for signals and extreme conditions.
Monitor Signals: Use color changes, arrows, and background highlights to identify opportunities.
Enable Alerts: Stay informed without constant chart watching.
Interpretation
High Z-Score (>1.02): SOPR is significantly above its historical mean, potentially indicating overvaluation or strong bullish momentum.
Low Z-Score (<-0.66): SOPR is below its mean, suggesting undervaluation or bearish momentum.
Extreme Conditions: Z-Scores above 2.5 or below -2.0 highlight overbought or oversold markets, often preceding reversals.
Conclusion
The SOPR Z-Score indicator combines on-chain data with statistical analysis to provide traders with a clear, actionable view of market sentiment. Its customizable settings, visual clarity, and alert system make it an essential tool for both novice and experienced traders seeking an edge in the cryptocurrency markets.
Supply In Profit Z-Score | Vistula LabsOverview
The Supply In Profit Z-Score indicator is a Pine Script™ tool developed by Vistula Labs for technical analysis of cryptocurrencies, specifically Bitcoin (BTC) and Ethereum (ETH). It utilizes on-chain data from IntoTheBlock to calculate the difference between the percentage of addresses in profit and those in loss, transforming this metric into a Z-Score. This indicator helps traders identify market sentiment, trend-following opportunities, and overbought or oversold conditions.
What is Supply In Profit?
Supply In Profit is defined as the net difference between the percentage of addresses in profit and those in loss:
Profit Percentage: The proportion of addresses where the current value of holdings exceeds the acquisition price.
Loss Percentage: The proportion of addresses where the current value is below the acquisition price.
A positive value indicates more addresses are in profit, suggesting bullish sentiment, while a negative value indicates widespread losses, hinting at bearish sentiment.
How It Works
The indicator computes a Z-Score to normalize the Supply In Profit data relative to its historical behavior:
Z-Score = (Current Supply In Profit - Moving Average of Supply In Profit) / Standard Deviation of Supply In Profit
Current Supply In Profit: The latest profit-minus-loss percentage.
Moving Average: A customizable average (e.g., EMA, SMA) over a default 180-bar period.
Standard Deviation: Calculated over a default 200-bar lookback period.
Key Features
Data Source:
Selectable between BTC and ETH, pulling daily profit/loss percentage data from IntoTheBlock.
Customization:
Moving Average Type: Options include SMA, EMA, DEMA, RMA, WMA, or VWMA (default: EMA).
Moving Average Length: Default is 180 bars.
Z-Score Lookback: Default is 200 bars.
Thresholds: Adjustable for long/short signals and overbought/oversold levels.
Signals:
Long Signal: Z-Score crosses above the Long Threshold (default: 1.0).
Short Signal: Z-Score crosses below the Short Threshold (default: -0.64).
Overbought/Oversold Conditions:
Overbought: Z-Score > 3.0.
Oversold: Z-Score < -2.0.
Visualizations:
Z-Score Plot: Teal for long signals, magenta for short signals.
Threshold Lines: Dashed lines for long/short, solid lines for overbought/oversold.
Candlestick Coloring: Matches signal colors (teal/magenta).
Arrows: Green up-triangles for long entries, red down-triangles for short entries.
Background Colors: Magenta for overbought, teal for oversold.
Alerts:
Conditions for Long Opportunity, Short Opportunity, Overbought, and Oversold.
Usage Guide
Trend Following
Long Entry: When Z-Score crosses above 1.0, indicating potential upward momentum.
Short Entry: When Z-Score crosses below -0.64, suggesting potential downward momentum.
Overbought/Oversold Analysis
Overbought (Z-Score > 3.0): Consider profit-taking or preparing for a reversal.
Oversold (Z-Score < -2.0): Look for buying opportunities or exiting shorts.
Timeframe
Uses daily IntoTheBlock data, ideal for medium to long-term analysis.
Interpretation
High Z-Score: Indicates Supply In Profit is significantly above its historical mean, potentially signaling overvaluation.
Low Z-Score: Suggests Supply In Profit is below its mean, indicating possible undervaluation.
Signals and thresholds help traders act on shifts in market sentiment or extreme conditions.
Conclusion
The Supply In Profit Z-Score indicator provides a robust, data-driven approach to analyzing cryptocurrency market trends and sentiment. By combining on-chain metrics with statistical normalization, it empowers traders to make informed decisions based on historical context and current market dynamics.
Multi-MA Trend & ATR Band CloudsMulti-MA Trend & ATR Band Clouds
Overview:
Originally designed for scalpers, this indicator provides a detailed and adaptable view of market structure, making it equally effective across all timeframes — from 1-minute charts to daily analysis. It integrates flexible moving average configurations with ATR-based cloud bands for real-time trend and volatility assessment.
Key Features:
Up to 10 customizable moving averages – Select from SMA, EMA, WMA, SMMA, GMA, or hybrid combinations. Each moving average can be individually styled and displayed.
Global trend condition system – Trend direction is determined by a user-defined crossover between two MAs, applied uniformly across all major timeframes (M1 to D1).
Multi-layer ATR-based volatility bands – Three levels of ATR bands are drawn around a base MA, offering insight into dynamic support/resistance and volatility zones.
Fully configurable visual output – Customize opacity, cloud display, curve visibility, and color schemes to fit your charting needs.
Use Cases:
Scalping: Fast trend shift detection and volatility mapping
Intraday trading: Multi-timeframe confirmation and structure tracking
Swing trading: Broader trend and support/resistance zone visualization
Signal development: Create visual or algorithmic confluence systems
Recommended For:
Scalpers, intraday traders, and analysts seeking a structured, real-time view of market dynamics, with flexible parameters and broad applicability.
Time-Based Fair Value Gaps (FVG) with Inversions (iFVG)Overview
The Time-Based Fair Value Gaps (FVG) with Inversions (iFVG) (ICT/SMT) indicator is a specialized tool designed for traders using Inner Circle Trader (ICT) methodologies. Inspired by LuxAlgo's Fair Value Gap indicator, this script introduces significant enhancements by integrating ICT principles, focusing on precise time-based FVG detection, inversion tracking, and retest signals tailored for institutional trading strategies. Unlike LuxAlgo’s general FVG approach, this indicator filters FVGs within customizable 10-minute windows aligned with ICT’s macro timeframes and incorporates ICT-specific concepts like mitigation, liquidity grabs, and session-based gap prioritization.
This tool is optimized for 1–5 minute charts, though probably best for 1 minute charts, identifying bullish and bearish FVGs, tracking their mitigation into inverted FVGs (iFVGs) as key support/resistance zones, and generating retest signals with customizable “Close” or “Wick” confirmation. Features like ATR-based filtering, optional FVG labels, mitigation removal, and session-specific FVG detection (e.g., first FVG in AM/PM sessions) make it a powerful tool for ICT traders.
Originality and Improvements
While inspired by LuxAlgo’s FVG indicator (credit to LuxAlgo for their foundational work), this script significantly extends the original concept by:
1. Time-Based FVG Detection: Unlike LuxAlgo’s continuous FVG identification, this script filters FVGs within user-defined 10-minute windows each hour (:00–:10, :10–:20, etc.), aligning with ICT’s emphasis on specific periods of institutional activity, such as hourly opens/closes or kill zones (e.g., New York 7:00–11:00 AM EST). This ensures FVGs are relevant to high-probability ICT setups.
2. Session-Specific First FVG Option: A unique feature allows traders to display only the first FVG in ICT-defined AM (9:30–10:00 AM EST) or PM (1:30–2:00 PM EST) sessions, reflecting ICT’s focus on initial market imbalances during key liquidity events.
3. ICT-Driven Mitigation and Inversion Logic: The script tracks FVG mitigation (when price closes through a gap) and converts mitigated FVGs into iFVGs, which serve as ICT-style support/resistance zones. This aligns with ICT’s view that mitigated gaps become critical reversal points, unlike LuxAlgo’s simpler gap display.
4. Customizable Retest Signals: Retest signals for iFVGs are configurable for “Close” (conservative, requiring candle body confirmation) or “Wick” (faster, using highs/lows), catering to ICT traders’ need for precise entry timing during liquidity grabs or Judas swings.
5. ATR Filtering and Mitigation Removal: An optional ATR filter ensures only significant FVGs are displayed, reducing noise, while mitigation removal declutters the chart by removing filled gaps, aligning with ICT’s principle that mitigated gaps lose relevance unless inverted.
6. Timezone and Timeframe Safeguards: A timezone offset setting aligns FVG detection with EST for ICT’s New York-centric strategies, and a timeframe warning alerts users to avoid ≥1-hour charts, ensuring accuracy in time-based filtering.
These enhancements make the script a distinct tool that builds on LuxAlgo’s foundation while offering ICT traders a tailored, high-precision solution.
How It Works
FVG Detection
FVGs are identified when a candle’s low is higher than the high of two candles prior (bullish FVG) or a candle’s high is lower than the low of two candles prior (bearish FVG). Detection is restricted to:
• User-selected 10-minute windows (e.g., :00–:10, :50–:60) to capture ICT-relevant periods like hourly transitions.
• AM/PM session first FVGs (if enabled), focusing on 9:30–10:00 AM or 1:30–2:00 PM EST for key market opens.
An optional ATR filter (default: 0.25× ATR) ensures only gaps larger than the threshold are displayed, prioritizing significant imbalances.
Mitigation and Inversion
When price closes through an FVG (e.g., below a bullish FVG’s bottom), the FVG is mitigated and becomes an iFVG, plotted as a support/resistance zone. iFVGs are critical in ICT for identifying reversal points where institutional orders accumulate.
Retest Signals
The script generates signals when price retests an iFVG:
• Close: Triggers when the candle body confirms the retest (conservative, lower noise).
• Wick: Triggers when the candle’s high/low touches the iFVG (faster, higher sensitivity). Signals are visualized with triangular markers (▲ for bullish, ▼ for bearish) and can trigger alerts.
Visualization
• FVGs: Displayed as colored boxes (green for bullish, red for bearish) with optional “Bull FVG”/“Bear FVG” labels.
• iFVGs: Shown as extended boxes with dashed midlines, limited to the user-defined number of recent zones (default: 5).
• Mitigation Removal: Mitigated FVGs/iFVGs are removed (if enabled) to keep the chart clean.
How to Use
Recommended Settings
• Timeframe: Use 1–5 minute charts for precision, avoiding ≥1-hour timeframes (a warning label appears if misconfigured).
• Time Windows: Enable :00–:10 and :50–:60 for hourly open/close FVGs, or use the “Show only 1st presented FVG” option for AM/PM session focus.
• ATR Filter: Keep enabled (multiplier 0.25–0.5) for significant gaps; disable on 1-minute charts for more FVGs during volatility.
• Signal Preference: Use “Close” for conservative entries, “Wick” for aggressive setups.
• Timezone Offset: Set to -5 for EST (or -4 for EDT) to align with ICT’s New York session.
Trading Strategy
1. Macro Timeframes: Focus on New York (7:00–11:00 AM EST) or London (2:00–5:00 AM EST) kill zones for high institutional activity.
2. FVG Entries: Trade bullish FVGs as support in uptrends or bearish FVGs as resistance in downtrends, especially in :00–:10 or :50–:60 windows.
3. iFVG Retests: Enter on retest signals (▲/▼) during liquidity grabs or Judas swings, using “Close” for confirmation or “Wick” for speed.
4. Session FVGs: Use the “Show only 1st presented FVG” option to target the first gap in AM/PM sessions, often tied to ICT’s market maker algorithms.
5. Risk Management: Combine with ICT concepts like order blocks or breaker blocks for confluence, and set stops beyond FVG/iFVG boundaries.
Alerts
Set alerts for:
• “Bullish FVG Detected”/“Bearish FVG Detected”: New FVGs in selected windows.
• “Bullish Signal”/“Bearish Signal”: iFVG retest confirmations.
Settings Description
• Show Last (1–100, default: 5): Number of recent iFVGs to display. Lower values reduce clutter.
• Show only 1st presented FVG : Limits FVGs to the first in 9:30–10:00 AM or 1:30–2:00 PM EST sessions (overrides time window checkboxes).
• Time Window Checkboxes: Enable/disable FVG detection in 10-minute windows (:00–:10, :10–:20, etc.). All enabled by default.
• Signal Preference: “Close” (default) or “Wick” for iFVG retest signals.
• Use ATR Filter: Enables ATR-based size filtering (default: true).
• ATR Multiplier (0–∞, default: 0.25): Sets FVG size threshold (higher values = larger gaps).
• Remove Mitigated FVGs: Removes filled FVGs/iFVGs (default: true).
• Show FVG Labels: Displays “Bull FVG”/“Bear FVG” labels (default: true).
• Timezone Offset (-12 to 12, default: -5): Aligns time windows with EST.
• Colors: Customize bullish (green), bearish (red), and midline (gray) colors.
Why Use This Indicator?
This indicator empowers ICT traders with a tool that goes beyond generic FVG detection, offering precise, time-filtered gaps and inversion tracking aligned with institutional trading principles. By focusing on ICT’s macro timeframes, session-specific imbalances, and customizable signal logic, it provides a clear edge for scalping, swing trading, or reversal setups in high-liquidity markets.
MC High/LowMC High/Low is a minimalist precision tool designed to show traders the most critical price levels — the High and Low of the current Day and Week — in real-time, without any visual clutter or historical trails.
It automatically tracks:
🔼 HOD – High of Day
🔽 LOD – Low of Day
📈 HOW – High of Week
📉 LOW – Low of Week
Each level is plotted using simple black horizontal lines, updated dynamically as the session evolves. Labels are clearly marked and positioned to the right of the screen for easy reference.
There’s no trailing history, no background colors, and no distractions — just pure price structure for clean confluence.
Perfect for:
Intraday scalpers
Swing traders
Liquidity & range traders
This is a tool built for sniper-level execution — straight from the MadCharts mindset.
🛠 Created by:
🔒 Version: Public Release
🎯 Use this with your favorite price action, liquidity, or market structure strategies.
21 EMA + VWAP Trend Bias
21 EMA + VWAP Trend Bias
This indicator combines the 21-period Exponential Moving Average (EMA) and the Volume-Weighted Average Price (VWAP) to provide a simple yet effective visual trend bias tool.
🔍 Core Features:
21 EMA Line (Orange): Tracks the short-to-mid-term price trend.
VWAP Line (Blue): Reflects the average trading price, weighted by volume, often used by institutional traders.
Trend Bias Highlight:
Green Background: Bullish bias — price is above both the 21 EMA and VWAP.
Red Background: Bearish bias — price is below both the 21 EMA and VWAP.
No Background: Neutral or mixed signals.
⚙️ Use Cases:
Quickly assess market trend direction at a glance.
Confirm entry or exit signals with dual-layer trend validation.
Great for intraday and swing traders who value clean, unobtrusive chart setups.
Best SMA FinderThis script, Best SMA Finder, is a tool designed to identify the most robust simple moving average (SMA) length for a given chart, based on historical backtest performance. It evaluates hundreds of SMA values (from 10 to 1000) and selects the one that provides the best balance between profitability, consistency, and trade frequency.
What it does:
The script performs individual backtests for each SMA length using either "Long Only" or "Buy & Sell" logic, as selected by the user. For each tested SMA, it computes:
- Total number of trades
- Profit Factor (total profits / total losses)
- Win Rate
- A composite Robustness Score, which integrates Profit Factor, number of trades (log-scaled), and win rate.
Only SMA configurations that meet the user-defined minimum trade count are considered valid. Among all valid candidates, the script selects the SMA length with the highest robustness score and plots it on the chart.
How to use it:
- Choose the strategy type: "Long Only" or "Buy & Sell"
- Set the minimum trade count to filter out statistically irrelevant results
- Enable or disable the summary stats table (default: enabled)
The selected optimal SMA is plotted on the chart in blue. The optional table in the top-right corner shows the corresponding SMA length, trade count, Profit Factor, Win Rate, and Robustness Score for transparency.
Key Features:
- Exhaustive SMA optimization across 991 values
- Customizable trade direction and minimum trade filters
- In-chart visualization of results via table and plotted optimal SMA
- Uses a custom robustness formula to rank SMA lengths
Use cases:
Ideal for traders who want to backtest and auto-select a historically effective SMA without manual trial-and-error. Useful for swing and trend-following strategies across different timeframes.
📌 Limitations:
- Not a full trading strategy with position sizing or stop-loss logic
- Only one entry per direction at a time is allowed
- Designed for exploration and optimization, not as a ready-to-trade system
This script is open-source and built entirely from original code and logic. It does not replicate any closed-source script or reuse significant external open-source components.
weighted support or resistance linesQ: Why should users choose this script?
A: I found that in all the publicly available scripts about support and resistance lines, there is basically no weight identification for these lines. In other words, users do not know which support or resistance lines are the most important. So I specifically wrote this script.
1. By adjusting the weights, only the most effective support or resistance lines are displayed. (Length threshold of trend price (Bar))
2. By selecting the number of K-lines, only the latest number of support or resistance lines generated will be displayed. (Maximum number of reserved S/R lines)
3. By selecting whether to automatically remove lines, only support or resistance lines that have not been penetrated by the k-line will be displayed. If this function is checked, the weight can be adjusted lower, as high-weight SR may have already been penetrated, and the newly generated SR may have a lower weight. (Automatically remove lines penetrated by closing price confirmation)
4. Notes: The default parameters work well in 15-minute candlestick charts. For candlestick charts with other time periods, the parameters can be adjusted appropriately. It is suitable for sideways trading but not for strong trends.
5. I'm quite satisfied with the performance of the script, as I specifically optimized it, lol
Parameter Free RSI [InvestorUnknown]The Parameter Free RSI (PF-RSI) is an innovative adaptation of the traditional Relative Strength Index (RSI), a widely used momentum oscillator that measures the speed and change of price movements. Unlike the standard RSI, which relies on a fixed lookback period (typically 14), the PF-RSI dynamically adjusts its calculation length based on real-time market conditions. By incorporating volatility and the RSI's deviation from its midpoint (50), this indicator aims to provide a more responsive and adaptable tool for identifying overbought/oversold conditions, trend shifts, and momentum changes. This adaptability makes it particularly valuable for traders navigating diverse market environments, from trending to ranging conditions.
PF-RSI offers a suite of customizable features, including dynamic length variants, smoothing options, visualization tools, and alert conditions.
Key Features
1. Dynamic RSI Length Calculation
The cornerstone of the PF-RSI is its ability to adjust the RSI calculation period dynamically, eliminating the need for a static parameter. The length is computed using two primary factors:
Volatility: Measured via the standard deviation of past RSI values.
Distance from Midpoint: The absolute deviation of the RSI from 50, reflecting the strength of bullish or bearish momentum.
The indicator offers three variants for calculating this dynamic length, allowing users to tailor its responsiveness:
Variant I (Aggressive): Increases the length dramatically based on volatility and a nonlinear scaling of the distance from 50. Ideal for traders seeking highly sensitive signals in fast-moving markets.
Variant II (Moderate): Combines volatility with a scaled distance from 50, using a less aggressive adjustment. Strikes a balance between responsiveness and stability, suitable for most trading scenarios.
Variant III (Conservative): Applies a linear combination of volatility and raw distance from 50. Offers a stable, less reactive length adjustment for traders prioritizing consistency.
// Function that returns a dynamic RSI length based on past RSI values
// The idea is to make the RSI length adaptive using volatility (stdev) and distance from the RSI midpoint (50)
// Different "variant" options control how aggressively the length changes
parameter_free_length(free_rsi, variant) =>
len = switch variant
// Variant I: Most aggressive adaptation
// Uses standard deviation scaled by a nonlinear factor of distance from 50
// Also adds another distance-based term to increase length more dramatically
"I" => math.ceil(
ta.stdev(free_rsi, math.ceil(free_rsi)) *
math.pow(1 + (math.ceil(math.abs(50 - (free_rsi - 50))) / 100), 2)
) +
(
math.ceil(math.abs(free_rsi - 50)) *
(1 + (math.ceil(math.abs(50 - (free_rsi - 50))) / 100))
)
// Variant II: Moderate adaptation
// Adds the standard deviation and a distance-based scaling term (less nonlinear)
"II" => math.ceil(
ta.stdev(free_rsi, math.ceil(free_rsi)) +
(
math.ceil(math.abs(free_rsi - 50)) *
(1 + (math.ceil(math.abs(50 - (free_rsi - 50))) / 100))
)
)
// Variant III: Least aggressive adaptation
// Simply adds standard deviation and raw distance from 50 (linear scaling)
"III" => math.ceil(
ta.stdev(free_rsi, math.ceil(free_rsi)) +
math.ceil(math.abs(free_rsi - 50))
)
2. Smoothing Options
To refine the dynamic RSI and reduce noise, the PF-RSI provides smoothing capabilities:
Smoothing Toggle: Enable or disable smoothing of the dynamic length used for RSI.
Smoothing MA Type for RSI MA: Choose between SMA and EMA
Smoothing Length Options for RSI MA:
Full: Uses the entire calculated dynamic length.
Half: Applies half of the dynamic length for smoother output.
SQRT: Uses the square root of the dynamic length, offering a compromise between responsiveness and smoothness.
The smoothed RSI is complemented by a separate moving average (MA) of the RSI itself, further enhancing signal clarity.
3. Visualization Tools
The PF-RSI includes visualization options to help traders interpret market conditions at a glance.
Plots:
Dynamic RSI: Displayed as a white line, showing the adaptive RSI value.
RSI Moving Average: Plotted in yellow, providing a smoothed reference for trend and momentum analysis.
Dynamic Length: A secondary plot (in faint white) showing how the calculation period evolves over time.
Histogram: Represents the RSI’s position relative to 50, with color gradients.
Fill Area: The space between the RSI and its MA is filled with a gradient (green for RSI > MA, red for RSI < MA), highlighting momentum shifts.
Customizable bar colors on the price chart reflect trend and momentum:
Trend (Raw RSI): Green (RSI > 50), Red (RSI < 50).
Trend (RSI MA): Green (MA > 50), Red (MA < 50).
Trend (Raw RSI) + Momentum: Adds momentum shading (lighter green/red when RSI and MA diverge).
Trend (RSI MA) + Momentum: Similar, but based on the MA’s trend.
Momentum: Green (RSI > MA), Red (RSI < MA).
Off: Disables bar coloring.
Intrabar Updating: Optional real-time updates within each bar for enhanced responsiveness.
4. Alerts
The PF-RSI supports customizable alerts to keep traders informed of key events.
Trend Alerts:
Raw RSI: Triggers when the RSI crosses above (uptrend) or below (downtrend) 50.
RSI MA: Triggers when the moving average crosses 50.
Off: Disables trend alerts.
Momentum Alerts:
Triggers when the RSI crosses its moving average, indicating rising (RSI > MA) or declining (RSI < MA) momentum.
Alerts are fired once per bar close, with descriptive messages including the ticker symbol (e.g., " Uptrend on: AAPL").
How It Works
The PF-RSI operates in a multi-step process:
Initialization
On the first run, it calculates a standard RSI with a 14-period length to seed the dynamic calculation.
Dynamic Length Computation
Once seeded, the indicator switches to a dynamic length based on the selected variant, factoring in volatility and distance from 50.
If smoothing is enabled, the length is further refined using an SMA.
RSI Calculation
The adaptive RSI is computed using the dynamic length, ensuring it reflects current market conditions.
Moving Average
A separate MA (SMA or EMA) is applied to the RSI, with a length derived from the dynamic length (Full, Half, or SQRT).
Visualization and Alerts
The results are plotted, and alerts are triggered based on user settings.
This adaptive approach minimizes lag in fast markets and reduces false signals in choppy conditions, offering a significant edge over fixed-period RSI implementations.
Why Use PF-RSI?
The Parameter Free RSI stands out by eliminating the guesswork of selecting an RSI period. Its dynamic length adjusts to market volatility and momentum, providing timely signals without manual tweaking.
Institutional Support/Resistance Locator🏛️ Institutional Support/Resistance Locator
Overview
The Institutional Support/Resistance Locator identifies high-probability demand and supply zones based on strong price rejection, large candle bodies, and elevated volume . These zones are commonly targeted or defended by institutional participants, helping traders anticipate potential reversal or continuation areas.
⸻
How It Works
The indicator uses a confluence of conditions to detect zones:
• Large Body Candles: Body size must exceed the moving average body size multiplied by a user-defined factor.
• High Volume: Volume must exceed the moving average volume by a configurable multiplier.
• Wick Rejection: Candles must show strong upper or lower wicks indicating aggressive rejection.
• If all criteria are met:
• Bullish candles form a Demand Zone.
• Bearish candles form a Supply Zone.
Each zone is plotted for a customizable number of future bars, representing areas where institutions may re-engage with the market.
⸻
Key Features
• ✅ Highlights institutional demand and supply areas dynamically
• ✅ Customizable sensitivity: body, volume, wick, padding, and zone extension
• ✅ Zones plotted as translucent regions with auto-expiry
• ✅ Works across all timeframes and markets
⸻
How to Use
• Trend Traders: Use demand zones for potential bounce entries in uptrends, and supply zones for pullback short entries in downtrends.
• Range Traders: Use zones as potential reversal points inside sideways market structures.
• Scalpers & Intraday Traders: Combine with volume or price action near zones for refined entries.
Always validate zone reactions with supporting indicators or price behavior.
⸻
Why This Combination?
The combination of wick rejection, volume confirmation, and large candle structure is designed to reflect footprints of smart money. Rather than relying on fixed pivots or subjective zones, this logic adapts to the current market context with statistically grounded conditions.
⸻
Why It’s Worth Using
This tool offers traders a structured way to interpret institutional activity on charts without relying on guesswork. By plotting potential high-impact areas, it helps improve reaction time.
⸻
Note :
• This script is open-source and non-commercial.
• No performance guarantees or unrealistic claims are made.
• It is intended for educational and analytical purposes only.
AL Brooks - Price Action Multi-Signal Suite📘 Price Action Multi-Signal Suite📘
This indicator is a complete visual toolset for traders who use price action principles inspired by Al Brooks-style analysis.
It combines multiple nuanced signals — like first/second entries, breakout failures, trend bias, higher-timeframe context, and dynamic trend channels — into one elegant, customizable interface.
It is built with clarity, flexibility, and actionable precision in mind.
🧠 Core Concepts Behind the Tool
1. Trend Bias with EMA (20 by default)
The indicator calculates a standard EMA (default: 20) to establish trend direction bias.
When price is above EMA, we consider the market to be in a bull trend, and vice versa.
The EMA line changes color dynamically — green (bull), red (bear), gray (neutral).
🟢 Example:
If price is forming higher highs and staying above EMA with strong bull bars, the bias is bullish. In this phase, you're looking for High 1 and High 2 (H1/H2) setups.
2. First and Second Entries (H1/H2 and L1/L2)
High 1 (H1): First pullback in a bull trend after a minor new high.
High 2 (H2): A second attempt to push up after a failed H1.
Low 1 (L1) and Low 2 (L2): Mirror the above logic for bear trends.
📈 Example Trade – H2 Long:
Price breaks out above EMA.
Pulls back and forms an H1, but it fails to break out.
Second push (H2) forms a higher low, then closes strong above previous bar → BUY entry.
📉 Example Trade – L2 Short:
Market is below EMA.
A rally creates L1, fails.
L2 forms and closes below the previous bar low with a bear body → SELL entry.
3. Second Entry Logic (Simplified Swing Count)
This adds context to H2/L2 by ensuring at least two swings occurred in the same direction.
Reduces false signals in choppy markets.
Painted as colored circles (aqua = long, fuchsia = short).
4. Breakout Failure Detection
Detects false breakouts using 10-bar highs/lows:
Failed High Breakout: Price breaks a 10-bar high but closes back inside → potential reversal short.
Failed Low Breakout: Price breaks a 10-bar low but closes back inside → potential long.
🚨 Example:
Price breaks above a recent high but closes below it with a strong bear bar → look for reversal or fade setups.
5. Inside / Outside Bars
Helps recognize compression (inside bars) or volatility expansions (outside bars).
Inside bars often precede breakouts.
Outside bars may signal traps or indecision.
Use these in combination with entry logic. An H2 after an inside bar can signal a strong, clean breakout.
6. Higher Timeframe (HTF) Context
Pulls EMA and trend bias from a higher timeframe (default: 1hr).
Background color indicates HTF bias (adjustable opacity).
Green = HTF uptrend.
Red = HTF downtrend.
🧭 Usage: Trade in the direction of the HTF bias when possible. An H2 with HTF bias bullish adds confluence.
7. Trend Channels (Automatic, Visual)
Dynamically draws trend channel lines based on pivot highs/lows.
These act as support/resistance, visual guides for traps or continuation.
Trendline breakouts or touches often align with H2/L2 setups.
📏 Example:
Price touches lower channel and forms a second entry long (L2) with a strong bull bar → high-quality reversal trade.
⚙️ Customization Options
Toggle each signal component (entries, bias, bars, failures, channels).
Adjust EMA length, HTF resolution, background opacity.
Keep your chart clean and focused on the signals that matter to you.
📊 Trade Example Summary
H2 with HTF Bullish
Trade Setup: Strong bull bar after a failed H1, above EMA
Expected Move: Trend continuation upward
L2 with Channel Hit
Trade Setup: Pullback hits lower trend channel, forms L2
Expected Move: Reversal or scalp down
Failed High Breakout
Trade Setup: Price breaks above a 10-bar high, but reverses and closes inside
Expected Move: Quick fade or reversal short
Inside Bar + H2
Trade Setup: Price compresses into an inside bar, followed by a breakout with H2
Expected Move: Momentum breakout trade
Outside Bar + L2
Trade Setup: Price breaks strongly in one direction (outside bar), second push fails upward, forms L2
Expected Move: Short on weakness
Please note, this is an educational idea and representation of whatever I understood of it.
Historical performances may not be replicable in present/future.
Trade at your own responsibility.
Regards! ^^
Bitcoin Monthly Seasonality [Alpha Extract]The Bitcoin Monthly Seasonality indicator analyzes historical Bitcoin price performance across different months of the year, enabling traders to identify seasonal patterns and potential trading opportunities. This tool helps traders:
Visualize which months historically perform best and worst for Bitcoin.
Track average returns and win rates for each month of the year.
Identify seasonal patterns to enhance trading strategies.
Compare cumulative or individual monthly performance.
🔶 CALCULATION
The indicator processes historical Bitcoin price data to calculate monthly performance metrics
Monthly Return Calculation
Inputs:
Monthly open and close prices.
User-defined lookback period (1-15 years).
Return Types:
Percentage: (monthEndPrice / monthStartPrice - 1) × 100
Price: monthEndPrice - monthStartPrice
Statistical Measures
Monthly Averages: ◦ Average return for each month calculated from historical data.
Win Rate: ◦ Percentage of positive returns for each month.
Best/Worst Detection: ◦ Identifies months with highest and lowest average returns.
Cumulative Option
Standard View: Shows discrete monthly performance.
Cumulative View: Shows compounding effect of consecutive months.
Example Calculation (Pine Script):
monthReturn = returnType == "Percentage" ?
(monthEndPrice / monthStartPrice - 1) * 100 :
monthEndPrice - monthStartPrice
calcWinRate(arr) =>
winCount = 0
totalCount = array.size(arr)
if totalCount > 0
for i = 0 to totalCount - 1
if array.get(arr, i) > 0
winCount += 1
(winCount / totalCount) * 100
else
0.0
🔶 DETAILS
Visual Features
Monthly Performance Bars: ◦ Color-coded bars (teal for positive, red for negative returns). ◦ Special highlighting for best (yellow) and worst (fuchsia) months.
Optional Trend Line: ◦ Shows continuous performance across months.
Monthly Axis Labels: ◦ Clear month names for easy reference.
Statistics Table: ◦ Comprehensive view of monthly performance metrics. ◦ Color-coded rows based on performance.
Interpretation
Strong Positive Months: Historically bullish periods for Bitcoin.
Strong Negative Months: Historically bearish periods for Bitcoin.
Win Rate Analysis: Higher win rates indicate more consistently positive months.
Pattern Recognition: Identify recurring seasonal patterns across years.
Best/Worst Identification: Quickly spot the historically strongest and weakest months.
🔶 EXAMPLES
The indicator helps identify key seasonal patterns
Bullish Seasons: Visualize historically strong months where Bitcoin tends to perform well, allowing traders to align long positions with favorable seasonality.
Bearish Seasons: Identify historically weak months where Bitcoin tends to underperform, helping traders avoid unfavorable periods or consider short positions.
Seasonal Strategy Development: Create trading strategies that capitalize on recurring monthly patterns, such as entering positions in historically strong months and reducing exposure during weak months.
Year-to-Year Comparison: Assess how current year performance compares to historical seasonal patterns to identify anomalies or confirmation of trends.
🔶 SETTINGS
Customization Options
Lookback Period: Adjust the number of years (1-15) used for historical analysis.
Return Type: Choose between percentage returns or absolute price changes.
Cumulative Option: Toggle between discrete monthly performance or cumulative effect.
Visual Style Options: Bar Display: Enable/disable and customize colors for positive/negative bars, Line Display: Enable/disable and customize colors for trend line, Axes Display: Show/hide reference axes.
Visual Enhancement: Best/Worst Month Highlighting: Toggle special highlighting of extreme months, Custom highlight colors for best and worst performing months.
The Bitcoin Monthly Seasonality indicator provides traders with valuable insights into Bitcoin's historical performance patterns throughout the year, helping to identify potentially favorable and unfavorable trading periods based on seasonal tendencies.
DMI Percentile MTF📈 DMI Percentile MTF – Custom Technical Indicator
This indicator is an enhanced version of the classic Directional Movement Index (DMI), converting +DI, -DI, and ADX values into dynamic percentiles ranging from 0% to 100%, making it easier to interpret the strength and direction of a trend.
⚙️ Key Features:
Percentile Normalization: Calculates where current values stand within a historical range (default: 100 bars), providing clearer overbought/oversold context.
+DI (green): Indicates bullish directional strength.
-DI (orange): Indicates bearish directional strength.
ADX (fuchsia): Measures overall trend strength (rising = strong trend, falling = flat market).
20% / 80% reference lines: Help identify weak or strong conditions.
Multi-Timeframe (MTF) Support: Analyze a higher timeframe trend (e.g., daily) while viewing a lower timeframe chart (e.g., 1h).
📊 How to Read It:
+DI > -DI → bullish trend dominance.
-DI > +DI → bearish trend dominance.
ADX rising → strengthening trend (regardless of direction).
ADX falling → sideways or consolidating market.
Values above 80% → historically high / strong conditions.
Values below 20% → historically low / weak conditions or potential breakout setup.
DEMA HMA Z-score OscillatorThis custom oscillator combines the power of the Hull Moving Average (HMA) with the Z-Score to identify momentum shifts and potential trend reversals. The Z-Score measures how far the current HMA is from its historical mean, helping to spot overbought or oversold conditions.
Uptrend: Long signals are generated when the Z-Score crosses above the defined Long Threshold.
Downtrend: Short signals are triggered when the Z-Score drops below the Short Threshold.
Visuals: The Z-Score is plotted along with background color changes and fills to clearly indicate trend strength. Green fills highlight uptrends, while pink fills indicate downtrends.
Alerts: Alerts are available for both long and short conditions based on Z-Score crossovers.
Customizable Inputs:
HMA Length
Smoothing Length (for DEMA)
Z-Score Length
Long and Short Thresholds
This indicator is ideal for detecting momentum shifts, confirming trend strength, and helping to time entry/exit points in your trading strategy.
RizwanA clean visual tool for intraday traders, optimized for 5-minute charts. It identifies potential reversal zones using liquidity and institutional inducement patterns:
Green Box = Long Signal (Price shows strength)
Appears when price confirms accumulation.....
Interpretation: Institutional buying zone – likely stop-loss liquidity pool for shorts.
Red Box = Short Signal (Price shows weakness)
Triggers on distribution confirmation:
Interpretation: Smart money unloading – traps bullish retail traders.
The system filters noise using advanced market structure principles, focusing on high-probability zones where big players often act. Simply trade in the direction of the colored boxes when they appear.
Always combine with proper risk management.....
MBODDS GLOBAL - Enhanceden
MBODDS GLOBAL Indicator – Detailed Interpretation
What does the indicator measure?
Liquidity preferences
Credit risk perception
Market stress levels
Interpreting the ODDS Value
ODDS Value Explanation
Positive ODDS (> 0) SOFR is higher than the T-Bill rate → Interbank liquidity is more expensive → Possible financial stress.
Negative ODDS (< 0) T-Bill rates are higher than SOFR → The government pays more interest in the short term → Liquidity abundance, normal market conditions.
ODDS ≈ 0 Neutral market state → Low stress, market is stable.
Z-Score Interpretation (Extremity Analysis)
The Z-Score measures the standard deviation of ODDS, detecting extreme values:
Z-Score Meaning
> +1.0 Spread is unusually high → Stress/crisis risk increases.
< -1.0 Spread is unusually low → Liquidity could be abundant.
> +2.0 Extremely high spread → Systemic risk (observed during 2008-2020 periods).
≈ 0 Average level → Normal conditions, no notable risk.
The Z-Score functions as an "anomaly detector" for this indicator.
SMA (Simple Moving Average) Interpretation
The 21-day SMA shows the trend of ODDS:
ODDS consistently above SMA: Rising stress and credit costs.
ODDS consistently below SMA: Easier liquidity and lower market concerns.
Threshold Bands (±0.5)
These thresholds are visual guides for alerts:
ODDS > +0.5: Rising stress, potential liquidity tightening → Risky environment.
ODDS < -0.5: Low spread → Abundant liquidity, low stress → Comfortable environment.
Use Cases
Macro analysis (especially after Fed policy changes)
Direction determination in bond, equity, or credit markets
Early signal for stressful periods
Predicting liquidity crises
Conclusion:
This indicator acts as a macro-based "silent alarm." Specifically:
SOFR > T-Bill and Z-Score > 1: Stress and risk are increasing, protection strategies should be considered.
T-Bill > SOFR and Z-Score < -1: Liquidity is abundant, risk appetite may rise.
Advanced Trend Insight Panel PRO v3.0Advanced Trend Insight Panel PRO v3.0
Description
The Advanced Trend Insight Panel PRO v3.0 combines multiple proven technical tools into one on-chart dashboard, giving you a 360° view of market dynamics. By fusing EMAs, oscillators, volatility measures, volume analysis, multi-timeframe context, Fibonacci retracements and pivot support/resistance levels, this panel helps you identify high-probability trade setups, confirm momentum, manage risk, and adapt your strategy to any market regime.
1) Components & Rationale
EMAs (Fast 21 / Slow 55 / Super Trend 200): Spot short-, mid- and long-term trend direction and strength via crossovers and distance from price.
RSI (14) & MACD (12/26/9): Filter overbought/oversold extremes and confirm momentum shifts for more reliable entries.
ATR (14) & Bollinger Bands (20, 2σ): Measure volatility’s squeeze vs. expansion phases to time breakouts and gauge risk.
Volume & MFI & ROC: Validate price moves through volume spikes, money flow extremes, and rate-of-change momentum readings.
High-Timeframe Signals: Optionally overlay EMA, RSI, and MACD from a higher timeframe (e.g. 240 min, Daily or Weekly) to align multi-timeframe trends.
Fibonacci Retracements & Pivot S/R: Auto-draw critical support/resistance zones (23.6%, 38.2%, 50%, 61.8%, 78.6% and R1/R2/S1/S2 pivots) for clear entry/exit targets.
Strategy Mode Plans: Scalp, swing, trend-follow, algorithmic or long-term trade ideas generated dynamically based on current conditions.
2) Default Settings
General: Dark theme, top-right panel, width 2, transparency 15%, small text.
EMA: 21/55/200
Oscillators: RSI 14 (70/30), MACD 12/26/9
Volatility: ATR 14, Bollinger 20/2
Volume Filter: 20-bar SMA threshold 1.5×
High-TF: 240 min
Fib Period: 50
Pivot Lookback: 20 bars
Alerts: EMA cross, RSI extremes, volume spikes, Fibonacci touches—all toggleable.
3) How to Use
Apply the indicator “⚡ RolinLong – Trend Panel PRO ⚡” on your chart.
Review each row of the panel:
Trend Status & Strength (EMA crossover + distance %)
Volatility Level (ATR % / Bollinger width)
Momentum Text (ROC/RSI/Stochastic signals)
Volume Condition & Flow
HTF Trend & Strength
Warnings (RSI/Bollinger squeeze or expansion alerts)
Strategy Plan (Scalp/Swing/Trend/Algo/Long-Term suggestions)
Alternative Scenario & Risk Guidance
Tune your own parameters to match your timeframe and instrument: adjust EMAs, oscillator thresholds, volatility limits, and strategy mode.
Follow color cues: green for bullish/confirmation, red for bearish/warnings, gray for neutral.
Enable Alerts in settings to get notified of key events without staring at the screen.
4) Warnings & Disclaimer
This panel is for educational and analytical purposes only. It does not execute trades automatically. Always combine its signals with your own analysis and solid risk management (e.g. limit max 2% risk per trade, account for commission/slippage). Past indicator behavior does not guarantee future market performance—use responsibly.
EMA Cross Pro v2.5 | True PnL Tracking + Break Even SystemEMA Cross Pro v2.5 | True PnL Tracking + Break-Even System
Description
This strategy combines fast and slow EMA crossovers with multi-stage profit-taking, a configurable stop-loss, and an optional break-even mechanism—while tracking real, closed-trade PnL on the chart. It’s designed to show exactly how much you earn or lose on each partial exit, reset your breakeven when a profit target hits, and label every trade’s midpoint profit/loss.
1) Strategy Logic & Rationale
EMA Crossover (Fast = 21 / Slow = 55): Signals trend changes.
Partial Profit-Taking:
TP1 at +0.5% on 60% of position
TP2 at +1.0% on 30%
TP3 at +1.5% on final 10%
This pyramided exit reduces risk and locks in gains in stages.
Stop-Loss at 1.0% ensures maximum risk per trade.
Break-Even: Optionally moves your stop to entry when TP1 (or TP2/TP3) is reached, protecting unrealized gains.
True PnL Tracking: Calculates and plots realized profit/loss—including partial exits and break-even closes—directly on chart labels.
Alerts: Flexible alarms for entry, each TP, SL, and break-even activation.
2) Default Inputs & Execution
Backtest Start Date: Jan 1 2025
Initial Capital: $1 000
Position Sizing: 10% of equity per entry
Commission: 0.10% per side
Slippage: 0.05%
TP & SL Levels:
TP1: +0.5% (60%)
TP2: +1.0% (30%)
TP3: +1.5% (10%)
SL: –1.0% on remaining size
Break-Even Triggers: Activate on TP1 (default), TP2 or TP3
Alerts: All configurable on/off in the settings panel
3) Backtest Parameters & Results
Backtested on BTCUSDT 1H bars from 2025-01-01 to 2025-05-01:
Total Trades: 78
Win Rate: 62.8%
Average Risk/Reward: 1 : 1.25
Max Drawdown: 7.5%
Net Return: +14.2%
(Assumes 0.10% commission and 0.05% slippage. Past performance does not guarantee future results.)
4) How to Use
Add to Chart: Search “EMA Cross Pro v2.5” and apply to your instrument.
Set Inputs: Adjust EMAs, TP/SL levels, break-even triggers and alarms to suit your style.
Monitor Labels: Entry, TP1, TP2, TP3, SL and break-even labels appear on chart with exact $ profit or loss.
Review PnL Panel: A table shows total trades, win rate, net P/L and streaks—updated in real time.
Risk Management: Never risk more than 1% per trade; always factor in commission/slippage.
5) Warnings & Disclaimer
This strategy is for educational purposes only. Always validate with your own data feed, apply robust risk controls, and be aware that backtest results may differ from live performance.
ORB Advanced Cloud Indicator & FIB's by TenAMTraderSummary: ORB Advanced Cloud Indicator with Alerts and Fibonacci Retracement Targets by TenAMTrader
This TradingView script is an advanced version of the Opening Range Breakout (ORB) indicator, enhanced with visual clouds and Fibonacci retracement/extension levels. It is designed to help traders identify key price levels and track price movements relative to those levels throughout the trading day. The script includes alert functionalities to notify traders when price crosses key levels and when Fibonacci levels are reached, which can serve as potential entry and exit targets.
Key Features:
Primary and Secondary Range Calculation:
The indicator calculates the primary range (defined by a start and end time) and optionally, a secondary range.
The primary range includes the highest and lowest prices during the designated time period, as well as the midpoint of this range.
The secondary range (if enabled) tracks another price range during a second time period, with its own high, low, and midpoint.
Visual Clouds:
The script draws colored clouds between the high, midpoint, and low of the opening range.
The upper cloud spans between the Opening High and Midpoint, while the lower cloud spans between the Midpoint and Opening Low.
Similarly, a second set of clouds can be drawn for the secondary range (if enabled).
Fibonacci Levels:
The script calculates Fibonacci retracement and extension levels based on the primary range (the difference between the Opening High and Opening Low).
Fibonacci levels can be used as entry and exit targets in a trading strategy, as these levels often act as potential support/resistance zones.
Fibonacci levels include standard values like -0.236, -0.382, -0.618, and positive extensions like 1.236, 1.618, etc.
Customizable Alerts:
Alerts can be set to trigger when:
The price crosses above the Opening High.
The price crosses below the Opening Low.
The price crosses the Opening Midpoint.
These alerts can help traders act quickly on important price movements relative to the opening range.
Customization Options:
The indicator allows users to adjust the time settings for both the primary and secondary ranges.
Custom colors can be set for the lines, clouds, and Fibonacci levels.
The visibility of each line and cloud can be toggled on or off, giving users flexibility in how the chart is displayed.
Fibonacci Levels Overview:
The script includes several Fibonacci retracement and extension levels:
Negative Retracements (e.g., -0.236, -0.382, -0.50, -0.618, etc.) are plotted below the Opening Low, and can act as potential support levels in a downtrend.
Positive Extensions (e.g., 1.236, 1.382, 1.618, 2.0, etc.) are plotted above the Opening High, and can act as potential resistance levels in an uptrend.
Fib levels can be used as entry and exit targets to capitalize on price reversals or breakouts.
Safety Warning:
This script is for educational and informational purposes only and is not intended as financial advice. While it provides valuable technical information about price ranges and Fibonacci levels, trading always involves risk. Users are encouraged to:
Paper trade or use a demo account before applying this indicator with real capital.
Use proper risk management strategies, including stop-loss orders, to protect against unexpected market movements.
Understand that no trading strategy, indicator, or tool can guarantee profits, and losses can occur.
Important: The creator, TenAMTrader, and TradingView are not responsible for any financial losses resulting from the use of this script. Always trade responsibly, and ensure you fully understand the risks involved in any trading strategy.