DDDDD: ATR & ADR Table + Suggested Time-based Exit📈 DDDDD: ATR & ADR Table + Suggested Time-based Exit
This indicator provides a simple yet powerful table displaying key volatility metrics for any timeframe you apply it to. It is designed for traders who want to assess the volatility of an asset, estimate the average time required for a potential move, and define a time-based exit strategy.
🔍 Features:
Displays ATR (Average True Range) for the selected length
Shows Average Range (High-Low) and Maximum Range over a configurable number of bars
Calculates Avg Bars/Move → average number of bars needed to achieve the maximum range
Calculates Recommended Exit Bars → suggested maximum holding period (in bars) before considering an exit if price hasn’t moved as expected
All values dynamically adjust based on the chart’s current timeframe
Outputs values directly in a table overlay on your main chart for quick reference
📝 How to interpret the table:
Field Meaning
ATR (14) Average True Range over the last 14 bars (volatility indicator)
Avg Range (20) Average High-Low range over the last 20 bars
Max Range Maximum High-Low range observed in the last 20 bars
Avg Bars/Move Average number of bars it takes to achieve a Max Range move
Rec. Exit Bars Suggested max holding period (bars) → consider exit if move hasn’t occurred
✅ How to use:
Apply this indicator to any chart (works on minutes, hourly, daily, weekly…)
It will automatically calculate based on the chart’s current timeframe
Use ATR & Avg Range to gauge volatility
Use Avg Bars/Move to estimate how long the market usually takes to achieve a big move
Use Rec. Exit Bars as a soft stop — if price hasn’t moved by this time, consider exiting due to declining probability of a breakout
⚠️ Notes:
All values are relative to your current chart timeframe. For example:
→ On a daily chart, ATR represents daily volatility
→ On a 1H chart, ATR represents hourly volatility
“Bars” refers to the bars of the current timeframe. Always interpret time accordingly.
Perfect for traders who want to:
Time their trades based on average volatility
Avoid overholding losing positions
Set time-based exit rules to complement price-based stoplosses
Ketidakstabilan
Market Warning Dashboard Enhanced📊 Market Warning Dashboard Enhanced
A powerful macro risk dashboard that tracks and visualizes early signs of market instability across multiple key indicators—presented in a clean, professional layout with a real-time thermometer-style danger gauge.
🔍 Included Macro Signals:
Yield Curve Inversion: 10Y-2Y and 10Y-3M spreads
Credit Spreads: High-yield (HYG) vs Investment Grade (LQD)
Volatility Structure: VIX/VXV ratio
Breadth Estimate: SPY vs 50-day MA (as a proxy)
🔥 Features:
Real-time Danger Score: 0 (Safe) to 100 (Extreme Risk)
Descriptive warnings for each signal
Color-coded thermometer gauge
Alert conditions for each macro risk
Background shifts on rising systemic risk
⚠️ This dashboard can save your portfolio by alerting you to macro trouble before it hits the headlines—ideal for swing traders, long-term investors, and anyone who doesn’t want to get blindsided by systemic risk.
BTC vs ALT Lag Detector [MEXC Overlay]This indicator monitors the price movement of Bitcoin (BTC) and compares it in real time to a customizable list of major altcoins on the MEXC exchange.
It helps you identify lagging altcoins — tokens that are underperforming or overperforming BTC’s price action over a selected timeframe. These temporary deviations can offer profitable entry or rotation opportunities, especially for scalpers, day traders, and arbitrage-style strategies.
Key Features:
- Real-time deviation detection between BTC and altcoins
- Customizable comparison timeframe: 1m, 6m, 12m, 30m, 1h, 4h, or 1d
- Deviation threshold alert: Highlights coins that lag BTC by more than 0.5%, 1%, 2%, or 3%
- Compact stats table embedded in the price chart
- Fully adjustable layout: Table position (Top/Bottom/Center + Left/Right), Font size (Tiny, Small, Medium)
- Built-in alert system when deviation exceeds your chosen threshold
How to Use It:
Set your desired timeframe for comparison (e.g., 1 hour).
Select a deviation threshold (e.g., 1.0%).
The table will show:
Each altcoin’s % change
BTC’s % change
The delta (deviation) vs BTC
Red highlights indicate alts whose deviation exceeded the threshold.
When at least one alt lags beyond your threshold, the indicator can trigger an alert — helping you capitalize on potential catch-up trades.
Please provide any feedback on it.
Pivot Candle PatternsPivot Candle Patterns Indicator
Overview
The PivotCandlePatterns indicator is a sophisticated trading tool that identifies high-probability candlestick patterns at market pivot points. By combining Williams fractals pivot detection with advanced candlestick pattern recognition, this indicator targets the specific patterns that statistically show the highest likelihood of signaling reversals at market tops and bottoms.
Scientific Foundation
The indicator is built on extensive statistical analysis of historical price data using a 42-period Williams fractal lookback period. Our research analyzed which candlestick patterns most frequently appear at genuine market reversal points, quantifying their occurrence rates and subsequent success in predicting reversals.
Key Research Findings:
At Market Tops (Pivot Highs):
- Three White Soldiers: 28.3% occurrence rate
- Spinning Tops: 13.9% occurrence rate
- Inverted Hammers: 11.7% occurrence rate
At Market Bottoms (Pivot Lows):
- Three Black Crows: 28.4% occurrence rate
- Hammers: 13.3% occurrence rate
- Spinning Tops: 13.1% occurrence rate
How It Works
1. Pivot Point Detection
The indicator uses a non-repainting implementation of Williams fractals to identify potential market turning points:
- A pivot high is confirmed when the middle candle's high is higher than surrounding candles within the lookback period
- A pivot low is confirmed when the middle candle's low is lower than surrounding candles within the lookback period
- The default lookback period is 2 candles (user adjustable from 1-10)
2. Candlestick Pattern Recognition
At identified pivot points, the indicator analyzes candle properties using these parameters:
- Body percentage threshold for Spinning Tops: 40% (adjustable from 10-60%)
- Shadow percentage threshold for Hammer patterns: 60% (adjustable from 40-80%)
- Maximum upper shadow for Hammer: 10% (adjustable from 5-20%)
- Maximum lower shadow for Inverted Hammer: 10% (adjustable from 5-20%)
3. Pattern Definitions
The indicator recognizes these specific patterns:
Single-Candle Patterns:
- Spinning Top : Small body (< 40% of total range) with significant upper and lower shadows (> 25% each)
- Hammer : Small body (< 40%), very long lower shadow (> 60%), minimal upper shadow (< 10%), closing price above opening price
- Inverted Hammer : Small body (< 40%), very long upper shadow (> 60%), minimal lower shadow (< 10%)
Multi-Candle Patterns:
- Three White Soldiers : Three consecutive bullish candles, each closing higher than the previous, with each open within the previous candle's body
- Three Black Crows : Three consecutive bearish candles, each closing lower than the previous, with each open within the previous candle's body
4. Visual Representation
The indicator provides multiple visualization options:
- Highlighted candle backgrounds for pattern identification
- Text or dot labels showing pattern names and success rates
- Customizable colors for different pattern types
- Real-time alert functionality on pattern detection
- Information dashboard displaying pattern statistics
Why It Works
1. Statistical Edge
Unlike traditional candlestick pattern indicators that simply identify patterns regardless of context, PivotCandlePatterns focuses exclusively on patterns occurring at statistical pivot points, dramatically increasing signal quality.
2. Non-Repainting Design
The pivot detection algorithm only uses confirmed data, ensuring the indicator doesn't repaint or provide false signals that disappear on subsequent candles.
3. Complementary Pattern Selection
The selected patterns have both:
- Statistical significance (high frequency at pivots)
- Logical market psychology (reflecting institutional supply/demand changes)
For example, Three White Soldiers at a pivot high suggests excessive bullish sentiment reaching exhaustion, while Hammers at pivot lows indicate rejection of lower prices and potential buying pressure.
Practical Applications
1. Reversal Trading
The primary use is identifying potential market reversals with statistical probability metrics. Higher percentage patterns (like Three White Soldiers at 28.3%) warrant more attention than lower probability patterns.
2. Confirmation Tool
The indicator works well when combined with other technical analysis methods:
- Support/resistance levels
- Trend line breaks
- Divergences on oscillators
- Volume analysis
3. Risk Management
The built-in success rate metrics help traders properly size positions based on historical pattern reliability. The displayed percentages reflect the probability of the pattern successfully predicting a reversal.
Optimized Settings
Based on extensive testing, the default parameters (Body: 40%, Shadow: 60%, Shadow Maximums: 10%, Lookback: 2) provide the optimal balance between:
- Signal frequency
- False positive reduction
- Early entry opportunities
- Pattern clarity
Users can adjust these parameters based on their timeframe and trading style, but the defaults represent the statistically optimal configuration.
Complementary Research: Reclaim Analysis
Additional research on "reclaim" scenarios (where price briefly breaks a level before returning) showed:
- Fast reclaims (1-2 candles) have 70-90% success rates
- Reclaims with increasing volume have 53.1% success rate vs. decreasing volume at 22.6%
This complementary research reinforces the importance of candle patterns and timing at critical market levels.
Parameter Free RSI [InvestorUnknown]The Parameter Free RSI (PF-RSI) is an innovative adaptation of the traditional Relative Strength Index (RSI), a widely used momentum oscillator that measures the speed and change of price movements. Unlike the standard RSI, which relies on a fixed lookback period (typically 14), the PF-RSI dynamically adjusts its calculation length based on real-time market conditions. By incorporating volatility and the RSI's deviation from its midpoint (50), this indicator aims to provide a more responsive and adaptable tool for identifying overbought/oversold conditions, trend shifts, and momentum changes. This adaptability makes it particularly valuable for traders navigating diverse market environments, from trending to ranging conditions.
PF-RSI offers a suite of customizable features, including dynamic length variants, smoothing options, visualization tools, and alert conditions.
Key Features
1. Dynamic RSI Length Calculation
The cornerstone of the PF-RSI is its ability to adjust the RSI calculation period dynamically, eliminating the need for a static parameter. The length is computed using two primary factors:
Volatility: Measured via the standard deviation of past RSI values.
Distance from Midpoint: The absolute deviation of the RSI from 50, reflecting the strength of bullish or bearish momentum.
The indicator offers three variants for calculating this dynamic length, allowing users to tailor its responsiveness:
Variant I (Aggressive): Increases the length dramatically based on volatility and a nonlinear scaling of the distance from 50. Ideal for traders seeking highly sensitive signals in fast-moving markets.
Variant II (Moderate): Combines volatility with a scaled distance from 50, using a less aggressive adjustment. Strikes a balance between responsiveness and stability, suitable for most trading scenarios.
Variant III (Conservative): Applies a linear combination of volatility and raw distance from 50. Offers a stable, less reactive length adjustment for traders prioritizing consistency.
// Function that returns a dynamic RSI length based on past RSI values
// The idea is to make the RSI length adaptive using volatility (stdev) and distance from the RSI midpoint (50)
// Different "variant" options control how aggressively the length changes
parameter_free_length(free_rsi, variant) =>
len = switch variant
// Variant I: Most aggressive adaptation
// Uses standard deviation scaled by a nonlinear factor of distance from 50
// Also adds another distance-based term to increase length more dramatically
"I" => math.ceil(
ta.stdev(free_rsi, math.ceil(free_rsi)) *
math.pow(1 + (math.ceil(math.abs(50 - (free_rsi - 50))) / 100), 2)
) +
(
math.ceil(math.abs(free_rsi - 50)) *
(1 + (math.ceil(math.abs(50 - (free_rsi - 50))) / 100))
)
// Variant II: Moderate adaptation
// Adds the standard deviation and a distance-based scaling term (less nonlinear)
"II" => math.ceil(
ta.stdev(free_rsi, math.ceil(free_rsi)) +
(
math.ceil(math.abs(free_rsi - 50)) *
(1 + (math.ceil(math.abs(50 - (free_rsi - 50))) / 100))
)
)
// Variant III: Least aggressive adaptation
// Simply adds standard deviation and raw distance from 50 (linear scaling)
"III" => math.ceil(
ta.stdev(free_rsi, math.ceil(free_rsi)) +
math.ceil(math.abs(free_rsi - 50))
)
2. Smoothing Options
To refine the dynamic RSI and reduce noise, the PF-RSI provides smoothing capabilities:
Smoothing Toggle: Enable or disable smoothing of the dynamic length used for RSI.
Smoothing MA Type for RSI MA: Choose between SMA and EMA
Smoothing Length Options for RSI MA:
Full: Uses the entire calculated dynamic length.
Half: Applies half of the dynamic length for smoother output.
SQRT: Uses the square root of the dynamic length, offering a compromise between responsiveness and smoothness.
The smoothed RSI is complemented by a separate moving average (MA) of the RSI itself, further enhancing signal clarity.
3. Visualization Tools
The PF-RSI includes visualization options to help traders interpret market conditions at a glance.
Plots:
Dynamic RSI: Displayed as a white line, showing the adaptive RSI value.
RSI Moving Average: Plotted in yellow, providing a smoothed reference for trend and momentum analysis.
Dynamic Length: A secondary plot (in faint white) showing how the calculation period evolves over time.
Histogram: Represents the RSI’s position relative to 50, with color gradients.
Fill Area: The space between the RSI and its MA is filled with a gradient (green for RSI > MA, red for RSI < MA), highlighting momentum shifts.
Customizable bar colors on the price chart reflect trend and momentum:
Trend (Raw RSI): Green (RSI > 50), Red (RSI < 50).
Trend (RSI MA): Green (MA > 50), Red (MA < 50).
Trend (Raw RSI) + Momentum: Adds momentum shading (lighter green/red when RSI and MA diverge).
Trend (RSI MA) + Momentum: Similar, but based on the MA’s trend.
Momentum: Green (RSI > MA), Red (RSI < MA).
Off: Disables bar coloring.
Intrabar Updating: Optional real-time updates within each bar for enhanced responsiveness.
4. Alerts
The PF-RSI supports customizable alerts to keep traders informed of key events.
Trend Alerts:
Raw RSI: Triggers when the RSI crosses above (uptrend) or below (downtrend) 50.
RSI MA: Triggers when the moving average crosses 50.
Off: Disables trend alerts.
Momentum Alerts:
Triggers when the RSI crosses its moving average, indicating rising (RSI > MA) or declining (RSI < MA) momentum.
Alerts are fired once per bar close, with descriptive messages including the ticker symbol (e.g., " Uptrend on: AAPL").
How It Works
The PF-RSI operates in a multi-step process:
Initialization
On the first run, it calculates a standard RSI with a 14-period length to seed the dynamic calculation.
Dynamic Length Computation
Once seeded, the indicator switches to a dynamic length based on the selected variant, factoring in volatility and distance from 50.
If smoothing is enabled, the length is further refined using an SMA.
RSI Calculation
The adaptive RSI is computed using the dynamic length, ensuring it reflects current market conditions.
Moving Average
A separate MA (SMA or EMA) is applied to the RSI, with a length derived from the dynamic length (Full, Half, or SQRT).
Visualization and Alerts
The results are plotted, and alerts are triggered based on user settings.
This adaptive approach minimizes lag in fast markets and reduces false signals in choppy conditions, offering a significant edge over fixed-period RSI implementations.
Why Use PF-RSI?
The Parameter Free RSI stands out by eliminating the guesswork of selecting an RSI period. Its dynamic length adjusts to market volatility and momentum, providing timely signals without manual tweaking.
DMI Percentile MTF📈 DMI Percentile MTF – Custom Technical Indicator
This indicator is an enhanced version of the classic Directional Movement Index (DMI), converting +DI, -DI, and ADX values into dynamic percentiles ranging from 0% to 100%, making it easier to interpret the strength and direction of a trend.
⚙️ Key Features:
Percentile Normalization: Calculates where current values stand within a historical range (default: 100 bars), providing clearer overbought/oversold context.
+DI (green): Indicates bullish directional strength.
-DI (orange): Indicates bearish directional strength.
ADX (fuchsia): Measures overall trend strength (rising = strong trend, falling = flat market).
20% / 80% reference lines: Help identify weak or strong conditions.
Multi-Timeframe (MTF) Support: Analyze a higher timeframe trend (e.g., daily) while viewing a lower timeframe chart (e.g., 1h).
📊 How to Read It:
+DI > -DI → bullish trend dominance.
-DI > +DI → bearish trend dominance.
ADX rising → strengthening trend (regardless of direction).
ADX falling → sideways or consolidating market.
Values above 80% → historically high / strong conditions.
Values below 20% → historically low / weak conditions or potential breakout setup.
RizwanA clean visual tool for intraday traders, optimized for 5-minute charts. It identifies potential reversal zones using liquidity and institutional inducement patterns:
Green Box = Long Signal (Price shows strength)
Appears when price confirms accumulation.....
Interpretation: Institutional buying zone – likely stop-loss liquidity pool for shorts.
Red Box = Short Signal (Price shows weakness)
Triggers on distribution confirmation:
Interpretation: Smart money unloading – traps bullish retail traders.
The system filters noise using advanced market structure principles, focusing on high-probability zones where big players often act. Simply trade in the direction of the colored boxes when they appear.
Always combine with proper risk management.....
[Pandora's Chambers] Liquidity Zones F[attr_rep] V1The Liquidity Zones F V1 indicator merges visual liquidity‐zone analysis with a mathematical model that quantifies opposing market forces. It scans a historical lookback window to compute average volume (avgVol), aggregates cumulative buy/sell volumes, detects significant wicks, and renders main and dotted lines plus background fills to show pressure at each price level. After constructing these graphic elements, it scores each signal (up to 130 points) and converts it into a percentage (0–100%) mapped onto a five‑domain polar scale:
0–50: Negative dominance
50–60: Initial equilibrium
60–75: Positive momentum build‑up
75–80: Decay of positive effect
80–100: Positive overextension with reversal potential
1. How It Works
Lookback & avgVol:
– Computes a simple moving average of volume over lookback bars.
cumBuy / cumSell:
– Adds volume to cumBuy when bar close > open; to cumSell when close < open.
Wick Detection:
– Flags bars whose wick length exceeds body length; records creation price, wickFactor, and volume.
Line Creation:
– For each strong wick, draws a solid “main” line and a dotted “secondary” line, with placeholder labels.
Scoring & Chance%:
– On each new bar, computes volume delta since creation, applies weighted scoring (wickFactor, volume ratio, proximity, leverage, imbalance) up to 130 points.
– Converts score to chancePerc (0–100%).
Style & Label Updates:
– ≥76%: dashed line; 50–76%: solid or dotted by classification; <50%: dotted “F_attr.”
– Labels show “F_rep …” or “F_attr X%.”
Magnet Lines:
– Identifies lowest bullish‐main price and highest bearish‐main price, computes midPrice and relative fraction, then calculates targetPrice A/B.
– Draws dotted magnet lines and labels “liquidity force (+)/(–)” beside price chart.
Background Fill:
– Fills area between midPrice and bullishTarget in bullish color; between midPrice and bearishTarget in bearish color.
2. Settings & Inputs
Parameter Default Description
lookback 200 Number of bars to calculate average and cumulative volumes.
offsetDot 0.0002 Vertical spacing between dotted lines.
ratioLineLength 8 Length (in bars) of the magnet line.
ratioLineOffset 8 Horizontal offset (bars) for magnet placement.
ratioLineWidth 1 Width of magnet lines (1–10).
bullish_line_color #00BCD4 Color for bullish main and dotted lines.
bearish_line_color #BA68C8 Color for bearish main and dotted lines.
Advanced Tweaks:
Adjust the number of dotted “grade” lines per wick or modify the scoring thresholds for custom classification.
3. Interpretation & Polar Scale
The x value (chancePerc) is interpreted across five polar domains for concise force balance reading:
0 ≤ x < 50: Selling dominance – consider exit or avoidance.
50 ≤ x < 60: Early balance – await confirmation.
60 ≤ x < 75: Rising buy pressure.
75 ≤ x < 80: Slowing bullish momentum.
80 ≤ x ≤ 100: Overextended bullish – watch for potential reversal.
[Pandora's Chambers] Liquidity Grab Magnet Tool VDV_V6Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6
The “Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6” indicator is built as a mathematical function library in Pine Script® that identifies “magnet” points (local maxima) of price action density, based on a combination of frequency analysis (wick density) and Fibonacci values. The algorithm considers the distribution of wick touches within a lookback range, builds volume profiles at different price levels, and then marks the strongest dynamic support and resistance levels. This structure has been empirically proven to be particularly effective for rapid scalping, as these “magnet points” are characterized by strong market forces influencing sharp price movements.
Background and Methodology
Price Range Division into Bins: The range between the minimum and maximum price over the last N candles is divided into k equal bins.
Wick Touch Counting: For each bin, the number of times the bin center falls within the wick body of a candle is calculated.
Bullish and Bearish Candles:
For bullish candles (close > open), touches between the low and the open are counted.
For bearish candles (close < open), touches between the open and the high are counted.
Density Function: For each bin j, a density function ρ(j) = number of touches in j is obtained.
Strongest Levels: The strongest support level below the current price is arg max_{binCenter < close} ρ(j), and the resistance – above the price.
Integrated Volume Profile: For each bin, the trading volume of the candles where the bin center is included in the wick body is accumulated, adding a volume dimension to the selection of magnet points.
The Secret Algorithm
The algorithm utilizes several key constructs:
Dynamic Trailing with Sensitivity Threshold (trailTolerance): To avoid market noise, the line is redrawn only when the new point differs by Δ ≥ trailTolerance from the previous level.
Fibonacci Value Integration: After identifying support (sell-side) and resistance (buy-side) levels, Fibonacci lines are calculated at n ratios (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0), with the option to extend them to additional "snap" values (1.618, 2.618). Each line also displays the corresponding trading volume in its paired bin, providing an indication of market depth at the Fibonacci point.
Visualization and Functionality:
Clear and Dynamic Colored Lines: Support is colored purple, resistance is colored cyan.
Transparent Labels: Displaying the actual volume value for each level.
“Magnet Point” Markers (red dots): Appearing upon the breakout of a line – enabling the identification of rapid scalping opportunities. Crossing of a line indicates the price "drinking liquidity." A red dot appears when the price reaches equilibrium.
Continued Liquidity: If the line moves away from the price, liquidity is expected to continue.
Key Parameters
Parameter Description
Lookback Bars Number of candles for historical analysis; size of the discrete dimension for density distribution.
Bin Count Number of bins for dividing the price range; determines the analysis resolution.
Tolerance Minimum threshold for a level change before a new line is created (to reduce noise).
Fibonacci Offsets Number of candles to the right to display Fibonacci lines with volume labels.
Show Liquidity Snap Toggle to display extended "snap" values outside the main range.
Line Width & Color Adjustable thickness, style, and color of support and resistance lines.
Label Size/Offset Adjustment of label text size and position – to prevent overlaps on the chart.
Export to Sheets
How to Use for Scalping
Identify the Magnet Point: Follow the red dot (•) the moment the price crosses a liquidity level downwards/upwards.
Parameter Adjustment: To increase sensitivity for scalping – reduce the Lookback or increase the Bin Count.
Market Depth Confirmation: Use the volume labels alongside the Fibonacci lines to confirm that the point is indeed accompanied by significant volume movement.
Mathematical Conclusion
The indicator combines statistical principles of density and historical memory with Fibonacci geometry, in a configuration that allows for the identification of reliable “magnet points.” For quantitative traders, this is a formal tool for drawing conclusions about market forces in the language of density functions and volume profiles, providing an ideal environment for rapid and precise scalps.
צור מחדש אבל תחליף את המילים סופורט וריסיסטנס לליקווידיטי
בטח, הנה הגרסה המחודשת של התיאור עם החלפת המילים "סופורט" ו"ריסיסטנס" ב"ליקווידיטי":
חדרי פנדורה – כלי מגנט ללכידת נזילות VDV_V6
האינדיקטור “חדרי פנדורה – כלי מגנט ללכידת נזילות VDV_V6” נבנה כספריית פונקציות מתמטית ב‑Pine Script® המזהה נקודות “מגנט” (מקסימום מקומי) של צפיפות תנועת המחיר, על בסיס שילוב של ניתוח תדרים (צפיפות וויקים) וערכי פיבונאצ’י. האלגוריתם מתייחס להתפלגות נגיעות הוויקים בתוך טווח הסתכלות (lookback), בונה פרופילי נפח במחיריים שונים, ולאחר מכן מסמן את רמות הנזילות הדינמיות החזקות ביותר. המבנה הוכח אמפירית כיעיל במיוחד לסקאלפינג מהיר, שכן “נקודות המגנט” מתאפיינות בכוחות שוק חזקים המשפיעים על תנועה חדה של המחיר.
רקע ומתודולוגיה
חלוקת טווח המחיר לבינים (bins): הטווח בין המחיר המינימלי למקסימלי ב־N הנרות האחרונים מחולק ל־k תאים שווים.
בכל תא מחשבים את מספר הפעמים שבהן מרכז התא נכנס לתוך גוף הוויק (wick) של הנר.
נרות בולשים ודובשים:
בנרות בולשים (close > open) נספרים מגעים בין ה־low ל־open.
בנרות דובשים (close < open) נספרים מגעים בין ה־open ל־high.
פונקציית צפיפות (Density Function): עבור כל תא j מתקבלת פונקציית צפיפות ρ(j) = מספר המגעים ב־j.
הרמה החזקה ביותר מתחת למחיר הנוכחי היא arg max_{binCenter < close} ρ(j), ולהתנגדות – מעל המחיר.
פרופיל נפח משולב (Volume Profile): לכל תא מצטבר נפח המסחר של הנרות שבהם מרכז התא נכלל בגוף הוויק, מה שמוסיף ממד נפחי לבחירת נקודות המגנט.
האלגוריתם הסודי
האלגוריתם עושה שימוש בכמה קונסטרוקטים עיקריים:
טריילינג דינמי עם סף רגישות (trailTolerance): כדי למנוע רעשי שוק, הקו ניזון מחדש רק כאשר הנקודה החדשה שונה ב־Δ ≥ trailTolerance מהרמה הקודמת.
שילוב ערכי פיבונאצ’י: לאחר זיהוי רמות נזילות (sell-side) ורמות נזילות (buy-side), מחושבים קווי פיבונאצ’י ב־n יחסיות (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0), ואפשרות להרחבתם לערכי סנאפ נוספים (1.618, 2.618). כל קו מציג גם את נפח המסחר המתאים בתא התאום שלו, מה שנותן אינדיקציה לקריאות עומק השוק בנקודת פי
You stopped this response
Giv'atayim, Israel
צור מחדש אבל תחליף את המילים סופורט וריסיסטנס לליקווידיטי
באנגלית
Okay, here's the revised English description with "support" and "resistance" replaced by "liquidity":
Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6
The “Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6” indicator is built as a mathematical function library in Pine Script® that identifies “magnet” points (local maxima) of price action density, based on a combination of frequency analysis (wick density) and Fibonacci values. The algorithm considers the distribution of wick touches within a lookback range, builds volume profiles at different price levels, and then marks the strongest dynamic liquidity levels. This structure has been empirically proven to be particularly effective for rapid scalping, as these “magnet points” are characterized by strong market forces influencing sharp price movements.
Background and Methodology
Price Range Division into Bins: The range between the minimum and maximum price over the last N candles is divided into k equal bins.
Wick Touch Counting: For each bin, the number of times the bin center falls within the wick body of a candle is calculated.
Bullish and Bearish Candles:
For bullish candles (close > open), touches between the low and the open are counted.
For bearish candles (close < open), touches between the open and the high are counted.
Density Function: For each bin j, a density function ρ(j) = number of touches in j is obtained.
Strongest Levels: The strongest sell-side liquidity level below the current price is arg max_{binCenter < close} ρ(j), and the buy-side liquidity – above the price.
Integrated Volume Profile: For each bin, the trading volume of the candles where the bin center is included in the wick body is accumulated, adding a volume dimension to the selection of magnet points.
The Secret Algorithm
The algorithm utilizes several key constructs:
Dynamic Trailing with Sensitivity Threshold (trailTolerance): To avoid market noise, the line is redrawn only when the new point differs by Δ ≥ trailTolerance from the previous level.
Fibonacci Value Integration: After identifying sell-side liquidity and buy-side liquidity levels, Fibonacci lines are calculated at n ratios (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0), with the option to extend them to additional "snap" values (1.618, 2.618). Each line also displays the corresponding trading volume in its paired bin, providing an indication of market depth at the Fibonacci point.
Visualization and Functionality:
Clear and Dynamic Colored Lines: Sell-side liquidity is colored purple, buy-side liquidity is colored cyan. Crossing of a line indicates the price "drinking liquidity."
Transparent Labels: Displaying the actual volume value for each level.
“Magnet Point” Markers (red dots): Appearing upon the breakout of a line – enabling the identification of rapid scalping opportunities. A red dot appears when the price reaches equilibrium. If the line moves away from the price, liquidity is expected to continue.
Key Parameters
Parameter Description
Lookback Bars Number of candles for historical analysis; size of the discrete dimension for density distribution.
Bin Count Number of bins for dividing the price range; determines the analysis resolution.
Tolerance Minimum threshold for a level change before a new line is created (to reduce noise).
Fibonacci Offsets Number of candles to the right to display Fibonacci lines with volume labels.
Show Liquidity Snap Toggle to display extended "snap" values outside the main range.
Line Width & Color Adjustable thickness, style, and color of liquidity lines.
Label Size/Offset Adjustment of label text size and position – to prevent overlaps on the chart.
Export to Sheets
How to Use for Scalping
Identify the Magnet Point: Follow the red dot (•) the moment the price crosses a liquidity level downwards/upwards.
Parameter Adjustment: To increase sensitivity for scalping – reduce the Lookback or increase the Bin Count.
Market Depth Confirmation: Use the volume labels alongside the Fibonacci lines to confirm that the point is indeed accompanied by significant volume movement.
Mathematical Conclusion
The indicator combines statistical principles of density and historical memory with Fibonacci geometry, in a configuration that allows for the identification of reliable “magnet points.” For quantitative traders, this is a formal tool for drawing conclusions about market forces in the language of density functions and volume profiles, providing an ideal environment for rapid and precise scalps.
[Pandora's Chambers] Apex-Flux NavigatorThe " Apex Flux Navigator FC" indicator, whose name alludes to the unveiling of hidden market forces, offers a rich visual representation of market pressure by combining volume-based pivot analysis with RSI, including a dynamic Fibonacci grid, balanced pressure lines, and highlighted boxes for quick readability. The term "Chambers" in its name refers to the way the indicator frames the balance of power between buyers and sellers within the space defined by two consecutive pivot lines, essentially creating visual chambers that encapsulate this ongoing struggle. The grid is built according to the 25%, 38.2%, 50%, 61.8%, and 75% levels, marking key support and resistance points. Crucially, this indicator allows you to spot pinpoint momentum divergences against volume, offering insights into potential trend reversals or continuations. The indicator also calculates cumulative buy/sell percentages since the formation of each pivot, displays an average Buy/Sell ratio for each point, uses a smart algorithm that analyzes the length of movement against speed, and draws backgrounds that outline liquidity zones based on Fibonacci ratios of volume and overbought/oversold areas (boxes) to clearly and legibly highlight buyer/seller pressure zones. Furthermore, the rapid identification of pressure zones and momentum shifts can assist in recognizing opportunities for quick scalping trades. Additionally, the width and spacing of the pressure lines visually represent the current market volatility and the difference in liquidity between buyers and sellers.
General Description
The indicator enables automatic identification of pivot points (highs and lows) based on buy/sell activity and TradingView RSI.
It draws vertical lines connecting the full pivot high to the full pivot low, creating a standard Fibonacci grid, and adds balanced pressure lines on the price sides with F--/F+/(F++) annotations corresponding to the degree of TradingView pressure.
How it Works
Pivot Identification – Uses ta.pivothigh and ta.pivotlow with the Pivot Sensitivity parameter to determine highs and lows.
Volume and RSI Collection – The f_addPivot function stores buy/sell volume according to the day's fluctuations and initial RSI; in each bar, the cumulative volume and RSI are updated to calculate a dynamic average.
Creation of Lines and Pressure Points – Calculates pressure percentages based on volume and displays them through dotted/solid lines and labels, including dynamic colors and backgrounds (boxes) for visual illustration using the TradingView “Pressure Lines” technique.
How to Interpret the Output
Dotted lines indicate Liquidity zones where the dominant side's volume is particularly strong and may mark areas that the price is drawn to in order to achieve equilibrium.
Labels with text (“B: xx% | RSI yy%”) display the buy/sell percentage and the average RSI since the pivot's creation together.
F--/F+/F++ annotations reflect a pressure quality scale using the f_getAnnotation function based on pressure percentages.
How to Use
Select “Add to chart” to attach the indicator to the chart.
Through the indicator's settings, you can change Pivot Sensitivity, Fibonacci Grid Length, RSI Period, and more.
Inputs and Settings
Pivot Sensitivity (default: 3)
Extend Pressure Lines (default: off)
RSI Period (default: 14)
Fibonacci Grid Length, Color, Offset
Colors and line styles for the reporting mode
Tips and Recommendations
Use a timeframe that reflects appropriate volatility (e.g., H4/D) to reduce noise; the shorter the timeframe, the more fluid the information the indicator presents.
To improve identification accuracy, combine with moving averages or additional Fibonacci tools.
Avoid automated trading based on the indicator alone – always require confirmation from an additional indicator.
Trade Smart – Let the Apex Flux Navigator FC guide you to significant market pressure levels!
RSI Run‑Length by ATTARSI Run‑Length by ATTA – The Next Generation of RSI
The RSI Run‑Length by ATTA indicator was developed to quantify not only the magnitude of price movements but also the continuity with which they occur. Instead of relying on point‑by‑point averages of gains and losses, it counts each sequence of consecutive gains (up‑run) and each sequence of consecutive losses (down‑run), applies Wilder’s RMA smoothing to these counts, and then computes the classic RSI formula on their ratio.
This approach significantly reduces market noise by giving greater weight to sustained trends, while simultaneously reducing the lag inherent in traditional methods. Rather than waiting for signals triggered by isolated fluctuations, RSI Run‑Length by ATTA detects turning points at the earliest stages of movement streaks and maintains precise, timely responsiveness.
Core Principles:
Run‑Length Counting: Measures trend depth without distortion from isolated spikes.
Wilder’s RMA on Counts: Provides statistical smoothing to suppress excessive volatility.
Classic RSI Formula: Applies the familiar RSI calculation to the smoothed run‑length ratio.
This mechanism enables early identification of momentum shifts and the construction of strategies based on stable sequences rather than sporadic gains. The simplicity of a single parameter (run‑length period – default 14) and the logical sequence of counting, smoothing, and ratio calculation make the tool both transparent and intuitive for technical traders and quantitative analysts alike.
Usage Instructions:
Select the run‑length period (commonly 14 bars).
Set overbought/oversold thresholds (recommended 70/30).
Overlay with complementary indicators (classic RSI, MACD, etc.) for confirmation.
I invite traders and analysts to incorporate RSI Run‑Length by ATTA into their indicator libraries to gain deeper, more actionable insights into price momentum.
PoiBox# PoiBox: Advanced Market Structure and POI Visualization Tool
PoiBox is a comprehensive market structure analysis tool designed to identify high-probability trading zones through advanced internal market structure (IDM) detection and points of interest (POI) calculation.
## How It Works
The indicator uses a multi-step approach to analyze price action:
1. **Market Structure Identification**: The script identifies significant highs and lows within your selected time range to determine the overall market structure direction (up or down).
2. **IDM Pattern Detection**: It then analyzes internal market structure patterns within this range, focusing on significant price movements that create trading opportunities.
3. **POI Calculation**: Using adaptive ATR measurements across multiple timeframes, the indicator calculates precise POI zones where price is likely to react. These zones are calibrated based on the volatility profile of each identified structure.
4. **Timeframe Correlation**: The script automatically determines which timeframe best matches each structure's size, providing valuable context for your trading decisions.
5. **Technical Implementation**: The indicator uses a sophisticated algorithm to analyze price swings, identify pivot points, and calculate market structure connections. It maintains a database of significant highs/lows and uses these to determine trend direction and potential reversal zones.
## Display Modes
PoiBox offers three powerful display options:
- **Main BOS**: Shows only the most significant breakout structure with its associated POI zone
- **Leg**: Displays the largest price leg within the selected range along with percentage-based POI zones
- **All IDMs**: Reveals all detected internal market structures and their POI zones
## Advanced Features
- **QM Mode**: Visualizes important market structure relationships with dashed lines connecting significant highs and lows
- **Trick Display**: Identifies nested market structures (tricks) within larger patterns, perfect for precision entries
- **Customizable POI Labels**: Control which price labels appear to maintain chart clarity
- **Extensive Color Settings**: Fully customizable colors for all visual elements
- **Safety Functions**: Includes built-in buffer management and error prevention algorithms to ensure stable performance across all timeframes and market conditions
## Trading Examples
**Downtrend Example:**
When PoiBox identifies a downtrend structure (Higher High → High → Low → Lower Low), it creates POI zones based on the market structure. As shown in the chart, these zones provide excellent entry opportunities when price returns to test previous structure. In this example, entering at the red POI zone with a stop above the zone and target at the QM level resulted in a 3.45 risk/reward trade.
**How to Read QM Lines:**
The dashed lines connecting High → Low → Higher High → Lower Low reveal the market's true structure. These connections help you anticipate where price might head next. When price breaks below a significant Low and creates a Lower Low, it confirms the downtrend continuation and provides a trading opportunity when price retests the broken structure.
**POI Zone Interpretation:**
- Red zones indicate bearish POI areas (ideal for short entries)
- Green zones indicate bullish POI areas (ideal for long entries)
- Yellow zones highlight the identified market structure
## Practical Application Example
In the GBP/USD example shown in the chart:
1. PoiBox identified a downtrend structure with Higher High → High → Low → Lower Low
2. The yellow box shows the main market structure area
3. The red POI zone appeared when price returned to test previous structure
4. Entry was taken at the POI zone with stop loss above structure
5. Target was placed at the QM level, resulting in a 3.45 risk/reward ratio trade
6. The dashed QM lines showed the overall market flow and direction
This demonstrates how PoiBox automatically identifies optimal entry and exit points based on market structure, without requiring manual analysis of each price swing.
## Mathematical Approach
PoiBox uses several mathematical concepts to determine market structure and calculate POI zones:
1. **Adaptive ATR Integration**: The script analyzes ATR (Average True Range) across multiple timeframes (M1, M5, M15, H1, H4, D1, W1, MN1) to determine the appropriate volatility context for each structure.
2. **Height-to-ATR Ratio**: The indicator calculates the ratio between structure height and the closest matching ATR value to determine the structure's timeframe context.
3. **Dynamic POI Calculation**: POI values are calculated using the formula:
`POI = factor * (atr_trigger + atr_double_trigger)`
where `factor` is derived from the structure's height-to-ATR ratio.
4. **Self-Adjusting Limits**: If the calculated POI value exceeds certain thresholds relative to structure height, the script automatically applies proportional adjustments to maintain optimal zone sizing.
## What Makes PoiBox Unique
While many indicators use common concepts like support/resistance or trend analysis, PoiBox stands apart through its:
1. **Adaptive POI Calculation**: Unlike static indicators, PoiBox automatically calibrates POI zones based on each market structure's volatility profile by analyzing ATR across multiple timeframes.
2. **Smart Timeframe Detection**: The indicator automatically determines the most relevant timeframe for each structure, eliminating guesswork and helping you align your trading with the appropriate market cycles.
3. **QM Visualization System**: Our proprietary QM visualization method reveals hidden market structure relationships that standard indicators cannot detect, giving you an edge in anticipating price movements.
4. **Nested Pattern Recognition**: The "Trick" detection feature identifies high-probability setups where smaller patterns form within larger ones, creating precise entry opportunities missed by conventional tools.
5. **Self-Adjusting Analysis**: PoiBox dynamically adapts to changing market conditions without requiring manual parameter adjustments, saving you time and increasing accuracy.
These innovations combine to create a truly original trading system that transforms complex market structure concepts into clear, actionable signals.
## How To Use
1. Define your analysis area using the time range selectors (X1 and X2)
2. Choose your preferred display mode based on your trading style
3. Enable QM Mode for additional market structure context if needed
4. Use the POI zones as potential entry and exit areas for your trades
5. Reference the automatically detected timeframe indicators to align your trading with the appropriate timeframe
### Settings Explanation
**Display Settings:**
- Display Mode: Choose between Main BOS, Leg, or All IDMs visualization
- QM Mode: Enable to see market structure connections with dashed lines
**Trick Settings:**
- Trick Display: Show the main trick or all nested patterns
- Trick POI: Control which POI zones appear for trick patterns
**Label Settings:**
- Leg POI %: Customize percentage-based POI zones in Leg mode
- POI Labels: Control which price labels appear on your chart
**Time Range:**
- X1 and X2: Define the analysis area for market structure detection
**Colors:**
- TF Color: Color for timeframe labels
- H/L Color: Color for high/low labels
- QM Lines: Color for market structure connection lines
- Trick Color: Color for nested pattern visualization
This indicator is designed for traders who understand market structure concepts and want a powerful tool that automatically identifies high-probability trading zones based on structural price patterns and volatility-adjusted measurements.
ConeCastConeCast is a forward-looking projection indicator that visualizes a future price range (or "cone") based on recent trend momentum and adaptive volatility. Unlike lagging bands or reactive channels, this tool plots a predictive zone 3–50 bars ahead, allowing traders to anticipate potential price behavior rather than merely react to it.
How It Works
The core of ConeCast is a dynamic trend-slope engine derived from a Linear Regression line fitted over a user-defined lookback window. The slope of this trend is projected forward, and the cone’s width adapts based on real-time market volatility. In calm markets, the cone is narrow and focused. In volatile regimes, it expands proportionally, using an ATR-based % of price to scale.
Key Features
📈 Predictive Cone Zone: Visualizes a forward range using trend slope × volatility width.
🔄 Auto-Adaptive Volatility Scaling: Expands or contracts based on market quiet/chaotic states.
📊 Regime Detection: Identifies Bull, Bear, or Neutral states using a tunable slope threshold.
🧭 Multi-Timeframe Compatible: Slope and volatility can be calculated from higher timeframes.
🔔 Smart Alerts: Detects price entering the cone, and signals trend regime changes in real time.
🖼️ Clean Visual Output: Optionally includes outer cones, trend-trail marker, and dashboard label.
How to Use It
Use on 15m–4H charts for best forward visibility.
Look for price entering the cone as a potential trend continuation setup.
Monitor regime changes and volatility expansion to filter choppy market zones.
Tune the slope sensitivity and ATR multiplier to match your symbol's behavior.
Use outer cones to anticipate aggressive swings and wick traps.
What Makes It Unique
ConeCast doesn’t follow price — it predicts a possible future price envelope using trend + volatility math, without relying on lagging indicators or repainting logic. It's a hybrid of regression-based forecasting and dynamic risk zoning, designed for swing traders, scalpers, and algo developers alike.
Limitations
ConeCast projects based on current trend and volatility — it does not "know" future price. Like all projection tools, accuracy depends on trend persistence and market conditions. Use this in combination with confirmation signals and risk management.
RSI-EMA-Crossing with Donchian-Stop-LossThe Donchian RSI Indicator is a visual tool that combines momentum and trend analysis to identify high-quality long opportunities based on RSI crossovers, price action, and Donchian channel dynamics.
How It Works
Momentum Signal: A bullish RSI crossover is detected when the RSI crosses above its moving average.
Trend Filter: A signal is only valid if the crossover occurs while the price is above its moving average – filtering out entries against the prevailing trend.
Signal Candle: The high of the crossover candle is stored.
Entry Trigger: A valid signal occurs when a later candle closes above that signal high.
Stop-Loss (Visual Only)
The lower band of the Donchian Channel acts as a visual reference for a dynamic stop-loss level.
Features
Customizable RSI, Donchian Channel, and moving average lengths
Selectable MA types: SMA, EMA, WMA, VWMA, HMA
Signal candle highlighted (yellow background)
Entry points labeled on the chart
Price MA and Donchian Channel plotted
Trend filter improves signal quality by confirming upward bias
Use Case
Designed for swing and position traders
Optimized for use on daily or 4H charts
QuantumTrend SwiftEdgeQuantumTrend SwiftEdge - A Trend-Following Indicator for TradingView
Overview:
QuantumTrend SwiftEdge is a visually engaging and customizable trend-following indicator that combines the power of Supertrend, Keltner Channels, and a 100-period EMA to generate precise buy and sell signals. Designed to help traders identify trends and breakouts, this indicator offers a unique blend of technical tools with a modern gradient color effect, making it both functional and visually appealing.
What It Does:
This indicator identifies trend directions and potential entry/exit points:
- Supertrend determines the overall trend direction, showing a green line below the price during uptrends and a red line above the price during downtrends. The line only appears when the price is close to it, indicating an active trend.
- Keltner Channels highlight volatility and breakouts, with the upper and lower bands dynamically adjusting to market conditions.
- A 100-period EMA provides a longer-term trend perspective, helping to filter out noise.
- Buy and sell signals are generated when specific conditions align across these indicators, ensuring robust trade setups.
How It Works:
The indicator uses three components to generate signals:
1. **Supertrend**: Calculates trend direction using the Average True Range (ATR) and a multiplier. It switches between uptrend (green) and downtrend (red) based on price movements relative to the Supertrend line.
2. **Keltner Channels**: Consists of an EMA (default 20 periods) with upper and lower bands based on ATR. A breakout above the upper band signals potential buying opportunities, while a breakout below the lower band signals potential selling opportunities.
3. **100-period EMA**: Acts as a trend filter, ensuring signals align with the broader market direction.
**Buy Signal**:
- Price is above the 100-period EMA (bullish market).
- Price breaks above the Keltner Channel upper band (indicating a breakout).
- Supertrend switches to an uptrend (trend changes from down to up).
**Sell Signal**:
- Price is below the 100-period EMA (bearish market).
- Price breaks below the Keltner Channel lower band (indicating a breakout).
- Supertrend switches to a downtrend (trend changes from up to down).
Visual Features:
- **Gradient Colors**: Supertrend lines and Keltner Channels use a smooth gradient color transition between green (uptrend) and red (downtrend), reflecting the trend's strength. The gradient is based on a smoothed trend value, creating a visually appealing effect.
- **Keltner Channel Fill**: The area between the upper and lower Keltner Channels is filled with a transparent gradient, enhancing the trend visualization.
- **Dynamic Supertrend Visibility**: Supertrend lines only appear when the price is close to the line (within an ATR-based threshold), indicating an active trend.
How to Use:
1. Add the "QuantumTrend SwiftEdge" indicator to your chart in TradingView.
2. Customize the settings:
- **Signal Sensitivity (1=Low, 5=High)**: Default is 3. Lower values (e.g., 1) make signals less frequent by using wider parameters, while higher values (e.g., 5) make signals more frequent by tightening parameters.
- **Use Manual Settings**: If enabled, you can manually adjust all parameters (ATR Period, ATR Multiplier, Keltner Channel Length, Keltner Channel Multiplier, Keltner ATR Length, EMA Length) to fine-tune the indicator.
- **Change ATR Calculation Method**: Toggle between standard ATR calculation and a simple moving average of true range.
- **Show Buy/Sell Signals**: Toggle to show or hide buy (green "Buy" label) and sell (red "Sell" label) signals.
- **Highlighter On/Off**: Toggle to show or hide the gradient fill between the price and Supertrend line when the line is visible.
3. Interpret the signals:
- A green "Buy" label below the price indicates a potential buying opportunity.
- A red "Sell" label above the price indicates a potential selling opportunity.
- Use the Keltner Channel gradient fill and Supertrend lines to confirm the trend direction and strength.
Why This Combination?
- **Supertrend** provides a robust trend-following mechanism, ensuring signals align with the market direction.
- **Keltner Channels** add a volatility component, identifying breakouts that often precede significant price movements.
- **100-period EMA** filters out noise, ensuring signals are generated in the context of the broader trend.
Together, these indicators create a balanced approach: Supertrend and EMA confirm the trend, while Keltner Channels pinpoint actionable entry and exit points. The gradient visuals and dynamic visibility make it easier to focus on active trends.
Originality:
QuantumTrend SwiftEdge stands out with its unique features:
- Gradient color transitions for a modern, dynamic look.
- A filled gradient between Keltner Channels, visually emphasizing the trend.
- Supertrend lines that only appear when the price is close, reducing clutter and focusing on active trends.
- Flexible settings with both sensitivity-based and manual adjustments for maximum customization.
Default Settings:
The default sensitivity is set to 3, providing a balanced approach for most markets and timeframes (e.g., 5-minute charts for crypto like BTC/USD). This setting uses moderate parameters (ATR Period=10, ATR Multiplier=3.0, Keltner Channel Length=20, Keltner Channel Multiplier=1.5, Keltner ATR Length=10, EMA Length=100). Users can adjust the sensitivity or switch to manual settings for more control.
Important Notes:
- This indicator is a tool to assist in identifying trends and potential entry/exit points. It does not guarantee profits and should be used in conjunction with other analysis and risk management practices.
- The signals are based on historical price data and do not predict future performance. Always test the indicator on a demo account before using it in live trading.
- The gradient effect is purely visual and does not affect the signal logic.
MA cross X MAdiff<>atrfilter)📈 MA cross X MAdiff<>ATR filter
Smarter Trend Confirmation Using Adaptive Volatility Thresholds
🔍 What It Does
This indicator upgrades classic moving average crossovers by adding volatility awareness via ATR filtering. Instead of reacting to every small crossover, it waits for the distance between two moving averages to exceed a volatility-adjusted threshold, making signals more meaningful and less noisy.
⚙️ Core Logic
Calculates the difference between a Fast MA and a Slow MA.
Uses Average True Range (ATR) as a dynamic volatility filter.
Confirms trend only when MA difference exceeds:
diff > ATR × multiplier → Bullish
diff < -ATR × multiplier → Bearish
Otherwise: Neutral (gray zone)
The gray zone avoids false signals by detecting indecision or choppy markets.
🧠 Customizable Inputs
Choose any MA type independently for Fast and Slow:
SMA, EMA, WMA, VWMA, RMA, DEMA, TEMA, LSMA, Kijun
Control sensitivity via:
ATR Length
ATR Multiplier
✅ Why It Works
Reduces fake outs in ranging markets.
Adapts to volatility automatically.
Fully customizable for any asset or style.
Ideal for trend traders, momentum entries, or as a confluence layer.
EMA/SMA Combo + ADR (v6)This script combines popular moving averages with a clean, info-rich ADR table – perfect for traders who trade breakouts.
✳️ Features:
• 🟦 EMA 10 / 20 / 50 / 100 / 200 → shown as dotted points
• 🔷 SMA 10 / 20 / 50 / 100 / 200 → shown as solid lines
• 🎛️ All lines can be individually toggled on/off
• 📊 ADR info table shows average range, today’s range & % of ADR
🎯 Ideal for:
• Intraday traders looking for clean MAs & volatility reference
• Swing traders seeking strong confluence zones
• Anyone who prefers a minimalistic, customizable overlay
🧠 Pro Tip: The ADR table is styled for light charts – black text, no background. You can customize the MA display exactly as you like.
Trade smart, stay sharp! 🚀
Half Supertrend [NLR]While the Supertrend is a popular tool, traders often face the challenge of false signals and uncertain entry points. The Half Supertrend indicator addresses these shortcomings by introducing a dynamic mid-level , offering a significantly improved way to identify true trend strength and potential high-probability entries.
Here's how the mid-level enhances your trend analysis:
Filter Out Noise: Instead of reacting to every Supertrend flip, the mid-level helps you identify the strength of the trend. Price moving strongly away from the mid-level confirms a higher conviction move.
Identify Optimal Pullback Entries: Waiting for price to pull back to the dynamic mid-level after a Supertrend direction change can provide better entry prices and potentially higher probability setups, capitalizing on established momentum. This approach helps avoid entering prematurely on weaker signals.
Gain Deeper Trend Insight: The position of the price relative to both the Supertrend line and the mid-level paints a clearer picture of the current trend's strength and potential for continuation or reversal.
Here's the technical edge you've been waiting for:
Enhanced Trend Confirmation: This indicator plots a mid-level derived from half the Average True Range (ATR) multiple, acting as a crucial intermediary for assessing trend strength.
Intra-Trend Strength Analysis:
Price above/below the mid-level: Indicates a strong trending move aligned with the Supertrend direction.
Price between the mid-level and the Supertrend line: Suggests a weaker trend and a higher probability of consolidation or reversal.
Early Reversal Detection: Price crossing the mid-level can serve as an early warning signal of a potential trend change.
Higher Timeframe Clarity: The user-configurable higher timeframe (HTF) input provides a robust, multi-timeframe trend bias.
Dynamic Entry Levels: Potential entry levels based on the mid-level are plotted for visual guidance.
Clear Visual Representation: Color-coded lines and filled areas simplify trend and strength assessment.
How it works under the hood:
This indicator utilizes the standard Supertrend calculation on the chosen higher timeframe, incorporating the Average True Range (ATR) to determine volatility-adjusted bands. The unique addition is the "half trend" line, calculated by adding or subtracting half of the ATR-based trailing stop value from the Supertrend line. This mid-level acts as a crucial intermediary zone for evaluating the conviction of the current trend.
// Calculate the mid-level line
half_line = supertrend + (atr * half_factor)
Key Input Parameters:
ATR Length: Determines the period for calculating the Average True Range (default: 10).
Factor: The multiplier applied to the ATR to determine the Supertrend band width (default: 3). The mid-level dynamically adjusts based on half of this factor.
Timeframe: Allows you to select a higher timeframe for the Supertrend calculation, providing a broader trend context.
Up Color/Down Color: Customize the colors for uptrend and downtrend indications.
C&B Auto MK5C&B Auto MK5.2ema BullBear
Overview
The C&B Auto MK5.2ema BullBear is a versatile Pine Script indicator designed to help traders identify bullish and bearish market conditions across various timeframes. It combines Exponential Moving Averages (EMAs), Relative Strength Index (RSI), Average True Range (ATR), and customizable time filters to generate actionable signals. The indicator overlays on the price chart, displaying EMAs, a dynamic cloud, scaled RSI levels, bull/bear signals, and market condition labels, making it suitable for swing trading, day trading, or scalping in trending or volatile markets.
What It Does
This indicator generates bull and bear signals based on the interaction of two EMAs, filtered by RSI thresholds, ATR-based volatility, a 50/200 EMA trend filter, and user-defined time windows. It adapts to market volatility by adjusting EMA lengths and RSI thresholds. A dynamic cloud highlights trend direction or neutral zones, with candlestick coloring in neutral conditions. Market condition labels (current and historical) provide real-time trend and volatility context, displayed above the chart.
How It Works
The indicator uses the following components:
EMAs: Two EMAs (short and long) are calculated on a user-selected timeframe (1, 5, 15, 30, or 60 minutes). Their crossover or crossunder triggers potential bull/bear signals. EMA lengths adjust based on volatility (e.g., 10/20 for volatile markets, 5/10 for non-volatile).
Dynamic Cloud: The area between the EMAs forms a cloud, colored green for bullish trends, red for bearish trends, or a user-defined color (default yellow) for neutral zones (when EMAs are close, determined by an ATR-based threshold). Users can widen the cloud for visibility.
RSI Filter: RSI is scaled to price levels and plotted on the chart (optional). Signals are filtered to ensure RSI is within volatility-adjusted bull/bear thresholds and not in overbought/oversold zones.
ATR Volatility Filter: An optional filter ensures signals occur during sufficient volatility (ATR(14) > SMA(ATR, 20)).
50/200 EMA Trend Filter: An optional filter restricts bull signals to bullish trends (50 EMA > 200 EMA) and bear signals to bearish trends (50 EMA < 200 EMA).
Time Filter: Signals are restricted to a user-defined UTC time window (default 9:00–15:00), aligning with active trading sessions.
Market Condition Labels: Labels above the chart display the current trend (Bullish, Bearish, Neutral) and optionally volatility (e.g., “Bullish Volatile”). Up to two historical labels persist for a user-defined number of bars (default 5) to show recent trend changes.
Visual Aids: Bull signals appear as green triangles/labels below the bar, bear signals as red triangles/labels above. Candlesticks in neutral zones are colored (default yellow).
The indicator ensures compatibility with standard chart types (e.g., candlestick or bar charts) to produce realistic signals, avoiding non-standard types like Heikin Ashi or Renko.
How to Use It
Add to Chart: Apply the indicator to a candlestick or bar chart on TradingView.
Configure Settings:
Timeframe: Choose a timeframe (1, 5, 15, 30, or 60 minutes) to match your trading style.
Filters:
Enable/disable the ATR volatility filter to focus on high-volatility periods.
Enable/disable the 50/200 EMA trend filter to align signals with the broader trend.
Enable the time filter and set custom UTC hours/minutes (default 9:00–15:00).
Cloud Settings: Adjust the cloud width, neutral zone threshold, color, and transparency.
EMA Colors: Use default trend-based colors or set custom colors for short/long EMAs.
RSI Display: Toggle the scaled RSI and its thresholds, with customizable colors.
Signal Settings: Toggle bull/bear labels and set signal colors.
Market Condition Labels: Toggle current/historical labels, include/exclude volatility, and adjust decay period.
Interpret Signals:
Bull Signal: A green triangle or “Bull” label below the bar indicates potential bullish momentum (EMA crossover, RSI above bull threshold, within time window, passing filters).
Bear Signal: A red triangle or “Bear” label above the bar indicates potential bearish momentum (EMA crossunder, RSI below bear threshold, within time window, passing filters).
Neutral Zone: Yellow candlesticks and cloud (if enabled) suggest a lack of clear trend; consider range-bound strategies or avoid trading.
Market Condition Labels: Check labels above the chart for real-time trend (Bullish, Bearish, Neutral) and volatility status to confirm market context.
Monitor Context: Use the cloud, RSI, and labels to assess trend strength and volatility before acting on signals.
Unique Features
Volatility-Adaptive EMAs: Automatically adjusts EMA lengths based on ATR to suit volatile or non-volatile markets, reducing manual configuration.
Neutral Zone Detection: Uses an ATR-based threshold to identify low-trend periods, helping traders avoid choppy markets.
Scaled RSI Visualization: Plots RSI and thresholds directly on the price chart, simplifying momentum analysis relative to price.
Flexible Time Filtering: Supports precise UTC-based trading windows, ideal for day traders targeting specific sessions.
Historical Market Labels: Displays recent trend changes (up to two) with a decay period, providing context for market shifts.
50/200 EMA Trend Filter: Aligns signals with the broader market trend, enhancing signal reliability.
Notes
Use on standard candlestick or bar charts to ensure accurate signals.
Test the indicator on a demo account to optimize settings for your market and timeframe.
Combine with other analysis (e.g., support/resistance, volume) for better decision-making.
The indicator is not a standalone system; use it as part of a broader trading strategy.
Limitations
Signals may lag in fast-moving markets due to EMA-based calculations.
Neutral zone detection may vary in extremely volatile or illiquid markets.
Time filters are UTC-based; ensure your platform’s timezone settings align.
This indicator is designed for traders seeking a customizable, trend-following tool that adapts to volatility and provides clear visual cues with robust filtering for bullish and bearish market conditions.
Trend Factor Simplified - Shared (Crypto)A Trend Following Indicator for crypto, stronger than your thought, entering lower region means you need to be careful of buying/long chance, entering upper region means you need to be careful of selling/short chance, good luck! NOT an oscillator/reversal indicator, don't be mislead by its plotting way.
一个加密货币的趋势跟踪指标,比你想的要强的那种,进入下方区域说明要关注买入/做多机会,进入上方区域说明要关注卖出/做空机会,实际操作试试看就知道了。不是振荡器/反转指标,别用错了。
Volumetric Tensegrity🧮 Volumetric Tensegrity unifies two of the Leading Indicator suite's critical engines — ZVOL ( volume anomaly detection ) and OBVX ( directional conviction ). Originally designed as a structural economizer for traders navigating strict indicator limits (e.g. < 10 slots per chart), it was forced to evolve beyond that constraint simply to fulfill it, albeit with a difference. The fatal flaw of traditional fusion, where two metrics are blended mathematically, is that they lose scale integrity (i.e. meaning). VTense encodes optical tensegrity to scale the amplitude of the ZVOL histogram and the slope of the OBVX spread independently, so that expansion and direction may coexist without either dominating the frame.
🧬 Tensegrity , by definition, is an intelligent design principle where elements in compression are suspended within a network of continuous tension, forming a stable, self-supporting structure . Originally conceived in esoteric biomorphology (c.f. Da Vinci, Snelson, Casteneda), tensegrity balances force through opposition, not rigidity. Applied to financial markets, Volumetric Tensegrity captures this same principle: price compresses, volume expands, conviction builds or fades — yet structure holds through the interplay. The result is not a prediction engine, but a pressure field — one that visualizes where structure might bend, break, or rebound based on how volume breathes.
🗜️ Rather than layering multiple indicators and consuming precious chart space, VTense frees up room for complementary overlays like momentum mapping, liquidity tiers, or volatility phase detection — making it ideal for modular traders operating in tight technical real estate.
🧠 Core Logic - VTense separates and preserves two essential structural forces:
• ZVOL Histogram : A Z-score-based expansion map that measures current volume deviation from its historical average. It reveals buildup zones, dormant stretches, and breakout pressure — regardless of price behavior.
• OBVX Spread : A directional conviction curve that tracks the difference between On-Balance Volume and its volume-weighted fast trend. It shows whether the crowd is leaning in (accumulation/distribution) or backing off.
🔊 ZVOL controls the amplitude of the histogram, while OBVX controls the curvature and slope of the spread. Without sacrificing breathing behavior or analytical depth, VTense provides a compact yet dynamic lens to track both expansion pressure and directional bias within a single footprint.
🌊 Volumetric Tensegrity forecasts breakout readiness, trend fatigue, and compression zones by measuring the volatility within volume . Unlike traditional tools that track volatility of price, this indicator reveals when effort becomes unstable — signaling inflection points before price reacts. Designed to decode rhythm shifts at the volume level, it operates as a pre-ignition scanner that thrives on low-timeframe charts (15m and under) while scaling effectively to 1H for validation.
🪖 From Generals to Scouts
👀 When used jointly, ZVOL + OBVX act as the general : deep-field analysts confirming stress, commitment, or exhaustion. VTense , by contrast, functions as a scout — capturing subtle buildup and alignment before structure fully reveals itself. The indicator aims to be a literal vanguard, establishing a position that can be confirmed or flexibly abandoned when the higher authority arrives to evaluate.
🥂 Use the ZVOL + OBVX pair when :
• You need independent axis control and manual dissection
• You’re building long-form confluence setups
• You have more indicator slots than you need
🔎 Use VTense when :
• You need compact clarity across multiple instruments
• You’re prioritizing confluence _detection_ over granular separation
• You’re building efficient multi-layered systems under slot constraints
🏗️ Structural Behavior and Interpretation
🫁 Z VOL Respiration Histogram : Structural Effort vs Baseline
🔵 Compression Coil – volume volatility is low and stable; the market is coiling
🟢 Steady Rhythm – volume is healthy but unremarkable; balanced participation
🟡 Passive/Absorbed Effort – expansion failing to manifest; watch for reversal
🟠 Clean Expansion – actionable volatility rise backed by structure
🔴 Volatile Blowout – chaos, climax; likely end-phase or fakeout
⚖️ ZVOL Respiration measures how hard the crowd is pressing — not just that volume is rising, but how statistically abnormal the surge is. Because it is rescaled proportionally to OBVX, the amplitude of the histogram reflects structural urgency without overwhelming the visual field.
🖐️ OBVX Spread : Real-Time Directional Conviction Behind Price Moves
🔑 The curvature of the spread reveals not just directional bias but crowd temp o: sharp slopes = urgent transitions; gradual slopes = building structural shifts. Curvature is key: sharp OBVX slope = urgency; gentle arcs = controlled drift or indecision.
• Green Rising : Accumulation — upward pressure from real buyers
• Red Falling : Distribution — sell pressure, downward slope
• Flat Curves : Transitional → uncertainty, microstructure digestion
🎭 Synchronized vs Divergent Behavior
⏱️ Synchronized (high-confluence) : often precedes structural breakouts, with internal conviction clearly visible before price resolves.
• ZVOL expands (yellow/orange/red) and OBVX climbs steeply green = strong bullish pressure
• ZVOL expands while OBVX steepens red = growing sell-side intent
🪤 Divergent (conflict tension) : flags potential traps, fakeouts, and liquidity sweeps.
• ZVOL expands sharply, but OBVX flattens or opposes → reactive expansion without crowd commitment
⛔️ Latent Drift + Structural Holding Patterns : tensegrity in action — the market holds tension without directional release.
• ZVOL compresses (blue) + OBVX meanders near zero → structure is resting, building up energy
• After prolonged drift, expect violent asymmetry when balance finally breaks
📚 Phase Interpretation: Dynamic Structural Read
• 1️⃣ Quiet Coil : Histogram flat, OBVX flat → no urgency
• 2️⃣ Initial Pulse : Yellow bars, OBVX slope builds → actionable tension
• 3️⃣ Structural Breath : Synchronized expansion and slope → directional commitment
• 4️⃣ Disagreement : Spike in ZVOL, flattening OBVX → exhaustion risk or false signal
💡 Suggested Use
• Run on 15m charts for breakout anticipation and 1H for validation
• Pair with ZVOL + OBVX to confirm crowd conviction behind the tension phase
• Use as a rhythm filter for the suite's trend indicators (e.g., RDI , SUPeR TReND 2.718 , et. al.)
• Ideal during low-volume regimes to detect pressure buildup before triggers
🧏🏻 Volumetric Tensegrity doesn’t signal. It breathes , and listens to pressure shifts before they speak in price. As a scout, it lets you see structural posture before signals align — helping you front-run resolution with clarity, not prediction.
True Strength Index (TSI)%📌 Script Name: TSI Percentuale
This script is a custom True Strength Index (TSI) indicator that expresses momentum strength as a percentage from 0% to 100%, instead of the traditional TSI scale.
✅ What the Script Does
Calculates the standard TSI:
Uses double exponential smoothing of price changes and their absolute values.
Formula:
TSI_raw
=
100
×
DoubleSmoothed(ΔPrice)
DoubleSmoothed(|ΔPrice|)
TSI_raw=100×
DoubleSmoothed(|ΔPrice|)
DoubleSmoothed(ΔPrice)
Normalizes TSI to a percentile scale:
Over a user-defined lookback period, the script finds the lowest and highest TSI values.
It then rescales the current TSI to a value between 0% (minimum) and 100% (maximum).
50% represents neutral momentum (i.e., "flat").
Plots the result:
tsi_percent is plotted as a blue line.
Horizontal dashed/dotted lines are drawn at:
0% → strong downward momentum
50% → neutral
100% → strong upward momentum
⚙️ Inputs
Long Length: Long EMA smoothing period (default: 25)
Short Length: Short EMA smoothing period (default: 13)
Signal Length: (not used in this version, can be removed or extended)
Lookback Period: Number of bars to calculate min/max normalization (default: 100)
🧠 Why Use This Indicator
The classic TSI ranges around and can be hard to interpret.
This version makes TSI visually intuitive by converting it to percentile form, allowing easier comparison of momentum strength across time and instruments.
It’s particularly useful for defining zones like:
Above 70% = strong bullish
Below 30% = strong bearish
ATR Strength Index~~~~~~~ATRRSI~~~~~~~~~
Understanding the ATR Strength IndexThe "ATR Strength Index" (ATR SI) is a custom technical indicator derived by applying the calculation methodology of the Relative Strength Index (RSI) to the values of the Average True Range (ATR).
While the standard RSI measures the momentum of price changes, the ATR SI measures the momentum of volatility itself, as represented by the ATR.It is important to note that this is not a standard, widely recognised indicator like the traditional RSI or ATR.
It's a custom construction designed to provide a different perspective on market dynamics – specifically, the speed and magnitude of changes in volatility.
How it is Calculated
The calculation of the ATR Strength Index follows the same steps as the standard RSI, but the input data is the ATR value for each period, rather than the price.Let ATRi be the Average True Range value for the current period i.Let ATRi−1 be the Average True Range value for the previous period i−1.Calculate the period-over-period change in ATR:ΔATRi=ATRi−ATRi−1Separate ATR Gains and ATR Losses:If ΔATRi>0, then ATR,Gaini=ΔATRi and ATR,Lossi=0.If ΔATRi<0, then ATR,Gaini=0 and ATR,Lossi=∣ΔATRi∣.If ΔATRi=0, then ATR,Gaini=0 and ATR,Lossi=0.Calculate the Smoothed Average ATR Gain and Average ATR Loss over a specified lookback period (let's call this the "RSI Length" or n).
This typically uses a smoothing method similar to Wilder's original RSI calculation (a modified moving average or exponential moving average).Average,ATR,Gainn=Smoothed Average of ATR,Gain over n periodsAverage,ATR,Lossn=Smoothed Average of ATR,Loss over n periodsCalculate the ATR Relative Strength (ATR RS):ATR,RSn=Average,ATR,LossnAverage,ATR,GainnCalculate the ATR Strength Index:ATR,SIn=100−1+ATR,RSn100The resulting index oscillates between 0 and 100, just like the standard RSI.
How to Use It
Interpreting the ATR Strength Index focuses on the momentum of volatility rather than price momentum:High Values (e.g., above 70): Indicate that volatility (as measured by ATR) has been increasing rapidly over the chosen period.
This could suggest a market transitioning from a period of low volatility to high volatility, potentially preceding or accompanying strong directional price moves or increased choppiness.Low Values (e.g., below 30): Indicate that volatility has been decreasing rapidly.
This could suggest a market transitioning from high volatility to low volatility, potentially entering a period of consolidation or ranging price action.Midline (50): Represents a balance between increasing and decreasing volatility momentum.Divergence: You could potentially look for divergence between the ATR value itself and the ATR Strength Index. For example, if ATR is making higher highs but the ATR SI is making lower highs, it might suggest that while volatility is still increasing, the speed of that increase is slowing down. The interpretation and reliability of such divergence would need careful testing.
This indicator is best used as a supplementary tool to gain insight into the underlying volatility dynamics of the market, rather than as a primary signal generator for price direction.
It can help in understanding the current market environment – whether volatility is picking up or dying down – which can inform the suitability of different trading strategies (e.g., trend-following strategies might be more effective when volatility momentum is high, while range-bound strategies might suit periods of low volatility momentum).
Uniqueness
The ATR Strength Index is unique because it applies a momentum oscillator's logic (RSI) to a volatility indicator's output (ATR).Standard RSI: Focuses on the directional force of price movements.Standard ATR: Measures the amount of volatility, regardless of direction.ATR Strength Index: Measures the speed and direction of change in volatility.
It provides a perspective that neither the standard RSI nor ATR offers on their own – a quantified measure of how quickly the market's choppiness or range is expanding or contracting. This can be valuable for traders who incorporate volatility analysis into their decision-making process.In summary, the ATR Strength Index is a custom indicator that adapts the RSI calculation to measure the momentum of volatility, offering a unique view on market dynamics by showing how rapidly volatility is increasing or decreasing.