Smart QA Checker Market StructureSmart Checker Market Structure
This Pine Script v6 indicator automatically analyzes market structure and displays the results in a clear question‑and‑answer format on the chart
It identifies basic structural patterns using recent highs and lows
Higher Highs HH and Higher Lows HL indicate an uptrend
Lower Lows LL and Lower Highs LH indicate a downtrend
Based on this logic, the script classifies the current market trend as
Uptrend
Downtrend
Sideways
Analizy Trendu
SmartVol SuperTrend | OquantOverview
The SmartVol SuperTrend is an evolution of the traditional SuperTrend indicator. While the standard SuperTrend uses Average True Range (ATR) to calculate volatility bands, this version utilizes Volume-Weighted Standard Deviation (VWSD).
By integrating volume into the volatility calculation, the indicator attempts to filter out "quiet" price movements and reacts more dynamically to price action supported by high trading activity.
How It Works
The script follows a multi-step process to define trend direction:
Smoothing: It applies a 5-period EMA to the source price to reduce minor noise before calculating the bands.
Volume-Weighted Volatility: Instead of a simple Standard Deviation, the script uses a custom volume standard deviation function. It measures the dispersion of price around its Volume Weighted Moving Average (VWMA), weighting each price point's contribution by the volume of that bar.
Recursive Band Logic: Like the classic SuperTrend, the bands are "locked" in place. The lower band can only move up, and the upper band can only move down, until price closes on the opposite side, triggering a trend flip.
Visuals: The script highlights the trend by coloring the candles and the space between the price and the trend line, providing a clear visual of the current market bias.
Usefulness
By using Volume-Weighted Standard Deviation, this indicator accounts for real market activity. Consequently, it expands its bands more aggressively during high-volume breakouts while dampening its reaction to price moves when volume fades, potentially offering more robust band levels anchored to true market participation.
How to Use
Trend Identification: When the line is green and below price, the trend is bullish. When the line is purple and above price, the trend is bearish.
Factor Adjustment: Increase the Factor (default 1.8) to reduce sensitivity and avoid whipsaws in volatile markets. Decrease it for tighter tracking.
EMA Length: Adjust the EMA length to change how much price smoothing is applied before the trend calculation.
Note on Signals
This indicator is designed for trend-following. Like all lagging indicators, it performs best in trending markets and may produce false signals during sideways consolidation.
Settings
Source: The price source used for calculations (default: Close).
EMA Length: The lookback for the initial price smoothing (default: 5).
VWSD Length: The period used to calculate the volume-weighted volatility (default: 30).
Factor: The multiplier applied to the VWSD to determine the distance of the bands (default 1.8).
⚠️ Disclaimer: This indicator is intended for educational and informational purposes only. Trading involves risk, and past performance does not guarantee future results. Always test and evaluate indicators/strategies before applying them in live markets. Use at your own risk.
S.O.F.T Channel & Trend Line // Alerts V1.4S.O.F.T Channel & Trend Line // Alerts V1.4
This indicator draws parallel channels (support & resistance) and trend lines based on time-anchored geometry.
You can add this indicator multiple times on the same chart to create as many channels and/or trend lines as needed, each one with its own settings and alerts.
This makes it suitable for multi-structure analysis (short, medium, and long-term levels).
It is designed to be reliable for alerts, with a strong focus on visual clarity and real trading usability.
Version V1.4 introduces a more practical Auto Channel system that always stays inside the visible chart area, along with smoother angle control and a clean Single Line mode.
🔑 Key Features
📐 Parallel price channel (support & resistance)
📈 Single trend line mode (support or resistance)
🧭 Auto Anchors (Visible Mode)
Point 2 = last chart bar
Point 1 = user-defined number of bars back
➡️ Lines extended into the future
🎚️ Fine vertical offset
📐 Micro-angle control (points per 1000 bars)
🔔 Alerts on line or channel touch
🎨 Dynamic coloring:
Channel → blue
Single Line → green (rising) / red (falling) / gray (flat)
⚠️ IMPORTANT – About Line Handles (Read Carefully)
TradingView automatically displays drag handles on drawn lines.
These handles are visual only in this script.
❗ Do NOT use the vertical anchor handles to move the lines.
Moving the line manually does NOT change:
Anchor points
Channel geometry
Alert trigger levels
Alerts are calculated only from the script inputs, not from manual dragging.
Using the handles may cause a visual mismatch between the line position and alert behavior.
✅ Correct way to adjust the channel or line:
Use the script parameters:
Auto Anchors (bars lookback)
Vertical Offset
Angle control
This guarantees visual and alert consistency.
🧠 Why This Design
This indicator prioritizes:
Stability over repainting
Predictable alerts
Time-based structure instead of bar-index dependencies
It works consistently on:
Indices (NASDAQ, S&P, DAX…)
Metals (XAUUSD, XAGUSD)
Forex
Crypto
And on all timeframes:
M15 / M30 / H1 and higher
🎯 Typical Use Cases
Trend-following channels
Dynamic support & resistance
Mean reversion zones
Alert-based discretionary trading
Clean market structure visualization
📝 Notes
Manual dragging of lines is not supported by design.
Alerts are non-repainting once the anchors are defined.
This script does not read TradingView drawing tools (platform limitation).
IMPORTANT:
Do not manually drag the line anchor handles.
Manual dragging is visual only and does not affect alert levels.
All adjustments must be done using the indicator settings.
S.O.F.T – Stéphane Olivier Fabrice Trading
Built for clarity, precision, and real trading conditions.
TX Ultra Zone Consolidation Detector## TX Ultra Zone Consolidation Detector ##
Overview TX Ultra Zone is an advanced market structure utility designed to automatically detect periods of consolidation, indecision, and sideways movement. By isolating ranging markets, it helps traders avoid "choppy" conditions and prepare for high-probability breakouts.
What It Does
Automatic Detection: Draws visual boxes around price action when volatility compresses.
Breakout Projection: Once price breaks the box, it projects a "Shadow Zone" forward. This shadow serves as a key reference for Support-becomes-Resistance (or vice versa) retests.
Noise Filtering: Helps you stay out of the market when no clear trend exists.
How It Works (Conceptual) The script uses a multi-layer detection engine:
Regime Detection: It analyzes market efficiency and volatility (using adaptive logic) to determine if the market is trending or ranging.
Geometry Confinement: When a range is detected, the script locks the High and Low boundaries.
Expansion & Breakout: The box dynamically expands if price pushes the boundary slightly without a true breakout. A valid breakout closes the box and triggers the Shadow Extension.
How to Use
Add to Chart: Works best on volatility-sensitive assets (Forex, Crypto, Indices).
Wait for the Box: When a Purple Box appears, the market is resting. Do not trade trends inside the box.
Trade the Breakout: Wait for a candle close outside the box.
Use the Shadow: The Grey Shadow Extension indicates where price might return to "retest" the breakout level. This is often a prime entry zone.
Settings & Tuning
Detection Engine: Switch between Adaptive Volatility (Standard) or Momentum Compression (Alternative).
Zone Threshold:
45-50: Sensitive (More boxes, catches micro-ranges).
55-60: Strict (Only catches very clear, tight consolidation).
Shadow Extension: Adjust how far into the future the support/resistance zone is projected.
Disclaimer This tool is for educational and analytical purposes only. Past performance does not guarantee future results. Always use proper risk management.
Candle Born TrendlineThis indicator pinpoints the exact location where a candlestick formation begins. It allows for more accurate tracking of asset trends. It also helps monitor price trend reversals. Its purpose is to provide the user with a tool that allows for visual monitoring of price action. It was created especially for those who trade using scalping techniques.
Rolling Volume Boxes█ OVERVIEW
Rolling Volume Boxes is an indicator that visualizes high-volume zones on the chart in the form of dynamic volume “boxes.” Each box splits volume into bullish and bearish parts, allowing you to assess the dominance of buyers or sellers.
Thanks to the pseudo-volume option, the indicator can also be used on markets where real volume data is unavailable, although results may slightly differ.
The indicator is also suitable for trend analysis and identifying signs of trend weakening – everything depends on box parameters such as their size, moving average length, and multiplier.
█ CONCEPT
The indicator was created as a universal tool offering a non-standard market perspective. It combines volume analysis with trend structure and dynamic support and resistance levels.
Boxes are built using a rolling window of a fixed number of candles defined by the Bars per Box parameter. For each completed window, the indicator calculates the average volume of the entire group of candles and compares it to the volume moving average multiplied by the selected multiplier. A box is created only when this condition is met, meaning that zones appear exclusively in areas where aggregated volume for the whole box is significantly above average. The volume filter is therefore applied to the complete structure, not to individual candles.
Boxes do not overlap. A new box can be formed only after the previous one has fully ended, which keeps the market structure clean and prevents stacking or repainting. Each box always represents a separate and independent volume event.
Inside every box, candle volume is split into bullish and bearish parts. Green candles assign volume to buyers, while red candles assign volume to sellers. This method does not use classic candle delta, but instead builds a clear picture of dominance inside the zone.
Additionally, a Weighted Center is calculated for each box. It represents the true volume equilibrium level within the zone and often acts as a dynamic reaction point for price.
█ FEATURES
Data source
The indicator can use:
- candle volume
- pseudo volume (candle body size)
Calculations
- volume moving average (SMA)
- volume aggregation into boxes
- bullish / bearish volume split
- Weighted Center calculation
Visualization
- volume boxes (bullish / bearish)
- box boundary lines (high / low), extended to the right and removed after breakout
- dashed Weighted Center line, removed after breakout or after a defined number of bars
- labels showing bullish and bearish percentages
- graphical breakout signals
Alerts
- Box Breakout Up
- Box Breakout Down
- Weighted Center Up
- Weighted Center Down
█ HOW TO USE
Adding the indicator
Paste the code into Pine Editor or search for “Rolling Volume Boxes.”
Main settings
- Bars per Box – number of candles per box
- SMA Length – volume moving average length
- Multiplier – zone detection sensitivity
- Use Pseudo Volume – enable pseudo volume
- Show Labels – percentage labels
Key elements are box boundary lines and the Weighted Center line. They are extended to the right, disappear automatically after price breaks them, and act as dynamic market reaction levels.
█ APPLICATION
High-volume zones
Box levels often later become natural support and resistance levels.
Consolidations and ranges
With larger boxes, their boundaries often define the price range. If no breakout occurs for several candles after a box is formed, the probability of sideways movement increases – range trading may be considered.
Breakout trading
Breaking the upper or lower box boundary may signal:
- trend continuation
- the start of a new impulse
Trend analysis
In a strong trend, the internal structure of boxes helps detect decreasing dominance of one side and increasingly balanced proportions, which often acts as an early warning of trend weakening.
Combining with other tools
The indicator works best together with:
- trend indicators
- price levels (pivots, S/R)
- momentum oscillators
Example
- price approaches resistance + momentum weakens
→ in this situation, it is worth considering whether to open a position in line with the dominant trend or, alternatively, wait for a potential trend reversal
█ NOTES
- on markets without volume data, enable pseudo volume
- not a standalone trading indicator
- best results are achieved when used in market context
This indicator may not work properly on certain markets, especially on indices, synthetic instruments and all assets where volume and candle data are aggregated or artificially constructed (e.g. market cap indices, CFD, composite tickers).
In such cases, volume does not reflect real market activity and candles are not based on actual transactions, which makes the boxes lose their analytical value and potentially become misleading.
Nas Indicator It helps with finding directional bias based off of percentages and grounds me better in my execution.
Adaptive ZigZag Context v1 (Stable)Adaptive ZigZag Context v1 (Stable) is a versatile swing structure indicator that adaptively detects pivot highs and lows while providing higher timeframe context. It helps traders visualize market structure, trend bias, and potential reversal points with stable signals.
Key Features:
Detects swing highs and lows adaptively using a configurable pivot leg length.
Draws ZigZag lines connecting confirmed pivots for clear market structure visualization.
Highlights higher timeframe trend bias using EMA and background color (green for bullish, red for bearish).
Usage:
Analyze market swings and identify potential reversal zones.
Combine with other indicators for trend confirmation.
Useful for multi-timeframe analysis with higher timeframe EMA context.
Important Notes:
This indicator does not provide performance guarantees.
Past behavior does not imply future results.
Traders are encouraged to use this tool alongside other analysis techniques and risk management strategies.
TradeChillOut Stc icon ProfessionalHtf L 80 F 20 S50
Ribbon
1 L 180 F144 S3500
2 L10 F20 S50
3L160 F20 S50
4L96 F20 S50
5L 98 F20 S 50
...
A Humbled Trader Strategy + ChecklistHumbled Trader Swing Strategy + Checklist
This indicator is a complete swing trading system based on the high-probability strategies popularized by Humbled Trader. It is designed to help traders identify trend breakouts and low-risk momentum pullbacks on the Daily Timeframe.
The script combines trend filtering, automated resistance lines, and specific entry triggers into a single chart overlay, complete with a real-time Strategy Checklist Dashboard to confirm your setups instantly.
🎯 Core Components
Trend Filter (Purple Line): The 200 Simple Moving Average (SMA). This acts as your long-term trend filter. We only look for long trades when the price is above this line.
Momentum Guide (Orange Line): The 8 Exponential Moving Average (EMA). This tracks short-term momentum. In a strong trend, price will "ride" this line. We look to enter when price pulls back to touch this area.
Multi-Month Resistance (Orange Horizontal Line): Automatically plots the highest price over the last X Months (adjustable). This helps you instantly visualize the key level the stock needs to break out from.
Checklist Dashboard: A real-time table that evaluates Trend, Resistance, and Momentum conditions to give you a clear "✅ ENTER", "🚀 GAP UP", or "⏳ WAIT" signal.
🛠 How It Works
This indicator scans for two specific setups:
1. The Daily Gap Up ("GAP" Label) This signal appears when a stock shows strong momentum by gapping up overnight.
Condition: The stock opens at least 3% higher (adjustable) than the previous day's Close AND opens above the previous day's High.
Trend: Must be above the 200 SMA.
Visual: Marked with a green "GAP" label on the chart.
2. The Trend Pullback ("ENTER" Signal) This is a trend-following entry that lets you join an existing move with lower risk.
Condition: The stock is in an uptrend but dips down to touch or test the 8 EMA.
Validation: The candle must show a "dip" (red candle or lower close) to ensure we are buying a pullback, not chasing a top.
Visual: The Dashboard "Action Signal" will turn orange and display "✅ ENTER".
📋 The Checklist Dashboard
Located in the corner of your chart, this table provides a live status report for the current bar:
Trend (> 200 SMA):
🟢 Bullish: Price is in an uptrend. Safe to look for entries.
🔴 Bearish: Price is below the 200 SMA. Stay away.
Above Resistance?:
🟢 Breakout: Price has cleared the multi-month resistance line.
⚪ ---: Price is currently below the key breakout level.
Near 8 EMA?:
🟢 Yes: Price is near the "value zone" (8 EMA) for a potential pullback entry.
Action Signal:
🚀 GAP UP: Strong momentum gap detected.
✅ ENTER: Valid pullback entry detected.
⏳ WAIT: No clear setup found.
⚙️ Settings
Momentum EMA Length: Default is 8. Controls the sensitivity of the pullback line.
Trend SMA Length: Default is 200. The standard for long-term trend filtering.
Gap Up % Threshold: Default is 3.0%. Minimum overnight gap size required to trigger a signal.
Resistance Lookback (Months): Default is 3. The script will look back this many months to find and draw the key resistance line.
Table Position: Move the checklist to any corner of your screen.
⚠️ Disclaimer
This tool is for educational purposes only and does not constitute financial advice. Always manage your risk and use a stop loss.
ATR + BJ Signal V3ATR + BJ Signal (Optimized for GOLD)
This indicator is designed for mean-reversion scalping on GOLD, focusing on volatility expansion and momentum exhaustion.
Key features:
ATR-based candle expansion filter to detect abnormal moves
RSI overbought / oversold confirmation
Optional Bollinger Band deviation filter
Clear BUY / SELL signals for reversal entries
Automatic SL / TP projection lines and price labels (individually toggleable)
Best suited for short-term reversal and scalp trades during high-volatility conditions.
All visual components can be enabled or disabled independently. be enabled or disabled independently.
Above VWAP (Y/N)Background-only overlay script.
It does not plot VWAP, does not draw any lines, and exists only to color the chart background based on above / below VWAP.
Trappp's Advanced Multi-Timeframe Trading ToolkitTrappp's Advanced Multi-Timeframe Trading Toolkit
This comprehensive trading script by Trappp provides a complete market analysis framework with multiple timeframe support and resistance levels. The indicator features:
Key Levels:
· Monthly (light blue dashed) and Weekly (gold dashed) levels for long-term context
· Previous day high/low (yellow) with range display
· Pivot-based support/resistance (pink dashed)
· Premarket levels (blue) for pre-market activity
Intraday Levels:
· 1-minute opening candle (red)
· 5-minute (white), 15-minute (green), and 30-minute (purple) session levels
· All intraday levels extend right throughout the trading day
Technical Features:
· EMA 50/200 cross detection with alert labels
· Candlestick pattern recognition near key levels
· Smart proximity detection using ATR
· Automatic daily/weekly/monthly updates
Trappp's script is designed for traders who need immediate visual reference of critical price levels across multiple timeframes, helping identify potential breakouts, reversals, and pattern-based setups with clear, color-coded visuals for quick decision-making.
Advanced Trading ToolkitTrappp's Advanced Multi-Timeframe Trading Toolkit
This comprehensive trading script by Trappp provides a complete market analysis framework with multiple timeframe support and resistance levels. The indicator features:
Key Levels:
· Monthly (light blue dashed) and Weekly (gold dashed) levels for long-term context
· Previous day high/low (yellow) with range display
· Pivot-based support/resistance (pink dashed)
· Premarket levels (blue) for pre-market activity
Intraday Levels:
· 1-minute opening candle (red)
· 5-minute (white), 15-minute (green), and 30-minute (purple) session levels
· All intraday levels extend right throughout the trading day
Technical Features:
· EMA 50/200 cross detection with alert labels
· Candlestick pattern recognition near key levels
· Smart proximity detection using ATR
· Automatic daily/weekly/monthly updates
Trappp's script is designed for traders who need immediate visual reference of critical price levels across multiple timeframes, helping identify potential breakouts, reversals, and pattern-based setups with clear, color-coded visuals for quick decision-making.
Flexible S/R Channels🟩 Flexible S/R Channels is a visualization tool that draws curved support and resistance boundaries through user-defined anchor points. Unlike traditional trendlines and channels that force linear interpretation onto price action, this indicator captures the curved structures that markets frequently form—rounded tops and bottoms, parabolic advances and declines, arcing rallies and pullbacks. Three anchor points per curve define the shape; the indicator fits a smooth mathematical curve through these points and projects it forward. The approach is simple: draw what you see. Curved market structure that resists precise definition with traditional tools can now be rendered with mathematical accuracy.
The indicator bridges the gap between static drawing tools and programmable indicators. TradingView's arc tool draws curves but produces only visual pixels with no analytical value. Flexible S/R Channels creates live data series that integrate with other analysis tools. Four curve-fitting methods—Quadratic, Quadratic-Linear, Weighted Linear, and Natural Cubic Spline—accommodate different market structures. The curved levels naturally lend themselves to breakout and reversion strategies—applications left to the trader's discretion. The open-source code invites experimentation and customization.
💡 THEORY AND CONCEPT 💡
Traders have long relied on horizontal levels and diagonal trendlines to define support and resistance. Linear tools assume constant slope—a property rarely exhibited by actual market movement. When momentum accelerates or decelerates, price trajectories curve rather than hold to fixed angles. The resulting structures—parabolic advances during expansion phases, arcing pullbacks during consolidation, rounded formations at reversal points—represent changes in the rate of change itself. Traditional drawing tools cannot accommodate this variable geometry without sacrificing mathematical precision..
Flexible S/R Channels extends familiar support and resistance concepts into curved space. The approach is simple: draw what you see. When the eye recognizes a curved boundary in price action, this indicator provides the means to define it precisely. Three anchor points per curve—an initial point, an intermediate point, and a recent point—are all that is required. The indicator fits a smooth mathematical curve through these points and extends it forward as a projection.
This indicator represents a blend of human pattern recognition and algorithmic precision. Fully automated indicators make decisions without user input—efficient but detached from trader discretion. Manual drawing tools rely entirely on freehand skill—expressive but imprecise. Flexible S/R Channels occupies the middle ground. The trader identifies the curved structure; the algorithm renders it mathematically. The result is human insight expressed with computational accuracy—for traders who recognize curved structure in price action but lack precise tools to define it.
This projection is not a prediction. It is a visual hypothesis—a structured way of asking "if this trajectory continues, where would price be?" The underlying assumption is simple: like Newton's first law of motion, a trajectory in motion tends to continue unless acted upon by an external force. Future price action validates or invalidates the projection, just as it does with any trendline or channel.
TradingView offers an arc drawing tool for freehand curved lines, but these are purely visual—static pixels on a screen with no programmable value. Flexible S/R Channels bridges this gap. The fitted curves exist as data series that can generate alerts, trigger signals, and interact with other analysis tools. The visual drawing becomes operational structure.
🔁 CURVE METHODS 🔁
The indicator offers four curve-calculation methods, each producing different shapes suited to different market structures:
Quadratic — Fits a parabolic arc through the three anchor points. Best for smooth, continuous curves such as rounded tops and bottoms. It captures the natural "swing" of the market, assuming the momentum will maintain its current rate of acceleration or deceleration.
Quadratic-Linear — Uses a parabolic curve through the anchor points, then transitions to a straight line after the final anchor. Useful when curved structure gives way to linear trend continuation. This is the "bridge" between a turning market and a steady, directed move, preventing the projection from curving back on itself when the price begins to run.
Weighted Linear — Connects anchor points with straight line segments rather than a smooth curve. Suited for angular market structures with distinct inflection points. It treats the market as a series of rigid shifts, providing a clear "corridor" when the price is bouncing between sharp, diagonal levels.
Natural Cubic Spline — Produces the smoothest curve by minimizing abrupt directional changes. Ideal for organic, flowing market movements. It acts as a flexible spine that adapts to complex transitions without the rigid constraints of a fixed geometric shape.
Quadratic Fitting : A smooth, parabolic arc defines a curved resistance boundary. By fitting a mathematical path through three anchor points, the curve captures rounded structures and arcing price action that traditional linear trendlines fail to represent.
Weighted Linear Fitting : This method produces an angular, segmented path by connecting anchor points with distinct linear slopes. Unlike the continuous smoothness of a quadratic arc, the weighted linear approach creates a more jointed geometry, allowing for a precise match to market structures that exhibit sharp, localized changes in trajectory.
Natural Cubic Spline Fitting : This method creates a highly fluid, elastic curve that can accommodate complex price oscillations. In this instance, the curves define a narrowing range as support and resistance converge, highlighting the volatility compression that often precedes a significant breakout or breakdown from established structures.
🖱️ HOW IT WORKS 🖱️
1️⃣ Initial Setup
Unlike traditional indicators that calculate values automatically from price data, Flexible S/R Channels requires user-defined anchor points. This is intentional. The trader's eye is the pattern recognition engine—no algorithm can see the curved structure that experience and intuition reveal. The indicator waits for this input, then applies mathematical precision to render what the trader has identified.
The Recognition of Natural Structure : Effective analysis begins when a curved rhythm becomes visible within price action that traditional trendlines cannot satisfy. Identifying the specific swing highs and swing lows that define these boundaries is the first step in organizing a chart. By isolating three key pivots for resistance and three for support, the underlying framework of the market's trajectory is established, providing the necessary coordinates to accurately map the path.
Interactive Setup Workflow : Upon loading, the indicator prompts for the sequential selection of six points—three swing highs and three swing lows—to serve as the raw data for the calculation. While the chart remains blank during this initial phase, the curves generate instantly once the final anchor is confirmed. These points are not permanent; they appear as interactive grips that can be dragged in real time to refine the boundaries as the market structure evolves.
The indicator prompts for six sequential selections—three for resistance, three for support. The first three selections define the resistance boundary; the final three define support. This sequential grouping is distinct from zigzag-style selection patterns. Within each group, clicking order is flexible—the algorithm automatically sorts points chronologically, allowing traders to select visually prominent pivots in whatever sequence feels natural.
Structural Anchor Identification : Identifying three key swing highs and three key swing lows provides the foundation for the dual-curve geometry. These specific structural peaks and troughs serve as the coordinates for the mathematical models, ensuring that the resulting boundaries accurately reflect the underlying skeleton of the market action.
2️⃣ Interactive Adjustment
After the initial setup, all six anchor points are fully adjustable:
Points are automatically sorted chronologically regardless of selection order
Grip handles appear at each anchor location
Any point can be repositioned by clicking and dragging its grip handle
The curves recalculate instantly as points are adjusted
The algorithm produces a mathematically perfect curve based on the anchor points provided. If the result does not match the trader's vision, adjustments are immediate. This iterative refinement—see, adjust, refine—continues until the rendered curve represents what the trader sees in the price action. The user remains in control; the algorithm remains in service.
Interactive Channel Boundaries : Six user-defined anchor points—three for resistance and three for support —establish a non-linear range that moves beyond the constraints of a flat, horizontal channel. This configuration captures the arcing trajectory of the market while showing price action respecting the curved boundaries in a classic reversion pattern. By manually positioning these anchors, a dynamic dimension is added to the chart that maintains structural integrity even as the price follows a rounded path.
🛠️ SETTINGS 🛠️
Customizable Visual Feedback : Beyond the core geometry, the visualization offers various user-defined settings to tailor the chart's information density. From identifying specific price targets to toggling structural labels, these options allow the trader to adjust the level of detail to suit their personal analysis style while maintaining a clear view of the non-linear boundaries.
Configuration Options
Curve Method — Select the curve-fitting algorithm: Quadratic, Quadratic-Linear, Weighted Linear, or Natural Cubic Spline.
Projection Length — Number of bars to project the curves beyond current price action. Projections appear as dashed lines.
Visual Settings
Grip Size — Size of the draggable handles displayed at each anchor point. Set to zero to hide grips entirely.
Line Width — Thickness of the support and resistance curves.
Support Color / Resistance Color — Color settings for each curve.
Show Info Table — Toggle display of the info table showing the current curve method in the chart corner.
Advanced: Time/Price Coordinates
The settings panel includes precise time and price values for each of the six anchor points, grouped under Resistance Time/Price and Support Time/Price. These values are populated automatically when points are selected on the chart.
Adjusting anchor points by dragging the grip handles directly on the chart is faster and more intuitive. The time/price fields are available for situations requiring exact coordinate entry—such as aligning an anchor to a specific candle timestamp or a precise price level. These fields can be safely ignored unless fine-tuning is necessary.
🖼️ CHART EXAMPLES 🖼️
The Flexible S/R Channels indicator adapts to diverse market structures across multiple timeframes and instruments. Curved boundaries can define subtle momentum shifts in near-linear trends, dramatic reversals in rounding formations, or volatility compression as channels converge toward breakout points. The four curve-fitting methods accommodate different geometries—smooth parabolic arcs for continuous momentum changes, segmented linear paths for angular structures, and elastic splines for complex oscillations. Each anchor point adjustment instantly recalculates the curves, allowing iterative refinement until the rendered boundaries align with the trader's interpretation of market structure. Forward projections extend these mathematical relationships into future territory, providing visual context for hypothetical support and resistance levels if current trajectories persist.
Subtle Curve Alignment : Even in structures that appear linear, subtle curvature allows the channel boundaries to breathe with the market’s internal momentum. By utilizing three anchor points rather than two, the channel adapts to the slight acceleration of a trend, providing a more precise fit than a rigid, straight corridor.
Decelerating Momentum and Convergence : This classic rounding structure illustrates a transition where the initial wide oscillations between highs and lows begin to contract. As the boundaries converge, the curve captures the diminishing volatility and the shift in market energy, providing a clear visual representation of a trend losing its expansive momentum as it approaches a potential turning point.
Organic Trend Modeling : In an accelerating uptrend, the Natural Cubic Spline provides a highly adaptable boundary that mirrors the organic flow of momentum. This non-traditional approach allows the channel to follow complex price pulses that a standard linear trendline would likely cut through, maintaining a precise fit even as the angle of the trend shifts over time.
Non-Linear Projections : Unlike standard trendlines that converge at a fixed rate, curved projections adapt to the historical momentum of the move. This allows the indicator to map a dynamic squeeze, capturing the subtle nuances of how price action tightens toward an apex. It provides a more sophisticated view of future convergence points that traditional linear channels often fail to anticipate.
The "Draw What You See" Philosophy : Market structures are rarely perfect, and this example highlights the indicator’s ability to map unconventional rhythms. Rather than forcing price into a predefined category, the tool remains flexible enough to define any structural path the trader identifies. If you can see a trend's trajectory, the indicator can provide the mathematical framework to support it.
Comparative Projection Modeling : Using identical anchor points as above, this example demonstrates how selecting a different calculation method can alter the projected path. While the historical fit remains precise, the variation in the forward-looking trajectory allows traders to explore multiple mathematical interpretations of the same market structure, choosing the model that best aligns with the current volatility and trend behavior.
Extended Timeframe Channel Definition : This multi-year perspective demonstrates the indicator's ability to define curved channel boundaries across extended timeframes spanning hundreds of bars and multiple market cycles. The resistance curve captures the rounded distribution of swing highs while the support curve follows the accelerating base formation, creating a non-linear channel that frames long-term structural trends more precisely than traditional parallel channels or static trendlines.
Rounding Bottom Reversal and Channel Convergence : This example captures a classic rounding bottom formation—a reversal pattern that linear tools cannot adequately define. The Quadratic method produces a smooth parabolic arc through the resistance anchors, tracing the deceleration of the downtrend, the capitulation low, and the subsequent re-acceleration upward as a single continuous curve. The support boundary mirrors this momentum shift from below, creating a curved channel that narrows toward current price. This convergence represents structural compression—the boundaries tightening as volatility contracts and directional resolution approaches. Price action oscillates within these non-linear boundaries, demonstrating that channel behavior persists even when the geometry is curved rather than parallel. The projection extends both curves forward, mapping the hypothetical trajectory if the current momentum structure continues, providing visual context for potential breakout or breakdown levels as the channel reaches its apex.
Built-in Precision vs. Algorithmic Power : While TradingView offers basic curve drawing tools (shown here as dashed lines), the Flexible S/R Channels indicator elevates this concept into a functional analytical framework. By converting manual observations into mathematical models, it moves beyond mere drawing to provide a data-driven structure that can be utilized for advanced technical analysis and future Pine Script trading logic.
⚙️ TECHNICAL DETAILS ⚙️
Curve Fitting vs. Overfitting: The term curve fitting often carries negative connotations in quantitative analysis due to its association with overfitting—the practice of adjusting a model until it perfectly matches historical data, producing an illusion of accuracy that fails when applied to new data. The application here is fundamentally different. Flexible S/R Channels does not optimize parameters to maximize historical fit; it constructs a mathematical curve through user-selected anchor points, then projects that curve into unknown territory. The curve is not fitted to price data—it is fitted to structural pivots identified by the trader. The projection represents a hypothesis about trajectory continuation, not a prediction derived from statistical optimization. Future price action validates or invalidates this hypothesis in real time, exactly as it does with any trendline or channel. The anchor points remain fixed unless manually adjusted, ensuring the curve does not adapt to new data retroactively.
Non-Repainting Behavior: The indicator does not repaint historical bars. The mathematical coefficients that define each curve are calculated once—when the final anchor point is set—and stored as fixed values. These coefficients remain constant unless an anchor point is manually repositioned. The backfit polyline is drawn once using these coefficients, spanning the known range from the first to last anchor point. The plot() function applies the same coefficients to each subsequent bar, updating in real-time as new bars form but never altering previously plotted values. The projection polyline extends forward from the current bar using the same fixed coefficients, projecting a user-defined number of future bars (maximum 500). This projection redraws on each tick to maintain its position relative to the moving current bar, but the mathematical trajectory remains constant—only the starting point advances. The current bar's curve value will update tick-by-tick as price develops, which is standard real-time behavior, not repainting. Once a bar closes, all curve values on that bar are permanent. The hybrid architecture (backfit polyline for known history, plot() for unlimited real-time range, projection polyline for controlled forward extension) prevents overflow errors while maintaining non-repainting integrity across all components.
🗒️ NOTES 🗒️
The indicator renders curves based on any anchor points provided without validation. Unusual anchor placement produces mathematically accurate but potentially non-useful results. Adjustment is iterative—if the curve doesn't match expectations, reposition the anchors.
Because anchor points are stored as specific time and price coordinates, a new instance of the indicator should be added when analyzing a different chart or timeframe.
Grip handles can be hidden by setting Grip Size to zero in the settings. This is useful for clean chart screenshots or presentations where interactive elements are not needed.
Projection length can be set to zero if forward-looking curves are not desired. The indicator will still render the backfit curves through the anchor points and continue plotting in real-time without the dotted projection extensions.
Anchor points remain fixed at their selected time-price coordinates as new bars form. The curves extend forward automatically from these historical anchors, allowing observation of how projected trajectories align with developing price action.
⚠️ DISCLAIMER ⚠️
The Flexible S/R Channels indicator is a visual analysis tool designed to illustrate geometric market inertia and serve as a framework for understanding dynamic support and resistance. While the indicator generates structural channels and projected paths, no guarantee is made regarding the accuracy or profitability of these projections. Like all technical indicators, the curves and boundaries generated by this tool may appear to align with favorable trading opportunities in hindsight. However, these visualizations 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 🧠
Flexible S/R Channels is part of a broader collection of tools designed to provide structured market analysis. This includes the Grid Bot Simulator , the Grid Bot Auto , the Grid Bot Parabolic , and the Gridbot Ping Pong . While each tool serves a distinct purpose, they all utilize dynamic anchor mechanics and non-linear boundaries to adapt to evolving 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 Flexible S/R Channels 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.
Trend Autobahn WVF FuelTrend Autobahn – Fuel on Stoch Cross (14, 3, 22, 3)
Trend Autobahn is a visual momentum engine inspired by highway physics.
Price does not “guess” direction — it moves only when fuel exists and slows down when magnetic pressure increases.
This indicator replaces classic signals with a cause–effect model:
🔋 Fuel Logic (Stochastic Cross)
Fuel is generated only at stochastic %K–%D crosses (14, 3)
No cross = no fuel
Cross quality defines fuel strength
Fuel is displayed as a vertical fuel bar, with a dot at the top to mark a valid refill moment
This means:
Momentum is not continuous — it must be earned.
🧲 Magnetic Field (WVF – 22)
The lower panel shows a pink WVF magnetic area
As WVF rises, the area darkens
A stronger magnetic field pulls price down or slows upward movement
This creates a natural law:
Rising magnetic pressure resists upward motion, even if fuel exists
The Reaper WhistleThe Reaper Whistle is a specialized momentum oscillator designed for high-frequency scalping and precision trend exhaustion detection. By combining a smoothed Relative Strength Index (RSI) with a customizable Moving Average, it filters out market noise to highlight institutional overbought and oversold extremes.
How to Use:
This indicator is best used to identify high-probability reversal points or as a trend-following momentum filter.
Precision Entries (Scalping):
Strong Buy: Watch for the RSI MA to enter the 10 level. This indicates extreme bearish exhaustion.
Strong Sell: Watch for the RSI MA to reach the 90 level. This indicates extreme bullish exhaustion.
Standard Momentum Zones:
20 Level (Buy Zone): Look for long setups when the oscillator dips here during a broader uptrend.
80 Level (Sell Zone): Look for short setups when the oscillator spikes here during a broader downtrend.
Exit Strategy:
Use the 50 level (TP) as a primary target for mean-reversion trades. Crossing the 50 line often indicates a shift in momentum back to neutral.
Settings Customization:
Use the MA Type input to switch between SMA (Standard), EMA (Faster), or WMA (Weighted) to better match the volatility of the asset you are trading.
Alerts Included:
The script features built-in alert conditions for when the RSI MA crosses the key 80 (Sell) and 20 (Buy) thresholds, allowing you to monitor multiple charts without being glued to the screen.
Tactiko Master Combo]The Tactiko Master Combo is an institutional-grade toolkit designed to consolidate essential Supply and Demand (SMC) metrics into a single view. It features dynamic Buyside and Sellside liquidity detection, pivot-based Supply and Demand zones with Points of Interest (POI), and a weighted Volume Profile with a real-time Point of Control (POC). This indicator is designed to help traders identify areas of high-volume interest and liquidity confluences while maintaining chart clarity.
Weekly Open / Close S&R (Last 4 Weeks)Weekly open and close of candles from the last 4 weeks for major support and resistance.
13/34 EMA Ribbon The 13/34 EMA Ribbon is a 15-minute overlay indicator designed to identify intraday trend direction and momentum. It plots a 13 EMA and 34 EMA with a highlighted ribbon between them, making EMA crosses and trend strength easy to spot for trade entries and trend continuation.
Piv X# Piv X Pro - Multi-Layer Reversal Detection System
## Overview
Piv X Pro is an advanced technical analysis indicator that combines dynamic pivot detection, Williams %R momentum divergence analysis, and multiple VWAP anchoring methods to identify high-probability mean reversion opportunities. Unlike simple indicator combinations, this script implements a layered filtration system where each component validates and refines signals from the previous layer, resulting in significantly fewer but higher-quality reversal setups.
## Core Methodology
### 1. Dynamic ATR-Based Pivot Detection
The script uses an adaptive pivot detection algorithm that adjusts sensitivity based on market volatility. Instead of fixed lookback periods, pivot strength is calculated dynamically using Average True Range (ATR):
**Calculation:** `pivot_strength = max(min_strength, min(ATR / mintick * multiplier, max_strength))`
This ensures:
- More sensitive pivots in low volatility (smaller ATR)
- More significant pivots in high volatility (larger ATR)
- Automatic adaptation across different market conditions and timeframes
**Significance Filtering:** Pivots must exceed a minimum ATR distance from recent price action (default 0.3 ATR) to filter noise. This prevents minor price fluctuations from being marked as significant pivots.
**Volume Confirmation (Optional):** Pivots can optionally require volume spikes (default 1.5x average volume) to ensure institutional participation.
### 2. Williams %R Momentum Divergence Engine
The script detects classic and hidden divergences between price pivots and Williams %R oscillator readings:
**Bullish Divergence Detection:**
- Price makes a lower low (confirmed pivot low)
- Williams %R makes a higher low (momentum improving)
- Divergence occurs in oversold zone (Williams %R ≤ -80)
- Lookback range: 60 bars maximum
**Bearish Divergence Detection:**
- Price makes a higher high (confirmed pivot high)
- Williams %R makes a lower high (momentum weakening)
- Divergence occurs in overbought zone (Williams %R ≥ -20)
- Lookback range: 60 bars maximum
**Divergence-Anchored VWAPs:** When a divergence is detected, a new VWAP calculation begins from that point, tracking institutional positioning relative to the momentum shift. This provides a dynamic mean reversion target that resets at each confirmed divergence.
### 3. Confluence Scoring System
Each detected pivot receives a numerical score (0-150+ points) based on multiple independent confirmation factors:
**Scoring Components:**
- Base Pivot Detection: 10 points
- Volume Spike Confirmation: 15 points
- Higher Timeframe Trend Alignment (4H EMA): 20 points
- RSI Extreme Levels (oversold/overbought): 25 points
- Mean Reversion Distance (>2.5 ATR from HTF MA): 20 points
- Exhaustion Patterns (price move + volume spike): 10 points
- ATR Price Confirmation: 10 points
- RSI Divergence: 15 points
- Swing Failure Pattern (SFP): 15 points
- Liquidity Sweep: 10 points
- Candle Reversal Confirmation: 10 points
- Key Level Alignment (previous day/week highs/lows): 10 points
- Fair Value Gap (FVG) Fill: 10 points
- Session Weighting (London/NY sessions): 10 points
- Multi-Timeframe Pivot Confluence: 15 points
**Zone Classification:**
- Regular Zones: Score 60-89 (green/purple boxes)
- Golden Zones: Score 90+ (yellow boxes with thicker borders)
Higher scores indicate stronger confluence and higher probability setups, but no prediction is guaranteed.
### 4. Mean Reversion Distance Filter
The script calculates how far price has stretched from the higher timeframe moving average:
**Calculation:** `distance_from_htf_ma = (close - HTF_EMA) / ATR`
**Mean Reversion Condition:**
- For long setups: Price >2.5 ATR below HTF EMA when HTF trend is up
- For short setups: Price >2.5 ATR above HTF EMA when HTF trend is down
This ensures pivots are only highlighted when price is statistically stretched and likely to revert toward the mean.
### 5. Multi-Period VWAP Framework
The script provides multiple VWAP calculations for different analysis purposes:
**Extreme VWAPs:**
- Bottom VWAP: Anchored to the absolute lowest low in the lookback period (default 50 bars)
- Top VWAP: Anchored to the absolute highest high in the lookback period
**Periodic VWAPs:**
- 4D VWAP: Resets every 4 days
- 9D VWAP: Resets every 9 days
- 4H VWAP: Resets every 4 hours
- 8H VWAP: Resets every 8 hours
- Weekly VWAP: Resets at the start of each week
- Monthly VWAP: Resets at the start of each month
- Yearly VWAP: Resets at the start of each year
**Previous Period VWAPs:**
- Previous Weekly, Monthly, and Yearly VWAPs are displayed as reference levels for support/resistance
**Divergence VWAPs:**
- Bullish Divergence VWAP: Resets at each bullish Williams %R divergence
- Bearish Divergence VWAP: Resets at each bearish Williams %R divergence
### 6. IBSS Pro Mean Reversion System
An integrated scalping system that provides entry signals within high-probability pivot zones:
**Components:**
- Dual EMA System: Fast EMA (12) and Slow EMA (26) with color-coded trend visualization
- RSI Oversold/Overbought Detection: Configurable levels (default 30/70)
- Zone-Based Entry: Signals only trigger when price is within active pivot zones (0.3 ATR around confirmed pivots)
- ATR-Based Dynamic Stops: Stop losses trail with position using ATR multiplier
**Signal Generation:**
- Buy signals: RSI crosses above oversold + Fast EMA > Slow EMA + Price in pivot low zone
- Sell signals: RSI crosses below overbought + Fast EMA < Slow EMA + Price in pivot high zone
## Why This Combination is Unique
This is not a simple indicator mashup. The components work together in a specific hierarchy:
1. **Williams %R Divergence** identifies momentum shifts before price confirms the reversal
2. **Dynamic Pivots** mark actual price structure extremes with ATR-based significance filtering
3. **Confluence Scoring** quantifies setup quality using 10+ independent confirmation factors
4. **Mean Reversion Distance** confirms price is statistically stretched (>2.5 ATR from HTF MA)
5. **VWAP Framework** tracks institutional positioning and provides objective mean levels
6. **IBSS Signals** provide precise entries within high-probability zones
Each layer filters the previous one, resulting in significantly fewer but higher-quality signals than any single indicator alone. The divergence-anchored VWAPs are unique - they reset at momentum shifts rather than arbitrary time periods, providing more relevant mean reversion targets.
## How to Use This Indicator
### For Swing Trading (15m-1H Charts)
1. Wait for a major pivot to form (diamond marker appears below/above bars)
2. Check the confluence score displayed in the zone label
3. Look for Golden Zones (score 90+, yellow boxes with thicker borders)
4. Enter when price enters the pivot zone (0.3 ATR around the pivot)
5. Use the nearest VWAP level as first target
6. Set stop loss beyond the pivot zone (typically 0.5-1 ATR)
### For Scalping (5m-15m Charts)
1. Enable IBSS Pro Signals in settings
2. Wait for price to enter an active pivot zone (colored boxes appear)
3. Take IBSS diamond signals that form within zones
4. Use ATR-based stop losses (dashed lines appear automatically if enabled)
5. Exit at pivot VWAP or opposite zone edge
### Visual Elements Explained
- **White/Purple Crosses**: Williams Divergence VWAPs (momentum-based mean reversion targets)
- **Green/Red Crosses**: Bottom/Top VWAPs (absolute extreme levels)
- **Colored Boxes**: Pivot reversal zones (opacity indicates confluence score)
- **Yellow Boxes**: Golden zones (90+ score, highest probability setups)
- **Small Diamonds**: Regular pivot detections
- **Green/Red Tiny Diamonds**: IBSS scalp entry signals (if enabled)
- **White/Purple MAs**: IBSS trend filter (12/26 EMA with cloud)
- **Dotted Lines**: Structure lines connecting consecutive pivots of same type
- **Blue Dashed Lines**: Market Structure Shift (CHoCH) markers
### Recommended Settings
**Conservative (Lower Timeframes 1m-5m):**
- ATR Pivot Strength: 0.8-1.0
- Volume Threshold: 2.0
- Min Pivot Significance: 0.4-0.5
- Enable ATR Confirmation: Yes
- Real-Time Mode: Off
- Score Threshold: 80+
**Aggressive (Higher Timeframes 15m-1H):**
- ATR Pivot Strength: 0.6-0.8
- Volume Threshold: 1.5
- Min Pivot Significance: 0.3
- Enable ATR Confirmation: No
- Real-Time Mode: On
- Score Threshold: 60+
## Chart Requirements
This indicator should be used **alone on a clean chart** with:
- Standard candlestick or bar chart type (NO Heikin Ashi, Renko, Point & Figure, or Range charts)
- No other indicators overlaid (all functionality is self-contained)
- Symbol and timeframe clearly visible in chart
- Full indicator name "Piv X Pro" visible in chart legend
## Important Disclaimers
- Past performance does not guarantee future results
- All signals are probabilistic indicators, not trading guarantees
- Use proper risk management and position sizing
- Test thoroughly on demo accounts before live trading
- Higher confluence scores indicate better setups but no prediction is certain
- Mean reversion strategies work best in ranging/choppy markets; may underperform in strong trending markets
- The lookahead bias warning: HTF EMA uses `barmerge.lookahead_on` for trend filtering only (not for signal generation), which may cause historical bars to show different trend states than real-time
## Key Differentiators
Unlike basic pivot or VWAP indicators:
- **Dynamic ATR-based pivot detection** vs static lookback periods
- **Quantified confluence scoring** vs subjective interpretation
- **Mean reversion distance filtering** (>2.5 ATR from HTF MA) vs all pivots shown
- **Divergence-anchored VWAPs** vs static period VWAPs
- **Multi-layer confirmation system** (10+ independent factors) vs single signal generation
- **Integrated scalping system** that only triggers in high-probability zones
This script is open-source and available for educational purposes. Users are encouraged to understand the methodology before using it for live trading decisions.
Ale Tonkis Swing Failure + TP RRSwing Failure Pattern (SFP) indicator with multi-timeframe confirmation and dynamic Take Profit logic.
It detects bullish and bearish SFP setups, confirms them using 5m and 15m timeframes, and automatically plots Take Profit targets with a 1:2 or 1:3 risk–reward ratio, based on previous highs and lows (market structure pivots).
Designed for Forex and Crypto trading, fully visual and non-repainting.






















