QuantFlow Algo: Institutional Trap & ReversalRetail traders often lose money because they chase "breakouts" that are actually Liquidity Traps set by institutional algorithms. This script is designed to solve that problem.
Unlike standard indicators that clutter your chart with lagging moving averages and noisy clouds, the QuantFlow Algo: Institutional Trap & Reversal runs a high-performance Background Algorithm to detect "Smart Money" activity. It keeps your chart 100% clean and only prints a signal when a high-probability reversal structure is confirmed.
How it Works (The Logic):
The script utilizes a proprietary "Dual-Stage Verification" process to filter out false signals:
1. Liquidity Absorption: It detects specific candle geometries (Shadow-Excursion Ratios) where price aggressively breaks a level but fails to sustain momentum, trapping breakout traders.
2. Volumetric Pressure: It validates these traps using a relative volume anomaly detector to ensure institutions are active in the move.
3. Structural Delta: It analyzes the net order-flow bias of the session (Displacement) to ensure the reversal aligns with the immediate market structure.
Key Premium Features:
🛡️ Institutional Trap Detection Engine:
Automatically identifies high-probability "Smart Money" traps where retail traders get caught. Uses a proprietary Volumetric Pressure Algorithm to detect true liquidity grabs.
★ Sniper Confirmation Mode:
Filters out fake signals by waiting for a "Test Candle." The Gold Star (★) appears only when the market successfully retests the level on low volatility, giving you a precise, lower-risk entry.
❌ Auto-Failure Detection:
Stop guessing if a trade is dead. The script automatically marks invalidated setups with a discrete "X" , saving you from holding onto losing trades.
📊 Institutional Flow Verification:
A smart filter that validates signals using real Capital Injection & Order Flow . Includes a "Zero-Flow Mode" for indices like SPX/NDX, ensuring universal compatibility.
🖥️ Multi-Timeframe (MTF) Context Panel:
A built-in "Heads-Up Display" that monitors the 15m, 1H, 4H, and Daily trends simultaneously. It physically blocks counter-trend signals to keep you aligned with the higher timeframe flow.
🧠 Smart Adaptive Baseline (KAMA):
Uses Kaufman’s Adaptive Moving Average to react faster to market crashes than standard lagging indicators, protecting you from "catching a falling knife" during high volatility.
⚡ Two-Stage Signal System:
Stage 1 (Triangle ⚡): Alert Phase – The Trap is detected. Get ready.
Stage 2 (Star ★): Execution Phase – The Setup is confirmed. Enter the trade.
How to Use (Strategy):
This tool is designed as a "Setup Locator" with a built-in failure protocol. We recommend the 2-Phase Verification Method :
1. Wait for the Signal: Look for a Blue ⚡ (Buy Setup) or Orange ⚡ (Sell Setup).
Do not enter yet. This is the "Alert" phase.
2. Automatic Validation: The script scans for the next candle to close with Diminished Volumetric Pressure (Receding Order Flow). When this specific "test" condition occurs, a Gold Star (★) will appear.
3. Execution Protocols:
For a BUY Signal (Blue ⚡):
a. Standard Entry (The Star ★): If the Gold Star appears, wait for price to break the HIGH of that Star Candle. The trap is confirmed. Enter Long .
b. Failure Flip (The "X"): If a Grey "X" appears instead, the Buy Trap has failed. The institutions have let the support break. Go Short immediately (Reversal Trade).
For a SELL Signal (Orange ⚡):
a. Standard Entry (The Star ★): If the Gold Star appears, wait for price to break the LOW of that Star Candle. The trap is confirmed. Enter Short .
b. Failure Flip (The "X"): If a Grey "X" appears instead, the Sell Trap has failed. The institutions have let resistance break. Go Long immediately (Reversal Trade).
Why use the Failure Flip? A failed institutional trap often results in an explosive move in the opposite direction as trapped traders are forced to cover their positions.
4. Stop Loss: Place just above/below the Star Candle or the recent swing high/low.
Why is this Closed-Source?
This script operates on proprietary algorithms for Institutional Order Flow and Adaptive Smoothing . These internal calculations protect the unique logic used to validate setups and ensure a quantitative edge that standard open-source indicators cannot replicate.
Disclaimer: This tool is for educational analysis purposes only. Past performance does not guarantee future results.
💎 Premium Access & Updates:
For exclusive access, setup tutorials, and the complete "Sniper Strategy" guide, please check the link in my TradingView Profile Bio or the Signature below.
Análisis de tendencia
Minervini Template + Powerplay detectorMinervini Template + PowerPlay Detector
This indicator implements a rule-based Minervini trend template to identify stocks in strong, institutionally supported uptrends, combined with a Power Play momentum detector for explosive leadership moves.
Minervini Model (MM) Rules
The MM dashboard turns GREEN only when all of the following rules are met:
Close ≥ 150-day SMA
Close ≥ 200-day SMA
50-day SMA > 150-day SMA
50-day SMA > 200-day SMA
150-day SMA ≥ 200-day SMA
200-day SMA is rising (current value higher than ~1 month ago)
Close is at least 30% above the 52-week low
Close is within 25% of the 52-week high
Close is not more than 8% below the 50-day SMA
These rules ensure:
Proper long-term trend structure
Institutional accumulation alignment
Strength near highs, not extended weakness
When MM is red, hovering over it shows exactly which rules failed, allowing quick diagnosis of why a stock does not qualify.
POWERPLAY Logic
POWERPLAY highlights rare, high-velocity leadership moves:
Triggers when a stock gains 90% or more within any rolling window of up to 60 trading sessions
Remains active as long as the condition continues to hold
Hover tooltip displays:
Start date of the move
Current date
Total percentage gain so far
This captures fast institutional momentum, even if the move occurs in fewer than 60 sessions.
Dashboard Features
Moveable to any corner of the chart
Adjustable size
Adjustable opacity
Designed for trend followers and momentum traders seeking true market leaders, not short-term noise or late-stage breakouts.
Divergence Multi1. Indicator Overview
Divergence Multi is to detect spread divergence signals between two financial market instruments. It provides references for trading decisions through visualizing spread curves and divergence marks filtered by multiple conditions, and supports various spread calculation methods and dynamic noise reduction functions.
2. My thoughts
In fact, this script is a template. When analyzing trading targets, we often need to compare different assets — divergences derived from the comparison of stock indices, treasury bonds, forex pairs and commodities are highly referenceable. Divergences based on other indicators tend to be overly complicated; we only need simple comparisons. What we should focus on is the turning points of major trends, rather than divergences at various highs and lows or indicator-specific divergences.
3. Detailed Parameter Settings
After loading the indicator, you can adjust various parameters through "Indicator Settings" (click the gear icon on the right side of the indicator name). The parameters are divided into the following categories and can be configured as needed:
3.1 Basic Market Configuration
Market 1: The first reference financial instrument, with a default value of "CME_MINI:ES1!" (E-mini S&P 500 Futures). You can manually enter other instrument codes (e.g., "FX:EURUSD" for EUR/USD forex pair, "NASDAQ:AAPL" for Apple stock).
Market 2: The second reference financial instrument, with a default value of "CBOE:VX1!" (CBOE Volatility Index Futures). It is recommended to select instruments with a certain correlation with Market 1 for more effective divergence detection.
Resolution: The data resolution (timeframe) for calculating the spread, with a default value of "15" (15-minute K-line). Optional values include "1" (1 minute), "60" (1 hour), "D" (1 day), etc.
Use current resolution?: A boolean option (enabled by default). When checked, the indicator uses the current timeframe of the chart for spread calculation; when unchecked, it uses the timeframe set in the "Resolution" parameter.
3.2 Spread Calculation Settings
Spread Calculation Type: The type of spread calculation, with three optional options:
Ratio: Calculates as (Market 1 / Market 2) * 100, suitable for comparing instruments with different price scales.
Difference: Calculates as Market 1 - Market 2, suitable for instruments with similar price ranges and high correlation.
Rate Change: Calculates as [(Market 1/Market 1 - 1) - (Market 2/Market 2 - 1)] * 100, which reflects the difference in the rate of price change between the two instruments.
EMA Length: The period of the EMA (Exponential Moving Average) for smoothing the raw spread, with a default value of 2 (minimum value is 1). A larger value will result in a smoother spread curve but may lag behind price changes.
3.3 Divergence Detection Settings
Show Divergence: A boolean option (enabled by default). When checked, the indicator displays bullish and bearish divergence signals on the chart; when unchecked, the divergence marks are hidden.
Lookback Bars: The number of bars used to calculate price and spread changes, with a default value of 1 (minimum value is 1). It determines the time interval for comparing current and historical data to identify divergence.
Extreme Filter Bars: The number of bars used to judge local price extremes, with a default value of 5 (minimum value is 3). The indicator will only detect divergence when the current price is the highest or lowest within this bar range, which helps filter invalid signals.
3.4 Dynamic Filter Settings
Enable Dynamic Filter: A boolean option (enabled by default). It is used to reduce noise and invalid divergence signals by dynamically adjusting the detection threshold.
ATR Period: The period of ATR (Average True Range) for calculating price volatility, with a default value of 14 (minimum value is 5). It provides a reference for judging the significance of price changes.
Min Ratio Multiplier: The minimum ratio multiplier for divergence strength, with a default value of 0.5 (minimum value is 0.1, adjustable in steps of 0.1). It is used to set the minimum threshold for valid divergence strength.
Strength Period: The period for calculating the moving average of divergence strength, with a default value of 10 (minimum value is 5). It is used to form a dynamic baseline for judging divergence strength.
3.5 Alert Settings
Enable Alerts: A boolean option (enabled by default). When checked, the indicator will trigger pop-up or push alerts when divergence signals are generated; when unchecked, no alerts will be sent.
4. How to Use the Indicator
4.1 Chart Display Interpretation
Spread Curve: The white curve on the chart represents the smoothed spread between the two selected instruments (calculated based on the selected spread type). It reflects the relative price relationship between the two instruments.
Divergence Marks:
Green Tiny Circles: Mark bullish divergence signals. This signal appears when the price of the current chart instrument drops (forms a local low), but the spread rises, and the signal passes the filter conditions. It is a potential bullish reversal reference signal.
Red Tiny Circles: Mark bearish divergence signals. This signal appears when the price of the current chart instrument rises (forms a local high), but the spread drops, and the signal passes the filter conditions. It is a potential bearish reversal reference signal.
Information Table: A white table is displayed in the top left corner of the chart (only on the last bar), which shows:
Current spread calculation type
Current smoothed spread value
The two selected market instruments (Market 1 and Market 2)
4.2 Practical Operation Steps
Configure Parameters: According to your trading variety and timeframe, adjust the "Market 1", "Market 2" and "Resolution" parameters first; then select the appropriate spread calculation type based on the price characteristics of the two instruments.
Filter Signals: If there are too many invalid signals, you can optimize the parameters such as "Extreme Filter Bars", "ATR Period" and "Min Ratio Multiplier" to improve the quality of divergence signals.
Reference Signals: Combine the divergence marks with the current market trend, volume and other technical indicators for comprehensive judgment (do not rely solely on this indicator for trading decisions).
Receive Alerts: Ensure that the "Enable Alerts" option is checked, and configure the alert receiving method in TradingView (e.g., email, push notification) to receive divergence signal reminders in a timely manner.
5. Notes
This indicator is only a technical analysis reference tool and cannot guarantee 100% accurate trading signals. It is recommended to combine with other analysis methods for decision-making.
When selecting Market 1 and Market 2, it is recommended to choose instruments with a certain correlation (e.g., stock index and its volatility index, related futures varieties) to improve the effectiveness of divergence detection.
Different market environments may require adjusting parameter settings (e.g., increasing the EMA length in a volatile market to smooth noise), which needs to be optimized according to actual trading experience.
Previous Day Week High Low EQ Extensions FIB BoxPDH / PDL EQ 25–75 Indicator
PDH / PDL EQ 25–75 is a comprehensive market-structure and range-analysis indicator designed to visualize key daily and weekly reference levels directly on the chart. The script automatically plots prior highs and lows, equilibrium levels, range-based extensions, Fibonacci zones, and session opens, providing traders with a structured framework for directional bias, mean reversion, and liquidity-based analysis.
Core Features
Daily Range Framework
Previous Day High (PDH) and Previous Day Low (PDL)
Daily Equilibrium (50%) of the prior day’s range
25% and 75% Quartile Levels for range segmentation
Range Extensions at ±25% and ±50% beyond PDH/PDL
Daily Open (DO) plotted and extended forward
Fibonacci Discount/Premium Zone (61.8%–78.6%) highlighted with a shaded box
These levels are recalculated at the start of each trading day and extended forward for clear intraday reference.
Weekly Range Framework
Previous Week High (PWH) and Previous Week Low (PWL)
Weekly Equilibrium (50%)
Weekly Fibonacci Discount/Premium Zone (61.8%–78.6%)
Weekly Open (WO) plotted and extended
Weekly levels reset automatically at the start of each new trading week and are maintained independently from daily levels.
Visual & Customization Options
Fully configurable colors, line widths, and line styles for every plotted level
Adjustable forward extensions for range and open levels
Optional labels with customizable size and optional price display
Distinct separator lines marking daily and weekly ranges
Independent toggles for:
Extension levels
Fibonacci zones
Labels
The indicator is optimized for clarity while maintaining flexibility for different trading styles and chart layouts.
Technical Implementation Highlights
Uses higher-timeframe data via request.security() to ensure accurate daily and weekly calculations
Automatically anchors PDH, PDL, PWH, and PWL to their true originating bars
Efficient object management using arrays to prevent clutter and maintain platform performance
Designed for overlay use on any intraday or higher-timeframe chart
Use Cases
Identifying premium and discount zones
Mapping mean-reversion and continuation areas
Tracking institutional reference levels
Intraday trading with higher-timeframe context
Futures, forex, crypto, and equity markets
Wyckoff Dual Wave1. Indicator Overview
This Pine Script v5 indicator is built for TradingView, based on Wyckoff Theory. It runs in overlay mode on price charts, featuring dual-wave monitoring for short-term small waves and medium-term large waves. It generates trading signals by combining moving averages, volume analysis, double top/bottom patterns, and KD stochastic indicators. The indicator is suitable for short-term and scalping trading, and can be applied to time frames such as 15 seconds, 1 minute, 3 minutes, and 5 minutes to capture price fluctuations while filtering false signals. It should be noted that the default parameters of this indicator are preset for the 15-second time frame.
2. Some of my thoughts
Wyckoff Wave focuses on dynamic analysis. We need to observe the contest for wave highs and lows. Cumulative trading volume, average volume, and the maximum volume at highs and lows are all helpful for analysis. For the sake of simple and convenient comparison, I only use cumulative trading volume.
For wave analysis, it is necessary for us to refer to the trend of larger time frames. That’s why I use two levels of waves. Instead of adopting specific time frames, I choose large moving averages because, from a certain perspective, large moving averages represent the time frame corresponding to the moving average itself—even more reliably.
3. Input Parameters Explanation
3.1 Core Wave Parameters
Small Wave MA: Default value 50. This is the EMA period used as the base for small wave analysis to define short-term trend boundaries.
Signal MA: Default value 20. This fast EMA is used for double top/bottom signal validation and price crossover detection.
Large Wave MA: Default value 200. This is the EMA period used as the base for large wave analysis to define medium-to-long-term trend boundaries.
PCT Factor: Default value 2.0. This is the ATR multiplier threshold for small wave reversal, controlling the sensitivity of short-term trend changes.
Wave PCT Min: Default value 0.03. This is the minimum price fluctuation percentage required to confirm a valid small wave, filtering minor price movements.
Large Wave PCT Factor: Default value 4.0. This is the ATR multiplier threshold for large wave reversal, controlling the sensitivity of medium-to-long-term trend changes.
Large Wave PCT Min: Default value 0.08. This is the minimum price fluctuation percentage required to confirm a valid large wave, filtering insignificant long-term price swings .
Large Wave Min Bars Distance: Default value 5. This is the minimum number of bars required between pivot highs and lows of large waves, preventing interference from adjacent pivot points.
Min Bars Distance Between Highs/Lows: Default value 3. This is the minimum number of bars required between pivot highs and lows of small waves, filtering dense and invalid pivot points.
3.2 Display Toggle Parameters
Show Large Wave Lines: Default value true. Enables or disables the display of large wave trend lines on the chart.
Show Small Wave MA: Default value false. Toggles the visibility of the small wave base EMA on the chart.
Show Large Wave MA: Default value false. Toggles the visibility of the large wave base EMA on the chart.
Show Signal MA: Default value true. Toggles the visibility of the signal EMA on the chart.
Show Wave: Default value true. Enables or disables the display of small wave trend lines on the chart.
Show Vol: Default value false. Toggles the visibility of volume data and volume labels on the chart.
3.3 Volume Related Parameters
Vol Divisor: Default value 100. This divisor reduces volume values for clearer label display on the chart.
Vol Dist: Default value 2.0. This controls the vertical distance between volume labels and price bars to avoid overlapping.
Vol History Limit: Default value 200. This sets the maximum number of historical volume labels to retain, preventing chart clutter.
3.4 Trend Confirmation Parameters
Trend Confirmation Type: Default value 3-Day Breakaway. It offers three options for trend confirmation rules: Original Rules confirms the trend immediately after a price break; Close Confirmation requires a closing price beyond the pivot point to confirm the trend; 3-Day Breakaway requires three consecutive closing prices beyond the pivot point to validate the trend.
3.5 Signal Display Parameters
Show Long Signals: Default value true. Enables or disables the display of long trading signals on the chart.
Show Short Signals: Default value true. Enables or disables the display of short trading signals on the chart.
Enable Volume Compare Long Signals: Default value true. Triggers additional long signals when pullback volume is lower than the volume of the prior rally phase.
Enable Volume Compare Short Signals: Default value true. Triggers additional short signals when rally volume is lower than the volume of the prior decline phase.
Enable KD Signals: Default value true. Enables or disables trading signals generated by the KD stochastic indicator.
3.6 Pattern Recognition Parameters
Double Pattern ATR Multiplier: Default value 0.0, range from -5.0 to 5.0 with step 0.1. This ATR multiplier is used to calculate the threshold for double top/bottom pattern validation, adjusting the strictness of pattern recognition.
3.7 KD Stochastic Parameters
KD %K Length: Default value 14, minimum 1. This is the calculation period for the %K line of the KD indicator.
KD %K Smoothing: Default value 3, minimum 1. This is the smoothing period for the %K line of the KD indicator.
KD %D Smoothing: Default value 3, minimum 1. This is the calculation period for the %D line of the KD indicator.
KD Overbought Level: Default value 80, range from 50 to 100. This sets the overbought threshold for the KD indicator; values above this level suggest potential short opportunities.
KD Oversold Level: Default value 20, range from 0 to 50. This sets the oversold threshold for the KD indicator; values below this level suggest potential long opportunities.
3.8 Color Customization Parameters
Up Trend Color: Default value green. This is the color used for small wave uptrend lines and related long signal labels.
Down Trend Color: Default value red. This is the color used for small wave downtrend lines and related short signal labels.
Large Wave Up Color: Default value lime. This is the color used for large wave uptrend lines.
Large Wave Down Color: Default value orange. This is the color used for large wave downtrend lines.
4. How to Read Signals and Trade
4.1 Basic Trend Identification
Small Wave Trend: Identified by green (uptrend) or red (downtrend) lines on the chart. Follow small wave trends for short-term trades.
Large Wave Trend: Identified by lime (uptrend) or orange (downtrend) lines. Use large wave trends to filter trades—only take long signals in large uptrends and short signals in large downtrends for higher win rates.
4.2 Trading Signal Types and Usage
Basic Long/Short Signals
Long Signal: Displayed as "Long" label below the price bar. Triggered when price crosses above Signal MA in a small uptrend. Enter long positions on this signal.
Short Signal: Displayed as "Short" label above the price bar. Triggered when price crosses below Signal MA in a small downtrend. Enter short positions on this signal.
Pattern-Based Signals
Double Bottom Buy Signal: Displayed as "DB BUY" or "DBOT" label. Triggered when a double bottom pattern forms in an uptrend. This is a strong long signal—use it for high-confidence entries.
Double Top Short Signal: Displayed as "DT SELL" or "DTOP" label. Triggered when a double top pattern forms in a downtrend. This is a strong short signal.
Volume-Validated Signals
Volume Long Signal: Displayed as "V BUY" label. Triggered when pullback volume is lower than prior rally volume in an uptrend. This confirms buying pressure—use it to add to long positions.
Volume Short Signal: Displayed as "V SELL" label. Triggered when rally volume is lower than prior decline volume in a downtrend. This confirms selling pressure—use it to add to short positions.
KD Resonance Signals
KD Long Signal: Displayed as "KD BUY" label. Triggered when KD %K crosses above oversold level in an uptrend. Use it as a confirmation signal for long entries.
KD Short Signal: Displayed as "KD SELL" label. Triggered when KD %K crosses below overbought level in a downtrend. Use it as a confirmation signal for short entries.
4.3 Signal Filtering Rules (Reduce False Signals)
Trade with the large wave trend: Only take long signals when large wave is in uptrend; only take short signals when large wave is in downtrend.
Combine multiple signal types: Prioritize signals that have both pattern confirmation and volume validation (e.g., DB BUY + V BUY) for higher reliability.
Follow the trend confirmation type: Stick to your chosen trend confirmation rule to avoid premature entries.
5. Risk Management Tips
Do not rely on a single signal—always combine indicator signals with market context (e.g., news, support/resistance levels).
Adjust parameters based on your trading time frame and personal preferences.
Use stop-loss orders: Place stop-loss below the recent pivot low for long positions and above the recent pivot high for short positions to limit losses.
Control position sizes: Adjust position sizes according to your risk tolerance to avoid excessive losses from false signals.
Avoid overtrading: Only take signals that meet your predefined criteria to prevent unnecessary trades.
Medium-term TrendThis Medium-term Trend indicator is designed to identify short, mid, and long-term price pivots, track trend directions, and visualize key support and resistance zones. It excels at analyzing mid-term trends, the most optimal timeframe for traders, and delivers greater reliability when applied to larger chart periods. The indicator helps you dynamically observe the battle between bullish and bearish forces at mid-term highs and lows, enabling you to align your trades with the prevailing trend.
How to Use This Script
1. Core Parameter Adjustment
The only critical adjustable parameter for trend validation is Retrace Percentage (%).It defaults to 0.01, with a range of 0 to 20.0 (adjustable in 0.01 increments). This parameter defines the minimum retracement percentage required to confirm a trend change from bullish to bearish or vice versa. A higher value means a more conservative trend change confirmation (fewer false signals), while a lower value captures more frequent trend shifts (may include more noise).
2. Visual Display Controls (Toggle On/Off)
You can enable or disable the following visual elements via the indicator settings panel to match your chart clarity needs.
Pivot Point Displays
Show Short Points: Disable by default. When enabled, small green circles mark short-term lows and small red circles mark short-term highs, with tooltips showing the exact pivot price.
Show Mid Points: Enables by default. When enabled, tiny yellow circles mark mid-term lows and mid-term highs (the core of the indicator), with tooltips showing the exact pivot price. These points are key for identifying mid-term trend direction.
Show Long Points: Disables by default. When enabled, small blue circles mark long-term lows and long-term highs, with tooltips showing the exact pivot price.
Trend Channel Displays
Show Short Channel: Disables by default. When enabled, green lines connect consecutive short-term lows and red lines connect consecutive short-term highs, forming a short-term price channel.
Show Mid Channel: Disables by default. When enabled, yellow lines connect consecutive mid-term lows and mid-term highs, forming a mid-term price channel that clearly visualizes the mid-term trend trajectory.
Show Long Channel: Disables by default. When enabled, blue lines connect consecutive long-term lows and long-term highs, forming a long-term price channel for broader trend analysis.
Mid-term Pivot Rectangles (Core Visual Element)
Show Mid Rectangles: Enables by default. When enabled, transparent rectangles mark mid-term pivot zones (support and resistance) with dynamic break tracking.These rectangles extend to the right until the trend completes, helping you monitor price interactions with key mid-term levels.
3. Trend Identification & Trading Guidance
Key Trend Rules (Mid-term Focus)
Uptrend Confirmation: When mid-term lows show a sequential upward pattern (each subsequent mid-term low is higher than the previous one), the mid-term trend is bullish (uptrend).Downtrend Confirmation: When mid-term highs show a sequential downward pattern (each subsequent mid-term high is lower than the previous one), the mid-term trend is bearish (downtrend).Range Bound Condition: When mid-term highs and lows move sideways (no clear upward/downward sequence), the market is in a mid-term range.
4.How to Align Trades with the Trend
Observe Mid-term Pivot Interactions: Pay close attention to price reactions at the mid-term rectangles (purple for support, orange for resistance). These zones represent key battle areas between bulls and bears.
Uptrend Trading: In a confirmed mid-term uptrend, prioritize long trades when price touches or bounces from mid-term support rectangles (purple), with stop losses placed below the support rectangle’s bottom edge.
Downtrend Trading: In a confirmed mid-term downtrend, prioritize short trades when price touches or rejects from mid-term resistance rectangles (orange), with stop losses placed above the resistance rectangle’s top edge.
Range Trading: In a mid-term range, trade between consecutive mid-term support (purple) and resistance (orange) rectangles—buy near support and sell near resistance, with tight stop losses beyond the rectangle edges.
Trend Breakout Confirmation: When price closes beyond the top (uptrend breakout) or bottom (downtrend breakout) of a mid-term rectangle, and the rectangle stops extending, this signals a potential mid-term trend shift. Wait for a retest of the broken rectangle (if applicable) to enter trades in the direction of the breakout.
5. Best Practices
Optimal Timeframes: While the indicator works on all timeframes, it performs best on larger periods (4-hour, daily, weekly) where mid-term trends are more defined and less prone to noise.Mid-term Focus: For consistent trading results, prioritize mid-term signals (yellow pivot points, mid rectangles) over short-term signals, as mid-term trends offer higher probability trades with favorable risk-reward ratios.Avoid Overcluttering: Keep short-term and long-term displays disabled by default unless you need multi-timeframe confluence. Enabling too many visual elements can obscure key mid-term trend signals.Parameter Fine-Tuning: Adjust the Retrace Percentage (%) based on your asset’s volatility—use higher values (e.g., 0.5 to 2.0) for volatile assets (cryptocurrencies) and lower values (e.g., 0.01 to 0.2) for less volatile assets (blue-chip stocks).Dynamic Analysis: Regularly monitor the evolution of mid-term pivot rectangles and pivot point sequences—trends are not static, and early detection of shifting mid-term highs/lows can help you exit losing trades and capture new trend opportunities.
Disclaimer: This indicator is for educational and analytical purposes only. It does not constitute financial advice. Always conduct your own research and risk assessment before executing trades. For support or customization requests, please send a private message to the author.
Pivot automaticOverview
Pivot Automatic is a powerful, overlay-based TradingView indicator that automatically detects Higher Timeframe (HTF) Pivot High (Resistance) and Pivot Low (Support) zones, monitors price interactions with these zones (touches and breakouts), and optionally identifies high-volume trading regions. It features auto-HTF detection, customizable alerts, and visual markers to streamline technical analysis and trade decision-making.
Key Features
Auto Higher Timeframe (HTF) Detection: Automatically selects an appropriate higher timeframe based on your current chart timeframe, eliminating the need for manual HTF input.
Visual Pivot Zones: Clearly displays pivot high (resistance) and pivot low (support) zones as colored, dynamically extending rectangles directly on price action.
Price Touch & Breakout Monitoring: Detects first touches, re-touches, and breakouts of pivot zones, with corresponding visual markers and real-time alerts.
High-Volume Box Detection: Optional visualization of extreme volume bars within user-specified trading sessions, highlighting potential institutional interest areas.
Fully Customizable: Adjust colors, transparency levels, alert triggers, and volume parameters to align with your personal trading style and chart aesthetics.
Parameter Explanation
The indicator’s parameters are organized into three main categories for intuitive configuration.
1. HTF Settings (Higher Timeframe Pivot Zone Configuration)
Pivot High Zone Color: Defaults to gray. This parameter sets the background color of HTF pivot high (resistance) zones, allowing you to match the zone color to your chart theme.
Pivot High Transparency: Defaults to 80, with a range of 0 to 100. It controls the transparency of pivot high zones—0 means fully opaque, while 100 means fully transparent. Higher values help keep the chart uncluttered while maintaining visibility of key resistance levels.
Pivot Low Zone Color: Defaults to fuchsia. This parameter sets the background color of HTF pivot low (support) zones for clear differentiation from resistance zones.
Pivot Low Transparency: Defaults to 80, with a range of 0 to 100. It controls the transparency of pivot low zones, using the same 0-100 scale as pivot high transparency.
2. Touch Alert Settings (Price Interaction Monitoring)
Enable Touch Alert: Defaults to true. This toggle enables or disables all alerts related to price touches and breakouts of pivot zones. Disable it if you only want visual cues without receiving notifications.
Show Touch Markers: Defaults to true. When enabled, it displays small labels on the chart during price interactions with pivot zones—"R" for resistance touches, "R+" for resistance top tests, "S" for support touches, and "S+" for support bottom tests.
Alert on Bottom Touch: Defaults to true. Triggers an alert when price first touches the bottom boundary of a pivot zone, signaling entry into a support or resistance area.
Alert on Top Touch: Defaults to true. Triggers an alert when price reaches the top boundary of a resistance zone or the bottom boundary of a support zone, indicating a test of the zone’s key level.
Minimum Touch Interval (bars): Defaults to 5, with a minimum value of 1. This parameter sets a minimum number of bars between consecutive touch alerts for the same pivot zone, preventing duplicate and redundant alerts.
ATR Length for Label Offset: Defaults to 14. It defines the lookback length of the Average True Range (ATR) indicator used to calculate the distance of touch markers from price action, using the standard ATR length of 14 by default.
Label Offset Multiplier: Defaults to 0.3, with a minimum value of 0.1 and adjustable in 0.1 increments. It multiplies the ATR value to set the offset distance of touch markers from price, preventing overlap between markers and candlesticks.
3. Volume Settings (High-Volume Zone Configuration)
Show Huge Volume Box: Defaults to false. This toggle enables or disables the visualization of bars with extremely high volume, which is disabled by default to reduce chart clutter.
Volume Length: Defaults to 20. It sets the lookback period (number of bars) used to calculate the highest volume and average volume, which are the benchmarks for identifying "huge volume" bars.
Volume Factor: Defaults to 5. It acts as a multiplier for the average volume—only bars with volume greater than the average volume multiplied by this factor are classified as "huge volume" bars. Higher values make the detection more restrictive, capturing only the most extreme volume spikes.
Volume Box Color: Defaults to blue. This parameter sets the background color of the huge volume box for clear visual identification.
Volume Box Transparency: Defaults to 70, with a range of 0 to 100. It controls the transparency of the huge volume box, following the same 0 (fully opaque) to 100 (fully transparent) scale as other zone transparency settings.
Enable Session Filter: Defaults to true. When enabled, it restricts huge volume detection to a user-specified trading session; disabling it allows detection across all time periods.
Trading Session: Defaults to 0930-1600, formatted as HHMM-HHMM. It defines the specific trading session for volume detection—for example, 0930-1600 corresponds to US stock regular trading hours.
Session Timezone: Defaults to UTC-5, with options covering all UTC offsets from UTC-12 to UTC+12. It sets the timezone for the specified trading session, with key mappings including UTC-5 for US Eastern time, UTC+0 for London time, UTC+1 for Paris time, UTC+8 for China/Singapore time, and UTC+9 for Tokyo time.
Hidden Core Logic (Non-Customizable Constants)
Auto HTF Detection Logic
The indicator automatically selects the appropriate higher timeframe based on your current chart timeframe (measured in minutes), following this predefined rule set:
For current timeframes less than 3 minutes (including second-based charts), the auto-selected HTF is 3-minute.
For current timeframes between 3 minutes and 9 minutes, the auto-selected HTF is 15-minute.
For current timeframes between 10 minutes and 29 minutes, the auto-selected HTF is 1-hour (60-minute).
For current timeframes between 30 minutes and 3 hours 59 minutes, the auto-selected HTF is 4-hour (240-minute).
For current timeframes between 4 hours and 23 hours 59 minutes, the auto-selected HTF is Daily (D).
For current timeframes of 1 day or longer, the auto-selected HTF is Weekly (W).
How to Use the Indicator
1. Basic Setup
Add the indicator to your TradingView chart—it will overlay directly on your price action.
Verify the auto-selected HTF, which requires no manual input. If you want to change the underlying HTF logic, simply adjust your current chart timeframe.
Customize the indicator parameters via the "Settings" panel to match your visual preferences and trading needs.
2. Interpreting Visual Cues
Gray Transparent Rectangle: Represents an HTF Pivot High (Resistance Zone). The zone is bounded by the pivot high’s peak at the top and the higher of the pivot bar’s open or close at the bottom.
Fuchsia Transparent Rectangle: Represents an HTF Pivot Low (Support Zone). The zone is bounded by the pivot low’s trough at the bottom and the lower of the pivot bar’s open or close at the top.
Small "R" Label (Red/Orange): Signals a Resistance Zone Touch. A red label indicates the first touch of the zone, while an orange label indicates a re-touch after the minimum touch interval has elapsed.
Small "R+" Label (Solid Red): Signals a Resistance Zone Top Test, meaning price has reached the upper boundary of the pivot high zone and is attempting a breakout.
Small "S" Label (Green/Lime): Signals a Support Zone Touch. A green label indicates the first touch of the zone, while a lime label indicates a re-touch after the minimum touch interval has elapsed.
Small "S+" Label (Solid Green): Signals a Support Zone Bottom Test, meaning price has reached the lower boundary of the pivot low zone and is attempting a breakdown.
Blue Transparent Box (Optional): Represents a Huge Volume Zone, marking a bar with extreme volume that meets the volume factor and session filter criteria.
Extending Rectangle: Identifies an Unbroken Pivot Zone. The rectangle will continue extending to the right as long as price has not broken the zone’s boundary; broken zones stop extending.
3. Alert Triggers
When the Enable Touch Alert parameter is set to true, the indicator generates five distinct types of alerts:
Resistance Touched: Triggers when price first enters the pivot high zone, if the Alert on Bottom Touch parameter is enabled.
Resistance Top Test: Triggers when price reaches the upper boundary of the pivot high zone, if the Alert on Top Touch parameter is enabled.
Resistance Re-touch: Triggers when price re-enters the pivot high zone after the minimum touch interval has passed, if the Alert on Bottom Touch parameter is enabled.
Support Touched/Re-touch: Mirrors the resistance touch alerts, triggering when price enters or re-enters the pivot low zone.
Support/Resistance Broken: Triggers once per breakout when price closes above a pivot high zone or below a pivot low zone on the auto-selected HTF.
4. Trading Strategies with the Indicator
Strategy 1: Pivot Zone Bounce (Range Trading)
Long Setup: Look for price to touch a fuchsia pivot low zone (accompanied by an "S" label), then watch for a bullish reversal candlestick pattern—such as a hammer or bullish engulfing. Confirm the setup with increasing buying volume, then enter a long position.
Short Setup: Look for price to touch a gray pivot high zone (accompanied by an "R" label), then watch for a bearish reversal candlestick pattern—such as a shooting star or bearish engulfing. Confirm the setup with increasing selling volume, then enter a short position.
Stop Loss Placement: For long positions, place the stop loss just below the bottom boundary of the pivot low zone. For short positions, place the stop loss just above the top boundary of the pivot high zone.
Take Profit Target: Target the next nearby pivot zone, or use a risk-reward ratio of at least 1:2 for consistent results.
Strategy 2: Pivot Zone Breakout (Trend Trading)
Long Breakout Setup: Wait for a "Resistance BROKEN" alert, which confirms price has closed above the gray pivot high zone. Enter a long position only if the breakout is accompanied by above-average volume, which validates the strength of the breakout.
Short Breakdown Setup: Wait for a "Support BROKEN" alert, which confirms price has closed below the fuchsia pivot low zone. Enter a short position only if the breakdown is accompanied by above-average volume, which validates the strength of the breakdown.
Stop Loss Placement: For long breakouts, place the stop loss just below the breakout candlestick. For short breakdowns, place the stop loss just above the breakdown candlestick.
Take Profit Target: Target the next major pivot zone in the direction of the trend, or trail your stop loss to capture extended trend moves.
Strategy 3: High-Volume + Pivot Zone Confluence (High-Probability Trading)
Enable the Show Huge Volume Box parameter to display high-volume zones on your chart.
Look for pivot zones that align with these high-volume boxes—this confluence of support/resistance levels and institutional volume activity creates high-probability trade setups.
Prioritize trades where price interacts with these confluent zones, as reactions from these areas are typically stronger and more reliable than reactions from standalone pivot zones.
5. Best Practices
Timeframe Compatibility: The indicator works seamlessly on all timeframes, from second-based charts to weekly charts, thanks to its auto-HTF detection logic.
Asset Compatibility: It is suitable for trading stocks, forex pairs, cryptocurrencies, commodities, and futures contracts across global markets.
Chart Clutter Management: Keep the Show Huge Volume Box parameter disabled by default unless you specifically trade volume-based strategies, to avoid overcrowding your chart with unnecessary elements.
Alert Notification Setup: Configure TradingView’s alert notifications—including email, SMS, and app alerts—to stay updated on price interactions with pivot zones, even when you are not actively monitoring the chart.
Parameter Fine-Tuning: Backtest the indicator with your preferred asset and timeframe to adjust parameters like Volume Factor and Minimum Touch Interval, optimizing the indicator for the specific market conditions you trade.
Disclaimer: This indicator is for educational and analytical purposes only. It does not constitute financial advice. Always conduct your own research and risk assessment before executing any trades in the financial markets.
Frequency AnalyzerFREQUENCY ANALYZER
This indicator is called Frequency Analyzer to analyze the movement of volatility explosion, to detect exploding candles, before they explode. The indicator only describes large volatility would happen in the future, but we don't know, it's volatility as a buy or sell transaction. Of course this has an impact on whether the candle after that occurs a rally or a drop.
That this is useful for detecting exploding candles before exploding, to detect super bullish before bullish, or detect super bearish before bearish. If the candle is in the support position and there is the Spike Bar on Frequency Analyzer, that high probability the exploding volatility becomes a rally. Conversely, if the candle position is in the resistance and there is the Spike Bar on Frequency Analyzer, that high probability the exploding volatility becomes a drop. So this is an indicator to detect exploding candles before they explode, the candles become super rally or super drop.
Seasonality Table - [JTCAPITAL]Seasonality Table - is a modified way to use monthly return aggregation across multiple assets to identify seasonal trends in cryptocurrencies and indices.
The indicator works by calculating in the following steps:
Asset Selection
The user defines a list of assets to include in the seasonality table. By default, the script allows up to 32 assets, including popular cryptocurrencies like BTC, ETH, BNB, XRP, and others. Each asset is identified by its symbol (e.g., "CRYPTO:BTCUSD").
Monthly Return Calculation
For each asset, the script requests monthly price data using request.security. Specifically, it retrieves the monthly open, close, and month number. The monthly return is calculated as:
Return = (Close - Open) / Open
This step provides a normalized measure of performance for each asset per month.
Data Aggregation
The script stores two key arrays for each asset and month combination:
sumReturns: The cumulative sum of monthly returns
countReturns: The number of months with valid data
This allows averaging returns later while handling months with missing data gracefully.
Table Construction
Rows representing months (January–December)
Columns representing each asset
An additional column showing the average return for all assets per month
A final row showing the yearly average return for each asset
Filling the Table
The table cells are filled as follows:
Monthly returns are averaged for each asset and displayed as a percentage.
Positive returns are colored green, negative returns red.
Missing data is displayed as a gray “—” placeholder.
Each row’s values are normalized for the color gradient to show relative performance.
Averages Computation
The script calculates two types of averages:
Monthly Average Across Assets : Sum of all asset returns for a month divided by the number of valid data points.
Yearly Average Per Asset : Sum of all monthly returns for an asset divided by the number of months with valid data.
These averages are displayed in the last column and last row respectively, with gradient coloring for visual comparison.
Buy and Sell Conditions
This indicator does not generate explicit buy or sell signals. Instead, it provides a visual heatmap of historical seasonality, allowing traders to:
Identify months where an asset historically outperforms (bullish bias)
Identify months with weak historical performance (bearish caution)
Compare seasonal patterns across multiple assets for portfolio allocation
Filters can be applied by adjusting the asset list, changing the color mapping, or focusing on specific months to highlight seasonal anomalies.
Features and Parameters
Number of assets: Set how many assets are included in the table (1–32).
Assets: Input symbols for the assets you want to analyze.
Low % Color: Defines the color for the lowest monthly returns in the gradient.
High % Color: Defines the color for the highest monthly returns in the gradient.
Cleaned asset names for concise display.
Gradient-based visualization for easier pattern recognition.
Monthly and yearly averages for comparative analysis.
Specifications
Monthly Return Calculation
Uses the formula (Close - Open) / Open for each asset per month. This standardizes performance across different price scales and ensures comparability between assets.
Arrays for Storage
sumReturns: Float array storing cumulative monthly returns.
countReturns: Integer array storing the number of valid data points per month.
These arrays allow efficient aggregation and average calculations without overwriting previous values.
Data Retrieval via Security Calls
Requests monthly OHLC data for each asset using request.security.
Ensures calculations reflect the correct timeframe and allow for historical comparison.
Color and Text Assignment
Green text for positive returns, red for negative returns.
Gray cells indicate missing data.
Gradient background shows relative magnitude within the month.
Seasonality Analysis
The table visually encodes which months historically produce stronger returns.
Useful for portfolio rotation, risk management, and identifying cyclical trends.
Scalability
Supports up to 32 assets.
Dynamically adapts to the number of assets and data availability.
Gradient scales automatically per row for consistent comparison.
Order Flow: Structural Sniper [Profile + Signals]Overview
This script is a comprehensive tool designed to bridge the gap between Market Structure and Order Flow analysis. It aims to eliminate the subjectivity of static support and resistance lines by focusing on dynamic liquidity and the behavior of aggressive versus passive market participants.
Unlike traditional indicators that plot static data, the Structural Delta Map dynamically anchors its analysis to the start of the current trend (Pivots), providing a clear "X-Ray" view of how volume was distributed during the current price swing.
How it Works
The indicator combines three distinct technical concepts into a single system:
1. Market Structure (Pivots):
It uses a pivot detection algorithm to identify significant Swing Highs and Swing Lows. This determines the market bias and anchors the analysis to the origin of the movement.
2. Anchored VWAP (Fair Price):
It automatically calculates the Volume Weighted Average Price (VWAP) starting from the last confirmed pivot. This yellow line acts as the "spine" of the trend, serving as dynamic institutional support/resistance.
3. Delta Profile & Heatmap:
A Volume Profile is plotted on the left side, anchored to the pivot.
Split Delta: Instead of a single color, bars are split into Green (Buying Volume) and Red (Selling Volume) based on price action estimation.
Heatmap Logic: The opacity of the bars adjusts automatically. Bright/Solid bars represent High Volume Nodes (HVN), while transparent bars represent Low Volume Nodes (LVN) or liquidity voids.
How to Use (Strategy)
The indicator provides both visual context and specific entry signals:
1. Visual Context:
Profile: Look for reactions at bright, wide bars (High Volume Nodes). These act as magnets or barriers.
Yellow Line (VWAP): In an uptrend, look for buy opportunities when price retraces to this line. In a downtrend, look for shorts on the retest.
2. Aggression Signals (Triangle "AGR"):
Type: Trend Continuation / Pullback.
Logic: Triggers when price retraces to the structural value zone (near VWAP), rejects it with higher-than-average volume, and closes in the direction of the trend.
3. Absorption Signals (Cross "ABS"):
Type: Reversal / Trap.
Logic:
Bullish Absorption: Price makes a new local low with high volume (selling pressure), but the candle closes bullish (leaving a long bottom wick). Passive buyers absorbed the aggression.
Bearish Absorption: Price makes a new local high with high volume, but closes bearish. Passive sellers absorbed the buying pressure.
Settings
Pivot Sensitivity: Adjusts how the script detects trend changes.
Profile Resolution: Controls the number of rows in the histogram.
Signal Filters: Enable/Disable signals and adjust the Volume Multiplier threshold.
Technical Disclaimer
This indicator estimates "Delta" (Buy vs. Sell volume) based on OHLC price action and bar volume, as Pine Script does not grant access to historical tick-by-tick data. While this approximation is highly effective for identifying aggression and absorption, it differs slightly from Level 2 footprint data found on platforms like Sierra Chart. Accuracy depends on the volume data provided by your exchange.
CAHOLD / CBLOHDCAHOLD (Close Above Highest Low Day) and CBLOHD (Close Below Lowest High Day)
The logic is based on identifying pullbacks followed by strength in the direction of the trend, making it useful as a trend-continuation entry signal rather than a reversal tool.
⸻
How CAHOLD Works (Bullish)
1. A sequence of red candles forms (a pullback).
2. The first green candle appears.
3. The script identifies the highest high of the prior red-candle sequence (HOLD).
4. A CAHOLD signal triggers when a green candle closes above that HOLD level.
5. A small green arrow is plotted below the candle.
⸻
How CBLOHD Works (Bearish)
1. A sequence of green candles forms (a bounce).
2. The first red candle appears.
3. The script identifies the lowest low of the prior green-candle sequence (LOHD).
4. A CBLOHD signal triggers when a red candle closes below that LOHD level.
5. A small red arrow is plotted above the candle.
⸻
Optional Filters
• EMA / SMA Trend Filter
Only shows CAHOLDs in uptrends and CBLOHDs in downtrends.
• Minimum Pullback Depth
Requires a minimum number of red/green candles before a signal can trigger.
• ATR Breakout Filter
Requires price to break the level by a volatility-adjusted amount.
autofibaV1 calculates custom fiba setupautofibaV1 calculates custom fiba setup autofibaV1 calculates custom fiba setup
Pin Bar Volume Spike Finder Trend-AwarePin Bar + Volume Spike Finder (Trend-Aware) v6 — no EMA/SMA plots
BBMA by RWBTradeLabBBMA by RWBTradeLab
A clean, non-repainting BBMA indicator built for traders who combine Bollinger Bands with Linear Weighted Moving Averages and EMA to track volatility expansion, price extremes, and confirmed breakout behavior using closed candles only.
What this indicator does
This script combines Bollinger Bands (20, 2) with Linear Weighted Moving Averages (LWMA) and a 50 EMA to help traders identify high-probability price extension zones and confirmed BBMA break conditions—without repainting.
All calculations and alerts are based strictly on closed candles (no running-bar signals).
Core components
Bollinger Bands
*Period: 20
*Deviations: 2
*Apply to: Close
*Visual shift supported (default 0)
*Clean white band structure for clarity
Linear Weighted Moving Averages (LWMA)
*LW MA 5 Low
*LW MA 10 Low
*LW MA 5 High
*LW MA 10 High
These weighted averages react faster to recent price action and help define dynamic BBMA zones.
Exponential Moving Average
*EMA 50
*Apply to: Close
*Method: Exponential
Used as a higher-timeframe trend and structure reference.
BBMA alert logic (closed candle only)
Lower BBMA Break
Triggered when:
*LW MA 5 Low crosses below the Lower Bollinger Band
*The candle closes below the Lower Bollinger Band
*LW MA 5 Low remains below the Lower Bollinger Band after close
Upper BBMA Break
Triggered when:
*LW MA 5 High crosses above the Upper Bollinger Band
*The candle closes above the Upper Bollinger Band
*LW MA 5 High remains above the Upper Bollinger Band after close
⚠️ No alerts are generated on running candles—only on confirmed bar close.
Visuals on chart
*Bollinger Bands plotted in clean white
*LW MAs color-coded for easy distinction
*EMA 50 plotted in green
*Optional show/hide toggles for BB, LW MAs, and EMA
Alerts
Built-in alerts trigger only on candle close:
*BBMA Lower Break (confirmed)
*BBMA Upper Break (confirmed)
Designed for reliable discretionary trading and automation without repainting issues.
Key settings
*BB Period & Deviations
*LW MA periods (5 & 10, High / Low)
*EMA period
*Visual shift for Bollinger Bands
*Individual visibility toggles
Non-repainting confirmation
All calculations, plots, and alerts are based on confirmed candles only.
No running-bar logic → no repainting.
Disclaimer
This indicator is a technical analysis tool, not financial advice.
Trading involves risk—always use proper risk management and confirm signals with your own analysis.
Creator: RWBTradeLab
If you find this indicator useful, please leave a like ⭐ and share your feedback.
BreakPoint LITE - Structure Shift SignalsBreakPoint LITE – Structure Shift Signals
Spot market structure shifts instantly and trade with clarity.
BreakPoint LITE helps traders identify key swing highs and lows, visualize potential structure shifts, and signal trade opportunities directly on your chart. With simple yet powerful filters like EMA and RSI, plus optional break-and-retest logic, it provides actionable insights while keeping your chart clean. The LITE version focuses on essential signals, making it perfect for traders who want a free, lightweight, and effective market structure tool.
✨ Features (LITE Version)
🔸 Swing High / Low Detection
🔸 Break + Retest Signals (optional)
🔸 EMA Trend Filter (optional)
🔸 RSI Filter (optional)
🔸 Cooldown Bars Between Signals
🔸 On-Chart BUY / SELL Labels
🔸 Simple HUD Display of Current Trade
🔸 Fully Free & Lightweight
Note: All PRO features are locked and visually marked, so LITE users are focused on essential functionality.
Make trading decisions based on LITE signals; consider PRO upgrade for full HUD and advanced features.
🔍 In-Depth Feature Breakdown
BUY/SELL Labels
🔹Plots clear signals directly on the chart
🔸 Instant, easy-to-read trade cues
Swing Detection
🔹Automatically detects swing highs and lows based on user-defined length
🔸 Identifies critical structure points for trade entries
Break + Retest Signals
🔹Optionally requires price to retest the breakout level before signaling
🔸 Reduces false signals and improves trade reliability
EMA Trend Filter
🔹Filter signals based on trend relative to EMA
🔸 Trade with the trend for higher probability setups
RSI Filter
🔹Filter signals using RSI above/below a midline
🔸 Avoid trades during overbought/oversold extremes
HUD Display
🔹Shows the current trade state (Long/Short/None) in a small table
🔸 Keeps track of market bias at a glance
Cooldown Bars
🔹 Prevent repeated signals too close together
🔸 Reduces signal noise and improves decision clarity
🛠️ Settings & Customization
▫️ Swing Length: 1–50 bars (default 5)
▫️ Use EMA Filter: On/Off
▫️ EMA Length: Default 200
▫️ Use RSI Filter: On/Off
▫️ RSI Length: Default 14
▫️ RSI Midline: Default 50
▫️ Require Break + Retest: On/Off
▫️ Retest ATR Tolerance: Default 0.5
▫️ Cooldown Bars After Signal: Default 10
Best Practices
Combine swing signals with EMA/RSI filters for higher accuracy.
Enable break-and-retest for more conservative trading.
Use cooldown bars to avoid repeated signals during volatile conditions.
Keep your chart clean; avoid cluttering with too many indicators.
Getting Started
Add BreakPoint LITE to your chart from the TradingView Public Library.
Adjust swing length, EMA, and RSI settings to your preference.
Enable break-and-retest if you want higher-confidence signals.
Watch for BUY / SELL labels and the simple HUD for trade bias.
💳 Unlock BreakPoint PRO for advanced HUD options, high-timeframe structure analysis, ATR-based stop loss/take profit, risk/reward visualization, and full customization. Upgrade to PRO to take your market structure analysis to a professional level!
⚠️ Disclaimer:
BreakPoint – Structure Shift Signals (LITE) is a technical analysis tool designed to highlight potential market structure shifts. It provides visual signals and trade bias suggestions based on swing highs/lows, optional EMA/RSI filters, and break/retest logic. It does not guarantee profits and should not be considered financial advice.
Users are responsible for their own trades. Always perform your own analysis and manage risk appropriately. Use proper stop-losses and position sizing. Trading involves significant risk of loss, and past performance is not indicative of future results.
By using this indicator, you acknowledge that the author cannot be held liable for any trading losses or financial outcomes resulting from its use.
If you'd like access or have any questions, feel free to reach out to me directly via DM.
RSI Divergences KittenRSI Divergences + Adjustable RSI σ-Bands + Band Pierce Signals (with optional US weekend filter)
Description:
This indicator combines three RSI tools into one clean workflow:
1. RSI σ-Bands (mean ± k·σ)
It builds dynamic upper/lower bands around RSI using a moving mean and standard deviation. These bands adapt to regime changes (expanding in volatile periods, contracting in quiet periods). Bands can be clipped to RSI’s natural 0–100 range and optionally filled for readability.
2. Band “Pierce” Signals
It prints a marker when RSI crosses outside the upper band (overextension) or outside the lower band (underextension). These pierces are useful as timing signals for mean-reversion setups, especially when you expect price to revert back toward a reference mean (e.g., VWAP). Optional “re-entry” markers show when RSI crosses back inside the bands.
3. Proper RSI Divergences (Regular + Hidden)
Divergences are detected using RSI pivots (not price pivots). At each RSI pivot, the script samples the corresponding price high/low on that pivot bar and compares it to the previous pivot within a configurable bar-distance window.
• Bullish divergence: price lower low + RSI higher low
• Hidden bullish: price higher low + RSI lower low
• Bearish divergence: price higher high + RSI lower high
• Hidden bearish: price lower high + RSI higher high
Line width is configurable for visibility.
Manual Band Adjustment (Near-Miss Control):
If your best reversals “nearly” tag the band, you can manually tune sensitivity without rewriting the math:
• Band offset (RSI points): nudges trigger levels
• Band width scale: tightens/widens the σ-band envelope
US Weekend Filter (Optional):
You can optionally suppress pierce/divergence signals during US weekend hours (Fri 17:00 ET → Sun 17:00 ET) and optionally shade those periods to help isolate low-liquidity behavior.
Notes / Intended Use:
This is designed as a mean-reversion timing tool, not a standalone trading system. For best results, combine signals with a market “mean” (e.g., rolling VWAP) and basic risk controls.
Kijun Sen Standard Deviation | QuantLapse SystemsOverview
The Kijun Sen Standard Deviation indicator by QuantLapse Systems is a volatility-aware trend-following framework that combines the structural equilibrium of the Kijun Sen (基準線) with statistically adaptive standard deviation bands.
By anchoring trend detection to market structure and confirming direction through volatility expansion, the indicator delivers a cleaner, more reliable regime classification across varying market conditions.
Rather than reacting to short-term noise, the system focuses on identifying statistically justified trend phases , making it well-suited for disciplined, rule-based trading.
Technical Composition, Calculation, Key Components & Features
📌 Kijun Sen (基準線) – Structural Trend Baseline
Calculated as the midpoint between the highest high and lowest low over a user-defined period.
Represents market equilibrium and structural balance rather than short-term momentum.
Naturally adapts to expanding and contracting price ranges.
Provides a stable baseline for regime detection and volatility validation.
Acts as the anchor for deviation bands and persistent trend-state logic.
Unlike fast or reactive moving averages, the Kijun Sen emphasizes price structure and equilibrium , making it especially effective for higher-quality trend confirmation.
📌 Volatility Adjustment – Standard Deviation Bands
Standard deviation is calculated over a configurable lookback to measure current price dispersion.
Upper and lower envelopes are formed by applying a deviation multiplier to the Kijun Sen.
Band width expands during volatility surges and contracts during consolidation.
Creates proportional, volatility-aware thresholds instead of static offsets.
Visually represents market energy through expanding and compressing channels.
These adaptive bands ensure that trend signals only occur when volatility supports directional movement.
📌 Trend Signal & Regime Calculation
Bullish Trend is confirmed when price closes above the upper deviation band.
Bearish Trend is confirmed when price closes below the lower deviation band.
Once established, the trend state persists until an opposing volatility break occurs.
This persistence reduces whipsaws and improves regime stability.
Trend state is reinforced with color-coded lines, envelopes, and background shading.
This volatility-confirmed persistence model is visible in the chart, where trends remain intact through minor pullbacks and only flip on decisive expansion.
How It Works in Trading
✅ Volatility-Confirmed Trend Detection – Requires expansion beyond deviation bands.
✅ Noise Suppression – Filters low-energy price movement within volatility envelopes.
✅ Regime Persistence – Maintains trend state until statistical invalidation.
✅ Immediate Visual Context – Direction, strength, and transitions are clear at a glance.
Visual Representation
Trend signals are displayed directly on price using both line and background context:
🟢 Green / Teal Kijun & Envelope → Confirmed bullish regime.
🔴 Red / Pink Kijun & Envelope → Confirmed bearish regime.
Semi-transparent band fill visualizes volatility expansion and compression.
Buy and Sell labels appear only on confirmed regime transitions.
The lower panel includes:
Strategy equity curve based on trend exposure.
Buy & Hold equity for performance comparison.
Background regime shading synchronized with trend state.
Features and User Inputs
The Kijun Sen Standard Deviation framework offers a focused yet powerful set of configurable inputs:
Kijun Sen Length – Controls structural trend sensitivity.
Standard Deviation Controls – Adjust lookback length and multiplier for regime strictness.
Backtesting & Date Filters – Define evaluation periods and starting conditions.
Display Options – Toggle labels, equity curves, and background shading.
Color Customization – Fully configurable buy/sell colors for trends and equity curves.
These controls allow users to balance responsiveness, stability, and clarity without overfitting.
Practical Applications
The Kijun Sen Standard Deviation indicator is designed for traders who prioritize structure, volatility confirmation, and regime awareness.
Primary Trend Filtering – Identify and stay aligned with dominant market direction.
Volatility-Aware Trend Following – Participate only when price expansion confirms intent.
Risk-Managed Exposure – Avoid chop during compression and transitional phases.
Systematic Strategy Development – Use as a regime engine or higher-timeframe filter.
Performance Evaluation – Compare trend-following equity against buy-and-hold benchmarks.
This framework bridges classical Ichimoku structure with modern statistical validation.
Conclusion
The Kijun Sen Standard Deviation indicator by QuantLapse Systems represents a refined evolution of Ichimoku-based trend analysis.
By integrating the structural equilibrium of the Kijun Sen with adaptive standard deviation confirmation, the system delivers clearer regime classification, reduced noise, and more reliable trend participation.
Rather than attempting to predict price, it focuses on confirming when trends are statistically justified .
Who should use Kijun Sen Standard Deviation:
📊 Trend-Following Traders – Stay aligned with dominant market structure.
⚡ Momentum & Swing Traders – Enter only on volatility-backed expansions.
🤖 Systematic & Algorithmic Traders – Ideal as a regime filter or trend-state engine.
Past performance is not indicative of future results.
Disclaimer: All trading involves risk, and no indicator can guarantee profitability.
Strategic Advice: Always backtest thoroughly, optimize parameters responsibly, and align settings with your timeframe, asset class, and risk tolerance before live deployment.
TRS (Trend Readiness System)TRS – Trend Readiness System
TRS (Trend Readiness System) is a trend-aligned trading framework designed to help you identify stocks that are becoming ready for entry , not just those already breaking out.
Instead of producing noisy buy/sell signals, TRS evaluates trend quality, pullback structure, momentum rebuilding, and market context , and converts them into clear scores, states, and timing awareness — both on the chart and inside the TradingView Screener.
---
Core Philosophy
Strong trends don’t start at the breakout — they start when conditions quietly align.
TRS focuses on:
• Primary trend alignment
• Healthy pullbacks above long-term support
• Early momentum recovery
• Market regime confirmation
• Entry timing (fresh vs late)
---
What TRS Measures
1. Setup Score (Trend Quality)
Answers the question: “Is this stock structurally worth watching?”
Based on:
• Price position relative to MA150
• Long-term trend direction
• Higher-low structure
• Distance from MA150 (overextension control)
• Market regime (bullish / bearish)
---
2. Entry Score (Timing Quality)
Answers the question: “Is the timing right — or still early?”
Based on:
• Short and mid-term moving averages
• Pullback behavior
• Momentum stabilization
• Volume confirmation
---
3. General Score
A combined readiness score used for ranking in the TradingView Screener:
General Score = Setup Score + Entry Score
---
Entry State Tracking (Key Feature)
TRS tracks the full entry lifecycle , not just signals:
• Valid Entry
• Pending Entry (almost ready)
• Bars Since Valid Entry
• Entry Window (Fresh / Expired)
• Entry Still Valid (Yes / No)
This helps avoid chasing late or already-played setups.
---
Market Regime Filter
Signals automatically adapt to overall market conditions:
• Market trend confirmation (e.g. SPY / QQQ)
• Reduced false signals during weak markets
• Clear explanation when setups are blocked
---
Visual Dashboard (Optional)
The on-chart dashboard can display:
• General Score
• Market state
• Setup quality
• Entry status
• Entry window
• Bars since entry
• Blocking reason (if any)
You can switch between:
• Minimal mode – essential info only
• Full table mode – detailed diagnostics
---
Screener Integration
TRS exposes clean numeric outputs for the TradingView Pine Screener:
• Setup Score
• Entry Score
• General Score
• Pending Entry (1 / 0)
• Valid Entry (1 / 0)
• Bars Since Valid Entry
• Market Bullish (1 / 0)
Example Screener Filters:
• Setup Score ≥ 50
• Pending Entry = 1
• Bars Since Valid Entry ≤ 3
• Market Bullish = 1
---
How to Use TRS (Daily Routine)
Step 1 – Scan
• Look for high Setup Score
• Prefer Pending Entry = 1
Step 2 – Review
• Confirm pullback quality
• Check MA150 support
• Observe momentum rebuilding
Step 3 – Act
• Enter only on Valid Entry
• Avoid expired entry windows
• Skip setups blocked by market regime
---
What TRS Is NOT
• Not a breakout chaser
• Not a day-trading system
• Not signal spam
TRS is a decision-support system for swing and position traders who value structure, context, and timing.
---
Best Used On
• Daily timeframe (1D)
• Liquid stocks & ETFs
• Trend-following strategies
• Portfolio-level screening
---
EAOverview
The provided Pine Script code implements a technical analysis indicator known as the UT Bot Alerts. It is a volatility-based trend-following system designed to generate Buy and Sell signals. It uses the Average True Range (ATR) to calculate a dynamic trailing stop line, which helps identify trend reversals.
Key Components & Logic
1. Inputs (User Settings):
• Key Value (a): A sensitivity multiplier. A lower value makes the signals more frequent (sensitive), while a higher value filters out noise (less sensitive).
• ATR Period (c): The timeframe used to calculate the Average True Range (volatility). Default is 10.
• Heikin Ashi (h): A boolean switch (True/False) that allows calculations to be based on Heikin Ashi candles (smoother price action) instead of standard candlesticks.
2. Core Mechanism (ATR Trailing Stop):
• The script calculates an ATR Trailing Stop (xATRTrailingStop).
• Uptrend: If the price is rising, the stop line moves up but never moves down, acting as dynamic support.
• Downtrend: If the price is falling, the stop line moves down but never moves up, acting as dynamic resistance.
3. Signal Generation:
• Buy Signal: Generated when the price (specifically a 1-period EMA) crosses above the Trailing Stop line. This indicates a shift to an uptrend.
• Sell Signal: Generated when the price crosses below the Trailing Stop line. This indicates a shift to a downtrend.
4. Visuals & Alerts:
• Labels: It plots "Buy" (Green) and "Sell" (Red) labels on the chart at the point of the signal.
• Bar Colors: It colors the candlesticks Green during an uptrend and Red during a downtrend.
• Alerts: It creates alert conditions (UT Long and UT Short) that can be hooked into TradingView's alarm system for real-time notifications.
Summary
In short, this script is a Trend Reversal Indicator. It helps traders stay in a trade as long as the price remains on the correct side of the volatility-adjusted trailing stop, and it alerts them immediately when the trend direction changes.
Exit-Side State Detector [Akashic Series]- Market DiagnosticsThe tool is a quantitative market-state indicator designed to help traders identify when trends begin to lose structural integrity and transition from healthy continuation into caution or exit conditions.
Rather than relying on a single signal, this tool synthesizes efficiency decay, structural weakness, volatility instability, momentum disagreement, and temporal exhaustion into a single smooth, normalized exit-state score.
🔍 Concept Overview
Markets rarely fail instantly and usually decay.
This tool models that decay process by measuring how much effort the market is spending versus how much result it’s achieving, and whether internal components remain aligned.
The output is a continuous Exit State score (0–1) that rises as trend sustainability deteriorates.
🧠 Components Breakdown
The Exit State is built from five normalized features:
1️⃣ Efficiency Decay
Measures whether price movement is producing diminishing returns relative to effort.
High decay = trend inefficiency → higher exit risk.
2️⃣ Structural Effort Loss
Compares swing range effort to actual structural progress.
Detects weakening market structure beneath price movement.
3️⃣ Volatility Instability
Evaluates directional movement relative to ATR.
Low directional efficiency signals unstable or choppy conditions.
4️⃣ Momentum Disagreement
Checks correlation between fast and slow momentum.
Diverging momentum = reduced trend agreement.
5️⃣ Temporal Exhaustion
Accounts for how long price has gone without setting new highs, weighted by efficiency decay.
🎛 Context Gating (VWAP Filter)
The Exit State is context-aware:
Signals are dampened when price is far from VWAP, reducing false exit signals during extreme extensions.
📊 Interpreting the Output
* Exit State < 0.30→ 🟢 *Healthy Trend
* 0.30 – 0.60 → 🟡 Caution / Monitor
* > 0.60 → 🔴 Exit / Risk-Off Conditions
This makes the indicator ideal for:
* Scaling out of positions
* Tightening stops
* Avoiding late entries
* Trend quality assessment
⚙️ Settings
* Efficiency Length – Controls sensitivity to trend efficiency decay
* Normalization Length – Lookback window for feature normalization
* State Smoothing – EMA smoothing of final exit state
🧩 Use Cases
✔ Trend-following exits
✔ Position management
✔ Regime filtering
✔ Risk-on / risk-off transitions
✔ Buyside confirmation(See below for specific details)
This indicator does not generate buy signals, as it’s purpose-built to answer one question:
“Is this trend still worth holding?"
----------------------------------------------------------------------------------------------------------------------
--------------------------------------------Buyside Confirmation------------------------------------------------
----------------------------------------------------------------------------------------------------------------------
You will notice that I drew green circles on the chart and indicator at corresponding points where the value hit 0.30 and this is due to the observation that a rise toward 0.30 often precedes bullish continuation
Its also worth mentioning that this indicator is not bearish by default, and when the exit state rises from very low values toward the 0.30 threshold, it often reflects healthy internal resets within a strong trend, not distribution.
Here’s why this happens:
1️⃣ Controlled Inefficiency Is Bullish
In strong trends, price periodically slows down:
* Momentum compresses
* Volatility contracts
* Efficiency temporarily declines
This causes a mild increase in Exit State, but without structural breakdown. These pauses allow:
Late participants to enter
Weak hands to exit
Liquidity to rebuild
As long as the score remains below 0.30, the trend is typically digesting gains, not failing.
2️⃣ Effort Without Damage Signals Absorption
The early rise toward 0.30 is driven mainly by:
* Minor efficiency decay
* Short-term momentum disagreement
However, structural effort and volatility instability remain low, meaning price is absorbing order flow rather than reversing.
This is commonly seen during:
* Bull flags
* Consolidations
* Shallow pullbacks in trending markets
3️⃣ VWAP Context Reinforces Trend Health
Because the indicator is gated by VWAP distance, early rises near 0.30 usually occur while price remains:
* Well-positioned relative to value
* Supported by institutional mean reversion zones
* This reinforces continuation rather than exhaustion.
4️⃣ Practical Interpretation
* Rising toward 0.30 → Trend breathing
* Holding below 0.30 → Trend healthy
* Sustained above 0.60 → Trend at risk
Many strong bullish expansions begin after the Exit State resets upward toward 0.30 and then rolls back down, confirming that the trend has rebalanced and is ready to continue.
🧠 Key Takeaway
* The most dangerous trend is the one that never pauses.
* A controlled rise toward 0.30 reflects renewal, not weakness.
This makes the Exit-Side State Detector especially effective for avoiding premature exits, while still protecting against true structural breakdowns.
Liquidity Maxing [JOAT]Liquidity Maxing - Institutional Liquidity Matrix
Introduction
Liquidity Maxing is an open-source strategy for TradingView built around institutional market structure concepts. It identifies structural shifts, evaluates trades through multi-factor confluence, and implements layered risk controls.
The strategy is designed for swing trading on 4-hour timeframes, focusing on how institutional order flow manifests in price action through structure breaks, inducements, and liquidity sweeps.
Core Functionality
Liquidity Maxing performs three primary functions:
Tracks market structure to identify when control shifts between buyers and sellers
Scores potential trades using an eight-factor confluence system
Manages position sizing and risk exposure dynamically based on volatility and user-defined limits
The goal is selective trading when multiple conditions align, rather than frequent entries.
Market Structure Engine
The structure engine tracks three key events:
Break of Structure (BOS): Price pushes beyond a prior pivot in the direction of trend
Change of Character (CHoCH): Control flips from bullish to bearish or vice versa
Inducement Sweeps (IDM): Market briefly runs stops against trend before moving in the real direction
The structure module continuously updates strong highs and lows, labeling structural shifts visually. IDM markers are optional and disabled by default to maintain chart clarity.
The trade engine requires valid structure alignment before considering entries. No structure, no trade.
Eight-Factor Confluence System
Instead of relying on a single indicator, Liquidity Maxing uses an eight-factor scoring system:
Structure alignment with current trend
RSI within healthy bands (different ranges for up and down trends)
MACD momentum agreement with direction
Volume above adaptive baseline
Price relative to main trend EMA
Session and weekend filter (configurable)
Volatility expansion/contraction via ATR shifts
Higher-timeframe EMA confirmation
Each factor contributes one point to the confluence score. The default minimum confluence threshold is 6 out of 8, but you can adjust this from 1-8 based on your preference for trade frequency versus selectivity.
Only when structure and confluence agree does the strategy proceed to risk evaluation.
Dynamic Risk Management
Risk controls are implemented in multiple layers:
ATR-based stops and targets with configurable risk-to-reward ratio (default 2:1)
Volatility-adjusted position sizing to maintain consistent risk per trade as ranges expand or compress
Daily and weekly risk budgets that halt new entries once thresholds are reached
Correlation cooldown to prevent clustered trades in the same direction
Global circuit breaker with maximum drawdown limit and emergency kill switch
If any guardrail is breached, the strategy will not open new positions. The dashboard clearly displays risk state for transparency.
Market Presets
The strategy includes configuration presets optimized for different market types:
Crypto (BTC/ETH): RSI bands 70/30, volume multiplier 1.2, enhanced ATR scaling
Forex Majors: RSI bands 75/25, volume multiplier 1.5
Indices (SPY/QQQ): RSI bands 70/30, volume multiplier 1.3
Custom: Default values for user customization
For crypto assets, the strategy automatically applies ATR volatility scaling to account for higher volatility characteristics.
Monitoring and Dashboards
The strategy includes optional monitoring layers:
Risk Operations Dashboard (top-right):
Trend state
Confluence score
ATR value
Current position size percentage
Global drawdown
Daily and weekly risk consumption
Correlation guard state
Alert mode status
Performance Console (top-left):
Net profit
Current equity
Win rate percentage
Average trade value
Sharpe-style ratio (rolling 50-bar window)
Profit factor
Open trade count
Optional risk tint on chart background provides visual indication of "safe to trade" versus "halted" state.
All visualization elements can be toggled on/off from the inputs for clean chart viewing or full telemetry during parameter tuning.
Alerts and Automation
The strategy supports alert integration with two formats:
Standard alerts: Human-readable messages for long, short, and risk-halt conditions
Webhook format: JSON-formatted payloads ready for external execution systems (optional)
Alert messages are predictable and unambiguous, suitable for manual review or automated forwarding to execution engines.
Built-in Validation Suite
The strategy includes an optional validation layer that can be enabled from inputs. It checks:
Internal consistency of structure and confluence metrics
Sanity and ordering of risk parameters
Position sizing compliance with user-defined floors and caps
This validation is optional and not required for trading, but provides transparency into system operation during development or troubleshooting.
Strategy Parameters
Market Presets:
Configuration Preset: Choose between Crypto (BTC/ETH), Forex Majors, Indices (SPY/QQQ), or Custom
Market Structure Architecture:
Pivot Length: Default 5 bars
Filter by Inducement (IDM): Default enabled
Visualize Structure: Default enabled
Structure Lookback: Default 50 bars
Risk & Capital Preservation:
Risk:Reward Ratio: Default 2.0
ATR Period: Default 14
ATR Multiplier (Stop): Default 2.0
Max Drawdown Circuit Breaker: Default 10%
Risk per Trade (% Equity): Default 1.5%
Daily Risk Limit: Default 6%
Weekly Risk Limit: Default 12%
Min Position Size (% Equity): Default 0.25%
Max Position Size (% Equity): Default 5%
Correlation Cooldown (bars): Default 3
Emergency Kill Switch: Default disabled
Signal Confluence:
RSI Length: Default 14
Trend EMA: Default 200
HTF Confirmation TF: Default Daily
Allow Weekend Trading: Default enabled
Minimum Confluence Score (0-8): Default 6
Backtesting Considerations
When backtesting this strategy, consider the following:
Commission: Default 0.05% (adjustable in strategy settings)
Initial Capital: Default $100,000 (adjustable)
Position Sizing: Uses percentage of equity (default 2% per trade)
Timeframe: Optimized for 4-hour charts, though can be tested on other timeframes
Results will vary significantly based on:
Market conditions and volatility regimes
Parameter settings, especially confluence threshold
Risk limit configuration
Symbol characteristics (crypto vs forex vs equities)
Past performance does not guarantee future results. Win rate, profit factor, and other metrics should be evaluated in context of drawdown periods, trade frequency, and market conditions.
How to Use This Strategy
This is a framework that requires understanding and parameter tuning, not a one-size-fits-all solution.
Recommended workflow:
Start on 4-hour timeframe with default parameters and appropriate market preset
Run backtests and study performance console metrics: focus on drawdown behavior, win rate, profit factor, and trade frequency
Adjust confluence threshold to match your risk appetite—higher thresholds mean fewer but more selective trades
Set realistic daily and weekly risk budgets appropriate for your account size and risk tolerance
Consider ATR multiplier adjustments based on market volatility characteristics
Only connect alerts or automation after thorough testing and parameter validation
Treat this as a risk framework with an integrated entry engine, not merely an entry signal generator. The risk controls are as important as the trade signals.
Strategy Limitations
Designed for swing trading timeframes; may not perform optimally on very short timeframes
Requires sufficient market structure to identify pivots; may struggle in choppy or low-volatility environments
Crypto markets require different parameter tuning than traditional markets
Risk limits may prevent entries during favorable setups if daily/weekly budgets are exhausted
Correlation cooldown may delay entries that would otherwise be valid
Backtesting results depend on data quality and may not reflect live trading with slippage
Design Philosophy
Many indicators tell you when price crossed a moving average or RSI left oversold. This strategy addresses questions institutional traders ask:
Who is in control of the market right now?
Is this move structurally significant or just noise?
Do I want to add more risk given what I've already done today/week?
If I'm wrong, exactly how painful can this be?
The strategy provides disciplined, repeatable answers to these questions through systematic structure analysis, confluence filtering, and multi-layer risk management.
Technical Implementation
The strategy uses Pine Script v6 with:
Custom types for structure, confluence, and risk state management
Functional programming approach for reusable calculations
State management through persistent variables
Optional visual elements that can be toggled independently
The code is open-source and can be modified to suit individual needs. All important logic is visible in the source code.
Disclaimer
This script is provided for educational and informational purposes only. It is not intended as financial, investment, trading, or any other type of advice or recommendation. Trading involves substantial risk of loss and is not suitable for all investors. Past performance, whether real or indicated by historical tests of strategies, is not indicative of future results.
No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. In fact, there are frequently sharp differences between backtested results and actual results subsequently achieved by any particular trading strategy.
The user should be aware of the risks involved in trading and should trade only with risk capital. The authors and publishers of this script are not responsible for any losses or damages, including without limitation, any loss of profit, which may arise directly or indirectly from use of or reliance on this script.
This strategy uses technical analysis methods and indicators that are not guaranteed to be accurate or profitable. Market conditions change, and strategies that worked in the past may not work in the future. Users should thoroughly test any strategy in a paper trading environment before risking real capital.
Commission and slippage settings in backtests may not accurately reflect live trading conditions. Real trading results will vary based on execution quality, market liquidity, and other factors not captured in backtesting.
The user assumes full responsibility for all trading decisions made using this script. Always consult with a qualified financial advisor before making investment decisions.
Enjoy - officialjackofalltrades
EAOverview
The provided Pine Script code implements a technical analysis indicator known as the UT Bot Alerts. It is a volatility-based trend-following system designed to generate Buy and Sell signals. It uses the Average True Range (ATR) to calculate a dynamic trailing stop line, which helps identify trend reversals.
Key Components & Logic
1. Inputs (User Settings):
• Key Value (a): A sensitivity multiplier. A lower value makes the signals more frequent (sensitive), while a higher value filters out noise (less sensitive).
• ATR Period (c): The timeframe used to calculate the Average True Range (volatility). Default is 10.
• Heikin Ashi (h): A boolean switch (True/False) that allows calculations to be based on Heikin Ashi candles (smoother price action) instead of standard candlesticks.
2. Core Mechanism (ATR Trailing Stop):
• The script calculates an ATR Trailing Stop (xATRTrailingStop).
• Uptrend: If the price is rising, the stop line moves up but never moves down, acting as dynamic support.
• Downtrend: If the price is falling, the stop line moves down but never moves up, acting as dynamic resistance.
3. Signal Generation:
• Buy Signal: Generated when the price (specifically a 1-period EMA) crosses above the Trailing Stop line. This indicates a shift to an uptrend.
• Sell Signal: Generated when the price crosses below the Trailing Stop line. This indicates a shift to a downtrend.
4. Visuals & Alerts:
• Labels: It plots "Buy" (Green) and "Sell" (Red) labels on the chart at the point of the signal.
• Bar Colors: It colors the candlesticks Green during an uptrend and Red during a downtrend.
• Alerts: It creates alert conditions (UT Long and UT Short) that can be hooked into TradingView's alarm system for real-time notifications.
Summary
In short, this script is a Trend Reversal Indicator. It helps traders stay in a trade as long as the price remains on the correct side of the volatility-adjusted trailing stop, and it alerts them immediately when the trend direction changes.






















