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.
Bands and Channels
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.
NY Session 15 min ORB + Fib RetracementThis indicator builds a New York session Opening Range (ORB) and plots Fibonacci retracement levels based on that range.
What it does
Defines the Opening Range using the NY cash open (default: 9:30–9:45 ET)
Tracks the ORB high and low during that window
Locks the ORB once the window ends (recommended)
Draws Fibonacci retracement levels from the ORB range
Optionally fills the space between fib levels
Displays price tags for ORB levels and fib levels on the right side
Sessions
ORB window is configurable (default: 9:30–9:45 ET)
Fib levels are only shown during the selected plot session
(default: 9:30–16:00 ET)
Nothing plots outside the selected fib session
Prevents lines from connecting across trading days
Fib behavior
Fibs are calculated from the ORB high and low
Direction can be:
High → Low (default)
Low → High
Common fib ratios are included by default:
0.236
0.382
0.500
0.618
0.786
All ratios are user-editable
Visuals
ORB High = green line
ORB Low = red line
Fib levels = gray lines
Optional shaded fill between fib levels
Optional right-side labels showing:
ORB High / Low price
Fib ratio and exact price
Recommended use
Designed for intraday trading
Best used on NY session instruments (ES, NQ, SPY, QQQ, etc.)
Works well on lower timeframes (1–15 min)
Locking the ORB at session end is recommended for consistency
Notes
Indicator does not generate trade signals
Levels are intended as reference only
Always use proper risk management
EMA 9 & 15 with Live Angle (Anchored)Description:
This indicator is designed to measure market trend strength and direction using two exponential moving averages (EMAs) — 9 EMA (fast) and 15 EMA (slow) — and their angle of slope.
EMA 9 (Fast EMA): reacts quicker to price changes and shows short-term trend direction.
EMA 15 (Slow EMA): reacts slower and represents a more stable trend.
Slope / Angle of EMA: tells how steeply the trend is moving.
Calculated using ATR-normalized slope to adjust for volatility.
Converted to degrees for easy interpretation.
Labels: Show the current EMA angle live on the chart.
Positive angle: Uptrend
Negative angle: Downtrend
Steeper angle → stronger trend
buy by rev//@version=5
indicator("HTF EMA Crossover → LTF Entry Alert", overlay=true)
// ───── TIMEFRAMES ─────
htf = "60" // 1 Hour
ltf = "5" // 5 Minute (apply script on this)
// ───── HTF EMAs ─────
htfEma5 = request.security(syminfo.tickerid, htf, ta.ema(close, 5))
htfEma13 = request.security(syminfo.tickerid, htf, ta.ema(close, 13))
// ───── LTF EMAs ─────
ema5 = ta.ema(close, 5)
ema13 = ta.ema(close, 13)
// ───── CONDITIONS ─────
// Hourly bullish crossover STATE
htfBullishState = htfEma5 > htfEma13
// 5-min EMA crossover
ltfCross = ta.crossover(ema5, ema13)
// 5-min EMA 5 reclaim / continuation
ltfResume = ema5 > ema13 and ema5 <= ema13
// FINAL ENTRY CONDITION
entrySignal = htfBullishState and (ltfCross or ltfResume)
// ───── PLOTS ─────
plot(ema5, color=color.green, title="EMA 5")
plot(ema13, color=color.orange, title="EMA 13")
plotshape(
entrySignal,
title="BUY Entry",
style=shape.labelup,
location=location.belowbar,
color=color.green,
text="BUY",
textcolor=color.white,
size=size.small
)
// ───── ALERT ─────
alertcondition(
entrySignal,
title="HTF EMA Bullish → LTF Entry Alert",
message="1H EMA 5>13 bullish state + 5min EMA entry trigger"
)
Canal porcentual EMA 26 (Elder) + EMA 13This indicator is based on Alexander Elder’s swing trading framework and is designed to define value, overextension, and timing within an established trend.
The core of the indicator is the 26-period Exponential Moving Average (EMA 26), which represents the **value zone**. Around this EMA, a **percentage-based symmetrical channel** is plotted. The upper band is calculated as EMA 26 plus a fixed percentage of the EMA, and the lower band as EMA 26 minus the same percentage. This creates overbought and oversold zones relative to value, independent of volatility.
In Elder’s methodology, this channel is not a standalone signal generator. Its purpose is to provide **context**:
* The upper channel marks areas of **overvaluation**.
* The lower channel marks areas of **undervaluation**.
* The EMA 26 itself represents the zone where profits are typically taken.
The 13-period EMA (EMA 13) is added as a **timing tool**, not as a trend filter. While EMA 26 defines value and trend structure, EMA 13 helps identify short-term momentum shifts that can be used to time entries and exits.
Typical usage according to Elder:
* In an uptrend (EMA 26 rising), long trades are considered when price pulls back toward the lower channel and short-term momentum stabilizes or turns up.
* In a downtrend (EMA 26 falling), short trades are considered when price rallies toward the upper channel and momentum weakens.
* Profits are usually taken near the EMA 26, the value zone, rather than at the opposite channel.
This indicator is intended for **swing trading**, not for breakout trading or mechanical “touch-and-trade” entries. The channel defines where trades should be looked for, while additional tools (trend analysis, momentum indicators, and risk management) are required to complete the trading decision.
Used correctly, this script helps traders avoid chasing price, focus on high-probability pullbacks, and consistently trade from overextension back to value within the prevailing trend.
Market Regime: Squeeze Box + Trend DashboardMarket Regime: Squeeze Box + Trend Dashboard
Market Regime is a overlay designed to provide instant market context (trend vs consolidation) and highlight volatility compression (squeeze) setups before potential breakouts. Built with stock charts in mind, it focuses on clean visuals and practical decision support.
What this indicator shows:
1) Market Regime (TREND / RANGE / NEUTRAL)
The regime is detected using DMI/ADX with built-in confirmation to reduce flicker:
TREND : ADX stays above a threshold for N bars
RANGE : ADX stays below a threshold for N bars
NEUTRAL : neither trend nor range is confirmed
Trend direction is derived from DI+ vs DI- (UP / DOWN / MIXED).
2) Squeeze (BB inside KC)
A squeeze is detected when Bollinger Bands contract inside Keltner Channels (volatility compression).
SQZ = squeeze start
REL = squeeze release (the first bar *after* squeeze — technically correct)
3) Squeeze Box
The core feature: a box drawn from SQZ → REL , dynamically tracking the highest high / lowest low during the squeeze. This creates a clean visual range for the compression zone and helps frame breakout context.
4) EMA Ribbon with ADX-based intensity
Two EMAs (fast/slow) form a ribbon. The fill becomes more pronounced as ADX strength increases, making trend momentum easier to read at a glance.
5) Trend Dashboard (corner panel)
A compact dashboard summarizing key metrics:
REGIME, DIR, ADX (with normalized strength %)
SQUEEZE ON/OFF
Relative Volume (relVol + tier)
ATR% (14), EMA Slope%, GAP% (Open vs previous Close)
Customization / Settings
Fully configurable for different styles and markets:
ADX/DMI lengths and thresholds
BB/KC parameters (lengths and multipliers)
Relative Volume thresholds
Background mode: Off / Squeeze only / All regimes
Visual toggles: ribbon, squeeze box, markers, dashboard
History controls and limits for boxes/labels (clean chart + performance)
How to use (practical workflow)
Trend context : read REGIME + DIR and ribbon intensity (ADX strength).
Squeeze setup : when squeeze is active, the box defines the compression range (high/low).
Release : REL marks the first bar after squeeze ends (potential breakout/expansion context).
Notes
No look-ahead logic is used; calculations rely on current and historical bars only.
On realtime (still-forming) candles, values can change intrabar, normal behavior for indicators computed on the current bar.
Trading Disclaimer:
This indicator is provided for research and informational purposes only and does not constitute financial advice. Past performance is not indicative of future results. Use at your own risk. You are solely responsible for any trading decisions made using this script.
OFM - ONE Trade Per Day MAXthis is helper to clarify the market trend and supply and demand zones to work with enjoy!
Vishall - Spot - HA for Normal & FutureVishall - Spot - HA for Normal & Future
Vishall - Spot - HA for Normal & Future
Vishall - Spot - HA for Normal & Future
GSS V2 : Ultra Scalping [DoNotFollowMeGod] User Manual: GSS V2 Ultra Scalping No Repaint!
Perfect For:
Hardcore Scalpers (Ultra Short Term).
Traders who focus on quick entries & exits and high-frequency trading .
Mandatory Market Conditions:
✅ Low Volume Only: Best used during low activity periods or slow markets.
✅ Out-Session: Trade during market rests or session overlaps (avoid high-volatility session opens).
✅ Clear Sideway: The market must be ranging clearly , not aggressively making New Highs/New Lows.
❌ AVOID: High-impact news events (Red Folder) or strong trend breakouts .
Recommended Settings:
Timeframe: M1 / M3 / M5
Band Width (ATR): Adjust the setting to 3.0 - 5.0
(This widens the channel to ensure you only enter when the price is significantly overextended ).
Trade Execution Plan:
Entry: Enter only when a Signal Arrow appears AND the price touches the Band Edge (ATR 3-5).
TP 1 (First Target): "The Grey Dashed Line (Mid Band)"
Golden Rule: Once the price hits TP1, you must either take partial profits or move SL to Break Even (BE) immediately! Never let a winning trade turn into a loss.
TP 2 (Final Target): "The Dotted Line (Outer Band)"
Let the trade run ( Dynamic ) until it reaches the opposite band.
💡 Pro Tip: Since the TP lines are dynamic (moving in real-time with the price action), you should monitor the live price. If you are satisfied with the profit, "Bag it!" — don't wait for the perfect touch if the momentum is fading.
Petit Bollinger BandsAdded additional spread to the original Bollinger Bands to catch extreme price action. Bollinger Bands with 0.25, 2 and 3 sigmas
SuperTrend Filtered with Dash| Gold | ProjectSyndicate📘 ProjectSyndicate Filtered Supertrend M30 GOLD
✅ User Guide Optimized Settings for XAUUSD on M30
Indicator: Supertrend Filtered Gold
Version: 1.0
Author: ProjectSyndicate
Pine Script: v6
________________________________________
1) 👋 Introduction
Welcome to ProjectSyndicate Filtered Supertrend, an upgraded, professional-grade Supertrend system built in Pine Script v6.
This version is designed specifically to help M30 GOLD (XAUUSD) traders reduce the most common Supertrend problem: false flips in chop / low volatility.
By adding 5 powerful filters (all optional + fully adjustable), this indicator aims to keep signals clean, selective, and trend-aligned — which is ideal for GOLD’s frequent fakeouts and liquidity sweeps. 🧠✨
________________________________________
2) ⭐ Key Features What Makes It “Filtered”
✅ Pine Script v6 for speed and stability
✅ 5 Advanced Filters to reduce noise and false signals
✅ Full Customization (each filter can be turned ON/OFF)
✅ On-Chart Filter Dashboard to see what’s blocking signals in real time 📊
✅ Built-In Alerts (Buy / Sell / Direction Change) 🔔
✅ Conservative Defaults (high-quality signals out of the box)
________________________________________
________________________________________
3) 🎛 Sensitivity Control Panel
This is where the magic happens. All enabled filters use AND logic meaning:
✅ A signal prints ONLY if every enabled filter passes.
If even one fails → signal is blocked 🚫
That’s why this system feels “smart” and selective (especially on GOLD M30).
________________________________________
4.1) 📈 Trend Filter
Purpose: Blocks signals when price is drifting sideways (flat momentum).
How it works:
It checks the slope of a short-term EMA. If the EMA slope is too flat, the market is likely ranging → signals get blocked.
Recommended (M30 GOLD Optimized):
• ✅ Enable Trend Filter: ON
• ⏱ Trend Filter Period: 10
• 📏 Trend Strength Threshold (%): 0.05%
Tip for GOLD:
If you’re not getting signals during London/NY trend days, slightly lower the threshold (example 0.04%) to catch more moves. ⚡
________________________________________
4.2) ✅ Signal Confirmation
Purpose: Stops “one-candle flips” and failed breakouts (very common on XAUUSD).
How it works:
It waits for the new trend direction to remain valid for X bars before confirming.
Recommended (M30 GOLD Optimized):
•✅ Enable Signal Confirmation: ON
•🧱 Confirmation Bars: 5
Behavior example:
• Confirmation = 5 → the signal prints on the 5th candle after trend changes
This reduces fakeouts, but signals appear later (more reliable, less early). 🎯
________________________________________
4.3) 🌪 Volatility Filter
Purpose: Avoids signals during “dead” volatility phases (choppy micro-ranges).
How it works:
Measures percentage price movement over a period.
If movement is too small → no signals.
Recommended (M30 GOLD Optimized):
•✅ Enable Volatility Filter: ON
•⏱ Volatility Period: 20
•📉 Minimum Volatility Threshold: 0.25%
Tip:
If you trade only during active sessions (London/NY), you can raise this slightly to filter even harder (ex: 0.30%). 🔥
________________________________________
4.4) 💪 ADX Filter
Purpose: Confirms the market is truly trending using ADX, a classic trend-strength tool.
How it works:
If ADX is below the threshold, the market is likely non-trending → signals blocked.
Recommended (M30 GOLD Optimized):
•✅ Enable ADX Filter: ON
•⏱ ADX Period: 14
•🎚 Minimum ADX Value: 25
Rule of thumb:
📌 ADX > 25 = trend conditions
📌 ADX < 20 = likely chop / mean-reversion
________________________________________
4.5) 🧯 Signal Spacing Anti-Spam Filter
Purpose: Prevents overtrading by forcing a cooldown period between signals.
How it works:
It tracks bars since last BUY and since last SELL separately.
Recommended M30 GOLD Optimized:
•✅ Enable Signal Spacing: ON
•⏳ Minimum Bars Between Signals: 75
What 75 bars means on M30:
75 × 30 minutes = 2250 minutes = 37.5 hours
So this is intentionally strict (high quality / swing-style filtering). 🏦
If you want more signals:
Try 30–50 for active trend capture, still clean. ✅
________________________________________
5) 📊 Filter Dashboard Read This First When Confused
The dashboard shows live status of each filter.
✅ PASS (Green) = filter condition met
❌ FAIL (Red) = filter is blocking signals
Dashboard also shows:
• 📏 Trend Strength (EMA slope %)
• 💪 ADX Value
• 🔁 Current Trend UPTREND / DOWNTREND
Pro Tip 🧠:
Not getting signals? Don’t guess. Look at the dashboard — it will instantly tell you which filter is failing.
________________________________________
6) 🔔 Alerts Integration TradingView Alerts Ready
This indicator includes built-in alert conditions.
To set alerts:
1️⃣ Click Alert (top toolbar) or press Alt + A
2️⃣ In Condition, select Supertrend Advanced
3️⃣ Choose one:
📌 Alert Conditions
✅ SuperTrend Buy → Buy printed after all enabled filters PASS
✅ SuperTrend Sell → Sell printed after all enabled filters PASS
⚠️ SuperTrend Direction Change → raw Supertrend flip (ignores filters)
Recommended alert frequency:
✅ Once Per Bar Close (reduces noise + avoids repaint confusion)
________________________________________
7) 🧠 Strategy & Best Practices M30 GOLD Focused
✅ Best Use Case
This Filtered Supertrend works best when GOLD is doing one of these:
•🏃 Strong session trend (London / NY continuation)
•🔁 Post-news directional expansion
•📈 Clean structure break + follow-through
🔥 Smart Trading Workflow (Simple + Effective)
✅ Use dashboard → wait for filters PASS
✅ Align with market structure (HH/HL for buys, LH/LL for sells)
✅ Use key zones:
•Support/Resistance 🧱
•Liquidity sweeps 💧
•Order Blocks / Supply-Demand (if you use them) 📦
🧪 Tune One Filter At A Time
When optimizing:
1.Reduce Signal Spacing first
2.Then reduce Confirmation Bars
3.Only then touch volatility / ADX / trend slope
________________________________________
8) 🧩 Example Profiles Quick Presets
🥇 GOLD M30 “Optimized / Conservative” Recommended
•Trend Strength: 0.05%
•Confirmation Bars: 5
•Volatility Threshold: 0.25%
•ADX: 25
•Signal Spacing: 75
⚖️ Balanced More signals, still filtered
•Trend Strength: 0.05%
•Confirmation Bars: 2
•Volatility Threshold: 0.50%
•ADX: 25
•Signal Spacing: 10
⚡ Aggressive / Scalping Style
•Trend Strength: 0.03%
•Confirmation Bars: 1
•Volatility Threshold: 0.10%
•ADX: OFF
•Signal Spacing: 3
________________________________________
🤝 Combining Filtered Supertrend + ProjectSyndicate Order Blocks Finder SMC Boost
For SMC traders, use Order Block Finder to map clean institutional supply/demand zones (bullish OB = last bearish candle before strong bullish displacement + BOS; bearish OB = last bullish candle before strong bearish displacement + BOS, with a displacement-strength filter and auto-cleanup) and then let Filtered Supertrend act as the “permission + timing” engine
✅only take Supertrend Buy signals when price is reacting from/returning into a bullish OB (demand) in an uptrend, and Supertrend Sell signals from a bearish OB (supply) in a downtrend; entries become higher probability because you’re stacking trend bias + institutional zone + confirmation filters, with clean risk defined by the OB boundary (stop beyond the box) and logical targets toward the next opposing OB or trend continuation
Order Block Finder | Gold | ProjectSyndicate
________________________________________
9) 🧯 Troubleshooting
❓ “No signals are appearing”
Likely filters are too strict.
✅ Check dashboard → see which filter fails.
Try this order:
1.Lower Signal Spacing (75 → 50 → 30)
2.Lower Confirmation Bars (5 → 3 → 2)
3.Slightly reduce thresholds
❓ “Still too many signals”
Tighten filters:
✅ Confirmation Bars 3+
✅ Signal Spacing 100+
✅ Increase Trend Strength + ADX thresholds
❓ “Signals appear too late”
Reduce Confirmation Bars:
✅ 5 → 3 or 2
(earlier entries, slightly more risk of fakeouts)
________________________________________
✅ Conclusion
ProjectSyndicate Filtered Supertrend turns a basic trend indicator into a high-control signal engine. On GOLD M30, where fakeouts and chop are common, the 5-filter AND logic + dashboard gives you a cleaner edge — especially when combined with structure and key zones. 📈💎






















