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.
Indicadores e estratégias
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.
Big Whale Finder PROBig Whale Finder PRO
The Big Whale Finder PRO is an advanced technical indicator designed to detect and analyze the footprints of institutional traders (commonly referred to as "whales") in financial markets. Based on multiple proprietary detection algorithms, this indicator identifies distinct patterns of accumulation and distribution that typically occur when large market participants execute significant orders.
Theoretical Framework
The indicator builds upon established market microstructure theories and empirical research on institutional trading behavior. As Kyle (1985) demonstrated in his seminal work on market microstructure, informed traders with large positions tend to execute their orders strategically to minimize market impact. This often results in specific volume and price action patterns that the Big Whale Finder PRO is designed to detect.
Key Feature Enhancements
1. Volume Analysis Refinement
The indicator implements a dual-threshold approach to volume analysis based on research by Easley et al. (2012) on volume-based informed trading metrics. The normal threshold identifies routine institutional activity, while the extreme threshold flags exceptional events that often precede significant market moves.
2. Wickbody Ratio Analysis
Drawing from Cao et al. (2021) research on price formation and order flow imbalance, the indicator incorporates wick-to-body ratio analysis to detect potential order absorption and iceberg orders. High wick-to-body ratios often indicate hidden liquidity and resistance/support levels maintained by large players.
3. BWF-Index (Proprietary Metric)
The BWF-Index is a novel quantitative measure that combines volume anomalies, price stagnation, and candle morphology into a single metric. This approach draws from Harris's (2003) work on trading and exchanges, which suggests that institutional activity often manifests through multiple simultaneous market microstructure anomalies.
4. Zone Tracking System
Based on Wyckoff Accumulation/Distribution methodology and modern zone detection algorithms, the indicator establishes and tracks zones where institutional activity has occurred. This feature enables traders to identify potential support/resistance areas where large players have previously shown interest.
5. Trend Integration
Following Lo and MacKinlay's (1988) work on market efficiency and technical analysis, the indicator incorporates trend analysis through dual EMA comparison, providing context for volume and price patterns.
Labels and Signals Explanation
The indicator uses a system of labels to mark significant events on the chart:
🐋 (Whale Symbol): Indicates extreme volume activity that significantly exceeds normal market participation. This is often a sign of major institutional involvement and frequently precedes significant price moves. The presence of this label suggests heightened attention is warranted as a potential trend reversal or acceleration may be imminent.
A (Accumulation): Marks periods where large players are likely accumulating positions. This is characterized by high volume, minimal price movement upward, and stronger support at the lower end of the candle (larger lower wicks). Accumulation zones often form bases for future upward price movements. This pattern frequently occurs at the end of downtrends or during consolidation phases before uptrends.
D (Distribution): Identifies periods where large players are likely distributing (selling) their positions. This pattern shows high volume, minimal downward price movement, and stronger resistance at the upper end of the candle (larger upper wicks). Distribution zones often form tops before downward price movements. This pattern typically appears at the end of uptrends or during consolidation phases before downtrends.
ICE (Iceberg Order): Flags the potential presence of iceberg orders, where large orders are split into smaller visible portions to hide the true size. These are characterized by unusual wick-to-body ratios with high volume. Iceberg orders often indicate price levels that large institutions consider significant and may act as strong support or resistance areas.
Information Panel Interpretation
The information panel provides real-time analysis of market conditions:
Volume/Average Ratio: Shows how current volume compares to the historical average. Values above the threshold (default 1.5x) indicate abnormal activity that may signal institutional involvement.
BWF-Index: A proprietary metric that quantifies potential whale activity. Higher values (especially >10) indicate stronger likelihood of institutional participation. The BWF-Index combines volume anomalies, price action characteristics, and candle morphology to provide a single measure of potential whale activity.
Status: Displays the current market classification based on detected patterns:
"Major Whale Activity": Extreme volume detected, suggesting significant institutional involvement
"Accumulation": Potential buying activity by large players
"Distribution": Potential selling activity by large players
"High Volume": Above-average volume without clear accumulation/distribution patterns
"Normal": Regular market activity with no significant institutional footprints
Trend: Shows the current market trend based on EMA comparison:
"Uptrend": Fast EMA above Slow EMA, suggesting bullish momentum
"Downtrend": Fast EMA below Slow EMA, suggesting bearish momentum
"Sideways": EMAs very close together, suggesting consolidation
Zone: Indicates if the current price is in a previously identified institutional activity zone:
"In Buy Zone": Price is in an area where accumulation was previously detected
"In Sell Zone": Price is in an area where distribution was previously detected
"Neutral": Price is not in a previously identified institutional zone
Trading Recommendations
Based on the different signals and patterns, the following trading recommendations apply:
Bullish Scenarios
Accumulation (A) + Uptrend: Strong buy signal. Large players are accumulating in an established uptrend, suggesting potential continuation or acceleration.
Strategy: Consider entering long positions with stops below the accumulation zone.
Extreme Volume (🐋) + In Buy Zone + Price Above EMAs: Very bullish. Major whale activity in a previously established buying zone with positive price action.
Strategy: Aggressive buying opportunity with wider stops to accommodate volatility.
High BWF-Index (>10) + Accumulation + Downtrend Ending: Potential trend reversal signal. High institutional interest at the potential end of a downtrend.
Strategy: Early position building with tight risk management until trend confirmation.
Bearish Scenarios
Distribution (D) + Downtrend: Strong sell signal. Large players are distributing in an established downtrend, suggesting potential continuation or acceleration.
Strategy: Consider entering short positions with stops above the distribution zone.
Extreme Volume (🐋) + In Sell Zone + Price Below EMAs: Very bearish. Major whale activity in a previously established selling zone with negative price action.
Strategy: Aggressive shorting opportunity with wider stops to accommodate volatility.
High BWF-Index (>10) + Distribution + Uptrend Ending: Potential trend reversal signal. High institutional interest at the potential end of an uptrend.
Strategy: Early short position building with tight risk management until trend confirmation.
Neutral/Caution Scenarios
Iceberg Orders (ICE) + Sideways Market: Suggests significant hidden liquidity at current levels.
Strategy: Mark these levels as potential support/resistance for future reference. Consider range-trading strategies.
Conflicting Signals (e.g., Accumulation in Downtrend): Requires careful analysis.
Strategy: Wait for additional confirmation or reduce position sizing.
Multiple Extreme Volume Events (🐋) in Succession: Indicates unusual market conditions, possibly related to news events or major market shifts.
Strategy: Exercise extreme caution and potentially reduce exposure until clarity emerges.
Practical Applications
Short-Term Trading:
Use the indicator to identify institutional activity zones for potential intraday support/resistance levels
Watch for whale symbols (🐋) to anticipate potential volatility or trend changes
Combine with price action analysis for entry/exit timing
Swing Trading
Focus on accumulation/distribution patterns in conjunction with the prevailing trend
Use buy/sell zones as areas to establish or exit positions
Monitor the BWF-Index for increasing institutional interest over time
Position Trading
Track long-term whale activity to identify shifts in institutional positioning
Use multiple timeframe analysis to confirm major accumulation/distribution phases
Combine with fundamental analysis to validate potential long-term trend changes
References
Kyle, A. S. (1985). Continuous auctions and insider trading. Econometrica, 53(6), 1315-1335.
Easley, D., López de Prado, M. M., & O'Hara, M. (2012). Flow toxicity and liquidity in a high-frequency world. The Review of Financial Studies, 25(5), 1457-1493.
Cao, C., Hansch, O., & Wang, X. (2021). The information content of an open limit order book. Journal of Financial Markets, 50, 100561.
Harris, L. (2003). Trading and exchanges: Market microstructure for practitioners. Oxford University Press.
Lo, A. W., & MacKinlay, A. C. (1988). Stock market prices do not follow random walks: Evidence from a simple specification test. The Review of Financial Studies, 1(1), 41-66.
Wyckoff, R. D. (1931). The Richard D. Wyckoff method of trading and investing in stocks. Transaction Publishers.
Menkhoff, L., & Taylor, M. P. (2007). The obstinate passion of foreign exchange professionals: Technical analysis. Journal of Economic Literature, 45(4), 936-972.
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.
Strong Trend Bars (ATR-based)This is a ChatGPT pinescript meant as an indicator for detecting strength in the market. The primary function I use it for is to decide which bars to trail a stop loss beneath.
💥 Explanation of adjustable inputs:
Bull Close Threshold (default 0.6):
If set to 0.6, bull bars must close above 60% of bar height → low + 0.6 * barHeight
Bear Close Threshold (default 0.6):
If set to 0.6, bear bars must close below 40% of bar height → high - 0.6 * barHeight
This lets you experiment with tighter or looser filters. For example:
0.7 → only bars closing near the extremes will light up
0.5 → about midpoint
0.8 → very demanding, “almost full body” bars
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.
Pivot Candle PatternsPivot Candle Patterns Indicator
Overview
The PivotCandlePatterns indicator is a sophisticated trading tool that identifies high-probability candlestick patterns at market pivot points. By combining Williams fractals pivot detection with advanced candlestick pattern recognition, this indicator targets the specific patterns that statistically show the highest likelihood of signaling reversals at market tops and bottoms.
Scientific Foundation
The indicator is built on extensive statistical analysis of historical price data using a 42-period Williams fractal lookback period. Our research analyzed which candlestick patterns most frequently appear at genuine market reversal points, quantifying their occurrence rates and subsequent success in predicting reversals.
Key Research Findings:
At Market Tops (Pivot Highs):
- Three White Soldiers: 28.3% occurrence rate
- Spinning Tops: 13.9% occurrence rate
- Inverted Hammers: 11.7% occurrence rate
At Market Bottoms (Pivot Lows):
- Three Black Crows: 28.4% occurrence rate
- Hammers: 13.3% occurrence rate
- Spinning Tops: 13.1% occurrence rate
How It Works
1. Pivot Point Detection
The indicator uses a non-repainting implementation of Williams fractals to identify potential market turning points:
- A pivot high is confirmed when the middle candle's high is higher than surrounding candles within the lookback period
- A pivot low is confirmed when the middle candle's low is lower than surrounding candles within the lookback period
- The default lookback period is 2 candles (user adjustable from 1-10)
2. Candlestick Pattern Recognition
At identified pivot points, the indicator analyzes candle properties using these parameters:
- Body percentage threshold for Spinning Tops: 40% (adjustable from 10-60%)
- Shadow percentage threshold for Hammer patterns: 60% (adjustable from 40-80%)
- Maximum upper shadow for Hammer: 10% (adjustable from 5-20%)
- Maximum lower shadow for Inverted Hammer: 10% (adjustable from 5-20%)
3. Pattern Definitions
The indicator recognizes these specific patterns:
Single-Candle Patterns:
- Spinning Top : Small body (< 40% of total range) with significant upper and lower shadows (> 25% each)
- Hammer : Small body (< 40%), very long lower shadow (> 60%), minimal upper shadow (< 10%), closing price above opening price
- Inverted Hammer : Small body (< 40%), very long upper shadow (> 60%), minimal lower shadow (< 10%)
Multi-Candle Patterns:
- Three White Soldiers : Three consecutive bullish candles, each closing higher than the previous, with each open within the previous candle's body
- Three Black Crows : Three consecutive bearish candles, each closing lower than the previous, with each open within the previous candle's body
4. Visual Representation
The indicator provides multiple visualization options:
- Highlighted candle backgrounds for pattern identification
- Text or dot labels showing pattern names and success rates
- Customizable colors for different pattern types
- Real-time alert functionality on pattern detection
- Information dashboard displaying pattern statistics
Why It Works
1. Statistical Edge
Unlike traditional candlestick pattern indicators that simply identify patterns regardless of context, PivotCandlePatterns focuses exclusively on patterns occurring at statistical pivot points, dramatically increasing signal quality.
2. Non-Repainting Design
The pivot detection algorithm only uses confirmed data, ensuring the indicator doesn't repaint or provide false signals that disappear on subsequent candles.
3. Complementary Pattern Selection
The selected patterns have both:
- Statistical significance (high frequency at pivots)
- Logical market psychology (reflecting institutional supply/demand changes)
For example, Three White Soldiers at a pivot high suggests excessive bullish sentiment reaching exhaustion, while Hammers at pivot lows indicate rejection of lower prices and potential buying pressure.
Practical Applications
1. Reversal Trading
The primary use is identifying potential market reversals with statistical probability metrics. Higher percentage patterns (like Three White Soldiers at 28.3%) warrant more attention than lower probability patterns.
2. Confirmation Tool
The indicator works well when combined with other technical analysis methods:
- Support/resistance levels
- Trend line breaks
- Divergences on oscillators
- Volume analysis
3. Risk Management
The built-in success rate metrics help traders properly size positions based on historical pattern reliability. The displayed percentages reflect the probability of the pattern successfully predicting a reversal.
Optimized Settings
Based on extensive testing, the default parameters (Body: 40%, Shadow: 60%, Shadow Maximums: 10%, Lookback: 2) provide the optimal balance between:
- Signal frequency
- False positive reduction
- Early entry opportunities
- Pattern clarity
Users can adjust these parameters based on their timeframe and trading style, but the defaults represent the statistically optimal configuration.
Complementary Research: Reclaim Analysis
Additional research on "reclaim" scenarios (where price briefly breaks a level before returning) showed:
- Fast reclaims (1-2 candles) have 70-90% success rates
- Reclaims with increasing volume have 53.1% success rate vs. decreasing volume at 22.6%
This complementary research reinforces the importance of candle patterns and timing at critical market levels.
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.
Aggressive Volume 📊 Indicator: Aggressive Volume – Simulated Buy/Sell Pressure
Aggressive Volume estimates delta volume using candle data to simulate the market’s internal buy/sell pressure. It helps visualize how aggressive buyers or sellers are moving the price without needing full order flow access.
⚙️ How It Works:
Calculates simulated delta volume based on candle direction and volume.
Bullish candles (close > open) suggest dominance by buyers.
Bearish candles (close < open) suggest dominance by sellers.
Delta is the difference between simulated buying and selling pressure.
🔍 Key Features:
Visual bars showing aggressive buyer vs seller dominance
Helps spot trend strength, momentum bursts, and potential reversals
Simple, effective, and compatible with any timeframe
Lightweight and ideal for scalping, day trading, and swing trading
💡 How to Use:
Look for strong positive delta during bullish trends for confirmation.
Watch for delta weakening or divergence as potential reversal signals.
Combine with trend indicators or price action for enhanced accuracy.
📊 Indicador: Volume Agressivo – Pressão de Compra/Venda Simulada
Volume Agressivo estima o delta de volume utilizando dados dos candles para simular a pressão interna de compra/venda do mercado. Ele ajuda a visualizar como os compradores ou vendedores agressivos estão movendo o preço, sem precisar de acesso completo ao fluxo de ordens.
⚙️ Como Funciona:
Calcula o delta de volume simulado com base na direção do candle e no volume.
Candles de alta (fechamento > abertura) indicam predominância de compradores.
Candles de baixa (fechamento < abertura) indicam predominância de vendedores.
O delta é a diferença entre a pressão de compra e venda simulada.
🔍 Principais Funcionalidades:
Barras visuais mostrando a dominância de compradores vs vendedores agressivos
Ajuda a identificar a força da tendência, explosões de momentum e possíveis reversões
Simples, eficaz e compatível com qualquer período de tempo
Leve e ideal para scalping, day trading e swing trading
💡 Como Usar:
Procure por delta positivo forte durante tendências de alta para confirmação.
Observe o delta enfraquecendo ou divergências como sinais de possível reversão.
Combine com indicadores de tendência ou price action para maior precisão.
Gaps EnhancedThis advanced gap detection tool identifies and visualizes price gaps on trading charts, helping traders spot potential support/resistance levels and trading opportunities.
🔲 Components and Features
Visual gap boxes with directional coloring
Dynamic labels showing key price levels
Smart sorting of nearest gaps
Customizable appearance
Key Features
Gap Visualization
Colored boxes (orange for support, green for resistance)
Dashed lines marking gap boundaries
Right-aligned price labels
Smart Gap Table
Shows 5 most relevant open gaps
Sorted by proximity to current price
Displays required move percentage to fill each gap
Customization Options
Adjustable gap size threshold
Color customization
Label positioning controls
Table location settings
How To Use
Basic Interpretation
Orange boxes: Price gaped up might come back (support zones)
Green boxes: Price gaped down price might come back to close the gap (resistance zones)
The table shows how much the price needs to move to fill each gap (as percentage)
Trading Applications
Look for price reactions near gap levels
Trade bounces off support/resistance gaps
Watch for gap fills as potential trend continuation signals
Use nearest gaps as profit targets
Settings Guide
Minimal Deviation: Set minimum gap size
Max Number of Gaps: Limits how many gaps are tracked
Visual Settings: Customize colors and label positions
Table Position: Choose where the info table appears
Pro Tips
Combine with other indicators for confirmation
Watch for volume spikes at gap levels
Larger gaps often act as stronger S/R
Breadth Thrust PRO by Martin E. ZweigThe Breadth Thrust Indicator was developed by Martin E. Zweig (1942-2013), a renowned American stock investor, investment adviser, and financial analyst who gained prominence for predicting the market crash of 1987 (Zweig, 1986; Colby, 2003). Zweig defined a "breadth thrust" as a 10-day period where the ratio of advancing stocks to total issues traded rises from below 40% to above 61.5%, indicating a powerful shift in market momentum potentially signaling the beginning of a new bull market (Zweig, 1994).
Methodology
The Breadth Thrust Indicator measures market momentum by analyzing the relationship between advancing and declining issues on the New York Stock Exchange. The classical formula calculates a ratio derived from:
Breadth Thrust = Advancing Issues / (Advancing Issues + Declining Issues)
This ratio is typically smoothed using a moving average, most commonly a 10-day period as originally specified by Zweig (1986).
The PRO version enhances this methodology by incorporating:
Volume weighting to account for trading intensity
Multiple smoothing methods (SMA, EMA, WMA, VWMA, RMA, HMA)
Logarithmic transformations for better scale representation
Adjustable threshold parameters
As Elder (2002, p.178) notes, "The strength of the Breadth Thrust lies in its ability to quantify market participation across a broad spectrum of securities, rather than focusing solely on price movements of major indices."
Signal Interpretation
The original Breadth Thrust interpretation established by Zweig identifies two critical thresholds:
Low Threshold (0.40): Indicates a potentially oversold market condition
High Threshold (0.615): When reached after being below the low threshold, generates a Breadth Thrust signal
Zweig (1994, p.123) emphasizes: "When the indicator moves from below 0.40 to above 0.615 within a 10-day period, it signals an explosive upside breadth situation that historically has led to significant intermediate to long-term market advances."
Kirkpatrick and Dahlquist (2016) validate this observation, noting that genuine Breadth Thrust signals have preceded market rallies averaging 24.6% in the subsequent 11-month period based on historical data from 1940-2010.
Zweig's Application
Martin Zweig utilized the Breadth Thrust Indicator as a cornerstone of his broader market analysis framework. According to his methodology, the Breadth Thrust was most effective when:
Integrated with monetary conditions analysis
Confirmed by trend-following indicators
Applied during periods of market bottoming after significant downturns
In his seminal work "Winning on Wall Street" (1994), Zweig explains that the Breadth Thrust "separates genuine market bottoms from bear market rallies by measuring the ferocity of buying pressure." He frequently cited the classic Breadth Thrust signals of October 1966, August 1982, and March 2009 as textbook examples that preceded major bull markets (Zweig, 1994; Appel, 2005).
The PRO Enhancement
The PRO version of Zweig's Breadth Thrust introduces several methodological improvements:
Volume-Weighted Analysis: Incorporates trading volume to account for significance of price movements, as suggested by Fosback (1995) who demonstrated improved signal accuracy when volume is considered.
Adaptive Smoothing: Multiple smoothing methodologies allow for sensitivity adjustment based on market conditions.
Visual Enhancements: Dynamic color signaling and historical signal tracking facilitate pattern recognition.
Contrarian Option: Allows for inversion of signals to identify potential counter-trend opportunities, following Lo and MacKinlay's (1990) research on contrarian strategies.
Empirical Evidence
Research by Bulkowski (2013) found that classic Breadth Thrust signals have preceded market advances in 83% of occurrences since 1950, with an average gain of 22.4% in the 12 months following the signal. More recent analysis by Bhardwaj and Brooks (2018) confirms the indicator's continued effectiveness, particularly during periods of market dislocation.
Statistical analysis of NYSE data from 1970-2020 reveals that Breadth Thrust signals have demonstrated a statistically significant predictive capability with p-values < 0.05 for subsequent 6-month returns compared to random market entries (Lo & MacKinlay, 2002; Bhardwaj & Brooks, 2018).
Practical Implementation
To effectively implement the Breadth Thrust PRO indicator:
Monitor for Oversold Conditions: Watch for the indicator to fall below the 0.40 threshold, indicating potential bottoming.
Identify Rapid Improvement: The critical signal occurs when the indicator rises from below 0.40 to above 0.615 within a 10-day period.
Confirm with Volume: In the PRO implementation, ensure volume patterns support the breadth movement.
Adjust Parameters Based on Market Regime: Higher volatility environments may require adjusted thresholds as suggested by Faber (2013).
As Murphy (2004, p.285) advises: "The Breadth Thrust works best when viewed as part of a comprehensive technical analysis framework rather than in isolation."
References
Appel, G. (2005) Technical Analysis: Power Tools for Active Investors. Financial Times Prentice Hall, pp. 187-192.
Bhardwaj, G. and Brooks, R. (2018) 'Revisiting Market Breadth Indicators: Empirical Evidence from Global Equity Markets', Journal of Financial Research, 41(2), pp. 203-219.
Bulkowski, T.N. (2013) Trading Classic Chart Patterns. Wiley Trading, pp. 315-328.
Colby, R.W. (2003) The Encyclopedia of Technical Market Indicators, 2nd Edition. McGraw-Hill, pp. 123-126.
Elder, A. (2002) Come Into My Trading Room: A Complete Guide to Trading. John Wiley & Sons, pp. 175-183.
Faber, M.T. (2013) 'A Quantitative Approach to Tactical Asset Allocation', Journal of Wealth Management, 16(1), pp. 69-79.
Fosback, N. (1995) Stock Market Logic: A Sophisticated Approach to Profits on Wall Street. Dearborn Financial Publishing, pp. 112-118.
Kirkpatrick, C.D. and Dahlquist, J.R. (2016) Technical Analysis: The Complete Resource for Financial Market Technicians, 3rd Edition. FT Press, pp. 432-438.
Lo, A.W. and MacKinlay, A.C. (1990) 'When Are Contrarian Profits Due to Stock Market Overreaction?', The Review of Financial Studies, 3(2), pp. 175-205.
Lo, A.W. and MacKinlay, A.C. (2002) A Non-Random Walk Down Wall Street. Princeton University Press, pp. 207-214.
Murphy, J.J. (2004) Intermarket Analysis: Profiting from Global Market Relationships. Wiley Trading, pp. 283-292.
Zweig, M.E. (1986) Martin Zweig's Winning on Wall Street. Warner Books, pp. 87-96.
Zweig, M.E. (1994) Winning on Wall Street, Revised Edition. Warner Books, pp. 121-129.
UM Dual MA with Price Bar Color change & Fill
Description
This is a dual moving average indicator with colored bars and moving averages. I wrote this indicator to keep myself on the right side of the market and trends. It plots two moving averages, (length and type of MA are user-defined) and colors the MAs green when trending higher or red when trending lower. The price bars are green when both MAs are green, red when both MAs are red, and orange when one MA is green and the other is red. The idea behind the indicator is to be extremely visual. If I am buying a red bar, I ask myself "why?" If I am selling a green bar, again, "why?"
Recommended Usage
Configure your tow favorite Moving averages. Consider long positions when one or both turn green. Scale into a position with a portion upon the first MA turning green, and then more when the second turns green. Consider scaling out when the bars are orange after an up move.
Orange bars are either areas of consolidation or prior to major turns.
You can also look for MA crossovers.
The indicator works on any timeframe and any security. I use it on daily, hourly, 2 day charts.
Default settings
The defaults are the author's preferred settings:
- 8 period WMA and 16 period WMA.
- Bars are green when both MAs are trending higher, red when both MAs are trending lower, and orange when one MA is trending higher and the other is trending lower.
Moving average types, lengths, and colors are user-configurable. Bar colors are also user-configurable.
Alerts
Alerts can be set by right-clicking the indicator and selecting the dropdown:
- Bullish Trend Both MAs turning green
- Bearish Trend Both MAs turning red
- Mixed Trend, 1 green 1 red MA
Helpful Hints:
Look for bullish areas when both MAs turn green after a sustained downtrend
Look for bearish areas when both MAs turn red
Careful in areas of orange bars, this could be a consolidation or a warning to a potential trend direction change.
Switch up your timeframes, I toggle back and forth between 1 and 2 days.
Stretch your timeframe over a lower time frame; for example, I like the 8 and 16 daily WMA. With most securities I get 16 bars with pre and post market. This translates into 128 and 256 MAs on the hourly chart. This slows down moves and color transitions for better manageability.
Author's Subjective Observations
I like the 128/256 WMA on the hourly charts for leveraged and inverse ETFs such as SPXL/SPXS, TQQQ/SQQQ, TNA/TZA. Or even the volatility ETFs/ETNS: UVXY, VXX.
Here is a one-hour chart example:
I have noticed that as volatility increases, I should begin looking at higher timeframes. This seems counterintuitive, but higher volatility increases the level of noise or swings.
I question myself when I short a green bar or buy a red bar; "Why am I doing this?" The colors help me visually stay on the right side of trend. If I am going to speculate on a market turn, at least do it when the bars are orange (MA trends differ)
My last observation is a 2-day chart of leveraged ETFs with the 8 and 16 WMAs. I frequently trade SPXL, FNGA, and TNA. If you are really dissecting this indicator,
look at a few 2-day charts. 2-day charts seem to catch the major swings nicely up and down. They also weed out the daily sudden big swings such as a panic move from economic data
or tweets. When both the MAs turn red on a 2-day chart the same day or same bar, beware; this could be a rough ride or short opportunity. I found weekly charts too long for my style but good
to review for direction. Less decisions on longer charts equate to less brain damage for myself.
These are just my thoughts, of course you do you and what suits your style best! Happy Trading.
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.
Average Daily LiquidityIt is important to have sufficient daily trading value (liquidity) to ensure you can easily enter and, importantly, exit the trade. This indicator allows you to see if the traded value of a stock is adequate. The default average is 10 periods and it is common to average the daily traded value as both price and volume can have spikes causing trading errors. Some investors use a 5 period for a week, 10 period for 2 weeks, 20 or 21 period for 4 weeks/month and 65 periods for a quarter. You need to ascertain your buying amount such as $10000 and then have the average daily trading value be your comfortable moving average more such as average liquidity is more than 10 x MA(close x volume) or $100000 in this example. The value is extremely important for small and micro cap stocks you may wish to purchase.
CANDLE SCRUTINY | GSK-VIZAG-AP-INDIAIndicator: CANDLE SCRUTINY | GSK-VIZAG-AP-INDIA
1. Overview
The CANDLE SCRUTINY indicator is a candle-by-candle analytical tool designed to dissect and visually represent the behavior of recent candles on a chart. It presents a concise table overlay that summarizes critical candlestick data including price movement, directional trend, volume dynamics, and strength of price sequences — all updated in real time.
2. Purpose / Trading Use Case
This tool is ideal for:
Scalpers and intraday traders needing quick real-time candle insights.
Trend analyzers who want to observe evolving price momentum.
Volume-based decision makers monitoring buyer-seller imbalance.
Traders who scrutinize candles for confirmations before entries or exits.
3. Key Features & Logic Breakdown
Candle Classification: Each candle is categorized as Bullish, Bearish, or Doji based on open-close comparison.
Move Calculation: Calculates and displays net candle move (Close - Open) for each bar.
Trend Count: Tracks the number of consecutive candles of the same type (bullish or bearish).
Sequential Move (Total SM): Aggregates move values when candles of the same type form a sequence.
Volume Breakdown: Approximates buy/sell volume ratio using candle type logic.
Delta Volume: Measures buy-sell imbalance to gauge intrabar strength.
Time Localization: Candle timestamps are shown in the user-selected timezone.
4. User Inputs / Settings
Number of Candles (numCandles): Choose how many recent candles to analyze (1–10).
Table Position (tablePos): Set to top_right by default.
Timezone Selector (tzOption): Choose from multiple global timezones (e.g., IST, UTC, NY, London) to view local candle times.
These settings let traders customize the scope and perspective of candle analysis to fit their trading region and strategy focus.
5. Visual & Plotting Elements
A floating data table appears on the chart (top-right by default), showing:
Time of candle (localized)
Type (Bullish/Bearish/Doji)
Move value with green/red background
Total SM (sequential movement) with trend-based color shading
Trend Count
Buy Volume, Sell Volume, Total Volume
Delta (volume imbalance) with color-coded strength indicator
Color coding makes it visually intuitive to quickly assess strength, direction, and sequence.
6. Effective Usage Tips
Use in 1-minute to 15-minute timeframes for scalping or momentum breakout confirmation.
Monitor Delta and Sequential Move (SM) to confirm strength behind price action.
Trend Count helps gauge sustained direction—useful for short-term trend continuation strategies.
Combine with support/resistance zones or volume profile for stronger confluence.
Great for detecting early signs of exhaustion or continuation.
7. What Makes It Unique
Combines price action + volume behavior + trend memory into one compact visual table.
Allows user-defined timezone adjustment, a rare feature in similar indicators.
Designed to give a story of the last N candles from a momentum and participation viewpoint.
Fully non-intrusive overlay—doesn't clutter chart space.
8. Alerts / Additional Features
Currently no alerts, but future versions may include:
Alert when trend count exceeds a threshold
Alert on strong delta volume shifts
Alert on back-to-back Dojis (sign of indecision)
9. Technical Concepts Used
Candlestick Logic: Bullish, Bearish, Doji classification
Volume Analysis: Approximate buy/sell split based on candle type
Color Coding: For intuitive interpretation of move, trend, and delta
Arrays & Looping Logic: Efficient tracking of trends and sequences
Timezone Handling: Uses hour(time, timezone) and minute(time, timezone) for local display
10. Disclaimer
This script is provided for educational and informational purposes only. It does not constitute financial advice. Always backtest thoroughly and use appropriate risk management when applying this or any indicator in live markets. The author is not responsible for any financial losses incurred.
Cup & Handle Post-Breakout Correction FinderWhat This Script Tries to Do (Simple Summary)
Finds a Specific Setup: It looks for stocks that might be getting ready to move up again after a specific sequence:
A big "Cup & Handle" breakout happened 1-3 years ago.
The stock then pulled back (corrected) for at least a few months (~4 months by default) without crashing too hard (less than 35% drop by default).
The main weekly moving averages are now tightly bunched together (suggesting a pause or "squeeze").
The price just crossed above its 200-day moving average (a potential positive sign).
The price hasn't already broken above the high point of the recent pullback.
The Signal: If all these conditions are met, it places a small, bright green circle below the price bar on your chart.
Reference Line: It also shows the 200-period moving average (usually the 200-week, as this script is best on Weekly charts) as a red line.
Best Way to Use It (Simple Guide)
Use on Daily or Weekly Charts: The script's settings (like pullback in weeks) make it more suitable for the Weekly timeframe.
Look for the Green Circle: This is the main signal that the script found a potential setup matching all its rules.
Don't Trade Blindly! The green circle is just an alert, not a guaranteed buy signal. It means "This stock might fit the pattern, check it out!".
Confirm with Your Eyes & Other Tools:
Does the chart look like the pattern the script is searching for (past breakout, recent pullback, current tightening)?
Switch to the Daily chart to see how the cross above the 200-day EMA looks. Is it clean?
Check the volume. Is buying interest picking up as the signal appears? (Good sign).
Consider the overall market trend. Is it a good time to be buying stocks?
Customize (Optional): You can adjust the settings (gear icon ⚙️) to make the rules stricter or looser (e.g., change the pullback duration, allowed drop percentage, EMA tightness).
Manage Risk: If you decide to trade based on this signal (after confirming it), always know where you'll place your stop-loss in case the pattern fails.
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! ^^
Multi Year BreakoutWhat the Script Does (Simple Summary)
Name: It's called "Multi Year Breakout" (or MYBO for short) and shows up right on your main price chart.
Settings You Control: You can easily change settings like:
How many months or years back the script should look to find the important old highest price and lowest price.
How many months back it should look for the recent highest price.
Whether you want to see the lines drawn on the chart for these highs and lows.
The color, thickness, and style (solid, dashed, dotted) of the lines.
An optional info box showing the price levels, where it appears, and the text size.
What it Calculates: It finds the exact price for the highest high in the "older" period you set, the highest high in the "recent" period, and the lowest low in the "older" period.
What it Draws:
It draws horizontal lines on your chart at these key price levels. Think of the high lines (Fuchsia for older, Orange for recent) as price ceilings (resistance).
It draws small triangle arrows below the price bars when a potential breakout happens.
The Breakout Signal:
It checks if today's closing price moved above the highest ceiling (either the older Fuchsia line or the recent Orange line, whichever was higher yesterday).
If it did, you get an arrow:
Fuchsia Arrow: Price broke above the older high ceiling (often more important).
Orange Arrow: Price broke above the recent high ceiling.
Alerts:
The script creates alert conditions. If you want a notification (popup, email, etc.), you MUST manually create an alert in TradingView's alert menu, choosing this script and selecting either the "Fuchsia Breakout" or "Orange Breakout" condition.
Best Way to Use It (Simple Guide)
Goal: Use this script to help find stocks that are breaking through significant past price ceilings. This might signal the start of a new upward move.
Best Charts: Works best on Daily or Weekly charts to see the bigger picture price action over months and years.
Setup:
Add the script to your preferred chart.
Adjust the settings (gear icon ⚙️) to define your "older" and "recent" periods (e.g., 60 months back for the older start, 12 months back for the older end / recent end).
Choose which lines you want to see (usually the Fuchsia and Orange high lines are most useful).
Reading the Chart:
Fuchsia Line: A major price level that stopped the price going higher in the more distant past. Breaking this is often significant.
Orange Line: The highest price reached more recently. Breaking this shows current momentum.
Arrows: An arrow appears when the price closes above the relevant high line (based on yesterday's level). The color tells you if it cleared the older (Fuchsia) or recent (Orange) hurdle.
Very Important - Use Other Tools Too! Don't trade based only on an arrow. Always look for extra confirmation:
Volume: Was there a lot more trading activity than usual on the breakout day? (High volume is a good sign).
Chart Pattern: Was the stock building up energy in a pattern before breaking out?
Market Direction: Is the overall stock market also looking positive?
Set Up Alerts (If Wanted): If you want TradingView to notify you, go to the 'Alert' menu, select this script (MYBO), choose the "Fuchsia Breakout" or "Orange Breakout" condition, and set how you want to be notified.
Manage Risk: Sometimes breakouts look good but then fail. Always decide before you trade how much you're willing to risk and where you'll exit if the price falls back down (use a stop-loss).
Think of this script as a signal that says "Hey, look at this stock, it just cleared an important level!". It's your cue to investigate further using other analysis before making any trading decisions.
Buffett Investment ScorecardYou want to buy a stock and wonder if Warren Buffett would buy it?
The "Buffett Investment Scorecard" indicator implements key principles of value investing pioneered by Warren Buffett and his mentor Benjamin Graham. This technical analysis tool distills Buffett's complex investment philosophy into quantifiable metrics that can be systematically applied to stock selection (Hagstrom, 2013).
Warren Buffett's Investment Philosophy
Warren Buffett's approach to investing combines fundamental analysis with qualitative assessment of business quality. As detailed in his annual letters to Berkshire Hathaway shareholders, Buffett seeks companies with durable competitive advantages, often referred to as "economic moats" (Buffett, 1996). His philosophy centers on acquiring stakes in businesses rather than simply trading stocks.
According to Cunningham (2019), Buffett's core investment principles include:
Business Quality: Focus on companies with consistent operating history and favorable long-term prospects
Management Integrity: Leadership teams that act rationally and honestly
Financial Strength: Conservative financing and high returns on equity
Value: Purchase at attractive prices relative to intrinsic value
The financial metrics incorporated in this indicator directly reflect Buffett's emphasis on objective measures of business performance and valuation.
Key Components of the Scorecard
Return on Equity (ROE)
Return on Equity measures a company's profitability by revealing how much profit it generates with shareholder investment. Buffett typically seeks businesses with ROE above 15% sustained over time (Cunningham, 2019). As noted by Hagstrom (2013, p.87), "Companies with high returns on equity usually have competitive advantages."
Debt-to-Equity Ratio
Buffett prefers companies with low debt. In his 1987 letter to shareholders, he stated: "Good business or investment decisions will eventually produce quite satisfactory economic results, with no aid from leverage" (Buffett, 1987). The scorecard uses a threshold of 0.5, identifying companies whose operations are primarily funded through equity rather than debt.
Gross Margin
High and stable gross margins often indicate pricing power and competitive advantages. Companies with margins above 40% typically possess strong brand value or cost advantages (Greenwald et al., 2001).
EPS Growth
Consistent earnings growth demonstrates business stability and expansion potential. Buffett looks for predictable earnings patterns rather than erratic performance (Hagstrom, 2013). The scorecard evaluates year-over-year growth, sequential growth, or compound annual growth rate (CAGR).
P/E Ratio
The price-to-earnings ratio helps assess valuation. While Buffett focuses more on intrinsic value than simple ratios, reasonable P/E multiples (typically below 20) help identify potentially undervalued companies (Graham, 1973).
Implementation and Usage
The TradingView indicator calculates a cumulative score based on these five metrics, providing a simplified assessment of whether a stock meets Buffett's criteria. Results are displayed in a color-coded table showing each criterion's status (PASS/FAIL).
For optimal results:
Apply the indicator to long-term charts (weekly/monthly)
Focus on established companies with predictable business models
Use the scorecard as a screening tool, not as the sole basis for investment decisions
Consider qualitative factors beyond the numerical metrics
Limitations
While the scorecard provides objective measures aligned with Buffett's philosophy, it cannot capture all nuances of his investment approach. As noted by Schroeder (2008), Buffett's decision-making includes subjective assessments of business quality, competitive positioning, and management capability.
Furthermore, the indicator relies on historical financial data and cannot predict future performance. It should therefore be used alongside thorough fundamental research and qualitative analysis.
References
Buffett, W. (1987). Letter to Berkshire Hathaway Shareholders. Berkshire Hathaway Inc.
Buffett, W. (1996). Letter to Berkshire Hathaway Shareholders. Berkshire Hathaway Inc.
Cunningham, L.A. (2019). The Essays of Warren Buffett: Lessons for Corporate America. Carolina Academic Press.
Graham, B. (1973). The Intelligent Investor. Harper & Row.
Greenwald, B., Kahn, J., Sonkin, P., & van Biema, M. (2001). Value Investing: From Graham to Buffett and Beyond. Wiley Finance.
Hagstrom, R.G. (2013). The Warren Buffett Way. John Wiley & Sons.
Schroeder, A. (2008). The Snowball: Warren Buffett and the Business of Life. Bantam Books.
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.