指標和策略
RRC Sniper SetupElaborates Mike's RRC method.
his is how the pros time high-conviction options plays without chasing or bleeding theta.
We use the RRC Method: Reclaim → Retrace → Confirm
This is your sniper playbook for clean, high-odds entries. Let’s break it down 👇
5m chart: Draw VWAP, EMA 21, prior high/low
1m chart: Watch for reclaim + retrace + confirmation
THEN
Options flow or volume spike = green light
RRC is a reaction model. Use 5-min for setup, 1-min for execution. Hope this helps
🔁 1. RECLAIM – Momentum Trigger
Price reclaims a key level:
– VWAP
– Prior support/resistance
-EMA 113 1 MIN/ EMA 21 5 MIN
– Psychological zone (e.g., 5000 on SPX)
– Opening range high/low
This move traps sellers and signals bulls are back.
Most traders FOMO here — don’t. You wait.
📉 2. RETRACE – Setup Zone
Price pulls back to retest the reclaim level.
You want: – Tight candles
– Lower volume
– Wick holds
– No panic selling
This is where you prepare the strike, expiration, and plan.
✅ 3. CONFIRMATION – Green Light
Buyers step in, trendline breaks, or volume surges.
Once price holds and pushes, it confirms the setup.
👉 This is your entry.
2x4x Stochastic2x4x Stochastic (with signal boxes, triggers, and %D display)
This indicator visualizes four Stochastic %D lines (D1–D4) along with their corresponding higher timeframe (HTF) versions, all scaled into separate sections of the same pane. It provides clear visual signals when all local and HTF stochastics are either overbought or oversold.
Key features:
4 customized stochastic %D calculations: D1 (9,1,3), D2 (14,1,3), D3 (40,1,4), D4 (60,1,10)
Automatic or manual higher timeframe selection
Signal box appears when all 8 stochastics are above overbought or below oversold thresholds (Standard mode)
Optional white line marks end of signal box
Optional green/red dotted line when HTF stochastic breaks defined trigger level after a signal box
Adjustable OB/OS levels for LTF and HTF separately (e.g., 15/85 or 10/90)
Full alarm system with time filter (e.g. 09:00–22:00) for box start, box end, and white line
This version uses only the Standard logic for signals – no alternative modes. Clean, stable, and optimized for performance.
DTC_SVVolume is the footprint of smart money.
This indicator helps you track it with surgical precision. DTC_SV is a powerful, all-in-one volume intelligence tool built for traders who rely on volume expansion, institutional candle footprints, and relative strength logic.
Inspired by the Traders Reality framework, this script detects and color-codes vector candles (high-volume momentum candles), provides real-time stats in a clean dashboard, and offers bar-by-bar context for smart money involvement.
🧠 Core Features
📊 Smart Vector Candle Detection
Automatically highlights candles with 1.5x or 2x relative volume.
Dynamic color coding (Green, Red, Blue, Purple) to indicate type and strength.
🟦 Live Volume Histogram with MA
Volume bars show strength and weakness with clarity.
20-period volume moving average line included for trend context.
💬 Volume Labels on Bars
Real-time labels on each vector candle showing absolute volume and % above average.
Helps you see the punch behind every candle.
📈 Advanced Dashboard Panel (Top/Bottom Corner)
Stay data-aware without clutter. The live table shows:
✅ RVOL % – Relative Volume of the current bar.
📈 Daily Trend – Based on position vs 10 & 20 EMA (from daily timeframe).
🔍 Distance to Daily EMA 10/20 – % deviation from mean.
♻️ Avg Recovery of Last 5 Vectors – A key signal for mean reversion plays.
📊 Session RVOL – How current volume stacks up within today’s session.
🧮 Avg Volume of Last 10 Vector Candles – Measures momentum strength.
🔁 Today vs Previous Day Total Volume – Real-time market participation pulse.
🚀 Use Cases
Identify true institutional candles during fake retail moves.
Measure when liquidity is being injected, not just price pushing.
Gauge whether current moves are sustainable or manipulated.
Time your entries using volume spikes + price action confluence.
Track vector candle recovery zones and exhaustion potential.
S&P 2009: M7 vs. Rest of S&P500Thanks Omnibus for open sourcing your code, in your indicator S&P 2024: Magnificent 7 vs. the rest of S&P (User can look at his indicator name to see Omnibus' description). I just updated the code here to include start date 2009/01/01 at the start of the Global Financial Crisis.
RSI Trend Flip by julzALGORSI Trend Flip by julzALGO is a smart trend-following tool that combines RSI-based logic with a clean SuperTrend-style overlay and real-time multi-timeframe confirmation.
🔹 Core Logic:
The script uses the Relative Strength Index (RSI) to identify market regime shifts.
Trend flips up when RSI crosses above 70 → bullish.
Trend flips down when RSI crosses below 50 → bearish.
An adaptive trailing line (based on ATR) follows the new trend direction.
🔹 Visual Features:
Color-coded RSI SuperTrend line on the price chart (Green = Uptrend, Red = Downtrend).
Buy/Sell signal markers on breakout events (RSI cross 70/50).
Background shading to highlight active trend regime.
🔹 RSI Trend Table (Multi-Timeframe Confirmation):
Displays RSI trend status across:
15min, 1h, 4h, and 1D timeframes.
Table includes:
📈 RSI value
🔼🔽⚫ directional signal (Up / Down / Neutral)
Updates every 10 bars and helps validate trend across broader market structure.
🧠 Ideal For:
Traders looking for a clean RSI-only trend tool.
Swing traders and scalpers who want multi-timeframe RSI confirmation.
Anyone who wants a lightweight, non-repainting trend indicator with real-time table logic.
lion action. It draws precise levels with clear visualization to assist traders in identifying potential reversal points or breakout opportunities.
First touch entry logic: detects first touch of each zone.
Break and retest logic: confirms valid breakouts with retests.
Multiple zones supported (unlimited).
Visual display: clear colored zones with customizable thickness.
Dynamic updates: zones are adjusted automatically as price evolves.
The indicator does not repaint and is optimized for intraday trading (scalping) as well as swing strategies.
Ideal for traders who use Supply/Demand concepts and Smart Money techniques.
For educational and demonstration purposes only.
POI - Região de Invalidação de CHoCH - v4.01. OVERVIEW
This indicator is designed to identify high-probability trading setups based on Smart Money Concepts. It automatically detects a Change of Character (CHoCH) in the market and highlights the Point of Interest (POI)—the Supply or Demand zone—that formed from this movement.
The script eliminates the need to manually draw zones by automating pattern identification, calculating trade parameters, and creating alerts.
2. THE CONCEPT
The indicator looks for a specific sequence of pivots (Z-A-B-C-D) that characterizes a break of structure. When the subsequent move (point E) validates this break, a POI zone is confirmed. The logic is that the price tends to return to this zone before continuing in the new direction.
3. KEY FEATURES
Automatic Pattern Detection: Identifies buy (Demand) and sell (Supply) setups based on the CHoCH logic.
Complete Visualization: Draws the pivot path, the POI region box, and a detailed label on the chart.
Risk & Position Sizing: The label displays Entry, Stop Loss, and Take Profit levels, as well as the Position Size calculated based on your settings (Fixed $ Risk, % of Account, or Fixed Size).
Integrated Alerts: You can create alerts to be notified in real-time via mobile app, email, or pop-up as soon as a setup is validated.
Screener Compatibility: Use the indicator as a filter in the TradingView Screener to scan the entire market for assets exhibiting the pattern.
Highly Customizable:
Adjust the sensitivity of the pivots and the length of each leg of the pattern.
Customize the colors of the lines, boxes, and labels.
Toggle the display of labels on or off for a cleaner chart.
4. HOW TO USE
Add the indicator to your desired chart.
In the "Inputs" tab, configure the pivot, risk, and appearance parameters according to your trading style.
To receive notifications, click the Alert icon (clock), select the indicator, and choose the "Alerta de Compra POI" or "Alerta de Venda POI" condition.
DISCLAIMER: This is a tool for study and technical analysis. No content in this script should be considered as a buy or sell recommendation. Manage your risk appropriately.
DTC FX+DTC FX+ is a clean, theme-optimized session indicator for Forex traders. It features price-anchored session boxes, max/min lines, a live session status table with open/close countdowns, and a fully customizable watermark. Supports both monotone and colorful layouts, and is optimized for both dark and light TradingView themes. All session and timer logic is timezone-accurate and robust for global markets.
Major Features & Customizations:
Session Boxes:
Draws New York, London, and Tokyo session boxes, anchored to price.
In dark mode, boxes are nearly white; in light mode, boxes are light grey for maximum clarity.
Session code (NY, LDN, TKY) is centered inside each box, with text color auto-adjusting for theme (white in dark, black in light).
Session Max/Min Lines:
Dotted, thick, and dark grey for clear visibility on all themes.
Session Status Table:
Shows session status (ONLINE/OFFLINE), time until open, and time until close for each session.
Table and header text are always white in dark mode, black in light mode.
Table background and borders are theme-optimized for maximum readability.
Theme & Layout Support:
Fully optimized for both dark/black and light/white TradingView chart themes.
Toggle between monotone (grey) and colorful layouts.
Colorful layout uses distinct, vibrant colors for each session (blue, orange, magenta).
Watermark:
Customizable watermark with options for position, size, signature, separator, and color.
Default settings: watermark enabled, blue color, large size, signature "❤", separator "~", position bottom-center, show timeframe enabled, show prefix disabled.
Other Improvements:
All text and UI elements are theme-aware for maximum contrast and clarity.
All session and timer logic is timezone-accurate and handles sessions that cross midnight.
Aqua MTF Trend Oscillator——————————————————————————————————————————————————————————
The Aqua Multi-Timeframe (MTF) Trend Oscillator is a comprehensive momentum and trend analysis tool designed to synthesize
complex market dynamics into a single, intuitive oscillator. It moves beyond single-timeframe analysis by aggregating
trend information from up to five distinct, user-configurable sources—spanning different timeframes, symbols, and
moving average types.
--- CORE CONCEPT ---
The strength and direction of a trend are rarely uniform across all market perspectives. This indicator's core
principle is to quantify and weigh the trend's character from multiple angles simultaneously. By blending these
perspectives, it generates a composite score that reflects the overall "consensus" of trend momentum, providing
a more robust view than any single moving average could offer alone.
--- METHODOLOGY ---
The indicator's power lies in its sophisticated, multi-step normalization process for each analysis slot:
1. **MA Calculation:** A standard moving average (e.g., EMA, SMA) is calculated for the specified source, symbol, and timeframe.
2. **Volatility-Normalized Distance:** It first measures the deviation of price from its moving average in terms
of Average True Range (ATR) units. This volatility-normalization step is crucial for comparing trend strength
across different timeframes or instruments, as it measures distance in a context-aware manner.
3. **Magnitude Squashing:** This ATR-based distance is then passed through a hyperbolic tangent (`tanh`) squashing
function. This elegantly transforms the potentially unbounded measurement into a standardized score oscillating
between -1 (maximum bearish magnitude) and +1 (maximum bullish magnitude). This prevents extreme outliers in one
timeframe from disproportionately skewing the final result.
4. **Weighted Aggregation:** Each of these normalized (-1 to +1) scores is then combined based on a user-defined
weight. The weighted average of all enabled slots produces the final composite score.
5. **Final Scaling & Smoothing:** The composite score is scaled to oscillate between -100 and +100. An optional
final smoothing pass can be applied to this master line to reduce noise and clarify the overall trend.
All higher-timeframe calculations are performed correctly within their native context to ensure the indicator is
non-repainting and provides a stable, reliable output on the chart.
--- KEY FEATURES ---
• **Five Independent Analysis Slots:** Fully customize up to five sources, each with its own symbol, timeframe, MA type, period, and weight.
• **Advanced Normalization:** Utilizes ATR and the hyperbolic tangent function for robust, comparable trend magnitude scores.
• **Correct MTF Calculation:** Employs best practices for non-repainting data requests, ensuring historical and real-time results are consistent.
• **Weighted Composite Score:** Assign importance to different timeframes to tailor the oscillator to your specific analytical needs.
• **Optional Master Smoothing:** Apply a final MA to the composite score line for enhanced clarity and signal filtering.
• **Clear Visualization:** A simple, color-coded oscillator line shows the final trend score, while individual component trends can also be plotted.
--- HOW TO INTERPRET ---
• **Zero Line Cross:** A cross above 0 indicates that the weighted balance of trend components has shifted to bullish. A cross below 0 signals a shift to bearish.
• **Oscillator Magnitude:** Values approaching +100 suggest a strong, broad-based uptrend consensus. Values nearing -100 indicate a strong downtrend consensus.
• **Slope:** The slope of the oscillator line indicates the accelerating or decelerating nature of the aggregate trend momentum.
• **Divergence:** As with any oscillator, watch for divergences between price action and the oscillator, which can signal a potential exhaustion of the prevailing trend.
Author: Aquaritek
——————————————————————————————————————————————————————————
TitansAlgo Sureshots - DemoDemo version - Shows signal only after execution
To get full access you'll need to visit www.titansalgo.com
[JHF] SQZMOMPRO SQZMOMPRO is a sophisticated, momentum-based technical indicator designed for traders seeking to identify potential trend reversals, momentum shifts, and periods of market consolidation (squeezes) across multiple timeframes. By combining a momentum oscillator, Bollinger Bands, Keltner Channels, and a Percentage Volume Oscillator (PVO), it provides a comprehensive view of price momentum and volume dynamics.
Overview
The SQZMOMPRO indicator is a powerful tool that integrates momentum analysis, volatility-based squeeze detection, and volume confirmation to help traders identify high-probability trading opportunities. It combines:
A momentum oscillator based on price deviations from a linear regression and moving average.
Bollinger Bands and Keltner Channels to detect periods of low volatility (squeezes), signaling potential breakouts.
A Percentage Volume Oscillator (PVO) to confirm momentum signals with volume trends.
A Rate of Change (ROC) line to highlight the speed of momentum shifts.
Visual cues like reversal signals and confluence backgrounds for actionable insights.
This indicator is ideal for swing traders, day traders, and those analyzing trends across multiple timeframes (hourly, 4-hour, daily, weekly, monthly). It is plotted below the price chart (non-overlay) and includes customizable alerts for key conditions.
Key Features
Multi-Timeframe Support: Automatically adjusts parameters for hourly, 4-hour, daily, weekly, and monthly charts, ensuring optimal settings for each timeframe.
Squeeze Detection: Identifies periods of low volatility (squeezes) using Bollinger Bands and Keltner Channels, categorized as Wide, Normal, Narrow, or Very Narrow.
Momentum Oscillator: Tracks price momentum relative to a baseline, with a signal line to highlight trend reversals.
PVO Confluence: Optionally integrates the Percentage Volume Oscillator to confirm momentum signals with volume trends.
Rate of Change (ROC): Displays the smoothed rate of change of momentum for enhanced readability.
Visual Cues: Includes color-coded squeeze dots, momentum/signal lines, reversal markers, and optional confluence backgrounds.
Alerts: Configurable alerts for squeeze conditions, trend reversals, and volume-confirmed signals.
How It Works
1. Momentum Oscillator
The momentum oscillator is calculated as follows:
Source: Closing price.
Baseline: A combination of the midpoint of the highest high and lowest low over a specified period, adjusted by a simple moving average (SMA).
Momentum: Linear regression of the price deviation from this baseline over a timeframe-specific period (shorter for smaller timeframes to be more responsive).
Signal Line: A 5-period SMA of the momentum value, used to identify crossovers.
Interpretation:
Momentum > Signal: Bullish momentum (plotted in green by default).
Momentum < Signal: Bearish momentum (plotted in red by default).
Crossovers: Momentum crossing above the signal line suggests a bullish reversal; crossing below suggests a bearish reversal.
2. Squeeze Detection
Squeezes occur when volatility contracts, often preceding significant price moves. The indicator compares:
Bollinger Bands: Calculated using an SMA and 2 standard deviations of the closing price.
Keltner Channels: Calculated using an SMA and multiples of the Average True Range (ATR) for different squeeze thresholds (Wide, Normal, Narrow, Very Narrow). This method steers away from the likes of classical SQZPRO which only uses an approximation of the Average True Range and heavily affects the squeeze sensitivity due to the way they calculate their Keltner Channel (our Keltner Channel are true to the way they are supposed to be calculated).
Squeeze Conditions:
Wide Squeeze: Bollinger Bands are inside Keltner Channels with a high ATR multiplier.
Normal Squeeze: Bollinger Bands are inside Keltner Channels with a moderate ATR multiplier.
Narrow Squeeze: Bollinger Bands are inside Keltner Channels with a low ATR multiplier.
Very Narrow Squeeze: Bollinger Bands are inside Keltner Channels with a very low ATR.
No Squeeze: Bollinger Bands are outside Keltner Channels, indicating higher volatility.
Depending on the timeframe, each squeeze level has been manually tweaked to gain an edge, whether you're scalping, in swings or in Leaps.
Visuals: Squeeze conditions are plotted as colored dots on the zero line:
Green: No Squeeze
Black: Wide Squeeze
Red: Normal Squeeze
Yellow: Narrow Squeeze
Purple: Very Narrow Squeeze
3. Percentage Volume Oscillator (PVO)
The PVO measures volume momentum, similar to the MACD but applied to volume through a 14 and 28 ema with volume as the srouce.
Interpretation:
PVO > 0: Increasing volume momentum (bullish).
PVO < 0: Decreasing volume momentum (bearish).
When enabled (Show PVO Confluence), the indicator highlights periods where momentum and PVO align (e.g., bullish momentum with PVO > 0).
4. Rate of Change (ROC)
Formula: Smoothed difference between momentum and signal line, multiplied by a user-defined factor (ROC Multiplier).
Purpose: Enhances readability of momentum shifts, plotted as a blue (positive) or orange (negative) line when enabled.
5. Reversal Signals
Bullish Reversal: Momentum crosses above the signal line, optionally confirmed by PVO > 0. Marked with a green vertical line.
Bearish Reversal: Momentum crosses below the signal line, optionally confirmed by PVO < 0. Marked with a red vertical line.
6. Confluence Background
When Show PVO Confluence is enabled, the background is colored to highlight alignment:
Bullish Confluence: Momentum > Signal and PVO > 0 (green background, darker if ROC is positive).
Bearish Confluence: Momentum < Signal and PVO < 0 (red background, darker if ROC is negative).
Inputs
Basic Configuration:
Display Reversals: Show/hide reversal markers for momentum/signal crossovers (default: true).
Show PVO Confluence: Enable/disable background coloring for momentum and PVO alignment (default: false).
Rate of Change:
Show Rate of Change Line: Display the ROC line (default: false).
ROC Smoothing Length: Smoothing period for ROC (default: 1, min: 1).
ROC Multiplier: Scales ROC for readability (default: 1, min: 1).
Plotline Colors:
Bullish Momentum: Green (default: RGB(0, 255, 0)).
Bearish Momentum: Red (default: RGB(255, 0, 0)).
Signal Line: White (default: RGB(255, 255, 255)).
Squeeze Colors:
No Squeeze: Green.
Wide Squeeze: Black.
Normal Squeeze: Red.
Narrow Squeeze: Yellow.
Very Narrow Squeeze: Purple.
Timeframe-Specific Parameters
The indicator adapts to the chart’s timeframe, using predefined settings.
Hourly, 4-Hour, Daily, Weekly and Monthly (and everything in between) all have custom, tweaked momentum length, ATR length, and squeeze multiplier threshold to suit the sensitivity needed for the current timeframe.
Trading Applications
Squeeze Breakouts:
A transition from a Very Narrow or Narrow Squeeze to No Squeeze often signals a breakout. Combine with momentum crossovers for confirmation.
Example: Enter a long position when a Narrow Squeeze (yellow dots) turns to No Squeeze (green dots) and momentum crosses above the signal line.
Trend Reversals:
Bullish reversal (green line) with PVO > 0 confirms strong buying volume, increasing the likelihood of a sustained uptrend.
Bearish reversal (red line) with PVO < 0 suggests strong selling pressure.
Confluence Trading:
Use confluence backgrounds to trade only when momentum and volume align, reducing false signals.
Example: A bullish confluence (green background) with positive ROC indicates a high-probability long setup.
Divergences:
Look for divergences between price and momentum or PVO. For instance, a higher low in momentum/PVO with a lower low in price suggests a bullish reversal.
Trend Confirmation:
Use the momentum oscillator and ROC to confirm price trends. A rising momentum and positive ROC validate an uptrend.
Alerts
Squeeze Alerts:
🟢 No Squeeze: Volatility is expanding.
⚫ Low Squeeze: Wide squeeze detected.
🔴 Normal Squeeze: Moderate squeeze detected.
🟡 Tight Squeeze: Narrow squeeze detected.
🟣 Very Tight Squeeze: Very narrow squeeze detected.
Reversal Alerts:
🐂 Bullish Trend Reversal: Momentum crosses above signal.
🐻 Bearish Trend Reversal: Momentum crosses below signal.
🐂 Bullish Trend Reversal + 📊 PVO Confluence: Momentum crossover with PVO > 0.
🐻 Bearish Trend Reversal + 📊 PVO Confluence: Momentum crossover with PVO < 0.
Limitations
Lagging Nature: The momentum oscillator and PVO rely on moving averages, which may lag sudden price or volume spikes.
False Signals: Squeezes and crossovers can occur in choppy markets, leading to whipsaws. Confirm with price action or other indicators.
Timeframe Sensitivity: Results vary by timeframe; test settings for your trading style (e.g., shorter lengths for day trading).
How to Use
Add to Chart: Apply the indicator to any TradingView chart (non-overlay).
Customize Settings:
Enable Display Reversals for crossover markers.
Enable Show PVO Confluence for volume confirmation.
Adjust ROC Smoothing and ROC Multiplier for clearer ROC visuals.
Customize colors for better visibility.
Interpret Signals:
Monitor squeeze dots for volatility changes.
Watch for momentum/signal crossovers and confluence backgrounds.
Use ROC to gauge momentum strength.
Set Alerts: Configure alerts for squeezes, reversals, or confluence signals to stay informed.
Example Scenario
Setup: A stock in a Very Narrow Squeeze (purple dots) on the daily chart, with momentum below the signal line and PVO < 0.
Signal: Momentum crosses above the signal line, PVO turns positive, and the squeeze transitions to No Squeeze (green dots).
Action: Enter a long position, targeting the next resistance level, with a stop-loss below recent support. The green confluence background and positive ROC confirm the trade.
Conclusion
The SQZMOMPRO indicator is a versatile tool for traders seeking to capitalize on momentum, volatility, and volume trends. Its multi-timeframe adaptability, visual clarity, and robust alert system make it suitable for various trading strategies. Combine with price action, support/resistance, or other indicators for optimal results. For feedback or suggestions, feel free to leave a comment.
📊 جدول المؤقتA simple indicator that displays the hourly and quarter-hour closing times and a timer for the current candle's close.
مؤشر بسيط
يعرض
اغلاق الساعة و الربع ساعة و مؤقت ل اغلاق الشمعة الحالية
Long Term RSILong-Term RSI:
Purpose:
To identify trends and potential entry/exit points within the context of longer-term market cycles.
123_RSI357About RSI
1. When RSI is less than 30, observe NTZ, then look for less than 50, go long
2. When RSI is greater than 70, observe NTZ, then look for greater than 50, go short
123_RSI357About RSI
1. When RSI is less than 30, observe NTZ, then look for less than 50, go long
2. When RSI is greater than 70, observe NTZ, then look for greater than 50, go short
TuxAlgo - Trending CandlesTuxAlgo – Trending Candles is a minimalistic yet powerful tool that visually highlights trend direction directly on the chart. It dynamically colors candles based on live trend calculations and gives traders the ability to fine-tune sensitivity, timeframe, and visual signals — making it ideal for scalping, intraday, and swing trading.
Green candles show bullish trend
Red candles show bearish trend
Bullish / Bearish Signal Labels
Precision Setting
Choose between Low, Medium, or High precision
Higher precision gives faster signal changes, while lower provides smoother trends
Use Candles or switch to Oscillator-based trend detection
TuxAlgo - Gold ProTuxAlgo - Gold Pro is a specialized scalping indicator designed exclusively for Gold (XAU/USD). This tool is tailored for intraday and scalping traders who need fast, reliable signals with clearly defined exits and built-in trade performance tracking.
How It Works:
Buy/Sell Signals:
The indicator provides accurate Buy and Sell signals based on internal momentum logic optimized for Gold (XAU/USD).
Target-Based Exits:
You can set a custom target point. The system calculates and suggests the exit point once that target is reached.
Profit Signal:
A Profit label appears only when the trade successfully hits the set target, confirming the completion of a profitable move.
Exit Signal:
If the price moves against the trade, the indicator suggests a exit point to help minimize loss.
布林带收缩起爆点 - 副图根据布林格的思想,画的指标,supernblength = input.int(20, "布林带周期", minval=1)
mult = input.float(2.0, "标准差倍数", step=0.1, minval=0.5, maxval=5)
src = input(close, "价格源")
// 计算布林带
basis = ta.sma(src, length)
dev = mult * ta.stdev(src, length)
upper = basis + dev
lower = basis - dev
// 计算布林带宽度 (百分比)
bandWidth = (upper - lower) / basis * 100
// 动态阈值计算
lookback = input.int(50, "收缩检测周期", minval=10)
squeezeThreshold = ta.lowest(bandWidth, lookback) * 1.2
isSqueeze = bandWidth < squeezeThreshold
// 动量确认
rsiLength = input.int(14, "RSI周期")
rsiValue = ta.rsi(src, rsiLength)
volAvg = ta.sma(volume, 20)
volSpike = volume > volAvg * 1.8
// 起爆点条件
breakoutCondition =
isSqueeze and
not isSqueeze and
rsiValue > 50 and
volSpike and
close > close
The Dow Theory - Linear Regression Channel - Minor TrendI've seen many indicators using the linear regression channel. However, their main drawback is that they average price over a fixed number of candles. The channel lines themselves are based on smoothed prices and a smoothed calculation of the width.
I didn’t want to follow the same approach — I wanted something that doesn’t rely on price averages. Something that can read the market segment by segment.
So I switched to a different approach, and that’s when I discovered Dow Theory.
I began by analyzing the smallest wave that can be meaningfully studied — and this is it: the minor trend of Dow Theory.
All market phases are present, even within a minor trend.
Accumulation and distribution phases are represented by black lines, while wave up or down movements are marked with orange or blue (you can customize these colors).
Main Features:
Continuous linear regressions with no gaps. No repainting. No price smoothing used.
Customizable colors for uptrend, downtrend, and sideways phases.
Can be used to identify structure alignment across minor, intermediate, and primary trends.
Enjoy.