RSI HTF Hardcoded (A/B Presets) + Regimes [CHE]RSI HTF Hardcoded (A/B Presets) + Regimes — Higher-timeframe RSI emulation with acceptance-based regime filter and on-chart diagnostics
Summary
This indicator emulates a higher-timeframe RSI on the current chart by resolving hardcoded “HTF-like” lengths from a time-bucket mapping, avoiding cross-timeframe requests. It computes RSI on a resolved length, smooths it with a resolved moving average, and derives a histogram-style difference (RSI minus its smoother). A four-state regime classifier is gated by a dead-band and an acceptance filter requiring consecutive bars before a regime is considered valid. An on-chart table reports the active preset, resolved mapping tag, resolved lengths, and the current filtered regime.
Pine version: v6
Overlay: false
Primary outputs: RSI line, SMA(RSI) line, RSI–SMA histogram columns, reference levels (30/50/70), regime-change alert, info table
Motivation
Cross-timeframe RSI implementations often rely on `request.security`, which can introduce repaint pathways and additional update latency. This design uses deterministic, on-series computation: it infers a coarse target bucket (or uses a forced bucket) and resolves lengths accordingly. The dead-band reduces noise at the decision boundaries (around RSI 50 and around the RSI–SMA difference), while the acceptance filter suppresses rapid flip-flops by requiring sustained agreement across bars.
Differences
Baseline: Standard RSI with a user-selected length on the same timeframe, or HTF RSI via cross-timeframe requests.
Key differences:
Hardcoded preset families and a bucket-based mapping to resolve “HTF-like” lengths on the current chart.
No `request.security`; all calculations run on the chart’s own series.
Regime classification uses two independent signals (RSI relative to 50 and RSI–SMA difference), gated by a configurable dead-band and an acceptance counter.
Always-on diagnostics via a persistent table (optional), showing preset, mapping tag, resolved lengths, and filtered regime.
Practical effect: The oscillator behaves like a slower, higher-timeframe variant with more stable regime transitions, at the cost of delayed recognition around sharp turns (by design).
How it works
1. Bucket selection: The script derives a coarse “target bucket” from the chart timeframe (Auto) or uses a user-forced bucket.
2. Length resolution: A chosen preset defines base lengths (RSI length and smoothing length). A bucket/timeframe mapping resolves a multiplier, producing final lengths used for RSI and smoothing.
3. Oscillator construction: RSI is computed on the resolved RSI length. A moving average of RSI is computed on the resolved smoothing length. The difference (RSI minus its smoother) is used as the histogram series.
4. Regime classification: Four regimes are defined from:
RSI relative to 50 (bullish above, bearish below), with a dead-band around 50
Difference relative to 0 (positive/negative), with a dead-band around 0
These two axes produce strong/weak bull and bear states, plus a neutral state when inside the dead-band(s).
5. Acceptance filter: The raw regime must persist for `n` consecutive bars before it becomes the filtered regime. The alert triggers when the filtered regime changes.
6. Diagnostics and visualization: Histogram columns change shade based on sign and whether the difference is rising/falling. The table displays preset, mapping tag, resolved lengths, and the filtered regime description.
Parameter Guide
Source — Input series for RSI — Default: Close — Smoother sources reduce noise but add lag.
Preset — Base lengths family — Default: A(14/14) — Switch presets to change RSI and smoothing responsiveness.
Target Bucket — Auto or forced bucket — Default: Auto — Force a bucket to lock behavior across chart timeframe changes.
Table X / Table Y — Table anchor — Default: right / top — Move to avoid covering content.
Table Size — Table text size — Default: normal — Increase for presentations, decrease for dense layouts.
Dark Mode — Table theme — Default: enabled — Match chart background for readability.
Show Table — Toggle diagnostics table — Default: enabled — Disable for a cleaner pane.
Epsilon (dead-band) — Noise gate for decisions — Default: 1.0 — Raise to reduce flips near boundaries; lower to react faster.
Acceptance bars (n) — Bars required to confirm a regime — Default: 3 — Higher reduces whipsaw; lower increases reactivity.
Reading
Histogram (RSI–SMA):
Above zero indicates RSI is above its smoother (positive momentum bias).
Below zero indicates RSI is below its smoother (negative momentum bias).
Darker/lighter shading indicates whether the difference is increasing or decreasing versus the previous bar.
RSI vs SMA(RSI):
RSI’s position relative to 50 provides broad directional bias.
RSI’s position relative to its smoother provides momentum confirmation/contra-signal.
Regimes:
Strong bull: RSI meaningfully above 50 and difference meaningfully above 0.
Weak bull: RSI above 50 but difference below 0 (pullback/transition).
Strong bear: RSI meaningfully below 50 and difference meaningfully below 0.
Weak bear: RSI below 50 but difference above 0 (pullback/transition).
Neutral: inside the dead-band(s).
Table:
Use it to validate the active preset, the mapping tag, the resolved lengths, and the filtered regime output.
Workflows
Trend confirmation:
Favor long bias when strong bull is active; favor short bias when strong bear is active.
Treat weak regimes as pullback/transition context rather than immediate reversals, especially with higher acceptance.
Structure + oscillator:
Combine regimes with swing structure, breakouts, or a baseline trend filter to avoid trading against dominant structure.
Use regime change alerts as a “state change” notification, not as a standalone entry.
Multi-asset consistency:
The bucket mapping helps keep a consistent “feel” across different chart timeframes without relying on external timeframe series.
Behavior/Constraints
Intrabar behavior:
No cross-timeframe requests are used; values can still evolve on the live bar and settle at close depending on your chart/update timing.
Warm-up requirements:
Large resolved lengths require sufficient history to seed RSI and smoothing. Expect a warm-up period after loading or switching symbols/timeframes.
Latency by design:
Dead-band and acceptance filtering reduce noise but can delay regime changes during sharp reversals.
Chart types:
Intended for standard time-based charts. Non-time-based or synthetic chart types (e.g., Heikin-Ashi, Renko, Kagi, Point-and-Figure, Range) can distort oscillator behavior and regime stability.
Tuning
Too many flips near decision boundaries:
Increase Epsilon and/or increase Acceptance bars.
Too sluggish in clean trends:
Reduce Acceptance bars by one, or choose a faster preset (shorter base lengths).
Too sensitive on lower timeframes:
Choose a slower preset (longer base lengths) or force a higher Target Bucket.
Want less clutter:
Disable the table and keep only the alert + plots you need.
What it is/isn’t
This indicator is a regime and visualization layer for RSI using higher-timeframe emulation and stability gates. It is not a complete trading system and does not provide position sizing, risk management, or execution rules. Use it alongside structure, liquidity/volatility context, and protective risk controls.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Best regards and happy trading
Chervolino.
Индикаторы и стратегии
SuperTrend Zone Rejection [STRZ] CONCEPT -
This indicator identifies trend-continuation setups by combining the Super Trend with dynamic Average True Range (ATR) value zones. It highlights specific price action behaviour's—specifically wick rejections and momentum closes—that occur during pullbacks into the trend baseline.
HOW IT WORKS -
The script operates on three logic gates:
>> Trend Filter: Uses a standard Super Trend (Factor 3, Period 10 default) to define market direction.
>> Dynamic Zones: Projects a volatility-based zone (default 2.0x ATR) above or below the Super Trend line to define a valid pullback area.
>> Signal Detection: Identifies specific candle geometries occurring within these zones.
>> Rejection: Candles with significant wicks testing the zone support/resistance.
>> Momentum: Candles that open within the zone and close in the upper/lower quartile of their range.
FEATURES -
>> Dynamic Channel: Visualizes the active buy/sell zone using a continuous, non-repainting box.
>> Volatile Filtering: Filters out low-volatility candles (doji's/noise) based on minimum ATR size.
>> Visuals: Color-coded trend visualization with distinct signal markers for qualified entries.
SETTINGS -
>> Super Trend: Adjustable Factor and ATR Period.
>> Zone Multiplier: Controls the width of the pullback zone relative to ATR.
>> Visuals: Customizable colours for zones and signals to fit light/dark themes.
Grok/Claude AI Regime Engine • Grok/Claude X SeriesGrok/Claude AI Regime Engine
This is a TradingView indicator designed to identify market regimes (bullish, bearish, or neutral) and generate buy/sell signals based on multiple technical factors working together.
Core Concept
At its heart, this indicator tries to answer a simple question: "What kind of market are we in right now, and when should I consider buying or selling?"
It does this by blending several well-known technical analysis tools into a unified system. Think of it as a dashboard that synthesizes multiple indicators into clear, actionable information.
How It Determines Market Regime
The indicator creates what it calls a "Money Line" by combining two exponential moving averages (EMAs) — a fast one (default 8 periods) and a slow one (default 24 periods). These are weighted together, with the fast EMA getting 60% influence by default. This blended line serves as the primary trend reference.
Bullish regime is declared when the short EMA crosses above the long EMA, provided the RSI isn't already in overbought territory. Bearish regime kicks in when the opposite happens — short EMA crosses below long, as long as RSI isn't oversold. Neutral regime occurs when the indicator detects sideways, choppy conditions.
The neutral detection is particularly interesting. It uses two optional methods: one looks at how flat the Money Line's slope is (compared to recent volatility via ATR), and the other checks how close together the two EMAs are as a percentage of price. When the market is grinding sideways, these methods help the indicator avoid falsely calling a trend.
Signal Generation Logic
Buy and sell signals are generated using Donchian Channel breakouts as the trigger mechanism. The Donchian Channel tracks the highest high and lowest low over a lookback period (default 20 bars), using the previous bar's values to avoid repainting issues.
A buy signal fires when price touches or breaks below the lower Donchian band, suggesting a potential reversal from oversold conditions. A sell signal fires when price reaches the upper band. However, these raw breakout signals pass through several filters before being displayed:
FilterPurposeADX thresholdOnly signals when the market has sufficient trend strength (default: ADX > 25)RSI filterBuy signals require RSI to be oversold; sell signals require overbought RSICooldown periodPrevents signal spam by requiring a minimum number of bars between signalsClose confirmationOptional setting to require a candle close beyond the band, not just a wick
Additional Metrics Displayed
The indicator calculates and displays several supplementary metrics in an information panel. ADX (Average Directional Index) measures trend strength — values below 15 suggest a weak, ranging market, while above 25 indicates a strong trend. The colored dots at the bottom of the chart reflect this: white for weak, orange for moderate, blue for strong.
BBWP (Bollinger Band Width Percentile) measures current volatility relative to historical volatility over roughly a year of data. High readings suggest volatility expansion; low readings suggest compression, which often precedes significant moves.
Alerts and Notifications
The indicator generates alerts in two scenarios: when the market regime changes (bullish to bearish, etc.) and when buy/sell signals trigger. Alert messages include the ticker symbol, timeframe, current price, RSI, ADX, and other relevant context so you can quickly assess the situation without opening the chart.
Visual Customization
Users can toggle various display elements on or off, including the EMA lines, Donchian bands, shaded regime zones between the bands, and price labels at signal points. The shading between the upper and lower bands changes color based on the current regime — green for bullish, magenta for bearish, and blue for neutral — providing an at-a-glance view of market conditions over time.
Summary
This is essentially a trend-following system with mean-reversion entry signals, filtered by momentum and trend strength indicators. It's designed to help traders identify favorable market conditions and time entries while avoiding signals during choppy, directionless periods. The multiple confirmation layers aim to reduce false signals, though like any technical system, it will still produce losing trades in certain market conditions.
🔥 DarkPool's Fear & Greed v4 🔥DarkPool Fear & Greed v4 is a composite sentiment indicator designed to gauge market psychology in real-time. Unlike standard oscillators that rely on a single metric, this tool aggregates data from four distinct technical sources—RSI, MACD, Bollinger Bands, and Moving Averages—to create a unified "Index Score" ranging from 0 to 100.
Beyond general sentiment, the script employs custom algorithms to detect specific market anomalies, including sustainable buying pressure (FOMO), capitulation events (Panic), and trend reversals (Divergences).
Key Features
Composite Index: A weighted average of Momentum, Trend, Volatility, and Price Location.
Anomaly Detection: Specialized logic to flag high-momentum "FOMO" events and high-volatility "Panic" drops.
Divergences: Automatically spots bearish and bullish discrepancies between the sentiment index and price action.
Live Dashboard: A real-time data table displaying current sentiment zones, intensity scores, and volume ratios.
How to Use
1. The Fear & Greed Index The main oscillator line moves between 0 and 100 to visualize market sentiment:
0-20 (Extreme Fear): Deeply oversold; potential capitulation or buying opportunity.
20-40 (Fear): General bearish sentiment.
40-60 (Neutral): Indecisive market.
60-80 (Greed): General bullish sentiment.
80-100 (Extreme Greed): Overbought conditions; potential for a pullback.
2. Visual Signals
FOMO (Triangle Up): Marks candles with excessive buying volume and RSI momentum.
Panic (Triangle Down): Marks candles with sharp percentage drops and volatility spikes.
Divergences (Circles): distinct markers appear when price action contradicts the sentiment index, often signaling a reversal.
3. The Dashboard Located on the chart, the dashboard provides a snapshot of the current market state, including the specific "Intensity" of FOMO or Panic events and a Volume-to-MA ratio to gauge participation.
4. Alerts The script is fully integrated with the alert system. You can set alerts for "Any alert() function call" to receive dynamic notifications for FOMO detections, Panic drops, Extreme Zone entries, and confirmed Divergences.
Disclaimer This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a guarantee of future results.
Advanced VolumeAdvanced Volume is a modular volume analysis suite designed to uncover hidden buying and selling pressure that standard volume bars often miss. Instead of cluttering your chart with multiple oscillators, this tool combines five institutional metrics—Chaikin Money Flow (CMF), Money Flow Index (MFI), Volume RSI, Relative Volume (RVOL), and Volume Oscillator—into a single, adaptive pane.
The script features a "Hero Metric" system, allowing you to choose which oscillator is visualized on the chart, while an intelligent dashboard monitors the remaining metrics in the background to generate a composite "Total" market bias score.
Key Features
5-in-1 Architecture: Switch the main view between CMF, MFI, Volume RSI, RVOL, or Volume Oscillator without removing the indicator.
Divergence Engine: Automatically detects and labels bullish and bearish discrepancies between price action and the selected volume metric.
Hidden Liquidity Detection: Identifies "Churn" candles—specifically Dojis with unusually high relative volume—often signaling absorption or a potential reversal.
Live Dashboard: A real-time table displaying the status of all five metrics simultaneously, culminating in an aggregate Bullish/Bearish/Neutral score.
How to Use
1. The Hero Metric (Main Oscillator) By default, the indicator displays Chaikin Money Flow (CMF).
Green Bars: Buying pressure (Inflow).
Red Bars: Selling pressure (Outflow).
Customization: You can change this in the settings to MFI, Volume RSI, or RVOL depending on your trading style.
2. Divergence Signals The script looks for pivot points where price and volume disagree.
Bullish Div (Label Up): Price makes a lower low, but volume momentum makes a higher low. This suggests selling exhaustion.
Bearish Div (Label Down): Price makes a higher high, but volume momentum makes a lower high. This suggests weak buying conviction.
3. Hidden Liquidity (Yellow Diamonds) Small yellow diamond markers appear above candles when a specific condition is met: The candle is a Doji (indecision) BUT Relative Volume is extremely high (default > 2.0x average). This indicates a battle between buyers and sellers where significant volume was exchanged with zero net price movement—often a sign of a localized top or bottom.
4. The Dashboard Located on the chart, this panel provides a summary of the broader market health:
Money Flow: Tracks CMF status.
MFI: Checks for Overbought (>80) or Oversold (<20) conditions.
Rel Vol: Displays the current volume multiplier (e.g., 2.5x).
Vs VWAP: Checks if the price is above or below the Volume Weighted Average Price.
TOTAL: Sums up the signals from all metrics to give a final trend bias (Bullish, Bearish, or Neutral).
Disclaimer This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a guarantee of future results.
Sk M Sir JiSimple indicator that plots three alma moving averages and provides bgcolor based on below conditions
Red => If RSI (length 14) is below 50 or low is below the lower Bollinger band (length 20)
Green => If RSI (length 14) is above 50 or high is above the upper Bollinger band (length 20)
LETHINH-Swing pa,smc🟦 📌 Title (English)
Swing High / Swing Low – 3-Candle Fractal (5-Bar Pivot) | Auto Alerts
⸻
🟩 📌 Short Description
A clean and reliable swing high / swing low detector based on the classic 3-candle (5-bar) fractal pivot. Automatically marks SH/SL and triggers alerts when a swing is confirmed. No repainting after confirmation.
⸻
🟧 📌 Full Description (for TradingView Publishing)
🔶 Swing High / Swing Low – 3-Candle Fractal (5-Bar Pivot)
This indicator identifies Swing Highs (SH) and Swing Lows (SL) using the classic 3-candle fractal pattern, also known as the 5-bar pivot.
It marks swing points only after full confirmation, making it highly reliable and suitable for structure-based trading.
⸻
🔶 📍 How It Works
A swing is confirmed when the center candle is higher (or lower) than the two candles on each side:
Swing High (SH)
high > high , high , high
Swing Low (SL)
low < low , low , low
The confirmation occurs after 2 right candles close, so the indicator does not repaint once a swing is identified.
⸻
🔶 📍 Key Features
• Detects clean and accurate swings
• Uses pure price action — no indicators, no lag
• Marks swing high (SH) and swing low (SL) directly on the chart
• Non-repainting after confirmation
• Works on all timeframes and all markets
• Extremely lightweight and fast
• Includes alert conditions for both SH and SL
Perfect for traders using:
• Market Structure (BOS / CHoCH)
• Order Blocks (OB)
• Smart Money Concepts (SMC)
• Liquidity hunts
• Wyckoff
• Support/Resistance
• Price Action entries
⸻
🔶 📍 Why This Indicator Is Useful
Swing points are the foundation of market structure.
Accurately detecting them helps traders:
• Identify trend shifts
• Spot BOS / CHoCH correctly
• Find key zones (OB, liquidity levels, supply/demand)
• Time entries more precisely
• Avoid fake structure breaks
This indicator ensures swings are plotted only when fully confirmed, reducing noise and confusion.
⸻
🔶 📍 Alerts
You can create alerts for both conditions:
• Swing High Confirmed
• Swing Low Confirmed
Recommended settings:
• Once per bar close
• Open-ended alert
With alerts enabled, TradingView will automatically notify you every time a new swing forms.
⸻
🔶 📍 No Repainting
Once a swing is confirmed and plotted, it will not change or disappear.
This makes the indicator reliable for real-time alerts and backtesting.
⸻
🔶 📍 Pine Script (v5)
Paste your indicator code here if you want it visible.
Or leave the code hidden if you are publishing as protected.
⸻
🔶 📍 Final Notes
• This indicator focuses on confirmation, not prediction
• It is designed for clean structure reading
• All markets supported: Forex, Crypto, Stocks, Indexes, Commodities
• Suitable for scalping, intraday, swing, and even higher-timeframe trading
If you find this tool helpful, feel free to give it a like and add it to your favorites ❤️
Your support helps me share more tools with the community!
DeepClean Linear indicator 1. Indicator Name
DeepClean Linear indicator
2. One-Line Introduction
A trend-recognition indicator that overlays a “transparent wave” on price, removing noise and revealing directional bias and trend intensity in a highly intuitive visual form.
3. Overall Summary
The DeepClean Linear indicator calculates trend direction using changes in linear regression slope and determines trend strength by comparing how consistently the regression line moves over a defined lookback window.
Rather than merely identifying trend direction, the indicator applies a triple-layer noise-filtering process (EMA → SMA → RMA) to produce a clean, wave-shaped data line that filters out unnecessary market noise.
This transparent wave sits directly on top of price, allowing traders to visually compare price movement and trend strength at the same time.
A stronger trend results in a taller, thicker wave, while weakening momentum causes the wave to thin, making it easier to spot trend continuation, exhaustion, or upcoming reversal.
Color automatically shifts based on trend:
Bright cyan/teal during bullish conditions
Reddish tones during bearish conditions
Transparency dynamically adjusts depending on strength
The indicator excels at identifying the true underlying trend by ignoring minor fluctuations and is well suited for scalping, swing trading, and position trading.
It also significantly reduces false signals in ranging markets, making it ideal for trend-following strategies.
4. Advantages
① Ultra-Clean Noise-Reduced Wave
Utilizes a 3-stage smoothing filter (EMA → SMA → RMA) to produce a much cleaner wave than standard moving averages, highlighting only core trend movement.
② Trend Direction & Strength at a Glance
Based on comparative linear regression behavior, the indicator quantifies both direction and strength, making convergence/divergence highly visible.
③ Intuitive Price Overlay Visualization
The semi-transparent wave sits directly on price action, allowing traders to instantly see divergence from price, trend weakening, or early turning points.
④ Dynamic Transparency Coloring
Strong trends appear bold and intense, while weaker trends fade visually—making signal interpretation effortless.
⑤ Excellent Range Filtering
During low-direction phases (state = 0), the wave turns neutral, preventing forced or premature entries.
⑥ Multi-Timeframe Compatibility
The wave remains stable from 1-minute to weekly charts, making it suitable for trend analysis, execution, and risk control across all timeframes.
📌 Core Concept Overview
The indicator evaluates the relative comparison of linear regression values over the last n periods.
A positive trend value indicates bullish bias
A negative trend value indicates bearish bias
Intensity represents strength and controls wave height
waveTop / waveBot define the visual wave area relative to price
State Values
1 = Bullish Trend
-1 = Bearish Trend
0 = Neutral / Weak Direction
⚙️ Settings Overview
Option Description
Trend Lookback (n) Comparison window for regression slope. Higher = bigger trend focus.
Range Tolerance (%) Strength threshold to classify bullish/bearish movement. Higher = more conservative.
Source Price source for regression calculations.
Linear Reg Length Length of the linear regression.
Noise Filter Strength (smoothK) Controls the smoothing intensity. Higher = smoother wave.
Wave Amplitude (amp) Adjusts the height/thickness of the wave.
Bull/Bear Color Colors for bullish/bearish waves.
Base Transparency Base opacity level; modified dynamically by trend strength.
📈 Bullish Timing Recognition Examples
Wave begins turning brighter teal and more opaque, indicating strengthening upward pressure.
waveTop expands above price, signaling early trend expansion.
State flips to 1, often marking a trend restart or early reversal phase.
A steadily rising wave height suggests sustained bullish momentum.
📉 Bearish Timing Recognition Examples
Wave shifts into red tones, showing bearish dominance.
waveBot expands below price, indicating rising downside volatility.
State stays at -1 while intensity increases, signaling entry into strong downtrend conditions.
A shift from weak → strong bearish intensity can provide short-entry timing cues.
🧪 Recommended Usage
Use as a core component in trend-following systems
Adjust position size based on wave thickness (trend strength)
Combine with RSI/MACD to reduce false signals during overbought/oversold zones
Sudden wave expansion during volatility increases helps detect trend acceleration
In sideways markets, frequent state = 0 readings help avoid low-probability trades
🔒 Important Notes
As a trend-based indicator, it may misread choppy/ranging markets
Because of smoothing, signals may appear slightly delayed
Extreme news volatility can temporarily distort trend clarity
Divergence Detector (MACD + Volume)Divergence Detector (MACD + Volume Confirmation)
This indicator automatically detects bullish and bearish divergences between price and MACD, enhanced with volume confirmation to filter out weak signals.
🔹 Core Logic
Pivot Detection:
The script identifies swing highs and lows (pivots) using customizable left/right lookback values.
Bullish Divergence:
Occurs when price makes a lower low, but MACD makes a higher low.
A label "Bull Div" appears below the bar; if confirmed by high volume, it shows "Bull Div 🔥".
Bearish Divergence:
Occurs when price makes a higher high, but MACD makes a lower high.
A label "Bear Div" appears above the bar; if confirmed by high volume, it shows "Bear Div 📉".
Volume Confirmation:
The indicator checks whether the volume at the pivot bar is above the moving average of volume (customizable length).
This ensures that divergence signals are backed by strong market participation.
Inputs
MACD Fast/Slow/Signal Length – standard MACD parameters
Pivot Lookback Left/Right – defines the swing structure sensitivity
Volume MA Length – defines how volume strength is validated
Output
Labels:
🔹 Bull Div / Bull Div 🔥 → Bullish divergence (confirmed with volume)
🔹 Bear Div / Bear Div 📉 → Bearish divergence (confirmed with volume)
Tips
Works best on higher timeframes and trending markets.
Volume confirmation helps filter false divergences in low liquidity conditions.
Combine with trend or structure indicators for better trade setups.
----------------------------------------------------------------------------------------------
اندیکاتور شناسایی واگرایی MACD با تأیید حجم
این اندیکاتور بهصورت خودکار واگراییهای صعودی و نزولی بین قیمت و MACD را شناسایی کرده و با استفاده از تأیید حجم (Volume Confirmation) سیگنالهای ضعیف را فیلتر میکند.
🔹 منطق عملکرد
شناسایی پیوتها:
نقاط چرخش (سقف و کف) با استفاده از تعداد کندلهای قابل تنظیم در دو سمت شناسایی میشوند.
واگرایی صعودی (Bullish):
زمانی که قیمت کف پایینتر و MACD کف بالاتر میسازد.
برچسب "Bull Div" در زیر کندل نمایش داده میشود؛ اگر حجم بالا باشد، با علامت 🔥 مشخص میگردد.
واگرایی نزولی (Bearish):
زمانی که قیمت سقف بالاتر و MACD سقف پایینتر میسازد.
برچسب "Bear Div" در بالای کندل نمایش داده میشود؛ اگر حجم بالا باشد، با 📉 مشخص میگردد.
تأیید حجم:
اگر حجم در کندل پیوت بالاتر از میانگین متحرک حجم باشد، سیگنال معتبرتر در نظر گرفته میشود.
تنظیمات ورودی
تنظیمات MACD (Fast, Slow, Signal)
پارامترهای شناسایی پیوت (Left / Right)
طول میانگین متحرک حجم (Volume MA Length)
خروجیها
Bull Div 🔥 / Bear Div 📉 برای واگراییهای تأییدشده با حجم
Bull Div / Bear Div برای واگراییهای بدون تأیید حجم
نکات کاربردی
بهترین عملکرد در تایمفریمهای بالا و بازارهای دارای روند
تأیید حجم به حذف سیگنالهای اشتباه در شرایط حجم پایین کمک میکند
برای دقت بیشتر، آن را با اندیکاتورهای روند یا ساختار ترکیب کنید
⚠️ Disclaimer:
This script is provided for educational and informational purposes only.
It does not constitute financial advice, and the author is not responsible for any financial losses caused by its use.
Always confirm signals with your own analysis and other tools before making trading decisions.
⚠️ توجه:
این اسکریپت صرفاً جهت آموزش و اطلاعرسانی طراحی شده و توصیه مالی یا سرمایهگذاری محسوب نمیشود.
نویسنده مسئول هیچگونه ضرر یا زیان احتمالی ناشی از استفاده از آن نیست.
لطفاً پیش از هر تصمیم معاملاتی، تحلیل شخصی خود را انجام داده و از این ابزار در کنار سایر ابزارهای تحلیل و مدیریت ریسک استفاده کنید.
🏛️ Inst. Value SuiteInstitutional Valuation Suite (IVS)
Executive Summary Traditional volatility indicators frequently exhibit limitations when applied to long-term secular growth assets. Because they calculate volatility in absolute currency units rather than percentage terms, standard deviation bands often distort or become obsolete during phases of exponential price expansion (e.g., significant capitalization shifts in Crypto or Growth Stocks).
The Institutional Valuation Suite addresses this latency by utilizing Geometric (Log-Normal) Standard Deviation. This methodology enables the model to adapt dynamically to the asset's price scale, providing statistically significant valuation zones regardless of price magnitude.
Operational Theory The model operates as a mean-reversion instrument, visualizing price action as a dynamic deviation from a "Fair Value" baseline. It quantifies statistical extremes to identify when an asset is overextended (Speculative Premium) or undervalued (Deep Discount) relative to historical volatility.
Key Features
1. Log-Normal Volatility Engine
Geometric Mode (Default): Calculates volatility in percentage terms. This is the requisite setting for assets exhibiting logarithmic growth, such as Cryptocurrencies and Technology equities.
Arithmetic Mode: Retains linear calculation methods for Forex pairs or range-bound assets where traditional standard deviation is preferred.
2. Valuation Heatmap
Visualizes valuation metrics directly onto price candles to mitigate subjective interpretation bias.
GREEN: Deep Value / Accumulation Zone (<−0.5σ).
ORANGE: Overvaluation / Premium Zone (>2.0σ).
RED: Speculative Anomaly Zone (>3.0σ).
3. Mean Reversion Signals
VALUE RECLAIM: Triggers when price re-enters the lower deviation band from below. This confirms support validation and filters out premature entries during high-momentum drawdowns.
TOP EXIT: Triggers when price breaks down from the upper speculative zone, signaling a potential trend exhaustion.
4. Statistical Dashboard
Displays a real-time Z-Score to quantify the standard deviations the current price is from its baseline.
>3.0: Statistical Anomaly (upper bound).
<−0.5: Statistical Discount (lower bound).
Configuration & Parameters
Per your requirements, the suggested code tooltips for your inputs are listed below.
Cycle Length
Determines the lookback period used to calculate the Fair Value baseline.
Crypto Macro: 200 (Approx. 4 Years).
Altcoins: 100 (Approx. 2 Years).
Equities (S&P 500): 50 (1 Year Trend).
Intraday: Set "Timeframe Lock" to "Chart".
Tooltip Text: "Sets the lookback period for the baseline calculation. Recommended: 200 for Crypto Macro, 50 for Equities, or adjust based on the asset's specific volatility cycle."
Timeframe Lock
Allows the user to fix the calculation to a specific timeframe or allow it to float with the chart.
Tooltip Text: "Locks the calculation to a specific timeframe (e.g., Daily, Weekly) to ensure baseline consistency when zooming into lower timeframes."
Technical Integrity
This indicator employs strict strict offset logic (barmerge.lookahead_on) to ensure historical data integrity. The signals rendered on historical bars are mathematically identical to those that would have appeared in a real-time environment, ensuring backtesting reliability.
Disclaimer: This script provides statistical analysis based on historical volatility metrics and does not constitute financial advice.
MA + ATR Channel (Custom)MA + ATR Channel
The moving average serves as the axis, with an upper and lower channel at x times the ATR acting as support and resistance.
Turtle Momentum StrategyTurtle momentum strategy as per Momentum Trading Strategy article on Substack (Nov 26, 2025)
Coach Cardave (Empowerment) — Strat Combos + Failed 2UP/2DOWN Strat combos and failed 2UP/2DOWN reversals, plus 1/3-3/1 showing how Coach Cardave times high-probability entries using liquidity, multi-timeframe analysis, and momentum shifts.
By using you’ll understand how failed 2s flip the script, convert traps into opportunity, and produce the “Small Bags Daily → Big Bags Weekly” consistency that defines the Empowerment trading style.
CSP Institutional Filter PRO This indicator evaluates whether a ticker qualifies for a high-probability Cash-Secured Put (CSP) based on an institutional options-selling framework. It checks RSI, momentum, support levels, ATR-based risk, IVR, DTE, and earnings timing to determine if the setup meets either the Standard CSP Module (30–45 DTE) or the Pre-Earnings CSP Module (7–21 days before earnings). The script visually marks valid setups, highlights risk zones, and provides an on-chart diagnostic summary.
Kai GoNoGo 2mKai GoNoGo 2m is a multi-factor trend confirmation system designed for fast intraday trading on the 2-minute chart.
It combines EMAs, MACD, RSI and ADX through a weighted scoring model to generate clear Go / NoGo conditions for both CALL (long) and PUT (short) setups.
The indicator paints the candles with pure colors to show the current strength of the trend:
Strong Go (Bright Blue): Full bullish alignment across EMAs, momentum and trend strength.
Weak Go (Light Blue): Bullish structure but with softer momentum.
Weak NoGo (Light Pink): Bearish structure starting to develop.
Strong NoGo (Bright Pink): Full bearish alignment across all components.
Neutral (Gray): No trend, compression or transition phase.
Components included:
EMA Trend Structure (9/21/50/100/200)
MACD Momentum (12-26-9)
RSI Confirmation (14)
ADX Trend Strength Filter via DMI (14,14)
Scoring system inspired by the original GoNoGo concept, improved for speed-based trading.
Designed for:
Scalping, 0DTE options, FAST trend continuation entries, and momentum confirmation on QQQ, SPY, NQ, ES and high-beta names.
This version uses pure colors (no gradients) for maximum clarity when trading fast charts.
Bollinger Bands HTF Hardcoded (Len 20 / Dev 2) [CHE]Bollinger Bands HTF Hardcoded (Len 20 / Dev 2) — Higher-timeframe BB emulation with bucket-based length scaling and on-chart diagnostics
Summary
This indicator emulates higher-timeframe Bollinger Bands directly on the current chart by scaling a fixed base length (20) via a timeframe-to-bucket multiplier map. It avoids cross-timeframe requests and instead applies the “HTF feel” by using a longer effective lookback on lower timeframes. Bands use the classic deviation of 2 and the original color scheme (Basis blue, Upper red, Lower green, blue fill). An on-chart table reports the resolved bucket, multiplier, and effective length.
Pine version: v6
Overlay: true
Primary outputs: Basis (SMA), Upper/Lower bands, background fill, optional info table
Motivation: Why this design?
Cross-timeframe Bollinger Bands typically rely on `request.security`, which can introduce complexity, mixed-bar alignment issues, and potential repaint paths depending on how users consume signals intrabar. This design offers a deterministic alternative: a single-series calculation on the chart timeframe, with a hardcoded “HTF emulation” achieved by scaling the BB length according to coarse higher-timeframe buckets. The result is a smoother, slower band structure on low timeframes without external timeframe calls.
What’s different vs. standard approaches?
Baseline: Standard Bollinger Bands with a fixed user length on the current timeframe, or true HTF bands via `request.security`.
Architecture differences:
Fixed base parameters: Length = 20, Deviation = 2.
Bucket mapping derived from the chart timeframe (or manually overridden).
No `request.security`; all computations occur on the current series.
Effective length is “20 × multiplier”, where multiplier approximates aggregation into the chosen bucket.
Diagnostics table for transparency (bucket, multiplier, resolved length, bandwidth).
Practical effect: On lower timeframes, the effective length becomes much larger, behaving like a higher-timeframe Bollinger structure (smoother basis and wider stability), while remaining purely local to the chart series.
How it works (technical)
The script first resolves a target bucket (“Auto” or a manual selection such as 60/240/1D/…/12M). It then computes a multiplier that approximates how many current bars fit into that bucket (e.g., 1m→60m uses mult≈60, 5m→60m uses mult≈12). The effective Bollinger length becomes:
`bb_len = 20 mult` (clamped to at least 1)
Using the effective length, it calculates:
`basis = ta.sma(src, bb_len)`
`dev = 2 ta.stdev(src, bb_len)`
`upper = basis + dev`
`lower = basis - dev`
A “bandwidth” diagnostic is also computed as `(upper-lower) / basis` (guarded against division by zero) and shown in the table as a percentage. A persistent table object is created/deleted based on the visibility toggle and updated only on the last bar for performance.
Parameter Guide
Source — Input series for the bands — Default: Close
Use close for classic behavior; smoother sources reduce responsiveness.
Bucket — HTF bucket selection — Default: Auto
Auto derives a bucket from the chart timeframe; manual selection forces the intended target bucket.
Offset — Plot offset — Default: 0
Shifts plots forward/back for visual alignment, displayed in the data window.
Table X / Table Y — Table anchor — Default: Right / Top
Places the diagnostics table in one of nine anchor points.
Table Size — Table text size — Default: Normal
Use small on dense charts, large for presentations.
Dark Mode — Table theme — Default: Enabled
Switches table palette for readability against chart background.
Show Table — Toggle diagnostics table — Default: Enabled
Disable for a cleaner chart.
Reading & Interpretation
Basis (blue): The moving average centerline of the bands (SMA of effective length).
Upper (red) / Lower (green): ±2 standard deviations around the basis using the same effective length.
Fill (blue tint): Visual band zone to quickly see compression/expansion.
Interpretation staples:
Price riding the upper band suggests strong bullish pressure; riding the lower band suggests strong bearish pressure.
Band expansion indicates rising volatility; contraction indicates volatility compression.
Mean reversion setups often key off the basis and re-entries from outside bands, while breakout/trend setups often key off sustained band rides.
Diagnostics table:
HTF Tag: Human-readable label showing the current timeframe → bucket mapping.
Bucket: The resolved target bucket (Auto result or manual selection).
Multiplier: The integer factor applied to the base length.
Len/Dev: Shows base length (20) and the effective length result plus deviation (2).
Bandwidth: Normalized width of the band (percent), useful for spotting squeezes.
Practical Workflows & Combinations
HTF context on LTF charts: Use this as “slow structure” bands on 1m–15m charts without requesting HTF data.
Squeeze detection: Watch bandwidth shrink to historically low levels, then look for break/hold outside bands.
Trend filtering: Favor long bias when price stays above the basis and repeatedly respects it; favor short bias when below.
Confluence: Combine with market structure (swing highs/lows), volume tools, or a trend filter (e.g., a longer MA) for confirmation.
Behavior, Constraints & Performance
Repaint/confirmation: No cross-timeframe requests. Values can still evolve intrabar and settle on close, as with any indicator computed on live bars.
History requirements: Very large effective lengths need sufficient historical bars; expect a warm-up period after loading or switching symbols/timeframes.
Known limits: Because the method approximates HTF behavior by scaling lookback, it is not identical to true HTF Bollinger Bands computed on aggregated candles. In particular, volatility and mean can differ slightly versus a real HTF series.
Sensible Defaults & Quick Tuning
Default workflow:
Bucket: Auto
Source: Close
Table: On (until you trust the mapping), then optionally off
If bands feel too slow on your timeframe: choose a smaller bucket (e.g., 60 instead of 240).
If bands feel too reactive/noisy: choose a larger bucket (e.g., 1D or 3D).
If chart looks cluttered: hide the table; keep only the bands and fill.
What this indicator is—and isn’t
This is a Bollinger Band visualization layer that emulates higher-timeframe “slowness” via deterministic length scaling. It is not a complete trading system and does not include entries, exits, sizing, or risk management. Use it as context alongside your execution rules and protective stops.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino.
Bassi's Consolidation Breakout — ULTIMATE PRO + VPOverview
Bassi’s Consolidation Breakout — ULTIMATE PRO + VP is a professional-grade breakout detection system that combines price structure, volume confirmation, volatility compression, and custom volume profile logic.
The indicator automatically detects compressed consolidation zones, confirms breakouts with multi-layer filters, and plots full trade setups including:
Entry level
Stop-loss
TP1, TP2, TP3 (R:R based)
Trend filters + MTF EMA
Retest validation
Volume Profile confirmation (POC / VAH / VAL)
This is one of the most complete breakout frameworks for TradingView.
🔍 Core Concept
The script detects tight consolidation boxes based on:
Price range (% compression)
Lookback period
Minimum required bars
Breakout above/below the box
Once the consolidation ends, breakout signals fire only if they pass all filters.
This focuses your trading on high-probability breakouts only.
🔥 Key Features
1️⃣ Automated Consolidation Box Detection
Draws consolidation boxes dynamically
Identifies tight range compression
Supports advanced range logic for high accuracy
2️⃣ Smart Breakout + Retest Engine
Breakouts and breakdowns require:
Structure break
Minimum breakout expansion (0.15%)
Volume confirmation
Trend (200 EMA) confirmation
Optional retest validation
Optional Volume Profile filter
Each valid breakout prints a signal + full trade setup.
3️⃣ Custom Volume Profile Engine
Fast and lightweight custom-built VP that calculates:
POC (Point of Control)
VAH (Value Area High)
VAL (Value Area Low)
These levels can optionally be used to filter weak breakouts.
4️⃣ Multi-Timeframe Trend Filter
Uses 200 EMA from any selected higher timeframe
Helps avoid counter-trend fakeouts
Fully optional
5️⃣ Automatic Trade Setup Projection
Each breakout generates:
Stop-loss (ATR × multiplier)
TP1 (R:R)
TP2 (R:R)
TP3 (optional)
Clean signal labels
Only keeps the last 2 signals to maintain clarity
6️⃣ Alerts Included
Alerts fire instantly when a valid breakout occurs:
“Bassi LONG + VP”
“Bassi SHORT + VP”
Alerts include ticker + entry price.
📘 Usage Guide & Trading Rules
✔ Recommended Trading Steps
1. Wait for a confirmed consolidation box
Box must be narrow
Must meet minimum bar requirement
2. Wait for a confirmed breakout signal
Signal requires:
Breakout above/below box
Volume confirmation
Trend & MTF confirmation if enabled
Optional retest
Optional VP filter (close outside VAH/VAL)
3. Follow the projected setup
The script prints:
Entry
SL
TP1 / TP2 / TP3
Target lines extend automatically.
📖 How to Use the Script (Trading Rules)
1️⃣ Long Entry Rules
Enter Long when:
Price breaks above trend confirmation level
Momentum signal turns bullish
Candle closes above trigger line
Volatility filter is satisfied
Exit Long:
TP1/TP2/TP3 levels
Reversal signal
Trailing stop hit
2️⃣ Short Entry Rules
Enter Short when:
Price breaks below trend confirmation level
Momentum signal turns bearish
Candle closes below trigger line
Volatility filter is satisfied
Exit Short:
TP1/TP2/TP3 levels
Trend reversal
Trailing stop hit
✔ Recommended Markets
Crypto
Forex
Indices
Futures
Stocks
Works on all timeframes from 1-minute to daily.
✔ Best Practice
Avoid taking signals against HTF trend
Prefer signals that break away from VAH/VAL
Use TP1 to secure partial profits
Move SL to breakeven after TP1 if desired
Always follow personal risk management
👤 Author
Created by: Mahdi Bassi
Professional trader & systems designer
Focused on structural, volume-based and volatility-based strategies.
⚠️ Disclaimer
This script is for educational purposes only.
No indicator can guarantee profits.
Always use proper risk management and trade responsibly.
paigep.llc - SuperMA
SuperMA is a multi-layered moving-average and candle-coloring system that combines SMA, EMA, and optional HMA logic to help traders visualize trend shifts, pullbacks, and momentum changes in a clean, structured way.
The script includes multiple modules: trend-based moving averages, pullback signals, exit logic, and an optional HMA cross engine.
📌 Core Features
1. Full SMA + EMA Framework
The indicator plots multiple moving averages (8, 9, 13, 20, 50, 200) using both SMA and EMA calculations. Each line automatically colors bullish or bearish based on its relationship to the 200-period baseline. Users can toggle SMAs and EMAs independently for clearer chart control.
2. Main Trend Entry & Exit Logic (8×200 and 8×20)
Built-in crossover logic detects:
Main Entry: SMA 8 crossing above/below EMA 200
Main Exit: SMA 8 and SMA 20 cross (with an option to choose which SMA is treated as the “fast” leg)
A “first exit only” option allows the script to ignore additional exit signals until a new trend regime begins.
3. Pullback Module (20 SMA Interaction)
Pullback entries and exits occur when price crosses the 20 SMA during existing trend conditions.
This includes:
Pullback entries through the 20 SMA
Pullback exits back across the 20 SMA
Labels and candle colors are available for all pullback events.
4. Optional HMA Cross Module
A separate module allows traders to use two Hull Moving Averages (HMA) with customizable:
Lengths
Independent timeframes
Line colors
Cross-based entries and exits
This module has its own events, labels, and optional candle coloring.
5. Advanced Candle Coloring System
Candle coloring is layered in priority order, based on:
Main trend entries
Main exits
HMA entries
HMA exits
Pullback entries
Pullback exits
Trend-only candles (based on SMA 8 relative to EMA 200)
Users may also independently color wicks and borders.
6. Configurable Alerts (Fully Decoupled from Visuals)
Alerts are available for all major events, including:
Main Entries (8×200)
Main Exits (8×20)
Pullback Entries and Exits
HMA Entries and Exits
Bull or Bear Trend candles
Any colored candle event
Alerts can fire on bar close only or intrabar, depending on user preference.
Use Cases
SuperMA helps traders visualize:
Trend direction using SMA/EMA structure
Momentum shifts through HMA crosses
Pullback zones around the 20 SMA
Early regime transitions based on the 8×200 relationship
Candle-level context through color-coded bars
The indicator works across all markets and timeframes.
⚠️ Note
This tool is for visual and analytical assistance only. It does not guarantee future performance and should be combined with additional analysis and risk management.
Grok/Claude Quantum Signal Pro * Grok/Claude X Series*Grok/Claude Quantum Signal Pro
This is a TradingView indicator focused on catching momentum reversals at price extremes, with a sophisticated divergence detection system as its standout feature. The "Quantum" branding is marketing flair — under the hood, it's a well-structured combination of momentum oscillators, volatility bands, and divergence analysis working together to identify high-probability turning points.
Core Philosophy
The indicator asks: "Is price at an extreme level where momentum is exhausted, and is there evidence that a reversal or continuation is likely?"
It approaches this by requiring multiple confirming factors before generating a signal. Price must be at a band extreme, momentum indicators must be at extreme readings, and the market must be trending (not choppy). Optionally, it can also require RSI divergence and volume confirmation.
The Dynamic Envelope Bands
The foundation is an adaptive channel built around a moving average (EMA or SMA, user's choice). The bands extend above and below this centerline using ATR (Average True Range) multiplied by a dynamic factor.
What makes these bands "adaptive" is that the multiplier adjusts based on ADX — when trends are stronger, the bands widen to accommodate larger directional moves. In weaker trend environments, the bands stay tighter. This helps the bands stay relevant across different market conditions rather than being too loose in quiet markets or too tight during volatile trends.
The centerline itself is color-coded based on its slope: green when rising, red when falling, yellow when flat. This gives immediate visual feedback on short-term directional bias.
The Multi-Layer Filter System
Signals must pass through several filters before being displayed. Here's what each filter does:
FilterWhat It ChecksDefault StateADX TrendingIs ADX above threshold (20)? Avoids signals in choppy, directionless marketsRequired (always on)RSI ExtremesIs RSI oversold (<30) for buys, overbought (>70) for sells?Required (always on)Fisher TransformIs Fisher below -2.0 for buys, above +2.0 for sells? Confirms momentum exhaustionRequired (always on)Trend AlignmentIs price above/below the trend EMA in the right direction?Optional (off by default)Volume SurgeIs current volume significantly above average?Optional (off by default)DivergenceIs there an active RSI divergence pattern?Optional (off by default)
The Fisher Transform
The Fisher Transform is a lesser-known oscillator that converts price into a Gaussian normal distribution, making extreme values much more pronounced. When Fisher readings hit +2.0 or -2.0, it indicates statistically significant momentum exhaustion. By requiring both RSI and Fisher to be at extremes simultaneously, the indicator filters out many false signals that would occur using just one oscillator.
The Detrended Price Oscillator (DPO)
The indicator also calculates DPO, which removes the trend component from price to show where current price sits relative to a historical average. This is displayed in the info panel as a percentage — positive values mean price is extended above its typical level, negative values mean it's extended below. This helps gauge how "stretched" price is from its mean.
RSI Divergence Detection — The Core Feature
This is where the indicator really shines. It detects both regular divergences (reversal signals) and hidden divergences (continuation signals).
Regular Divergences
Regular divergences suggest potential reversals:
Regular Bullish Divergence: Price makes a lower low, but RSI makes a higher low. This indicates that despite price falling further, selling momentum is actually weakening — a potential bottom signal. These are marked with cyan/light blue solid lines on the chart.
Regular Bearish Divergence: Price makes a higher high, but RSI makes a lower high. Despite price rising further, buying momentum is weakening — a potential top signal. Also marked with cyan solid lines.
Hidden Divergences
Hidden divergences suggest trend continuation (often overlooked by traders):
Hidden Bullish Divergence: Price makes a higher low, but RSI makes a lower low. The uptrend is healthy (higher lows in price), but RSI dipped lower, creating a "hidden" bullish setup that often precedes another leg up. Marked with purple dashed lines.
Hidden Bearish Divergence: Price makes a lower high, but RSI makes a higher high. The downtrend structure is intact, but RSI bounced higher, suggesting another leg down is coming. Also marked with purple dashed lines.
The divergence detection uses pivot points (local highs and lows) to identify the comparison points. Users can adjust the pivot lookback (how many bars to use for pivot identification) and the maximum lookback window for finding divergence pairs.
Signal Generation Logic
A buy signal fires when all these conditions align:
Market is trending (ADX above threshold)
RSI is in oversold territory (below 30)
Fisher Transform is oversold (below -2.0)
Plus any optional filters that are enabled
A sell signal requires the mirror conditions: trending market, overbought RSI (above 70), and overbought Fisher (above +2.0).
There's also a cooldown mechanism requiring at least 5 bars between signals to prevent clustering.
Visual Elements
The indicator provides layered visual information:
Adaptive bands with color-coded centerline (green/red/yellow based on slope)
Cloud fill between bands, colored by trend direction
Signal arrows (triangles) at entry points
Price labels showing exact entry price at each signal
Divergence lines connecting the pivot points that form the divergence pattern
Divergence labels ("REG BULL", "HID BEAR", etc.) with tooltips explaining what each pattern means
Info panel showing current status of all indicators and any active divergences
The Info Panel
The top-right panel displays real-time status for all the indicator components. Each row is color-coded to show whether that factor is currently bullish, bearish, or neutral. The last two rows specifically track whether regular and hidden divergences are currently active, making it easy to see at a glance if a divergence pattern has recently formed.
Alert System
The indicator includes a comprehensive alert system covering not just buy/sell signals, but also "setup building" conditions (when RSI and Fisher are at extremes but ADX hasn't confirmed yet), market regime changes (trending to ranging and vice versa), and individual divergence detections for all four types.
Summary
This indicator is designed for traders who want to catch reversals at price extremes with multiple layers of confirmation. Its strength lies in the divergence detection system, which identifies both potential reversals and trend continuation setups. The modular filter system lets users dial in their preferred level of strictness — from the default configuration that requires just the core filters, to a highly selective mode requiring trend alignment, volume confirmation, and divergence all at once. It's best suited for swing trading or identifying key turning points on higher timeframes.
Institutional Valuation SuiteStandard volatility indicators often fail on long-term growth charts because they measure volatility in dollars rather than percentages. This causes bands to break or become irrelevant during exponential price moves (e.g., Bitcoin going from $1,000 to $100,000).
The Institutional Valuation Suite solves this by utilising Geometric (Log-Normal) Standard Deviation. This allows the model to adapt to the asset's price scale, providing accurate valuation zones regardless of price magnitude.
The model functions as a mean-reversion tool, visualizing price as an elastic band anchored to a "Fair Value" baseline. It identifies when the asset is statistically overextended (Bubble/FOMO) or undervalued (Deep Discount).
Key Features
1. Log-Normal Math Engine
Geometric Mode (Default): Calculates volatility in percentage terms. Essential for Crypto and Growth Stocks.
Arithmetic Mode: Available for Forex or range-bound assets where linear standard deviation is preferred.
2. Sentiment Heat map
Visualises valuation directly on the candles to remove interpretation bias.
GREEN: Deep Value / Accumulation Zone (< -0.5σ).
ORANGE: Overvalued / FOMO Zone (> 2.0σ).
RED: Speculative Bubble Zone (> 3.0σ).
3. Reversion Signals
"VALUE RECLAIM": Triggers when price re-enters the bottom band from below, filtering out "falling knife" scenarios.
"TOP EXIT": Triggers when price breaks down from the speculative top zone.
4. Statistical Dashboard
Displays the real-time Z-Score to quantify how "stretched" the price is relative to its baseline.
> 3.0: Statistical Anomaly (Top).
< -0.5: Statistical Discount (Bottom).
Optimisation Cheat Sheet
The "Cycle Length" input determines the lookback period for the baseline. Recommended settings:
Crypto Macro: 200 (Approx. 4 Years).
Altcoins: 100 (Approx. 2 Years).
Stocks (S&P 500): 50 (1 Year Trend).
Day Trading: Set "Timeframe Lock" to "Chart".
Technical Note
This indicator uses strict offset logic (`barmerge.lookahead_on`) to ensure historical consistency. The signals displayed on historical bars match exactly what would have appeared in real-time.
*Disclaimer: This script provides statistical analysis based on historical volatility and does not constitute financial advice.*
Dual MACD AccelerationDual MACD Acceleration Indicator – Synopsis
Purpose:
This indicator identifies early momentum shifts in the market by comparing a fast MACD (8/20/6) with a slower MACD (12/26/9). It highlights potential strong buy and sell signals when the faster MACD crosses the slower MACD, allowing traders to catch trend accelerations before the full move develops.
Components
Fast MACD (8/20/6)
Responds quickly to short-term price changes.
Detects early momentum shifts.
Slow MACD (12/26/9)
Captures the dominant trend.
Provides a smoother reference for comparison.
Acceleration Signals
Long (▲): Fast MACD crosses above Slow MACD → potential bullish acceleration.
Short (▼): Fast MACD crosses below Slow MACD → potential bearish acceleration.
Zero Line
Optional visual reference for overall trend direction.
Crosses above zero = bullish trend, below zero = bearish trend.
Key Features
Clean, minimal chart display.
Optional toggles to show/hide each MACD line.
Label markers indicate crossovers.
Built-in alert conditions for automated notifications.
Trading Use
Trend Confirmation:
Best used with higher timeframe filters (VWAP or EMAs) to avoid fakeouts.
Entry Timing:
Enter on the first pullback after a crossover signal.
Only trade in the direction of the dominant trend.
Stops & Risk:
Use recent swing lows/highs for stop placement.
TP levels can be structure-based or trailing with price momentum.
Synopsis Summary:
The Dual MACD Acceleration Indicator is a lightweight, early-momentum tool designed for scalpers and short-term traders. It captures fast shifts in trend by comparing a faster and slower MACD, highlighting strong buy and sell opportunities while remaining clean and easy to read. For higher accuracy, combine with trend filters like VWAP or EMAs.
BHUVANA Fib 50–61.8 • Turn Alerts when FIB directions change
Detects step-up / step-down on both Fib 50 & 61.8 (your “stairs” logic).
Triggers BUY/SELL on that slope change (optionally also requires price to be above/below the line).Spot volatility compression around the 50%–61.8% Fibonacci mid-band of the current swing, then trade the first expansion with clean, rules-based entries and auto SL references.
Swing mapping: Finds the active high/low over a user-defined lookback and computes Fib 50% and Fib 61.8%.
Squeeze detection: Measures the distance between 50% and 61.8%. If the band width is ≤ (ATR × multiplier), the zone is flagged as a Squeeze.
Breakout entries (on close):
Long when price crosses up through 50% while squeezed.
Short when price crosses down through 61.8% while squeezed.
Risk framework: Auto-plots stop lines from the signal bar:
Long SL = swing low; Short SL = swing high.
Visuals: Fib lines (50/61.8) + optional yellow zone highlight during squeeze.
Signals evaluate on bar close (no forward-looking data).
Works well on XAUUSD / US30 intraday (5–15m) during London/NY sessions.
Add your own alertcondition() lines if you want push alerts on Long/Short entries.
HD Trades📊 ICT Confluence Toolkit (FVG, OB, SMT)
This All-in-One indicator is designed for Smart Money Concepts (SMC) traders, providing visual confirmation and signaling for three critical Inner Circle Trader (ICT) tools directly on your chart: Fair Value Gaps (FVG), Order Blocks (OB), and Smart Money Technique (SMT) Divergence.
It eliminates the need to load multiple indicators, streamlining your analysis for high-probability setups.
🔑 Key Features
1. Fair Value Gaps (FVG)
Automatic Detection: Instantly highlights bullish (buy-side) and bearish (sell-side) imbalances using the standard three-candle pattern.
Real-Time Mitigation: Gaps are drawn until price trades into the FVG zone, at which point the indicator automatically "mitigates" and removes the box, ensuring your chart stays clean.
2. Order Blocks (OB)
Impulse-Based Logic: Identifies valid Order Blocks (the last opposing candle) confirmed by a strong, structure-breaking impulse move, quantified using an Average True Range (ATR) multiplier for dynamic sensitivity.
Mitigation Tracking: Bullish OBs are tracked until broken below the low, and Bearish OBs until broken above the high, distinguishing between active supply/demand zones.
3. SMT Divergence (Smart Money Technique)
Multi-Asset Comparison: Utilizes the Pine Script request.security() function to compare the swing structure of the current chart against a correlated asset (e.g., EURUSD vs. GBPUSD, or ES vs. NQ).
Signal Labels: Plots clear 🐂 SMT (Bullish) or 🐻 SMT (Bearish) labels directly on the chart when a divergence in market extremes is detected, signaling a potential reversal or continuation based on internal market weakness.
⚙️ Customization
All three components are toggleable and feature customizable colors and lookback periods, allowing you to fine-tune the indicator to your specific trading strategy and preferred timeframes.
Crucial Setup: For SMT Divergence to function, you must enter a correlated symbol (e.g., NQ1!, ES1!, or a related Forex pair) in the indicator settings.






















