Tất cả các loạiTất cả các loại Chỉ dành cho mã nguồn mởGần nhấtPhổ biến nhấtRadiant Mean Reversion Channels [Pineify]Radiant Mean Reversion Channels - HMA & ATR Normalized Oscillator with Dynamic Gradient Signals The Radiant Mean Reversion Channels indicator is a volatility-normalized oscillator designed to detect high-probability mean reversion setups across any market and timeframe. It transforms a Hull Moving Average (HMA) based channel into a bounded 0–100 oscillator, making it easy to spot when price has stretched to statistical extremes and is likely to revert toward equilibrium. By combining the low-lag properties of HMA with the adaptive volatility measurement of ATR, this indicator provides fast, accurate overbought and oversold readings without the noise common in traditional oscillators. Key Features HMA-based dynamic mean for ultra-low-lag price tracking ATR-driven volatility bands that automatically adapt to market conditions Normalized 0–100 oscillator scale for consistent interpretation across all instruments WMA smoothing to reduce whipsaws while preserving signal responsiveness Dynamic gradient coloring that shifts from bearish to bullish based on oscillator value Clearly defined overbought (80/90) and oversold (10/20) zones with visual fills Automatic buy and sell signal generation on mean reversion crossovers Built-in alert conditions for seamless trading automation How It Works The indicator follows a five-step calculation pipeline that converts raw price action into a clean, actionable oscillator: Dynamic Mean via HMA: The center of the channel is calculated using a Hull Moving Average of the selected source over the specified channel length. HMA was chosen specifically because it dramatically reduces lag compared to SMA or EMA while maintaining a smooth curve, giving traders a more accurate real-time estimate of the current mean price. Volatility Measurement via ATR: The Average True Range over the same lookback period measures current market volatility. This value is scaled by a user-defined Band Multiplier to create the channel width. ATR naturally adapts—widening during volatile conditions and tightening during consolidation—ensuring the channel remains contextually appropriate. Channel Construction: The upper and lower bands are formed by adding and subtracting the scaled ATR from the HMA mean. This creates a dynamic envelope that contains most price action under normal conditions. Normalization to Oscillator: The price position within the channel is normalized using the formula: (Price - Lower Band) / (Upper Band - Lower Band) × 100. This maps the channel into a 0–100 scale where 0 represents the lower band, 100 represents the upper band, and 50 represents the mean. Values above 100 or below 0 indicate price has exceeded the channel boundaries. WMA Smoothing: The raw oscillator is smoothed using a Weighted Moving Average, which gives more weight to recent readings. This reduces noise and false signals while keeping the oscillator responsive to genuine shifts in momentum. Trading Ideas and Insights Mean reversion is a core principle in quantitative trading—prices tend to oscillate around a fair value and snap back after stretching too far. The Radiant Mean Reversion Channels quantifies this behavior by measuring exactly where price sits within its volatility envelope: When the oscillator rises above 80, price is near the upper channel band—a statistically overbought condition where selling pressure often emerges When the oscillator falls below 20, price is near the lower channel band—an oversold zone where buyers tend to step in The extreme levels at 90 and 10 represent deeper extensions where reversion probability increases significantly Signal generation occurs when the oscillator crosses back inside these zones, timing the actual beginning of the reversion move rather than trying to catch the exact top or bottom This method excels in range-bound and mean-reverting markets. In trending markets, the signals can be used to identify pullback entry opportunities in the direction of the prevailing trend. How Multiple Indicators Work Together The Radiant Mean Reversion Channels integrates three distinct technical concepts into a cohesive analytical framework: Hull Moving Average (Mean): HMA serves as the dynamic center of the channel. Its unique double-smoothed, lag-compensated formula (using nested WMAs with square root period adjustment) provides a mean line that reacts to trend changes significantly faster than traditional averages. This ensures the "fair value" baseline stays current with evolving market conditions. Average True Range (Volatility): ATR measures real market volatility by accounting for gaps and true trading ranges—not just close-to-close changes. As the volatility component, ATR automatically adjusts the channel width. During high-volatility periods, the channel expands so that only truly extreme moves trigger signals. During low-volatility periods, it contracts to remain sensitive, preventing missed opportunities. Weighted Moving Average (Smoothing): The WMA applied to the normalized oscillator gives heavier weight to the most recent data points. This produces a smoother output than SMA while introducing less lag than EMA for short smoothing periods, striking an optimal balance between signal clarity and timeliness. These three components work together synergistically: HMA tracks where price should be, ATR defines how far is too far, and WMA ensures the final oscillator reading is clean and reliable. Unique Aspects HMA-ATR Combination: Most channel-based oscillators use Bollinger Bands (SMA + Standard Deviation). By pairing HMA with ATR, this indicator benefits from lower lag on the mean and a volatility measure that accounts for gaps and true range—producing faster and more robust channel boundaries Dynamic Gradient Visualization: The oscillator line smoothly transitions color from bearish to bullish across the 0–100 range using a continuous gradient. This provides immediate visual feedback on market conditions without requiring traders to reference fixed levels Dual-Zone Architecture: The indicator features both standard zones (20/80) and extreme zones (10/90) with distinct visual fills, helping traders differentiate between moderate and extreme conditions at a glance Normalization Advantage: By converting the channel into a normalized oscillator, traders can compare readings across different assets and timeframes on a consistent scale, making it versatile for multi-market analysis How to Use Add the indicator to your chart—it displays as a sub-chart oscillator below the main price chart Monitor the oscillator's position: readings above 80 indicate overbought conditions, below 20 indicate oversold conditions Watch for buy signals (circles at the bottom) when the oscillator crosses back above 20 from oversold territory, indicating a bullish mean reversion is underway Watch for sell signals (circles at the top) when the oscillator crosses back below 80 from overbought territory, signaling a bearish mean reversion Use the gradient color intensity to quickly assess momentum—greener tones indicate bullish positioning while redder tones indicate bearish positioning Combine with trend analysis: in uptrends, prioritize buy signals near the 20 level; in downtrends, prioritize sell signals near the 80 level Enable alerts using the built-in alert conditions to receive notifications when reversion signals trigger Customization Channel Length (default: 21): Controls the lookback period for both the HMA mean and ATR volatility calculation. Shorter values increase sensitivity for scalping; longer values provide smoother readings for swing trading Band Multiplier (default: 2.0): Adjusts the channel width by scaling the ATR value. Higher values create wider channels, producing fewer but higher-confidence signals. Lower values narrow the channel for more frequent signals Oscillator Smoothing (default: 3): Controls the WMA smoothing period applied to the raw oscillator. Increase this value in choppy markets to filter out noise; decrease it in clean-trending markets for faster signals Source (default: Close): Select the price source for all calculations. Alternatives like HL2 or HLC3 can provide smoother inputs Bullish/Bearish/Neutral Colors: Fully customizable color scheme for the gradient, zones, and signal markers to match your preferred chart theme Conclusion The Radiant Mean Reversion Channels indicator offers traders a refined approach to mean reversion analysis by combining the speed of Hull Moving Average, the adaptive volatility measurement of ATR, and intelligent WMA smoothing into a single normalized oscillator. Its gradient visualization, clearly defined reversion zones, and automated signal generation make it a practical and visually intuitive tool for identifying high-probability reversal points. Whether used for timing entries in range-bound markets or catching pullbacks in trending conditions, this indicator brings clarity and precision to mean reversion trading strategies. Chỉ báo Pine Script®của Pineify35Donchian Channel + 200 MA Trading IndicatorThis indicator combines the Donchian Channel with a 200-period moving average to identify strong trending opportunities with momentum confirmation. Signal Interpretation: 🟢 Green Triangle (Bullish Signal) Appears when price breaks above the upper channel AND is trading above the 200 MA Indicates strong bullish momentum Suggests potential long entry opportunity 🔴 Red Triangle (Bearish Signal) Appears when price breaks below the lower channel AND is trading below the 200 MA Indicates strong bearish momentum Suggests potential short entry opportunity Trading Style: Designed for right-side entry (trend-following after confirmation) The 200 MA filter helps avoid false signals by ensuring alignment with the broader trend Best suited for swing trading and capturing sustained moves Key Components: Green Upper Band: Resistance/breakout level Red Lower Band: Support/breakdown level Orange Line: 200-period moving average (trend filter) Blue Middle Line: Channel midpoint (optional display)Chỉ báo Pine Script®của ssun_68stelaraX - Donchian BreakoutstelaraX – Donchian Breakout stelaraX – Donchian Breakout is a breakout-focused indicator based on the Donchian Channel concept. It identifies bullish and bearish breakouts when price closes outside the previous high–low range, providing clear and rule-based breakout signals. For advanced AI-based chart analysis and automated breakout evaluation, visit stelarax.com Core logic The indicator calculates a Donchian Channel using a user-defined lookback period: * upper band is the highest high of the previous period * lower band is the lowest low of the previous period * middle line represents the midpoint of the channel Breakout conditions are defined as: * bullish breakout when price closes above the upper band * bearish breakout when price closes below the lower band Using the previous period values avoids repainting and ensures confirmed breakout signals. Visualization The script plots: * upper and lower Donchian Channel boundaries * a midpoint line for range context * a filled channel area to visualize the active range Breakout signals are marked directly on the chart: * upward triangle for bullish breakouts * downward triangle for bearish breakouts All colors are fully customizable. Alerts Alert conditions are included for: * bullish Donchian breakout * bearish Donchian breakout Alerts reference the active ticker and trigger only on confirmed breakout conditions. Use case This indicator is intended for: * breakout and trend-following strategies * identifying range expansions * systematic Donchian channel trading * momentum-based entry signals * multi-timeframe breakout analysis For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com Disclaimer This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user. Chỉ báo Pine Script®của stelaraX_official4stelaraX - Donchian ChannelstelaraX – Donchian Channel stelaraX – Donchian Channel is a classic price channel indicator designed to track market extremes over a defined lookback period. The indicator highlights the highest high and lowest low, providing a clear view of price range, breakout levels, and trend strength. For advanced AI-based chart analysis and automated range interpretation, visit stelarax.com Core logic The indicator calculates the Donchian Channel using a user-defined period: * upper band represents the highest high over the selected period * lower band represents the lowest low over the selected period * middle line represents the midpoint between upper and lower bands This structure allows traders to quickly identify range boundaries and directional bias. Visualization The script plots: * the upper Donchian Channel line * the lower Donchian Channel line * a central midpoint line The area between the upper and lower bands can be filled with a semi-transparent color to clearly visualize the active trading range. All colors are fully customizable. Use case This indicator is intended for: * breakout and trend-following strategies * identifying support and resistance ranges * volatility and range expansion analysis * channel-based trade management * multi-timeframe range evaluation For a fully automated AI-driven chart analysis solution, additional tools and insights are available at stelarax.com Disclaimer This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user. Chỉ báo Pine Script®của stelaraX_official2Cloud Donchian + Keltner + Bollinger**XAUUSD M1 - Upper, Middle & Lower Combination Clouds** This indicator combines three widely used volatility channels — Donchian, Keltner, and Bollinger Bands — into a single, clear cloud overlay optimized for the XAUUSD 1-minute chart. **What it does:** - Calculates upper, middle, and lower volatility zones by combining the three channels. - The **Upper Cloud** shows the potential upper price boundary based on the highest highs of the combined indicators. - The **Lower Cloud** shows the potential lower price boundary from the lowest lows of the combined indicators. - The **Middle Cloud** fills the area between the upper cloud’s bottom and lower cloud’s top, colored dynamically: green for rising trends and red for falling trends. - Visible lines highlight the upper and lower cloud boundaries for precise reference. **Why it’s useful:** - Helps traders identify support and resistance zones based on multiple volatility measures. - The dynamic middle cloud coloring provides intuitive visual cues on trend direction and strength. - Designed specifically for scalpers and short-term traders focused on fast-moving gold markets (XAUUSD, 1-minute timeframe). - Fully customizable input parameters allow users to adjust channel lengths and sensitivities to fit their trading style. **Inputs:** - Donchian channel length - Keltner channel EMA length and ATR multiplier - Bollinger Bands length and multiplier - Customizable cloud colors and line colors **Usage notes:** - This is a tool to support decision-making — it should be used in conjunction with other analysis techniques. - It does not provide explicit buy or sell signals but highlights key volatility zones and trend shifts. - Performance depends on market conditions; backtest results do not guarantee future outcomes. - The indicator is open-source and configurable to fit individual preferences. **Important:** - No guaranteed profits — trade responsibly. - Always combine this tool with sound risk management. Chỉ báo Pine Script®của macfonics17Robrechtian Long-Medium Breakout Trend SystemRobrechtian Long–Medium-Term Breakout Trend System A professional, rule-based trend-following strategy designed to capture large, sustained price movements using pure price action and breakouts. This system follows long-established trend-following philosophy: no prediction, no volatility targeting, and no profit targets. Only disciplined entries, position additions, and exits driven entirely by trend structure. Core Principles Breakout-driven entries: Initial positions are taken only when price breaks above/below the 80-day Donchian channel, confirming a long–medium-term trend shift. Short-term confirmation: Breakouts must also exceed the 20-day channel, reducing false positives. Trend-direction filter: A 50-day moving average slope filter ensures alignment with the broader trend. Explosive bar filter: Entries avoid excessively large, single-candle expansions (>2.5× ATR(20)) to prevent chasing exhaustion spikes. Pyramiding into strength: Additional units are added only when price makes fresh 20-day breakouts in the direction of the trend. No scaling out. No adding on dips. Exit only on trend violation: Positions are closed exclusively when price breaks the opposite 80-day channel. This preserves unlimited upside while enforcing disciplined exits. Pure trend philosophy: No volatility targeting, no smoothing, no discretionary overrides, no optimization for short-term performance. Intended Use This system is designed primarily for diversified futures portfolios, where diversification across dozens of globally liquid markets creates robustness and stability. However, it may also be used on individual assets for educational and analytical purposes. The system embraces the core trend-following logic: Small losses, big winners, and unlimited upside when trends persist. ⚠️ WARNINGS / DISCLAIMERS ⚠️ Warning 1 — This strategy is not optimized for single stocks The Robrechtian Trend System is designed for multi-asset futures portfolios, not single equities. Performance on individual tickers may vary greatly due to lack of diversification. ⚠️ Warning 2 — Trend following includes substantial drawdowns Deep drawdowns are a normal and expected feature of all long-term trend-following systems. The strategy does not attempt to smooth returns or manage volatility. If you seek steady, low-volatility equity curves, this system is not suitable. ⚠️ Warning 3 — No volatility targeting or risk smoothing This system intentionally avoids volatility-based position sizing. Trades may experience larger fluctuations than systems using risk parity or vol targeting. ⚠️ Warning 4 — Not financial advice This script is for educational and research purposes only. Past performance does not guarantee future results. Use at your own risk. ⚠️ Warning 5 — TradingView backtests have known limitations TradingView does not simulate: futures contract roll logic slippage real bid/ask spreads liquidity conditions limit-up/limit-down behavior Results may vary from live market execution.Chiến lược Pine Script®của LordRobrecht15RealBody Donchian ChannelsThis is an enhancement of the built-in TradingView Donchian Channel indicator.A technical variation of the standard DC, it utilizes candlestick real body data. Instead of using the absolute high and low (shadows) for extreme value calculation, this indicator derives the channel boundaries from the highest Max(Open, Close) and the lowest Min(Open, Close) within the specified length. This approach filters out noise from wicks/shadows, providing a cleaner look at sustained price ranges defined by buying and selling pressure between the open and close.Chỉ báo Pine Script®của awsl15Turtle System 1 (20/10) + N-Stop + MTF Table V7.2🐢 Description: Turtle System 1 (20/10) IndicatorThis indicator implements the original trading signals of the Turtle Trading System 1 based on the classic Donchian Channels. It incorporates a historically correct, volatility-based Trailing Stop (N-Stop) and a Multi-Timeframe (MTF) status dashboard. The script is written in Pine Script v6, optimized for performance and reliability.📊 Core Logic and ParametersThe system is a pure trend-following model, utilizing the more widely known, conservative parameters of the Turtle System 1:FunctionParameterValueDescriptionEntry$\text{Donchian Breakout}$$\mathbf{20}$Buy/Sell upon breaking the 20-day High/Low.Exit (Turtle)$\text{Donchian Breakout}$$\mathbf{10}$Close the position upon breaking the 10-day Low/High.Volatility$\mathbf{N}$ (ATR Period)$\mathbf{20}$Calculation of market volatility using the Average True Range (ATR).Stop-LossMultiplier$\mathbf{2.0} BER:SETS the initial and Trailing Stop at $\mathbf{2N}$.🛠️ Key Technical Features1. Original Turtle Trailing Stop (Section 4)The stop-loss mechanism is implemented with the historically accurate Turtle Trailing Logic. The stop is not aggressively tied to the current candle's low/high, which often causes premature exits. Instead, the stop only trails in the direction of the trend, maximizing the previous stop price against the new calculated $\text{Close} \pm 2N$:$$\text{New Trailing Stop} = \text{max}(\text{Previous Stop}, \text{Close} \pm (2 \times N))$$2. Reliable Multi-Timeframe (MTF) Status (Section 6)The indicator features a robust MTF status table.Purpose: It calculates and persistently stores the Turtle System 1 status (LONG=1, SHORT=-1, FLAT=0) for various timeframes (1H, 4H, 8H, 1D, and 1W).Method: It uses global var int variables combined with request.security(), ensuring the status is accurately maintained and updated across different bars and timeframes, providing a reliable higher-timeframe context.3. VisualizationsChannels: The 20-period (Entry) and 10-period (Exit) Donchian Channels are plotted.Stop Line: The dynamic $\mathbf{2N}$ Trailing Stop is visible as a distinct line.Signals: plotshape markers indicate Entry and Exit.MTF Table: A clean, color-coded status summary is displayed in the upper right corner.Chỉ báo Pine Script®của Semtex7630Turtle System 2 (55/20) + N-Stop + MTF Table V7.2🐢 Description: Turtle System 2 (55/20) IndicatorThis indicator implements the trading signals of the Turtle Trading System 2 based on the classic Donchian Channels, supplemented by a historically correct, volatility-based Trailing Stop (N-Stop) and a Multi-Timeframe (MTF) status overview. The script was developed in Pine Script v6 and is optimized for performance and robustness.📊 Core Logic and ParametersThe indicator is based on the rule-based trend-following system developed by Richard Dennis and William Eckhardt, utilizing the more aggressive Entry/Exit parameters of System 2:FunctionParameterValueDescriptionEntry$\text{Donchian Breakout}$$\mathbf{55}$Buy/Sell upon breaking the 55-day High/Low.Exit (Turtle)$\text{Donchian Breakout}$$\mathbf{20}$Close the position upon breaking the 20-day Low/High.Volatility$\mathbf{N}$ (ATR Period)$\mathbf{20}$Calculation of market volatility using the Average True Range (ATR).Stop-LossMultiplier$\mathbf{2.0} BER:SETS the initial and Trailing Stop at $\mathbf{2N}$.🛠️ Technical Implementation1. Correct Trailing Stop (Section 4)In contrast to many flawed implementations, the Trailing Stop is implemented here according to the Original Turtle Logic. The stop price (current_stop_price) is not aggressively tied to the current low or high. Instead, at the close of each bar, it is only trailed in the direction of the trade (math.max for long positions) based on the formula:$$\text{New Trailing Stop} = \text{max}(\text{Previous Stop}, \text{Close} \pm (2 \times N))$$This ensures the stop is only adjusted upon sustained positive movement and is not prematurely triggered by short-term, deep price shadows.2. Reliable Multi-Timeframe (MTF) Logic (Section 6)The MTF section utilizes global var int variables (mtf_status_1h, mtf_status_D, etc.) in conjunction with the request.security() function.Purpose: Calculates and persistently stores the current Turtle System 2 status (LONG=1, SHORT=-1, FLAT=0) for the timeframes 1H, 4H, 8H, 1D, and 1W.Advantage: By persistently storing the status using the var variables, the critical error of single-update status is eliminated. The states shown in the table are reliable and accurately reflect the Turtle System's position status on the respective timeframes.3. Visual ComponentsDonchian Channels: The entry (55-period) and exit (20-period) channels are drawn with color highlighting.N-Stop Line: The dynamically calculated Trailing Stop ($\mathbf{2N}$) is displayed as a magenta line.Visual Signals: plotshape markers indicate Entry and Exit points.MTF Table: A compact status summary with color coding (Green/Red/Gray) for the higher timeframes is displayed in the upper right corner.Chỉ báo Pine Script®của Semtex768Turtle 20-Day Breakout (Donchian)Yes, the most important indicator used in the Turtle Rules (Turtle Trading Strategy) for finding breakouts above previous highs is the Donchian Channel. 🐢📈 Donchian Channel The Donchian Channel is a trend-following indicator composed of three lines plotted on the chart: Shutterstock Upper Band: The highest high over the defined number of periods. Lower Band: The lowest low over the defined number of periods. Middle Line: The average of the Upper and Lower bands (not always used, but sometimes added for orientation). The Turtle Rules use the following periods for the entry signals (breakouts) you mentioned in your query: Short-Term (System 1): Crossing the 20-day high (this corresponds to the upper band of a Donchian Channel with a 20-period setting). Mid-Term/Long-Term (System 2): Crossing the 55-day high (this corresponds to the upper band of a Donchian Channel with a 55-period setting). Crossing the upper band signals a breakout and serves as the buy signal for a long position (for short positions, crossing below the lower band is used). Is there anything else I can translate for you, or would you like me to elaborate on the Average True Range (ATR), the other key indicator used by the Turtles?Chỉ báo Pine Script®của Semtex762211CM_Donchian Channels V5NOTE: this indicator was created by @ChrisMoody. I found it really useful, so I upgraded it from v3 to v5 This Indicator replicates the Donchian Channels, but with Alerts Capability You can set up an alert for when the price breaks above the upper band or when the price breaks below the lower band It will display respectively a green upward arrow or a red downward arrow It is possible to change the length of the Indicator Original Post: Chỉ báo Pine Script®của Raptor21115RSI Donchian Channel [DCAUT]█ RSI Donchian Channel 📊 ORIGINALITY & INNOVATION The RSI Donchian Channel represents an important synthesis of two complementary analytical frameworks: momentum oscillators and breakout detection systems. This indicator addresses a common limitation in traditional RSI analysis by replacing fixed overbought/oversold thresholds with adaptive zones derived from historical RSI extremes. Key Enhancement: Traditional RSI analysis relies on static threshold levels (typically 30/70), which may not adequately reflect changing market volatility regimes. This indicator adapts the reference zones dynamically based on the actual RSI behavior over the lookback period, helping traders identify meaningful momentum extremes relative to recent price action rather than arbitrary fixed levels. The implementation combines the proven momentum measurement capabilities of RSI with Donchian Channel's breakout detection methodology, creating a framework that identifies both momentum exhaustion points and potential continuation signals through the same analytical lens. 📐 MATHEMATICAL FOUNDATION Core Calculation Process: Step 1: RSI Calculation The Relative Strength Index measures momentum by comparing the magnitude of recent gains to recent losses: Calculate price changes between consecutive periods Separate positive changes (gains) from negative changes (losses) Apply selected smoothing method (RMA standard, also supports SMA, EMA, WMA) to both gain and loss series Compute Relative Strength (RS) as the ratio of smoothed gains to smoothed losses Transform RS into bounded 0-100 scale using the formula: RSI = 100 - (100 / (1 + RS)) Step 2: Donchian Channel Application The Donchian Channel identifies the highest and lowest RSI values within the specified lookback period: Upper Channel: Highest RSI value over the lookback period, represents the recent momentum peak Lower Channel: Lowest RSI value over the lookback period, represents the recent momentum trough Middle Channel (Basis): Average of upper and lower channels, serves as equilibrium reference Channel Width Dynamics: The distance between upper and lower channels reflects RSI volatility. Wide channels indicate high momentum variability, while narrow channels suggest momentum consolidation and potential breakout preparation. The indicator monitors channel width over a 100-period window to identify squeeze conditions that often precede significant momentum shifts. 📊 COMPREHENSIVE SIGNAL ANALYSIS Primary Signal Categories: Breakout Signals: Upper Breakout: RSI crosses above the upper channel, indicates momentum reaching new relative highs and potential trend continuation, particularly significant when accompanied by price confirmation Lower Breakout: RSI crosses below the lower channel, suggests momentum reaching new relative lows and potential trend exhaustion or reversal setup Breakout strength is enhanced when the channel is narrow prior to the breakout, indicating a transition from consolidation to directional movement Mean Reversion Signals: Upper Touch Without Breakout: RSI reaches the upper channel but fails to break through, may indicate momentum exhaustion and potential reversal opportunity Lower Touch Without Breakout: RSI reaches the lower channel without breakdown, suggests potential bounce as momentum reaches oversold extremes Return to Basis: RSI moving back toward the middle channel after touching extremes signals momentum normalization Trend Strength Assessment: Sustained Upper Channel Riding: RSI consistently remains near or above the upper channel during strong uptrends, indicates persistent bullish momentum Sustained Lower Channel Riding: RSI stays near or below the lower channel during strong downtrends, reflects persistent bearish pressure Basis Line Position: RSI position relative to the middle channel helps identify the prevailing momentum bias Channel Compression Patterns: Squeeze Detection: Channel width narrowing to 100-period lows indicates momentum consolidation, often precedes significant directional moves Expansion Phase: Channel widening after a squeeze confirms the initiation of a new momentum regime Persistent Narrow Channels: Extended periods of tight channels suggest market indecision and accumulation/distribution phases 🎯 STRATEGIC APPLICATIONS Trend Continuation Strategy: This approach focuses on identifying and trading momentum breakouts that confirm established trends: Identify the prevailing price trend using higher timeframe analysis or trend-following indicators Wait for RSI to break above the upper channel in uptrends (or below the lower channel in downtrends) Enter positions in the direction of the breakout when price action confirms the momentum shift Place protective stops below the recent swing low (long positions) or above swing high (short positions) Target profit levels based on prior swing extremes or use trailing stops to capture extended moves Exit when RSI crosses back through the basis line in the opposite direction Mean Reversion Strategy: This method capitalizes on momentum extremes and subsequent corrections toward equilibrium: Monitor for RSI reaching the upper or lower channel boundaries Look for rejection signals (price reversal patterns, volume divergence) when RSI touches the channels Enter counter-trend positions when RSI begins moving back toward the basis line Use the basis line as the initial profit target for mean reversion trades Implement tight stops beyond the channel extremes to limit risk on failed reversals Scale out of positions as RSI approaches the basis line and closes the position when RSI crosses the basis Breakout Preparation Strategy: This approach positions traders ahead of potential volatility expansion from consolidation phases: Identify squeeze conditions when channel width reaches 100-period lows Monitor price action for consolidation patterns (triangles, rectangles, flags) during the squeeze Prepare conditional orders for breakouts in both directions from the consolidation Enter positions when RSI breaks out of the narrow channel with expanding width Use the channel width expansion as a confirmation signal for the breakout's validity Manage risk with stops just inside the opposite channel boundary Multi-Timeframe Confluence Strategy: Combining RSI Donchian Channel analysis across multiple timeframes can improve signal reliability: Identify the primary trend direction using a higher timeframe RSI Donchian Channel (e.g., daily or weekly) Use a lower timeframe (e.g., 4-hour or hourly) to time precise entry points Enter long positions when both timeframes show RSI above their respective basis lines Enter short positions when both timeframes show RSI below their respective basis lines Avoid trades when timeframes provide conflicting signals (e.g., higher timeframe below basis, lower timeframe above) Exit when the higher timeframe RSI crosses its basis line in the opposite direction Risk Management Guidelines: Effective risk management is essential for all RSI Donchian Channel strategies: Position Sizing: Calculate position sizes based on the distance between entry point and stop loss, limiting risk to 1-2% of capital per trade Stop Loss Placement: For breakout trades, place stops just inside the opposite channel boundary; for mean reversion trades, use stops beyond the channel extremes Profit Targets: Use the basis line as a minimum target for mean reversion trades; for trend trades, target prior swing extremes or use trailing stops Channel Width Context: Increase position sizes during narrow channels (lower volatility) and reduce sizes during wide channels (higher volatility) Correlation Awareness: Monitor correlations between traded instruments to avoid over-concentration in similar setups 📋 DETAILED PARAMETER CONFIGURATION RSI Source: Defines the price data series used for RSI calculation: Close (Default): Standard choice providing end-of-period momentum assessment, suitable for most trading styles and timeframes High-Low Average (HL2): Reduces the impact of closing auction dynamics, useful for markets with significant end-of-day volatility High-Low-Close Average (HLC3): Provides a more balanced view incorporating the entire period's range Open-High-Low-Close Average (OHLC4): Offers the most comprehensive price representation, helpful for identifying overall period sentiment Strategy Consideration: Use Close for end-of-period signals, HL2 or HLC3 for intraday volatility reduction, OHLC4 for capturing full period dynamics RSI Length: Controls the number of periods used for RSI calculation: Short Periods (5-9): Highly responsive to recent price changes, produces more frequent signals with increased false signal risk, suitable for short-term trading and volatile markets Standard Period (14): Widely accepted default balancing responsiveness with stability, appropriate for swing trading and intermediate-term analysis Long Periods (21-28): Produces smoother RSI with fewer signals but more reliable trend identification, better for position trading and reducing noise in choppy markets Optimization Approach: Test different lengths against historical data for your specific market and timeframe, consider using longer periods in ranging markets and shorter periods in trending markets RSI MA Type: Determines the smoothing method applied to price changes in RSI calculation: RMA (Relative Moving Average - Default): Wilder's original smoothing method providing stable momentum measurement with gradual response to changes, maintains consistency with classical RSI interpretation SMA (Simple Moving Average): Treats all periods equally, responds more quickly to changes than RMA but may produce more whipsaws in volatile conditions EMA (Exponential Moving Average): Weights recent periods more heavily, increases responsiveness at the cost of potential noise, suitable for traders prioritizing early signal generation WMA (Weighted Moving Average): Applies linear weighting favoring recent data, offers a middle ground between SMA and EMA responsiveness Selection Guidance: Maintain RMA for consistency with traditional RSI analysis, use EMA or WMA for more responsive signals in fast-moving markets, apply SMA for maximum simplicity and transparency DC Length: Specifies the lookback period for Donchian Channel calculation on RSI values: Short Periods (10-14): Creates tight channels that adapt quickly to changing momentum conditions, generates more frequent trading signals but increases sensitivity to short-term RSI fluctuations Standard Period (20): Balances channel responsiveness with stability, aligns with traditional Bollinger Bands and moving average periods, suitable for most trading styles Long Periods (30-50): Produces wider, more stable channels that better represent sustained momentum extremes, reduces signal frequency while improving reliability, appropriate for position traders and higher timeframes Calibration Strategy: Match DC length to your trading timeframe (shorter for day trading, longer for swing trading), test channel width behavior during different market regimes, consider using adaptive periods that adjust to volatility conditions Market Adaptation: Use shorter DC lengths in trending markets to capture momentum shifts earlier, apply longer periods in ranging markets to filter noise and focus on significant extremes Parameter Combination Recommendations: Scalping/Day Trading: RSI Length 5-9, DC Length 10-14, EMA or WMA smoothing for maximum responsiveness Swing Trading: RSI Length 14, DC Length 20, RMA smoothing for balanced analysis (default configuration) Position Trading: RSI Length 21-28, DC Length 30-50, RMA or SMA smoothing for stable signals High Volatility Markets: Longer RSI periods (21+) with standard DC length (20) to reduce noise Low Volatility Markets: Standard RSI length (14) with shorter DC length (10-14) to capture subtle momentum shifts 📈 PERFORMANCE ANALYSIS & COMPETITIVE ADVANTAGES Adaptive Threshold Mechanism: Unlike traditional RSI analysis with fixed 30/70 thresholds, this indicator's Donchian Channel approach provides several improvements: Context-Aware Extremes: Overbought/oversold levels adjust automatically based on recent momentum behavior rather than arbitrary fixed values Volatility Adaptation: In low volatility periods, channels narrow to reflect tighter momentum ranges; in high volatility, channels widen appropriately Market Regime Recognition: The indicator implicitly adapts to different market conditions without manual threshold adjustments False Signal Reduction: Adaptive channels help reduce premature reversal signals that often occur with fixed thresholds during strong trends Signal Quality Characteristics: The indicator's dual-purpose design provides distinct advantages for different trading objectives: Breakout Trading: Channel boundaries offer clear, objective breakout levels that update dynamically, eliminating the ambiguity of when momentum becomes "too high" or "too low" Mean Reversion: The basis line provides a natural profit target for reversion trades, representing the midpoint of recent momentum extremes Trend Strength: Persistent channel boundary riding offers an objective measure of trend strength without additional indicators Consolidation Detection: Channel width analysis provides early warning of potential volatility expansion from compression phases Comparative Analysis: When compared to traditional RSI implementations and other momentum frameworks: vs. Fixed Threshold RSI: Provides market-adaptive reference levels rather than static values, helping to reduce false signals during trending markets where RSI can remain "overbought" or "oversold" for extended periods vs. RSI Bollinger Bands: Offers clearer breakout signals and more intuitive extreme identification through actual high/low boundaries rather than statistical standard deviations vs. Stochastic Oscillator: Maintains RSI's momentum measurement advantages (unbounded calculation avoiding scale compression) while adding the breakout detection capabilities of Donchian Channels vs. Standard Donchian Channels: Applies breakout methodology to momentum space rather than price, providing earlier signals of potential trend changes before price breakouts occur Performance Characteristics: The indicator exhibits specific behavioral patterns across different market conditions: Trending Markets: Excels at identifying momentum continuation through channel breakouts, RSI tends to ride one channel boundary during strong trends, providing trend confirmation Ranging Markets: Channel width narrows during consolidation, offering early preparation signals for potential breakout trading opportunities High Volatility: Channels widen to reflect increased momentum variability, automatically adjusting signal sensitivity to match market conditions Low Volatility: Channels contract, making the indicator more sensitive to subtle momentum shifts that may be significant in calm market environments Transition Periods: Channel squeezes often precede major trend changes, offering advance warning of potential regime shifts Limitations and Considerations: Users should be aware of certain operational characteristics: Lookback Dependency: Channel boundaries depend entirely on the lookback period, meaning the indicator has no predictive element beyond identifying current momentum relative to recent history Lag Characteristics: As with all moving average-based indicators, RSI calculation introduces lag, and channel boundaries update only as new extremes occur within the lookback window Range-Bound Sensitivity: In extremely tight ranges, channels may become very narrow, potentially generating excessive signals from minor momentum fluctuations Trending Persistence: During very strong trends, RSI may remain at channel extremes for extended periods, requiring patience for mean reversion setups or commitment to trend-following approaches No Absolute Levels: Unlike traditional RSI, this indicator provides no fixed reference points (like 50), making it less suitable for strategies that depend on absolute momentum readings USAGE NOTES This indicator is designed for technical analysis and educational purposes to help traders understand momentum dynamics and identify potential trading opportunities. The RSI Donchian Channel has limitations and should not be used as the sole basis for trading decisions. Important considerations: Performance varies significantly across different market conditions, timeframes, and instruments Historical signal patterns do not guarantee future results, as market behavior continuously evolves Effective use requires understanding of both RSI momentum principles and Donchian Channel breakout concepts Risk management practices (stop losses, position sizing, diversification) are essential for any trading application Consider combining with additional analytical tools such as volume analysis, price action patterns, or trend indicators for confirmation Backtest thoroughly on your specific instruments and timeframes before live trading implementation Be aware that optimization on historical data may lead to curve-fitting and poor forward performance The indicator performs best when used as part of a comprehensive trading methodology that incorporates multiple forms of market analysis, sound risk management, and realistic expectations about win rates and drawdowns. Chỉ báo Pine Script®của DCAUT37Quant Trend + Donchian (Educational, Public-Safe)What this does Educational, public-safe visualization of a quant regime model: • Trend : EMA(64) vs EMA(256) (EWMAC proxy) • Breakout : Donchian channel (200) • Volatility-awareness : internal z-scores (not plotted) for concept clarity Why it’s useful • Shows when trend & breakout align (clean regimes) vs conflict (chop) • Helps explain why volatility-aware systems size up in smooth trends and scale down in noise How to read it • EMA64 above EMA256 with price near/above Donchian high → trend-following alignment • EMA64 below EMA256 with price near/below Donchian low → bearish alignment • Inside channel with EMAs tangled → range/chop risk Notes • Indicator is educational only (no orders). • Built entirely with TradingView built-ins. • For consistent visuals: enable “Indicator values on price scale” and disable “Scale price chart only” in Settings → Scales . Chỉ báo Pine Script®của Algorific48Smoothed Basis Overview and Purpose The script calculates a smoothed mid-range basis between the highest and lowest prices over a specified period, then applies a smoothing function (smoothed moving average) to show the trend direction or momentum in a less noisy way. The area between the basis and its smoothed value is color-filled to visually highlight when the basis is above or below the smoothed average, signaling potentially bullish or bearish momentum. Indicator Setup length = Period length for calculating the highest and lowest values. signal = Smoothing period used to smooth the basis. offset =Optional horizontal shift to the plots (default 0). Core Calculations lower = Finds the lowest low over the past length bars. upper = Finds the highest high over the past length bars. basis = Calculates the midpoint between the highest and lowest. Smoothing Calculation (Smoothed Moving Average - SMMA) Declares smma as 0.0 initially. If the previous smma value is not available (like on the first bar), initializes with a simple moving average of basis over signal bars. Else applies formula which gives a smoother version of basis which reacts less to sudden changes. Plotting and Color Fill Plots the raw basis line and smoothed basis line . Fills the area between the basis and smoothed basis lines: Greenish fill if the basis is above the smoothed value (potentially bullish). Reddish fill if the basis is below the smoothed value (potentially bearish). Interpretation and Use The indicator visually shows where price ranges are shifting by tracking the midpoint between recent highs and lows. The smoothed basis serves as a trend or momentum filter by dampening noise in the basis line. When the basis is above the smoothed line (green fill), it signals upward momentum or strength; below it (red fill) suggests downward momentum or weakness. The length and signal parameters allow tuning for different timeframes or asset volatility. In summary, this code creates a custom smoothed oscillator based on the midpoint range of price extremes, highlighting trend changes via color fills and smoothening price action noise with an SMMA.Chỉ báo Pine Script®của oberezCập nhật 48VWAP Price ChannelVWAP Price Channel cuts the crust off of a traditional price channel (Donchian Channel) by anchoring VWAPs at the highs and lows. By doing this, the flat levels, characteristic of traditional Donchian Channels, are no more! Author's Note: This indicator is formed with no inherent use, and serves solely as a thought experiment. > Concept I would be hesitant to call this a "predictive" indicator, however the behavior of it would suggest it could be considered at least partially predictive Essentially, the Anchored VWAPs creates something from otherwise nothing. While the DC upper or lower values are staying flat, the VWAPs improvise based on price and volume to project a level that may be a better representation of where future highs or lows may settle. Visually, this looks like we have cut off the corners of the Donchian Channel. Note: Notice how we are calculating values before the corners are realized. > Implementation While this is only a concept indicator, The specific application I've gone with for this, is a sort of supertrend-ish display (A Trend Flipping Trailing Stop Loss). The script uses basic logic to create a trend direction, and then displays the Anchored VWAPs as a form of trailing stop loss. While "In Trend", the script fills in the area between the VWAP and Price in the direction of trend. When new highs or lows are made while in trend, the opposite VWAP will start to generate at the new highs or lows. These happen on every new high or low, so they are not indicating the trend shift, but could be interpreted as breakout levels for the current trend direction in order for continuation. Note: All values are drawn live, but when using higher timeframes, there is a natural calculation discrepancy when using live data vs. historical. > Technicals In this script, I'm simply detecting new highs or lows from the DC and using those as the anchor frequency on the built-in VWAP function. So each time a new high or low is made based on DC, the VWAP function re-anchors to the high or low of the candle. Past that, I have implemented some logic in order to account for a common occurrence I faced during development. Frequently, the price would outpace the anchored VWAP, so we would end up with the VWAP being further from price than the actual DC upper or lower. Due to this, what I have ended up with was a third value which, rather than switching between raw VWAP values and DC values, it adjusts the value based on the change in the VWAP value. This can be simply thought of as a "Start + Change" type of setup. By doing this, I can use the change values from the actual anchored VWAP, and under normal conditions, this will also be the true VWAP value. However, situationally, I am able to update the start value which we're applying the VWAP change to. In other words, when these situations happen, the VWAP change is added to the new (closer to price) DC value. The specific trend logic being used is nothing fancy at all, we are simply checking if a new high or low is created and setting the trend in that direction. This is in line with some traditional DC Strategies. To those who made it here, Just remember: The chart may be ugly, but it's the fastest analysis of the data you can get. Nicer displays often come at the hidden cost of latency. You have to shoot your shot to make it. Choose 2: Fast, Clean, Useful Enjoy!Chỉ báo Pine Script®của SamRecioCập nhật 2323 2.8 KQueso Heat IndexQueso Heat Index (QHI) — ATR-Adaptive Edge-Pressure Gauge QHI measures how strongly price is pressing the edges of a rolling consolidation window. It heats up when price repeatedly pushes the window up , cools down when it pushes down , and drifts back toward neutral when price wanders in the middle. Everything is ATR-normalized so it adapts across symbols and timeframes. Output: a signed score from −100 … +100 > 0 = bullish pressure (hot) < 0 = bearish pressure (cold) ≈ 0 = neutral (no side dominating) What you’ll see on the chart Rolling “box” (Donchian window): top, bottom, and midline. Optional compact-box shading when the window height is small relative to ATR. Background “thermals”: tinted red when Heat > Hot threshold, blue when Heat < Cold threshold (intensity scales with the score). Optional Heat line (−100..+100), optional 0/±80 thresholds, and optional push markers (PU/PD). Optional table showing the current Heat score, placeable in any corner. How it works (under the hood) Consolidation window — Over lookback bars we track highest high (top), lowest low (bottom), and midpoint. The window is called “compact” when box height ≤ ATR × maxRangeATR . ATR-based push detection — A bar is a push-up if high > prior window high + (epsATR × ATR + tick buffer) . A push-down if low < prior window low − (epsATR × ATR + tick buffer) . We also measure how many ATRs beyond the edge the bar traveled. Heat gains (symmetric) — Each push adds/subtracts Heat: base gain + streak bonus × consecutive pushes + magnitude bonus × ATRs beyond edge . Decay toward neutral — Each bar, Heat decays by a percentage. Decay is: – higher in the middle band of the box, and – adaptive : the farther (in ATRs) from the relevant band (top when hot, bottom when cold), the faster it decays; hugging the band slows decay. Midpoint bias (optional) — Gentle drift toward hot when trading above mid, toward cold when below mid, with a dead-zone near mid so tiny wobbles don’t matter. Reset on regime flip (optional) — First valid push from the opposite side can snap Heat back to 0 before applying new gains. How to read it Rising hot with slow decay → strong upside pressure; pullbacks that hold near the top band often continue. Flip to cold after being hot → regime change risk; tighten risk or consider the other side. Compact window + rising hot (or cold) → squeeze-and-go conditions. Neutral (≈ 0) → edges aren’t being pressured; expect mean-reversion inside the box. Key inputs (what they do) Window & ATR lookback : size of the Donchian window (longer = smoother, slower). atrLen : ATR period for all volatility-scaled thresholds. maxRangeATR : defines “compact” windows for optional shading. topBottomFrac : how thick the top/bottom bands are (used for decay/pressure logic). Push detection (ATR-based) epsATR : how many ATRs beyond the prior edge to count as a real push. tickBuff : fixed extra ticks beyond the ATR epsilon (filters micro-breaches). Heat gains gainBase : main fuel per push. gainPerStreak : rewards consecutive pushes. gainPer1ATRBrk : adds more for stronger breakouts past the edge. resetOppSide : snap back to 0 on the first opposite-side push. Decay decayPct : baseline % removed each bar. decayAccelMid : multiplies decay when price is in the middle band. adaptiveDecay , decayMinMult , decayPerATR , decayMaxMult : scale decay with ATR distance from the nearest “target” band (top if hot, bottom if cold). Midpoint bias useMidBias : enable/disable drift above/below midpoint. midDeadFrac : width of neutral (no-drift) zone around mid. midBiasPerBar : max drift per bar at the box edge. Visuals (all default to OFF for a clean chart) Plot Heat line + Show 0/±80 lines (only shows thresholds if Heat line is on). Hot/Cold thresholds & transparency floors for background shading. Push markers (PU/PD). Heat score table : toggle on; choose any corner. Tuning quick-starts Daily trending equities : lookback 40–60; epsATR 0.10–0.25; gainBase 12–18; gainPerStreak 0.5–1.5; gainPer1ATRBrk 1–2; decayPct 3–6; adaptiveDecay ON (decayPerATR 0.5–0.8). Intraday / noisy : raise epsATR and tickBuff to filter noise; keep decayPct modest so Heat can build. Weekly swing : longer lookback/atrLen; slightly lower decayPct so regimes persist. Alerts (included) New window HIGH (push-up) New window LOW (push-down) Heat turned HOT (crosses above your Hot threshold) Heat turned COLD (crosses below your Cold threshold) Best practices & notes Use QHI as a pressure gauge , not a standalone system—combine with your entry/exit plan and risk rules. On thin symbols, increase epsATR and/or tickBuff to avoid spurious pushes. Gap days can register large pushes; ATR scaling helps but consider context. Want the Heat in a separate pane? Use the companion panel version; keep this overlay for background/box visuals. Pine v6. Warm-up: values appear as soon as one bar of window history exists. TL;DR QHI quantifies how hard price is leaning on a consolidation edge. It’s ATR-adaptive, streak- and magnitude-aware, and cools off intelligently when momentum fades. Watch for thermals (background), the score (−100..+100), and fresh push alerts to time entries in the direction of pressure. Chỉ báo Pine Script®của QuesoTradesCập nhật 4TrendZonesTrendZones This is an indicator which I use, have tested, tweaked and added features to for use in my trend following investing system. I got the idea for it when for some reason I was looking for a dynamic reference to measure the height of a channel or something. In search of this I made MA’s of the high and low borders of a Donchian channel which turned out to be two near parallel and stunningly smooth curves. This visual was so appealing that I immediately tried to turn it into a replacement for the KeltCOG which I previously used in my system. First I created a curve in the middle of the upper and lower curves, which I called COG (Center Of Gravity). Then I decided to enter only one lookback and let the script create a Donchian channel with half the lookback and use this to create the curves with an MA of whole lookback. For this reason the minimum lookback is set to 14, enough room for the Donchian Channel of 7 periods. This Donchian ChanneI has a special way of calculating the borders, involving a 5 period Median value. Thanks to this these borders are really a resistance and support level, which won’t change at a whim, e.g. when a ‘dead cat bounce’ occurs. I prevented the Donchian channel to show itself between the curves and only pop out from behind these. These pop outs now function as “strong trend zones”. I gave it colors (blue:-strong up, green: moderate up, orange: moderate down, red: strong down, near COG: gray, curves horizontal: gray) and it looked very appealing. I tested it in different time frames. In some weekend, when I was bored, I observed for a few hours the minute chart of bitcoin. It turned out that you can reliably tell that an uptrend ends when the candles go under the COG beginning a downtrend. Uptrend starts again once the candles go above COG. As Trends on minute charts only last around half an hour, this entertainment made the potential of this indicator very clear to me in just one afternoon. Risk Management, Safe Level and Logical Stops. In the inputs are settings for “Risk Tolerance”, and to activate “Show Logical Stop Level” (activated in example chart) and “Show Safe Level”. As a rule of thump a trade should not expose the invested capital to a risk of losing more than 2 percent. I divided my investment capital in ten equal parts which are allocated to ten different stocks or other instruments or kept liquid. This means that when a position is closed by triggering a Stop with a loss of 20 percent, the invested capital suffers only 2 percent (20% x 10% = 2%). This is why the value for “Risk Tolerance” has a default of 20. Because I put my Stops on the lower curve, a “Safe Level” can be calculated such that when you buy for a price below or at this level, the stop will protect the position sufficiently. Because I only buy when the instrument is in uptrend, the buying price should be between COG and Safe Level. Although I never do that, putting the stop at other curves is feasible and when you want to widen the stop (I never lower my stops btw) in a downtrend situation, even 1 ATR below the “Low Border”. I call these “Logical Stop Levels”, marked with dark green circles on the lower curve when safe buying by placing the Stoploss on this curve is possible, gray circles on the other curves, on the Upper Curve navy when price enters very profitable level. In a downtrend situation maroon circles appear. Target lines When I open a position I always set a Stoploss and a Target, for this purpose two types of Target values can be set and corresponding Target lines activated. These lines are drawn above the “High Border” at the set distance. If one expects some price to be used, differences will occur. Other Features Support Zone, this is 1 ATR below the “Low Border”, the maroon circles of the “Logal Stops” are placed on this “Support level”. Stop distance and Channel Width. (activated in example chart) These are reported in a two cell table in the right lower corner of the main panel. I created this because I want to be able to check the volatility, whether the channel shows a situation in which safe buying in most levels of the channel is possible or what risk you take when you buy now and set the Stop at the nearest logical level (which is not always the “Lower curve”). This feature comes in handy for creating a setup I propose in the “Day Trading Fantasy” below. Some General and User Settings. I never activate this, perhaps you will. Use Of TrendZones In My System. Create a list of stocks in uptrend. I define ‘stock in uptrend’ as in uptrend zone in all three monthly, weekly and daily charts, all three should at the same time be in uptrend. The advantage of TrendZones is that you can immediately see in which zone the candle moves. Opening a position in a stock from the above list. I do this only when in both the daily and weekly the green dot on the lower curve indicates a buying opportunity. This is usually not the case in most of the items of the list, this feature thus provides a good timing for opening a position. Sometimes you need to wait a few weeks for this to happen. Setting a target over a position. For this I use the Target percent line of the weekly chart with the default value of 10. Updating the Stoploss and Target values. Every week or two weeks I set these to the new values of the “Lower Curve” and the Target line of the weekly. Attention: never shift down Stops, only up or let them stay the same when the curve moves down. I never use Stop levels on other curves. I Check the charts whenever I like to do this. Close the position when the uptrend obviously shifts down. Otherwise I let the profits run until the Target triggers which closes the position with some profit. For selecting stocks an checking charts for volume events, I also use a subpanel indicator called “TZanalyser”, which borrows the visual of my “Fibonacci Zone Oscillator”, is based on TrendZones and includes code from my REVE indicators. I intend to publish that as well. Day Trading Fantasy. Day trading is an attempt to earn a dime by opening a position in the morning and close it during the day again with a profit (or a loss). Before the market closes, you close all day trading positions. In my fantasy the “Logical Stop Level” is repurposed for use as entry point and the ATR-based Target line is used to provide a target setting in an intraday chart, like e.g. 15 minute. To do this the “Safe Level” should be limited to between Channel width and COG. This can be done by showing “Safe Level” and “Channel Width” and then set “Risk Tolerance” to around the shown Channel Width. In this setting you can then wait for the green circle to show up for entering your trade and protect it with the stop. I don’t know if this works fine or if it’s better than other day trade systems, because I don’t do day trading. Take care and have fun. Chỉ báo Pine Script®của eykpunterCập nhật 2121654Expanded Cloud [LuxAlgo]The Expanded Cloud tool allows traders to identify and follow trends accurately. It is based on the well-known Donchian Channels, but with enhanced features. It features a trailing cloud that expands with the price and a trading stats dashboard. 🔶 USAGE The tool is super easy to use. Traders can identify bigger or smaller trends just by adjusting the length from the settings panel. Trend identification is based on Donchian Channels. An uptrend is indicated when the cloud is located below the price, while a downtrend is indicated when the cloud is above it. Dots signal the start of a new trend, and the width of the clouds identifies the strength of the price expansion. The wider the cloud, the bigger the move. The expanded cloud, due to its visual, can also act as a trailing stop. 🔹 Trend Identification As we can see in the chart above, different length values identify different trends on the same BTC daily chart. Larger values identify larger trends. 🔹 Cloud Expansion From the settings panel, traders can adjust how the clouds expand based on the Expansion % parameter. It accepts values from 0 to 100, which controls how much of the expansion is taken into account. Higher values will make the cloud expand and get closer to the price faster. When the cloud moves opposite to the direction of the indicated trend (e.g: the cloud decreases while being below the price), it is often indicative of the end of a retracement, and we can expect the price to move with the indicated trend. The chart above shows the effect of different Expansion % values. 🔹 Dashboard The trading statistics dashboard informs traders of key metrics derived from the tool. The following are notable: PNL: Theoretical profit or loss from all trends identified by the tool in the right scale units. EXPECT.: Expected value of each trade. It is derived from win rate and risk-to-reward metrics. AVG: 1st TOUCH: The average number of bars from the beginning of a new trend until the price touches the cloud for the first time. 🔶 SETTINGS Length: Length for trend detection Expansion %: Percentage of price expansion for cloud formation Source: Source of the data 🔹 Dashboard Show Dashboard: Enable/disable the statistics dashboard Location: Dashboard location Size: Dashboard size Chỉ báo Pine Script®của LuxAlgo1717 2.7 KRSI-EMA-Crossing with Donchian-Stop-LossThe Donchian RSI Indicator is a visual tool that combines momentum and trend analysis to identify high-quality long opportunities based on RSI crossovers, price action, and Donchian channel dynamics. How It Works Momentum Signal: A bullish RSI crossover is detected when the RSI crosses above its moving average. Trend Filter: A signal is only valid if the crossover occurs while the price is above its moving average – filtering out entries against the prevailing trend. Signal Candle: The high of the crossover candle is stored. Entry Trigger: A valid signal occurs when a later candle closes above that signal high. Stop-Loss (Visual Only) The lower band of the Donchian Channel acts as a visual reference for a dynamic stop-loss level. Features Customizable RSI, Donchian Channel, and moving average lengths Selectable MA types: SMA, EMA, WMA, VWMA, HMA Signal candle highlighted (yellow background) Entry points labeled on the chart Price MA and Donchian Channel plotted Trend filter improves signal quality by confirming upward bias Use Case Designed for swing and position traders Optimized for use on daily or 4H charts Chỉ báo Pine Script®của Kahael66Smart Breakout with ATR Stop-LossThe Smart Breakout indicator combines a classic 20-day Donchian channel breakout with a tight trailing stop, drawing green lines and “ENTRY” labels at the bar after a valid breakout, and red lines and “EXIT” label at the bar after a stop-loss breach. By default it uses the chart’s timeframe to compute ATR and stops, but you can flip on Daily lock to freeze both ATR and price reads at the daily resolution—so your stops stay the same whether you view at 1s, 15 m, 4h or lower frequency bars. Key features: 20-day Donchian breakout: entry when price closes above the highest high of the previous 20 bars 2 × ATR(14) trailing stop: initialized at entry and raised only when the new (close – 2 × ATR) exceeds the prior stop Daily lock option: Ensures all ATR and close values are calculated on the daily timeframe, keeping stop levels consistent across resolutions Chỉ báo Pine Script®của stevesmartmobileCập nhật 43[3Commas] Turtle StrategyTurtle Strategy 🔷 What it does: This indicator implements a modernized version of the Turtle Trading Strategy, designed for trend-following and automated trading with webhook integration. It identifies breakout opportunities using Donchian channels, providing entry and exit signals. Channel 1: Detects short-term breakouts using the highest highs and lowest lows over a set period (default 20). Channel 2: Acts as a confirmation filter by applying an offset to the same period, reducing false signals. Exit Channel: Functions as a dynamic stop-loss (wait for candle close), adjusting based on market structure (default 10 periods). Additionally, traders can enable a fixed Take Profit level, ensuring a systematic approach to profit-taking. 🔷 Who is it for: Trend Traders: Those looking to capture long-term market moves. Bot Users: Traders seeking to automate entries and exits with bot integration. Rule-Based Traders: Operators who prefer a structured, systematic trading approach. 🔷 How does it work: The strategy generates buy and sell signals using a dual-channel confirmation system. Long Entry: A buy signal is generated when the close price crosses above the previous high of Channel 1 and is confirmed by Channel 2. Short Entry: A sell signal occurs when the close price falls below the previous low of Channel 1, with confirmation from Channel 2. Exit Management: The Exit Channel acts as a trailing stop, dynamically adjusting to price movements. To exit the trade, wait for a full bar close. Optional Take Profit (%): Closes trades at a predefined %. 🔷 Why it’s unique: Modern Adaptation: Updates the classic Turtle Trading Strategy, with the possibility of using a second channel with an offset to filter the signals. Dynamic Risk Management: Utilizes a trailing Exit Channel to help protect gains as trades move favorably. Bot Integration: Automates trade execution through direct JSON signal communication with your DCA Bots. 🔷 Considerations Before Using the Indicator: Market & Timeframe: Best suited for trending markets; higher timeframes (e.g., H4, D1) are recommended to minimize noise. Sideways Markets: In choppy conditions, breakouts may lead to false signals—consider using additional filters. Backtesting & Demo Testing: It is crucial to thoroughly backtest the strategy and run it on a demo account before risking real capital. Parameter Adjustments: Ensure that commissions, slippage, and position sizes are set accurately to reflect real trading conditions. 🔷 STRATEGY PROPERTIES Symbol: BINANCE:ETHUSDT (Spot). Timeframe: 4h. Test Period: All historical data available. Initial Capital: 10000 USDT. Order Size per Trade: 1% of Capital, you can use a higher value e.g. 5%, be cautious that the Max Drawdown does not exceed 10%, as it would indicate a very risky trading approach. Commission: Binance commission 0.1%, adjust according to the exchange being used, lower numbers will generate unrealistic results. By using low values e.g. 5%, it allows us to adapt over time and check the functioning of the strategy. Slippage: 5 ticks, for pairs with low liquidity or very large orders, this number should be increased as the order may not be filled at the desired level. Margin for Long and Short Positions: 100%. Indicator Settings: Default Configuration. Period Channel 1: 20. Period Channel 2: 20. Period Channel 2 Offset: 20. Period Exit: 10. Take Profit %: Disable. Strategy: Long & Short. 🔷 STRATEGY RESULTS ⚠️Remember, past results do not guarantee future performance. Net Profit: +516.87 USDT (+5.17%). Max Drawdown: -100.28 USDT (-0.95%). Total Closed Trades: 281. Percent Profitable: 40.21%. Profit Factor: 1.704. Average Trade: +1.84 USDT (+1.80%). Average # Bars in Trades: 29. 🔷 How to Use It: 🔸 Adjust Settings: Select your asset and timeframe suited for trend trading. Adjust the periods for Channel 1, Channel 2, and the Exit Channel to align with the asset’s historical behavior. You can visualize these channels by going to the Style tab and enabling them. For example, if you set Channel 2 to 40 with an offset of 40, signals will take longer to appear but will aim for a more defined trend. Experiment with different values, a possible exit configuration is using 20 as well. Compare the results and adjust accordingly. Enable the Take Profit (%) option if needed. 🔸Results Review: It is important to check the Max Drawdown. This value should ideally not exceed 10% of your capital. Consider adjusting the trade size to ensure this threshold is not surpassed. Remember to include the correct values for commission and slippage according to the symbol and exchange where you are conducting the tests. Otherwise, the results will not be realistic. If you are satisfied with the results, you may consider automating your trades. However, it is strongly recommended to use a small amount of capital or a demo account to test proper execution before committing real funds. 🔸Create alerts to trigger the DCA Bot: Verify Messages: Ensure the message matches the one specified by the DCA Bot. Multi-Pair Configuration: For multi-pair setups, enable the option to add the symbol in the correct format. Signal Settings: Enable the option to receive long or short signals (Entry | TP | SL), copy and paste the messages for the DCA Bots configured. Alert Setup: When creating an alert, set the condition to the indicator and choose "alert() function call only". Enter any desired Alert Name. Open the Notifications tab, enable Webhook URL, and paste the Webhook URL. For more details, refer to the section: "How to use TradingView Custom Signals". Finalize Alerts: Click Create, you're done! Alerts will now be sent automatically in the correct format. 🔷 INDICATOR SETTINGS Period Channel 1: Period of highs and lows to trigger signals Period Channel 2: Period of highs and lows to filter signals Offset: Move Channel 2 to the right x bars to try to filter out the favorable signals. Period Exit: It is the period of the Donchian channel that is used as trailing for the exits. Strategy: Order Type direction in which trades are executed. Take Profit %: When activated, the entered value will be used as the Take Profit in percentage from the entry price level. Use Custom Test Period: When enabled signals only works in the selected time window. If disabled it will use all historical data available on the chart. Test Start and End: Once the Custom Test Period is enabled, here you select the start and end date that you want to analyze. Check Messages: Check Messages: Enable this option to review the messages that will be sent to the bot. Entry | TP | SL: Enable this options to send Buy Entry, Take Profit (TP), and Stop Loss (SL) signals. Deal Entry and Deal Exit: Copy and paste the message for the deal start signal and close order at Market Price of the DCA Bot. This is the message that will be sent with the alert to the Bot, you must verify that it is the same as the bot so that it can process properly. DCA Bot Multi-Pair: You must activate it if you want to use the signals in a DCA Bot Multi-pair in the text box you must enter (using the correct format) the symbol in which you are creating the alert, you can check the format of each symbol when you create the bot. 👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented. __ The information and publications within the 3Commas TradingView account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc. Chiến lược Pine Script®của 3Commas11186POC-Candle-EMA-ATR-LongShadow-50percCandleThis is a script for those who trade based on volume and smart money strategies. Some of the features of this script: - Display "Time Price Opportunity Chart". These points help traders to identify price opportunities over time and have a better analysis of the market. - Mark candles that have traded more volume than previous candles. - Mark candles whose body is at least and not more than 50% of the total candle size, these candles can be found more easily in smart money strategies. - Mark spike candles to find FVG faster - Mark candles that have a shadow of at least more than 380 points and can be good reversal points. - EMA indicator to check the market trend - DonchianChannel indicator to check the price trend on the chart RegardsChỉ báo Pine Script®của mk881311160Long and Short Term Highs and LowsLong and Short Term Highs and Lows Overview: This indicator is designed to help traders identify significant price points by marking new highs and lows over two distinct timeframes—a long-term and a short-term period. It achieves this by drawing optional channel lines that outline the highest highs and lowest lows over the chosen time periods and by plotting visual markers (triangles) on the chart when a new high or low is detected. Key Features: Dual Timeframe Analysis: Long Term: Uses a user-defined “Time Period” (default 52) and “Time Unit” (default: Weekly) to determine long-term high and low levels. Short Term: Uses a separate “Time Period” (default 50) and “Time Unit” (default: Daily) to compute short-term high and low levels. Optional Channel Display: For both long and short term periods, you have the option to display a channel by plotting the highest and lowest values as lines. This visual channel helps to delineate the range within which the price has traded over the selected period. New High/Low Markers: The indicator identifies moments when the highest high or lowest low is updated relative to the previous bar. When a new high is established, an up triangle is plotted above the bar. Conversely, when a new low occurs, a down triangle is plotted below the bar. Separate input toggles allow you to enable or disable these markers independently for the long-term and short-term setups. Inputs and Settings: Long Term High/Low Period Settings: Show New High/Low? (STW): Toggle to enable or disable the plotting of new high/low markers for the long-term period. Time Period: The number of bars used to calculate the highest high and lowest low (default is 52). Time Unit: The timeframe on which the long-term calculation is based (default is Weekly). Show Channel? (SCW): Toggle to display the channel lines that connect the long-term high and low levels. Short Term High/Low Period Settings: Show New High/Low?: Toggle to enable or disable the plotting of new high/low markers for the short-term period. Time Period: The number of bars used for calculating the short-term extremes (default is 50). Time Unit: The timeframe on which the short-term calculations are based (default is Daily). Show Channel?: Toggle to display the channel lines for the short-term highs and lows. Indicator Logic: Channel Calculation: The script uses the request.security function to pull data from the specified timeframes. For each timeframe: It calculates the lowest low over the defined period using ta.lowest. It calculates the highest high over the defined period using ta.highest. These values can be optionally plotted as channel lines when the “Show Channel?” option is enabled. New High/Low Detection: For each timeframe, the indicator compares the current high (or low) with its immediate previous value: New High: When the current high exceeds the previous bar’s high, an up triangle is drawn above the bar. New Low: When the current low falls below the previous bar’s low, a down triangle is drawn below the bar. Usage and Interpretation: Trend Identification: When new highs (or lows) occur, they can signal the start of a strong upward (or downward) movement. The indicator helps you visually track these critical turning points over both longer and shorter periods. Channel Breakouts: The optional channel display offers additional context. Price movement beyond these channels may indicate a breakout or a significant shift in trend. Customizable Timeframes: You can adjust both the time period and time unit to fit your trading style—whether you’re focusing on longer-term trends or short-term price action. Conclusion: This indicator provides a dual-layer analysis by combining long-term and short-term perspectives, making it a versatile tool for identifying key highs and lows. Whether you are looking to confirm trend strength or spot potential breakouts, the “Long and Short Term Highs and Lows” indicator adds a valuable visual element to your TradingView charts.Chỉ báo Pine Script®của AltcoinDreaming83Xem thêm bài đăng112233445566778899…999999