Composite Regression Channel (3-Scale RMS)A multi-scale composite regression channel that adapts to market structure and highlights statistically extreme price rejections with momentum confirmation.
Полосы и каналы
Daily maximum price range for Credit SpreadsVolatility & Momentum for Credit Spreads
It is a specialized mean-reversion tool designed primarily for options traders focusing on Credit Spreads (specifically 0DTE on SPX) and intraday reversals. By combining Volume Weighted Average Price (VWAP) with VIX-adjusted volatility bands, this indicator identifies statistical extremes where price is likely to revert.
Unlike standard Bollinger Bands or Keltner Channels, TITAN adapts its width based on real-time implied volatility (VIX), ensuring that your "overextended" zones are accurate whether the market is calm or chaotic.
🎯 Core Concept
The indicator relies on the principle that price moves within a definable "Daily Range" relative to the VWAP. When price pushes to the outer limits of this range while simultaneously hitting RSI extremes; it signals a high-probability reversal setup ideal for selling premium.
🛠 How It Works
The engine is built on three pillars:
Volatility-Adaptive Bands: The bands are calculated using a 14-day Average Daily Range (ADR), which is then dynamically scaled by the current VIX relative to a baseline. If VIX spikes, the bands widen instantly to keep you safe from premature entries.
Momentum Triggers: Signals are generated only when the RSI (14) hits extreme Overbought (>70) or Oversold (<30) levels.
"Golden Hour" Filtering: To avoid market open noise or late-day chop, the indicator includes a customizable time filter (Default: 10:15 – 11:30 AM EST). Signals outside this window are suppressed to enforce trading discipline.
🚀 Key Features
Visual Strategy Simulation: The indicator now includes a built-in "Strike Simulator." Upon the first valid signal of the session, it automatically plots a horizontal "Strike Line" at the Outer Band ± a user-defined buffer (e.g., 10 points). This helps you visualize your theoretical strike price for the rest of the day.
Bull & Bear Zones: Color-coded fills (Green for Bullish Buy Zones, Red for Bearish Sell Zones) make it easy to see market context at a glance.
Live Dashboard: A Heads-Up Display (HUD) in the bottom right shows real-time RSI values, Golden Hour status, and current signal state.
Unified Alert System: A single master alert condition triggers if price hits an RSI extreme OR touches a volatility band during your active trading window.
📉 How to Trade It (Example Strategy)
Wait for the Window: Ensure the "Golden Hour" on the dashboard reads ACTIVE (Default 10:15 AM EST).
Identify the Zone: Short Setup (Call Credit Spread): Price pushes into the Red Zone (Outer High). Long Setup (Put Credit Spread): Price pushes into the Green Zone (Outer Low).
Confirm the Signal: Look for the Diamond Icon. This confirms RSI has hit the extreme threshold.
Check the "Strike Line": Use the simulated horizontal line to identify where your short strike would be (Outer Band + Buffer) to verify it is at a safe distance from current price.
⚙️ Settings
ADR Length: Lookback period for daily range calculation (Default: 10).
Baseline VIX:* The standard VIX level used for normalization (Default: 15.0).
Inner/Outer Multipliers: Controls the width of the bands.
Golden Hour: The specific time window for valid signals.
Strike Buffer: Points added to the outer band to simulate your option strike price.
⚠️ Disclaimer
This tool is for informational purposes only. Trading options, especially 0DTE credit spreads, involves significant risk. Always backtest strategies and manage risk accordingly.
Trend Entry Signal v2Used for entry signals. More efficient for scalp trades, at least 70% correct prediction, more efficent on stablecoins.
Monthly Weekly Daily ATR Calculation A weekly options trading script showing optimal levels using daily and weekly ATR ranges and stop loss. (Open ± ATR)
SniperConfimationSignalLiterally the best indicator for sniper trades confirmation ever, use volume footprint to boost your accuracy as well, free btw.
Motif Multi-Method Range/Trend DetectorI have no idea what this does, but it looks fancy... there are a bunch of colors and lines
FractalMod for TV with breakout alertsFractalsMod (MT4 → Pine) is a TradingView indicator converted from a custom MT4 (MQL4) fractal indicator.
This script replicates the behavior of the original MT4 version as closely as possible, including:
Confirmation-based fractals using left/right bar logic
Persistent horizontal levels derived from confirmed fractals
MT4-style “buffer-like” behavior using segmented horizontal lines
Key Features
MT4-compatible fractal logic
Uses leftbars and rightbars to confirm fractal highs/lows, equivalent to MT4 custom fractal indicators.
Segmented horizontal lines (MT4 buffer style)
Each confirmed fractal starts a new horizontal line segment from the original pivot bar.
When a new fractal is confirmed, the previous segment is stopped at the new pivot point, closely mimicking MT4 indicator buffers.
Latest fractal tracking
The most recently confirmed Up/Down fractal levels are tracked internally and used for breakout detection.
Breakout alerts (not confirmation alerts)
Alerts are triggered when the current price breaks above the latest Up fractal or below the latest Down fractal.
Breakout detection can be configured to use:
Close price only (confirmation-based), or
High/Low including wicks.
Clean visual control
Single arrow per confirmed fractal (no duplicate markers)
Optional display of fractal markers and horizontal lines
Custom colors and line width for Up/Down fractals
Typical Use Cases
Fractal-based support / resistance visualization
Breakout trading using the most recent confirmed fractal levels
MT4 → TradingView workflow migration while preserving indicator behavior
This script is designed for traders familiar with MT4 fractal indicators who want a faithful and practical TradingView equivalent without repainting on confirmed signals.
FractalsMod (MT4 → Pine) は、
MT4(MQL4)で使用されていた カスタム Fractal インジケーターを TradingView(Pine Script)へ移植したものです。
元の MT4 インジケーターの挙動を可能な限り忠実に再現することを目的としており、以下の特徴を持ちます。
主な特徴
MT4互換のフラクタル判定ロジック
leftbars / rightbars を用いたフラクタル確定方式で、
MT4 のカスタム Fractal インジケーターと同等の確定条件を再現しています。
MT4のバッファ挙動を再現した水平ライン
フラクタルが確定すると、その ピボット位置から水平ラインを開始します。
新しいフラクタルが確定した場合、それまでのラインは新しいピボット位置で停止し、
区間ごとのライン構造で MT4 のバッファ表示に近い見た目を実現しています。
最新フラクタル価格の内部保持
直近で確定した Up / Down フラクタル価格を保持し、
ブレイク判定やアラートに利用します。
ブレイク専用アラート(確定時アラートなし)
フラクタル確定時ではなく、
価格が最新の Up フラクタルを上抜けたとき
価格が最新の Down フラクタルを下抜けたとき
にアラートを出す設計です。
ブレイク判定は
終値ベース(ダマシを減らす)
ヒゲ込み(高値 / 安値)
を設定で切り替えられます。
視認性と制御性を重視した設計
フラクタル矢印は 確定時に1本のみ表示(重複なし)
Up / Down で色分けされたラインと矢印
ライン表示・矢印表示の ON / OFF 切り替え可能
想定される用途
フラクタルを用いた サポート / レジスタンスの可視化
直近フラクタルを基準とした ブレイクアウト戦略
MT4 から TradingView への移行時に、
ロジックと見た目をできるだけ変えずに使いたい場合
本スクリプトは、
MT4のフラクタル系インジケーターに慣れたトレーダーが、
TradingViewでも違和感なく使えることを重視して設計されています。
6pm ATR% Bands + Outside SD BandsATR Bands that are adjustable with STD ATR
Up to 3 bands, and 3 standard deviations, also can change the ATR range
Linear Regression Channel with Multi Sigma and Multi Time FrameThis indicator applies multi-sigma linear regression across multiple institutional time horizons to quantify the line of best fit in equities and index markets. By combining multi-timeframe presets with statistically derived deviation bands, it highlights trend structure, volatility expansion, and regime transitions with clarity.
Features
Auto-Multi-Timeframe presets map directly to institutional trend horizons (daily, weekly, monthly) for accurate regime detection.
Multi-Sigma bands (+/-1, +/-2, +/-3) reveal volatility structure, trend strength, and statistical extremes.
The regression line uses a true least-squares calculation, recalculated each bar for precise trend alignment.
Deviation mode allows switching between standard deviation and max deviation to support different volatility models.
A linked PDF on GitHub provides full documentation, derivations, and institutional use-case examples.
More Information Can Be Found Here:
github.com
VFI MagnoVFI – Virtual Football Index (Bet365)
Indicador estatístico para leitura do “preço” (linha branca) em relação ao Fair Value (média) e suas bandas de desvio padrão.
Quando o preço sai da zona normal:
OVER Signal (triângulo verde) → preço abaixo da Lower Band + momentum virando para cima (tendência de correção / alta).
UNDER Signal (triângulo vermelho) → preço acima da Upper Band + momentum virando para baixo (tendência de correção / queda).
As zonas coloridas no fundo destacam excesso (vermelho) e escassez (verde).
-----------
VFI – Virtual Football Index (Bet365)
A statistical mean-reversion indicator that compares the current “price” (white line) against a Fair Value baseline (SMA) and standard deviation bands.
When price moves outside the normal range:
OVER Signal (green triangle) → price below the lower band + momentum turning up (potential rebound / correction).
UNDER Signal (red triangle) → price above the upper band + momentum turning down (potential pullback / correction).
Background colors highlight extreme zones: green (scarcity/undersold) and red (excess/overbought)
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.
TVS
#Overview
The TVS strategy looks for areas of low volatility or ‘squeezes’ and then relies on momentum to identify a breakout. This is intended to help a trader wait for a consolidation phase before entering a market when energy is released.
---
How It Works
TVS uses Bollinger Bandwidth as a measure of market compression to define the "squeeze" conditions of low volatility. When the distance between the upper and lower Bollinger Bands contracts below its own average, the indicator flags the market as compressed and color codes candles purple. Once volatility expands and the squeeze ends, TVS toggles on momentum confirmation via RSI: candles light green as bullish momentum is in control and red when bearish momentum takes over. The color system observes strict priority whereby volatility compression overrides all trend signals, with any consideration of direction being subject to the release of the squeeze.
Color Priority
• Deep Purple: Active squeeze (low volatility)
• Green / Red: Squeeze released
– Green: Bullish
– Red: Bearish
---
Trading Checklist
-Purple candles? → Market is compressing
-Purple ended?→ Breakout phase
-Green or Red? → Direction confirmed
-Near key structure? → Manual validation
Settings and Usage
Timeframes: 15m–Daily
Best Markets: Forex majors, liquid stocks
Inputs: length (BB basis), mult (band sensitivity)
Risk Notes:
Squeezes can fail and reverse
No built-in stop-loss
News reduces signal reliability
Risk Management is mandatory.
MTF Dual Supertrend with Bands and PivotSUPERTREND WITH UPPER AND LOWER BANDS + PIVOT POINTS + MULTI-TIMEFRAME - INDICATOR DESCRIPTION
OVERVIEW:
This Pine Script indicator combines the SuperTrend technical analysis tool with visible upper and lower bands, standard daily pivot points, AND a second SuperTrend from a different timeframe. SuperTrend is a trend-following indicator that helps traders identify the current market direction and potential entry/exit points, while pivot points provide key support and resistance levels. The multi-timeframe feature allows you to see trends from different time perspectives simultaneously.
HOW IT WORKS:
The indicator uses the Average True Range (ATR) to calculate dynamic support and resistance bands around the price:
1. BASIC BANDS CALCULATION:
- Upper Band = HL2 + (ATR × Multiplier)
- Lower Band = HL2 - (ATR × Multiplier)
- HL2 = (High + Low) / 2
2. FINAL BANDS ADJUSTMENT:
- Bands are adjusted based on price movement to create a trailing stop mechanism
- Upper band only moves down or stays flat when price is above it
- Lower band only moves up or stays flat when price is below it
3. SUPERTREND LINE:
- Switches between upper and lower bands based on price crossovers
- When price is above the SuperTrend line = UPTREND (green)
- When price is below the SuperTrend line = DOWNTREND (red)
4. STANDARD PIVOT POINTS:
- Calculated based on previous day's High, Low, and Close
- Pivot Point (PP) = (High + Low + Close) / 3
- Resistance levels: R1, R2, R3 (calculated above PP)
- Support levels: S1, S2, S3 (calculated below PP)
- These levels act as potential support/resistance zones
5. SECOND SUPERTREND (MULTI-TIMEFRAME):
- Displays a second SuperTrend from a different timeframe (default: 60 minutes/1 hour)
- Customizable timeframe - choose from 1min, 5min, 15min, 30min, 60min, 240min, Daily, Weekly, etc.
- Independent ATR period and multiplier settings
- Shows its own upper and lower bands (purple color)
- Color-coded SuperTrend line (lime for uptrend, orange for downtrend)
- Helps identify alignment between different timeframes
- Can be enabled/disabled via settings
- Bands can be toggled separately
KEY FEATURES:
✓ Visual upper and lower bands showing the ATR-based zones (blue)
✓ Color-coded SuperTrend line (green for uptrend, red for downtrend)
✓ Second SuperTrend from custom timeframe with its own bands (purple)
✓ Second SuperTrend line (lime/orange colors)
✓ Buy/Sell signals when trend changes
✓ Optional signals for second SuperTrend (small triangles)
✓ Daily Pivot Points with 3 resistance and 3 support levels
✓ Customizable ATR period and multiplier for both SuperTrends
✓ Background color indication of current trend
✓ Built-in alerts for both SuperTrend trend changes
✓ Toggle options for all bands, signals, pivot lines, and second SuperTrend
DEFAULT PARAMETERS:
- ATR Period: 10
- ATR Multiplier: 3.0
- Second SuperTrend: Enabled
- Second SuperTrend Timeframe: 60 minutes (1 hour)
- Second SuperTrend ATR Period: 10
- Second SuperTrend ATR Multiplier: 3.0
USAGE:
- Lower multiplier (1.5-2.5) = More sensitive, more signals, more noise
- Higher multiplier (3.5-5.0) = Less sensitive, fewer signals, filters noise
- Use pivot points as additional confirmation for entries/exits
- When price approaches R1/R2/R3, expect potential resistance
- When price approaches S1/S2/S3, expect potential support
- MULTI-TIMEFRAME STRATEGY: Best signals occur when both SuperTrends align
* Both green (uptrend) = Strong bullish confirmation
* Both red (downtrend) = Strong bearish confirmation
* Conflicting trends = Caution, potential consolidation or reversal
- Combine SuperTrend signals with pivot levels for high-probability trades
- Best suited for trending markets
TRADING SIGNALS:
- BUY: When price closes above the upper band (trend changes from down to up)
* Extra confirmation if near a support level (S1, S2, S3)
* STRONGEST SIGNAL: When both SuperTrends are green AND price is above PP
- SELL: When price closes below the lower band (trend changes from up to down)
* Extra confirmation if near a resistance level (R1, R2, R3)
* STRONGEST SIGNAL: When both SuperTrends are red AND price is below PP
MULTI-TIMEFRAME EXAMPLES:
- Chart timeframe: 5min, Second SuperTrend: 1 hour
* Enter long when 5min shows buy signal AND 1hr is already in uptrend
* This filters out counter-trend trades
- Chart timeframe: 15min, Second SuperTrend: 4 hour
* Higher timeframe provides overall trend direction
* Lower timeframe provides precise entry timing
- Recommended combinations:
* Scalping: 1min chart + 15min second ST
* Day trading: 5min chart + 1hr second ST
* Swing trading: 1hr chart + Daily second ST
PIVOT POINT STRATEGY:
- PP (Pivot Point) = Main level, acts as support in uptrend, resistance in downtrend
- Price above PP = Bullish bias, look for longs near S1/S2
- Price below PP = Bearish bias, look for shorts near R1/R2
- Breakout of R3 or S3 indicates strong momentum
Note: This indicator is based on the classic SuperTrend algorithm and should be used as part of a comprehensive trading strategy, not as a standalone signal.
Chart Basicschart basics
> vwap
> time
> stuff
woo
18:50-19:10
19:50-20:10
21:50-22:10
00:50-01:10
02:00-02:30
02:50-03:10
08:50-09:10
09:30-09:50
09:50-10:10
10:50-11:10
11:50-12:10
13:10-13:40
15:15-15:45
Supertrend with BandsSUPERTREND WITH UPPER AND LOWER BANDS - INDICATOR DESCRIPTION
OVERVIEW:
This Pine Script indicator implements the SuperTrend technical analysis tool with visible upper and lower bands. SuperTrend is a trend-following indicator that helps traders identify the current market direction and potential entry/exit points.
HOW IT WORKS:
The indicator uses the Average True Range (ATR) to calculate dynamic support and resistance bands around the price:
1. BASIC BANDS CALCULATION:
- Upper Band = HL2 + (ATR × Multiplier)
- Lower Band = HL2 - (ATR × Multiplier)
- HL2 = (High + Low) / 2
2. FINAL BANDS ADJUSTMENT:
- Bands are adjusted based on price movement to create a trailing stop mechanism
- Upper band only moves down or stays flat when price is above it
- Lower band only moves up or stays flat when price is below it
3. SUPERTREND LINE:
- Switches between upper and lower bands based on price crossovers
- When price is above the SuperTrend line = UPTREND (green)
- When price is below the SuperTrend line = DOWNTREND (red)
KEY FEATURES:
✓ Visual upper and lower bands showing the ATR-based zones
✓ Color-coded SuperTrend line (green for uptrend, red for downtrend)
✓ Buy/Sell signals when trend changes
✓ Customizable ATR period and multiplier
✓ Background color indication of current trend
✓ Built-in alerts for trend changes
✓ Toggle options for bands and signals
DEFAULT PARAMETERS:
- ATR Period: 10
- ATR Multiplier: 3.0
USAGE:
- Lower multiplier (1.5-2.5) = More sensitive, more signals, more noise
- Higher multiplier (3.5-5.0) = Less sensitive, fewer signals, filters noise
- Use in conjunction with other indicators for confirmation
- Best suited for trending markets
TRADING SIGNALS:
- BUY: When price closes above the upper band (trend changes from down to up)
- SELL: When price closes below the lower band (trend changes from up to down)
Note: This indicator is based on the classic SuperTrend algorithm and should be used as part of a comprehensive trading strategy, not as a standalone signal.
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.
HMA Multi-Squeeze + CCI HeatmapUpdate on 'HMA Squeeze', added input options and colorbars. Fully custom inputs for 4 bull colors, 4 bear colors and one nuetral zone based on CCI values. Next edition will include a choice of moving averages and colorbars base on CVD?
XAUUSD scalpin D JoseThis indicator signals trend changes, helping you determine in which direction the market will move.
Bearish Trailing stopIt is a trailing SL. Works very well. Good good very good. Looks like my description needs more, so here is more random text.
Bullish Trailing stopIt is a trailing SL. Works very well. Good good very good. Looks like my description needs more, so here is more random text.
OI: Simple BandOI: Simple Band (Open Source)
OI: Simple Band is a very simple, open-source overlay that draws a two-line moving-average band and fills the space between them to highlight trend bias and momentum shifts at a glance.
What it plots
EMA (Exponential Moving Average) using the selected length
SMMA (Smoothed Moving Average) using the same length
A ribbon fill between the two:
Green when EMA > SMMA (bullish bias)
Red when EMA < SMMA (bearish bias)
Why use two different MAs with the same length?
Even with the same length, these two averages react differently:
EMA weights recent prices more heavily, so it responds faster to changes.
SMMA is designed to be steadier and slower, filtering more noise.
Using the same length keeps the comparison fair (same smoothing window) while still giving you a “fast vs slow response” relationship. The distance and relationship between them becomes a simple way to see:
Momentum / pressure: When EMA pulls away from SMMA, price is moving with enough force to overcome smoothing.
Compression: When they converge, momentum is fading and conditions often look more “balanced.”
State changes: Crossovers flip the ribbon colour and can be used as a context shift (trend/bias filter), not a standalone entry/exit rule.
Inputs
Moving average band (length): Controls both EMA and SMMA smoothing.
SMMA Source: Chooses the data used for the SMMA calculation (EMA is calculated on close).
Notes
This is intentionally minimal: no higher-timeframe requests, no security() calls, no signals — just a clean visual band.
Like all moving averages, it updates on the live candle and will settle on bar close.
SOFT Canal BAS + alertes (extend future, offset)SOFT Parallel Channel (Base Support) with Alerts
This indicator allows you to define a parallel price channel based on the lower support line, extended into the future, with clean and reliable touch alerts.
The channel is defined using two historical anchor points (date/time + price) on the support line.
The upper boundary is automatically calculated using a fixed channel height.
Key Features
📐 Channel based on the LOWER line (support)
➡️ Extended into the future using extend.right
🔔 Alerts on touch of:
Lower channel (support)
Upper channel (resistance)
🧼 Anti-spam alerts (only one alert per touch)
⏱️ Optional confirmation on bar close
🎚️ Vertical offset control (move the entire channel up or down using input arrows)
👀 Optional visual labels (SUP / RES), disabled by default
How It Works
Select two points on the lower channel line
(date/time + price for Point 1 and Point 2).
Set the channel height (in Nasdaq points).
Optionally adjust the vertical offset to fine-tune the channel position.
Create TradingView alerts on:
Touch Support
Touch Resistance
Recommended Settings (Nasdaq M15 / M30)
Channel height: 200 – 400 points
Touch tolerance: 3 – 10 points
Alerts: On close + one alert per touch (cleanest behavior)
Important Notes
The channel becomes visible once TradingView has loaded the historical bars containing both anchor points.
This script does not read manual drawing tools (TradingView limitation).
The channel is fully calculated and drawn by the script itself.
No repainting: the channel geometry is fixed once defined.
Use Cases
Trend channels
Dynamic support / resistance
Mean reversion trades
Alert-based discretionary trading
SOFT – Stéphane Olivier Fabrice Trading
Designed for clean charts, precise alerts, and practical trading use.






















