Internal Market Structure + Order BlocksInternal Market Structure + Order Blocks
This indicator combines internal market structure shifts with order block detection to help traders identify key zones of institutional interest and potential trend reversals. It highlights bullish and bearish engulfing conditions that mark the formation of valid order blocks, and it plots internal structure shifts—early signals that may precede a larger move.
Key Features:
-Bullish & Bearish Order Blocks: Highlighted with shaded boxes (green for bullish, red for bearish) following engulfing price action.
-Internal Structure Shifts: Small black triangles show early signs of a potential reversal, offering a unique perspective beyond standard structure analysis.
-Engulfing Breakouts: Marks when price breaks previous opposing structure, confirming new directional intent.
-Alerts Included: Get notified on key structure breaks and internal shifts to stay ahead of potential setups.
This tool is designed to support price action trading by visually mapping key structural changes and zones of interest directly on your chart. It is not intended to function as a standalone trading strategy , but rather as a supplementary tool to inform your own analysis and discretion.
Note: The arrows, polylines, and colored trendlines shown in the chart example are not generated by the indicator. They have been added manually for illustration purposes to demonstrate how the indicator can be used to trace market structure. Likewise, the order blocks in the example are manually drawn and may differ slightly from the indicator's automatic calculations, serving only to enhance visual clarity.
Pattern grafici
Chart Patterns [ActiveQuants]The Chart Patterns indicator is a comprehensive tool designed to automatically identify a variety of common chart patterns directly on your price chart. By detecting sequences of pivot highs and lows , this indicator helps traders spot potential trend continuations , reversals , and key market structures such as Double Tops and Double Bottoms . Enhance your technical analysis by quickly recognizing these formations as they emerge.
How It Works
The indicator operates in a two-stage process:
Pivot Point Detection: It first identifies significant swing highs and swing lows (pivot points) based on a user-defined Period . These pivots form the fundamental building blocks for pattern recognition.
Pattern Recognition: Using the sequence of these detected pivot points, the script then applies logical rules to identify the following patterns:
Lower Low (LL)
Lower Low & Lower High (LL & LH)
Higher High (HH)
Higher High & Higher Low (HH & HL)
Double Tops
Double Bottoms
Patterns are drawn on the chart with connecting lines and labeled for easy identification. Double Tops and Double Bottoms also feature a status system: " Active " while forming, " Confirmed " upon neckline breakout, or " Invalid " if specific conditions negate the pattern before confirmation.
█ KEY FEATURES
Comprehensive Pattern Detection: Identifies six distinct types of chart patterns, offering insights into both trend continuation and potential reversals.
Pivot-Based Analysis: Uses a robust method of identifying pivot highs and lows as the foundation for pattern formation.
Pattern Status for Double Tops/Bottoms:
- Active: A Double Top or Double Bottom pattern has formed its two peaks/troughs and the intervening neckline point, but the price has not yet broken beyond the neckline. The pattern is developing .
- Confirmed: The price has decisively closed beyond the neckline (below for Double Top, above for Double Bottom), signaling a potential entry or validation of the pattern.
- Invalid: An " Active " Double Top or Double Bottom pattern can be invalidated if, before a neckline breakout occurs, a new pivot point forms that negates the pattern’s structural integrity. For example, if a new pivot low forms above or at the neckline of an Active Double Top, the pattern is considered invalid because the market failed to break down and instead showed relative strength.
Customizable Visuals: Allows users to define colors for bullish and bearish patterns, line widths, and the visibility of pivot points.
Selective Pattern Display: Users can choose to display all patterns or filter by status (Active, Confirmed, Invalid) for Double Tops/Bottoms. Individual pattern types can also be toggled on or off.
Historical Analysis Control: The Show Last History (Bars) input allows users to specify how far back the indicator should plot patterns, optimizing performance and chart readability.
Clear Labeling: Patterns are clearly labeled on the chart, with Double Tops/Bottoms also showing " Top 1 ," " Top 2 ," or " Bottom 1 ," " Bottom 2 " labels.
█ PATTERNS DETECTED
Lower Low (LL): Indicates a potential bearish continuation or the start of a downtrend. Forms when price makes a lower low during an uptrend.
Lower Low & Lower High (LL & LH): A stronger confirmation of a bearish trend, where the market forms a lower low followed by a lower high .
Higher High (HH): Signals a potential bullish continuation or the start of an uptrend. Forms when price makes a higher high during a downtrend.
Higher High & Higher Low (HH & HL): A stronger confirmation of a bullish trend, where the market forms a higher high followed by a higher low .
Double Top: A bearish reversal pattern characterized by two distinct peaks at roughly the same price level, separated by a trough (neckline). Confirmation occurs when price breaks below the neckline.
Double Bottom: A bullish reversal pattern featuring two distinct troughs at roughly the same price level, separated by a peak (neckline). Confirmation occurs when price breaks above the neckline.
█ EXAMPLE: DOUBLE TOP INVALIDATION
Understanding how a Double Top or Double Bottom can be invalidated is crucial. Here's an example for a Double Top:
Formation: The indicator identifies two peaks (Top 1, Top 2) at a similar price level, with a corrective trough (Neckline Pivot P5) in between. The pattern is labeled " Double Top " and is in an " Active " state. ( Imagine points P4 and P6 are the two tops, and P5 is the low point of the neckline between them ).
Pre-Breakout Condition: The price action continues, but before it breaks decisively below the P5 neckline level, a new significant swing low (a new pivot low) forms.
Invalidation Check: The indicator checks the price level of this new pivot low. If this new pivot low occurs at a price equal to or higher than the P5 neckline level, the " Active " Double Top pattern is re-labeled as " Invalid Double Top ". ( See image below for a visual representation of this scenario )
In this example, the Double Top formed with Top 1 (P4) and Top 2 (P6). The neckline is at P5. Before price broke below P5, a new pivot low formed at the red circle. Since this new pivot low is above the P5 neckline, the Double Top is marked " Invalid ".
The logic is that the market failed to break the neckline support and instead established a higher low (or a low at the support level), suggesting that the immediate bearish pressure has waned, thus invalidating the bearish reversal implication of the Double Top before it could confirm. A similar logic applies to Double Bottoms (a new pivot high forming below or at the neckline before an upside breakout).
█ USER INPUTS
Visibility and Common Styling
- Show Last History (Bars):
Specifies the number of recent bars the indicator will analyze and plot patterns on.
Default: 3000 bars. Min: 10.
- Patterns:
Filters which patterns are displayed based on their status.
Options: All, Active, Confirmed, Invalid.
Default: All.
- Pattern Line Width:
Sets the thickness of the lines used to draw the patterns.
Default: 1. Min: 1, Max: 10.
- Bearish Color:
Color for bearish patterns (LL, LL & LH, Double Tops).
Default: Red.
- Bullish Color:
Color for bullish patterns (HH, HH & HL, Double Bottoms).
Default: Green.
Pivot Points
- Period:
The lookback period on either side of a bar to qualify it as a pivot high or low. Higher values detect more significant pivots.
Default: 10 bars. Min: 2.
- Show Pivot Highs:
Toggles the visibility of detected pivot high markers.
Default: Enabled.
- Show Pivot Lows:
Toggles the visibility of detected pivot low markers.
Default: Enabled.
- Pivot Highs Color:
Color for the pivot high markers.
Default: #ff5252 (Reddish).
- Pivot Lows Color:
Color for the pivot low markers.
Default: #089981 (Greenish).
Patterns (Toggles)
- Lower Low:
Enable/disable detection and display of Lower Low patterns.
Default: Enabled.
- Lower Low & Lower High:
Enable/disable detection and display of Lower Low & Lower High patterns.
Default: Enabled.
- Higher High:
Enable/disable detection and display of Higher High patterns.
Default: Enabled.
- Higher High & Higher Low:
Enable/disable detection and display of Higher High & Higher Low patterns.
Default: Enabled.
- Double Tops:
Enable/disable detection and display of Double Top patterns.
Default: Enabled.
- Double Bottoms:
Enable/disable detection and display of Double Bottom patterns.
Default: Enabled.
█ CONCLUSION
The Chart Patterns indicator is a versatile and powerful assistant for traders who utilize classical chart pattern analysis. By automating the detection of key formations and providing clear visual cues along with status updates for patterns like Double Tops and Bottoms, it allows traders to focus on strategy development and execution. With its customizable settings, it can be adapted to various instruments and timeframes, making it a valuable addition to any technical trader's toolkit.
█ IMPORTANT NOTES
⚠ Pivot Period Sensitivity: The Period setting for pivot detection is crucial. A shorter period will identify more frequent, smaller swings, while a longer period will focus on more significant turning points. Adjust this setting based on the asset's volatility, the timeframe you are trading and your trading style.
⚠ Confirmation is Key: While the indicator identifies patterns, always wait for pattern confirmation (e.g., neckline breaks for Double Tops/Bottoms) and consider other factors like volume and market context before making trading decisions.
⚠ Confirmed Bars for Detection: Patterns are identified based on confirmed pivot points, which means a pivot is recognized period bars after it has formed. Status updates for Double Tops/Bottoms (Active, Confirmed, Invalid) also occur on confirmed bars. This approach enhances reliability and reduces the likelihood of repainting based on intra-bar price fluctuations.
⚠ Not a Standalone System: Chart patterns provide valuable insights, but they should be used in conjunction with other technical analysis tools (e.g., trendlines, moving averages, oscillators) and a sound risk management plan.
⚠ Lagging Nature: By their very definition, chart patterns are lagging indicators as they require a sequence of price action and several pivot points to complete their formation.
█ RISK DISCLAIMER
Trading involves a substantial risk of loss and is not suitable for every investor. The information provided by the Chart Patterns indicator is for educational and informational purposes only. It should not be considered as financial advice or a recommendation to buy or sell any security. Chart patterns indicate potential price movements but do not guarantee future results. Always perform your own due diligence and consult with a qualified financial advisor before making any investment decisions. Past performance is not indicative of future results.
📈 Happy trading! 🚀
NY Reversal Pattern StatsThe NY Reversal Pattern Stats indicator is a tool for identifying and analyzing specific price action patterns that occur during the New York trading session. Its goal is to highlight potential reversal or continuation opportunities that may arise from market manipulation or shifts in volatility within this key market window. Beyond simply identifying patterns, the indicator provides valuable historical statistics on their performance, helping traders evaluate their effectiveness.
Key Features
New York Session Highlighting: Clearly visualizes the defined New York trading session directly on your chart.
Automated Pattern Detection: Automatically detects two types of patterns within the New York session:
Manipulation Wick: Identifies instances where price attempts to push significantly beyond a recent session extreme but is rejected, resulting in a wick with the close returning to the original side.
Low Volatility Reversal: Detects price interaction with a recent session extreme where the resulting candle shows lower-than-average volatility, suggesting potential exhaustion or a reversal point.
Pattern Confirmation Tracking: Tracks whether a detected pattern leads to a follow-through move based on a defined confirmation rule (currently, price returning to the session midpoint).
Comprehensive Statistics Table: Displays a detailed table on the chart summarizing:
Total patterns observed.
Number of patterns that were confirmed.
Success and failure rates.
Maximum losing streak.
Statistical relevance metrics (Sigma, Z-Score, P-value) to help assess if the observed success rate is likely due to chance.
A clear description interpreting the statistical relevance and pattern performance (more often right/wrong).
Customizable Visuals: Allows users to control the appearance of the session background and pattern labels.
Alerts: Provides options to set alerts when a new pattern is detected or when a detected pattern is confirmed.
How to Use the Indicator
Add to Chart: Apply the "NY Reversal Pattern Stats" indicator to your desired chart in TradingView.
Configure Inputs: Open the indicator's settings to customize the parameters:
Session Time Definition: Set the exact start hour, minute, and duration (in hours) for the New York session you wish to analyze. Use the "NY Time" inputs (e.g., 6:00 AM - 10:00 AM for Indices, 5:00 AM - 9:00 AM for Forex). The indicator uses the "America/New_York" timezone to handle Daylight Saving Time.
NY Session Visuals: Choose whether to display the session background and pattern labels, and customize their colors.
Pattern Detection: Adjust the sensitivity of the Manipulation Wick threshold and configure the settings for the Low Volatility Reversal pattern detection (enable/disable, ATR length, volatility factor).
Confirmation: Enable or disable the session midpoint confirmation criterion.
Show Statistics Table: Toggle the visibility of the statistics table.
Interpret the Chart: Observe the highlighted New York session windows and the labels indicating detected and confirmed patterns.
Analyze the Statistics Table: Refer to the statistics table for historical performance data.
Total Patterns: Indicates the sample size. More patterns generally lead to more statistically reliable results.
Confirmed/Failed: Shows the raw counts of successful and unsuccessful patterns based on the confirmation rule.
Success/Fail Rate (%): Provides the percentage of patterns that met or did not meet the confirmation criterion.
Statistical Relevance: Read the description provided in the table. It interprets the Z-Score and sample size to tell you if the observed success rate is statistically significant (i.e., unlikely to be just random chance).
Pattern Performance: Read the description indicating whether the pattern has historically been "More often right than wrong" or "More often wrong than right" based on the success rate.
Sigma / Z-Score / P-value: These are standard statistical measures. A higher absolute Z-Score and a lower P-value (especially below 0.05 or 0.01) suggest stronger statistical evidence that the pattern's success rate is different from a random 50/50 outcome.
Set Alerts: If desired, configure alerts to be notified when patterns are detected or confirmed, allowing you to potentially take action in real-time.
Interpretation of Results
High Success Rate + High Statistical Relevance: This combination suggests the detected pattern, as defined and confirmed by the indicator, has historically shown a consistent edge within the specified New York session window, and this performance is unlikely due to random chance.
High Success Rate + Low Statistical Relevance: The pattern has performed well in the observed data, but the sample size might be too small for high confidence that this performance will continue.
Low Success Rate + High Statistical Relevance: The pattern, as defined, has historically shown a tendency to fail more often than succeed, and this underperformance is statistically significant.
Low Statistical Relevance (Regardless of Success Rate): The sample size is insufficient to draw strong conclusions about the pattern's effectiveness. More historical data is needed.
Remember that past performance is not indicative of future results. Statistical analysis provides insights into historical tendencies, but trading decisions should always involve a comprehensive analysis and risk management plan.
Limitations
Timeframe Dependency: The pattern detection and session high/low accumulation operate on the chart's current timeframe. It does not specifically analyze only the 4-hour candles as might be implied by "4H Candle Profiling Patterns".
Confirmation Criterion: The confirmation rule is fixed to price returning to the session midpoint. If your strategy uses a different confirmation or target, this indicator's statistics may not directly reflect its performance.
No London/Asia Filter: The indicator does not check the performance or characteristics of the London or Asia sessions to filter for instances where "London and Asia Fail".
Potential Timezone Compiler Issues: While the code uses standard v6 timezone handling, some specific TradingView environments may exhibit unexpected behavior with timezone strings, potentially affecting the precise timing of the session boundaries.
This indicator is a powerful tool for analyzing specific price action patterns during the New York session. By understanding its inputs, outputs, and limitations, traders can gain valuable insights into potential trading opportunities.
Base Detector Pro [AletheiaTradeLab]This custom Trading View indicator combines William O’Neal “Base” patterns with several complementary tools—David Ryan’s ANT indicator, key pivot‐based price levels, index and earnings lines, relative strength (RS) line, and moving averages—to help you pinpoint base formations and validate whether each one merits a trade.
1. Bases (William O'Neal)
A “base” is simply a period of price consolidation following a significant run-up. During this phase, a stock moves mostly sideways within a defined trading range, forming clear support and resistance lines.
Key Criteria for a Valid Base
- Prior Uptrend
Before a base begins, the stock should already have a healthy advance—typically at least a 30% gain.
- Shapes of Bases
Bases can form in several distinct geometric patterns, each signaling a different kind of consolidation and potential breakout:
Flat Base
Shape : A horizontal rectangle bounded by nearly parallel support (bottom) and resistance (top) trendlines.
Minimum Length : 5 weeks
Maximum Length : 65 weeks
Depth : < 15%
Pivot Point : Left-side high of base
i.ibb.co i.ibb.co
Cup Base
Shape : A smooth, rounded “U” curve.
Minimum Length : 6 weeks
Maximum Length : 65 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : Left-side high of base
i.ibb.co i.ibb.co
Sauce Base
Shape : A very gradual, broad “U” curve, often taking more length than cup bases.
Minimum Length : 6 weeks
Maximum Length : 65 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : Left-side high of base
i.ibb.co i.ibb.co
Cup with Handle Base
Shape : A “U”‐shaped cup followed by a smaller downward-sloping flag or channel (the handle).
Minimum Length : 6 weeks
Maximum Length : 65 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : High of the handle
i.ibb.co i.ibb.co
Saucer with Handle Base
Shape : Similar to cup with handle, but cup looks like the saucer base.
Minimum Length : 6 weeks
Maximum Length : 65 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : High of the handle
i.ibb.co
Ascending Base
Shape : An upward-sloping channel or wedge with 3 pullbacks. Each pullback low should be higher than the previous one. It needs around 20% increase from a base to the other.
Minimum Length : 8 weeks
Maximum Length : 16 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : Left-side high of third base
i.ibb.co i.ibb.co
Consolidation Base
Shape : Similar to flat base, but wider and fails to form any of the above bases.
Minimum Length : 8 weeks
Maximum Length : 16 weeks
Minimum Depth : 8%
Maximum Depth : 50%
Pivot Point : Left-side high of base
i.ibb.co i.ibb.co
- Base Stages
Once a stock has completed its initial 30% run-up and formed its first base, that pattern is labeled Stage 1.
After a breakout from Stage N, the stock must rally at least 20% above the Stage N pivot (the base’s resistance point). If it does, the next valid base becomes Stage N + 1.
When a breakout fails to advance at least 20% a base on base forms. This is considered an extension for the current base stage, and a letter is assigned after the stage number.
When a breakout fails and the price undercuts the low for the previous base, the base stages reset, and a rally of 30% will be needed to form a new stage 1 base.
Note that for IPO stocks, a 30% increase is not required to form the first base. As soon as it meets any of the shape of any of the available bases, it will be drawn.
- Base statistics
To help you determine how healthy is a base, some statistics are available when you hover on the small dot shown above the high-left side of each base.
i.ibb.co
Base : The specific pattern type (Flat, Cup, Sauce, etc.).
Stage : The stage number of the base (1, 2, 3 …) and, in parentheses, how many distinct bases have formed since the very first base (including base-on-base like 1a, 1b, etc.).
Pivot : The resistance level that defines the top of the base. A close above this price often signals a valid breakout and a potential entry point.
Length : The number of bars (days on a daily chart; weeks on a weekly chart) between the start of the base and the bar immediately before breakout. (The initial bar and the breakout bar themselves are not counted.)
Depth : How far, in percentage terms, the low of the base has fallen below its left-side high.
Prior Uptrend : The percent gain from the pivot of the previous base up to the start of the current base.
Blue/Red Count : The number of up days (Blue) and down days (Red) during the base where volume was above the 50-period moving average.
Price % : The percent change from the close at the end of the base to the close at the breakout bar.
Volume % : The percent difference between the volume on the breakout bar and the 50-period average volume at the end of the base.
2. ANT Indicator (David Ryan)
The ANT indicator, developed by David Ryan, is a momentum-based signal used to identify high-potential breakout candidates during a stock’s run-up phase. It complements the base patterns by flagging moments of unusually strong price and volume activity within an uptrend, helping confirm emerging strength before or during a base formation.
i.ibb.co
3. Key Price Levels (Pivots)
Plots recent pivot-based support and resistance levels.
i.ibb.co
4. Index Line Overlay
Overlays a chosen index (e.g. SPX) on the top portion of the chart to compare relative performance.
i.ibb.co
5. Relative Strength (RS) Line
Plots the price ratio of the symbol vs. an index (e.g. SPX) to identify outperformance.
i.ibb.co
6. Moving Averages (SMA & RS-MA)
Allows up to four simple (or exponential) moving averages on price (daily/weekly) and three on the RS line.
7. Earnings Line & EPS Change
Marks earnings events on daily/weekly charts and optionally plots YoY EPS change in a lower portion of the chart. The earnings line also shows a projection to estimated earnings. To maintain alignment with the price chart, the line and YoY EPS data are limited to the most recent 28 quarters on weekly charts and 8 quarters on daily charts. For analyzing older data, you can use the replay feature.
i.ibb.co
8. Bars
Since Trading View displays very thin bars when zoomed out, I added 2-pixel-wide vertical lines over the bars to make them easier to see.
9. Dark Theme
I added this for a quick workaround to adapt colors for dark theme. Enabling this overrides any custom settings. Uncheck to customize colors.
i.ibb.co
Pivot ATR Zones [v6]🟩 Pivot ATR Zones
Overview:
The Pivot ATR Zones indicator plots dynamic support and resistance zones based on pivot highs and lows, combined with ATR (Average True Range) volatility levels. It helps traders visually identify potential long and short trade areas, along with realistic target and stop loss zones based on market conditions.
Features:
Automatically detects pivot highs and lows
Draws ATR-based entry zones on the chart
Plots dynamic take-profit and stop-loss levels using ATR multipliers
Color-coded long (green) and short (red) zones
Entry arrow markers for clearer trade visualization
Real-time alerts when new zones form
Best For:
Scalpers, intraday traders, and swing traders who want a visual, volatility-aware way to mark potential trade areas based on key pivot structures.
How to Use:
Look for newly formed green zones for long opportunities and red zones for short setups.
Use the dashed lines as dynamic take-profit and stop levels, tuned to the current ATR value.
Combine with other confirmation tools or indicators for optimal results.
Engulfing Candles with Liquidity SweepOverview
The Engulfing Candles with Liquidity Sweep indicator is designed to highlight high- and low-probability engulfing candle patterns, incorporating liquidity sweep logic for enhanced price action analysis. This script visually marks bullish and bearish engulfing events, differentiating between high-probability and low-probability setups, and plots key Fibonacci levels for each event.
🔶 USAGE
This indicator is ideal for traders seeking to identify potential reversal or continuation points based on engulfing candle patterns and liquidity sweeps. High-probability signals are based on strict engulfing and sweep criteria, while low-probability signals offer additional context for nuanced price action.
• High Probability Engulfing:
Highlights strong bullish or bearish engulfing candles that also sweep the previous candle’s high or low, suggesting a significant shift in market sentiment.
• Low Probability Engulfing:
Marks less strict engulfing patterns where the close remains within the previous candle’s range, providing early signals for potential reversals.
• Fibonacci Levels:
For each detected pattern, the script draws a 50% Fibonacci retracement line, helping traders identify potential retracement or reaction zones.
🔹 SETTINGS
• High Probability Engulfing Settings:
• Customizable colors, line styles, and widths for bullish and bearish fib lines
• Option to show/hide fib lines and pattern markers
• Low Probability Engulfing Settings:
• Separate color and style controls for low-probability signals
• Option to show/hide fib lines and pattern markers
• Alerts:
• Built-in alert conditions for all pattern types, enabling automated notifications
🔶 DETAILS
High Probability Bullish Engulfing:
• Previous candle bearish
• Current candle bullish
• Current low sweeps previous low
• Current close above previous high
High Probability Bearish Engulfing:
• Previous candle bullish
• Current candle bearish
• Current high sweeps previous high
• Current close below previous low
Low Probability Bullish Engulfing:
• Previous candle bearish
• Current candle bullish
• Current low sweeps previous low
• Current close between previous open and high
Low Probability Bearish Engulfing:
• Previous candle bullish
• Current candle bearish
• Current high sweeps previous high
• Current close between previous open and low
🔶 NOTES
• The indicator is fully customizable and can be adapted to various trading styles.
• All signals and levels are plotted directly on the chart for easy reference.
• Alerts can be set for any pattern, supporting both discretionary and automated trading approaches.
Disclaimer:This script is for informational and educational purposes only. It does not constitute financial advice. Use at your own risk.
Candle Rating (1–5)This “Candle Rating (1–5)” indicator measures where each bar’s close sits within its own high-low range and assigns a simple strength score:
Range Calculation
It computes the candle’s total range (high − low) and finds the close’s position as a percentage of that range (0 = close at low, 1 = close at high).
Five-Point Rating
1 (Strong Buy): Close in the top 20% of the range
2 (Moderate Buy): 60–80%
3 (Neutral): 40–60%
4 (Moderate Sell): 20–40%
5 (Strong Sell): Bottom 20%
Visual Feedback
It plots the numeric rating above each bar (colored green → red), giving you an at-a-glance read of candle momentum and potential reversal strength across any timeframe.
Trading Sessions
Trading Sessions
Highlights the Asia, London, and New York trading sessions with dynamic High-Low boxes.
General
Timezone : select your reference zone (e.g. Exchange, UTC, Europe/Rome, America/New_York).
Extend Session High/Low : extend the High/Low lines to the last candle.
Extend Lines (bars) : number of bars to extend lines beyond the last candle (0–100, default 15).
Show High/Low Labels : display labels for the High/Low levels.
Show Mitigated Levels : also show mitigated (broken) levels.
Show Only Recent Levels : filter levels from the last N days.
Number of Recent Days : sets how many days are considered “recent” (1–30).
Show Debug Info : enable a panel with current time, session status, and active filters.
Sessions
Asia , London , New York : enable or disable each session.
Session Time : set the start/end times with the time picker.
Box Color : choose a semi-transparent highlight color for each session.
Line Style & Width : customize style (Solid, Dotted, Dashed) and width of current and past High/Low lines.
Text Size : select the label text size (Tiny, Small, Normal, Large).
Show Only Recent Levels – filters High/Low lines to show only those from the last Number of Recent Days .
Number of Recent Days – sets how many days are considered “recent” for the filter.
Show Mitigated Levels – enables display of broken levels; otherwise only active levels remain visible.
Show High/Low Labels – toggles text labels at the ends of lines on or off.
Show Debug Info – displays a floating panel showing:
Current time in the selected timezone
On/Off status of Asia, London, NY sessions
Active filters (recent days, mitigated levels)
Line style settings for each session
Key Benefits
Visualize session-specific volatility and potential breakouts.
No historical limit: scroll back through any past sessions.
Filter and extend High/Low levels for precise price context.
Fully customize to fit any chart layout.
Ideal For
Intraday traders who need clear session boundaries and price level context.
Ultimate CoinTadpoleTrader Indicator Altcoins (UCTA)2.0Overview
UCTA (Ultimate CoinTadpoleTrader Indicator for Altcoins) is designed to help traders identify key turning points in volatile altcoin markets. It applies RSI momentum analysis, along with references to Stochastic RSI’s overbought/oversold zones and MACD expansion behavior to filter out low-probability signals. The script looks for repeated RSI dips below certain thresholds and subsequent recoveries, among other internal checks, to provide clear Buy/Sell icons on the chart.
1. Core Concepts
Multi-Stage RSI & Oscillator References
UCTA primarily relies on standard RSI thresholds (e.g., ≤30 or ≥70) but also references Stochastic RSI for deeper confirmation in potential overextended markets.
When the script detects repeated dives into oversold territory or significant momentum shifts, it generates stronger signals.
MACD Expansion Consideration
Internally, the script checks for moments when MACD lines diverge or “expand” notably, indicating an accelerating move.
If RSI conditions and MACD expansions align, the likelihood of a valid reversal or continuation signal increases.
Multi-Trigger Approach
The indicator may require multiple oversold or overbought triggers within a certain bar count to issue a final Buy or Sell signal.
For instance, RSI might dip into oversold, recover, and dip again. Such repeated patterns are used internally to reduce false positives.
Adaptive Filtering for Altcoins
Altcoins can have sharper, more frequent spikes than BTC.
UCTA’s logic attempts to handle these abrupt moves by fine-tuning the thresholds and waiting periods based on repeated triggers, rather than single crosses.
2. Usage Recommendations
Markets & Timeframes
While originally optimized for altcoins on 1H–4H charts, traders can experiment with different timeframes depending on each coin’s volatility.
If the market is extremely choppy, consider referencing higher timeframes to reduce whipsaws.
Signal Interpretation
Buy Signal → The script detects a probable bottoming pattern when RSI and other oscillator conditions reenter oversold territory multiple times within a short window.
Sell Signal → Identifies points where markets may be hitting a peak, considering repeated or extreme overbought metrics.
Complementary Analysis
Use additional technical or fundamental analysis tools to confirm signals.
UCTA is not intended as a standalone guarantee; rapid price swings can invalidate any single indicator.
3. Disclaimers
Closed-Source Code
The logic behind UCTA is proprietary and not publicly visible.
It comprises advanced filtering methods that rely on recognized indicators (RSI, Stoch RSI, MACD) in a unique combination.
No Performance Guarantees
Cryptocurrency trading is highly speculative. Historical signals do not ensure future results.
Users should apply prudent risk management and never trade solely based on one tool.
Non-Repainting Logic
Signals are determined once a bar closes, so they do not repaint retroactively.
Intrabar fluctuations can cause potential signals to appear or disappear until confirmed at candle close.
Overnight Bias: Net Long/Short with PercentOvernight bias can assist with NY session gap fades or gap and go trading once the NY session is open.
Some general gap rules are:
1. Gap Direction Aligned with Overnight Bias
Rule: If the NY session gaps up and the overnight bias is Net Long (e.g., >60% of bars above the overnight open), favor longs.
Confirmation: Look for price to hold above overnight open or VWAP.
Invalidation: If price re-enters the overnight range, reassess.
2. Gap Opposing Overnight Bias (Contrarian Setup)
Rule: If the NY opens opposite the overnight bias, expect potential gap fill or reversal.
Trade Bias: Look for retracement back toward the overnight open or VWAP.
Example: Overnight was Net Long, but NY gaps down → wait for reclaim of VWAP to go long, else fade strength.
3. Gap Into Prior Day Value Area (VAH to VAL)
Rule: If the NY session gaps into the prior day value area:
It implies mean reversion behavior.
Expect price to rotate toward the POC (point of control).
Trade Bias: Fade toward POC if overnight bias is balanced or opposite the gap direction.
4. Gap Outside Prior Day Value Area
Rule: A gap above VAH or below VAL suggests potential breakout or new trend day.
Trade Bias: If overnight bias aligns (e.g., gap above VAH + Net Long overnight), consider trend continuation.
Invalidation: If price breaks back inside the prior day value area, watch for failed breakout → fade trade possible.
5. Gap Above Prior Day High / Below Prior Day Low
Rule: This is a true breakout gap.
Above Prior High + Net Long Bias: Look for continuation.
Below Prior Low + Net Short Bias: Look for sell pressure continuation.
Trade Bias: Use pullbacks to the prior high/low or overnight open for continuation setups.
6. Gap Within Prior Day Range
Rule: If the NY open is within the prior day’s high and low, expect chop or balanced conditions.
Trade Bias: Use overnight VWAP and prior POC as decision zones. Be cautious unless a breakout occurs.
7. Failed Gap and Re-entry into Prior Day Range
Rule: If price gaps above prior high but re-enters the prior range, it's a failed breakout.
Trade Bias: Look for a fade back to VAH or POC.
Confirmation: Watch for breakdown below overnight VWAP or failure to hold overnight open.
8. Gap + Overnight VWAP Divergence
Rule: If price gaps opposite the direction of VWAP (e.g., VWAP rising, gap down), wait for confirmation.
Trade Bias: Be cautious with early trades. Bias may flip if VWAP is reclaimed.
9. Gap + Overnight Open Test
Rule: If price opens with a gap and then retests the overnight open, that level becomes a decision zone.
Trade Bias:
Hold above = trend continuation.
Rejection = gap fill or reversal.
10. Unfilled Gap = Trend Bias
Rule: If the gap remains unfilled for the first 30–60 minutes, it increases the odds of a trend day.
Trade Bias: Trade pullbacks in the direction of the gap and overnight bias.
Should anyone have suggestion to add please do so.
Breakout Statistic - Break MasterBreakMaster by Merlin
Description:
BreakMaster 📈🔥 empowers you to track market momentum by analyzing breakout patterns! 🚀 This indicator detects when the price breaks above the previous candle’s high or below its low and calculates how often these breakouts result in bullish or bearish closes. 📊 Results are displayed in a sleek, easy-to-read table, helping you make informed trading decisions! 💡
How It Works (Super Simple! 😎):
1.Breakout Detection 🔎: Checks if the price breaks the high or low of the previous candle.
2.Close Analysis 🟢🔴: Determines if the breakout candle closes bullish (close > open) or bearish (close < open).
3.Statistics Calculation 📉: Counts the breakouts and calculates the percentage of bullish/bearish closes.
4.Visual Display 🖼️: Presents all data in a stylish table at the top-right of your chart, with customizable dark or light mode! 🌙☀️
Why BreakMaster? 🌟
Simple & Clear ✅: No complex formulas—just breakouts and closing stats.
Customizable 🎨: Choose dark or light mode to match your style.
Decision-Friendly 💸: See the reliability of breakouts with percentages to boost your strategy!
How to Use:
Add BreakMaster to your TradingView chart.
Select your preferred theme (Dark/Light).
Watch the table for real-time breakout stats! 📈
Happy trading with BreakMaster! 🚀💪
LANZ Strategy 3.0🔷 LANZ Strategy 3.0 — Asian Range Fibonacci Strategy with Execution Window Logic
LANZ Strategy 3.0 is a rule-based trading system that utilizes the Asian session range to project Fibonacci levels and manage entries during a defined execution window. Designed for Forex and index traders, this strategy focuses on structured price behavior around key levels before the New York session.
🧠 Core Components:
Asian Session Range Mapping: Automatically detects the high, low, and midpoint during the Asian session.
Fibonacci Level Projection: Projects configurable Fibonacci retracement and extension levels based on the Asian range.
Execution Window Logic: Uses the 01:15 NY candle as a reference to validate potential reversals or continuation setups.
Conditional Entry System: Includes logic for limit order entries (buy or sell) at specific Fib levels, with reversal logic if price breaks structure before execution.
Risk Management: Entry orders are paired with dynamic SL and TP based on Fibonacci-based distances, maintaining a risk-reward ratio consistent with intraday strategies.
📊 Visual Features:
Asian session high/low/mid lines.
Fibonacci levels: Original (based on raw range) and Optimized (user-adjustable).
Session background coloring for Asia, Execution Window, and NY session.
Labels and lines for entry, SL, and TP targets.
Dynamic deletion of untriggered orders after execution window expires.
⚙️ How It Works:
The script calculates the Asian session range.
Projects Fibonacci levels from the range.
Waits for the 01:15 NY candle to close to validate a signal.
If valid, a limit entry order (BUY or SELL) is plotted at the selected level.
If price structure changes (e.g., breaks the high/low), reversal logic may activate.
If no trade is triggered, orders are cleared before the NY session.
🔔 Alerts:
Alerts trigger when a valid setup appears after 01:15 NY candle.
Optional alerts for order activation, SL/TP hit, or trade cancellation.
📝 Notes:
Intended for semi-automated or discretionary trading.
Best used on highly liquid markets like Forex majors or indices.
Script parameters include session times, Fib ratios, SL/TP settings, and reversal logic toggle.
Credits:
Developed by LANZ, this script merges traditional session-based analysis with Fibonacci tools and structured execution timing, offering a unique framework for morning volatility plays.
Equal High/Low (EQH/EQL) [AlgoAlpha]OVERVIEW
This script detects and visualizes Equal High (EQH) and Equal Low (EQL) zones—key liquidity areas where price has previously stalled or reversed. These levels often attract institutional interest due to the liquidity buildup around them. The indicator is built to highlight such zones using dynamic thresholding, overbought/oversold RSI filtering, and adaptive mitigation logic to manage zone relevance over time.
CONCEPTS
Equal Highs/Lows are price points where the market has repeatedly failed to break past a certain high or low, hinting at areas where stop orders and pending interest may be concentrated. These areas are often prime targets for liquidity grabs or reversals. By combining this with RSI filtering, the script avoids false signals during neutral conditions and instead focuses on zones where market pressure is more directional.
FEATURES
Detection Logic: The script identifies EQH and EQL zones by comparing the similarity between recent highs or lows with a dynamic volatility threshold. The `tolerance` input allows users to control how strict this comparison is.
RSI Filtering: If enabled, it only creates zones when RSI is significantly overbought or oversold (based on the `state_thresh` input). This helps ensure zones form only in meaningful market conditions.
Zone Display: Bullish (EQL) zones are shown in grey, while bearish (EQH) zones are in blue. Two horizontal lines mark the zone using wick and body extremes, and a filled area visualizes the zone between them.
Zone Management: Zones automatically extend with price until they’re invalidated. You can choose whether a zone is removed based on wick or body sweeps and whether it requires one or two candle confirmations. Zones also expire after a customizable number of bars.
Alerts: Four alert conditions are built in—when a new EQH/EQL is formed and when one is mitigated—making it easy to integrate into alert-based workflows.
USAGE
Equal highs/lows can be used as liquidity markers, either as entry points or as take-profit targets.
This tool is ideal for liquidity-based strategies and helps traders map out possible reversal or sweep zones that often precede aggressive moves.
Nifty Sectoral Performance ComparisonThis Pine Script indicator tracks and compares the percentage performance of Indian sectoral and thematic indices (e.g., Nifty 50, Nifty Bank, Nifty IT) relative to their starting price in a user-defined timeframe. Performance is plotted as colored lines on the chart, with transparent labels showing percentage changes. A user-configurable label offset ensures clarity. Ideal for analyzing sectoral trends in the Indian market.
Features
Multi-Index Tracking:
Monitors up to 21 indices in five groups:
Core/Large Cap: Nifty 50, Nifty Bank, Nifty Auto, Nifty IT, Nifty FMCG, Nifty Fin Services
Thematic/Sectoral: SENSEX, Nifty Healthcare, Nifty Metal, Nifty Pharma
Bank Sub-Indices & Realty: Nifty Pvt Bank, Nifty PSU Bank, Nifty Realty
Consumption & Energy: Nifty ConsDurables, Nifty Oil & Gas
MidSmall Cap Thematic: Nifty MidSmFinSrv, S&P BSE Healthcare, Nifty MidSmIT&Tel
Calculates performance as the percentage change from the first valid close in the timeframe.
Customizable Display:
Toggle each index on/off via boolean inputs.
Define ticker symbols and colors for each index (e.g., Blue for Nifty 50, Green for Nifty Fin Services).
Colors are preset but editable for clear differentiation.
Labeling:
Displays index name and performance (e.g., "Nifty 50: 12.34%") with transparent labels (no background).
Labels match the plot color and are positioned using a user-defined offset (in bars) to avoid overlap.
Precision and Timeframe:
Shows performance with two decimal places.
Supports custom timeframes (e.g., daily, weekly) for flexible analysis.
Overlay Mode:
Plots performance lines on the price chart for direct comparison with price movements.
Inputs
Label Offset (Bars): Set label position left of the current bar (default: 5, min: 0).
Show : Enable/disable each index’s plot and label.
Ticker : Specify ticker symbols (e.g., NSE:NIFTY).
Color : Choose plot and label colors.
How It Works
Performance Calculation:
Fetches closing prices via request.security for the specified ticker and timeframe.
Captures the first valid close as the starting price.
Computes performance: ((current_price / start_price) - 1) * 100.
Handles invalid data (e.g., na or zero start price) by returning na.
Plotting:
Plots enabled indices with valid performance as lines (linewidth: 1) in user-defined colors.
Labeling:
Creates labels for enabled indices with valid performance at bar_index - label_offset and the performance value.
Labels show the index name and percentage (e.g., "Auto: 5.67%") in the plot’s color, with no background.
Usage
Setup: Apply to a TradingView chart and set the desired timeframe.
Customize:
Enable relevant indices, adjust tickers, and modify colors.
Set Label Offset to position labels clearly.
Analyze:
Compare lines to spot outperforming/underperforming sectors.
Use labels for precise performance values.
Pair with price action or other indicators for trading insights.
Uptrend Filter: Price > 50 & 200 MA + Upward SlopeThis indicator is designed to help traders instantly identify strong uptrend conditions based on two simple yet powerful criteria:
Price is above both the 50-day and 200-day moving averages
Both moving averages are sloping upward (positive momentum)
When both conditions are met, the indicator plots a green “UP” label below the candle, signaling a valid uptrend setup. This filter is ideal for asset selection in strategy-building, portfolio rotation, or trend-following systems.
🧠 Why it works:
The 50-day MA reflects medium-term momentum.
The 200-day MA represents the long-term trend.
When both are aligned and sloping upward, it confirms strong market structure and trend health.
🧰 Best used for:
Token screening (e.g., filtering altcoins)
Momentum-based entries
Trend confirmation
Risk filtering in strategy backtesting
Intraday Trading IndicatorIndicator Overview
Moving Averages: Uses a fast EMA (9-period) and a slow EMA (21-period) to determine the trend direction.
Market Profile Approximation: Utilizes VWAP (Volume Weighted Average Price) as a simplified proxy for value area, acting as a dynamic support/resistance level.
SMC: Incorporates the concept of trend confirmation and price interaction with key levels, focusing on pullbacks to the fast EMA within a trending market.
Signals: Generates buy and sell signals when price crosses the fast EMA, filtered by the trend (fast EMA vs. slow EMA) and VWAP position, aiming for high-probability setups.
This design ensures responsiveness on short timeframes while filtering out noise, aligning with the goal of accurate signals for intraday trading.
Session + FVG + Order Blocks + EMAs1. Overall Purpose
This indicator combines four key functions into one pane to help you:
Highlight major market sessions (Asia, London, New York)
Plot Fair Value Gaps (FVG) and Order Blocks
Display up to four fully customizable Exponential Moving Averages (EMAs)
Shift all times via a configurable UTC offset
Together, these features let you see session activity zones, price imbalances, and underlying trend direction all at a glance.
2. Time Zone
Input: “Time Zone”
Set your chart’s UTC offset (e.g. “UTC+2”) so that each session box aligns with your local clock.
3. Market Sessions
Each session is drawn as a shaded rectangle labeled by name:
Session Default UTC Hours Color Toggle Visibility
Asia 00:00 – 08:15 Light blue fill ☑️ Show Asia session
London 09:00 – 12:00 Light green fill ☑️ Show London session
New York 14:30 – 18:00 Soft red fill ☑️ Show NY session
Enable or disable each session via its checkbox.
Adjust start/end times and the fill color for any session.
Border style and thickness are set in “Box Line Style” and “Box Line Thickness.”
4. Fair Value Gaps & Order Blocks
Controls for identifying imbalances and institutional zones:
Setting Description
Max Blocks Maximum number of gaps/order-blocks to display
Filter Gaps by % Only show gaps larger than this percentage
Lookback Bars How many bars back to scan for gaps and blocks
Bullish OB/FVG Color Fill color for bullish blocks & gaps
Bearish OB/FVG Color Fill color for bearish blocks & gaps
Show Fair Value Gaps Toggle visibility of FVG rectangles
Show Order Blocks Toggle visibility of Order Block rectangles
Fair Value Gaps mark small untraded price areas.
Order Blocks highlight previous zones of major buying or selling.
5. EMAs (Exponential Moving Averages)
Up to four EMAs can be displayed independently:
EMA Enable? Length (periods) Color
EMA 1 ☑️ Show EMA 1 20 Orange
EMA 2 ☑️ Show EMA 2 50 Blue
EMA 3 ☑️ Show EMA 3 100 Green
EMA 4 ☑️ Show EMA 4 200 Red
Tick the box to plot an EMA on your chart.
Change its length to match your strategy’s lookback.
Pick a color that stands out against your background.
6. Recommended Workflow
Set your Time Zone so session boxes align with your local trading hours.
Enable only the sessions you trade (e.g. deselect Asia if you focus on London & NY).
Tweak FVG/Order Block parameters:
Adjust Lookback Bars and Filter Gaps by % to fine-tune the number of zones.
Customize your EMAs (periods and colors) to suit your trend-following or mean-reversion approach.
Combine the layers: watch how price behaves within session boxes, around FVG/Order Blocks, and relative to your EMAs to plan entries and exits.
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.
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.
Guppy Multiple Moving Average (GMMA)The GMMA Momentum Indicator plots 12 EMAs on your chart, divided into two groups:
Short-term EMAs (6 lines, default periods: 3, 5, 8, 10, 12, 15): Represent short-term trader sentiment and momentum.
Long-term EMAs (6 lines, default periods: 30, 35, 40, 45, 50, 60): Reflect long-term investor behavior and broader market trends.
By analyzing the interaction between these two groups, the indicator identifies:
Bullish and bearish trends based on the relative positions of the short- and long-term EMAs.
Momentum strength through the spread or convergence of the EMAs.
Potential reversals or breakouts via compression signals.
This PineScript version enhances the traditional GMMA by adding visual cues like background colors, bearish signals, and compression detection, making it ideal for swing traders seeking clear, actionable insights.
The GMMA Momentum Indicator provides several key features:
1. Trend Identification
Bullish Trend: When the short-term EMAs (green lines) are above the long-term EMAs (blue lines) and spreading apart, it signals strong upward momentum. The chart background turns light green to highlight this condition.
Bearish Trend: When the short-term EMAs cross below the long-term EMAs and converge, it indicates downward momentum. The background turns light red, and an orange downward triangle appears above the bar to mark a new bearish signal.
2. Momentum Analysis
The spread between the short-term EMAs reflects the strength of short-term momentum. A wide spread suggests strong momentum, while a tight grouping indicates weakening momentum or consolidation. Similarly, the long-term EMAs act as dynamic support or resistance, guiding traders on the broader trend.
3. Compression Detection
Compression occurs when both the short-term and long-term EMAs converge, signaling low volatility and a potential breakout or reversal. A yellow upward triangle appears below the bar when compression is detected, alerting traders to watch for price action.
4. Visual Cues
Green short-term EMAs: Show short-term trader activity.
Blue long-term EMAs: Represent long-term investor sentiment.
Background colors: Light green for bullish trends, light red for bearish trends, and transparent for neutral conditions.
Orange downward triangles: Mark new bearish trends.
Yellow upward triangles: Indicate compression, hinting at potential breakouts.
How to Use the GMMA Momentum Indicator for Swing Trading
Swing trading involves capturing price moves over days to weeks, and the GMMA Momentum Indicator is an excellent tool for this strategy. Here’s how to use it effectively:
1. Identifying Trade Entries
Buy Opportunities:
Look for a bullish trend (green background) where the short-term EMAs are above the long-term EMAs and spreading apart, indicating strong momentum.
A compression signal (yellow triangle) followed by a breakout above resistance or a bullish candlestick pattern can confirm an entry.
Example: On a daily chart, if the short-term EMAs cross above the long-term EMAs and the background turns green, consider entering a long position, especially if volume supports the move.
Sell Opportunities:
Watch for a bearish signal (orange downward triangle) or a bearish trend (red background) where the short-term EMAs cross below the long-term EMAs.
Example: If the short-term EMAs collapse below the long-term EMAs and an orange triangle appears, it may signal a shorting opportunity or a time to exit longs.
2. Managing Trades
Use the long-term EMAs as dynamic support (in uptrends) or resistance (in downtrends) to set stop-loss levels or trail stops.
Monitor the spread of the short-term EMAs. A widening spread suggests the trend is strong, while convergence may indicate it’s time to take profits or tighten stops.
3. Anticipating Reversals
Compression signals (yellow triangles) highlight periods of low volatility, often preceding significant price moves. Combine these with price action (e.g., breakouts or reversals) or other indicators (e.g., RSI or volume) for confirmation.
Example: If a compression signal appears near a key support level and the price breaks upward, it could signal the start of a new bullish swing.
4. Best Practices
Timeframes: The indicator works well on daily or 4-hour charts for swing trading, but you can adjust the EMA periods for shorter (e.g., 1-hour) or longer (e.g., weekly) timeframes.
Confirmation: Combine the GMMA with other tools like support/resistance levels, candlestick patterns, or oscillators (e.g., MACD) to reduce false signals.
Risk Management: Always use proper position sizing and stop-losses, as EMAs are lagging indicators and may produce delayed signals in choppy markets.
EMA Cross w/ RSI & Volume Spike (Full Setup)📈 EMA Cross w/ RSI & Volume Spike (Full Setup)
This custom indicator is designed for traders seeking precise buy/sell signals based on a powerful combination of Exponential Moving Averages (EMAs), RSI, and Volume Spikes. It is optimized for both spot and futures trading, especially effective on lower timeframes (like 5m–15m) and swing trading charts.
🔧 Key Features
✅ EMA Stack – Includes 6 EMAs:
Short-Term: EMA 9, 21
Mid-Term: EMA 26, 50
Long-Term: EMA 100, 200
✅ Cross Alerts –
BUY signals: When faster EMAs cross above slower EMAs
SELL signals: When faster EMAs cross below slower EMAs
Covers short-, mid-, and long-term crossovers
✅ Confluence Signals –
BUY+ / SELL+ signals trigger only when an EMA cross is confirmed by:
• RSI (Relative Strength Index) confirmation
• Volume spike above 1.5× 20-period volume average
✅ Visual Markers on Chart –
📗 BUY – Basic EMA cross up
📘 BUY+ – EMA cross + RSI > 50 + volume spike
📕 SELL – Basic EMA cross down
🟧 SELL+ – EMA cross + RSI < 50 + volume spike
✅ Built-in Alerts –
All signal types (BUY, SELL, BUY+, SELL+) can be used with TradingView alerts.
🧠 Best Use Case
This indicator is perfect for:
Scalping (5m / 15m charts)
Spot trading pullbacks
Futures momentum breakouts
Identifying early trend shifts or confirmations
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.
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.