SuperTrend: Silent Shadow 🕶️ SuperTrend: Silent Shadow — Operate in trend. Vanish in noise.
Overview
SuperTrend: Silent Shadow is an enhanced trend-following system designed for traders who demand clarity in volatile markets and silence during indecision.
It combines classic Supertrend logic with a proprietary ShadowTrail engine and an adaptive Silence Protocol to filter noise and highlight only the cleanest signals.
Key Features
✅ Core Supertrend Logic
Built on Average True Range (ATR), this trend engine identifies directional bias with visual clarity. Lines adjust dynamically with price action and flip when meaningful reversals occur.
✅ ShadowTrail: Stepped Counter-Barrier
ShadowTrail doesn’t predict reversals — it reinforces structure.
When price is trending, ShadowTrail forms a stepped ceiling in downtrends and a stepped floor in uptrends. This visual containment zone helps define the edges of price behavior and offers a clear visual anchor for stop-loss placement and trade containment.
✅ Silence Protocol: Adaptive Noise Filtering
During low-volatility zones, the system enters “stealth mode”:
• Trend lines turn white to indicate reduced signal quality
• Fill disappears to reduce distraction
This helps avoid choppy entries and keeps your focus sharp when the market isn’t.
✅ Visual Support & Stop-Loss Utility
When trendlines flatten or pause, they naturally highlight price memory zones. These flat sections often align with:
• Logical stop-loss levels
• Prior support/resistance areas
• Zones of reduced volatility where price recharges or rejects
✅ Custom Styling
Full control over line colors, width, transparency, fill visibility, and silence behavior. Tailor it to your strategy and visual preferences.
How to Use
• Use Supertrend color to determine bias — flips mark momentum shifts
• ShadowTrail mirrors the primary trend as a structural ceiling/floor
• Use flat segments of both lines to identify consolidation zones or place stops
• White lines = low-quality signal → stand by
• Combine with RSI, volume, divergence, or your favorite tools for confirmation
Recommended For:
• Traders seeking clearer trend signals
• Avoiding false entries in sideways or silent markets
• Identifying key support/resistance visually
• Structuring stops around real market containment levels
• Scalping, swing, or position trading with adaptive clarity
Built by Sherlock Macgyver
Forged for precision. Designed for silence.
When the market speaks, you listen.
When it doesn’t — you wait in the shadows.
Volatilidade
LULD Bands & Trading Halt Detector [Volume Vigilante]📖 LULD Bands & Trading Halt Detector
This advanced tool visualizes official Limit Up / Limit Down (LULD) price bands and detects regulatory trading halts and resumptions based on SEC and NASDAQ rules. It is engineered for high accuracy by anchoring all calculations to the 1-minute timeframe, ensuring reliable signals across any chart resolution.
📌 What Does This Script Do?
- Draws real-time LULD price band estimations and optional buffer (caution) zones directly on the chart.
- Detects trading halt resumptions by monitoring time gaps between candles and other regulatory criteria. (Note: Due to Pine Script limitations, halts cannot be detected in real-time, only resumptions after they occur.)
- Triggers real-time alerts for:
- Trading Resumptions (Limit Up & Limit Down)
- LULD Zone Entries (Caution Zone)
- Band Breaches (Limit Up and Limit Down)
- Plots historical halt resumption markers to analyse past events.
📐 How It Works:
- Implements official SEC/NASDAQ LULD rules for Tier 1 and Tier 2 securities.
- Applies special band adjustments for the final 25 minutes of trading (after 3:35 PM ET).
- Anchors all logic to the 1-minute timeframe for precise calculations, even on higher timeframe charts.
- Includes adjustable volume and volatility filters to eliminate false signals (ghost halts) on low-- liquidity assets, especially Tier 2 securities when TradingView fails to print candles.
⚙️ How to Use It:
1.) Apply the script to any asset or timeframe.
2.) Adjust Volume and Volatility Filters to reduce noise. (Recommended: 500,000+ volume, 10%+ volatility.)
3.) Enable or disable visual components like bands, buffer zones, and halt resumption labels.
4.) Configure alerts directly from the script settings panel.
5.) Apply alerts to individual assets via "Add Alert On..." or to entire watchlists using "Add Alert on the List."
🧩 What Makes This Script Unique?
- True 1-Minute Anchored Calculations: Ensures alerts and visuals match official trading halt criteria regardless of chart timeframe.
- Customisable Buffered Zones: Visualise proximity to regulatory price limits and avoid volatility traps.
- Combines halt resumption detection, limit up/down band visualisation, and real-time alerts into one clean, modular tool.
📚 Disclaimer:
This script is for educational purposes only and does not constitute financial advice. Use at your own discretion and consult a licensed financial advisor before making trading decisions based on it.
Official Resources:
- NASDAQ LULD Regulations (FAQ):
www.nasdaqtrader.com
Current Nasdaq Trading Halts:
www.nasdaqtrader.com
Trend Board ProIndicator Description: Trend Board Pro
Trend Board Pro is a compact trading dashboard that displays essential market metrics in a clean, easy-to-read format. Designed for quick market assessment, it provides critical data without cluttering the chart.
Key Features:
✅ Trend (L/S) — identifies market direction:
L (Long, green) — bullish trend
S (Short, red) — bearish trend
✅ Daily Volume (DV) — total 24h trading volume in USD (formatted as "1.2 B" for billions, "350 M" for millions).
✅ Average Volume (AV) — rolling average volume over a customizable period (default: 30 candles) in USD.
✅ Volatility (NATR, %) — normalized average true range (default period: 14).
✅ Correlation (C) — correlation coefficient with a selected asset (e.g., BTCUSDT).
Key Advantages:
🔹 Customizable layout — toggle metrics on/off as needed.
🔹 Smart number formatting — auto-converts large values (millions/billions).
🔹 Color alerts — highlights significant volume/volatility levels.
🔹 Flexible positioning — 5 placement options (top/bottom, left/right, center).
Disparity Index with Volatility ZonesDisparity Index with Volatility Zones
is a momentum oscillator that measures the percentage difference between the current price and its simple moving average (SMA). This allows traders to identify overbought/oversold conditions, assess momentum strength, and detect potential trend reversals or continuations.
🔍 Core Concept:
The Disparity Index (DI) is calculated as:
DI = 100 × (Price − SMA) / SMA
A positive DI indicates the price is trading above its moving average (potential bullish sentiment), while a negative DI suggests the price is below the average (potential bearish sentiment).
This version of the Disparity Index introduces a dual-zone volatility framework, offering deeper insight into the market's current state.
🧠 What Makes This Version Unique?
1. High Volatility Zones
When DI crosses above +1.0% or below –1.0%, it often indicates the start or continuation of a strong trend.
Sustained readings beyond these thresholds typically align with trending phases, offering opportunities for momentum-based entries.
A reversal back within ±1.0% after exceeding these levels can suggest a shift in momentum — similar to how RSI exits the overbought/oversold zones before reversals.
These thresholds act as dynamic markers for breakout confirmation and potential trend exhaustion.
2. Low Volatility Zones
DI values between –0.5% and +0.5% define the low-volatility zone, shaded for visual clarity.
This area typically indicates market indecision, sideways price action, or consolidation.
Trading within this range may favor range-bound or mean-reversion strategies, as trend momentum is likely limited.
The logic is similar to interpreting a flat ADX, tight Bollinger Bands, or contracting Keltner Channels — all suggesting consolidation.
⚙️ Features:
Customizable moving average length and input source
Adjustable thresholds for overbought/oversold and low-volatility zones
Optional visual fill between low-volatility bounds
Clean and minimal chart footprint (non-essential plots hidden by default)
📈 How to Use:
1. Trend Confirmation:
A break above +1.0% can be used as a bullish continuation signal.
A break below –1.0% may confirm bearish strength.
Long periods above/below these thresholds support trend-following entries.
2. Reversal Detection:
If DI returns below +1.0% after exceeding it, bullish momentum may be fading.
If DI rises above –1.0% after falling below, bearish pressure may be weakening.
These shifts resemble overbought/oversold transitions in oscillators like RSI or Stochastic, and can be paired with divergence, volume, or price structure analysis for higher reliability.
3. Sideways Market Detection:
DI values within ±0.5% indicate low volatility or a non-trending environment.
Traders may avoid breakout entries during these periods or apply range-trading tactics instead.
Observing transitions out of the low-volatility zone can help anticipate breakouts.
4. Combine with Other Indicators:
DI signals can be enhanced using tools like MACD, Volume Oscillators, or Moving Averages.
For example, a DI breakout beyond ±1.0% supported by a MACD crossover or volume spike can help validate trend initiation.
This indicator is especially powerful when paired with Bollinger Bands:
A simultaneous price breakout from the Bollinger Band and DI moving beyond ±1.0% can help identify early trend inflection points.
This combination supports entering positions early in a developing trend, improving the efficiency of trend-following strategies and enhancing decision-making precision.
It also helps filter false breakouts when DI fails to confirm the move outside the band.
This indicator is designed for educational and analytical purposes and works across all timeframes and asset classes.
It is particularly useful for traders seeking a clear framework to identify momentum strength, filter sideways markets, and improve entry timing within a larger trading system.
Golden Unified Entry Pro v2.7 – Balanced Dynamic Edition
//@version=6
indicator("Golden Unified Entry Pro v2.7 – Balanced Dynamic Edition", overlay=true)
// === Inputs ===
showZones = input.bool(true, "Show Golden Zones")
showWave = input.bool(true, "Show Liquidity Wave")
showLabels = input.bool(true, "Show Entry Signals (Buy/Sell/Watch)")
// === Net Liquidity & RSI ===
netLiquidity = close - open
liquidityStrength = ta.ema(netLiquidity, 5)
rsi = ta.rsi(close, 14)
rsiBuy = rsi > 50
rsiSell = rsi < 50
// === Dynamic Swing High/Low Based on Liquidity ===
var float swingHigh = na
var float swingLow = na
if liquidityStrength > 0
swingLow := low
if liquidityStrength < 0
swingHigh := high
// === Golden Zones ===
fib618 = swingHigh - (swingHigh - swingLow) * 0.618
fib786 = swingHigh - (swingHigh - swingLow) * 0.786
fib618s = swingLow + (swingHigh - swingLow) * 0.618
fib786s = swingLow + (swingHigh - swingLow) * 0.786
buyZone = close >= fib786 and close <= fib618
sellZone = close <= fib786s and close >= fib618s
// === Entry Conditions ===
strongBuy = buyZone and liquidityStrength > 0 and rsiBuy
watchBuy = buyZone and (liquidityStrength > 0 or rsiBuy)
strongSell = sellZone and liquidityStrength < 0 and rsiSell
watchSell = sellZone and (liquidityStrength < 0 or rsiSell)
// === Dynamic Box ===
var box zoneBox = na
if showZones
if strongBuy or watchBuy
box.set_lefttop(zoneBox, bar_index, fib618)
box.set_rightbottom(zoneBox, bar_index + 3, fib786)
box.set_border_color(zoneBox, color.yellow)
box.set_bgcolor(zoneBox, color.new(color.yellow, 85))
else if strongSell or watchSell
box.set_lefttop(zoneBox, bar_index, fib786s)
box.set_rightbottom(zoneBox, bar_index + 3, fib618s)
box.set_border_color(zoneBox, color.red)
box.set_bgcolor(zoneBox, color.new(color.red, 85))
else
box.delete(zoneBox)
zoneBox := na
// === Labels ===
var label signalLabel = na
if showLabels
if strongBuy
label.set_xy(signalLabel, bar_index, high)
label.set_text(signalLabel, "Strong Buy")
label.set_style(signalLabel, label.style_label_up)
label.set_color(signalLabel, color.green)
label.set_textcolor(signalLabel, color.white)
else if strongSell
label.set_xy(signalLabel, bar_index, low)
label.set_text(signalLabel, "Strong Sell")
label.set_style(signalLabel, label.style_label_down)
label.set_color(signalLabel, color.red)
label.set_textcolor(signalLabel, color.white)
else if watchBuy
label.set_xy(signalLabel, bar_index, high)
label.set_text(signalLabel, "Buy Watch")
label.set_style(signalLabel, label.style_label_up)
label.set_color(signalLabel, color.new(color.green, 70))
label.set_textcolor(signalLabel, color.white)
else if watchSell
label.set_xy(signalLabel, bar_index, low)
label.set_text(signalLabel, "Sell Watch")
label.set_style(signalLabel, label.style_label_down)
label.set_color(signalLabel, color.new(color.red, 70))
label.set_textcolor(signalLabel, color.white)
else
label.delete(signalLabel)
signalLabel := na
// === Dynamic Wave ===
var line waveLine = na
if showWave
if liquidityStrength > 0 and rsiBuy
line.set_xy1(waveLine, bar_index , low )
line.set_xy2(waveLine, bar_index, low)
line.set_color(waveLine, color.green)
line.set_width(waveLine, 2)
else if liquidityStrength < 0 and rsiSell
line.set_xy1(waveLine, bar_index , high )
line.set_xy2(waveLine, bar_index, high)
line.set_color(waveLine, color.red)
line.set_width(waveLine, 2)
else
line.delete(waveLine)
waveLine := na
// Dummy plot for TradingView compatibility
plot(na, title="Invisible Plot")
Volatility Exhaustion Cloud
// 📊 VOLATILITY EXHAUSTION CLOUD — Indicator Summary
//--------------------------------------------------------------------------------------------------
// 🔍 What It Is:
// A hybrid volatility overlay that combines Keltner Channels and FRAMA (Fractal Adaptive Moving Average) bands.
// It visually maps volatility extremes and tracks moments of exhaustion during strong price expansions.
//
// 📐 What It Measures:
// - **Keltner Channels** are ATR-based and reflect expected volatility envelopes.
// - **FRAMA Bands** adapt more aggressively to fractal price behavior.
// When the FRAMA band crosses outside the Keltner envelope, it suggests price is entering unsustainable extremes.
//
// ⚠️ Exhaustion Signals:
// - **Bull Exhaustion**: FRAMA Upper crosses above Keltner Upper → indicates aggressive overextension to the upside.
// - **Bear Exhaustion**: FRAMA Lower crosses below Keltner Lower → potential downside exhaustion or trap.
// - **Exhaustion Over**: Keltner band crosses back over FRAMA → market volatility rebalances or trend resumes.
//
// 🕒 Adaptive Settings:
// The indicator auto-optimizes for each timeframe, tightening band responsiveness to match market tempo
// — from scalping (1m) to swing trading (1D+).
//
// 🧠 How to Use:
// - Watch for FRAMA breakouts as potential exhaustion points.
// - Use Keltner crossbacks to signal possible trend continuation.
// - Combine with structure (BOS/CHoCH), order blocks, or volume for confirmation.
//
//--------------------------------------------------------------------------------------------------
(DAFE) DEVMA - Crossover (Deviation Moving Average) (DAFE) DEVMA - Crossover (Deviation Moving Average)
Let’s keep pushing the edge. After the breakthrough of Deviation over Deviation (DoD)—which gave traders a true lens into volatility’s hidden regime shifts—many asked: “What’s next?” The answer is DEVMA: a crossover engine built not on price, but on the heartbeat of the market itself.
Why is this different?
DEVMA isn’t just a moving average crossover. It’s a regime detector that tracks the expansion and contraction of deviation—giving you a real-time readout of when the market’s energy is about to shift. This is the next step for anyone who wants to anticipate volatility, not just react to it.
What sets DEVMA apart:
Volatility-First Logic:Both fast and slow lines are moving averages of deviation, not price. You’re tracking the market’s “energy,” not just its direction. This is the quant edge that most scripts miss.
Regime-Colored Lines:
The fast and slow DEVMA lines change color in real time—green/aqua for expansion, maroon/orange for contraction—so you can see regime shifts at a glance.
Quant-Pro Visuals:
Subtle glow, clean cross markers, and a minimalist dashboard keep your focus on what matters: the regime, not the noise.
Static Regime Thresholds:
Reference lines at 1.5 and 0.5 (custom colors) give you instant context for “normal” vs. “extreme” volatility states.
No Price Chasing:
This isn’t about following price. It’s about anticipating the next volatility regime—before the crowd even knows what’s coming.
How this builds on DoD:
DoD showed you when volatility itself was about to change. DEVMA takes that insight and turns it into a crossover engine—so you can see, filter, and act on regime shifts in real time. If DoD was the radar, DEVMA is the navigation system.
Inputs/Signals—explained for clarity:
Deviation Lookback:
Controls the sensitivity of the regime detector. Shorter = more signals, longer = only the rarest events.
Fast/Slow DEVMA Lengths:
Fine-tune how quickly the regime lines react. Fast for scalping, slow for swing trading.
Source Selection:
Choose from price, volume, volatility, or VoVix. Each source gives you a different lens on market stress. VoVix is for those who want to see the “regime quake” before the aftershocks.
VoVix Parameters:
Fine-tune the volatility-of-volatility engine for your market. Lower ATR Fast = more responsive; higher ATR Slow = more selective.
Bottom line:
DEVMA is for those who want to see the market’s heartbeat, not just its shadow. Use it to filter your trades, time your entries, or simply understand the market’s true rhythm. Every input is there for a reason. Every plot is a direct readout of the quant logic. Use with discipline, and make it your own.
Disclaimer:
Trading is risky. This script is for research and informational purposes only, not financial advice. Backtest, paper trade, and know your risk before going live. Past performance is not a guarantee of future results.
*Updated the Dashboard/Metrics Display for better visibility
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems
Deviation over Deviation (DoD) (DAFE) Deviation over Deviation (DoD)
Let’s call it out: The vast majority of “volatility” tools on TradingView are just new wrappers on old math—ATR, bands, and basic deviation, all chasing the same tired after-the-fact moves. They’re built to describe the aftermath, not the ignition. If you’re still relying on these, you’re trading in the rearview mirror while the real edge is already gone. That’s not our game, and it shouldn’t be yours.
Deviation over Deviation (DoD) is built for one purpose:
To expose the hidden regime shifts—the moments when volatility itself becomes volatile, when the market’s “normal” deviation is no longer normal, and when the next move is about to erupt. This isn’t just another overlay. This is a quant-grade anomaly detector, engineered to show you the probability surface before the crowd even knows it’s changed.
What sets this apart:
Deviation over Deviation (DoD):
Not just “how much did price move,” but “how unusual is the current volatility compared to its own history?” This is the Z-score of Z-scores—a true rarity detector for market stress, lull, or impending breakout.
VoVix Integration:
Select VoVix as your source and you’re not just tracking price, but the volatility of volatility—the same math that powers institutional regime models. This is the edge that front-runs the move, not follows it.
Multi-Timeframe Comparative Engine:
Instantly compare current and higher timeframe DoD Z-scores. See when the micro and macro regimes align—or when they’re about to collide.
Professional, Adaptive Dashboard:
No cosmetic fluff, always showing you the real quant state: current DoD Z, HTF DoD Z, and regime warnings. Every color, every plot, every signal is a direct function of the logic—no distractions, no lag.
How this destroys the lag:
Standard deviation, ATR, and “volatility bands” are always late. They tell you what just happened. DoD and VoVix show you when the nature of volatility itself is changing—when the market is about to leave the old regime behind. This is the difference between trading the past and trading the future.
Inputs/Signals—explained for clarity:
Deviation Lookback & DoD Lookback:
Control the sensitivity and selectivity of the regime detector. Shorter = more signals, longer = only the rarest events.
Source Selection:
Choose from price, volume, volatility, or VoVix. Each source gives you a different lens on market stress. VoVix is for those who want to see the “regime quake” before the aftershocks.
HTF (Comparative Timeframe):
Set your higher timeframe for macro regime confirmation. When both DoD Z-scores align, you’re seeing a true market inflection.
VoVix Parameters:
Fine-tune the volatility-of-volatility engine for your market. Lower ATR Fast = more responsive; higher ATR Slow = more selective. Adjust for your asset, your timeframe, your edge.
Bottom line:
This isn’t just another “volatility” script. This is a regime anomaly detector, built for traders who want to anticipate, not react. Every input is there for a reason. Every plot is a direct readout of the quant logic. Use it to filter your entries, to time your exits, or to simply see the market’s hidden structure in real time.
Disclaimer:
Trading is risky. This script is for research and informational purposes only, not financial advice. Backtest, paper trade, and know your risk before going live. Past performance is not a guarantee of future results.
*Updated the Dashboard/Metrics Display for better visibility
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems
Harmony in Havoc - The Entropy of VoVix Harmony in Havoc – The Entropy of VoVix
There are moments in the market when chaos and order are not opposites, but partners in a dance.
Harmony in Havoc is not just an indicator—it’s a window into that dance.
Most tools try to tame the market by smoothing it, boxing it in, or chasing after what’s already happened. This script does the opposite: it listens for the music beneath the noise, the rare moments when volatility and unpredictability align, and the market’s next movement is about to begin.
What is Harmony in Havoc?
VoVix Spike:
The pulse of volatility-of-volatility. Not just how much the market is moving, but how violently its own heartbeat is changing.
Entropy:
A real-time measure of surprise. When entropy is high, the market is not just moving—it’s breaking its own patterns, rewriting its own rules.
Progression Bar & Status:
The yellow bar is your visual gauge of tension. As it fills, the market is winding up.
Wait: The world is calm.
Get ready!: The storm is building.
Take Action!!: The probability of a regime eruption is at its peak.
Yellow Background:
When the background glows, the market is at its most unstable—this is not a buy or sell signal, but a quant alert.
How does it work?
Every tick, Harmony in Havoc measures the distance between the market’s current volatility and its own unpredictability. When the VoVix spike approaches or exceeds the entropy threshold, the system knows:
“This is the moment when the improbable becomes possible.”
Why is this different?
It doesn’t tell you what to do.
It doesn’t chase price.
It doesn’t care about trends, bands, or the past.
Instead, it gives you a quantitative sense of anticipation—a way to see when the market is most likely to break from its own history, and when the edge is at its sharpest.
How to use it:
Watch for the yellow background and “Take Action!!” status.
Use it as a regime filter, a volatility dashboard, or a warning system for your own strategies.
Tune the inputs for your asset and timeframe—make it your own.
Inputs—explained for you:
VoVix Fast/Slow ATR & Stdev:
Control how sensitive the system is to volatility shocks. Lower = more signals, higher = only the rarest events.
Entropy Window & Bins:
Control how “surprised” the entropy engine is by current volatility. Shorter window = more responsive, more bins = finer detail.
Show/Hide Controls:
Toggle the VoVix spike, entropy line, and their glows to customize your visual experience.
Bottom line:
This is not a buy or sell script.
This is a quant regime detector for those who want to feel the market’s tension—to sense when harmony and havoc are about to collide.
Disclaimer:
Trading is risky. This script is for research and informational purposes only, not financial advice. Backtest, paper trade, and know your risk before going live. Past performance is not a guarantee of future results.
*I've only tested this on 1 and 5 min frames.
Use with discipline. Trade your edge.
— Dskyz, for DAFE Trading Systems
3 days ago
Release Notes
* Now mobile friendly. I've added a toggle to switch the dashboard on/off, and added a mobile information line that shows the same information on the dashboard. This is to allow the script to stay visually in balance and this also has a toggle.
* Background color added that coresponds with Buy or Sell areas.
Adaptive Hurst Exponent Regime FilterAdaptive Hurst Exponent Regime Filter (AHERF)
█ OVERVIEW
The Adaptive Hurst Exponent Regime Filter (AHERF) is designed to identify the prevailing market regime—be it Trending, Mean-Reverting, or a Random Walk/Transition phase. While the Hurst Exponent is a well-known tool for this purpose, AHERF introduces a key innovation: an adaptive threshold . Instead of relying solely on the traditional fixed 0.5 Hurst value, this indicator's threshold dynamically adjusts based on current market volatility, aiming to provide more nuanced and responsive regime classifications.
This tool can assist traders in:
Gauging the current character of the market.
Tailoring trading strategies to the identified regime (e.g., deploying trend-following systems in Trending markets or mean-reversion tactics in Mean-Reverting conditions).
Filtering out trades that may be counterproductive to the dominant market behavior.
█ HOW IT WORKS
The indicator operates through the following key calculations:
1. Hurst Exponent Calculation:
The script computes an approximate Hurst Exponent (H). It utilizes log price changes as its input series.
The `calculateHurst` function implements a variance scaling approach:
It defines three sub-periods based on the main `Hurst Lookback Period`.
It calculates the standard deviation of the input series over these sub-periods.
The Hurst Exponent is then estimated from the slope of a log-log regression between the standard deviations and their respective sub-period lengths. A simplified calculation using the first and last sub-periods is performed: `H = (log(StdDev3) - log(StdDev1)) / (log(N3) - log(N1))`.
Theoretically, a Hurst Exponent:
H > 0.5 suggests persistence (trending behavior).
H < 0.5 suggests anti-persistence (mean-reverting behavior).
H ≈ 0.5 suggests a random walk (unpredictable movement).
Pine Script® Snippet (Hurst Calculation Call):
float logPriceChange = math.log(close) - math.log(close );
// ... ensure logPriceChange is not na on first bar ...
float hurstValue = calculateHurst(logPriceChange, hurstLookbackInput);
2. Volatility Proxy Calculation:
To enable the adaptive nature of the threshold, a volatility proxy is calculated.
Users can select the `Volatility Metric` to be either:
Average True Range (ATR), normalized by the closing price.
Standard Deviation (StdDev) of simple price returns.
This proxy quantifies the current degree of price activity or fluctuation in the market.
Pine Script® Snippet (Volatility Proxy Call):
float volatilityProxy = getVolatilityProxy(volatilityMetricInput, volatilityLookbackInput);
3. Adaptive Threshold Calculation:
This is the core of AHERF's adaptability. Instead of a static 0.5 line as the sole determinant, the script computes a dynamic threshold.
The adaptive threshold is calculated as: `0.5 + (Threshold Sensitivity * Volatility Proxy)`.
This means the threshold starts at the baseline 0.5 level and then adjusts upwards or downwards based on the current `volatilityProxy` scaled by the `Threshold Sensitivity (k)` input.
Pine Script® Snippet (Adaptive Threshold Calculation):
float adaptiveThreshold = 0.5 + sensitivityInput * nz(volatilityProxy, 0.0);
4. Regime Identification:
The prevailing market regime is determined by comparing the `hurstValue` to this `adaptiveThreshold`, incorporating a `Threshold Buffer` to reduce noise and clearly delineate zones:
Trending: `hurstValue > adaptiveThreshold + bufferInput`
Mean-Reverting: `hurstValue < adaptiveThreshold - bufferInput`
Random/Transition: Otherwise (Hurst value is within the buffer zone around the adaptive threshold).
Pine Script® Snippet (Regime Determination Logic):
if not na(hurstValue) and not na(adaptiveThreshold)
if hurstValue > adaptiveThreshold + bufferInput
currentRegimeColor := TRENDING_COLOR
regimeText := "Trending"
else if hurstValue < adaptiveThreshold - bufferInput
currentRegimeColor := MEAN_REVERTING_COLOR
regimeText := "Mean-Reverting"
// else remains Random/Transition
█ HOW TO USE IT
Interpreting the Visuals:
Observe the plotted `Hurst Exponent (H)` line (White) relative to the `Adaptive Threshold` line (Orange).
The background color provides an immediate indication of the current regime: Green for Trending, Red for Mean-Reverting, and Gray for Random/Transition.
The fixed `0.5 Level` (Dashed Gray) is plotted for reference against traditional Hurst interpretation.
Labels "T", "M", and "R" appear below bars to signal new entries into Trending, Mean-Reverting, or Random/Transition regimes, respectively.
Inputs Customization:
Hurst Exponent Calculation
Hurst Lookback Period: Defines the number of bars used for the Hurst Exponent calculation. Longer periods generally yield smoother Hurst values, reflecting longer-term market memory. Shorter periods are more responsive.
Adaptive Threshold Settings
Volatility Metric: Choose "ATR" or "StdDev" to drive the adaptive threshold. Experiment to see which best suits the asset.
Volatility Lookback: The lookback period for the selected volatility metric.
Threshold Sensitivity (k): A crucial multiplier determining how strongly volatility influences the adaptive threshold. Higher values mean volatility has a greater impact, potentially widening or shifting the regime bands more significantly.
Threshold Buffer: Creates a neutral zone around the adaptive threshold. This helps prevent overly frequent regime shifts due_to minor Hurst fluctuations.
█ ORIGINALITY AND USEFULNESS
The AHERF indicator distinguishes itself by:
Implementing an adaptive threshold mechanism for Hurst Exponent analysis. This threshold dynamically responds to changes in market volatility, offering a more flexible approach than a fixed 0.5 reference, potentially leading to more contextually relevant regime detection.
Providing clear, at-a-glance visualization of market regimes through background coloring and distinct plot shapes.
Offering user-configurable parameters for both the Hurst calculation and the adaptive threshold components, allowing for tuning across various assets and timeframes.
Traders can leverage AHERF to better align their chosen strategies with the prevailing market character, potentially enhancing trade filtering and decision-making processes.
█ VISUALIZATION
The indicator plots the following in a separate pane:
Hurst Exponent (H): A white line representing the calculated Hurst value.
Adaptive Threshold: An orange line representing the dynamic threshold.
Fixed 0.5 Level: A dashed gray horizontal line for traditional Hurst reference.
Background Color: Changes based on the identified regime:
Green: Trending regime.
Red: Mean-Reverting regime.
Gray: Random/Transition regime.
Regime Entry Shapes: Plotted below the price bars (forced overlay for visibility):
"T" (Green Label): Signals entry into a Trending regime.
"M" (Teal Label): Signals entry into a Mean-Reverting regime.
"R" (Cyan Label): Signals entry into a Random/Transition regime.
█ ALERTS
The script provides alert conditions for changes in the market regime:
Regime Shift to Trending: Triggers when the Hurst Exponent crosses above the adaptive threshold into a Trending state.
Regime Shift to Mean-Reverting: Triggers when the Hurst Exponent crosses below the adaptive threshold into a Mean-Reverting state.
Regime Shift to Random/Transition: Triggers when the Hurst Exponent enters the Random/Transition zone around the adaptive threshold.
These can be configured directly from the TradingView alerts panel.
█ NOTES & DISCLAIMERS
The Hurst Exponent calculation is an approximation; various methods exist, each with its nuances.
The performance and relevance of the identified regimes can differ across financial instruments and timeframes. Parameter tuning is recommended.
This indicator is intended as a decision-support tool and should not be the sole basis for trading decisions. Always integrate its signals within a broader analytical framework.
Past performance of any trading system or indicator, including those derived from AHERF, is not indicative of future results.
█ CREDITS & LICENSE
Author: mastertop ( Twitter: x.com )
Color Palette: Uses the `MaterialPalette` library by MASTERTOP_ASTRAY.
This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
© mastertop, 2025
ADR%, CCR% & Risk-Based Quantity✅ What This Does:
ADR%, CCR% (Current Candle Range) and quantity now show up in the Data Window (when you hover over the chart)
The chart still looks completely clean (the plots are fully transparent)
Chart scale is unaffected, because the values are typical % ranges (e.g., 1–10%)
ADR% & CDR% - Clean Hover View✅ What This Does:
ADR% and CDR% (Current Day Range) now show up in the Data Window (when you hover over the chart)
The chart still looks completely clean (the plots are fully transparent)
Chart scale is unaffected, because the values are typical % ranges (e.g., 1–10%)
Triple BBThis is an indicator of BB (Bollinger Band) that allows you to put three standard deviations in one go.
Volume candle intraday 90% valid - with alertThe candle with the highest volume of the day and that creates a new daily high or low.
- Only usable on M15 timeframes;
- You can set a range of bars (from the beginning of the day) to ignore;
- "90% valid" means a candle with volume greater than 90% of the last candle with the highest volume of the day (in the script you can change the percentage of valid volumes to define the candle volume, replacing all the "90" with the desired percentage);
- Long volumes are compared to longs and short volumes are compared to shorts;
- Script created with ChatGpt;
The psychology behind this pattern is the following: on the daily high/low, a lot of volumes will enter in a short time, either by absorption: buyers or sellers enter en masse following the trend when it is too late; or by exhaustion: buyers or sellers who entered en masse and late have no more strength to continue pushing the price, they cause a volume peak to buy/sell as much as they could, then their enemies take over forming a high/low).
Happy trading everyone! :)
###################################################################################
La candela con il volume più alto della giornata e che crea un nuovo massimo o minimo giornaliero.
- Utilizzabile solo su timeframe M15;
- Si può impostare un range di barre(da inizio giornata) da ignorare;
- "90% valida" sta per candela con volume superiore del 90% dell'ultima candela con volume più alto della giornata(nello script si può cambiare percentuale di volumi validi per definire candela volume, sostituendo tutti i "90" con la percentuale desiderata);
- I volumi long vengono confrontati con i long e i volumi short con gli short;
- Script creato con ChatGpt;
La psicologia dietro questo pattern è la seguente: sul massimo/minimo giornaliero entreranno tanti volumi in breve tempo, sia per assorbimento: buyers o sellers entrano in massa seguendo il trend quando è troppo tardi; sia per esaurimento: buyers o sellers entrati in massa e in ritardo non hanno più forza per continuare a spingere il prezzo, causano un picco volumetrico per comprare/vendere più che potevano, quindi i loro nemici prendono il sopravvento formando un massimo/minimo).
Buon trading a tutti! :)
ATR ComboA Collection of three ATRs.
The whole idea of this indicator is to easily visualise the relationship of volatility to the current price action.
The default settings are:
5 Moving Average (Pink)
50 Moving Average (Blue)
1000 Moving Average (Yellow)
Using the default settings, the Yellow line represents the larger-scale volatility average.
the Blue line represents more recent volatility and the Pink lien represents the very recent average.
Using this indicator is possible in a number of ways:
If volatility is high and directional, you will see a sharp increase in the Pink line.
If volatility is high and choppy, the Pink line will be well above the Blue line and will oscillate up and down.
If volatility is starting to cool down, the Pink line will approach the Blue and Yellow lines.
VOID Directional Spike MarkerThis indicator highlights significant directional moves on the $VOID chart (NYSE USI:UVOL − DERIBIT:DVOL ) using simple visual cues:
🔼 Green up arrows when the candle closes significantly higher than it opens
🔽 Red down arrows when the candle closes significantly lower than it opens
Threshold is fully customizable (default: 15,000,000)
Ideal for spotting explosive internal shifts on the 5-minute chart during key market moments
Alerts included for both up and down spikes
Use this to track aggressive buying or selling pressure across NYSE internals and time your entries on NQ, ES, or YM with stronger conviction.
Zen FDAX Session📝 Description
OVERVIEW
The Zen FDAX Session indicator highlights periods outside the regular trading hours of the FDAX (DAX Futures) on the Xetra exchange. It shades the chart background during non-trading hours, aiding traders in distinguishing active market periods from inactive ones.
FUNCTIONALITY
Customizable Trading Hours: Users can define the session's start and end times in UTC, allowing flexibility to match personal trading schedules or account for daylight saving changes.
Visual Clarity: The indicator applies a subtle background color to non-trading hours, ensuring clear demarcation without obscuring price data.
Time Zone Awareness: Designed with UTC inputs to maintain consistency across different user time zones.
USAGE
Add the Indicator: Apply the "Zen FDAX Session" indicator to your chart.
Set Trading Hours: Input your desired session start and end times in UTC.
Interpret the Shading: Areas with shaded backgrounds represent times outside your defined trading session.
Note: This indicator does not generate buy/sell signals but serves as a visual aid to identify trading sessions.
Double BBThis is an indicator that allows you to put two std deviations together at one go for Bollinger Bands (BB)
Bollinger Bands x3 with Fill + HMA + Dynamic Width Colors📄 Description for TradingView Publication:
This is an enhanced and flexible version of the classic Bollinger Bands indicator, designed for traders who want deeper insight into market volatility and price structure.
🔹 Key Features:
✅ Triple Bollinger Bands
Displays 3 standard deviation bands: ±1σ, ±2σ, and ±3σ
Customize each deviation level independently
✅ Dynamic Band Width Coloring
Band lines change color when the distance between upper and lower bands narrows
Helps identify volatility contractions and potential squeeze setups
✅ Dynamic Fill Coloring
Fill between bands also changes color when the bands narrow
Visually highlights transitions from high to low volatility conditions
✅ Multiple Moving Average Options
Choose from:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Smoothed Moving Average (SMMA / RMA)
Weighted Moving Average (WMA)
Volume-Weighted Moving Average (VWMA)
Hull Moving Average (HMA) for a smoother, more responsive central tendency
✅ Customization Options
Show/hide each band individually
Adjust standard deviation multipliers
Toggle fills between bands
Customize fill colors for normal and narrowing conditions
Offset option to shift all plots forward or backward
💡 Use Case Tips:
When all bands begin narrowing, it could signal an upcoming volatility expansion or breakout.
Use the ±3σ bands to gauge extreme price behavior, and ±1σ for short-term mean reversion.
Combine with price action, momentum, or volume for breakout confirmation.
🧰 Recommended For:
Volatility traders
Mean reversion strategies
Breakout traders
Trend confirmation and structure analysis
Golden Khaled Recovery v2.0 – Dual Direction Dynamic
//@version=5
indicator("Golden Khaled Recovery v2.0 – Dual Direction Dynamic", overlay=true)
// === الإعدادات ===
mode = input.string("Both", title="Signal Mode", options= )
enableWatch = input.bool(true, title="Show Watch Signals (Weak Setup)")
showConditionCount = input.bool(true, title="Show Conditions Count Below Candle")
// === المؤشرات ===
macdFast = input.int(12, "MACD Fast")
macdSlow = input.int(26, "MACD Slow")
macdSignal = input.int(9, "MACD Signal")
rsiPeriod = input.int(14, "RSI Period")
volumeSpikeMultiplier = input.float(1.5, "Volume Spike Multiplier")
// === حساب المؤشرات ===
= ta.macd(close, macdFast, macdSlow, macdSignal)
rsi = ta.rsi(close, rsiPeriod)
volumeSpike = volume > ta.sma(volume, 20) * volumeSpikeMultiplier
// === شروط الشراء ===
buy1 = macdLine > signalLine
buy2 = rsi < 30
buy3 = ta.crossover(macdLine, signalLine)
buy4 = volumeSpike
buy5 = close > ta.highest(close, 10)
buyCount = (buy1 ? 1 : 0) + (buy2 ? 1 : 0) + (buy3 ? 1 : 0) + (buy4 ? 1 : 0) + (buy5 ? 1 : 0)
// === شروط البيع ===
sell1 = macdLine < signalLine
sell2 = rsi > 70
sell3 = ta.crossunder(macdLine, signalLine)
sell4 = volumeSpike
sell5 = close < ta.lowest(close, 10)
sellCount = (sell1 ? 1 : 0) + (sell2 ? 1 : 0) + (sell3 ? 1 : 0) + (sell4 ? 1 : 0) + (sell5 ? 1 : 0)
// === إشارات الشراء ===
plotshape((mode == "Buy" or mode == "Both") and buyCount == 5, title="BUY", location=location.abovebar, color=color.green, style=shape.labelup, text="BUY", textcolor=color.white)
plotshape((mode == "Buy" or mode == "Both") and buyCount >= 3 and buyCount < 5, title="BUY+", location=location.abovebar, color=color.lime, style=shape.labelup, text="BUY+", textcolor=color.black)
plotshape((mode == "Buy" or mode == "Both") and buyCount == 2 and enableWatch, title="Watch", location=location.abovebar, color=color.yellow, style=shape.triangleup, text="Watch", textcolor=color.black)
// === إشارات البيع ===
plotshape((mode == "Sell" or mode == "Both") and sellCount == 5, title="SELL", location=location.belowbar, color=color.red, style=shape.labeldown, text="SELL", textcolor=color.white)
plotshape((mode == "Sell" or mode == "Both") and sellCount >= 3 and sellCount < 5, title="SELL+", location=location.belowbar, color=color.maroon, style=shape.labeldown, text="SELL+", textcolor=color.white)
plotshape((mode == "Sell" or mode == "Both") and sellCount == 2 and enableWatch, title="WatchSell", location=location.belowbar, color=color.gray, style=shape.triangledown, text="Watch", textcolor=color.black)
// === عداد الشروط تحت الشمعة ===
if showConditionCount and buyCount >= 3
label.new(bar_index, low, str.tostring(buyCount) + "/5", yloc=yloc.belowbar, style=label.style_label_down, textcolor=color.white, size=size.tiny, color=color.black)
if showConditionCount and sellCount >= 3
label.new(bar_index, high, str.tostring(sellCount) + "/5", yloc=yloc.abovebar, style=label.style_label_up, textcolor=color.white, size=size.tiny, color=color.red)
Golden Khaled Recovery v2.0 – Dual Direction Dynamic
//@version=5
indicator("Golden Khaled Recovery v2.0 – Dual Direction Dynamic", overlay=true)
// === الإعدادات ===
mode = input.string("Both", title="Signal Mode", options= )
enableWatch = input.bool(true, title="Show Watch Signals (Weak Setup)")
showConditionCount = input.bool(true, title="Show Conditions Count Below Candle")
// === المؤشرات ===
macdFast = input.int(12, "MACD Fast")
macdSlow = input.int(26, "MACD Slow")
macdSignal = input.int(9, "MACD Signal")
rsiPeriod = input.int(14, "RSI Period")
volumeSpikeMultiplier = input.float(1.5, "Volume Spike Multiplier")
// === حساب المؤشرات ===
= ta.macd(close, macdFast, macdSlow, macdSignal)
rsi = ta.rsi(close, rsiPeriod)
volumeSpike = volume > ta.sma(volume, 20) * volumeSpikeMultiplier
// === شروط الشراء ===
buy1 = macdLine > signalLine
buy2 = rsi < 30
buy3 = ta.crossover(macdLine, signalLine)
buy4 = volumeSpike
buy5 = close > ta.highest(close, 10)
buyCount = (buy1 ? 1 : 0) + (buy2 ? 1 : 0) + (buy3 ? 1 : 0) + (buy4 ? 1 : 0) + (buy5 ? 1 : 0)
// === شروط البيع ===
sell1 = macdLine < signalLine
sell2 = rsi > 70
sell3 = ta.crossunder(macdLine, signalLine)
sell4 = volumeSpike
sell5 = close < ta.lowest(close, 10)
sellCount = (sell1 ? 1 : 0) + (sell2 ? 1 : 0) + (sell3 ? 1 : 0) + (sell4 ? 1 : 0) + (sell5 ? 1 : 0)
// === إشارات الشراء ===
plotshape((mode == "Buy" or mode == "Both") and buyCount == 5, title="BUY", location=location.abovebar, color=color.green, style=shape.labelup, text="BUY", textcolor=color.white)
plotshape((mode == "Buy" or mode == "Both") and buyCount >= 3 and buyCount < 5, title="BUY+", location=location.abovebar, color=color.lime, style=shape.labelup, text="BUY+", textcolor=color.black)
plotshape((mode == "Buy" or mode == "Both") and buyCount == 2 and enableWatch, title="Watch", location=location.abovebar, color=color.yellow, style=shape.triangleup, text="Watch", textcolor=color.black)
// === إشارات البيع ===
plotshape((mode == "Sell" or mode == "Both") and sellCount == 5, title="SELL", location=location.belowbar, color=color.red, style=shape.labeldown, text="SELL", textcolor=color.white)
plotshape((mode == "Sell" or mode == "Both") and sellCount >= 3 and sellCount < 5, title="SELL+", location=location.belowbar, color=color.maroon, style=shape.labeldown, text="SELL+", textcolor=color.white)
plotshape((mode == "Sell" or mode == "Both") and sellCount == 2 and enableWatch, title="WatchSell", location=location.belowbar, color=color.gray, style=shape.triangledown, text="Watch", textcolor=color.black)
// === عداد الشروط تحت الشمعة ===
if showConditionCount and buyCount >= 3
label.new(bar_index, low, str.tostring(buyCount) + "/5", yloc=yloc.belowbar, style=label.style_label_down, textcolor=color.white, size=size.tiny, color=color.black)
if showConditionCount and sellCount >= 3
label.new(bar_index, high, str.tostring(sellCount) + "/5", yloc=yloc.abovebar, style=label.style_label_up, textcolor=color.white, size=size.tiny, color=color.red)
Golden Pattern – Head & Shoulders v2.2//@version=5
indicator("Golden Pattern – Head & Shoulders v2.2", overlay=true)
enable_HS = input.bool(true, "Enable Head & Shoulders Detection")
show_targets = input.bool(true, "Show TP1/TP2/TP3 Levels")
min_dist = input.int(5, "Min Distance Between Points", minval=3)
sensitivity = input.float(1.5, "Deviation %", minval=0.1)
sl_buffer = input.float(0.5, "SL Buffer %")
// نقاط محورية
ph = ta.pivothigh(high, min_dist, min_dist)
pl = ta.pivotlow(low, min_dist, min_dist)
// تخزين الرأس والكتفين
var float sh1 = na
var float head = na
var float sh2 = na
var int sh1_bar = na
var int head_bar = na
var int sh2_bar = na
var float ish1 = na
var float ihead = na
var float ish2 = na
var int ish1_bar = na
var int ihead_bar = na
var int ish2_bar = na
// رأس وكتفين (بيع)
if not na(ph)
if na(sh1)
sh1 := ph
sh1_bar := bar_index
else if na(head) and ph > sh1 and bar_index - sh1_bar > min_dist
head := ph
head_bar := bar_index
else if na(sh2) and ph < head and math.abs(ph - sh1)/sh1 < sensitivity/100 and bar_index - head_bar > min_dist
sh2 := ph
sh2_bar := bar_index
else
sh1 := ph
sh1_bar := bar_index
head := na
sh2 := na
// رأس وكتفين معكوس (شراء)
if not na(pl)
if na(ish1)
ish1 := pl
ish1_bar := bar_index
else if na(ihead) and pl < ish1 and bar_index - ish1_bar > min_dist
ihead := pl
ihead_bar := bar_index
else if na(ish2) and pl > ihead and math.abs(pl - ish1)/ish1 < sensitivity/100 and bar_index - ihead_bar > min_dist
ish2 := pl
ish2_bar := bar_index
else
ish1 := pl
ish1_bar := bar_index
ihead := na
ish2 := na
// خطوط الرقبة
neckline_sell = (sh1 + sh2) / 2
neckline_buy = (ish1 + ish2) / 2
sell_break = enable_HS and not na(sh2) and close < neckline_sell and bar_index > sh2_bar
buy_break = enable_HS and not na(ish2) and close > neckline_buy and bar_index > ish2_bar
// TP / SL
depth_sell = head - neckline_sell
depth_buy = neckline_buy - ihead
tp1_sell = sell_break ? close - depth_sell : na
tp2_sell = sell_break ? close - depth_sell * 1.5 : na
tp3_sell = sell_break ? close - depth_sell * 2.0 : na
sl_sell = sell_break ? head + head * sl_buffer / 100 : na
tp1_buy = buy_break ? close + depth_buy : na
tp2_buy = buy_break ? close + depth_buy * 1.5 : na
tp3_buy = buy_break ? close + depth_buy * 2.0 : na
sl_buy = buy_break ? ihead - ihead * sl_buffer / 100 : na
// منع التكرار
var bool lastBuyPlotted = false
var bool lastSellPlotted = false
var bool plotBuySignal = false
var bool plotSellSignal = false
plotBuySignal := false
plotSellSignal := false
if buy_break and not lastBuyPlotted
plotBuySignal := true
lastBuyPlotted := true
lastSellPlotted := false
if sell_break and not lastSellPlotted
plotSellSignal := true
lastSellPlotted := true
lastBuyPlotted := false
// إشارات الدخول
plotshape(plotBuySignal, location=location.belowbar, style=shape.labelup, color=color.green, text="BUY")
plotshape(plotSellSignal, location=location.abovebar, style=shape.labeldown, color=color.red, text="SELL")
// رسم الأهداف (مع زر تحكم)
if plotBuySignal and show_targets
line.new(bar_index, tp1_buy, bar_index + 20, tp1_buy, color=color.green)
line.new(bar_index, tp2_buy, bar_index + 20, tp2_buy, color=color.teal)
line.new(bar_index, tp3_buy, bar_index + 20, tp3_buy, color=color.blue)
line.new(bar_index, sl_buy, bar_index + 20, sl_buy, color=color.red)
if plotSellSignal and show_targets
line.new(bar_index, tp1_sell, bar_index + 20, tp1_sell, color=color.green)
line.new(bar_index, tp2_sell, bar_index + 20, tp2_sell, color=color.teal)
line.new(bar_index, tp3_sell, bar_index + 20, tp3_sell, color=color.blue)
line.new(bar_index, sl_sell, bar_index + 20, sl_sell, color=color.red)
Golden Smart Entry Pro v1.0 – Dynamic Filtered Edition
//@version=5
indicator("Golden Smart Entry Pro v1.0 – Dynamic Filtered Edition", overlay=true)
// === الإعدادات ===
mode = input.string("Auto", title="Trade Mode", options= )
waveTF = input.timeframe("Current", title="Wave Analysis Timeframe", options= )
// === إعدادات الشروط ===
// المؤشرات الفنية (كمثال مبدئي، سيتم تحسينها لاحقاً)
rsiPeriod = input.int(14, title="RSI Period")
rsiOB = input.int(70, title="RSI Overbought")
rsiOS = input.int(30, title="RSI Oversold")
rsi = ta.rsi(close, rsiPeriod)
// ATR للحركة الطبيعية
atrPeriod = input.int(14, title="ATR Period")
atr = ta.atr(atrPeriod)
// === موجة سعرية بسيطة للفكرة الأولية ===
// سيتم تطوير منطق الموجة حسب الفاصل الزمني المختار
waveHigh = ta.highest(high, 20)
waveLow = ta.lowest(low, 20)
waveLength = waveHigh - waveLow
// === إشارات المراقبة ===
watchBuy = ta.crossover(rsi, rsiOS)
watchSell = ta.crossunder(rsi, rsiOB)
// === إشارات الدخول المؤكدة (مبدئيًا) ===
entryBuy = watchBuy and close > ta.sma(close, 20)
entrySell = watchSell and close < ta.sma(close, 20)
// === أوضاع التداول ===
validBuy = (mode == "Auto" or mode == "Calls Only") and entryBuy
validSell = (mode == "Auto" or mode == "Puts Only") and entrySell
// === أهداف ذكية بناءً على الموجة + فيبوناتشي + ATR
tp1 = close + (waveLength * 0.618)
tp2 = close + (waveLength * 1.0)
tp3 = close + (waveLength * 1.618)
tp1Sell = close - (waveLength * 0.618)
tp2Sell = close - (waveLength * 1.0)
tp3Sell = close - (waveLength * 1.618)
// === عرض الإشارات ===
plotshape(validBuy, title="BUY", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(validSell, title="SELL", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
plotshape(watchBuy and not validBuy, title="Watch Buy", location=location.belowbar, color=color.new(color.green, 70), style=shape.circle, text="Buy?")
plotshape(watchSell and not validSell, title="Watch Sell", location=location.abovebar, color=color.new(color.red, 70), style=shape.circle, text="Sell?")
// === أهداف مرئية (BUY)
plot(validBuy ? tp1 : na, title="TP1", color=color.green, linewidth=1, style=plot.style_linebr)
plot(validBuy ? tp2 : na, title="TP2", color=color.green, linewidth=1, style=plot.style_linebr)
plot(validBuy ? tp3 : na, title="TP3", color=color.green, linewidth=1, style=plot.style_linebr)
// === أهداف مرئية (SELL)
plot(validSell ? tp1Sell : na, title="TP1 Sell", color=color.red, linewidth=1, style=plot.style_linebr)
plot(validSell ? tp2Sell : na, title="TP2 Sell", color=color.red, linewidth=1, style=plot.style_linebr)
plot(validSell ? tp3Sell : na, title="TP3 Sell", color=color.red, linewidth=1, style=plot.style_linebr)
Spazz Elite Top SignalsBreadth trust x VIX divergence top signal generator
Core Components
1. Breadth Indicators
The indicator collects data on the percentage of stocks trading above various moving averages:
2. VIX Analysis
The indicator incorporates the VIX (Volatility Index) to detect complacency and potential volatility divergences:
Auto-detects the appropriate volatility index for the instrument (VIX for S&P 500, VXN for Nasdaq, etc.)
Identifies when VIX is unusually low (market complacency)
Detects when price makes new highs but VIX isn't making new lows (bearish divergence)
Monitors for VIX bottoming patterns while prices continue to rise
POINT SYSTEM FOR SIGNAL GENERATION LOGIC
Signal Generation Logic
Score Accumulation: Points accumulate over time as warning conditions appear
Signal Thresholds:
Strong Signal: Score reaches 10 points (moderately concerning)
Extreme Signal: Score reaches 15 points (significantly concerning)
Signal Suppression:
Prevents signal clustering with a 5-bar minimum between signals
Resets score entirely after 120 bars with no new warning conditions
Signal Display:
Strong Signal: Orange arrow above the price bar
Extreme Signal: Red arrow above the price bar