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.
Indicadores e estratégias
Credit Spread Monitor: HY & IG vs US10Y📉 Credit Spread Monitor: HY & IG vs US10Y
This indicator provides a dynamic and visual way to monitor credit spreads relative to the US Treasury benchmark. By comparing High Yield (HY) and Investment Grade (IG) corporate bond yields to the 10-Year US Treasury Yield (US10Y), it helps assess market stress, investor risk appetite, and potential macro turning points.
🔍 What It Does
-Calculates credit spreads:
HY Spread = BAMLH0A0HYM2EY − US10Y
IG Spread = BAMLC0A0CMEY − US10Y
-Detects macro risk regimes using statistical thresholds and yield curve signals:
🔴 HY Spread > +2σ → Potential financial stress
🟠 Inverted Yield Curve + HY Spread > 2% → Recession risk
🟢 HY Spread < 1.5% → Risk-on environment
-Visually highlights conditions with intuitive background colors for fast decision-making.
📊 Data Sources Explained
🔴 High Yield (HY): BAMLH0A0HYM2EY → ICE BofA US High Yield Index Effective Yield
🔵 Investment Grade (IG): BAMLC0A0CMEY → ICE BofA US Corporate Index Effective Yield
⚪ Treasury 10Y: US10Y → 10-Year US Treasury Yield
⚪ Treasury 2Y: US02Y → 2-Year US Treasury Yield (used to detect curve inversion)
✅ This Indicator Is Ideal For:
Macro traders looking to anticipate economic inflection points
Portfolio managers monitoring systemic risk or credit cycles
Fixed-income analysts tracking the cost of corporate borrowing
ETF/Asset allocators identifying shifts between risk-on and risk-off environments
🧠 Why It's Useful
This script helps visualize how tight or loose credit conditions are relative to government benchmarks. Since HY spreads typically widen before major downturns, this tool can provide early warning signals. Similarly, compressed spreads may indicate overheating or complacency in risk markets.
🛠️ Practical Use Case:
You’re managing a multi-asset portfolio. The HY spread jumps above +2σ while the yield curve remains inverted. You decide to reduce exposure to equities and high-yield bonds and rotate into cash or Treasuries as recession risk rises.
📎 Additional Notes
Sourced from FRED (Federal Reserve Economic Data) and TradingView’s bond feeds.
Designed to work best on daily resolution, using open prices to ensure consistency across series with different update timings.
This script is original, not based on built-in or public templates, and intended to offer educational, statistical, and visual insights for serious market participants.
EMA Cloud with Custom MAs and RSI [deepakks444]This all-in-one technical analysis tool merges an EMA Cloud, customizable dual moving averages (MA1 & MA2), and an advanced RSI oscillator with divergence detection, smoothing, and alerts.
Designed for traders who rely on trend direction, momentum, and reversal confluence, this indicator helps filter high-probability setups and reduces the need to juggle multiple indicators on the chart.
🔍 Components and Features
🔸 1. EMA Cloud (Trend Filter)
A lightweight 3-period EMA manually calculated using exponential smoothing.
Two EMAs: One tracking highs and one tracking lows.
Creates a "cloud" between them to visually represent short-term trend direction.
Cloud color logic:
🟢 Green: Price is bullish, staying above the EMA cloud.
🔴 Red: Price is bearish, below the EMA cloud.
🟡 Yellow: Price is indecisive or in consolidation.
Why it's useful:
The EMA Cloud helps identify the immediate short-term bias of the market. It quickly reacts to price and gives a clear visual guide for trend-following or pullback trades.
🔸 2. Custom Moving Averages (MA1 & MA2)
Both MA1 and MA2 are user-configurable in type, length, and price source.
Supported types include:
SMA, EMA, WMA, HMA, RMA, VWMA.
Color logic:
🟩 Green: MA1 is below MA2 (bullish alignment).
🟥 Red: MA1 is above MA2 (bearish alignment).
Why include this?
MA crossovers are a classic way to determine medium/long-term trend shifts or confirm trend continuation. The flexibility allows users to tailor them to suit any strategy—from mean reversion to trend-following.
🔸 3. RSI Oscillator with Enhancements
This is more than a basic RSI—it's been expanded to become a momentum engine and divergence detector, complete with alerting and smoothing options.
Main features:
✅ Customizable RSI Source & Length
✅ Colored RSI Zones:
RSI > 60 → Overbought strength zone (green background).
RSI < 40 → Oversold weakness zone (red background).
Neutral background in between.
✅ Smoothing Options:
Apply additional MA smoothing to RSI: SMA, EMA, WMA, RMA, VWMA, or even SMA + Bollinger Bands.
Visualizes volatility around RSI for breakout/reversal analysis.
✅ RSI Alerts:
Alert when RSI crosses above 60 → potential bullish momentum.
Alert when RSI crosses below 40 → potential bearish momentum.
✅ Divergence Detection (Optional):
Bullish Divergence: Price makes lower low while RSI makes higher low → Possible reversal up.
Bearish Divergence: Price makes higher high while RSI makes lower high → Possible reversal down.
Marks divergence using “Bull” and “Bear” labels directly on the RSI pane.
Why enhance RSI?
The RSI is a cornerstone of momentum trading. By adding zone shading, volatility overlays, and divergence detection, traders can better assess:
Whether a trend is strong or weakening.
Whether to enter on continuation or wait for reversal.
Spot early signs of price turning points using divergence patterns.
🤝 Why Merge These Three Systems?
Combining EMA Cloud + MAs + RSI in a single tool allows traders to:
Avoid conflicting signals by seeing multiple confirmations in one view.
Reduce chart clutter by replacing multiple indicators with one efficient visual system.
Get trend, momentum, and reversal analysis all-in-one:
EMA Cloud = short-term trend.
MA1/MA2 = medium-term trend & crossover confirmation.
RSI = momentum extremes, breakout confirmation, or divergence reversal zones.
🔔 Built-in Alerts
RSI crosses above 60 → Potential buy signal.
RSI crosses below 40 → Potential sell signal.
These alerts can be used to automate notifications, integrate with webhook systems, or trigger manual reviews.
⚠️ Disclaimer
This script is provided for educational and informational purposes only. It is not financial advice, and past performance is not indicative of future results. Always use proper risk management and verify signals with your own analysis before trading.
LANZ Strategy 4.0🔷 LANZ Strategy 4.0 — Trend Impulse Detection with Risk Management
LANZ Strategy 4.0 is a multi-indicator trend strategy designed for short to medium-term trading on any asset or timeframe. It combines Parabolic SAR, Supertrend, ADX, and time zone highlighting to detect and confirm trend impulses, while managing entries with dynamic Stop Loss (SL) and Take Profit (TP) levels.
🧠 Core Components:
Parabolic SAR: Identifies short-term trend reversals.
Supertrend: Highlights trend continuation zones.
ADX Filter: Ensures trend strength by filtering entries when ADX exceeds a defined threshold.
Impulse Detection Logic: Detects and confirms movement impulses with a counter, only generating trade signals on confirmed sequences.
Risk Management: Calculates dynamic SL/TP with a default risk-reward ratio of 1:2, minimum SL of 4 pts, and maximum of 12 pts.
📊 Visual Features:
Trend lines from Supertrend and SAR.
Colored background zones for different sessions (Asia, NY).
Labels and lines for entry, SL, and TP.
Movement number labels help visualize impulse progression.
Alerts when a new impulse is confirmed.
⚙️ How It Works:
The strategy waits for a confirmed impulse (i.e., change in SAR + Supertrend + ADX filter).
Once a valid impulse is confirmed:
A trade signal (BUY/SELL) is shown.
SL and TP levels are calculated and drawn.
The script monitors live price to determine if SL or TP is hit.
Impulse counter advances to label movement progression.
🔔 Alerts:
You will receive an alert each time a new valid impulse is confirmed, indicating a potential trading opportunity.
📝 Notes:
Script is intended for discretionary or assisted trading, not automated execution.
Works best during active sessions with visible trend direction.
You can adjust ATR period, multiplier, SL padding, and impulse thresholds.
Credits:
Developed by LANZ combines established technical indicators and original impulse-count logic.
Gamma + Fibonacci EMA Bands# Gamma + Fibonacci EMA Bands
## Overview
The Gamma + Fibonacci EMA Bands indicator combines two powerful analytical approaches: Gamma-weighted Exponential Moving Averages and Fibonacci sequence-based standard EMAs. This dual system creates a comprehensive "band" structure that helps identify trend direction, strength, and potential reversal zones with greater precision than single moving average systems.
## Features
- **Gamma-weighted EMAs**: Three customizable Gamma EMAs (fast-responding) with adjustable gamma parameters
- **Fibonacci Sequence EMAs**: Six standard EMAs based on the Fibonacci sequence (34, 55, 89, 144, 233, 377)
- **Visual Band Structure**: Color-coded for instant visual analysis
- **Trend Confirmation**: Multiple timeframe validation through varied moving average periods
- **Support/Resistance Identification**: Natural price reaction zones highlighted by EMA confluences
## How It Works
The indicator uses two complementary EMA systems:
1. **Gamma EMAs** (γ-EMAs) - These responsive moving averages use a direct gamma weighting factor (between 0-1) rather than a period length. Lower gamma values create smoother lines, while higher values create more responsive ones. These react quickly to price changes and serve as short-term trend indicators.
2. **Fibonacci EMAs** - These traditional EMAs use period lengths based on the Fibonacci sequence (34, 55, 89, 144, 233, 377). They provide longer-term trend context and naturally identify key support/resistance levels that align with market psychology.
## Interpretation
### Trend Direction
- When price is above all bands: Strong bullish trend
- When price is below all bands: Strong bearish trend
- When price is between bands: Consolidation or trend transition
### Support/Resistance
- Gamma EMAs (purple shades): Short-term dynamic support/resistance
- Fibonacci EMAs (orange/red shades): Stronger, longer-term support/resistance
### Trend Strength
- Wider band separation: Stronger trend momentum
- Compressed bands: Consolidation or trend weakness
### Reversal Signals
- Price breaking through multiple bands: Potential trend reversal
- Gamma EMAs crossing Fibonacci EMAs: Changing momentum
## Settings
- **Source**: Price data source (default: close)
- **Gamma 1**: Fast γ-EMA value (default: 0.2)
- **Gamma 2**: Medium γ-EMA value (default: 0.5)
- **Gamma 3**: Slow γ-EMA value (default: 0.8)
## Notes
This indicator works best on higher timeframes (1H+) and liquid markets. The Gamma-weighted EMAs provide faster signals while the Fibonacci sequence EMAs provide reliable support/resistance levels that often align with key market turning points.
For optimal use, watch for price interaction with these bands and how the bands interact with each other to confirm trend changes before they become obvious to the majority of market participants.
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.
Volume Change % Display1- Current bar's volume change %
2- Previous bar's volume change %
* Each line uses its own color based on volume rising or falling.
* Keeps the layout compact and readable.
Multitimeframe Order Block Finder (Zeiierman)█ Overview
The Multitimeframe Order Block Finder (Zeiierman) is a powerful tool designed to identify potential institutional zones of interest — Order Blocks — across any timeframe, regardless of what chart you're viewing.
Order Blocks are critical supply and demand zones formed by the last opposing candle before an impulsive move. These areas often act as magnets for price and serve as smart-money footprints — ideal for anticipating reversals, retests, or breakouts.
This indicator not only detects such zones in real-time, but also visualizes their mitigation, bull/bear volume pressure, and a smoothed directional trendline based on Order Block behavior.
█ How It Works
The script fetches OHLCV data from your chosen timeframe using request.security() and processes it using strict pattern logic and volume-derived strength conditions. It detects Order Blocks only when the structure aligns with dominant pressure and visually extends valid zones forward for as long as they remain unmitigated.
⚪ Bull/Bear Volume Power Visualization
Each OB includes proportional bars representing estimated buy/sell effort:
Buy Power: % of volume attributed to buyers
Sell Power: % of volume attributed to sellers
This adds a visual, intuitive layer of intent — showing who controlled the price before the OB formed.
⚪ Order Block Trendline (Butterworth Filtered)
A smoothed trendline is derived from the average OB value over time using a two-pole Butterworth low-pass filter. This helps you understand the broader directional pressure:
Trendline up → favor bullish OBs
Trendline down → favor bearish OBs
█ How to Use
⚪ Trade From Order Blocks Like Institutions
Use this tool to find institutional footprints and reaction zones:
Enter at unmitigated OBs
⚪ Volume Power
Volume Pressure Bars inside each OB help you:
Confirm strong buyer/seller dominance
Detect possible traps or exhaustion
Understand how each zone formed
⚪ Find Trend & Pullbacks
The trendline not only helps traders detect the current trend direction, but the built-in trend coloring also highlights potential pullback areas within these trends.
█ Settings
Timeframe – Selects which timeframe to scan for Order Blocks.
Lookback Period – Defines how many bars back are used to detect bullish or bearish momentum shifts.
Sensitivity – When enabled, the indicator uses smoothed price (RMA) with rising/falling logic instead of raw candle closes. This allows more flexible detection of trend shifts and results in more Order Blocks being identified.
Minimum Percent Move – Filters out weak moves. Higher = only strong price shifts.
Mitigated on Mid – OB is removed when price touches its midpoint.
Show OB Table – Displays a panel listing all active (unmitigated) Order Blocks.
Extend Boxes – Controls how far OB boxes stretch into the future.
Show OB Trend – Toggles the trendline derived from Order Block strength.
Passband Ripple (dB) – Controls trendline reactivity. Higher = more sensitive.
Cutoff Frequency – Controls smoothness of trendline (0–0.5). Lower = smoother.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Parsifal.Swing.FlowThe Parsifal.Swing.Flow indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators such as:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module serves as an indicator facilitating judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These oscillations—or swings—within the trend are inherently tradable.
They can be approached:
• One-sidedly, aligning with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions as well.
Note: Mean reversions in strong trends often manifest as sideways consolidations, making one-sided trades more stable.
________________________________________
The Parsifal Swing Suite
The modules aim to provide additional insights into the swing state within a trend and offer various trigger points to assist with entry decisions.
All modules in the suite act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., RSI, which is constrained between 0% and 100%).
________________________________________
The Parsifal.Swing.Flow – Specifics
The Parsifal.Swing.Flow module aggregates price and trading flow data per bin (a "bin" refers to a single candle or time bucket) and smooths this information over recent historical data to reflect ongoing market dynamics.
________________________________________
How Swing.Flow Works
For each bin, individual data points—called "bin-infolets"—are collected. Each infolet reflects the degree and direction of trading flow, offering insight into buying and selling pressure.
The module processes this data in two steps:
1. Aggregation:
All bin-infolet values within a bin are averaged to produce a single bin-flow value.
2. Smoothing:
The resulting bin-flow values are then smoothed across multiple bins, typically using short-term EMAs.
The outcome is a dynamic representation of the current swing state based on recent trading flow activity.
________________________________________
How to Interpret Swing.Flow
• Range-bound but not a true oscillator:
While individual bin-infolets are range-bound, the Swing.Flow indicator itself is not a classical oscillator.
• Overbought/Oversold Signals:
Historically high or low values in Swing.Flow may signal overbought or oversold conditions.
• Chart Representation:
o A fast curve (orange)
o A slow curve (white)
o A shaded background that illustrates overall market state
• Mean Reversion Signals:
Extreme curve values followed by reversals may indicate the onset of a mean reversion in price.
________________________________________
Flow Background Value
The Flow Background Value represents the net state of trading flow:
• > 0 (green shading) → Bullish mode
• < 0 (red shading) → Bearish mode
• The absolute value reflects the confidence level in the current trend direction
________________________________________
How to Use the Parsifal.Swing.Flow
Several change points can act as entry point triggers:
• Fast Trigger:
A change in the slope of the fast signal curve
• Trigger:
The fast line crossing the slow line or a change in the slope of the slow signal
• Slow Trigger:
A change in the sign of the Background Value
These triggers are visualized in the accompanying chart.
Additionally, market highs and lows that align with the swing indicator values can serve as pivot points for the ongoing price process.
________________________________________
As always, this indicator is best used in conjunction with other indicators and market information.
While Parsifal.Swing.Flow offers valuable insight and potential entry points, it does not predict future price action.
Rather, it reflects the most recent market tendencies, and should therefore be applied with discretion.
________________________________________
Extensions
• Aggregation Method:
The current approach—averaging all infolets—can be replaced by alternative weighting schemes, adjusted according to:
o Historical performance
o Relevance of data
o Specific market conditions
• Smoothing Period:
The EMA-based smoothing period can be varied. In general, EMAs can be enhanced to reflect relevance-weighted probability measures, giving greater importance to recent data for a more adaptive and dynamic response.
• Advanced Smoothing:
EMAs can be further extended to include negative weights, similar to wavelet transform techniques, allowing even greater flexibility in smoothing methodologies.
ZenAlgo - AvengerThe ZenAlgo - Avenger indicator provides a multi-layered view of market behavior by combining volume delta analytics, trend-following EMAs, average price comparison, and price-volume profiling into a unified overlay. It is designed to visually assist traders in identifying areas of interest, momentum shifts, and potential reversals using cumulative data from both spot and perpetual markets.
Volume Delta Calculation
This indicator computes delta as the difference between estimated buy and sell volumes using volume data from multiple centralized exchanges. It distinguishes between spot and perpetual volumes, combining them into total volume.
To estimate buying and selling volume from raw volume data, candle structure is broken down into body and wicks. The body is interpreted as the core directional movement (buy/sell), while the wicks are treated as uncertain or counteraction. This segmentation helps infer the likely share of buying and selling within each bar.
The delta is calculated per bar and then aggregated over a lookback period (default 14 bars) to generate a cumulative delta. This approach provides a smoothed value of volume pressure trends over time.
A moving average is applied to the delta values (using selectable MA types like EMA or SMA) to define signal crossovers and suppress noise.
Delta Visualization
To contextualize delta within price action, the delta is scaled dynamically (by ATR or user-defined value) and plotted as a band around the closing price. Positive delta expands upward from price, negative delta downward. This provides a visual overlay that reflects net market pressure in context with price movement.
In cases of extreme delta (threshold set at 80% of recent maximum), the indicator marks spike bars using symbols to indicate significant directional pressure.
Identification of Noteworthy Conditions
The indicator highlights points on the chart where specific conditions are met based on the interaction between volume delta and its moving average. These conditions may align with moments of market pressure imbalance and directional movement, but they are not to be interpreted as trade signals in isolation.
Instead, these chart markers serve as visual flags for potential interest. They are intended to draw the user’s attention to scenarios where:
The delta crosses above or below its moving average, suggesting a potential shift in volume pressure.
The cumulative delta supports the direction of this crossover.
Optional filters can further restrict these markings to periods where:
The short-term trend (as inferred from EMA slope) supports the direction.
Volume is elevated relative to a recent average.
A user-defined cooldown period prevents multiple markings within short succession to avoid clutter.
It is essential to underscore that these markers do not constitute buy or sell advice . Their role is diagnostic , helping the trader to identify potential moments of interest which should be analyzed in conjunction with broader context, such as trend structure, price action, support/resistance levels, or external market data.
EMA Structure
Six EMAs with fixed lengths (13 to 56) are plotted and colored dynamically based on the most recent crossover between the fastest and slowest (EMA1 and EMA6). These EMAs help visualize short- to mid-term trends. The crossover itself is marked with symbols, with vertical offset based on ATR to maintain chart readability.
Average Line (AVG)
The indicator also calculates an average price based on a fixed window (100 bars). This is not a standard moving average but rather a raw average of recent prices stored in a circular buffer. The average is plotted, and its relative distance to the current price is labeled as a percentage. This feature serves as a simplified representation of fair value or mean reversion anchor.
EMA6 vs AVG Cross
Another layer of point of interest detection involves EMA6 crossing the AVG line. This crossover is only considered valid if EMA6 shows slope consistency in the crossing direction. These events are marked using symbols and offset vertically to avoid overlapping price action.
Divergence Detection
The script detects both regular and hidden divergences between price and delta:
Regular divergences are defined when price makes a higher high or lower low, while delta fails to confirm (makes a lower high or higher low).
Hidden divergences occur when price retraces (lower high or higher low), but delta moves against this retracement, indicating underlying strength or weakness.
Divergence points are labeled with "R" (regular) or "H" (hidden) and appear at local pivot highs or lows. The number of visible divergence labels can be limited for chart clarity.
POC and nPOC Calculations
The script includes a simplified volume profile implementation, calculating:
POC (Point of Control): the price level with the highest volume for the given period.
nPOC (non-tested POC): historical POCs that have not yet been revisited by price.
Price levels are bucketed into rows (user-defined), and volume per bucket is tracked to identify the POC. Upon a new period (e.g., day, week), a horizontal POC line is drawn. Once tested by price, the line’s appearance changes (color fades, label shrinks), helping users distinguish between untouched and touched levels.
Limits are enforced on the number of retained POCs and their maximum distance from current bars to optimize performance and chart readability.
Exchange Aggregation
Volume data is aggregated across major exchanges. This ensures that the delta calculation captures a broader market picture beyond a single venue, reducing exchange-specific noise.
How to Interpret Values
Delta Band: Wide bands indicate strong directional imbalance. Narrow bands suggest indecision or low volume.
EMA Crossover Symbols: Appear on directional shifts in moving averages. Multiple EMAs reinforcing the same slope typically indicate stronger trend.
AVG Line: Represents average price over recent history. Large deviations can indicate overextension or potential mean reversion.
Divergences: Regular ones may point to weakening momentum; hidden ones can suggest continuation despite corrective price action.
POC / nPOC: Key volume-based support/resistance levels. Untested nPOCs can act as magnets for price retests.
How to Best Use This Indicator
Use in conjunction with trend context (e.g., higher timeframe EMAs) to avoid counter-trend indications.
Treat delta spikes as caution zones—especially if they occur at known support/resistance.
Watch for divergences as early warning signs before price reverses.
Use POC/nPOC as target levels, especially if aligned with delta signals.
Apply volume and trend filters to reduce noise on shorter timeframes.
Added Value
Multi-exchange volume aggregation makes the delta calculation more robust.
Real-time cumulative delta overlaid directly on the price chart provides immediate context.
Points of interest on chart are conservative and filterable, intended to reduce false positives.
The combination of delta, trend-following EMAs, fair value line, and volume profile data is rarely found in one overlay script.
POC/nPOC visualization based on real traded volume helps identify high-interest zones for future price interaction.
Why Is It Worth Paying For
While free alternatives may provide partial insights (e.g., basic delta or single EMA crossovers), this indicator integrates multiple domains—delta, divergence, average price, trend overlays, and profile levels—into a coherent, optimized chart tool. The value lies not just in having these tools, but in how they are synchronized and visualized.
Furthermore, sourcing and synchronizing volume data from multiple exchanges for delta estimation is not straightforward in Pine Script and adds to the indicator's complexity and utility.
Disclaimers and Limitations
Delta estimation is based on candle structure and assumes wick/body distribution reflects buyer/seller activity, which may not always be precise.
Multi-exchange volume data relies on availability via TradingView’s request.security() function; if exchange data is missing or delayed, results may be incomplete.
Divergences do not guarantee reversals—should be used as part of a broader analysis framework.
On illiquid instruments or exotic pairs, the value of delta and volume-based analytics may be reduced due to unreliable volume.
Parsifal.Swing.RSIThe Parsifal.Swing.RSI indicator is a module within the Parsifal Swing Suite, which includes a set of swing indicators:
• Parsifal Swing TrendScore
• Parsifal Swing Composite
• Parsifal Swing RSI
• Parsifal Swing Flow
Each module facilitates judgment of the current swing state in the underlying market.
________________________________________
Background
Market movements typically follow a time-varying trend channel within which prices oscillate. These swings within the trend are inherently tradable.
They can be approached:
• One-sidedly, in alignment with the trend (generally safer), or
• Two-sidedly, aiming to profit from mean reversions.
Note: In strong trends, mean reversions often appear as sideways consolidations, making one-sided trades more robust.
________________________________________
The Parsifal Swing Suite
The suite provides insights into current swing states and offers various entry point triggers.
All modules act as weak oscillators, meaning they fluctuate within a range but are not bounded like true oscillators (e.g., the RSI, which ranges from 0 to 100%).
________________________________________
The Parsifal.Swing.RSI – Specifics
The Parsifal.Swing.RSI is the simplest module in the suite. It uses variations of the classical RSI, explicitly combining:
• RSI: 14-period RSI of the market
• RSIMA: 14-period EMA of the RSI
• RSI21: 14-period RSI of the 21-period EMA of the market
• RSI21MA: 14-period EMA of RSI21
Component Behavior:
• RSI: Measures overbought/oversold levels but reacts very sensitively to price changes.
• RSIMA: Offers smoother directional signals, making it better for assessing swing continuation. Its slope and sign changes are more reliable indicators than pure RSI readings.
• RSI21: Based on smoothed prices. In strong trends, it reaches higher levels and reacts more smoothly than RSI.
• RSI21MA: Further smooths RSI21, serving as a medium-term swing estimator and a signal line for RSI21.
When RSI21 exceeds RSI, it indicates trend strength.
• In uptrends, RSI21 > RSI, with larger exceedance = stronger trend
• In downtrends, the reverse holds
________________________________________
Indicator Construction
The Swing RSI combines:
• RSI and RSIMA → short-term swings
• RSI21 and RSI21MA → medium-term swings
This results in:
• A fast swing curve, derived from RSI and RSI21
• A slow swing curve, derived from RSIMA and RSI21MA
This setup is smoother than RSI/RSIMA alone but more responsive than using RSI21/RSI21MA alone.
________________________________________
Background Value
The Background Value reflects the overall market state, derived from RSI21:
• > 0: shaded green → bullish mode
• < 0: shaded red → bearish mode
• The absolute value reflects confidence in the current mode
________________________________________
How to Use the Parsifal.Swing.RSI
Several change points can act as entry triggers:
• Fast Trigger: change in slope of the fast signal curve
• Trigger: fast line crossing slow line or change in slow signal's slope
• Slow Trigger: change in sign of the Background Value
Examples of these triggers are shown in the chart.
Additionally, market highs and lows aligned with swing values can serve as pivot points in evolving price movements.
________________________________________
As always, this indicator should be used alongside other tools and information in live trading.
While it provides valuable insights and potential entry points, it does not predict future price action.
It reflects the latest tendencies and should be used judiciously.
Opening Range and Market BoundariesOpening Range and Market Boundaries
This versatile and insightful indicator combines two powerful concepts frequently used by professional traders: Opening Range Analysis and Market Boundaries derived from previous high/low levels. It is specifically designed to support intraday trading strategies and helps you identify key price zones for entries, exits, and breakout confirmations.
🔍 Features & Utility
1. Opening Range Box
What it does:
Highlights the high and low of the first candle after market open (9:15 AM IST) with a shaded box. This box spans the full trading session, from 9:15 AM to 3:30 PM, representing the key price range where the initial balance is formed.
Timeframe Compatibility:
The Opening Range box is optimized for 1-minute to 1-hour charts. It is most effective on lower timeframes (1m, 5m, 15m, 30m) where intraday price movements and breakout patterns can be clearly observed.
Usage Tips:
Breakouts above or below the Opening Range box can signal potential directional bias for the rest of the trading day.
Price consolidating within the range may indicate a choppy or range-bound session.
Works well with volume and momentum indicators for confirmation.
2. Market Boundaries
What it does:
Plots horizontal lines at:
Previous Day High/Low
Previous Week High/Low
Previous Month High/Low
Why it matters:
These levels act as natural support and resistance zones, and are commonly watched by institutional traders, making them crucial for:
Spotting reversals or breakouts
Planning stop-loss and target zones
Avoiding trades around high-rejection areas
Customization Options:
Toggle ON/OFF for Daily, Weekly, and Monthly levels.
Independent colors and line thickness for each level, enabling you to distinguish between different timeframes easily.
🛠️ How to Use Effectively
Use during market open:
Switch to a 5-minute or 15-minute chart during the first few candles of the session. Observe the Opening Range box formation and plan trades based on breakout direction.
Confluence Trading:
Look for price action near previous session highs/lows in confluence with the Opening Range box edges. These intersections often become high-probability zones for breakouts or reversals.
Session Preparation:
Before the market opens, analyze where the price is relative to past high/low boundaries. If it's near a weekly/monthly level, be cautious — those areas can cause whipsaws or false breakouts.
Avoid low-volume breakouts:
Use this indicator in conjunction with volume tools or price action confirmation to validate the strength of a move outside the Opening Range or Market Boundaries.
📌 Summary
This indicator is designed for intraday traders, scalpers, and swing traders who want a reliable structure to guide their decisions. It visually marks the opening balance of the market and essential higher timeframe boundaries, helping you trade with discipline and precision.
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.
BTC Spot/Perp Price DeltaThe indicator gathers price from 3 btc spot pairs (largest by volume) and 3 btc perp pairs (also largest by volume).
The average Spot and Perp prices are then derived.
The indicator plots the price difference between the Spot average and the Perps average (Spot minus Perps).
Green plot above the zero line means Spot price is higher than the Perp price at a candle close - Contango.
Red plot below the zero line means Spot Price is lower than the Perp price at a candle close - Backwardation.
The orange line is the EMA. Default value is 100 periods. Changeable by User.
Use cases:
1. Perp market is way larger than the Spot market, measured by traded Volume. We may say that the Perps market is more "stable", because it is more liquid. When Spot price deviates a lot from the Perps price, in both positive and negative directions, we may expect a mean reversion.
High Green or Red indicator values = expect price reversion.
2. Helps to observe absorption. If the indicator values are high (in both directions), but the price is barely moving, we can come to a conclusion that the opposite side Limit orders are being deployed to absorb Spot market orders.
Typically, this also indicates mean reversion.
3. You are welcome to use the indicator and perhaps find your own use cases.
Any suggestions on how to improve this indicator are welcome.
SMA PLOTS & ANCHORED VWAP & CONSOLIDATION FINDERHi traders,
SMA Plots, Anchored VWAP & Consolidation Finder
This Pine Script indicator combines multiple technical analysis tools to provide traders with a comprehensive view of price trends, volume-weighted price levels, and consolidation periods. It includes Simple Moving Averages (SMAs) for daily and chart timeframes, an Anchored Volume-Weighted Average Price (VWAP) with standard deviation bands, and a consolidation detection system based on Bollinger Bands (BB), Average True Range (ATR), and Relative Strength Index (RSI). Designed for versatility, it caters to both trend-following and range-bound trading strategies.
Indicators and Logic
Simple Moving Averages (SMAs):
Daily SMAs: 50-period and 200-period SMAs are calculated on the daily timeframe, plotted on the chart for trend identification. These are ideal for long-term trend analysis, with the 50-SMA acting as a short-term trend indicator and the 200-SMA as a long-term trend indicator.
Chart SMAs: 50-period and 200-period SMAs are calculated on the current chart timeframe, offering flexibility for intraday or swing trading. These are toggleable and disabled by default to reduce chart clutter.
Labeling: Customizable labels for SMA lines and their values (toggleable) provide clear visual cues, showing the exact price levels of the SMAs on the chart.
Anchored VWAP with Standard Deviation Bands:
The VWAP is anchored to a user-defined date (default: March 20, 2020), calculating the volume-weighted average price from that point. It serves as a dynamic support/resistance level, reflecting the average price traders have paid.
Three standard deviation bands (1σ, 2σ, 3σ) are plotted around the VWAP, helping identify overbought/oversold conditions or potential breakout zones. These bands are toggleable for user convenience.
A 1-period EMA is included (toggleable, disabled by default) for traders who prefer a fast-moving average for short-term price tracking.
Consolidation Detection:
The consolidation finder uses three indicators to identify low-volatility periods, which often precede breakouts:
Bollinger Bands (BB): Measures price range tightness using the BB width (upper band - lower band / SMA). A low BB width (< user-defined threshold) indicates consolidation.
ATR (Average True Range): Assesses volatility as a percentage of the closing price. A low ATR % (< user-defined threshold) confirms reduced market activity.
RSI (Relative Strength Index): A low RSI (< user-defined threshold) suggests weak momentum, typical of consolidation phases.
Two consolidation signals are generated:
New Signal: Detects consolidation if at least a user-defined number of bars (default: 3) within a lookback period (default: 10) meet the criteria.
Standard Signal: Detects instant consolidation based on the current bar’s conditions.
A dynamic table displays historical data (min/max/average) for BB width, ATR %, and RSI within a user-defined date range, aiding in parameter optimization.
Trading Strategies
Trend-Following with SMAs:
Use the 50/200 SMA crossover on the daily timeframe to identify bullish (50 > 200) or bearish (50 < 200) trends.
On the chart timeframe, enable the 50/200 SMAs for shorter-term trend confirmation, aligning trades with the dominant trend.
Example: Enter long positions when the price is above both SMAs and short positions when below, using SMA value labels to confirm price proximity.
Mean-Reversion with Anchored VWAP:
Treat the VWAP as a mean price level. Enter long trades when the price dips to the lower 1σ/2σ bands and short trades when it rises to the upper 1σ/2σ bands, expecting a reversion to the VWAP.
Use the 3σ bands to identify extreme conditions for potential breakout or reversal trades.
Example: If the price touches the lower 2σ band and the RSI is oversold, consider a long trade targeting the VWAP.
Breakout Trading with Consolidation Detection:
Monitor the consolidation signals (new or standard) to identify low-volatility periods. These often precede significant price movements.
Enter breakout trades when the price breaks above/below key levels (e.g., VWAP, SMA, or BB bands) after a consolidation signal.
Example: If the “New Signal” is active and the price breaks above the VWAP with increasing volume, initiate a long trade targeting the upper BB band.
User-Friendly Features
Customizable Inputs: Users can adjust SMA lengths, VWAP anchor date, band multipliers, and consolidation thresholds to suit their trading style.
Toggleable Plots and Labels: Enable/disable SMAs, VWAP bands, EMA, and labels to declutter the chart and focus on relevant data.
Dynamic Table: Displays historical BB width, ATR %, and RSI metrics for the selected date range, helping users fine-tune parameters.
Alert Conditions: Two alert conditions (new and standard consolidation signals) allow users to set notifications for trading opportunities.
Visual Clarity: Color-coded plots (green for bullish, red for bearish) and clear labels enhance readability and decision-making.
How to Use
Add the indicator to your chart and adjust input parameters (e.g., SMA lengths, VWAP anchor date, consolidation thresholds) based on your trading preferences.
Enable/disable plots and labels to customize the chart display.
Monitor the dynamic table for historical data to optimize consolidation detection settings.
Set alerts for consolidation signals to stay informed of potential trading opportunities.
Combine SMA trends, VWAP levels, and consolidation signals to develop a robust trading strategy.
Notes
This indicator is best used in conjunction with other technical/fundamental analysis to confirm signals.
Backtest any strategy thoroughly before live trading, as past performance does not guarantee future results.
The default settings are optimized for general use but may require adjustment for specific markets or timeframes.
Disclaimer
This script is provided for educational purposes and should not be considered financial advice. Always conduct your own research and consult a financial advisor before trading.
Really Key Levels█ OVERVIEW
This indicator shows the most useful and universally used key trading levels (and only those) in a visually appealing way. Its originality lies in the fact that it was developed due to being unable to find an indicator that wasn't cluttered with other features or far less relevant levels, or one that would indicate the bar causing the level (i.e., not just using a horizontal line over the whole chart), or one that was well-programmed and didn’t frequently refresh for many seconds for no obvious reason, taking far too long to do so for such a seemingly simple indicator.
█ FEATURES
Shows the most frequently used key levels in a visually appealing way
Indicates the bar that causes the level, with the line starting at that bar
Works correctly and consistently on both RTH and ETH charts
Lines can be optionally extended both left and right, if the user prefers
Works with US/European stocks and US futures (at least)
Configurable futures regular session (default time is for CME futures, e.g., ES/NQ, etc.)
Users can configure line colour, style, and thickness
Adjustable label locations to prevent overlap with other indicator labels
Nice defaults that look good, and a well-contrasting label text colour
Well-documented, high-quality, open-source code for those who are interested
█ CONCEPTS
The indicator shows the following levels by a line starting at the bar that causes them:
Current Day RTH High/Low (visible and updated only during RTH; visible with no further updates in the post-market)
Current Day RTH Open (only after the RTH open)
Pre-Market High/Low (as it develops in the pre-market and fixed after RTH open)
Previous Day RTH Close
Previous Day RTH High/Low
Previous Day Pre-Market High-Low
Two Days Ago RTH Close
Other levels may be added in future versions, if requested and if they are Really Key Levels.
Regarding futures: despite being a 23-hour market (for CME futures, 5 p.m. the previous day to 4 p.m. the current day), most trading activity takes place together with the RTH on stock exchanges in New York, 08:30 to 3 p.m. Central (Chicago) time. Therefore, a user-configurable regular market is defined at those times, with times before this (from 5 p.m. the previous day) being considered pre-market, and times after this (until 4 p.m.) being considered post-market.
Care was taken so that the code uses no hard-coded time zones, exchanges, or session times. For this reason, it can in principle work globally. However, it very much depends on the information provided by the exchange, which is reflected in built-in Pine Script variables (see Limitations below).
█ LIMITATIONS
Pre-market levels are not shown when viewing an RTH chart.
The indicator was developed and tested on US/European stocks and US futures. It may or may not work for stocks and futures in other countries (depending on their pre- and post-market definitions and what information the exchange provides to TradingView via the relevant built-in Pine Script variable). It does not work on other security types, especially those with a 24-hour market that don't have a uniquely defined daily close, implicit H/L time window, or a pre-market.
ETHBTC Z-ScoreETHBTC Z-Score Indicator
Key Features
Z-Score Calculation: Measures how far ETHBTC deviates from its mean over a user-defined period.
Linear Regression Line: Tracks the trend of the Z-score using least squares regression.
Standard Deviation Bands: Plots ±N standard deviations around the regression line to show expected Z-score range.
Dynamic Thresholds: Highlights overbought (e.g. Z > 1) and oversold (e.g. Z < -2) zones using color and background fill.
Visual & Table Display: Color-coded bars, horizontal level fills, and optional table showing regression formula and R².
Usage
Spot overbought/oversold extremes when Z-score crosses defined thresholds.
Use the regression line as a dynamic baseline and its bands as range boundaries.
Monitor R² to gauge how well the regression line fits the recent Z-score trend.
Example
Z > 1: ETHBTC may be overbought — potential caution or mean-reversion.
Z < -2: ETHBTC may be oversold — possible buying opportunity.
Z near regression line: Price is in line with recent trend.
Adaptive ATR Limits█ OVERVIEW
This indicator plots adaptive ATR limits for intraday trading. A key feature of this indicator, which makes it different from other ATR limit indicators, is that the top and bottom ATR limit lines are always exactly one ATR apart from each other (in "auto" mode; there is also a "basic" mode, which plots the limits in the more traditional way—i.e., one ATR above the low and one ATR below the high at all times—and this can be used for comparison).
█ FEATURES
Provides an algorithm to plot the most reasonable intraday ATR top/bottom limits based on currently available information
Dynamically adapts limits as the price evolves during the day
Works correctly and consistently on both RTH and ETH charts
Has a user-selected ADR mode to base the limits on ADR instead of ATR
Option to include the current pre-market and previous day's post-market range in the calculation
Configurable ATR/ADR averaging length
Provides a visual smoothing option
Provides an information box showing the current numerical ATR/ADR values
Reasonable defaults that work well if the user changes nothing
Well-documented, high-quality, open-source code for those interested
█ HOW TO USE
At a minimum, there is nothing that needs to be set. The defaults work well. The ATR top line (red, configurable) gives you the most reasonable move given the currently available information. The line will move away from the price as the price approaches it; that is normal—it is reacting to new information. This happens until the ATR bottom limit hits the lower of the daily low and the previous day's close (in ATR mode). The ATR bottom line (green, configurable) works the same way, with reversed logic.
There is an option to use ADR instead of ATR. The ATR includes the previous day's RTH close in the range, whereas ADR does not. Another option allows the user to add the current day's pre-market range or the previous day's post-market into the current day's range, which has an effect if either of those went outside of today's RTH range, plus yesterday's RTH close (in the default ATR mode). Pre-market and post-market range is not typically included in the daily true range, so only change it if you really know you want it.
█ CONCEPTS
Most traditional ATR limit indicators plot the top ATR limit one ATR above the current daily low, and the bottom ATR limit one ATR below the current daily high. This indicator can also do that (in "basic" mode), but its value lies in its default "auto" mode, which uses an algorithm to dynamically adapt the ATR limits throughout the day, keeping them one ATR apart at all times. It tries to plot the most sensible ATR limits based on the current daily ATR, in order to provide a reasonable visual intraday target, given the available information at that point in time.
"Auto" mode is actually a weighted average of two methods: midpoint and relative (both of which can also be explicitly selected). The midpoint method places the midpoint of the ATR limit equal to the midpoint of the currently established daily range. The relative method measures the currently established daily range and calculates the position of the current price within it (as a ratio between 0 and 1). It then uses that value as a weight in a weighted average of extreme locations for the ATR limits, which are: the ATR top anchored to one ATR above the daily low, and the ATR bottom anchored to one ATR below the daily high.
The relative method is more advanced and better for most of the day; however, it can cause wild swings in the early market or pre-market before a reasonable range (as a percentage of ATR) has been established. "Auto" mode therefore takes another weighted average between the two methods, with the weight determined by the percentage of the ATR currently established within the day, more strongly weighting the calmer midpoint method before a good range is established. Once the full ATR has been achieved, the algorithm in "auto" mode will have fully switched to the relative method and will remain with that method for the rest of the day.
To explain the effect further, as an example, imagine that the price is approaching the full ATR range on the high side. At this point, the indicator will have almost fully transitioned to the second (relative) method. The lower ATR limit will now be anchored to the daily low as the price hits the upper ATR limit. If the price goes beyond the upper ATR, the lower ATR limit will stay anchored to the daily low, and the upper limit will stay anchored to one ATR above the lower limit. This allows you to see how far the price is going beyond the upper ATR limit. If the price then returns and backs off the upper ATR limit, the lower ATR limit will un-anchor from the daily low (it will actually rise, since the daily ATR range has been exceeded, so the lower ATR limit needs to come up because the actual daily range can’t fit into the ATR range anymore). The overall effect is to give you the best visual indication of where the price is in relation to a possible upper ATR-based target. Reverse this example for when the price low approaches the ATR range on the low side.
Care was taken so that the code uses no hard-coded time zones, exchanges, or session times. For this reason, it can in principle work globally. However, it very much depends on the information provided by the exchange, which is reflected in built-in Pine Script variables (see Limitations below).
█ LIMITATIONS
The indicator was developed for US/European equities and is tested on them only. It is also known to work on US futures; in this case, the whole 23-hour session is used, and the "Sessions to include in range" setting has no effect. It may or may not work as intended on security types and equities/futures for other countries.
CVD Candlestick - Milana TradesThe CVD Candlestick indicator visualizes Cumulative Volume Delta (CVD) in the form of candlesticks, providing a deeper insight into intrabar buying and selling pressure.
Instead of plotting CVD as a simple line, this indicator displays it as a candle chart, allowing traders to analyze the momentum of volume delta just like price action.
How it Works
Delta is calculated as the difference between the bar’s close and open: delta = close - open.
Divergence + ICT-Based Confirmation
This indicator can be used effectively to detect CVD-price divergences, which may signal early signs of weakness in the current trend. When integrated with ICT (Inner Circle Trader) concepts, it becomes a powerful tool for precision-based trading setups.
CVD Divergence Logic:
A bearish divergence occurs when price makes a higher high while CVD makes a lower high — suggesting weakening buyer aggression.
A bullish divergence occurs when price makes a lower low while CVD makes a higher low — signaling potential seller exhaustion.
ICT Confirmation Methods:
After identifying divergence on CVD, traders may look for confirmation using ICT techniques, such as:
1) Liquidity sweeps (e.g. price takes out a prior high/low into a divergence zone)
2) Breaker blocks or order blocks aligning with the divergence area
3) Market structure shifts following divergence
4) Optimal Trade Entry (OTE) levels confluencing with CVD-based signals
Example Setup:
Identify divergence between price and CVD.
Wait for liquidity sweep or market structure break in the same zone.
Confirm entry with lower time frame precision, if needed.
Data Candle
CVD is computed as the cumulative sum of delta over time.
For each bar, a synthetic candlestick is generated based on:
CVD Open = previous CVD value
CVD Close = current CVD value
High/Low = relative range based on Open/Close
Candlestick color indicates whether buyers (green) or sellers (red) dominated the bar.
Note : This implementation uses price-based delta for simplicity and works universally across assets. For bid/ask-based delta, a feed with order book data is required, which is not accessible in Pine Script.
Use Cases
Identify divergences between price and volume delta
Confirm or question breakouts and trend strength
Use in combination with VWAP, volume profile, or liquidity zones
Analyze intrabar sentiment in a candlestick format
Features
CVD represented as full candlesticks
Clear color distinction for delta direction
Works on all symbols and timeframes
Lightweight and responsive
[blackcat] L2 Trend Guard OscillatorOVERVIEW
📊 The L2 Trend Guard Oscillator is a comprehensive technical analysis framework designed specifically to identify market trend reversals using adaptive filtering algorithms that combine price action dynamics with statistical measures of volatility and momentum.
Key Purpose:
Generate reliable early warning signals before major trend changes occur
Provide clear directional bias indicators aligned with institutional investor behavior patterns
Offer risk-managed entry/exit opportunities suitable for various timeframes
TECHNICAL FOUNDATION EXPLAINED
🎓 Core Mechanism Breakdown:
→ Advanced smoothing technique emphasizing recent data points more heavily than older ones
↓ Reduces lag while maintaining signal integrity compared to traditional MA approaches
• Short-term Momentum Assessment:
🔶 Relative strength between closing prices vs lower bounds
• Long-term Directional Bias Analysis:
📈 Extended timeframe comparison generating structural context
• Defense Level Generation:
➜ Protective boundary calculation incorporating EMAs for stability enhancement
PARAMETER CONFIGURATION GUIDE
🔧 Adjustable Settings Explained In Detail:
Timeframe Selection:**
↔ Controls lookback period sensitivity affecting responsiveness
↕ Adjusts reaction speed vs accuracy trade-off dynamically
Weight Factor Specification:**
⚡ Influences emphasis on newer versus historical observations
🎯 Defines key decision-making thresholds clearly
ALGORITHM EXECUTION FLOW
💻 Processing Sequence Overview:
:
→ Gather raw pricing inputs across required periods
↓ Normalize values preparing them for subsequent processing stages
:
✔ Calculate relative strength positions against established ranges
❌ Filter outliers maintaining signal integrity consistently
⟶ Apply dual-pass filtering reducing false signals effectively
➡ Generate actionable trading opportunities systematically
VISUALIZATION ARCHITECTURE
🎨 Display Elements Designated Purpose:
🔵 Primary Indicator Traces:
→ Aqua Trace: Buy/Sell Signal Progression
↑ Red Line: Opposing Force Boundary
🟥 Gray Dashed: Zero Reference Point
🏷️ Label System For Critical Events:
✅ BUY: Bullish Opportunity Markers
❌ SELL: Bearish Setup Validations
STRATEGIC IMPLEMENTATION FRAMEWORK
📋 Practical Deployment Steps:
Initial Integration Protocol:
• Select appropriate timeframe matching strategy objectives
• Configure input parameters aligning with target asset behavior traits
• Conduct thorough backtesting under simulated environments initially
Active Monitoring Procedures:
→ Regular observation of labeled event placements versus actual movements
↓ Track confirmation patterns leading up to signaled opportunities carefully
↑ Evaluate overall framework reliability across different regime types regularly
Execution Guidelines Formulation:
✔ Enter positions only after achieving minimum number of confirming inputs
❌ Avoid isolated occurrences lacking adequate supporting evidence always
➞ Look for convergent factors strengthening conviction before acting decisively
PERFORMANCE OPTIMIZATION TECHNIQUES
🚀 Continuous Improvement Strategies:
Parameter Calibration Approach:
✓ Start testing default suggested configurations thoroughly
↕ Gradually adjust individual components observing outcome changes methodically
✨ Document findings building personalized version profile incrementally
Context Adaptability Methods:
🔄 Add supplementary indicators enhancing overall reliability when needed
🔧 Remove unnecessary complexity layers avoiding confusion/distracted decisions
💫 Incorporate custom rules adapting specific security behaviors effectively
Efficiency Improvement Tactics:
⚙️ Streamline redundant computational routines wherever possible efficiently
♻️ Leverage shared data streams minimizing resource utilization significantly
⏳ Optimize refresh frequencies balancing update speed vs overhead properly
MarketCap_FreeFloatGive you market cap and free float instantly..
Considers TOTAL_SHARES_OUTSTANDING & FLOAT_SHARES_OUTSTANDING
Multiplies by
// Calculate metrics in crores
MarketCap = Outstanding * close
FreeFloat = free_float * close
Values are in INR (Crores)
Breakout Swing High LowThis open-source indicator identifies swing high and swing low breakouts, providing clear visual signals for potential trend entries. It is designed for traders who use price action to spot breakout opportunities in trending markets.
How It Works
Swing Detection: The indicator uses a user-defined lookback period (default: 4 candles) to identify swing highs (peaks) and swing lows (troughs). A swing high is confirmed when a candle's high is higher than the surrounding candles, and a swing low is confirmed when a candle's low is lower.
Breakout Signals: A green triangle below the candle signals a breakout above the most recent swing high, indicating a potential buy opportunity. A red triangle above the candle signals a breakout below the most recent swing low, indicating a potential sell opportunity. Each swing level triggers only one breakout signal to avoid clutter.
Visualization: Swing high levels are drawn as green dashed lines, and swing low levels as red dashed lines, extending 15 candles for clarity. Breakout signals are marked with small triangles.
How to Use
Apply the Indicator: Add the indicator to your TradingView chart.
Adjust Lookback: Set the "Lookback Candles" input (default: 4) to control the sensitivity of swing detection. Smaller values detect shorter-term swings, while larger values identify more significant levels.
Interpret Signals:
Green triangle (below candle): Consider a buy opportunity when price breaks above a swing high.
Red triangle (above candle): Consider a sell opportunity when price breaks below a swing low.
Combine with Other Tools: Use in conjunction with trend indicators (e.g., 50-period EMA) or support/resistance levels to filter signals in trending markets.
Timeframes: Works best on higher timeframes (e.g., 1H, 4H) in trending markets to avoid false breakouts in sideways conditions.
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
[blackcat] L3 Smart Money FlowCOMPREHENSIVE ANALYSIS OF THE L3 SMART MONEY FLOW INDICATOR
🌐 OVERVIEW:
The L3 Smart Money Flow indicator represents a sophisticated multi-dimensional analytics tool combining traditional momentum measurements with advanced institutional investor tracking capabilities. It's particularly effective at identifying large-scale capital movement dynamics that often precede significant price shifts.
Core Objectives:
• Detect subtle but meaningful price action anomalies indicating major player involvement
• Provide clear entry/exit markers based on multiple validated criteria
• Offer risk-managed positioning strategies suitable for various account sizes
• Maintain operational efficiency even during high volatility regimes
THEORETICAL BACKDROP AND METHODOLOGY
🎓 Conceptual Foundation Principles:
Utilizes Time-Varying Moving Averages (TVMA) responding adaptively to changing market states
Implements Extended Smoothing Algorithm (XSA) providing enhanced filtration characteristics
Employs asymmetric weight distribution favoring recent price observations over historical ones
→ Analyzes price-weighted closing prices incorporating volume influence indirectly
← Applies Asymmetric Local Maximum (ALMA) filters generating institution-specific trends
⟸ Combines multiple temporal perspectives producing robust directional assessments
✓ Calculates normalized momentum ratios comparing current state against extended range extremes
✗ Filters out insignificant fluctuations via double-stage verification process
⤾ Generates actionable alerts upon exceeding predefined significance boundaries
CONFIGURABLE PARAMETERS IN DEPTH
⚙️ Input Customization Options Detailed Explanation:
Temporal Resolution Control:
→ TVMA Length Setting:
Minimum value constraint ensuring mathematical validity
Higher numbers increase smoothing effect reducing reaction velocity
Lower intervals enhance responsiveness potentially increasing noise exposure
Validation Threshold Definition:
↓ Bull-Bear Boundary Level:
Establishes fundamental acceptance/rejection zones
Typically set near extreme values reflecting rare occurrence probability
Can be adjusted per instrument liquidity profiles if necessary
ADVANCED ALGORITHMIC PROCEDURES BREAKDOWN
💻 Internal Operation Architecture:
Base Calculations Infrastructure:
☑ Raw Data Preparation and Normalization
☐ High/Low/Closing Aggregation Processes
☒ Range Estimation Algorithms
Intermediate Transform Engine:
📈 Momentum Ratio Computation Workflow
↔ First Pass XSA Application Details
➖ Second Stage Refinement Mechanics
Final Output Synthesis Framework:
➢ Composite Reading Compilation Logic
➣ Validation Status Determination Process
➤ Alert Trigger Decision Making Structure
INTERACTIVE VISUAL INTERFACE COMPONENTS
🎨 User Experience Interface Elements:
🔵 Plotting Series Hierarchy:
→ Primary FundFlow Signal: White trace marking core oscillator progression
↑ Secondary Confirmation Overlay: Orange/Yellow highlighting validation status
🟥 Risk/Reward Boundaries: Aqua line delineating strategic areas requiring attention
🏷️ Interactive Marker System:
✔ "BUY": Green upward-pointing labels denoting confirmed long entries
❌ "SELL": Red downward-facing badges signaling short setups
PRACTICAL APPLICATION STRATEGY GUIDE
📋 Operational Deployment Instructions:
Strategic Planning Initiatives:
• Define precise profit targets considering realistic reward/risk scenarios
→ Set maximum acceptable loss thresholds protecting available resources adequately
↓ Develop contingency plans addressing unexpected adverse developments promptly
Live Trading Engagement Protocols:
→ Maintaining vigilant monitoring of label placement activities continuously
↓ Tracking order fill success rates across implemented grids regularly
↑ Evaluating system effectiveness compared alternative methodologies periodically
Performance Optimization Techniques:
✔ Implement incremental improvements iteratively throughout lifecycle
❌ Eliminate ineffective component variations systematically
⟹ Ensure proportional growth capability matching user needs appropriately
EFFICIENCY ENHANCEMENT APPROACHES
🚀 Ongoing Development Strategy:
Resource Management Focus Areas:
→ Minimizing redundant computation cycles through intelligent caching mechanisms
↓ Leveraging parallel processing capabilities where feasible efficiently
↑ Optimizing storage access patterns improving response times substantially
Scalability Consideration Factors:
✔ Adapting to varying account sizes/market capitalizations seamlessly
❌ Preventing bottlenecks limiting concurrent operation capacity
⟹ Ensuring balanced growth capability matching evolving requirements accurately
Maintenance Routine Establishment:
✓ Regular codebase updates incorporation keeping functionality current
↓ Periodic performance audits conducting verifying continued effectiveness
↑ Documentation refinement updating explaining any material modifications made
SYSTEMATIC RISK CONTROL MECHANISMS
🛡️ Comprehensive Protection Systems:
Position Sizing Governance:
∅ Never exceed predetermined exposure limitations strictly observed
± Scale entries proportionally according to available resources carefully
× Include slippage allowances within planning stages realistically
Emergency Response Procedures:
↩ Well-defined exit strategies including trailing stops activation logic
🌀 Contingency plan formulation covering worst-case scenario contingencies
⇄ Recovery procedure documentation outlining restoration steps methodically