Anchored PVI + NVIAnchored PVI + NVI is a single-pane indicator that allows the Positive Volume Index (PVI) and Negative Volume Index (NVI) to be plotted together using a period-anchored approach. Crucially, the EMAs for each series are included and remain analytically valid under the anchoring process.
PVI and NVI are cumulative, path dependent indicators. Over long histories, their absolute values become arbitrary and often incomparable when plotted side-by-side . This script addresses that limitation by anchoring each indicator to a user-defined period (daily, weekly, monthly, etc.) and plotting their relative change from that baseline rather than their raw values.
The result is a clean, comparable view that preserves each indicator’s internal structure (trends, inflections, divergences, and EMA relationships) while minimizing scale conflicts.
**What Are PVI and NVI? (Quick Explanation)**
PVI and NVI separate price behavior based on changes in participation, not raw volume flow.
- Positive Volume Index (PVI) updates only on bars where volume increases relative to the prior bar. It tracks price movement during expanding participation, often associated with broad market involvement.
- Negative Volume Index (NVI) updates only on bars where volume decreases relative to the prior bar. It tracks price movement during contracting participation, often associated with quieter or more selective activity.
Both indicators accumulate percentage price changes, but only under their respective volume conditions. Rather than asking “Is volume high or low?” , they ask:
"How does price behave when participation expands versus when it contracts?"
More detailed guidance and interpretation can be found further down the publication description for users unfamiliar with the practical uses of PVI and NVI.
**How The Script Works**
At the start of each selected anchor period, the script records the current PVI and NVI values as baselines. All subsequent values within that period are plotted as changes relative to those baselines:
- Percent mode plots the percentage change from the baseline.
- Absolute mode plots the absolute change from the baseline.
This is not normalization or rescaling. The time-based shape of each series is preserved within the anchor window.
The EMAs are calculated on the original, full-history PVI and NVI series, then transformed using the same anchored reference frame. This faithfully preserves relative positioning between each index and its EMA, EMA slope behavior, and EMA crossover timing.
Optional anchor markers and a zero line help visualize resets and behavior relative to the period’s starting point.
**Advantages vs Using PVI and NVI Separately**
- Faster visual assessment: Participation-conditioned price behavior can be evaluated at a glance without mentally reconciling separate scales or panes.
- Potential for Extended Interpretation: A shared baseline introduces a form of relative comparability that does not exist when the indicators are plotted independently.
- Cleaner workflow: One indicator, one pane, and less chart clutter.
**Conventional Interpretation and Guidance**
Anchored PVI and NVI should be interpreted relative to the zero line, their own EMAs, and each other, always within the context of the current anchor period - NOT across periods.
Values above zero indicate net positive price movement since the anchor began under the indicator’s respective volume condition. Values below zero indicate net negative movement. Because PVI and NVI update under different participation regimes, their behavior provides complementary context rather than redundant confirmation.
When PVI is rising, price progress within the period is occurring primarily during higher-participation sessions. This suggests that movement is being supported by expanding activity. Weakness or flattening in PVI indicates that price is losing traction during high-volume conditions.
When NVI is rising, price persistence is occurring during quieter sessions as participation contracts. This often reflects continuation or structural stability that does not rely on broad engagement. Weakness in NVI indicates that price struggles to hold together as activity declines.
Comparing the two provides insight into participation balance.
- Both rising: broad support across participation regimes
- PVI rising while NVI lags: movement concentrated in higher-participation sessions
- NVI rising while PVI lags: price persistence despite reduced participation
Each index is most commonly interpreted relative to its own 255-period EMA. Holding above the EMA suggests strengthening behavior within that participation regime, while sustained movement below the EMA indicates weakening momentum or transition. NVI in particular is often interpreted such that above-EMA behavior is supportive and below-EMA behavior is cautionary.
Divergence between price and PVI or NVI can highlight changes in participation dynamics that may not yet be reflected in price alone. Divergence between PVI and NVI themselves highlights shifts in how price behaves under expanding versus contracting participation.
These relationships are best used as contextual confirmation rather than as standalone trading signals.
**Extended Interpretation (Exploratory)**
This section is exploratory and should not be interpreted as conventional or widely-accepted guidance.
Anchoring PVI and NVI to a shared baseline introduces a form of relative comparability that does not exist when the indicators are plotted independently.
Within a single anchor period, both PVI and NVI are now expressed as relative change from a common reference point. This makes it possible to observe how the two series interact directly in time.
Index Crossovers (PVI vs. NVI)
Crossovers between anchored PVI and anchored NVI may be interpreted as shifts in dominance between participation regimes within the anchor period.
- PVI crossing above NVI suggests that price progress under expanding participation has overtaken progress under contracting participation since the anchor began.
- NVI crossing above PVI suggests that price persistence during quieter participation has become the dominant contributor within the period.
EMA-to-EMA Structure (PVI EMA vs. NVI EMA)
EMA-to-EMA relationships can further highlight smoother, regime-level tendencies in participation balance. When one EMA persistently leads the other after sufficient post-anchor price action has accumulated, it reflects a sustained bias toward that participation regime within the anchor window. Similarly, EMA crossovers that develop after sufficient post-anchor data may imply a transition in participation balance rather than a reset artifact.
Important Context and Limitations of Extended Interpretation
This form of interpretation is only valid within a single anchor period. Because each anchor resets the baseline, no continuity or meaning should be inferred across different periods.
These interactions should be treated as descriptive of participation balance, not as standalone trade signals. Their value lies in clarifying how price movement is being carried within a defined window, not in predicting future direction.
**Combined Practical Use**
Altogether, this indicator allows participation dynamics to be evaluated at three levels:
1) Instantaneous behavior via the anchored PVI and NVI themselves
2) Structural persistence via each index relative to its own EMA
3) Regime balance via the relative positioning of PVI, NVI, and their EMAs
**Warnings!**
- Percent mode can become visually unstable when baseline PVI or NVI values are near zero due to division effects inherent in percent-change calculations.
**Other Similar Indicators**
My Anchored OBV + A/D script applies the same anchored-period framework to other volume-based indicators.
**Credits**
This script is inspired by Multi-Ticker Anchored Candles (MTAC) by @SamRecio . MTAC's anchored-baseline concept and open-source nature provided an important conceptual foundation for adapting the same idea to PVI and NVI.
Indicateurs et stratégies
SA Range Rank JNJ.WEEK. 1.15.2026Signal Architect™ — Developer Note
Weekly
These daily posts are intentional.
They are not meant to showcase wins, targets, or outcomes.
They are designed to help viewers observe consistency in market behavior—specifically how structure, range, and reaction repeat across different products and timeframes.
The value is not in catching every move.
The value is in knowing when participation is unnecessary or unsupported.
Signal Architect™ tools are built to help traders avoid low-quality decisions, not to encourage constant activity.
________________________________________
What These Posts Are Demonstrating
Over time, if you observe these posts across equities and futures, you’ll begin to notice:
• The same structural traps repeat across different instruments
• The same reactions occur across multiple timeframes
• The same stop-run and absorption behaviors appear regardless of volatility
That repetition is not coincidence.
It reflects how markets consistently behave, even as prices change.
The goal of these posts is to make that behavior familiar—
because familiarity reduces hesitation, overtrading, and unnecessary loss.
Consistency is not the outcome.
Consistency is the environment.
________________________________________
What You’re Seeing (Public View)
These charts display a limited visual preview of tools within the Signal Architect™ framework.
Only visual context is shown.
Core logic, calculations, thresholds, and execution rules are intentionally not disclosed.
The tools emphasize:
• Market structure over prediction
• Environmental awareness over signals
• Risk framing over reward chasing
Nothing shown publicly is meant to tell you what to trade.
It is meant to help you recognize when not to trade.
________________________________________
Why This Matters
Most losses do not come from being wrong on direction.
They come from participating:
• too early
• too late
• during transitions
• inside structural traps
Signal Architect™ tools are designed to filter those moments out.
In many cases, the highest-value action is:
• standing aside
• reducing size
• waiting for clarity
Saving capital is part of execution.
Avoiding a bad trade is often more valuable than finding a good one.
________________________________________
Background & Scope (Context Only)
Over the years, I’ve developed a wide range of systems and analytical tools spanning:
• Equities
• Futures
• Options structure
• Portfolio construction and allocation logic
This includes extensive work on rule-based, tightly controlled frameworks designed to function across changing market conditions.
None of that internal logic is shared publicly.
These posts exist strictly for education, observation, and pattern recognition—not advice, not signals, and not promises.
________________________________________
🤝 For Those Who Find Value
If these daily posts help you see the market more clearly:
• Follow, boost, and share my scripts, Ideas, and MINDS posts
• Feel free to message me directly with questions or build requests
• Constructive feedback and collaboration are always welcome
For traders who want to go deeper, optional memberships may include:
• Additional signal access
• Early previews
• Occasional free tools and upgrades
🔗 Membership & Signals
trianchor.gumroad.com
________________________________________
⚠️ Final Note
Everything published publicly is educational and analytical only.
Markets carry risk.
Discipline, patience, and risk management always come first.
Watch the consistency.
Study the structure.
Let the market repeat itself.
— Signal Architect™
________________________________________
🔗 Personally Developed GPT Tools
• AuctionFlow GPT
chatgpt.com
• Signal Architect™ Gamma Desk – Market Intelligence
chatgpt.com
• Gamma Squeeze Watchtower™
chatgpt.com
Weekly (W) — Strategic Regime / “Where price is allowed to live”
Goal: Identify the dominant direction + structural permission for the entire week(s).
How to use:
• Treat weekly RECLAIM as regime confirmation, not an entry.
• If weekly prints Bull RECLAIM, favor long participation on lower timeframes until weekly invalidates.
• If weekly prints Bear RECLAIM, same idea but short-biased.
Best behavior to look for:
• 1–2 reclaim signals per month/quarter.
• Use it as a “macro gate.”
Recommended settings (starting point):
• dispMult 1.2–1.6
• reclaimWindow 20–40
• cooldown 8–20
🟣 WEEKLY — Macro Regime & Liquidity Clearing
1️⃣ Range Indicator (RI)
• <30 → long-term compression (energy building)
• >70 → macro expansion (trend regime active)
Use:
Defines whether markets are coiling or trending on a multi-month scale.
________________________________________
2️⃣ ZoneEngine (Structure)
• Identifies macro structural bias
• Explains why certain weekly moves fail or accelerate
Use:
Never fight weekly structure. This is your “market weather.”
________________________________________
3️⃣ Cloud / Reclaim (Behavior)
• Clouds classify regime state, not entries
• Reclaims are informational only on weekly
Use:
Helps label the regime: continuation vs transition.
________________________________________
4️⃣ Stop-Hunt Proxy
• Represents large-scale liquidity clearing
• Often tied to:
o fund rebalancing
o regime shifts
o macro events
Use:
Context only. Weekly stop-hunts explain why a regime changed — they are not trades.
srd786-Intraday VWAP Price Action IndicatorDISCLAIMER
This Pine Script indicator does not constitute financial advice; it is just intended for educational and informational purposes. It functions as a tool for technical analysis that could help traders spot possible trading opportunities. It is crucial to remember that participating in financial markets has a number of risks that might result in large losses and are not suitable for all investors.
Users are encouraged to conduct their own thorough investigation and analysis prior to using this indicator. Avoiding trading with money that one cannot afford to lose is essential. It is also advised to seek advice from a certified financial expert. Users must use suitable risk management techniques and recognize that past success does not guarantee future outcomes.
Any losses, damages, or other consequences resulting from the usage of this indicator are not the author's responsibility. The user is ultimately responsible for all trading decisions, therefore using this tool is at their own risk.
INTRODUCTION
The “srd786-Intraday VWAP Price Action Indicator” is a sophisticated Pine Script (version 6) trading tool designed for intraday traders who focus on New York session trading hours. This indicator combines multiple technical analysis concepts including Volume Weighted Average Price (VWAP), Average True Range (ATR) for risk management, swing point detection for support/resistance identification, and momentum analysis through RSI. The primary objective is to generate high-probability long and short signals based on price action confluence with trend, momentum, and key structural levels.
1.
VWAP (Volume Weighted Average Price): Shows the "fair" average price based on both price and trading volume.
2.
ATR (Average True Range): Measures how much the price typically moves each day.
3.
Trend Analysis: Identifies whether the market is going up, down, or sideways.
4.
Momentum Indicators: Shows how strong the current price movement is.
5.
Support & Resistance: Identifies key price levels where the price might stop or reverse.
6.
Swing Points: Finds significant turning points in the price.
This indicator is specifically optimized for the New York trading session (9:30 AM to 4:00 PM ET), making it particularly suitable for traders who focus on US market hours. It provides a complete trading framework that includes not only signal generation but also precise trade management levels including entry prices, stop-loss orders, and profit targets based on a configurable reward-to-risk ratio.
The philosophy behind this indicator is confluence-based trading. Rather than relying on a single indicator or condition, it requires multiple factors to align before generating a trade signal. This approach filters out lower-probability setups and focuses only on high-quality opportunities where price action, trend direction, momentum, and key technical levels all point in the same direction.
CORE CONCEPT AND METHODOLOGY
Volume Weighted Average Price (VWAP)
VWAP is the cornerstone of this indicator's trading methodology. Unlike a simple moving average that treats all price bars equally, VWAP incorporates volume data into its calculation, giving more weight to bars with higher trading volume. This makes VWAP a more accurate representation of the true average price where the most significant trading activity occurred.
The calculation of VWAP is performed using the built-in 'ta.vwap()' function, which computes the cumulative volume-weighted average price from the beginning of the session. For intraday traders, VWAP serves as a critical reference point that indicates whether the current price is trading at a premium (above VWAP) or discount (below VWAP) relative to the session's volume-weighted average.
In this indicator, the VWAP source is configurable through the 'vwapSource' parameter, with the default being HLC3 (High + Low + Close / 3). This source selection allows traders to experiment with different price types such as typical price, weighted close, or even custom sources to suit their trading style and market preferences.
Average True Range (ATR) for Risk Management
The Average True Range, calculated using 'ta.atr()', measures market volatility by decomposing the current range of price movement. ATR does not indicate price direction;
instead, it quantifies the degree of price movement or volatility over a specified period. In this indicator, ATR serves dual purposes: determining the distance for limit orders and calculating stop-loss levels.
The 'atrLength' parameter (default: 14) controls the lookback period for the ATR calculation. A shorter length makes the indicator more responsive to recent volatility, while a longer length provides a smoother average that may be more suitable for less volatile markets. The 'atrMultiplier' (default: 1.5) determines how many ATR units away the stop-loss is placed from the entry price, allowing traders to adjust their risk exposure based on current market conditions.
Swing Detection and Support/Resistance
Swing points represent significant turning points in price action where the market has temporarily exhausted its directional momentum. This indicator uses pivot high and pivot low calculations to identify swing highs and swing lows, which then form the basis for dynamic support and resistance levels.
The 'swingLength' parameter (default: 5) defines how many bars to the left and right of a potential pivot point must be lower (for pivot highs) or higher (for pivot lows) to confirm the swing point. This lookback period helps filter out minor price fluctuations and focuses on more significant structural levels.
Support and resistance levels are stored in arrays ('swingHighArray' and 'SwingLowArray'), with the most recent swing points serving as the primary reference levels. The 'srLookback' parameter (default: 20) controls the overall lookback window and also determines how many
swing points to maintain in each array, ensuring that only relevant historical levels are considered.
Breakout Detection
When a price moves past a major support or resistance level, this is known as a price breakout. This price breakout suggests that there is a possibility of a new trend direction heading forward.Breakout detection eliminates noise, as little price fluctuations or volatility may momentarily drive prices past a threshold without authentic conviction.Detection of breakouts affirms robustness when the price above the threshold by 2%, indicating genuine market interest, and mitigates whipsaws to prevent placing trades based on transient price swings.
The Breakout Tolerance parameter, set by default to 2%, regulates the breakout tolerance for the indicator. A price closure above the current high plus a minor tolerance buffer (usually 2%) indicates a potential continuation of upward movement, classified as a Bullish Breakout. Conversely, when the price closes below the recent low plus a minor tolerance buffer (usually 2%), it suggests that the price may continue to decline, which is classified as a Bearish Breakout Down.
Trend Identification
Trend determination is accomplished through an Exponential Moving Average (EMA) with a configurable length ('trendMaLength', default: 9). The indicator classifies trend into three
states: BULLISH (price above EMA with confirmation from the previous bar), BEARISH (price below EMA with confirmation), and SIDEWAYS (price crossing or near the EMA).
The EMA is chosen over simple moving averages because it responds more quickly to recent price changes while still providing enough smoothing to filter out noise. The confirmation requirement (both current and previous bar must be on the same side of the EMA) reduces false signals during periods of choppy price action.
Momentum Analysis
Momentum is measured using the Relative Strength Index (RSI) with a configurable length ('momentumLength', default: 9). RSI values are categorized into five states to provide nuanced momentum readings: STRONG BULL (RSI above 70), BUILDING (RSI between 55 and 70), NEUTRAL (RSI between 45 and 55), WEAKENING (RSI below 45), and STRONG BEAR (RSI below 30).
This momentum categorization allows traders to distinguish between strong trending conditions (STRONG BULL/BEAR) and transitions (BUILDING/WEAKENING), providing context for trade signals and helping to avoid entering positions during momentum divergences.
CONFIGURATION PARAMETERS
VWAP Settings
The 'vwapSource' parameter determines which price value is used in the VWAP calculation. The default value of 'hlc3' (High + Low + Close / 3) provides a balanced representation of each bar's price action. Traders can modify this to use typical price ('high + low + close / 3'), weighted close ('high + low + close + close / 4'), or other price types depending on their analytical preferences.
ATR Settings
The 'atrLength' parameter sets the lookback period for the Average True Range calculation. The default of 14 periods is standard across most trading platforms and timeframes, providing a good balance between responsiveness and smoothness. The 'atrMultiplier' parameter (default: 1.5) scales the ATR value to determine stop-loss distances. A multiplier of 1.5 means the stop-loss is placed 1.5 ATR units away from the entry price, providing enough buffer to accommodate normal volatility while limiting risk.
Trade Settings
The 'rrRatio' parameter (default: 3.0) establishes the reward-to-risk ratio for trade targets. A ratio of 2.0 means the profit target is twice the distance of the stop-loss from the entry price. The 'limitOrderDistance' parameter (default: 0.5) determines how far below (for long trades)
or above (for short trades) the current close the limit order is placed, measured in ATR units. This allows traders to enter positions at better prices while waiting for pullbacks.
Swing Detection Settings
The 'swingLength' parameter (default: 5) controls pivot identification sensitivity. Higher values identify more significant swing points but may miss shorter-term opportunities. The 'showSwings' boolean parameter toggles the visual display of swing high and low points on the chart.
Support & Resistance Settings
The 'srLookback' parameter (default: 20) defines how many bars back to search for swing points and support/resistance levels. The 'breakoutTolerance' parameter (default: 0.02 or 2%) adds a small buffer to breakout detection to account for minor penetration of support/resistance levels due to price spikes or slippage.
Trend & Momentum Settings
The 'trendMaLength' parameter (default: 9) sets the EMA length for trend determination, while 'momentumLength' (default: 9) sets the RSI lookback period. Both should be at least 5 periods for meaningful calculations.
Table Settings
The 'showTable' parameter (default: true) enables the display of two information tables that provide real-time data on Indicator values and trade levels.
SIGNAL GENERATION LOGIC
Long Signal Conditions
A long signal is generated when all the following conditions are simultaneously true:
1.
Session Filter: The trade must occur during New York session hours (9:30 AM - 4:00 PM ET).
2.
Trend Confirmation: The trend must be BULLISH (price above EMA with confirmation).
3.
Price Position: Current price must be above VWAP, indicating bullish price action.
4.
Breakout or No Resistance: Either price is breaking out above resistance level with tolerance, or there is no prior resistance level to overcome.
5.
Momentum Alignment: Momentum must be either STRONG BULL or BUILDING.
This confluence of conditions ensures that long trades are only taken when the market is trending higher, price is confirming strength by trading above VWAP, and momentum is supportive of continued upward movement.
Short Signal Conditions
A short signal is generated when all the following conditions are simultaneously true:
1.
Session Filter: The trade must occur during New York session hours
2.
Trend Confirmation: The trend must be BEARISH (price below EMA with confirmation)
3.
Price Position: Current price must be below VWAP, indicating bearish price action
4.
Breakout or No Support: Either price is breaking down below support level with tolerance, or there is no prior support level to overcome
5.
Momentum Alignment: Momentum must be either STRONG BEAR or WEAKENING
Similar to long signals, short trades require alignment across multiple timeframes and analytical approaches, filtering out counter-trend trades and focusing on high-probability setups.
TRADE MANAGEMENT FRAMEWORK
Entry Price Calculation
For long trades, the limit order price is calculated as: 'Close - (ATR Value × Limit Order Distance)'. This places the entry price below the current close, allowing traders to buy on dips while maintaining a favorable entry price. For short trades, the limit order is placed above the current close: 'Close + (ATR Value × Limit Order Distance)'.
The limit order distance is expressed in ATR units, making it adaptive to current volatility conditions. In more volatile markets, the limit order will be placed further from the current price, while in calmer markets, it will be closer.
Stop-Loss Placement
Stop-loss levels are calculated using the ATR multiplier to ensure adaptive risk management. For long trades: 'Entry Price - (ATR Value × ATR Multiplier)'. For short trades: 'Entry Price + (ATR Value × ATR Multiplier)'.
This adaptive approach to stop-loss placement means that in volatile markets, stops are wider to avoid being stopped out by normal price fluctuations, while in quieter markets, stops are tighter to limit potential losses. The default multiplier of 1.5 provides approximately 1.5 times the average true range of protection.
Target Price Calculation
Profit targets are determined by the reward-to-risk ratio: 'Entry Price + (ATR Stop Distance × RR Ratio)' for long trades and 'Entry Price - (ATR Stop Distance × RR Ratio)' for short trades. The default ratio of 2.0 means the target is twice the distance of the stop-loss, providing a favorable risk-reward profile.
New York Session Tracking
The indicator includes specialized logic for tracking the New York session open price. When a new NY session begins (determined by the 'isNewNySession' variable), the current open price is recorded and maintained throughout the session. This provides a reference point for measuring intraday directional bias from the session's starting level.
INFORMATION TABLES
Indicators Table
This table displays the current price, VWAP value, NY session open price, support level,resistance level, ATR, ATR-scaled stop distance, current trend classification, momentum state with RSI value, and breakout status. All values are color-coded based on their bullish or bearish implications. The VWAP cell is color-coded green if price is above VWAP (bullish) and red if below (bearish), providing instant visual confirmation of price's position relative to this critical level.
Trade Levels Table
This table shows current signal status (LONG, SHORT, or WAIT), limit order distance in ATR units, calculated limit order price, stop-loss level, and target price with the reward-to-risk ratio displayed. The signal cell is highlighted in green for long signals and red for short signals.
ALERT CONDITIONS
The indicator includes four alert conditions that can be configured in TradingView:
1.
LONG Signal: Triggers when a long signal is generated, providing entry price, stop-loss, and target information.
2.
SHORT Signal: Triggers when a short signal is generated with corresponding trade details.
3.
Breakout Up: Notifies when price breaks out above resistance level.
4.
Breakout Down: Notifies when price breaks down below support level.
These alerts enable traders to receive notifications via TradingView's alert system without continuously monitoring the charts.
USAGE EXAMPLES AND TRADING SCENARIOS
Strong Bullish Trend with VWAP Support
In this scenario, price has been trading above the 9-period EMA for multiple bars, confirming a bullish trend. The current price is above VWAP, indicating buyers are willing to pay a premium. A recent swing low has established a support level, and RSI is reading 65, indicating building momentum without being overextended. When price breaks above the recent swing high resistance with a 2% tolerance, the indicator generates a long signal. The trader places a limit order below the current bar's close (0.5 ATR units) and sets the stop-loss 1.5 ATR units below the entry, with a target 2.0 times the stop distance away.
Short Setup During Volatile Session
During a particularly volatile NY session, price gaps down below VWAP early in the day. The 9-period EMA is declining, and both current and previous bars are below it, confirming a bearish trend. The RSI has dropped to 28, indicating strong bearish momentum. A recent swing high serves as resistance, and when price breaks below the swing low support level, the indicator generates a short signal. The trader enters on a limit order placed 0.5 ATR units above the current price, with the stop-loss 1.5 ATR units above the entry and the target at a 2.0 reward-to-risk ratio.
Avoiding Counter-Trend Trades
Consider a scenario where price is above VWAP and the RSI reads 72 (overbought), but the price is below the 9-period EMA and the previous bar was also below the EMA. In this case, the trend is classified as BEARISH (or SIDEWAYS) despite the bullish price position relative to VWAP. The indicator will not generate a long signal because the trend condition is not met, protecting the trader from what could be a bear trap or continuation pattern.
No Prior Levels Scenario
At the beginning of a trading session or after significant volatility has cleared prior swing points, there may be no established support or resistance levels in the lookback window. In this case, the breakout condition 'or na(resistanceLevel)' allows long signals to be generated without requiring a resistance level to be broken, enabling traders to participate in emerging trends without waiting for prior levels to form.
BEST PRACTICES AND TIPS
Timeframe Selection
This indicator is optimized for intraday timeframes (1-minute to 60-minute charts) and specifically for NY session trading. Higher timeframes may produce more reliable signals but fewer opportunities, while lower timeframes will generate more signals but with potentially lower reliability. Traders should backtest on their preferred timeframe before trading live.
Market Conditions
The indicator performs best in trending markets with clear directional bias. During ranging or sideways markets, the trend condition may oscillate frequently, and VWAP may oscillate around price, reducing signal quality. Consider filtering signals or reducing position size during low-volatility, range-bound conditions.
Parameter Optimization
While the default parameters have been selected for general applicability, traders should consider optimizing certain parameters for specific markets or instruments. For highly volatile instruments like crude oil or natural gas, increasing the 'atrMultiplier' to 2.0 or 2.5 may provide more appropriate risk management. For less volatile instruments like certain forex pairs, reducing the multiplier to 1.0 or 1.2 may improve signal quality.
Multiple Timeframe Analysis
For enhanced performance, traders can analyze the trend on a higher timeframe (such as 15-minute or hourly) while taking signals on a lower timeframe (such as 5-minute or 1-minute). This multi-timeframe approach ensures that signals are aligned with the larger trend direction.
Risk Management
While the indicator provides calculated stop-loss levels, traders should consider their overall position sizing and portfolio risk. The ATR-based stops provide a market-adaptive approach, but individual risk tolerance and account size should ultimately determine position sizing. The 2.0 reward-to-risk ratio is fixed but can be adjusted based on personal preferences or the specific characteristics of the instrument being traded.
INTEGRATION WITH TRADINGVIEW
Adding the Indicator
To add this indicator to a TradingView chart, paste the code into the Pine Script editor and click "Add to Chart." The indicator will appear in the chart's sidebar and begin calculating immediately once sufficient historical data is available.
Configuring Alerts
To set up alerts, right-click on any of the alert conditions in the indicator's settings panel (long signal, short signal, breakout up, or breakout down) and select "Add Alert." Configure the alert frequency and notification methods (push notification, email, webhook, etc.) according to your preferences.
Customization
All input parameters can be adjusted through the indicator's settings panel without modifying the source code. Traders can experiment with different VWAP sources, ATR lengths and multipliers, swing detection parameters, and table display options to suit their trading style and market preferences.
LIMITATIONS AND CONSIDERATIONS
Session Dependency
The indicator is specifically designed for NY session trading and will not generate signals outside these hours. Traders focused on other sessions or 24-hour markets may need to modify the session string to match their trading hours.
Historical Data Requirements
The indicator requires sufficient historical data to accurately calculate swing points and support/resistance levels. On lower timeframe charts with limited history, the initial signals may be less reliable until adequate swing points are identified.
Lag in Swing Detection
By definition, swing points are confirmed after the price has moved away from them, introducing some lag into support/resistance identification. Traders should be aware that the most recent swing point may not be confirmed until several bars after it occurs.
Not Financial Advice
This indicator is a technical analysis tool and should not be construed as financial advice. Traders are responsible for their own research and risk management decisions. Past performance of any trading system does not guarantee future results.
SUMMARY
The code follows a logical flow:
•
Version and Declaration: Pine Script version 6 indicator declaration with overlay enabled
•
Input Parameters: All user-configurable settings grouped by category
•
Session Logic: New York session tracking and open price recording
•
Core Calculations: VWAP, ATR, EMA, RSI, swing points
•
Support/Resistance Logic: Array-based storage and retrieval of swing levels
•
Trend and Momentum Classification: Categorization of current market state
•
Signal Generation: Confluence-based long and short conditions
•
Trade Level Calculations: Entry, stop-loss, and target pricing
•
Visual Plots: Hidden plots for alert data access
•
Information Tables: Real-time display of key values
•
Alert Conditions: Four configurable alert triggers
This structured approach ensures clarity, maintainability, and extensibility for future modifications or enhancements.
Caja TavoStrategy based on "The Box" by Z and Scott
This strategy is based on measuring price volatility one hour before the market opens and half an hour after.
The trade is made in the direction that breaks the upper or lower limits.rior o inferior.
ETH - Log Regression BandsETH – Log Regression Bands: Detailed Description (Math + How to Use)
Overview
This indicator plots a long-term “fair value” growth curve for ETH and surrounds it with multiple upper and lower bands. The goal is to estimate where price sits relative to a long-term trend that is best interpreted in **logarithmic (percentage) terms**, not raw dollars.
The bands create clear zones showing when ETH is historically cheap or expensive relative to that long-term curve.
---
Why use logarithms?
Price action is typically more meaningful in **percentage moves** than in absolute dollar moves.
* A move from $100 → $200 is +100%
* A move from $2000 → $2100 is only +5%
By modelling the natural logarithm of price, multiplicative growth becomes additive. That makes long-term growth easier to model and band spacing more consistent across very different price regimes.
So instead of modelling (P), the indicator models:
---
The growth model: Power-law curve
The indicator uses “time since inception” as the x-axis. However, rather than using time directly, it uses the logarithm of time:
where (t) is the number of days (or bars) since the first data point.
It then fits a straight-line model in log-log space:
Substituting back in:
Exponentiating both sides gives the curve in normal price units:
This is a **power-law** trend curve. It naturally produces a smooth, slowly bending long-term curve similar to the “log regression” curves often seen in macro crypto reports.
---
What “expanding regression” means
The model uses all data available from the beginning of the chart up to the current bar. That means:
* Early in the asset’s history the curve can change more because there are fewer points.
* Over time the curve becomes more stable as more history is included.
Important note: this does **not** repaint past bars. It simply means the current curve will update as new data comes in.
---
Measuring “typical deviation” from the curve (residual volatility)
Once the trend curve is fitted in log space, the indicator measures how far price typically wanders away from it.
At any time point:
* Actual log price is (y = \ln(P))
* Predicted log price from the curve is (\hat{y} = a + b\ln(t))
The **residual** is:
The indicator computes the standard deviation of these residuals:
This (\sigma) is a measure of typical “distance from trend” in log terms.
---
Building the bands (the key idea)
The bands are evenly spaced in **log space** using multiples of (\sigma). A band number (k) is created by shifting the log-trend up or down:
Upper band (k):
Lower band (k):
Where:
* (k) is the band number (1, 2, 3, …)
* (s) is a user-chosen spacing factor (band spacing)
* (\sigma) is the residual standard deviation
Converting back to normal price:
Upper band (k):
Lower band (k):
Why bands look like “translated copies”
Because shifting by a constant in log space equals multiplying by a constant in price space:
So the bands are the same underlying curve scaled up or down by fixed multipliers. That produces the smooth “stacked curve” look associated with macro log regression charts.
---
Optional curve shift (manual adjustment)
A manual offset can be applied in log space. This is useful if you want to align the entire structure slightly higher or lower.
Because the shift is applied to (\ln(P)), this is not an additive dollar adjustment. It scales the entire curve by a constant factor:
* Positive shift → multiplies all bands upward
* Negative shift → multiplies all bands downward
---
How to interpret the zones
The base curve represents a long-term “trend center” in log-growth terms.
* Price near the base curve → near long-term trend
* Price in upper bands → expensive relative to long-term trend
* Price in lower bands → cheap relative to long-term trend
Because the bands are built using residual volatility in log space, “cheap/expensive” is measured in a way that remains meaningful across different eras and price levels.
---
Long-term buy zones (Lower 1 and Lower 2)
**Lower 1** and **Lower 2** are intended as **long-term accumulation zones**.
When ETH trades in these zones, it is significantly below the long-term growth curve in log terms, which typically corresponds to:
* deep bear markets,
* high fear / capitulation phases,
* long accumulation periods.
A simple long-term framework many users apply:
* **Accumulate gradually when price enters Lower 1**
* **Accumulate more aggressively when price enters Lower 2**
* Reduce risk / take profits progressively in higher upper bands
These are not guarantees — they are **statistical “distance from trend” zones**, designed to help structure long-term decisions.
---
## Notes / limitations
* This indicator is a **macro trend tool**, not an intraday trading system.
* The curve is derived from historical behavior; it can shift slowly as new data arrives.
* Extremely new market regimes or structural changes can reduce reliability.
* Use alongside risk management and additional confirmation if trading.
---
Candle Countdown TimerCandle Countdown Timer - Real-Time Bar Close Indicator
Stay ahead of the market with this elegant countdown timer that shows exactly how much time remains until the current candle closes. Perfect for scalpers, day traders, and anyone who needs precise timing for their trading decisions.
✨ Key Features:
Universal Timeframe Support - Automatically adapts to any chart timeframe (1m, 5m, 15m, 1h, 4h, 1D, etc.)
Smart Positioning - Choose between two display modes:
Candle High/Low: Displays above bullish candles, below bearish candles
Current Price: Shows at the closing price level for easy reference
Color-Coded Display - Timer automatically matches your chart's candle colors (green for bullish, red for bearish) for instant visual clarity
Fully Customizable - Adjust font size (8-50), opacity (0-100), and placement to match your trading style and chart setup
Clean, Non-Intrusive Design - Minimal interface that provides critical information without cluttering your chart
📊 Perfect For :
Timing precise entries and exits
Scalping strategies requiring exact candle close timing
Multi-timeframe analysis
Managing time-sensitive trade setups
Avoiding last-second candle close surprises
🎯 How to Use :
Simply add the indicator to your chart and customize the settings to your preference. The countdown automatically updates in real-time, showing hours, minutes, and seconds remaining until the current bar closes.
⚙️ Settings:
Font Size: Numeric input (8-50) for precise size control
Text Opacity: Control visibility from 0 (solid) to 100 (invisible)
Placement: Choose "Candle High/Low" or "Current Price" positioning
💡 Pro Tip:
Use the "Current Price" placement mode when trading on multiple timeframes to keep the countdown at a consistent price level, making it easier to track across different chart configurations.
Multi-Filter Momentum Candle Strategy (Non-Repaint)Momentum Candle Precision Scanner is a price action–based indicator designed to detect high-quality momentum candles after consolidation phases.
It combines candle structure analysis, volume confirmation, ATR control, consolidation filtering, and higher timeframe EMA trend alignment to reduce false signals.
⚠️ This indicator is NOT standalone and MUST be used together with an external RSI indicator.
RSI is intentionally not included in the script to allow traders full flexibility in choosing their preferred RSI settings.
🎯 Purpose
This indicator helps traders:
Identify valid impulsive candles, not just large candles
Avoid entries during sideways or consolidation zones
Trade in alignment with the higher timeframe trend
Improve entry selectivity through a scoring-based validation system
⚙️ Core Logic Explained
1️⃣ Momentum Candle Structure
Candle body must fall within a predefined pip range
Minimum body-to-range ratio is required
Upper and lower wick percentages are strictly limited
This helps filter out candles caused by noise or fake breakouts.
2️⃣ Volume Confirmation
Current volume must be above its moving average
Ensures momentum is supported by market participation
3️⃣ ATR-Based Control
Candle body size is capped using ATR
Prevents signals during abnormal volatility spikes (e.g., news events)
4️⃣ Consolidation Filter (Box & Core Zone)
A dynamic price box is built from recent candles
Signals are ignored inside the core consolidation zone
Focuses entries on breakout or expansion phases
5️⃣ Scoring System
Each candle is evaluated using a weighted score:
Candle body quality
Wick structure
Volume strength
ATR validity
Position relative to consolidation
Signals are triggered only when the minimum score threshold is met.
📈 Trend Filtering (EMA HTF & Current TF)
Higher Timeframe EMA defines the main trend direction
Current Timeframe EMA reflects local momentum
Options available:
Trade with HTF trend only
Or allow counter-trend signals (user controlled)
🚨 Alert Feature
Alerts can trigger minutes before candle close
Designed for traders who wait for near-close confirmation
⚠️ IMPORTANT – RSI IS REQUIRED
This indicator does NOT include RSI internally.
📌 You must add an external RSI indicator and use it as:
Additional momentum confirmation
Overbought / oversold filter
Trend strength validation
👉 General RSI usage example:
Buy setups → RSI above 50 and strengthening
Sell setups → RSI below 50 and weakening
(Users are free to adapt RSI settings to their own strategy.)
🛠️ Recommended Usage
Best suited for M5
Optimized for XAUUSD
Can be adapted to other instruments by adjusting pip size
📌 Disclaimer
This indicator is a technical analysis tool, not a trading system.
No guarantees of profitability. Always apply proper risk management, RSI confirmation, and personal backtesting before live trading.
MRG Session High/LowMRG Session High/Low - Indicator Description
📊 Overview
This Pine Script indicator automatically displays key levels from Asian and London trading sessions on your TradingView chart. It plots the high and low points of each completed session, allowing you to quickly identify important support and resistance zones for your trades.
🎯 Key Features
Detected Sessions (New York Timezone)
Asian Session: 18:00 - 03:00 (6pm - 3am)
London Session: 03:00 - 09:00 (3am - 9.30am)
Plotted Levels
Session High: The highest point reached during the session
Session Low: The lowest point reached during the session
Start Lines: Vertical dashed lines marking the beginning of each session (optional)
⚙️ Customizable Settings
Display Options
✅ Show/hide Asian Session
✅ Show/hide London Session
✅ Show/hide session start lines
Style Options
🎨 Asian Color: Orange by default
🎨 London Color: Blue by default
🎨 Start lines color: Red by default
📏 Line thickness: Adjustable from 1 to 5
🔍 How It Works
Automatic Detection: The indicator automatically detects when a new session begins
Level Calculation: During each session, it continuously records highs and lows
Line Plotting: At the end of each session, it draws two horizontal lines:
One line at the session high level
One line at the session low level
Extension: Lines extend to the right for easy future identification
📈 Strategic Usage
For Breakout Trading
Trade breakouts of Asian and London session highs/lows
Breakouts from these levels often signal the beginning of significant moves
For Support and Resistance
Use these levels as key support and resistance zones
Prices often come back to test these levels during the New York session
For Multi-Timeframe Analysis
Identify consolidation during Asian/London sessions
Anticipate volatility at New York open
💡 Advantages
✨ Clear and automatic visualization of session levels
⏱️ Time-saving: no need to manually draw levels
🎯 Precise levels based on actual highs/lows of each session
🔄 Automatically updates daily
📱 Compatible with all timeframes (recommended: M5, M15, H1)
🎓 Ideal For
Forex traders (especially XAUUSD, EUR/USD, GBP/USD)
Scalpers and day traders
Session breakout strategies
Trading around New York open
Liquidity zone analysis
📌 Important Note
The indicator uses New York timezone (America/New_York) to ensure session time accuracy, regardless of your local timezone.
TTB TD 8 + 9this is my custom TD 8 + 9 , it is pretty solid on 4H + time frames, lower TF can work as well but not as good
SIV Trading LightSmartInVisions Trading Light (SIV Trading Light) is an open-source, multi-factor market regime and trade bias indicator developed by SmartInVisions GmbH.
The indicator combines:
- trend structure (fast/slow MAs + slope)
- momentum (RSI)
- choppiness (ADX)
- volatility risk (ATR%)
- volume participation
- optional higher-timeframe market regime filtering
into a single, easy-to-interpret LONG / NEUTRAL / SHORT bias score.
Built-in Presets
- Day-Trading (USA / Europe)
- Swing-Trading (USA / Europe)
- Investing (USA / Europe)
- Custom mode for advanced experimentation
Key Features
Multi-timeframe regime filter
Two MA overlays (Fast / Slow) with independent EMA / SMA selection
Clear on-chart badge and optional detailed breakdown table
Alert-ready score output
Usage Notes
For stable alerts, use “Once per bar close”
Presets override effective weights and thresholds; timeframes and MA settings remain manual
Credits
- Publisher: SmartInVisions GmbH
- Concept & design: Reiner Ernst (Founder & Managing Director, SmartInVisions GmbH)
- Implementation & iterative development: SmartInVisions GmbH + ChatGPT (OpenAI)
License
Mozilla Public License 2.0 (MPL-2.0)
This indicator is provided for research and educational purposes only.
No financial advice. Use at your own risk.
Today's High Vertical LineThis is just a simple vertical line for the high of the day. I looked high and low for one of these and could not find one, so I created one.
Institutional Scanner FixHere is a professional Pine Script (Version 5) for TradingView. It is optimized to precisely identify the "Absorption" and "Reversal" signals.
What this script does for you:
Auto-Fibonacci: It automatically calculates the 0.618 Golden Ratio of the last 50 candles.
Volume Delta Check: It calculates the delta (buy volume minus sell volume) per candle.
Signal: It marks a "Buy Absorption" when the price touches the 0.618 level but the delta turns positive (green arrow).
The Volume Multiplier is your scanner's "sensitivity knob." It determines how much more volume compared to the average must flow for a signal to be classified as institutionally relevant. Here is the bank standard for calibration, based on your trading strategy and the asset's liquidity:
The rule-of-thumb values for the multiplier
Strategy Type | Recommended Value | Logic
Conservative (High Conviction) | 2.0 to 2.5 | Only extreme volume spikes are marked. Good for swing trades on a daily basis.
Standard (Day Trading) | 1.5 to 1.8 | The "sweet spot." Marks volume that is approximately 50-80% above average.
Aggressive (Scalping) | 1.2 to 1.3 | Reacts very quickly to small order flow changes but produces more "noise" (false signals).
Multi-Timeframe RSI (Daily + Weekly)View the Daily and Weekly RSI together so you see how the oscillate on any timeframe
Toby Crabel's HisVolAs in Linda Raschke's Street smarts..... . This indicator shows the signals of Toby Crabel's Historical Volatility 6/100 strategy. The strategy assumes, that volatility contraction measured by two measures would give better results.
There is one other script that is a strategy , but it assumes that the signal requires both inside bar and narrowest range, what is not as in Linda Raschke's.
The strategy and what does the script do:
1) measures short-term unannualized volatility (by default six), long term uannualized volatility (by default 100), and measures the ratio of short volatility / long volatility.
2) checks if the current bar is an inside bar or has narrowest range out of last X bar (by default 4), or both,
3) puts an etiquette if short volatility / long volatility is equal to or smaller than 0,5 AND the day is inside bar, has narrowest range, or both.
Next day both buy-stop and sell-stop should be set. Buy-stop at the high and sell-stop at the low of the bar with etiquette.
This is by no means any financial advice, nor the historical results guarantee future gain.
Volatility Cluster Trend.VCT - Volatility Cluster Trend
What it does
This indicator groups market volatility into 3 zones (low, medium, high) using a clustering method. Then it picks the right zone for current conditions and draws a trend line that adapts automatically.
Green line below price = uptrend
Red line above price = downtrend
Triangles show when trend flips.
How to add it
Open TradingView
Click "Indicators" at top (or press /)
Go to "My Scripts" tab
Find "VCT - Volatility Cluster Trend"
Click it
If you haven't saved it yet:
Open Pine Editor (bottom panel)
Paste the code
Click "Add to Chart"
Settings
ATR Length - how smooth the volatility reading is. Default 10 works fine. Go higher for less noise.
Factor - how far the line sits from price. Higher = wider stops, fewer signals. Lower = tighter, more signals. Default 3 is balanced.
Lookback Period - how much history to analyze for clustering. 100 bars is good for most timeframes.
Colors - pick what you like.
How to trade it
Long
Wait for green triangle
Price should be above the green line
Enter on next candle or pullback to line
Short
Wait for red triangle
Price should be below red line
Enter on next candle or pullback to line
Stop loss
Put it on the other side of the line
If long, stop goes just below green line
If short, stop goes just above red line
Exit
When opposite signal appears
Or trail your stop along the line
Tips
Works best on trending markets
Choppy sideways = lots of false signals
Higher timeframes (4h, daily) give cleaner signals
Combine with support/resistance for better entries
Don't chase - wait for pullbacks to the line
Alerts
Right click the indicator > Add Alert
Two options:
"Buy Signal" - alerts on green triangles
"Sell Signal" - alerts on red triangles
Set to "Once Per Bar Close" to avoid fake signals.
Stop lossHi all!
This simple indicator will alert you when a price limit is reached (stop loss). I've created this indicator out of 2 reasons:
1. My broker only lets me to set a stop loss limit until a certain time. The time is a couple of months forward in time, but with a Tradingview plan that lets you set open-ended alerts this can alert you later than that.
2. I would like a stop loss on closing price only. This will not get you stopped out by a wick, but needing a 'close' price to be equal or below (for long trades) or equal or above (for short trades).
So this indicator will alert you when your stop to is hit and exit with a 'runtime.error' on the tick after the alert. It won't give you any good looking visuals, just a red line of your chosen stop loss price. Set it in the settings or click '...'->'Reset points...' and drag the line to your desired limit price. Also choose if your trade direction is long or short and if the bar that enters below/above your stop loss needs to be closed.
Note that there's a limitation depending on your style of trading (short term or long term) and if your Tradingview subscription provides live data or not. Also this will only alert you, not buy (for short trades) or sell (for long trades) your contracts when the stop loss is hit.
Best of trading luck!
Apex-Wallet - Risk & Reward Calc (Futures/Prop-Firm)Overview The Apex Risk & Reward Calc is a specialized utility tool designed for Futures traders, particularly those working with Prop Firms (Apex, MyFundedFutures, etc.). It eliminates the need for manual calculations by providing an instant, clear visualization of your Risk/Reward parameters directly on the chart.
How it works Trading Futures (ES, NQ, MES, MNQ) requires knowing exactly how many ticks correspond to your financial target. This script automatically detects the active instrument and calculates the precise number of ticks needed for both your Take Profit (TP) and Stop Loss (SL) based on your desired cash outcome and chosen ratio.
Key Features:
Automatic Ticker Recognition: Supports ES, NQ, MES, and MNQ with built-in tick values.
Cash-Based Planning: Enter your desired profit in dollars (e.g., $50), and the script tells you the required tick move.
Dynamic Ratio Selection: Choose from 9 different R:R ratios (from 1/5 to 5/1) to instantly see the impact on your Stop Loss.
Compact Professional UI: A clean, 3-column dashboard at the bottom-right of your screen showing active lots, ticks, and gross cash values.
Trading Application Perfect for intraday scalpers who need to set their ATM strategies in platforms like Tradovate or NinjaTrader. It ensures your execution remains consistent with your risk management plan.
Reversal Trading ChecklistUse to grade your reversal trades before execution.
Middle Half of hour refers to :15ish-:45ish when reversals are higher probability. After :45-:15 reversals have lower chance of occurring. Not a super highly weighted item but it will help.
Matrix Panel + VPThis is the indicator for identifying SL levels
It also provides Information about turnover
ApexTrend Lite
ApexTrend Lite is a directional trend band indicator designed to show market structure, trend direction, and volatility in a simple visual form.
The indicator plots a single adaptive band that changes position based on trend conditions. In bullish markets, the band appears below price. In bearish markets, the band appears above price. During sideways or low-strength conditions, the band compresses near the trend average.
The band automatically expands when volatility and trend strength increase and contracts when conditions weaken. Color intensity reflects trend strength, helping distinguish strong trends from weak or choppy periods.
The band is anchored to candle extremes, ensuring it hugs price without gaps and accurately represents market structure. ApexTrend Lite does not repaint and works across all asset classes, including equities, indices, and commodities.
This is the Lite version focused on clean visual trend context






















