Gridbot Ping Pong🏓 Gridbot Ping Pong is a dynamic grid bot indicator that generates buy and sell signals as price oscillates between automatically calculated support and resistance levels. The grid adapts to trending markets through adjustable tilt and anchor parameters, which control the grid slope and shift resistance respectively. Entry signals trigger when price touches grid levels, while take profit and stop signals manage position exits. Unlike traditional grid bots that require horizontal ranges, this indicator maintains its oscillation zone as price trends by tilting and shifting the grid structure to follow momentum. The grid bot approach aims to accumulate gains through frequent touches across multiple grid levels rather than seeking large directional moves. Like a ping pong ball in motion, price oscillates between grid levels — each touch generates a signal.
⚡ THEORY & CONCEPTS ⚡
Grid trading is a systematic approach that places buy and sell orders at predetermined price intervals, creating a grid of orders above and below a set price level. In ranging markets, this method capitalizes on natural price oscillations by buying at lower grid levels and selling at higher ones. Each completed round trip between levels represents a captured opportunity, and the frequency of these oscillations determines the grid's effectiveness. Traditional grid bots excel when price remains within the defined range, methodically accumulating gains as price bounces between levels.
However, traditional grid structures face significant challenges when markets begin to trend. Fixed horizontal levels that performed well during consolidation become liabilities during directional moves. An uptrend leaves buy orders unfilled while sell orders trigger prematurely, and a downtrend creates the opposite problem. Extended trends can result in accumulated positions at increasingly unfavorable prices, with no mechanism to adapt to the new market reality. The static nature of traditional grids assumes markets will return to the mean, yet sustained breakouts regularly invalidate this assumption.
Gridbot Ping Pong addresses these limitations through dynamic grid adaptation. The tilt parameter angles the grid in the direction of the prevailing trend, aligning support and resistance levels with market momentum rather than fighting against it. The anchor parameter creates buffer zones beyond the outer grid boundaries, requiring price to demonstrate conviction before triggering a grid shift. When price breaks through these buffers, the entire grid recenters to the new price level. This combination of tilting grids and controlled shifting allows the indicator to maintain grid trading mechanics while acknowledging that markets trend.
The grid adapts through a downtrend and early reversal. Entry signals (▲▼), take profit signals (△▽), and grid shifts demonstrate the ping pong sequence as price oscillates between levels.
The grid structure consists of five levels: two potential support levels below, a center base price, and two potential resistance levels above. These levels are calculated as percentage intervals from a dynamic base price, with the spacing parameter determining the distance between each level. Trend direction is derived from consecutive grid shifts, where multiple shifts in the same direction confirm momentum. The grid restricts entries to the trend direction — buy signals in uptrends, sell signals in downtrends — while counter-trend signals convert to exits when appropriate.
Full market cycle demonstrating grid adaptation through rally, reversal, decline, and recovery. Buy signals dominate during uptrends, sell signals during downtrends, with take profits at boundaries throughout. Two stop signals mark the trend reversals.
Tilt
The tilt mechanic introduces slope to the grid structure based on trend direction and momentum. When consecutive shifts occur in the same direction, the tilt increases, creating a steeper grid that tracks with the trend. As the trend progresses, support levels rise with it — buy signals trigger on pullbacks to these rising levels rather than static levels abandoned by price. Similarly, resistance levels fall during downtrends, keeping sell signals relevant to current price action. If the trend reverses and shifts occur in the opposite direction, the tilt resets and begins building in the new direction. The tilt strength parameter controls how aggressively the grid slopes, with higher values producing steeper angles. Negative tilt values invert this relationship, angling the grid against the prevailing momentum rather than with it. This counter-trend configuration positions support levels lower during uptrends and resistance levels higher during downtrends, favoring mean reversion entries that anticipate pullbacks rather than continuation.
Negative tilt applied during an uptrend. Despite the bullish price action from late November through December, the grids slope downward, positioning buy signals at deeper support levels. Take profit signals appear at resistance as price reaches the upper grid boundaries before pulling back. The counter-trend configuration captures oscillations within the rising market rather than chasing momentum.
Anchor
The anchor mechanic provides resistance to grid shifting. Buffer zones extend beyond the outer grid boundaries, requiring price to demonstrate conviction before triggering a shift. Higher anchor values create larger buffers, requiring more significant price movement. As consecutive shifts confirm a trend, the pro-trend buffer shrinks, allowing the grid to follow momentum with increasing ease. This lets the indicator commit to established trends while resisting premature shifts during consolidations. Tilt and anchor work in complementary tension: tilt rewards momentum by angling the grid, while anchor resists excessive shifting by requiring price conviction to recenter. When price breaks through these buffers, the entire grid recenters to the new price level and play continues on a fresh table.
Steady uptrend with minimal tilt. The flat grid segments demonstrate that shifting alone keeps the grid aligned with price action. Buy signals (▲) and take profit signals (▽) alternate as price bounces between levels, accumulating gains through repetition across the entire move.
Sustained uptrend from June through September. The grid follows the trend with increasing ease as consecutive shifts reduce the pro-trend buffer. The October consolidation eventually triggers a downward shift and stop signal, but the system adapts to the renewed uptrend in November with fresh entry signals.
Signal Generation
The indicator generates three signal types. Entry signals (▲▼) trigger when price reaches a grid level in the direction of the trend, initiating a new position. Take profit signals (△▽) trigger when price reaches a grid level against the trend direction while a position is held, capturing gains as the rally continues. Stop signals (⦿) trigger when a grid shift occurs while holding a position adverse to the new shift direction. The ball goes off the table.
Trend reversal from bearish to bullish. The grid follows the downtrend through November with consecutive sell signals. A stop signal (⦿) triggers at the bottom as the grid shifts adversely against the held position. The system resets and adapts to the emerging uptrend in December, generating fresh buy signals as the new direction establishes.
Trigger Options
The signal trigger determines what price data the indicator uses to detect grid touches, balancing responsiveness against confirmation.
Auto : The default setting, using wick-based detection for pro-trend signals and close-based detection for counter-trend signals. This balances responsiveness when entering with the trend against confirmation when signaling against it.
Wick Touch : Generates signals in real-time when the high or low touches a grid level, providing the fastest response to price interaction.
Wick Reverse : Requires the wick to cross through the grid level from the previous bar, confirming the touch before signaling.
SWMA : Uses a Symmetrically Weighted Moving Average as the trigger source, generating signals only when the smoothed price crosses grid levels.
Close : Uses the bar's closing price as the trigger source, providing confirmed signals after each bar completes.
Symmetrically Weighted Moving Average (SWMA) trigger during a trend reversal. The smoothed price line filters intrabar noise, generating signals only when the SWMA crosses grid levels rather than reacting to wick touches. The grid follows the downtrend through November, resets at the bottom, and adapts to the emerging uptrend in December.
Signal Safeguards
The indicator includes built-in protections to reduce overtrading and mitigate risk, keeping the ball in play longer:
Boundary Protection : New entries are blocked at the outermost grid levels where breakout risk is highest. Exits remain permitted at these boundaries.
Signal Spacing : Signals maintain one-level separation from the most recent signal, preventing clusters of entries at similar prices.
Trend Alignment : When conflicting conditions arise, signals align with the prevailing trend direction rather than fighting momentum.
Automatic Profit Taking : Counter-trend interactions convert to take profit signals when a position is held, capturing gains rather than reversing exposure.
Adverse Shift Stops : When the grid shifts against a held position, a stop signal triggers to exit before further adverse movement.
Cautious Breakout Entries : On the first shift in a new direction, entries are restricted to favorable grid levels until the trend confirms through consecutive shifts.
Shift Resistance : Counter-trend shifts always require full buffer conviction, while pro-trend shifts become easier only after the trend is confirmed.
🛠️ CONFIGURATION & SETTINGS 🛠️
Core Parameters
SPACING (%) : Sets the percentage distance between grid levels. Higher values create wider grids with more room between signals, lower values create tighter grids with more frequent signal opportunities.
TRIGGER : Selects the price source for signal detection. See Trigger Options above.
TILT : Controls the grid slope factor in the trend direction.
ANCHOR : Controls resistance to grid shifting.
Visual Settings
GRIDS : Sets the colors for support (lower) and resistance (upper) grid levels.
FILL : Sets the gradient fill colors between the price line and outer grid boundaries.
SWMA : Sets the color of the Symmetrically Weighted Moving Average line.
🏓 PLAYING GRIDBOT PING PONG 🏓
⚪The objective is not to predict where price will go, but to be present at each level when it arrives.
⚪Each touch at a boundary counts. Gains accumulate through repetition, not single swings.
⚪The rally continues until it doesn't. When the ball goes off the table, the game resets.
⚪The grid creates boundaries where price bounces back and forth. The table is set — the ball does the work.
⚪Price oscillates between defined levels. The grid is the table. Everything else is just ping pong.
Tennis is a form of ping pong. In fact, tennis is ping pong played while standing on the table. In fact, all racquet games are nothing but derivatives of ping pong. — George Carlin
⚠️ DISCLAIMER ⚠️
The Gridbot Ping Pong indicator is a visual analysis tool designed to illustrate grid trading concepts and serve as a framework for understanding grid bot mechanics. While the indicator generates entry, exit, and stop signals, no guarantee is made regarding the profitability of these signals. Like all technical indicators, the grid levels and signals generated by this tool may appear to align with favorable trading opportunities in hindsight. However, these signals are not intended as standalone recommendations for trading decisions. This indicator is intended for educational and analytical purposes, complementing other tools and methods of market analysis.
🧠 BEYOND THE CODE 🧠
Gridbot Ping Pong is part of the Grid Bot Series, building on the concepts introduced in the Grid Bot Simulator , Grid Bot Auto , and Grid Bot Parabolic indicators. While those tools established the foundation for grid-based analysis, this indicator introduces dynamic tilt and anchor mechanics that adapt to trending market conditions.
This indicator shares the same educational philosophy as the Fibonacci Time-Price Zones and the Fibonacci Geometry Series - providing frameworks for understanding market concepts through visualization and experimentation rather than black-box signals.
The Gridbot Ping Pong indicator, like other xxattaxx indicators , is designed to encourage both education and community engagement. Feedback and insights are invaluable to refining and enhancing this tool. We look forward to the creative applications, observations, and discussions this indicator inspires within the trading community.
Analyse de la tendance
Uptrick: Price Memory TrendIntroduction
Uptrick: Price Memory Trend is a custom indicator designed to detect directional shifts and volatility changes using a non-traditional price memory approach. Unlike moving average systems, it builds a dynamic memory of price that adapts gradually over time, allowing it to detect significant deviations and trend transitions with reduced noise.
Overview
This script identifies trend changes by comparing the current price to a memory-based baseline. When price deviates significantly from this memory base, it triggers a trend regime shift—either bullish or bearish. Adaptive deviation bands are calculated using absolute deviation from the memory base, not ATR or standard deviation, which allows the indicator to capture volatility uniquely. Visual components include color-coded candles, labeled signals, optional bands, and a live status table summarizing current trend metrics.
Originality
The indicator’s core innovation lies in its use of a decaying memory function to track trend direction, replacing moving averages with a price memory that responds only to significant deviations. This method avoids lag typically associated with smoothing techniques, enabling timely trend detection. Furthermore, deviation is measured directly in price terms, rather than through volatility surrogates like ATR or Bollinger Bands, resulting in a more raw and responsive depiction of price behavior.
Inputs
Core Engine
Memory Strength: Sets how strongly the memory responds to price changes. Higher values make the memory base more reactive.
Memory Decay: Controls how much past memory is retained. Lower values weight new prices more heavily.
Deviation Length: Length of the EMA used to smooth absolute price deviation. A longer setting results in smoother bands.
Band Multiplier: Expands or contracts the dynamic bands. Higher values widen the bands, reducing sensitivity.
Customization
Color Palette: Selects one of six predefined color schemes for bull and bear visuals.
Show Bands: Enables or disables the display of deviation bands.
Look: Chooses between 'Bands', 'Trail', or 'Intense' styles, affecting how bands and fills are drawn.
Bands
Trail
Intense
Show Info Table: Toggles display of the real-time trend and volatility status panel.
Table Position: Determines which corner of the chart the info panel appears in.
Text Size: Adjusts font size used within the info table.
Features
Trend Detection
Bullish Shift: Triggered when price crosses above the upper band, entering a new bullish regime.
Bearish Shift: Triggered when price crosses below the lower band, entering a new bearish regime.
Trend state is persistent and updated only on confirmed transitions, avoiding repeated entries in the same direction.
Candle Coloring
Candles are dynamically recolored based on current trend direction: bull, bear, or neutral.
Signal Labels
Visual labels marked "Up" or "Down" are placed on the chart when a regime shift occurs, helping to mark turning points.
Deviation Bands
Dynamic upper and lower bands are drawn based on smoothed absolute deviation from the memory base.
Additional outer bands based on ATR may be drawn to highlight zone intensity when the 'Intense' or 'Trail' styles are selected.
Bands visually indicate overextension and help frame price context relative to memory.
Alerts
Built-in alert conditions trigger on bullish or bearish trend shifts, useful for automation or notifications.
Info Table
The optional info table displays:
Current trend direction
Band state (calm, hot, or cool)
Price stretch from base
Trend age in bars
Confidence level based on deviation
Memory slope and acceleration
Band width and compression state
Reversion risk based on stretch level
Info Table:
Trade Example:
Logic
Price Memory
A recursive formula updates a memory variable based on the current price.
The memory adjusts only when the price deviates meaningfully from its previous value.
The formula uses a combination of delta-weighting and exponential decay:
> memory := previous_memory + delta × memory_strength
> memory := memory × memory_decay + price × (1 - memory_decay)
This produces a smooth, adaptive base that responds gradually to directional price moves.
Deviation and Bands
Absolute deviation between price and the memory base is calculated and smoothed using an EMA.
The upper and lower bands are then calculated as:
> Upper Band = memory base + (smoothed deviation × band multiplier)
> Lower Band = memory base - (smoothed deviation × band multiplier)
ATR-based extensions can optionally be drawn around these bands for added visual structure.
Trend Logic
Bullish and bearish states are tracked using crossovers and crossunders of price against the upper and lower bands.
The indicator maintains a persistent trend state variable that updates only when a confirmed regime change occurs.
This prevents multiple signals within the same trend direction (non-pyramiding behavior).
Stretch and Band Analysis
Stretch is measured as the deviation of price from memory, normalized by smoothed deviation.
Band width is tracked over time and used to detect compression or expansion.
Band position is calculated to identify where price sits between the upper and lower bands.
Info Table Metrics
Memory Slope and Acceleration: Show first and second derivative of the memory base to capture trend speed and change.
Confidence Level: Based on stretch intensity, indicating trend strength.
Reversion Risk: Inferred from how extended price is beyond the band.
Compression: Evaluated by comparing current band width to its recent average.
Summary
Uptrick: Price Memory Trend provides an alternative framework for trend identification by replacing traditional smoothing with adaptive memory logic. It measures price deviation without reliance on ATR or standard deviation, instead focusing on distance from a reactive baseline. With regime-based trend tracking, customizable visuals, and a detailed status table, it supports both discretionary and system-driven trading styles.
Disclaimer
This script is for informational and educational purposes only. It does not provide financial advice or guarantees. Trading involves risk, and past performance is not indicative of future results. Always perform your own research before making trading decisions.
SessionVWAP + ORBThis TradingView Pine Script indicator combines two powerful intraday tools:
Multiple Rolling VWAPs: It plots up to four independent rolling (continuous) Volume Weighted Average Prices (VWAPs) with user-defined periods (e.g., 1-hour, 2-hour, 4-hour, daily). These are "anchored" to a customizable session start time and roll forward accurately without daily resets, providing dynamic fair-value benchmarks that react at different speeds (fastest/shortest on top).
Opening Range Breakout (ORB) Zones: It displays the high/low range (with optional background shading and lines) for major global trading sessions — Sydney, Tokyo, London, New York, and US RTH (Regular Trading Hours, starting at 9:30 ET) — over the first configurable minutes (default 30) after each session open, with history for several prior days.
The latest version adds full timezone flexibility (e.g., Chicago, New York, UTC, London, Tokyo, Sydney), automatically adjusting anchor times and session opens.
Use Case
This script is ideal for intraday and day traders (especially in stocks, futures, forex, or indices) seeking confluence between volume-based value areas and session momentum.
VWAP Component: Use the layered rolling VWAPs as dynamic support/resistance. Price above the fastest VWAPs suggests bullish bias; pullbacks to slower VWAPs offer mean-reversion entries. The multi-timeframe view helps gauge short-term vs. longer-term "fair value."
ORB Component: Trade breakouts from major session opening ranges — e.g., buy above the New York ORB high (red line) for momentum longs, or fade failures for reversals. Combine with VWAP (e.g., only take NY ORB longs if price is above session VWAP) for higher-probability filters.
Overall: Overlay on lower timeframes (1-15 min) to spot setups like ORB breakouts aligning with VWAP crosses, or use for risk management (stops beyond ORB extremes). The timezone support makes it versatile for global markets without manual adjustments.
Open Interest Weighted Average Price [Arjo]Open Interest Weighted Average Price , or OIWAP , is a simple visual indicator that shows the average price of an asset based on changes in open interest .
Instead of using trading volume like VWAP, this indicator gives more weight to prices where new futures contracts are being added or removed . This helps highlight the price levels where traders are actively building or closing positions.
The indicator shows:
A main line that represents the average price weighted by open interest changes.
Upper and lower bands (standard deviation bands) that show how far the price moves away from this average.
OIWAP is mainly useful for NSE futures markets , where open interest data is available. It helps traders visually understand where most market participation and positioning are taking place relative to price .
Concepts:
Applies statistical concepts, including weighted averaging and standard deviation, to open interest data
Uses the absolute change in open interest as a weighting factor for each price point
Creates a dynamic average that reflects where significant open interest activity has occurred during a given period
Standard deviation bands are computed from this weighted average to show the statistical spread of prices around the OIWAP line
Resets calculations based on user-selected time periods (daily, weekly, monthly, or session-based)
Allows for fresh analysis at regular intervals
Similar concept to volume-weighted average price (VWAP) indicators, but uses open interest changes as the weighting component
Features:
Weighted Average: Calculates a central line based on contract activity.
Flexible Anchors: Allows users to choose the reset period for the calculation.
Volatility Bands: Displays outer and mid-bands to visualize price stretches.
Data Check: Built-in alerts notify you if Open Interest data is missing for a symbol.
Visual Zones: Color-coded areas help identify price location at a glance.
How To Use
When you add the indicator to your chart, you will see:
A main OIWAP line — the open-interest-weighted price level
Mid-bands around the line (±0.5 standard deviations)
Outer bands farther away (±2.0 standard deviations)
Shaded background zones between these lines
You can:
Change the reset period to see how the average behaves over different time ranges
Adjust the timeframe for open-interest data
Turn mid-bands on or off
Adjust colors and styles to improve readability
Conclusion
The OIWAP indicator serves as an educational tool for visualizing the relationship between price movements and open interest activity in futures markets
Presents a weighted average price line along with statistical deviation bands
Offers a structured framework for chart analysis
Customizable settings allow users to adapt the display to their analytical preferences
Maintains focus on visual interpretation rather than directional predictions
Functions as a supplementary charting overlay that may complement other forms of technical and fundamental analysis
Disclaimer
This indicator is for educational and visual-analysis purposes only. It does not provide trading signals, financial advice, or guaranteed outcomes . You should perform your own research and consult a licensed financial professional when needed. All trading decisions are solely the responsibility of the user.
LTF Distribution Analyzer█ OVERVIEW
LTF Distribution Analyzer reveals the hidden price distribution and order flow within each candle by sampling lower timeframe data. It visualizes where prices concentrated, how volume was distributed between buyers and sellers, and identifies divergences between price action and actual market participation.
Unlike traditional candlesticks showing only OHLC, this indicator exposes the statistical structure of price movement using quartile-based visualization combined with delta analysis.
█ CONCEPTS
The indicator is built on two core concepts:
1 — Statistical Price Distribution
Each candle contains many lower timeframe bars. By analyzing these bars, we calculate:
• Q1 (25th percentile) - 25% of prices traded below this level
• Q3 (75th percentile) - 75% of prices traded below this level
• Median - The middle price value
• IQR (Interquartile Range) - The Q3-Q1 spread containing 50% of all prices
2 — Volume Delta Analysis
Delta measures buying vs selling pressure:
• Delta = Buy Volume − Sell Volume
• Positive delta = More aggressive buying
• Negative delta = More aggressive selling
• Delta Ratio normalizes this as a percentage
█ HOW IT WORKS
The indicator fetches lower timeframe data using request.security_lower_tf() and processes it to create a statistical summary:
Step 1: Timeframe Calculation
• Auto mode: Chart timeframe ÷ Auto Divisor = LTF
• Example: 1H chart ÷ 1000 = ~3.6 second sampling
• Manual mode: User-specified timeframe
Step 2: Data Collection
• Collects all close prices from LTF bars within current candle
• Aggregates volume by candle direction (bullish/bearish)
Step 3: Statistical Analysis
• Calculates quartiles (Q1, Q3), median, and boundaries
• Identifies outliers using 1.5× and 3× IQR fences
• Finds Volume POC (price with highest volume)
Step 4: Delta Calculation
• Sums buy volume (from bullish LTF bars)
• Sums sell volume (from bearish LTF bars)
• Computes delta ratio for color determination
█ VISUAL ELEMENTS
┌─────────────────────────────────────────┐
│ ▲ Extreme outlier (3× IQR) │
│ △ Mild outlier (1.5× IQR) │
│ ─ Upper whisker cap │
│ ┊ Whisker line (dashed) │
│ ▄ IQR Box (Q1 to Q3 range) │
│ ━ Volume POC (highest volume) │
│ ● Median (green=bull, red=bear) │
│ ┊ Whisker line (dashed) │
│ ─ Lower whisker cap │
│ ▽ Mild outlier │
│ ▼ Extreme outlier │
└─────────────────────────────────────────┘
█ COLOR SYSTEM
Colors indicate the relationship between candle direction and order flow:
🟢 TEAL (Positive Flow)
Bullish candle + Positive delta
→ Strong buying confirmation
→ Trend continuation signal
🔴 RED (Negative Flow)
Bearish candle + Negative delta
→ Strong selling confirmation
→ Trend continuation signal
🟠 ORANGE (Mixed Signal A)
Bullish candle + Negative delta
→ Price up but sellers dominated
→ Potential weakness/reversal warning
🔵 BLUE (Mixed Signal B)
Bearish candle + Positive delta
→ Price down but buyers dominated
→ Potential accumulation/reversal signal
█ SETTINGS
Timeframe Settings
• LTF Mode — Auto or Manual selection
• Manual Timeframe — Specific LTF when in Manual mode
• Auto Divisor — Higher = finer granularity (default: 1000)
• Allow Sub-Minute — Requires Premium subscription
Visual Style
• Positive/Negative Flow colors — Customize the 4 flow colors
• Box Transparency — Opacity of the quartile box (0-100%)
Statistics Display
• Show Statistics Panel — Toggle on-chart stats table
• Show Timeframe Badge — Toggle LTF indicator badge
• Panel Position — Choose corner placement
• Panel Size — Text size selection
█ HOW TO USE
1. Divergence Detection
Look for color mismatches:
• Orange bars in uptrend = weakness, potential reversal
• Blue bars in downtrend = strength, potential reversal
• Multiple consecutive divergent bars strengthen signal
• Wait for confirmation before entry
2. Volume POC Trading
• POC marks where most volume traded
• POC clusters at similar levels = strong S/R zone
• Price often returns to POC before continuing
• Use POC for entry/exit targeting
3. Trend Confirmation
• Consecutive teal = strong uptrend
• Consecutive red = strong downtrend
• Median position shows intrabar momentum
• Wide boxes indicate high volatility
4. Outlier Analysis
• Extreme markers (▲▼) often mark stop hunts
• Consider fading extremes at key levels
• Mild markers (△▽) = areas to watch
█ RECOMMENDED SETTINGS
For different chart timeframes:
│ Chart TF │ Auto Divisor │ Resulting LTF │
├──────────┼──────────────┼───────────────┤
│ 15M │ 1500 │ ~1M │
│ 1H │ 1000 │ ~3-4s │
│ 4H │ 600 │ ~24s │
│ Daily │ 500 │ ~2-3M │
Tip: Check the TF badge to confirm active sampling timeframe.
█ BEST PRACTICES
Do:
✓ Use "Bars" chart style for cleanest display
✓ Combine with support/resistance analysis
✓ Wait for confirmation bars
✓ Note POC clusters across multiple bars
✓ Adjust divisor based on your timeframe
Avoid:
✗ Trading single bar signals alone
✗ Using during low volume periods
✗ Trading immediately after news releases
✗ Ignoring overall market context
█ LIMITATIONS
• Requires adequate market liquidity for reliable signals
• Sub-minute timeframes need Premium subscription
• Historical data depth depends on TradingView's data availability
• Delta calculation assumes volume direction matches candle direction
█ NOTES
This indicator works best on liquid markets (forex majors, major indices, popular stocks/crypto) where volume data is meaningful.
The gray dotted vertical line marks where LTF data becomes available - bars before this line won't display the indicator.
For questions or suggestions, leave a comment below.
Ultimate Auto Trendlines - No Lag, No repaint, & High Accuracy Non-Repainting Auto Trendlines by Pivots – The cleanest way to draw real trendlines automatically!
Connects confirmed pivot highs/lows → solid, angled trendlines (no flat junk)
Filters by minimum angle → only meaningful trends
Shows recent pivots with "R" / "S" labels (optional)
Long extension to the right – see future zones instantly
Perfect for SPY, QQQ, NASDAQ daily swings – 85%+ touch rate in backtests
Why traders love it:
• No repaint – safe for live trading & alerts
• Keeps chart clean – only recent levels
• Angle filter = no useless horizontal lines
• Works on any timeframe – daily/4H/1H killer
Add to chart now → see the difference immediately!
How to Use the "Auto Trendlines by Pivots" Indicator Effectively
This indicator automatically draws clean, non-repainting trendlines by connecting confirmed pivot highs and lows, helping you visualize dynamic trend direction, support/resistance from swings, and potential reversal or continuation zones. It's especially powerful on daily and 4H charts for SPY, QQQ, NASDAQ stocks, forex majors, and crypto.
Quick Start Guide
Add to Chart
Open TradingView → Pine Editor → paste the script → Save → Add to Chart.
Best symbols/timeframes: SPY/QQQ/ES1! daily, 4H, or 1H.
Key Settings (Recommended Starting Values)
Pivot Left/Right Bars: 5/5 (default) → balanced strength.
Increase to 8–10 for stronger, fewer lines (less noise, higher accuracy).
Decrease to 3–4 for more frequent lines (scalping/intraday).
Max Trendlines: 8 (default) → keeps chart readable.
Lower to 4–6 for minimalism; raise to 12–15 for more history.
Min Trend Angle: 15° (default) → filters out flat/weak lines.
Increase to 20–25° for steeper trends only (very clean chart).
Decrease to 10° to see shallower trends.
Line Extension: 100–200 bars → long enough to project forward zones.
Show Labels: On → "R" (red) and "S" (green) marks pivot points.
Turn off for ultra-clean look.
How to Read & Trade with It
Uptrend (Bullish): Greenish upward-sloping lines connecting higher lows → act as dynamic support.
→ Buy pullbacks to the trendline + confirmation (e.g., RSI oversold, volume spike, candlestick reversal).
→ Target next resistance line or previous pivot high.
Downtrend (Bearish): Reddish downward-sloping lines connecting lower highs → act as dynamic resistance.
→ Short rejections at trendline + confirmation (e.g., RSI overbought, bearish engulfing).
→ Target next support line or previous pivot low.
Range / Sideways: Mixed criss-crossing lines → avoid trading or use horizontal S/R levels (when trendlines flatten).
Confluence = where multiple lines cluster → highest-probability zones.
Breakouts: When price closes decisively through a trendline → signals potential trend change or acceleration.
Wait for retest of broken line as new support/resistance.
Pro Trading Tips (High-Probability Setups)
Confluence is King: Trade when price reaches a trendline + horizontal S/R level from pivots (yellow zones if you add confluence logic).
Timeframe Alignment: Use daily lines for bias, 4H/1H for entries.
Confirmation Tools:
RSI(2) < 10 near support (long) or > 90 near resistance (short)
Volume > 20-period SMA on touch
Candlestick patterns (hammer, engulfing) at line
Risk Management:
Stop below support trendline (longs) or above resistance trendline (shorts)
Target 1.5–3R (next major level or opposite line)
Avoid trades if VIX > 25–30 (high volatility kills accuracy)
Best Markets: Strong trends (bullish SPY/QQQ 2020–2025) → 70–85% bounce rate at lines.
Common Mistakes to Avoid
Over-trading flat markets → wait for clear trend angle.
Ignoring angle filter → flat lines are noise, not real trends.
Not zooming out → always check higher timeframe (weekly) for major lines.
Performance Insight
Backtests on SPY daily (2010–2025): ~80% price interaction (touch/bounce) at trendlines in trending periods.
Combine with RSI(2) or EMA50 → win rate often >75% on pullback entries.
HMA Fibo Trend RibbonHMA Fibo Trend Ribbon - Fibonacci Trend Indicator
📊 Indicator Description
This is a trend indicator based on the harmony of Fibonacci numbers. The indicator uses seven Hull Moving Averages with periods corresponding to the Fibonacci sequence: 8, 13, 21, 34, 55, 89, 144. This mathematical harmony allows the indicator to perfectly align with natural market cycles and wave structures.
🎯 Fibonacci Philosophy in Market Analysis
The Fibonacci sequence is not just a set of numbers, but a fundamental pattern found in nature, art, and financial markets. Using these periods provides:
Natural alignment with market cycles
Multifractal analysis (covering different wave levels)
Harmonious interaction between timeframes
Universal application across all timeframes
🔧 Indicator Settings
Visual Settings:
Show Main Line - Show main line (HMA 144 - golden ratio)
Show Ribbon Lines - Show the remaining 6 Fibonacci lines
Show Trend Change Labels - Show trend change labels
Show Info (Trend %) - Show info label with trend percentage
Ribbon Opacity - Ribbon transparency (0-100%)
🎨 Visualization of Fibonacci Structure
Color Harmony:
Each HMA line corresponds to a specific Fibonacci level
Collective movement creates the "Fibonacci Ribbon"
Color differentiation based on direction
Info Label:
Displays consensus of 7 Fibonacci levels
Percentage ratio of bullish/bearish lines
Color coding of the trend
📊 Interpretation of Fibonacci Signals
Consistency Levels:
7/7 lines in one direction - Perfect Fibonacci harmony
5-6/7 lines - Strong trend
3-4/7 lines - Consolidation/transition phase
0-2/7 lines - Opposite trend
🚀 Advantages of Fibonacci Approach
Natural harmony with market cycles
Universal - works on any asset and timeframe
Predictive power - anticipates reversal zones
Period synergy - signal amplification when aligned
Minimal lag - HMA responds better than regular MAs
⚡ Implementation Features
Technical Details:
Algorithm: Hull Moving Average (optimized for speed)
Periods: Pure Fibonacci sequence
Calculation: Consensus of 7 harmonic levels
Visualization: Intuitive color scheme
Performance:
Optimized for TradingView
Minimal system load
Support for all chart types
⚠️ Usage Recommendations
Combine with other Fibonacci tools
Verify signals on different timeframes
Use for trade entry filtering
Test on historical data before live trading
✍️ Author: A-Swift
📅 Version: 1.0 Fibonacci
🔗 Code: Open Source (MPL 2.0)
🧮 Basis: Fibonacci Sequence (8, 13, 21, 34, 55, 89, 144)
Fibonacci Fact:
The number 144 in the Fibonacci sequence is the square of its ordinal number (12²) and represents perfect harmony in market cycles. This makes the HMA with period 144 particularly significant for determining the main trend.
Victor's Market Breadth OscillatorDescription
This is a classic market breadth technical indicator designed to measure the underlying strength and momentum of the broader stock market. The indicator evaluates market health by analyzing the cumulative difference between the number of advancing stocks and declining stocks traded on the market. It provides clear signals of market breadth trend and momentum.
Core Calculation Logic
Fetch the real time data of advancing stocks and declining stocks using the assigned ticker symbols
Calculate the net market breadth value which equals the number of advancing stocks minus declining stocks
Compute the Fast Line as the cumulative sum of the net breadth value over the set short term period
Compute the Slow Line as the cumulative sum of the net breadth value over the set long term period, then normalize the value by dividing by three and rounding to a whole integer
Plot two distinct lines to visually reflect the short term and long term market breadth momentum
Usage Guidelines
The indicator readings reflect the internal strength of the overall market.
Higher indicator values mean stronger upward market breadth with more stocks participating in the rally and healthy bullish momentum.
Lower indicator values mean stronger downward market breadth with more stocks participating in the decline and increasing bearish momentum.
This is a market breadth auxiliary indicator. For optimal results, use it in combination with price trend analysis and volume indicators for comprehensive market judgment
Adjustable Input Parameters
Advancing Stocks Ticker : The ticker symbol for the number of advancing stocks in the market
Declining Stocks Ticker : The ticker symbol for the number of declining stocks in the market
Fast Summation Period : Short term cumulative calculation length for the Fast Line
Slow Summation Period : Long term cumulative calculation length for the Slow Line.
Global Macro Scanner & Relative PerformanceDescription: This indicator is an all-in-one Macro Dashboard that allows traders to track money flow across major global asset classes in real-time. It combines a floating data table with a normalized percentage-performance chart.
Features:
Macro Dashboard (Table): Displays the current value, daily % change, and status (Inflow/Outflow) for 9 key economic sectors:
US M2 Supply: Tracks monetary inflation/tightening.
DXY (US Dollar): Currency strength.
Bonds (AGG): US Aggregate Bond market.
Stocks (VT): Total World Stock Index.
Real Estate (VNQ): Vanguard Real Estate ETF.
Commodities: Oil (WTI), Gold, and Silver.
Crypto: Total Crypto Market Cap.
Relative Performance Chart (Lines): Instead of plotting raw prices (which have vastly different scales), this script plots the Percentage Return relative to a baseline.
Lookback Period: You can set a lookback (default 100 bars). The script sets the price 100 bars ago as "0%" and plots how much each asset has gained or lost since then.
Comparison: This allows you to visually see which assets are outperforming or underperforming relative to each other over the same time period.
Visual Aids:
Dynamic Labels: Each line is tagged with a label at the current candle so you can identify assets without needing a legend.
Colors: Each asset has a distinct, fixed color for consistency between the table and the chart.
How to use:
Add the script to your chart.
Adjust the "Lookback" setting in the inputs to change the starting point of the comparison (e.g., set it to the start of the year to see Year-to-Date performance).
Use the dashboard to spot daily money flow rotation (e.g., Money moving out of Stocks and into Gold).
Victor's Price OscillatorOverview
Victor Sperandeo is a legendary trader, market wizard, and author, famed for his trend-following strategies and expertise in technical analysis.
Victor's Price Oscillator is a classic momentum technical indicator focused purely on price action and price change momentum. It measures the strength and direction of underlying price momentum by calculating cumulative short term price differences and their net change over time. This indicator is designed to identify accelerating or decelerating price movement for stocks, indices, commodities and all tradable assets.
Core Calculation Logic
The indicator uses a straightforward and transparent mathematical calculation with no complex formulas, all steps follow the original design completely:
Calculate the price difference for each bar : Current bar closing price minus the closing price from a set number of bars in the past
Sum these individual price differences across a defined lookback period to get a cumulative price change value
Compute the final oscillator reading by subtracting the historical cumulative value (from a set offset period) from the current cumulative value
Plot the net oscillator value as a single line to visually show the trend of price momentum strength
Parameter Quick Intro
Cumulative Period: Defines momentum calculation window
Price Offset: Sets price comparison lag
Signal Offset: Measures net momentum change
Key Interpretation & Usage Guidelines
Positive oscillator values indicate active upward price momentum. The higher the positive value, the stronger and more sustained the upward price movement
Negative oscillator values indicate active downward price momentum. The lower the negative value, the stronger and more sustained the downward price movement
Rising oscillator line shows accelerating price momentum in the current trend direction (bullish momentum strengthening for up trends, bearish momentum strengthening for down trends)
Falling oscillator line shows decelerating price momentum in the current trend direction (bullish momentum weakening for up trends, bearish momentum weakening for down trends)
This oscillator is best used as a momentum confirmation tool. Combine it with trend analysis, support and resistance levels or volume indicators for comprehensive trading decisions and improved accuracy
G Trade SessionsWe built this indicator because we was tired of guessing when major markets open and close. It draws simple boxes around each trading session so you can instantly see where the action is.
What it does:
Shows you the four key sessions — Asia, Frankfurt, London, and New York — as transparent boxes right on your chart. Each box marks the high and low of that session, which is super useful for spotting support/resistance levels.
Why I like it:
No clutter — boxes are subtle and don't get in the way
Labels switch from black to white automatically depending on your chart theme (dark or light)
Sessions don't overlap, so the chart stays clean
You can turn off any session you don't care about
Hope you find it useful!
NOVA - SessionsKey Features:
Three Major Sessions:
Asia (Tokyo):** Draws the overnight consolidation range (High/Low/Mid).
London:** Draws the breakout session range.
New York:** Draws the reversal/continuation session range (aligned with the Stock Market Open).
Smart Timezone Logic:
All sessions are calculated using their **local** exchange times (e.g., Tokyo time for Asia, NY time for NYSE) but display correctly on your chart in Amsterdam time. You never have to adjust for Daylight Savings.
Support & Resistance:
The Highs, Lows, and Midpoints extend to the right, allowing you to see how previous sessions act as support or resistance later in the day.
Daily Open:
Marks the exact opening price at Midnight to help you determine if price is "premium" (expensive) or "discount" (cheap) for the day.
Midnight VWAP:
A volume-weighted average price that resets every night, acting as a dynamic "fair value" line for the day.
Clean Visuals:
Completely customizable. You can toggle background boxes, lines, and text labels to keep your chart clean.
In short:
It automates the "boring work" of marking up your chart every morning so you can focus purely on price action.
Fibonacci 5 Candles Retracement
================================================================================
FIBONACCI 5 CANDLES RETRACEMENT - STRATEGY GUIDE
================================================================================
WHAT DOES THIS STRATEGY DO?
---------------------------
This strategy automatically identifies market trends and uses Fibonacci
retracements to find the best entry points. The idea is simple: when price
makes a strong movement (trend), it often pulls back before continuing in
the same direction. The strategy captures these "pullbacks" to enter at the
right moment.
HOW IT WORKS?
-------------
1. TREND DETECTION
The strategy looks for 5 consecutive candles of the same color:
- 5 red candles = BEARISH trend (price falls)
- 5 green candles = BULLISH trend (price rises)
2. CALCULATION OF START AND END POINTS
For a BEARISH trend (5 red candles):
- START: The highest point between the first red candle and the previous one
- END: The lowest point reached during the 5 candles (and beyond, if the
trend continues)
For a BULLISH trend (5 green candles):
- START: The lowest point between the first green candle and the previous one
- END: The highest point reached during the 5 candles (and beyond, if the
trend continues)
3. DYNAMIC UPDATE
The END point updates automatically if price continues to move in the
direction of the trend, creating new highs (for bullish trends) or new
lows (for bearish trends).
4. TREND END
Normal Mode:
- BEARISH trend ends when a candle closes above the previous candle's open
- BULLISH trend ends when a candle closes below the previous candle's open
"Extended Trend" mode (optional):
- The trend remains active until a candle closes beyond the dynamic 50%
retracement level
- When this happens, the END point "freezes" (stops updating), but the
trend can continue
5. FIBONACCI RETRACEMENT CALCULATION
Once START and END are identified, the strategy automatically calculates
Fibonacci levels. IMPORTANT: for retracements and pending orders, we
consider START as 100% and END as 0%, because we work on the part of the
trend that is recovered (the pullback).
The retracement levels are:
- 70% = level closest to START (smallest retracement)
- 60% = second level
- 50% = central level (often used for entry)
- 25% = level closest to END (largest retracement)
6. PENDING ORDER PLACEMENT
When a trend is identified and completed, the strategy automatically places
a pending order (limit order) at one of the selectable Fibonacci levels.
Available levels:
- 25%: closest to END
- 50%: central level (balanced)
- 60%: closest to START
- 70%: very close to START
The order direction depends on the trend:
- BEARISH trend → SHORT order (bet that price falls)
- BULLISH trend → LONG order (bet that price rises)
Stop Loss and Take Profit (for retracements):
- Stop Loss: always at START level
- Take Profit: always at END level
EXTENDED TAKE PROFIT:
If the order is executed (filled), the strategy can apply an "Extended
Take Profit" if configured. IMPORTANT: for the extended TP calculation,
we consider START as 0% and END as 100% (the original trend movement).
For example, if you set 3%, the Take Profit will be at 103% of the
original trend movement instead of 100%.
AVAILABLE FILTERS
-----------------
1. MINIMUM TREND (pips)
Filters trends that are too small. If a trend is below the set value:
- START and END labels become gray (instead of red/green)
- No pending order is placed
- The trend is still displayed on the chart
Useful for avoiding trading movements that are too small.
2. EMA FILTER
Uses two moving averages (EMA 50 and EMA 200) to filter direction:
- If active: places LONG orders only when EMA50 > EMA200 (uptrend)
- If active: places SHORT orders only when EMA50 < EMA200 (downtrend)
Useful for trading only in the direction of the main trend.
3. EXTENDED TREND
Modifies how the trend is considered "completed":
- If disabled: uses normal logic (opposite candle)
- If active: the trend remains in formation until a candle closes beyond
the dynamic 50%. When this happens, END freezes but the trend can continue.
Useful for capturing longer trends and extended movements.
VISUALIZATION
-------------
The strategy displays on the chart:
1. START AND END LABELS
- Red color for bearish trends
- Green color for bullish trends
- Gray color if the trend is not valid (too small)
- Remain visible even when new trends form
2. START AND END LINES
- Horizontal lines indicating the start (START) and end (END) points of the trend
- White color by default, customizable from the settings panel
- Update dynamically when the END point changes
- Can be shown or hidden via the "Show Start/End Lines" option
3. FIBONACCI LINES
The strategy shows horizontal lines at retracement levels:
- Line at 50% (yellow by default)
- Line at 25% (green by default)
- Line at 60% (azure by default)
- Line at 70% (red by default)
COLOR CUSTOMIZATION:
All line colors can be customized from the settings panel in the
"LINE COLORS" section:
- Start/End Line Color: customize the color of START and END lines
- 50% Line Color: customize the color of the 50% line
- 25% Line Color: customize the color of the 25% line
- 60% Line Color: customize the color of the 60% line
- 70% Line Color: customize the color of the 70% line
Lines update dynamically when the END point changes and can be shown or
hidden individually via options in the "VISUALIZATION" section.
4. PENDING ORDER LABELS
Show pending order information:
- Direction (LONG or SHORT)
- Entry price
- Stop Loss
- Take Profit
Positioned far from the chart to avoid cluttering the visualization.
ALERTS
------
If enabled, alerts send notifications when:
1. PENDING ORDER CREATED
When a new pending order is placed, with all information.
2. PENDING ORDER UPDATED
When the pending order is updated (for example, if the level changes or
if the END point moves).
3. ORDER OPENED
When the pending order is executed (filled) and the position is opened.
Alerts can be configured in TradingView to send notifications via email,
SMS, or other platforms.
RECOMMENDED SETTINGS
--------------------
To get started, you can use these settings:
VISUALIZATION:
- Show all lines and labels to see how it works
- Show Start/End Lines: true (to display lines at START and END points)
- Customize line colors in the "LINE COLORS" section according to your preferences
STRATEGY:
- Pending Order Level: 50% (balanced)
- Extended TP: 0% (use standard TP at 100%)
FILTERS:
- Minimum Trend: 0 pips (disabled initially)
- Use EMA Filter: false (disabled initially)
- Extended Trend: false (use normal logic)
ALERTS:
- Enable Alerts: true (if you want to receive notifications)
PRACTICAL EXAMPLE
-----------------
Scenario: Bearish Trend
1. Price forms 5 consecutive red candles
2. The strategy identifies:
- START = 1.2000 (highest point)
- END = 1.1900 (lowest point)
- Range = 100 pips
3. Calculates Fibonacci levels (for retracements: START = 100%, END = 0%):
- 100% = 1.2000 (START)
- 70% = 1.1930
- 60% = 1.1940
- 50% = 1.1950
- 25% = 1.1975
- 0% = 1.1900 (END)
4. If you set "Pending Order Level" to 50%:
- Places a SHORT pending order at 1.1950 (50% retracement)
- Stop Loss at 1.2000 (START = 100%)
- Take Profit at 1.1900 (END = 0%)
5. If price rises and touches 1.1950:
- The order is executed
- Opens a SHORT position
- If price falls to 1.1900 → Take Profit (profit)
- If price rises to 1.2000 → Stop Loss (loss)
IMPORTANT NOTE
--------------
This strategy is a technical analysis tool. Like all trading strategies,
it does not guarantee profits. Trading involves risks and you can lose money.
Always use appropriate risk management and test the strategy on historical
data before using it with real money.
LICENSE
-------
This code is open source and available for modification. You are free to
use, modify, and distribute this strategy. If you republish or share a
modified version, please kindly mention the original author.
================================================================================
Auto Liquidity Sweep Trendlines With BuySell alerts By V JhaThis automatic trendline system gives buy and sell alerts as well. But you must choose to buy at bottom and sell at top, or in tune with high time frame. This works perfect when used in alignment with HTF.
Points used to draw these trendlines are not ordinary wicks, rather they are liquidity points of huge importance. This trendline system removes any need for mannual tredline drawing.
V-Max Strategic Horizon: Cross-TF Coordinate Sync (Public EditioOverview
The V-Max Strategic Horizon is a technical visualization utility designed to solve the problem of coordinate drift during multi-timeframe analysis. It serves as a "Physical Coordinate Anchor," ensuring that high-level resistance and support boundaries from macro timeframes (e.g., 1H, 4H, or 1D) remain strictly locked and visible even when the trader scales down to 1M or 3M execution charts.
Core Technical Logic
Timeframe Anchoring Engine: The script utilizes request.security with a fixed lookback_cnt to pull the absolute highest and lowest price points from a specified anchor timeframe.
Absolute Coordinate Locking (Zero-Drift): Unlike manual horizontal lines that may become misaligned, this tool employs the line.new system with extend.both logic. This ensures the horizons are mathematically tied to the price scale, providing a consistent strategic reference across all chart resolutions.
High-Speed Computational Logic: To prevent the "Script Timeout" errors common in multi-timeframe indicators, the v11.0 engine eliminates iterative loops, favoring vectorized calculations for real-time responsiveness.
Dynamic Metadata Labeling: The script features an automated labeling system that dynamically identifies the source of the data (e.g., "1H Anchor") and displays the precise price coordinate, reducing cognitive load during high-frequency trading.
How to Use
Set Your Anchor: Choose your strategic timeframe (e.g., 1H for day trading, 1D for swing trading) in the settings.
Define the Scan Range: Adjust the lookback count to determine the "strength" of the historical horizon.
Execute with Context: Watch how the price interacts with the "Red" (Resistance) and "Green" (Support) horizons on your 3M chart to identify macro-rejections or breakouts.
產品概述
V-Max 戰略地平線 是一款解決多時框分析中座標位移問題的技術工具。它作為「物理座標錨點」,確保大週期(如 1H、4H 或 1D)的壓力與支撐邊界,在交易者切換至 1M 或 3M 執行圖表時,依然嚴格鎖定且清晰可見。
核心技術邏輯
時框錨定引擎:利用跨時框數據抓取技術,獲取指定基準時區的絕對價格極值。
絕對座標鎖定(零位移):採用 line 渲染系統配合同步延伸邏輯,確保地平線在數學上與價格刻度綁定,提供一致的戰略參考。
極速運算邏輯:v11.0 引擎優化了跨時框數據處理,消除了複雜迴圈,確保在短線圖表上實現零延遲性能。
Access & Support
This script is published as a Free Public Utility in the TradingView Library. Disclaimer: For technical analysis purposes only.
Liquidity Sweep Trendlines Works great, automatic update happens, no need to draw mannually. Only two trendlines to maximise focus.
Best way to use : have higher time frame trend in view then wait till trendline is breached in htf direction on lower time frame.
Best part is that trendline drawn is not through ordinary wicks, rather wicks that matter liquidity.
Execution-Weighted Market Regime Map (EWRM)Overview
The Execution-Weighted Market Regime Map is designed to answer a simple question:
“Is this market worth trading right now, or is it mostly noise and costs?”
Instead of focusing only on trend vs range, it evaluates whether conditions are likely to:
offer clean, follow-through price movement
chop back and forth
be dominated by costs like spread and slippage
It is meant for day traders and swing traders who want to choose when to trade, not just where to enter .
Core idea
Most indicators try to predict direction.
EWRM focuses on tradability.
It highlights:
when the market moves cleanly and is easier to execute
when volatility is unstable and unreliable
when “cost of trading” (spread and slippage) eats potential profit
The indicator shows this using:
a visual dashboard
background color changes
clear regime labels
Key concepts in plain language
SRR – Spread-to-Range Ratio
How big the trading costs are compared to how much price is moving.
High SRR = the market moves little but costs you a lot → bad environment.
Low SRR = price moves much more than it costs to trade → better environment.
PEI – Pullback Efficiency Index
Measures how “clean” trends are.
If pullbacks lead to smooth continuation, PEI is high.
If pullbacks constantly fail and reverse, PEI is low.
SRP – Slippage Risk Proxy
Estimates how likely you are to get worse fills than expected.
Fast spikes, thin liquidity zones, and whipsaw behavior increase SRP.
What EWRM helps you do
avoid overtrading during messy conditions
size up when conditions are smooth and directional
identify when volatility is expanding or collapsing
adapt behavior by time of day (open, midday, close)
How it works at a high level
It measures how much the market is moving
It checks whether volatility is stable or chaotic
It estimates how expensive and difficult execution is
It breaks the day into premarket, open, midday, and power hour
It combines all of this into an overall “regime” label
It colors the background or dashboard so you can read the state instantly
There are no buy/sell arrows. It is a decision-support tool, not a signal generator.
How to use it
trade more when conditions are clean and execution-friendly
stand aside when cost and noise dominate movement
prefer trend setups when trend regimes are detected
stay cautious when regime flips frequently
Think of it as a weather map for the market, not a GPS.
Inputs and parameters
Core settings
Realized Volatility Length – how fast the tool reacts to volatility changes
Volatility Stability Length – how stable/unstable volatility appears
ATR Length – used to scale and normalize movement
General Lookback – how much history is analyzed
Session settings
Premarket
Opening drive
Midday
Power hour
These let the tool treat each time window differently, since behavior changes through the day.
Cost settings
Estimated Spread – approximate buy/sell price difference
Estimated Slippage – expected extra cost from fast movement
These make the tool focus on realistic, after-cost trading conditions .
Visual settings
toggle dashboard
toggle background shading
toggle regime labels
choose X/Y position of the panel
Limitations
uses estimates of spread and slippage, not live order-book data
cannot remove all uncertainty
best used as a filter, not a trading system
Suggested use
filter out bad environments
increase selectivity
align position size with regime quality
combine with your own strategy or entries
[RoyalNeuron] RSI-SMA [WidowMaker v1.0]Hey everyone,👋
This is WidowMaker v1.0 — my free take on a really clean, zero-lag smoothed RSI that actually helps you see momentum without all the noise.
What makes it different:
- Smoothed RSI (you pick SMA or EMA) so it doesn’t whipsaw as much as the default one
- Green line when momentum is rising, red when it’s falling — super easy to read at a glance
- Histogram turns solid green for strong upward push, solid red when things are fading
- Very faint green background in oversold (buy zone) and faint red in overbought (caution zone)
Quick way to use it:
- Green line + solid green histogram near the bottom (oversold) → good spot for longs
- Red line + solid red histogram near the top (overbought) → time to think about shorts or taking profit
I made it because I was tired of cluttered indicators that look cool but don’t help much in real trading.
I am thinking of an updated version, still thinking of what to add so that to add value.
Would love your honest feedback — like it, use it, tell me what you’d add. More free tools on the way!
Cheers,
RoyalNeuron 👑
RSI, Smoothed RSI, Momentum, Oscillator, Overbought, Oversold, Histogram, Green Red, Free, Alerts
Price Log Regression (by Currency)1. Introduction
This indicator draws a logarithmic regression line directly on top of the price candles, showing the long‑term “average” growth path of any asset in the currency you select (for example USD). It is inspired by popular log‑regression studies used on assets like Bitcoin, where price is transformed to a log scale and a straight regression line is used to visualize macro trends and diminishing returns over time.
2. Key Features
- Currency‑aware trend line : Before calculating the regression, the script converts the asset’s price into the chosen currency, so the line represents the trend of “price in USD”, not just the original quote on the chart.
- Logarithmic regression : The script takes the logarithm (base 10) of the converted price, applies a linear regression to that log series, and then converts the result back to normal price; this produces a smooth line that follows the exponential character of many long‑term price moves.
- On‑chart overlay : Only the regression line is plotted and `overlay` is enabled, so the line appears directly over your existing candles, keeping the chart clean and making it easy to compare current price versus its long‑term log‑trend in the selected currency.
3. How to Use
- Add the script to any symbol and timeframe, then choose the Currency input (for example set it to “USD” if you want to see the trend of that asset measured in Dolars).
- Adjust the Regression length input: longer lengths give a slower, smoother macro line, while shorter lengths react more to recent price action; use what best matches the horizon you are analysing.
- Read the line as an analytical tool, not as guaranteed support or resistance: if price is far above the line, it may indicate an extended move relative to its long‑term path in that currency; if it is far below, it may indicate a cheaper zone relative to that same path, always remembering that this is educational analysis and not financial advice.
Note: This indicator focuses on long‑term logarithmic trends rather than short‑term noise, it is best suited for longer‑horizon approaches such as swing trading and position trading, rather than intraday scalping.
Dynamic Stoch200+MACD+Gann Confluence (Cardinal + Ordinal)If you're scrolling through hundreds of indicators on TradingView looking for a reliable edge, here's why this one stands out and deserves a spot on your chart:Ultra-High-Conviction Reversal Signals (Rare but Powerful)
Most indicators spam signals and repaint. This one requires four independent confluences to fire:Hidden bullish/bearish divergences on a very long-period Stochastic (200) – catches major cycle turns, not noise.Matching hidden divergences on MACD histogram – confirms momentum shift.A strong directional candle (close in top/bottom 20% of range) – filters weak wicks.
Price within ~1.75% of a dynamic Gann Square of 9 level (cardinal + ordinal angles).
Because it demands all four at once, signals are extremely rare — often only a handful per year on daily/weekly timeframes. When they appear, they frequently mark significant tops and bottoms.Fully Adaptive Gann Levels (No Static Lines)
Unlike most Gann scripts with fixed levels that quickly become irrelevant, this one:Automatically anchors to the most recent significant pivot low or high.
Calculates authentic Square of 9 rotations (45°, 90°, 135°, 180°, 225°, 270°, 315°, 360°).
Updates dynamically as new swings form — works on any timeframe and any market (BTC, stocks, forex, indices).
Clean & Customizable Toggle cardinal (strong) vs ordinal (intermediate) levels for plotting and signal checks.
Adjustable pivot sensitivity and proximity tolerance.
Minimal chart clutter: bold lines for major levels, subtle for intermediates, plus clear large triangles for entries.
Best For
Swing traders and position traders seeking high-probability reversal zones rather than frequent scalps. Excellent for Bitcoin and volatile assets where geometric levels + extreme momentum divergences often align at cycle extremes.In short: If you want an indicator that stays quiet most of the time but screams when a real reversal is likely — this is it. Add it, watch the Gann levels adapt, and wait patiently for the rare multi-confluence setups. Quality over quantity.
Auto Fib Retracement Advanced//@version=5
indicator("Auto Fib Retracement Advanced", overlay=true, max_lines_count=500) // Increase max_lines_count
leftBars = input.int(10, "Pivot Left Bars")
rightBars = input.int(10, "Pivot Right Bars")
extendRight = input.bool(true, "Extend Lines Right")
swingHigh = ta.pivothigh(high, leftBars, rightBars)
swingLow = ta.pivotlow(low, leftBars, rightBars)
var float lastHighPrice = na
var int lastHighBar = na
var float lastLowPrice = na
var int lastLowBar = na
// Arrays to store line IDs for management
var lines = array.new_line()
levels_values = array.from(0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0)
// Update pivot points and redraw lines when a new pivot is confirmed
if not na(swingHigh) or not na(swingLow)
if not na(swingHigh)
lastHighPrice := swingHigh
lastHighBar := bar_index
if not na(swingLow)
lastLowPrice := swingLow
lastLowBar := bar_index
// Delete existing lines before drawing new ones
for i = 0 to array.size(lines) - 1
line.delete(array.get(lines, i))
array.clear(lines)
if not na(lastHighPrice) and not na(lastLowPrice)
isUptrend = lastHighPrice > lastLowPrice
fibRange = math.abs(lastHighPrice - lastLowPrice)
// Draw new lines
for i = 0 to array.size(levels_values) - 1
levelValue = array.get(levels_values, i)
priceLevel = isUptrend ? lastLowPrice + fibRange * levelValue : lastHighPrice - fibRange * levelValue
// Use line.new to create persistent horizontal lines
newLine = line.new(x1=lastLowBar, y1=priceLevel, x2=bar_index + (extendRight ? 500 : 0), y2=priceLevel, color=color.gray, style=line.style_dashed)
array.push(lines, newLine)
Dynamic Support Resistance Zones======================================================================
TRADINGVIEW PUBLICATION - DYNAMIC SUPPORT RESISTANCE ZONES
======================================================================
TITLE: Dynamic Support Resistance Zones
SHORT TITLE: SR Zones
--------------------------------------------------------------------------------
DESCRIPTION (Copy below for TradingView publication)
--------------------------------------------------------------------------------
The Dynamic Support Resistance Zones indicator identifies key price levels where potential reversals may occur by analyzing candlestick behavior and volume dynamics together.
▶ CONCEPT AND METHODOLOGY
This indicator detects support and resistance levels through a specific combination of three market conditions occurring simultaneously:
1. Candlestick Body Expansion: The current candle's body (distance between open and close) must be larger than the previous candle's body. This signals increased price commitment from market participants.
2. Direction Reversal: The current candle must close in the opposite direction of the previous candle. A bullish candle following a bearish candle suggests potential support formation, while a bearish candle following a bullish candle suggests potential resistance formation.
3. Volume Contraction: The current candle must have lower volume than the previous candle. This condition filters out high-volume breakout moves and focuses on exhaustion patterns where price reverses on decreasing participation.
When all three conditions align, the indicator marks the opening price of the previous candle as a significant level.
▶ HOW LEVELS ARE CLASSIFIED
Support Zones (Green Lines): Form when a bullish reversal candle appears with an expanded body on declining volume. These represent areas where buying pressure overcame selling pressure.
Resistance Zones (Red Lines): Form when a bearish reversal candle appears with an expanded body on declining volume. These represent areas where selling pressure overcame buying pressure.
▶ DYNAMIC LEVEL MANAGEMENT
The indicator continuously monitors each level and updates its status:
- Active Levels (Solid Lines): Levels that have not been broken by a closing price. These extend forward automatically as new bars form.
- Broken Levels (Dashed Lines): When price closes beyond a level, it converts to a dashed line. These broken levels remain visible for potential retest scenarios.
- Level Removal: Broken support levels are removed if price closes back above them. Broken resistance levels are removed if price closes back below them. This keeps the chart clean and focused on relevant levels.
▶ TRADING APPLICATIONS
Reversal Trading: Look for price approaching active support or resistance levels for potential bounce trades.
Breakout Confirmation: When a solid level converts to dashed, it confirms a breakout. The dashed level then becomes a potential retest zone.
Trend Analysis: Multiple support levels stacking below price suggests bullish structure. Multiple resistance levels above price suggests bearish structure.
Risk Management: Active levels provide logical areas for stop-loss placement just beyond the identified zones.
▶ WHY THIS COMBINATION WORKS
The three-filter approach (body expansion + direction change + volume decline) identifies exhaustion reversals rather than continuation patterns. Large body candles show conviction, direction change shows momentum shift, and lower volume suggests the prior move is losing steam rather than breaking out with strength.
▶ SETTINGS
This indicator uses fixed detection logic with no adjustable parameters to maintain consistency. The colors are preset: green for support zones and red for resistance zones.
▶ BEST PRACTICES
- Works on all timeframes but higher timeframes typically produce more reliable levels
- Combine with trend analysis for directional bias
- Not all levels will hold; use proper risk management
- More effective in ranging or mean-reverting conditions than strong trending markets
--------------------------------------------------------------------------------
TAGS (for TradingView)
--------------------------------------------------------------------------------
support, resistance, reversal, volume, candlestick, levels, zones, price-action
--------------------------------------------------------------------------------
CATEGORY
--------------------------------------------------------------------------------
Support and Resistance
======================================================================
KTBB Intel: Multi-Timeframe ContextKabroda Intel
This is the official structural companion tool for the Kabroda System. While the "BattleBox Command" script handles specific intraday execution levels, this Kabroda Intel utility visualizes Multi-Timeframe Market Structure to provide broader context.
How It Works (Technical Logic): This script automates the analysis of higher-timeframe structure using standard Pivot High/Low logic, preventing the need for traders to manually switch timeframes.
Scanning: It utilizes request.security() to scan the user-defined Primary (default: 4H) and Secondary (default: 1H) timeframes.
Calculation: It identifies significant structural pivots using ta.pivothigh and ta.pivotlow functions with a customizable lookback period.
Data Integrity: It uses barmerge.lookahead_on with specific index offsets to ensure the data is non-repainting and represents confirmed closed-candle structure only.
Key Features:
Macro Context: Projects 4-Hour Supply & Demand zones directly onto your 5m or 15m execution chart.
Intraday Structure: Highlights 1-Hour breakdown/breakout levels that often act as "speed bumps" for intraday trends.
Zone Visualization:
Red Zones: 4H Supply / Major Resistance.
Green Zones: 4H Demand / Major Support.
Orange/Blue Zones: 1H Intraday Pivots.
Usage Guide:
Step 1: Add this indicator to your chart.
Step 2: Ensure it is running alongside the Kabroda BattleBox Command script.
Step 3: Use these zones as "Caution Areas." Do not execute trades directly into a Red 4H Zone, even if your lower timeframe triggers suggest a breakout. Context overrides execution.
Disclaimer: This tool is for structural analysis only. It identifies historical pivot points and projects them forward as potential areas of interest.






















