Hybrid Swing/Day Alert System - PLATINUM EditionThis indicator is a complete trading assistant designed for crypto swing and day traders, built to identify high-probability long and short setups based on a multi-confirmation system.
Strategy Logic
The system scans and confirms entries only when 6 major confluences align:
1. EMA Trend: Price is above or below the EMA 9, 21, and 200 (bullish or bearish trend).
2. RSI Zone: RSI(14) is between 40-60 (ideal reversal zone).
3. Volume Confirmation: Volume is declining on pullback and then spikes.
4. Accumulation/Distribution: A/D line rising (for longs) or falling (for shorts).
5. Fibonacci Pullback Zone: Automatic detection of swing high/low and checks if price is inside the golden zone (0.5-0.618).
Built-In Alerts
- Long Setup Confirmed - Short Setup Confirmed - Setup Forming: Monitor
Conclusion
This script is ideal for disciplined traders who value confluence-based entries, risk/reward logic, and trend-aligned trades. Perfect for semi-automated trading via alerts or manual execution.6. Candle Pattern: Bullish (hammer, doji, engulfing) or Bearish (rejection wick, engulfing, doji).
Visual Features
- Long Entry: Green square
- Short Entry: Red triangle
- Pre-Signal Alert: Blue circle (confluence forming)
- Dynamic Table: Displays all 6 confirmations in real time
- Fibonacci Zones: Auto-plotted long/short retracement zones
- Customizable: Turn on/off alerts, overlays, and direction filters
Best Use Cases
- 4H/Daily: Trend confirmation
- 1H: Entry execution
- 15min: Scalping (use cautiously)
- Works great with BTC, ETH, SOL, XAU, and meme coins
Grafik Paternleri
MSTR mNAV IndicatorStrategy mNAV Indicator
Script contains hard-coded historic share counts and BTC holdings of Strategy Inc. ( NASDAQ:MSTR ). Using these, we derived the Bitcoin mNAV multiple for the company. The formula used in this script looks like the following:
mNAV = (Fully Diluted Shares Outstanding * NASDAQ:MSTR ) / (BTC holdings * BITSTAMP:BTCUSD )
This value appears in the Blue tag at the right hand side of the chart on the latest bar. In addition, the script displays mNAV layers below and above the normal ticker chart. These are computed by taking fixing a value for the mNAV (e.g. mNAV=3) and solving the equation above for the NASDAQ:MSTR price that would equate to having that mNAV.
The user is able to configure the number of said mNAV lines to draw but is limited from mNAV = 1 up to mNAV = 20.
Why is the script private?
This script includes data on the relative count of fully diluted shares for Strategy ( NASDAQ:MSTR ) that was manually determined by the author after going through countless hours of SEC disclosures. Since there is no publicly available repository for this information and the author would like to retain the right to make this available at a later date, the script is kept private.
MA Dispersion+MA Dispersion+ — read the “breathing space” between your moving-averages
Get instant feedback on trend strength, volatility expansion and mean-reversion — across any timeframe.
MA Dispersion+ turns the humble moving-average stack into a single, easy-to-read oscillator that tells you at a glance whether price is coiling or fanning out.
🧩 What it does
Plugs into your favourite MA setup
• Pick the classic 5 / 20 / 50 / 200 lengths or disable any combination with one click.
• Choose the MA engine you trust — SMA, EMA, RMA, VWMA or WMA.
• Works on any timeframe thanks to TradingView’s security() engine.
Measures “spread”
For every bar it calculates the absolute distance of each selected MA from their average.
The tighter the stack, the lower the value; the wider the fan, the higher the value.
Adds professional-grade controls
• Weighting — let short-term MAs dominate (Inverse Length), keep everything equal, or dial in your own custom weights.
• Normalisation — convert the raw distance into a percentage of price, ATR multiples, or scale by the MAs’ own mean so you can compare symbols of any price or volatility.
🔍 How traders use it
Trend confirmation – rising dispersion while price breaks out = momentum is genuine.
Volatility squeeze – dispersion parking near zero warns that a big move is loading.
Multi-TF outlook – drop one pane per timeframe (e.g. 5 m, 1 h, 1 D) and see which layer of the market is driving.
Mean-reversion plays – spikes that fade quickly often coincide with exhaustion and snap-backs.
⚙️ Quick-start
Add MA Dispersion+ to your chart.
Set the pane’s timeframe in the first input.
Tick the MA lengths you actually use.
(Optional) Pick a weighting scheme and a normaliser.
Repeat the indicator for as many timeframes as you like — each instance keeps its own settings.
✨ Why you’ll love it
Zero clutter – one orange line tells you what four separate MAs whisper.
Configurable yet bullet-proof – all lengths are hard-coded constants, so Pine never complains.
Context aware – normalisation lets you compare BTC’s $60 000 chaos with EURUSD’s four--decimals calm.
Lightweight – no labels, no drawings, no background processing — perfect for mobile and multi-pane layouts.
Give MA Dispersion+ a try and let your charts breathe — you’ll never look at moving-average ribbons the same way again.
Happy trading!
Buy and Sell Pressure Signals (Clean)This script identifies strong buy and sell pressure based purely on candlestick structure — no indicators, no clutter. It highlights key reversal or momentum candles using minimal visuals:
🔼 Green Triangle (Buy Pressure): A bullish candle with a large body and small upper/lower wicks, indicating strong upward momentum and buyer control.
🔽 Red Triangle (Sell Pressure): A bearish candle with a large body and small wicks, showing strong downward momentum and seller dominance.
Designed for traders who prefer clean, price-action-based signals without text labels or distracting overlays. Ideal for scalping, trend confirmation, or identifying exhaustion zones.
Divergence Macro Sentiment Indicator (DMSI)The Divergence Macro Sentiment Indicator (DMSI)
Think of DMSI as your daily “mood ring” for the markets. It boils down the tug-of-war between growth assets (S&P 500, copper, oil) and safe havens (gold, VIX) into one clear histogram—so you instantly know if the bulls have broad backing or are charging ahead with one foot tied behind.
🔍 What You’re Seeing
Green bars (above zero): Risk-on conviction.
Equities and commodities are rallying while gold and volatility retreat.
Red bars (below zero): Risk-off caution.
Gold or VIX are climbing even as stocks rise—or stocks aren’t fully joined by oil/copper.
Zero line: The line in the sand between “full-steam ahead” and “proceed with care.”
📈 How to Read It
Cross-Zero Signals
Bullish trigger: DMSI flips up through zero after a red stretch → fresh long entries.
Bearish trigger: DMSI tumbles below zero from green territory → tighten stops or go defensive.
Divergence Warnings
If SPX makes new highs but DMSI is rolling over (lower green bars or red), that’s your early red flag—rallies may fizzle.
Strength Confirmation
On pullbacks, only buy dips when DMSI ≥ 0. When DMSI is deeply positive, you can be more aggressive on position size or add leverage.
💡 Trade Guidance & Use Cases
Trend Filter: Only take your S&P or sector-ETF long setups when DMSI is non-negative—avoids hollow rallies.
Macro Pair Trades:
Deep red DMSI: go long gold or gold miners (GLD, GDX).
Strong green DMSI: lean into cyclicals, industrials, even energy names.
Risk Management:
Scale out as DMSI fades into negative territory mid-trade.
Scale in or add to winners when it stays bullish.
Swing Confirmation: Overlay on any oscillator or price-pattern system—accept signals only when the macro tide is flowing in your favour.
🚀 Why It Works
Markets don’t move in a vacuum. When stocks rally but the “real-economy” metals and volatility aren’t cooperating, something’s off under the hood. DMSI catches those cross-asset cracks before price alone can—and gives you an early warning system for smarter entries, tighter risk, and bigger gains when the macro trend really kicks in.
ICT iFVG Detector and Alert [by ote618]Description
This script detects ICT - fair value gaps (FVG) formed by price gaps between Candle 1 and Candle 3, then monitors the next 5 candles for an inverse fair value gap (iFVG).
What It Detects
Bullish FVG: When Candle 1 high is below Candle 3 low (BISI)
Bearish FVG: When Candle 1 low is above Candle 3 high (SIBI)
Once an FVG is detected, the script checks the next 5 candles:
A Bullish FVG becomes a Bearish IFVG if price closes below Candle 1 high
A Bearish FVG becomes a Bullish IFVG if price closes above Candle 1 low
Only the first bar that validates the FVG triggers the transition to an IFVG.
Visual Output
A shaded rectangle is plotted to mark the original FVG zone (from Candle 1 to Candle 3)
Color-coded:
Red for Bearish IFVG (validated Bullish IG)
Green for Bullish IFVG (validated Bearish IG)
The rectangle extends from Candle 1 to the validating bar
Alerts
You can receive alerts when an FVG becomes an IFVG:
Configurable to fire only on selected timeframes (1m, 5m, 15m, 60m)
Alerts include the direction and the chart timeframe
Settings
Enable Alerts For Timeframe: Choose which timeframe(s) trigger alerts
This tool helps traders identify inverse FVGs (iFVG), a useful ICT concept.
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.
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
Antony.N4A - ORB Quartile Strategy vv4 06_30_25📌 Antony.N4A - ORB Quartile Strategy vv4
This script implements a fully automated Opening Range Breakout (ORB) trading strategy, engineered for precision execution within predefined market windows. It is compatible with both New York and London sessions, and integrates advanced internal logic including trend validation, breakout confirmation, position scaling, and risk-defined stop/target management.
🧠 Core Logic Overview:
ORB Range Calculation: Based on configurable session time (default: 09:30–09:45 EST)
Entry Window: Trade initiations are permitted only within a defined intraday range
Trend Validation Filters: Proprietary EMA-based mechanisms to confirm directional bias
Contract Sizing Engine: Dynamically adjusts trade size to respect a per-trade risk ceiling
Risk Parameters: Designed to cap maximum loss per trade at approximately $300–400
🎯 Trade Management Rules:
Entry:
Triggered at the close of a 5-minute candle that confirms a directional breakout of the ORB
Stop Loss:
Enforced via structural breakout invalidation levels (Quartile boundaries and mid-range buffer)
Profit Targeting:
- 75% of position is closed at the first standard deviation (SD1) level
- Remaining 25% is trailed to extended targets, with stop-loss adjusted to breakeven post-partial
No pyramiding, re-entries are limited by cooldown logic and session controls
📊 Backtest Performance (Oct 2024 – Apr 2025):
Total Trades: 36
Win Rate: 64%
Worst Losing Streak: 4 consecutive trades
Worst Month: January 2025 (-1.49R)
Net Performance: +21.5R
Strategy tested on NQ futures with NY session breakout configuration
This strategy is intended for disciplined intraday traders seeking a structured, semi-mechanical approach to volatility expansion. It is best used in high-liquidity markets and news-driven sessions.
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.
SMPivot Gaussian Trend Strategy [Js.K]This open-source strategy combines a Gaussian-weighted moving average with “Smart Money” swing-pivot breaks (BoS = Break-of-Structure) to capture trend continuations and early reversals. It is intended for educational and research purposes only and must not be interpreted as financial advice.
How the logic works
-------------------
1. Gaussian Moving Average (GMA)
• A custom Gaussian kernel (length = 30 by default) smooths price while preserving turning points.
• A second pass (“Smoothed GMA”) further filters noise; only its direction is used for bias.
2. Swing-Pivot detection
• High/Low pivots are found with a symmetric look-back/forward window (Pivot Length = 20).
• The most recent confirmed pivot creates a dynamic structure level (UpdatedHigh / UpdatedLow).
3. Entry rules
Long
• Price closes above the most recent pivot high **and** above Smoothed GMA.
Short
• Price closes below the most recent pivot low **and** below Smoothed GMA.
4. Exit rules
• Fixed stop-loss and take-profit in percent of current price (user-defined).
• Separate parameters and on/off switches for longs and shorts.
5. Visuals
• GMA (dots) and Smoothed GMA (line).
• Structure break lines plus “BoS PH/PL” labels at the midpoint between pivot and break.
Inputs
------
Gaussian
• Gaussian Length (default 30) – smoothing window.
• Gaussian Scatterplot – toggle GMA dots.
Smart-Money Pivot
• Pivot Length (default 20).
• Bull / Bear colors.
Risk settings
• Long / Short enable.
• Individual SL % and TP % (default 1 % SL, 30 % TP).
• Strategy uses percent-of-equity sizing; initial capital defaults to 10 000 USD.
Adjust these to reflect your own account size, realistic commission and slippage.
Best practice & compliance notes
--------------------------------
• Test on a data sample that yields ≥ 100 trades to obtain statistically relevant results.
• Keep risk per trade below 5–10 % of equity; the default values comply with this guideline.
• Explain any custom settings you publish that differ from the defaults.
• Do **not** remove the code header or licence notice (MPL-2.0).
• Include realistic commission and slippage in your back-test before publishing.
• The script does **not** repaint; orders are processed on bar close.
Usage
-----
1. Add the script to any symbol / timeframe; intraday and swing timeframes both work—adjust lengths accordingly.
2. Configure SL/TP and position size to match your personal risk management.
3. Run “List of trades” and the performance summary to evaluate expectancy; forward-test before live use.
Disclaimer
----------
Trading involves substantial risk. Past performance based on back-testing is not necessarily indicative of future results. The author is **not** responsible for any financial losses arising from the use of this script.
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