Bollinger Bands + B%Overview
This script replicates the robust functionality and visual style of the Bollinger Band studies found in Sierra Chart, adapted for the TradingView environment. It is designed as an "All-in-One" suite that calculates the Bollinger Bands for the main price chart while simultaneously offering advanced oscillator studies (like %B and Bandwidth) in the pane below.
A unique feature of this script is the high degree of customization, particularly the ability to choose different Moving Average types for the Bollinger Band basis, and a dynamic coloration system for the %B indicator.
Key Features
Main Chart Overlay: Draws the Bollinger Bands (Upper, Lower, and Basis) directly on the price chart, even though the script runs in a separate pane.
Advanced %B Indicator: A visually enhanced version of Bollinger Bands %B. It features dynamic coloring based on a midline (default 0.5) and intensifies the colors when the value exceeds the high or low thresholds (simulating a band breakout).
Bollinger Bandwidth: Optional display of the bandwidth to measure volatility (Squeeze detection).
Customizable Calculation: Choose from 6 different Moving Average types to calculate the bands.
Moving Average Types Explained
The standard Bollinger Band uses a Simple Moving Average (SMA). This script allows you to change the mathematical basis of the bands to fit your specific trading strategy:
Simple (SMA): The standard calculation. Every price in the period has equal weight. Best for general use.
Exponential (EMA): Gives more weight to recent prices. Reacts faster to price changes than the SMA.
Weighted (WMA): Assigns a linear weighting factor. Recent data is more important, but the drop-off is smoother than EMA.
Linear Regression (LSMA): Calculates a linear regression line for each point. This is excellent for identifying the prevailing trend direction and "fitting" the price action.
Wilders (RMA): The smoothing method used in the RSI indicator. It reacts very slowly and smooths out significant noise.
Smoothed (SMMA): A blend that takes a broad view of price history. It is very stable and filters out minor market fluctuations effectively.
Settings & Parameters
1. Bollinger Bands (Price-Chart)
Show BB in Main Chart: Toggles the visibility of the bands on the price candles.
Length: The lookback period for the bands (Default: 20).
Standard Deviation: The multiplier for the width of the bands (Default: 2.0).
Moving Average Type: Select the algorithm for the center line (Basis).
2. Study: Bollinger Bands %B
Show %B: Toggles the %B oscillator.
High/Low Threshold: Sets the levels for the "Breakout" warnings (Default: 1.0 and 0.0).
Midline: The center point for the color switch (Default: 0.5).
Green: Value > Midline.
Red: Value < Midline.
Bright Green/Red: Value crosses the High/Low Thresholds.
3. Study: Bollinger Bandwidth
Show Bandwidth: Toggles the volatility measurement line.
Usage Tip:
Since %B (0.0 - 1.0) and Bandwidth (variable scale) use different y-axis scales, it is recommended to only enable one sub-study at a time via the checkboxes to maintain a clean chart view.
Disclaimer : This script is for educational and analytical purposes only. It is a code conversion based on public documentation of Sierra Chart Study ID 14 & 136.
Sierra Chart, best trading software, EVER!
With the best datafeet. Denali Exchange Data Feed.
Bands and Channels
SAS 4H Positional ScreenerSAS 4H Positional Screener is a structure-based trend filter designed for 4-hour positional trading in Indian large-cap stocks.
It identifies high-probability bullish setups by combining trend alignment, price acceptance, and institutional market structure.
This screener is not a buy/sell strategy.
It is a professional pre-trade filter used to shortlist stocks that are ready or near-ready for LONG trades.
SMC Full History jbi2 This indicator keeps BOS and CHoCH visible all the way to the oldest bars, revealing true market structure across all timeframes, unlike other indicators that erase historical signals, making trend and reversal zones clear and reliable.
SMC Full History JBI 1This indicator keeps BOS and CHoCH visible all the way to the oldest bars, revealing true market structure across all timeframes, unlike other indicators that erase historical signals, making trend and reversal zones clear and reliable.
Reversal Entry on StdDev & ICT LevelsThis custom indicator combines Standard Deviation Channels with ICT Killzone session levels to identify high-probability reversal entries. It triggers long/short signals when:
Price extends beyond ±2 standard deviations (overbought/oversold conditions)
A reversal wick (e.g., pin bar or hammer) confirms exhaustion
Price bounces off a key session level (e.g., NYAM high or low)
The tool visually plots deviation bands and session ranges, helping traders identify smart entry points aligned with market structure and time-based liquidity zones. Suitable for scalpers and intraday traders using ICT concepts.
Bitcoin Power Law Bottom PriceThis is a super simplified version of Bitcoin Rainbow Wave script.
I removed everything except the power law bottom band.
Funnelzon Graded Buy and Sell Signals (LITE) MFI MTFFunnelzon Buy and Sell Signals (EMA Zones) – LITE is a lightweight overlay indicator built for scalping and short-term trading. It generates BUY/SELL signals, grades each signal (A+ to F), and provides a clean Confirmation Box that summarizes multi-timeframe context so you can make faster, more structured decisions.
How it works
Signal Engine (LTF)
Signals are triggered using an ATR-based “scalp helper” logic with adjustable sensitivity.
A stop-state system helps reduce repeated or noisy entries.
Signal Scoring & Grades (A+ → F)
When a signal appears, it is evaluated by a context pipeline that considers:
Adaptive momentum/flow (AMF)
ALMA trend alignment
Support/Resistance proximity
Swing structure behavior
Market regime / trend strength (ADX-based)
The result is a score mapped to a grade:
A+ / A = strongest signals
B / C = mixed conditions
D / F = low-quality conditions
Optional Filters
MFI Filter: Helps avoid signals that do not meet Money Flow conditions.
HTF Confirmation (MTF): Uses HTF1 and HTF2 bias. Choose strict filtering or soft alignment.
Confirmation Box (Dashboard)
The box displays:
HTF State: Trend Long / Trend Short / HTF Conflict / Neutral
Market Mode: Trend / Pullback / Conflict
Trade Bias: Long-only / Short-only / Wait
ENTRY NOW? = “YES” when HTF bias and LTF signal align
MFI status + HTF1/HTF2 direction
Optional Structure Tools
EMA overlays: 9 / 12 / 20 / 50 / 100 / 200
Auto Supply/Demand zones (pivot-based, ATR thickness, configurable extension and limits)
Best practices (recommended workflow)
Prefer trading A+ / A signals only.
Trade in the direction of HTF State when possible.
If Market Mode shows PULLBACK or CONFLICT, reduce risk or wait for better alignment.
Use Supply/Demand zones and EMAs for structure (targets, invalidation, and bias).
Important: Confirmation with Stochastic + MACD
This script is a signal + context tool, not a guarantee. To validate signal confirmation, it is strongly recommended to use:
Stochastic Oscillator (momentum/exhaustion confirmation)
MACD (trend momentum and direction confirmation)
Only take trades when the script signal and your confirmation indicators agree.
Alerts
Includes alert conditions for:
Buy Signal
Sell Signal
Any Signal
ENTRY NOW (HTF + LTF aligned)
ENTRY NOW Long / ENTRY NOW Short
Disclaimer
This indicator is for educational purposes and does not constitute financial advice. Always backtest, manage risk, and confirm signals with your own rules.
AUTO FIB PRO - VWAP Bias and Retrace Breakouts (DAX NQ) v6AUTO FIB PRO by funnelzon automatically detects swing points (pivot highs/lows), draws dynamic Fibonacci levels, highlights the key retracement area (0.236–0.618), and prints continuation-style BUY/SELL signals after a retrace. It also includes VWAP + VWAP zone (ATR-based), a configurable trend filter (EMA200 / HTF EMA200 / VWAP / combined “BEST”), session & volatility filters, a CHOP blocker, a top-right “traffic light” status panel, and optional manual R/S zones (R1–R4 & S1–S4) with width presets and background highlighting.
1) Auto Swing → Auto Fibonacci
The script detects swing points using pivot highs/lows.
Once two valid swing points are available (P1 → P2), it plots Fibonacci levels:
0.236 / 0.382 / 0.500 / 0.618 / 0.786 / 1.000
Lines extend to the right and update automatically with new swings.
2) Retracement Box (0.236–0.618)
The yellow retracement box marks the key pullback area between 0.236 and 0.618.
Optional ATR padding can slightly widen the box (helps with “near touches”).
3) VWAP + VWAP Zone + VWAP Bias Label
VWAP line is optional.
VWAP zone is an ATR-based band around VWAP.
Bias label shows: BULL / BEAR / NEUTRAL, placed outside the chart (left/right selectable).
4) Filters (to avoid low-quality market phases)
Session Filter (DAX / NQ sessions in CET)
ATR-Min Filter (blocks low volatility)
CHOP Filter (blocks markets that get “stuck” inside the retracement zone for too long)
5) Signals (Continuation After Retrace)
Default behavior (Continuation ON):
Retracement zone must be touched first (setup becomes “armed”).
Signal triggers only when price breaks out across the box edge:
BUY: crossover above retrace top + bullish candle + filters OK
SELL: crossunder below retrace bottom + bearish candle + filters OK
Alternative (Continuation OFF):
More aggressive signals can trigger already inside the retracement box.
6) Signal Quality Modes
MORE Trades: looser rules, more signals (optional counter-trend allowed)
A+ ONLY: stricter rules (RSI + EMA slope + trend alignment)
7) Traffic-Light Panel (Top Right)
Shows in real time:
Auto preset type (DAX/NQ + Scalp/Swing + FAST/STABLE)
STATUS: TRADE OK / NO TRADE (and the reason)
Direction: LONG / SHORT / WAIT
Selected trend filter mode
VWAP bias
Pivot length
8) Manual Support/Resistance Zones (R1–R4 & S1–S4)
8 zones as price “areas” (boxes), extended left/right in time
Width presets: Narrow / Normal / Wide or Manual (Points/ATR)
Optional background highlighting when price is inside a zone
Key Features
Auto Swing Detection (Pivot High/Low) → builds P1 → P2 swing
Auto Fibonacci Levels: 0.236 / 0.382 / 0.500 / 0.618 / 0.786 / 1.000
Retracement Box: 0.236–0.618 (+ optional ATR padding)
VWAP Line + VWAP Zone (ATR-based)
VWAP Bias Label: BULL / BEAR / NEUTRAL (outside the chart)
Trend Filter Modes: OFF / EMA200 / HTF EMA200 / VWAP / HTF EMA200 + VWAP (BEST)
Trade Quality Modes:
MORE Trades (looser, more signals)
A+ ONLY (stricter: RSI + EMA slope + trend alignment)
Gate Filters:
Session filter (DAX / NQ CET sessions)
ATR-min filter (blocks low volatility)
CHOP filter (blocks extended sideways inside retrace zone)
Traffic Light Panel (Top Right): STATUS, DIR, FILTER, VWAP BIAS, PivotLen
Manual Zones (R1–R4 / S1–S4):
Width presets: Narrow / Normal / Wide (or Manual via Points/ATR)
Optional background highlight when price is inside a zone
Signals (Logic)
Default (Continuation ON):
Setup becomes “armed” after retracement zone touch
Signal triggers only on breakout:
BUY: close crosses above retrace top + bullish candle + filters OK
SELL: close crosses below retrace bottom + bearish candle + filters OK
Continuation OFF: more aggressive signals can trigger already inside the retracement box.
Recommended Setup (Quick Presets)
Clean & Reliable (recommended)
Auto Presets: ON
Mode: AUTO / SCALP (1/5/15)
Auto Fib Mode: STABLE
Quality: A+ ONLY
Continuation: ON
Trend Filter: HTF EMA200 + VWAP (BEST)
Session filter: ON
ATR-min: ON
CHOP filter: ON
More Trades
Auto Fib Mode: FAST
Quality: MORE Trades
Trend Filter: VWAP or EMA200
FAQ (Quick)
Q: Why do I see “NO TRADE” in the panel?
A: One of the gate filters blocks signals (outside session, ATR too low, or CHOP detected).
Q: Why no signals even though price is moving?
A: A valid swing (P1→P2) must exist, retrace zone must be touched (Continuation ON), and trend/quality filters must pass.
Q: What does CHOP mean here?
A: Price stayed inside the retracement zone for too many bars → higher noise → signals disabled until conditions improve.
Q: DAX vs NQ feels different — what should I change first?
A: Start with Market Preset, then adjust VWAP zone ATR mult and CHOP bars limit.
Disclaimer
Educational/analytical tool only. Not financial advice. Use risk management and confirm signals with market context.
BRN Dual Momento DUAL MOMENTUM PRO V17.6 is a high-performance technical indicator designed to filter out market noise and identify high-probability trend entries. Unlike simple moving average crossovers, this system employs a hierarchical logic structure: a signal is only generated when price action, trend direction, and volatility momentum are in perfect alignment.
The system features a Cyan (Bullish) and Magenta (Bearish) visual identity, with a dynamic Gradient Cloud that visualizes the intensity of the market momentum in real-time.
HOW IT WORKS
The indicator processes market data in three distinct stages:
1. The Core Engine (The Trigger)
Before looking at any indicators, the system validates the price action itself:
Trend Alignment: Price must close above (for Buy) or below (for Sell) two customizable Moving Averages (Fast & Slow). You can configure the type (HMA, EMA, SMA, etc.) and length of each.
Candle Body Strength: The signal candle must show real intention. Its body size is compared to the average of the last X candles. Dojis and weak candles are ignored.
2. The Validation Layer (The Filters)
Once the Core Trigger is met, the signal must pass through a strict checklist to be confirmed:
ATR Breakout Filter: Prevents trading in choppy/sideways markets. The price must break out of the ATR Volatility Channel to confirm a valid move.
RSI Thresholds: Smart filtering that defines "Buy Zones" and "Sell Zones," avoiding entries at extreme overbought or oversold levels.
MACD Confirmation: Ensures the momentum histogram supports the direction of the trade.
Momentum Expansion: (Optional) Requires the distance between the Moving Averages to be expanding, ensuring you enter during acceleration, not contraction.
3. Visual Intelligence (The Aesthetics)
Dynamic Gradient Cloud: The space between the moving averages is filled with a dynamic gradient color. The more intense the color, the stronger the momentum.
Note: The visual cloud is independent of the signal logic. You can keep the visual cloud on while turning off the momentum filter, giving you full control over your chart's aesthetics.
Clean Interface: Focus purely on Price, MAs, and Signals. No clutter.
SETTINGS & CUSTOMIZATION
Group 1 (Core): Configure your Fast/Slow MAs (Type & Length) and Candle Strength sensitivity.
Group 2 (Filters): Toggle every filter On/Off independently (ATR Channel, RSI, MACD, Momentum).
Group 3 (Visual): Customize the Cyan/Magenta color palette, toggle the ATR Channel lines, and control the Gradient Cloud visibility.
STRATEGY TIPS
The "Cyan" Signal: Indicates a confirmed Bullish Breakout with volume and momentum support.
The "Magenta" Signal: Indicates a confirmed Bearish Breakdown.
Ping-Pong Mode: The script includes an alternating signal mode (Buy -> Sell -> Buy), preventing multiple signals in the same direction.
Perfect for traders looking for a "clean chart" approach with sophisticated underlying logic.
Tradução Rápida dos Pontos Chave (Resumo):
Hierarchical Logic: Explica que o indicador segue uma ordem (Gatilho -> Filtros).
ATR Breakout: Destaca que ele evita mercados laterais (choppy).
Gradient Cloud: Enfatiza a nuvem visual de momentum.
Cyan/Magenta: Reforça a identidade visual moderna que você escolheu.
Advanced OHLC + Midpoint LevelsA simple tool to mark the ohlc and mid point of any random candl on a 5 minute chart
Ctrace Silver Recovery Setup (EMA + BB + RSI Alert)Custom indicator for Silver trading. This script includes 50 EMA & 200 EMA for trend direction, Bollinger Bands for volatility, and a custom Yellow Candle Alert when RSI drops below 30 (Oversold) to signal potential recovery.
Regression ChannelAn enhanced version of TradingView's Linear Regression Channel that displays multiple upper and lower deviation channels with support for both linear and exponential regression models.
Getting Started & Usage
This indicator overlays a regression channel with up to 4 customizable standard deviation levels above and below the regression line. By default, it uses linear regression, but you can switch to an exponential regression model for curved price trends.
For detailed explanations of the statistical concepts and additional usage examples, please visit the documentation .
KK Prev-Day/Week H/L with AlertsThis indicator auto plots previous day high and low, and previous week high and low.
Rolling VWAP - Clean Tunnel Bands (Consecutive Fills)Advanced Rolling Volume Weighted Average Price (RVWAP) indicator with 10 standard deviation bands arranged in clean consecutive zones without overlap.
Key Features:
• Real-time Rolling VWAP calculated over a time-based window (auto or user-defined)
• 10 deviation levels: 0.5σ to 5.0σ
• "Tunnel" visual effect: very transparent bands near VWAP, progressively more opaque toward extremes
• Consecutive fill system (no overlapping fills between bands)
• Individual control for each band: toggle visibility + independent transparency slider
• Automatic timeframe-based period or custom fixed period (Days/Hours/Minutes)
• Minimum bars protection to prevent calculation errors during market gaps and holidays
• Optional info box showing current period
Ideal for:
- Spotting extreme price deviations
- Mean reversion strategies
- Volatility analysis
- Support/resistance zone identification
- Clean visual tunnel for better readability
Based on TradingView's official "Rolling VWAP" indicator, heavily enhanced with clean consecutive fills and full per-band customization.
Recommended default transparency (higher = more transparent):
- Inner bands (0.5σ–1.5σ): 93–98
- Middle bands (2.0σ–3.0σ): 77–89
- Outer bands (3.5σ–5.0σ): 32–68
Enjoy and trade responsibly!
Multi-Timeframe Trading SystemIntegrating Multi-Timeframe Trading Analysis: A Comprehensive Approach to Market Structure and Trend Identification
In the dynamic landscape of financial markets, traders continually seek robust analytical frameworks that can synthesize diverse market signals into a coherent decision-support system. This script represents a deliberate integration of several established technical analysis concepts, designed to provide a multi-perspective view of market conditions. The rationale for this integration stems from the recognition that no single indicator provides a complete picture; rather, a confluence of signals from different analytical dimensions can enhance the probability of identifying high-quality trading opportunities.
The core design principle of this script is the synthesis of trend analysis, momentum assessment, and market structure identification across multiple timeframes. This multi-layered approach is grounded in the widely accepted market axiom that higher timeframes exert gravitational pull on lower timeframes, and that the alignment of signals across temporal scales often precedes significant price movements.
Functional Components and Their Synergistic Operation
The script operates through several interconnected modules that work in concert:
Multi-Timeframe Trend Analysis Dashboard: At the heart of the system is a comparative trend analysis across six distinct timeframes (3-minute to daily). This is achieved using Exponential Moving Average (EMA) crossovers—a proven trend-following mechanism. The dashboard provides instantaneous visual feedback about trend alignment or divergence across timeframes, allowing traders to gauge the strength and consistency of prevailing market trends. When multiple timeframes exhibit congruent trend directions, it suggests a higher-conviction trading environment.
EMA-Based Trend Filtering: The script employs dual EMA periods (55 and 200) as its primary trend filter. The relationship between these moving averages serves as the foundation for all subsequent analysis, coloring price bars according to the dominant trend direction. This visual cue helps traders maintain perspective on the broader market context, preventing counter-trend entries during strong trending phases.
Momentum Assessment via RSI: The Relative Strength Index (RSI) operates as a complementary momentum oscillator. While the EMA system identifies trend direction, the RSI helps assess whether price movement within that trend is approaching overextended conditions. The script monitors RSI levels for traditional overbought and oversold thresholds, providing alerts when these conditions emerge.
Market Structure Analysis through Swing Points and Fractals: The automated detection of swing highs and lows forms the basis for understanding market structure. These pivot points are essential for identifying potential support/resistance zones and charting the sequence of higher highs/lows or lower highs/lows that characterize trending versus ranging markets. The fractal detection system further refines this structural analysis by identifying minor reversal points within the broader swing structure.
Fair Value Gap (FVG) Identification: The script automatically detects price voids or "gaps" that often act as magnetic attractors for future price action. These FVGs represent areas of inefficient price discovery where liquidity tends to cluster, making them significant for both trade entry and risk management decisions.
Automated Trendline Construction: By connecting successive swing points, the script dynamically draws trendlines that visualize the prevailing market trajectory. These trendlines serve as dynamic support/resistance levels that adapt to changing market conditions.
Practical Application and Usage Guidelines
Traders can utilize this integrated system in several practical ways:
Trend Confirmation: Before entering any position, check the multi-timeframe dashboard for trend alignment. Convergent trends across multiple timeframes generally offer higher-probability trading environments.
Entry Timing: Use RSI extremes in conjunction with trend direction. For instance, in an established uptrend (confirmed by EMA alignment), an RSI reading dipping into oversold territory may present a favorable long entry opportunity.
Structural Analysis: Monitor the sequence of swing points to identify potential breakouts or breakdowns in market structure. A break of a significant swing point often signals acceleration in the prevailing trend.
Fair Value Gap Trading: Watch for price returns to previously identified FVGs, as these zones frequently provide favorable risk-reward entry points with logical stop-loss placement beyond the gap boundaries.
Dynamic Support/Resistance: Utilize the automatically drawn trendlines as dynamic levels for trade management, including entry, stop-loss placement, and profit-taking.
Originality and Distinctive Features
While individual components of this system are derived from established technical analysis principles, the original contribution lies in their specific integration and visualization methodology. The script provides:
A unified visual framework that reduces analytical clutter while maintaining comprehensive market assessment
Real-time multi-timeframe analysis without requiring constant chart switching
Automated structural analysis that eliminates subjective trendline drawing
A balanced approach that respects both trend-following and mean-reversion principles
Customizable parameters that allow adaptation to different trading instruments and timeframes
Important Considerations
Users should understand that this tool is designed as a decision-support system, not an automated trading solution. All trading decisions should incorporate additional factors including fundamental analysis, market context, and appropriate risk management. The color-coded bar system and dashboard indicators are intended to streamline analysis, but they cannot guarantee specific market outcomes. Traders are encouraged to test this system in simulated environments before applying it to live markets and to adapt its parameters to align with their individual trading styles and risk tolerances.
The script's value proposition lies in its ability to synthesize multiple analytical perspectives into a cohesive visual interface, potentially reducing cognitive load while maintaining analytical rigor—a balance that many traders find challenging to achieve manually across multiple charts and timeframes.
Standard Deviation Channel (4x)Standard Deviation Channel (4x)
A linear regression channel with up to 4 standard deviation bands on each side, plus built-in moving averages and high/low levels from higher timeframes. Basically everything I need on one indicator without cluttering my chart with 5 different scripts.
What it does
The core is a standard deviation channel based on linear regression. You get the regression line (base) and can enable up to 4 deviation levels above and below (±1σ, ±2σ, ±3σ, ±4σ). Each level can be toggled independently and the multipliers are adjustable if you want something like 1.5 or 2.5 instead of whole numbers. The fills between bands help visualize the zones.
Pearson's R is available if you want to see the correlation strength of the regression.
Moving Averages
6 MAs included, each fully configurable:
- Type: SMA, EMA, WMA, VWMA, RMA, HMA, DEMA, TEMA
- Custom length and source
- Individual colors
High/Low Levels
Shows horizontal lines at:
- Weekly High/Low
- Monthly High/Low
- Yearly High/Low
- Previous Week/Month/Year High/Low
Useful for spotting key levels without switching timeframes. Labels included so you know which line is which.
Alerts
- Deviation band breaks (all 8 levels)
- MA crossovers (price crossing above/below)
- High/Low level breaks
Settings
Everything is off by default except the ±1σ and ±2σ bands. Enable what you need, disable what you don't. Colors are fully customizable.
EMA 5/10 + MACD Signals (Split Pane)EMA 5/10 + MACD Signals (Split Pane) combine into sigle indicator for free user
BTC Accumulation Bands Long-only spot accumulation strategy on daily BTC bars. Buys at percentage deviation bands
below the 200-day SMA with geometric scaling. Trims as price returns toward/above fair value.
Weekly RSI gate filters slow grinds.
WC Cross Clouds with Arrows - Customizable EditionThis is an enhanced and fully customizable version inspired by the original "WC CROSS CLOUDS with Arrows" indicator by AlfsDipz (thank you for the great foundation!).
What it shows:
• Two clouds for visual trend context:
- Static black WMA cloud (default WMA 21 & 24) – helps identify overall market structure
- Directional cloud (default SMA 9 & 21, but fully configurable) – green when fast MA is above slow MA (bullish), red when below (bearish)
• Clean signals with arrows + text:
- Green triangle up + "LFG" → New bullish regime starts (fresh crossover upward)
- Red triangle down + "DBD" → New bearish regime starts (fresh crossover downward)
• Small realtime label showing current regime + bars since last signal
New features / improvements compared to original:
• Fully user-configurable MA lengths for both clouds
• Choose MA type for the directional cloud (SMA, EMA, or WMA)
• Customizable source (close, hl2, open, etc.)
• Cleaner signal logic (only shows arrows when trend direction actually changes)
• No duplicate/false signals during ranging markets
• Works in Pine Script v6 (latest version)
How to use:
- Green cloud + "LFG" arrow → potential long opportunity
- Red cloud + "DBD" arrow → potential short / exit long
- Use together with your own price action, support/resistance, volume, etc.
Feel free to use, modify, expand, fork, or build upon this script however you like!
Credit to AlfsDipz for the original concept and cloud style that inspired this version.
Happy trading everyone!
Dove– Chesapeake, VA
Cup & Handle Visual Pattern Cup & Handle – Visual Breakout Strategy (with Buy/Sell Signals)
Strategy Objective
This strategy helps traders visually identify and trade bullish Cup & Handle patterns by:
Drawing the Cup and Handle structure directly on the chart
Highlighting key support and resistance zones
Providing clear BUY and SELL signals
Assisting decision-making without repainting
🔧 Concept Behind the Strategy
The Cup & Handle is a bullish continuation pattern:
The Cup shows long consolidation and accumulation
The Handle shows short-term profit booking
A breakout above resistance signals trend continuation
This script approximates the pattern using price structure and volatility logic and draws it visually, instead of trying to mathematically force a perfect pattern.
🟠 Cup Formation Logic
The script finds the highest high and lowest low over a fixed lookback period
The depth of the cup must exceed a minimum percentage, ensuring a meaningful base
Two horizontal lines are drawn:
Top line → Cup resistance
Bottom line → Cup base (support)
📌 This creates a visible U-shaped price zone
⬜ Handle Formation Logic
After the cup forms, price must consolidate in a narrow range below resistance
A box is drawn on the chart showing the handle area
This represents short-term pullback before breakout
📌 The handle must:
Stay above the cup low
Stay below the cup resistance
🟢 BUY Signal Logic
A BUY signal is generated when:
Cup depth condition is valid
Handle consolidation is confirmed
Price breaks above cup resistance
📌 A green ▲ arrow appears below the breakout candle.
🔴 SELL Signal Logic
A SELL signal is generated when:
Price breaks below the handle support
📌 A red ▼ arrow appears above the breakdown candle.
🛑 Risk Management (Manual / Trader-Controlled)
This strategy is visual-assisted, not auto-exit based:
Stop Loss: Below handle low
Target:
Measure cup depth and project upward
Or trail using Supertrend / Moving Average
⏱️ Best Usage
Style Timeframe
Swing Trading 1H / Daily
Positional Daily / Weekly
Best suited for:
Strong trending stocks
Breakout candidates
Post-consolidation markets
⭐ Strengths of This Strategy
✔ Visual pattern drawing (easy to understand)
✔ Avoids over-complicated math
✔ Clear breakout levels
✔ Non-repainting logic
✔ Works as a decision-support tool
⚠️ Important Notes
Cup & Handle cannot be perfectly automated
This strategy assists, not replaces, trader judgment
Works best when combined with:
RSI above 50
Volume expansion
Market trend confirmation.






















