Double Top/Bottom DetectorDouble Top/Bottom Detector Indicator Description
Overview
The Double Top/Bottom Detector is a technical analysis tool designed to automatically identify and label potential double top and double bottom patterns on price charts. By combining pivot point detection with configurable height tolerance and pullback depth criteria, this indicator helps traders visually spot possible trend reversal zones without manual drawing or guesswork.
Key Features
• Pivot Point Identification
The indicator uses a symmetric window approach to find true highs and lows. A pivot high is confirmed only when a bar’s high exceeds the highs of a specified number of bars both before and after it. Likewise, a pivot low is established when a bar’s low is the lowest in its surrounding window.
• Double Top and Double Bottom Detection
– Height Tolerance: Ensures that the two pivot points forming the pattern are within a user-defined percentage of each other.
– Pullback Depth: Measures the drop (for a double top) or the rise (for a double bottom) between the two pivot points and confirms that it meets a minimum percentage threshold.
• Automatic Drawing and Labeling
When a valid double top is detected, a red line connects the two pivot highs and a “Double Top” label is centered above the line. For a double bottom, a green line connects the two pivot lows and a “Double Bottom” label appears below the midpoint.
• Pivot Visualization for Debugging
Small red and green triangles mark every detected pivot high and pivot low on the chart, making it easy to verify and fine-tune settings.
Parameters
Height Tolerance (%) – The maximum allowable percentage difference between the two pivot heights (default 2.0).
Pullback Minimum (%) – The minimum required percentage pullback (for tops) or rebound (for bottoms) between the two pivots (default 5.0).
Pivot Lookback – The number of bars to look back and forward for validating pivot points (default 5).
Window Length – The number of bars over which to compute pullback extrema, equal to twice the pivot lookback plus one (default derived from pivot lookback).
Usage Instructions
1. Copy the Pine Script code into TradingView’s editor and select version 6.
2. Adjust the parameters based on the asset’s volatility and timeframe. A larger lookback window yields fewer but more reliable pivots; tighter height tolerance produces more precise pattern matches.
3. Observe the chart for red and green triangles marking pivot highs and lows. When two qualifying pivots occur, the indicator draws a connecting line and displays a descriptive label.
4. To extend the number of visible historical lines and labels, increase the max\_lines\_count and max\_labels\_count settings in the indicator declaration.
Customization Ideas
• Add volume or moving average filters to reduce false signals.
• Encapsulate pivot logic into reusable functions for cleaner code.
• Incorporate alert conditions to receive notifications when new double top or bottom patterns form.
This indicator is well suited for medium- to long-term analysis and can be combined with risk management rules to enhance decision making.
Indicadores e estratégias
CVD VWAP (1m CVD, Daily/Weekly + EMA + WMA)🟠 CVD VWAP (1m CVD, Daily/Weekly + EMA + WMA)
This custom indicator combines Cumulative Volume Delta (CVD) with a VWAP-style calculation, built on 1-minute resolution data, and includes smoothed trend analysis via EMA and WMA.
🔍 Key Features:
1-Minute CVD Calculation:
Captures buying vs. selling pressure by comparing close vs. open price per minute.
CVD-Based VWAP:
A custom VWAP that uses CVD instead of price, reset Daily or Weekly (user-selectable). This helps identify volume-weighted mean "pressure" rather than price-weighted mean value.
Smoothed Trend Lines:
EMA (Exponential Moving Average): Applied to the CVD to show short-term momentum shifts.
WMA (Weighted Moving Average): Highlights trend strength and sensitivity with adjustable period, thickness, and color.
Flexible Visuals:
Adjustable thickness for each line.
Displayed in a separate pane for clear analysis, independent of price action.
⚙️ Inputs:
VWAP Reset Mode: Choose between Daily or Weekly reset.
EMA Period & Thickness
WMA Period, Color & Thickness
🧠 Use Cases:
Detect divergence between price and CVD-based VWAP.
Monitor trend alignment via CVD, EMA, and WMA.
Evaluate volume-driven moves, especially during session opens or key volume spikes.
💡 Ideal for traders focused on volume-based analysis, order flow insights, or those looking to enhance VWAP strategies using a more nuanced approach with CVD.
Clock&Flow MM+InfoThis script is an indicator that helps you visualize various moving averages directly on the price chart and gain some additional insights.
Here's what it essentially does:
Displays Different Moving Averages: You can choose to see groups of moving averages with different periods, set to nominal cyclical durations. You can also opt to configure them for instruments traded with classic or extended trading hours (great for Futures), and they'll adapt to your chosen timeframe.
Colored Bands: It allows you to add colored bands to the background of the chart that change weekly or daily, helping you visualize time cycles. You can customize the band colors.
Information Table: A small table appears in a corner of the chart, indicating which cycle the moving averages belong to (daily, weekly, monthly, etc.), corresponding to the timeframe you are using on the chart.
Customization: You can easily enable or disable the various groups of moving averages or the colored bands through the indicator's settings.
It's a useful tool for traders who use moving averages to identify trends and support/resistance levels, and who want a quick overview of market cycles.
Questo script è un indicatore che aiuta a visualizzare diverse medie mobili direttamente sul grafico dei prezzi e a ottenere alcune informazioni aggiuntive.
In pratica, fa queste cose:
Mostra diverse medie mobili: Puoi scegliere di vedere gruppi di medie mobili con periodi diversi impostati sulle durate cicliche nominali. Puoi scegliere se impostarle per uno strumento quotato con orario di negoziazione classico o esteso (ottimo per i Futures) e si adattano al tuo timeframe).
Bande colorate: Ti permette di aggiungere delle bande colorate sullo sfondo del grafico che cambiano ogni settimana o ogni giorno, per aiutarti a visualizzare i cicli temporali. Puoi scegliere il colore delle bande.
Tabella informativa: In un angolo del grafico, compare una piccola tabella che indica a quale ciclo appartengono le medie mobili (giornaliero, settimanale, mensile, ecc.) e corrispondono in base al timeframe che stai usando sul grafico.
Personalizzazione: Puoi facilmente attivare o disattivare i vari gruppi di medie mobili o le bande colorate tramite le impostazioni dell'indicatore.
È uno strumento utile per i trader che usano le medie mobili per identificare trend e supporti/resistenze, e che vogliono avere un colpo d'occhio sui cicli di mercato.
Volume-Weighted SMI with Divergence Alerts📊 Volume-Weighted SMI with Divergence Alerts
This indicator is a modified version of the Stochastic Momentum Index (SMI) that incorporates volume-weighting to give more significance to price movements during high-volume periods. It also includes optional divergence alerts for improved signal precision.
🔍 Key Features:
Volume-Weighted SMI: Enhances the traditional SMI by amplifying signals during high-volume conditions.
WMA Smoothing: Applies a weighted moving average for clearer trend structure.
Custom Thresholds: Adjustable upper and lower bounds (default ±80) to identify overbought/oversold zones.
Divergence Alerts:
Detects bullish divergence (price makes lower lows, SMI makes higher lows).
Detects bearish divergence (price makes higher highs, SMI makes lower highs).
Sends alerts without plotting markers to keep your chart clean.
⚙️ Inputs:
SMI Length: Lookback for high/low range.
K Smoothing: Smooths the volume-weighted SMI signal.
WMA Length: Period of the WMA applied to the smoothed SMI.
Upper/Lower Threshold: Custom levels for signal zones.
Pivot Lookback: Defines the swing structure used in divergence detection.
🔔 Alerts:
Set a TradingView alert on:
“Any alert() function call”
to receive real-time divergence notifications (bullish or bearish) directly from the indicator.
🧠 How to Use:
Look for crossovers of the WMA with the SMI line to confirm shifts in momentum.
Use threshold levels for overbought/oversold identification.
Watch for divergence alerts to anticipate potential reversals or exhaustion.
Rollover Candles 23:00-00:00 UTC+1This indicator highlights the Forex Market Rollover candles during which the spreads get very high and some 'fake price action' occurs. By marking them orange you always know you are dealing with a rollover candle and these wicks/candles usually get taken out later on because there are no orders in these candles.
Optimal settings: The rollover takes only 1 hour, so put the visibility of the indicator on the 1 hour time frame and below (or just the 1h).
Statistical Pairs Trading IndicatorZ-Score Stat Trading — Statistical Pairs Trading Indicator
📊🔗
---
What is it?
Z-Score Stat Trading is a powerful indicator for statistical pairs trading and quantitative analysis of two correlated assets.
It calculates the Z-Score of the log-price spread between any two symbols you choose, providing both long-term and short-term Z-Score signals.
You’ll also see real-time correlation, volatility, spread, and the number of long/short signals in a handy on-chart table!
---
How to Use 🛠️
1. Add the indicator to your chart.
2. Select two assets (symbols) to analyze in the settings.
3. Watch the Z-Score plots (blue and orange lines) and threshold levels (+2, -2 by default).
4. Check the info table for:
- Correlation
- Volatility
- Spread
- Number of long (NL) and short (NS) signals in the last 1000 bars
5. Set up alerts for signal generation or threshold crossings if you want to be notified automatically.
---
Trading Strategy 💡
- This indicator is designed for statistical arbitrage (mean reversion) strategies.
- Long Signal (🟢):
When both Z-Scores drop below the negative threshold (e.g., -2), a long signal is generated.
→ Buy Symbol A, Sell Symbol B, expecting the spread to revert to the mean.
- Short Signal (🔴):
When both Z-Scores rise above the positive threshold (e.g., +2), a short signal is generated.
→ Sell Symbol A, Buy Symbol B, again expecting mean reversion.
- The info table helps you quickly assess the frequency of signals and the current statistical relationship between your chosen assets.
---
Best Practices & Warnings 🚦
- Avoid high leverage! Pairs trading can be risky, especially during periods of divergence. Use conservative position sizing.
- Check for cointegration: Before using this indicator, make sure both assets are cointegrated or have a strong historical relationship. This increases the reliability of mean reversion signals.
- Check correlation: Only use asset pairs with a high correlation (preferably 0.8–0.9 or higher) for best results. The correlation value is shown in the info table.
- Scale in and out gradually: When entering or exiting positions, consider doing so in parts rather than all at once. This helps manage slippage and risk, especially in volatile markets.
---
⚠️ Note on Performance:
This indicator may work a bit slowly, especially on large timeframes or long chart histories, because the calculation of NL and NS (number of long/short signals) is computationally intensive.
---
Disclaimer ⚠️
This script is provided for educational and informational purposes only .
It is not financial advice or a recommendation to buy or sell any asset.
Use at your own risk. The author assumes no responsibility for any trading decisions or losses.
HTF High/Low Targets This script plots the previous Highs and Lows of the 1HR, 4HR, Daily, and Weekly timeframes.
Each level is color-coded, extends across the chart, and includes labels to help you spot key areas of past support and resistance.
Use this tool to:
- Confirm intraday price reactions at HTF zones
- Identify high-probability reversal or breakout areas
- Get notified with built-in alerts when price crosses a level
You can toggle each timeframe level on/off in the settings panel.
Great for:
- Day traders and scalpers who trade off 1-minute or 5-minute charts
-Swing traders looking for confluence with HTF zones
- Anyone using a multi-timeframe analysis approach
Created by @mychaellesliemedia.
Supertrend with Volume Filter AlertSupertrend with Volume Filter Alert - Indicator Overview
What is the Supertrend Indicator?
The Supertrend indicator is a popular trend-following tool used by traders to identify the direction of the market and potential entry/exit points. It is based on the Average True Range (ATR), which measures volatility, and plots a line on the chart that acts as a dynamic support or resistance level. When the price is above the Supertrend line, it signals an uptrend (bullish), and when the price is below, it indicates a downtrend (bearish). The indicator is particularly effective in trending markets but can generate false signals during choppy or sideways conditions.
How This Script Works
The "Supertrend with Volume Filter Alert" enhances the classic Supertrend indicator by adding a customizable volume filter to improve signal reliability.
Here's how it functions:
Supertrend Calculation:The Supertrend is calculated using the ATR over a user-defined period (default: 55) and a multiplier (default: 1.85). These parameters control the sensitivity of the indicator:A higher ATR period smooths out volatility, making the indicator less reactive to short-term price fluctuations.The multiplier determines the distance of the Supertrend line from the price, affecting how quickly it responds to trend changes.The script plots the Supertrend line in cyan for uptrends and red for downtrends, making it easy to visualize the market direction.
Volume Filter:A key feature of this script is the volume filter, which helps filter out false signals in choppy markets. The filter compares the current volume to the average volume over a lookback period (default: 20) and only triggers signals if the volume exceeds the average by a specified multiplier (default: 2.0).This ensures that trend changes are accompanied by significant market participation, increasing the likelihood of a genuine trend shift.
Signals and Alerts:
Buy signals (cyan triangle below the bar) are generated when the price crosses above the Supertrend line (indicating an uptrend) and the volume condition is met.Sell signals (red triangle above the bar) are generated when the price crosses below the Supertrend line (indicating a downtrend) and the volume condition is met.Alerts are set up for both buy and sell signals, notifying traders only when the volume filter confirms the trend change.
Customizable Settings for Multiple Markets
The default settings in this script (ATR Period: 55, ATR Multiplier: 1.85, Volume Lookback Period: 20, Volume Multiplier: 2.0) were carefully chosen to provide a balance of sensitivity and reliability across various markets, including stocks, indices (like the S&P 500), forex, and cryptocurrencies.
Here's why these settings work well:
ATR Period (55): A longer ATR period smooths out volatility, making the indicator less prone to whipsaws in volatile markets like crypto or forex, while still being responsive enough for trending markets like indices.
ATR Multiplier (1.85): This multiplier strikes a balance between capturing early trend changes and avoiding noise. A smaller multiplier would make the indicator too sensitive, while a larger one might miss early opportunities.
Volume Lookback Period (20): A 20-bar lookback for volume averaging provides a robust baseline for identifying significant volume spikes, adaptable to both short-term (e.g., daily charts) and longer-term (e.g., weekly charts) timeframes.
Volume Multiplier (2.0): Requiring volume to be at least 2x the average ensures that only high-conviction moves trigger signals, which is crucial for markets with varying liquidity levels.
These parameters are fully customizable, allowing traders to adjust the indicator to their specific market, timeframe, or trading style. For example, you might reduce the ATR period for faster-moving markets or increase the volume multiplier for more conservative signal filtering.
How the Volume Filter Reduces Bad Trades in Choppy Markets
One of the main drawbacks of the Supertrend indicator is its tendency to generate false signals during choppy or ranging markets, where price fluctuates without a clear trend. The volume filter in this script addresses this issue by ensuring that trend changes are backed by significant market activity:
In choppy markets, price movements often lack strong volume, leading to false breakouts or reversals. By requiring volume to be a multiple (default: 2x) of the average volume over the lookback period, the script filters out these low-volume, low-conviction moves.This reduces the likelihood of taking bad trades during sideways markets, as only trend changes with strong volume confirmation will trigger signals. For example, on a daily chart of the S&P 500, a buy signal will only fire if the price crosses above the Supertrend line and the volume on that day is at least twice the 20-day average, indicating genuine buying pressure.
Usage Tips
Markets and Timeframes: This indicator is versatile and can be used on various assets (stocks, indices, forex, crypto) and timeframes (1-minute, 1-hour, daily, etc.). Adjust the settings based on the market's volatility and your trading strategy.
Combine with Other Indicators: While the volume filter improves reliability, consider using additional indicators like RSI or MACD to confirm trends, especially in ranging markets.
Backtesting: Test the indicator on historical data for your chosen market to optimize the settings and ensure they align with your trading goals.
Alerts: Set up alerts for buy and sell signals to stay informed of high-probability trend changes without constantly monitoring the chart.
ConclusionThe "Supertrend with Volume Filter Alert" is a powerful tool for trend-following traders, combining the simplicity of the Supertrend indicator with a volume-based filter to enhance signal accuracy. Its customizable settings make it adaptable to multiple markets, while the volume filter helps reduce false signals in choppy conditions, allowing traders to focus on high-probability trades. Whether you're trading stocks, indices, forex, or crypto, this indicator can help you identify trends with greater confidence.
Dual Pwma Trends [ZORO_47]Key Features:
Dual PWMA System: Combines a fast and slow Parabolic Weighted Moving Average to identify momentum shifts and trend changes with precision.
Dynamic Color Coding: The indicator lines change color to reflect market conditions—green for bullish crossovers (potential buy signals) and red for bearish crossunders (potential sell signals), making it easy to interpret at a glance.
Customizable Parameters: Adjust the fast and slow PWMA lengths, power settings, and source data to tailor the indicator to your trading style and timeframe.
Clean Visualization: Plotted with bold, clear lines (3px width) for optimal visibility on any chart, ensuring you never miss a signal.
How It Works:
The indicator calculates two PWMAs using the imported ZOROLIBRARY by ZORO_47. When the fast PWMA crosses above the slow PWMA, both lines turn green, signaling a potential bullish trend. Conversely, when the fast PWMA crosses below the slow PWMA, the lines turn red, indicating a potential bearish trend. The color persists until the next crossover or crossunder, providing a seamless visual cue for trend direction.
Ideal For:
Trend Traders: Identify trend reversals and continuations with clear crossover signals.
Swing Traders: Use on higher timeframes to capture significant price moves.
Day Traders: Fine-tune settings for faster signals on intraday charts.
Settings:
Fast Length/Power: Control the sensitivity of the fast PWMA (default: 12/2).
Slow Length/Power: Adjust the smoother, slower PWMA (default: 21/1).
Source: Choose your preferred data input (default: close price).
Adaptive Multi-TF Indicator Table with Presets giua64📌 Script Name:
Adaptive Multi-Timeframe Indicator Table with Presets — giua64
📄 Description:
This script displays an adaptive multi-timeframe dashboard that summarizes the signals of three key technical indicators:
Moving Averages (MAs), Relative Strength Index (RSI), and MACD.
It provides a fast and visually intuitive overview of market conditions across five timeframes (5m, 15m, 30m, 1h, 4h), helping traders quickly identify potential directional biases (e.g., bullish, bearish, or neutral) based on either predefined presets or fully manual settings.
🧰 Preset Configurations:
You can choose between four trading styles, each with optimized indicator parameters:
Scalping
• MAs: 5 / 10 (Fast), 20 / 50 (Slow)
• RSI: 7 periods | Overbought: 70 | Oversold: 30
• MACD: 5 / 13 | Signal: 3
Intraday
• MAs: 9 / 21 (Fast), 50 / 100 (Slow)
• RSI: 14 periods | Overbought: 60 | Oversold: 40
• MACD: 12 / 26 | Signal: 9
Swing
• MAs: 10 / 20 (Fast), 50 / 200 (Slow)
• RSI: 14 periods | Overbought: 65 | Oversold: 35
• MACD: 12 / 26 | Signal: 9
Manual
• Full custom control over all indicator settings.
🛠️ All settings can be customized manually from the options panel, including the exact MA periods, RSI thresholds, and MACD structure.
🧠 How It Works:
For each timeframe, the script evaluates:
MA crossover status (two levels):
The first symbol refers to the crossover of the fast MAs
The second symbol refers to the crossover of the slow MAs
🟢 = Bullish crossover
🔴 = Bearish crossover
➖ = Flat or no clear signal
RSI Direction:
↑ = RSI above upper threshold (potential overbought)
↓ = RSI below lower threshold (potential oversold)
→ = RSI in neutral range
MACD Line vs Signal Line:
↑ = MACD line is above signal line (bullish)
↓ = MACD line is below signal line (bearish)
→ = Flat or neutral signal
Each signal is assigned a numerical score. These are aggregated per timeframe to compute a combined score that reflects the directional bias for that specific time window.
🧠 Adaptive Logic by Asset:
This script is designed to be universally compatible across all asset types — including forex, crypto, stocks, indices, and commodities.
Thanks to its multi-timeframe nature and flexible indicator presets, the script automatically adjusts its behavior based on the asset selected, ensuring relevant analysis without requiring manual recalibration.
🧾 Summary Table Output:
At the bottom of the dashboard, a combined sentiment is displayed for:
3TF → 5m, 15m, 30m
4TF → Adds 1h
5TF → Adds 4h
Each row shows:
Signal → LONG / SHORT / NEUTRAL
Confidence (%) → Based on score aggregation and signal consistency
📌 Customization Options:
Table Position: Left, Right, or Center
Text Size: Small, Normal, or Large
Full Manual Configuration: All MA, RSI, and MACD parameters can be adjusted as needed
⚠️ Disclaimer:
This script is for educational and analytical purposes only.
It does not constitute financial advice or guarantee any trading results.
Always do your own research and apply responsible risk management.
Ultimate Volatility CloudUltimate Volatility Cloud
The Ultimate Volatility Cloud is a powerful and highly customizable indicator designed to help traders visualize market volatility, easily identify trend, and overextended moves in price with adaptive bands. It combines the strengths of the Arnaud Legoux Moving Average, Kaufman's Adaptive Moving Average, ATR Channels, and Standard Deviation bands, offering multiple pre-configured profiles and extensive customization options.
Key Features:
Dynamic Volatility Bands: The indicator plots multiple layers of volatility bands around a central basis line, providing a comprehensive view of price deviation.
Hybrid Band Calculation: Bands are a sophisticated blend of Keltner Channels, KAMA ATR Channels and Standard Deviation, allowing for a nuanced representation of volatility.
Adaptive Smoothing: Bands are smoothed using either Exponential Moving Average (EMA) or Kaufman's Adaptive Moving Average (KAMA) based on the selected profile, ensuring responsiveness tailored to market conditions.
Layered Fills: The cloud uses distinct color fills for different volatility levels, making it easy to visually interpret price action relative to its typical range.
Customizable Color Themes: Choose from a variety of pre-set color themes, including "Rainbow," "Wild," and "Monochrome," or stick with classic options to suit your visual preference.
Optional Basis Line Plots: Display the EMA or KAMA basis lines (used in Keltner Channel calculations) separately on the chart for additional analysis.
Understanding the Profiles:
The indicator comes with several pre-configured "Settings Profiles" that adjust the internal parameters (Keltner Channel/KAMA Channel/Standard Deviation band blend, and band smoothing) to suit different trading styles or market environments.
1. Standard Profile:
Blend: 60% Keltner Channel, 40% Standard Deviation.
Smoothing: EMA smoothing of 3 periods.
Purpose: A balanced, general-purpose profile suitable for a wide range of market conditions. It offers a good blend of trend following and volatility awareness.
2. Responsive Profile:
Blend: 40% Keltner Channel, 60% Standard Deviation.
Smoothing: EMA smoothing of 2 period.
Purpose: Designed for traders who need quick reactions to price changes. The higher Standard Deviation blend and minimal smoothing make it highly sensitive to immediate volatility shifts, ideal for short-term analysis or identifying early moves.
3. Ranging Market Profile:
Blend: 80% KAMA ATR Channel, 20% Standard Deviation.
Smoothing: KAMA smoothing.
Purpose: Optimized for sideways or consolidating markets. By utilizing KAMA-based ATR bands and KAMA for band smoothing, this profile adapts its responsiveness to reduce whipsaws in choppy conditions, providing clearer boundaries for range-bound price action.
4. Trend Following Profile:
Blend: 90% Keltner Channel, 10% Standard Deviation.
Smoothing: EMA smoothing of 5 periods.
Purpose: Tailored for riding strong trends. The heavy emphasis on the Keltner Channel and slightly smoother bands help filter out minor fluctuations, allowing traders to focus on the dominant directional movement.
5. Conservative Profile:
Blend: 65% KAMA ATR Channel, 35% Standard Deviation.
Smoothing: EMA smoothing of 10 periods.
Purpose: Aims to provide more filtered signals and reduce noise. The KAMA basis for the Keltner Channel combined with a longer EMA smoothing period offers a slower, more confirmed view of volatility, suitable for traders seeking higher conviction entries or exits.
Example of the Ranging Market Profile
How to Use:
The volatility cloud can be interpreted in various ways:
Price within the inner bands: May indicate consolidation or a period of lower volatility.
Price pushing into outer bands: Suggests increasing volatility and potential for a strong move.
Price breaking out of extreme outer bands: Can signal significant momentum and the start or continuation of a strong trend.
Cloud expansion/contraction: Visually indicates periods of increasing or decreasing market energy.
Experiment with different profiles and settings to find the combination that best suits your trading strategy and the instruments you trade.
Float, Daily % Change & Short %This TradingView Pine Script displays a compact table on your chart showing four key metrics for any stock:
📊 What It Shows:
Float – Number of publicly available shares, formatted in K/M/B.
Daily % Change – Price change from yesterday’s close to the current price.
Intraday % Change – Price change from today’s open to the current price.
Short Volume % – Estimated short volume as a percentage of total daily volume.
⚙️ How to Use:
Add the script to your TradingView chart.
Choose table size and screen position from the settings panel.
The values update in real-time on the latest candle only, so they stay out of the way but always visible.
Ideal for momentum traders, short float hunters, and day traders who need quick access to real-time float, price action, and short volume stats.
SOFR Spread (proxy: FEDFUNDS - US03MY)📊 SOFR Spread (Proxy: FEDFUNDS - US03MY) – Monitoring USD Money Market Liquidity
In 2008, the spread exhibits a sharp vertical spike, signaling a severe liquidity dislocation: investors rushed into short-term U.S. Treasuries, pushing their yields down dramatically, while the FEDFUNDS rate remained relatively high.
This behavior indicates extreme systemic stress in the interbank lending market, preceding massive Federal Reserve interventions such as rate cuts, emergency liquidity operations, and the launch of quantitative easing (QE).
Description:
This indicator plots the spread between the Effective Federal Funds Rate (FEDFUNDS) and the 3-Month US Treasury Bill yield (US03MY), used here as a proxy for the SOFR spread.
It serves as a simple yet powerful tool to detect liquidity dislocations and stress signals in the US short-term funding markets.
Interpretation:
🔴 Spread > 0.20% → Possible liquidity stress: elevated repo rates, cash shortage, interbank distrust.
🟡 Spread ≈ 0% → Normal market conditions, balanced liquidity.
🟢 Spread < 0% → Excess liquidity: strong demand for T-Bills, “flight to safety”, or distortion due to expansionary monetary policy.
Ideal for:
Monitoring Fed policy impact
Anticipating market-wide liquidity squeezes
Correlation with DXY, SPX, VIX, MOVE Index, and risk sentiment
🧠 Note: As SOFR is not directly available on TradingView, FEDFUNDS is used as a reliable proxy, closely tracking the same trends in most macro conditions.
Linear Volume MACD | Lyro RS📊 Linear Volume MACD | Lyro RS is an advanced momentum and trend detection tool that fuses price action with volume-weighted MACD logic and linear regression analysis . Designed for traders seeking deeper insights into market strength and directional conviction, this indicator highlights trend shifts, volume anomalies, and potential reversal zones with precision.
✨ Key Features :
🔁 Multi-Mode Analysis: Switch between Linear Regression , Strong/Weak Trend , or Volume MACD logic.
📐 Volume-Adjusted MACD: Incorporates volume for a more realistic momentum view.
📊 Linear Regression Signal: Smoother and more reactive trend analysis.
🎯 Dynamic Stdev Bands: Visualize ±1 and ±2 standard deviation thresholds for anomaly detection.
🌈 Custom Color Themes: Choose from built-in palettes or define your own bullish/bearish signal colors.
⚠️ Alert Conditions: Built-in alerts notify you of potential trend shifts across all signal modes.
📈 How It Works :
🧮 MACD Core: Uses volume-weighted price to generate fast and slow EMAs, forming the MACD and signal lines.
📉 Histogram Logic: Histogram is either the traditional MACD histogram or its linear regression version.
📊 Signal Modes:
• Linear Regression: Detect trend based on smoothed MACD behavior.
• Strong/Weak Trend: Identifies accelerating/decelerating trend strength.
• Volume MACD: Classic volume MACD behavior for divergence spotting.
📏 Stdev Bands: Calculated over a long period (default 200) to highlight statistically significant moves.
🎨 Color-coded Feedback: Bar and background colors adjust dynamically with market condition.
⚙️ Customization Options :
🔄 Choose your Signal Type from three unique analysis modes.
📏 Modify Fast/Slow/Signal lengths and Regression parameters to suit your strategy.
📈 Enable or disable Stdev Bands and adjust multiplier.
🎨 Select from Classic, Mystic, Accented, or Royal color palettes — or create your own.
📌 Use Cases :
🟢 Identify trend continuation or reversal zones with volume-adjusted signals.
🔴 Detect volatility breakouts using standard deviation bands.
🧭 Use in confluence with price structure, RSI, or market sentiment.
⚠️ Disclaimer :
This indicator is for educational purposes only. It is not financial advice. Always use in conjunction with your own research and risk management strategy.
Hull-Exponential Moving Average (HEMA)The Hull Exponential Moving Average (HEMA) is an experimental technical indicator that uses a sequence of Exponential Moving Averages (EMAs) with the same logic as HMA - except with EMAs and not WMAs. It aims to create a responsive yet smooth trend indicator than HMA.
HEMA applies a multi-stage EMA process. Initial EMAs are calculated using alphas derived from logarithmic relationships and the input period. Their outputs are then combined in a de-lagging step, which itself uses a logarithmically derived ratio. A final EMA smoothing pass is then applied to this de-lagged series. This creates a moving average that responds quickly to genuine price changes while maintaining effective noise filtering. The specific alpha calculations and the de-lagging formula contribute to its balance between responsiveness and smoothness.
▶️ **Core Concepts**
Logarithmically-derived alphas: Alpha values for the three EMA stages are derived using natural logarithms and specific formulas related to the input period **N**.
Three-stage EMA process: The calculation involves:
An initial EMA (using **αS**) on the source data.
A second EMA (using **αF**) also on the source data.
A de-lagging step that combines the outputs of the first two EMAs using a specific ratio **r**.
A final EMA (using **αFin**) applied to the de-lagged series.
Specific de-lagging formula: Utilizes a constant ratio **r = ln(2.0) / (1.0 + ln(2.0))** to combine the outputs of the first two EMAs, aiming to reduce lag.
Optimized final smoothing: The alpha for the final EMA (**αFin**) is calculated based on the square root of the period **N**.
Warmup compensation: The internal EMA calculations include a warmup mechanism to provide more accurate values from the initial bars. This involves tracking decay factors (**eS**, **eF**, **eFin**) and applying a compensation factor **1.0 / (1.0 - e_decay)** during the warmup period. A shared warmup duration is determined by the smallest alpha among the three stages.
HEMA achieves its characteristics through this multi-stage EMA process, where the specific alpha calculations and the de-lagging step are key to its responsiveness and smoothness.
▶️ **Common Settings and Parameters**
Period (**N**): Default: 10 | Base lookback period for all alpha calculations | When to Adjust: Increase for longer-term trends and more smoothness, decrease for shorter-term signals and more responsiveness
Source: Default: Close | Data point used for calculation | When to Adjust: Change to HL2, HLC3, or OHLC4 for different price representations
Pro Tip: The HEMA's behavior is sensitive to the **Period** setting due to the non-linear relationships in its alpha calculations. Experiment with values around your typical MA periods. Small changes in **N** can have a noticeable impact, especially for smaller **N** values.
▶️ **Calculation and Mathematical Foundation**
Simplified explanation:
HEMA calculates its value through a sequence of three Exponential Moving Averages (EMAs) with specially derived smoothing factors (alphas).
Two initial EMAs are calculated from the source price, using alphas **αS** and **αF**.
The outputs of these two EMAs are combined into a "de-lagged" series.
This de-lagged series is then smoothed by a third EMA, using alpha **αFin**, to produce the final HEMA value.
All internal EMAs use a warmup compensation mechanism for improved accuracy on early bars.
Technical formula (let **N** be the input period):
1. Alpha for the first EMA (slow component related):
αS = 3.0 / (2.0 * N - 1.0)
2. Lambda for **αS** (intermediate value):
λS = -ln(1.0 - αS)
Note: **αS** must be less than 1, which implies 2N-1 > 3 or N > 2 for **λS** to be well-defined without NaN from ln of non-positive number. The code uses nz() for robustness but the formula implies this constraint.
3. De-lagging ratio **r**:
r = ln(2.0) / (1.0 + ln(2.0))
(This is a constant, approximately 0.409365)
4. Alpha for the second EMA (fast component related):
αF = 1.0 - exp(-λS / r)
5. Alpha for the final EMA smoothing:
αFin = 2.0 / (sqrt(N) / 2.0 + 1.0)
6. Applying the stages:
**OutputS = EMA_internal(source, αS, eS_state, emaS_state)**
**OutputF = EMA_internal(source, αF, eF_state, emaF_state)**
8. Calculate the de-lagged series:
DeLag = (OutputF / (1.0 - r)) - (r * OutputS / (1.0 - r))
9. Calculate the final HEMA:
HEMA = EMA_internal(DeLag, αFin, eFin_state, emaFin_state)
🔍 Technical Note: The HEMA implementation uses a shared warmup period controlled by **aMin** (the minimum of **αS**, **αF**, **αFin**). During this period, each internal EMA stage still tracks its own decay factor (**eS**, **eF**, **eFin**) to apply the correct compensation. The **nz()** function is used in the code to handle potential NaN values from alpha calculations if **N** is very small (e.g., **N=1** would make **αS=3**, **1-αS = -2**, **ln(-2)** is NaN).
▶️ **Interpretation Details**
HEMA provides several key insights for traders:
When price crosses above HEMA, it often signals the beginning of an uptrend
When price crosses below HEMA, it often signals the beginning of a downtrend
The slope of HEMA provides insight into trend strength and momentum
HEMA creates smooth dynamic support and resistance levels during trends
Multiple HEMA lines with different periods can identify potential reversal zones
HEMA is particularly effective for trend following strategies where both responsiveness and noise reduction are important. It provides earlier signals than traditional EMAs while exhibiting less whipsaw than standard HMA in choppy market conditions. The indicator excels at identifying the underlying trend direction while filtering out minor price fluctuations.
▶️ **Limitations and Considerations**
Experimental nature: As an experimental indicator, HEMA may behave differently from established HMA in certain market conditions
Lag characteristics: While designed to reduce lag, HEMA may exhibit slightly more lag than HMA in some scenarios due to the long tail of EMA
Mathematical complexity: The multi-stage calculation with specialized alpha parameters makes the behavior less intuitive to understand
Parameter sensitivity: Performance can vary significantly with different period settings
Complementary tools: Works best when combined with volume analysis or momentum indicators for confirmation
▶️ **References**
Hull, A. (2005). "Hull Moving Average," Technical Analysis of Stocks & Commodities .
RetryClaude can make mistakes. Please double-check responses.
OHLC 0.5 @SplintsThis indicator provides a dynamic visualization of OHLC levels, allowing traders to analyze price action across multiple candles with enhanced clarity. It features customizable options for timeframe selection, candle count, and mid-level calculations (High/Low 50% and Open/Close 50%). The script utilizes gradient-based coloring for a clear distinction between levels and supports dynamic extension for better visibility.
Key Features:
Displays Open, High, Low, and Close levels with adjustable extension lengths
Supports mid-level calculations for enhanced trade decision-making
Gradient coloring for improved visual clarity across multiple candles
Configurable labels for quick reference to key price points
Efficient object management using arrays for optimized performance
Perfect for traders seeking structured insights into candle dynamics and session-based analysis.
Swing Highs and Lows Detector🔍 Swing Highs and Lows Detector
The Swing Highs and Lows Detector is a powerful tool for traders looking to identify meaningful structural shifts in price action, based on swing point logic and internal trend shifts.
📈 What It Does
This indicator automatically identifies and labels:
HH (Higher High) – Price broke above the previous swing high
LH (Lower High) – Price failed to break the previous high, signaling potential weakness
LL (Lower Low) – Price broke below the previous swing low
HL (Higher Low) – Price maintained a higher support level, indicating strength
The script distinguishes between bullish and bearish internal shifts and tracks the highest/lowest points between those shifts to determine the swing structure.
⚙️ How It Works
You can choose between two shift detection modes:
"Open": Compares closing price to the first open of the opposite streak
"High/Low": Uses the high of bearish or low of bullish candles
Once a shift is confirmed, the indicator scans the bars between shifts to find the most significant swing high or low
When a valid swing is detected, it’s labeled directly on the chart with color-coded markers
🛎️ Built-in Alerts
Set alerts for:
Higher High
Lower High
Lower Low
Higher Low
These alerts help you catch key structural shifts in real time — great for breakout traders, structure-based analysts, and smart money concepts (SMC) strategies.
✅ How to Use
Confirm Trend Strength or Reversals – Use HH/HL to confirm an uptrend, LL/LH to confirm a downtrend
Combine with Liquidity Sweeps or Zones – Ideal for SMC or Wyckoff-style setups
Entry/Exit Triggers – Use swing breaks to time entries or exits near key structural points
Opening Range BreakoutOPENING RANGE BREAKOUT (ORB) INDICATOR
DESCRIPTION
The Opening Range Breakout indicator is a powerful technical analysis tool designed specifically for US equity markets. It identifies and visualizes the opening range established during the first configurable minutes of each trading day (starting at 9:30 AM EST), then provides clear signals when price breaks out of or rejects from these key levels.
This indicator combines multiple timeframe analysis capabilities with precise breakout detection to help traders identify high-probability trading opportunities based on opening range dynamics.
KEY FEATURES
Configurable Opening Range:
• Set opening range duration from 5 minutes to 4 hours
• Automatically adjusts calculations based on your chart timeframe
• Works on any timeframe (1m, 5m, 15m, 1h, etc.)
Multi-Day Range Display:
• Shows up to 50 days of historical opening ranges
• Each day's range properly contained within its trading session
• Range lines extend from market open (9:30 AM) to market close (4:00 PM EST)
Clear Signal System:
• Green arrows (⬆): Bullish breakouts and rejections
• Red arrows (⬇): Bearish breakouts and rejections
• Two signal types: Close breakouts (normal size) and wick rejections (small size)
Visual Range Highlighting:
• Opening range period highlighted with colored box
• Customizable colors for range fill, borders, and midline
• Clean, professional appearance with configurable line styles
SIGNAL TYPES
Bullish Signals (Green ⬆):
1. Close Breakout Above Range (Normal Size): 5-minute candle closes above the opening range high
2. Wick Rejection from Below (Small Size): Price wicks below the opening range low but closes back inside the range
Bearish Signals (Red ⬇):
1. Close Breakout Below Range (Normal Size): 5-minute candle closes below the opening range low
2. Wick Rejection from Above (Small Size): Price wicks above the opening range high but closes back inside the range
CONFIGURATION OPTIONS
Range Settings:
• Opening Range Minutes: Duration of opening range (default: 30 minutes)
• Lookback Days: Number of historical days to display (default: 20 days)
Visual Customization:
• Range Color: Fill color for the opening range area
• Border Color: Color for range high/low lines
• Midline Color: Color for the range midpoint line
• Opening Range Highlight Color: Color for the opening period box
• Line Style: Solid, Dashed, or Dotted lines
• Line Width: 1-4 pixel width options
Display Options:
• Show Midline: Toggle midpoint line display
• Show Range Labels: Toggle price level labels
• Arrow Distance: Adjust arrow positioning (0.1-2.0%)
USAGE GUIDE
Basic Setup:
1. Add the indicator to your chart (works best on 5-minute timeframe)
2. Configure your preferred opening range duration (15m, 30m, or 60m are popular choices)
3. Adjust lookback days based on your analysis needs
4. Customize colors and line styles to match your chart theme
Trading Applications:
Breakout Trading:
• Long Entry: Green arrow (close breakout above range) + confirmation
• Short Entry: Red arrow (close breakout below range) + confirmation
• Stop Loss: Opposite side of the opening range
• Target: 1-2x the range size or key support/resistance levels
Range Rejection Trading:
• Reversal Setups: Small arrows indicate failed breakouts
• Mean Reversion: Trade back toward range midline
• Support/Resistance: Use range levels as key price zones
Multi-Day Analysis:
• Identify recurring support/resistance levels
• Analyze range expansion/contraction patterns
• Compare current day's activity to recent history
BEST PRACTICES
1. Timeframe Selection: 5-minute charts provide optimal signal clarity
2. Range Duration: 30-minute opening range is most commonly used, but adjust based on:
- Market volatility
- Stock characteristics
- Trading style preference
3. Confirmation: Use additional indicators or price action for trade confirmation
4. Risk Management: Always use appropriate position sizing and stop losses
MARKET SESSIONS
The indicator is specifically designed for US equity markets:
• Market Open: 9:30 AM EST
• Market Close: 4:00 PM EST
• Opening Range: Calculated from market open
• Range Lines: Extend throughout the trading day only
PERFORMANCE NOTES
• Optimized for real-time trading with minimal lag
• Automatically manages memory by cleaning old ranges
• Efficiently handles multiple timeframes and range calculations
KNOWN ISSUES & WORKAROUNDS
Historical Buffer Error:
Issue: Occasionally, you may encounter an error: "The requested historical offset (XXX) is beyond the historical buffer's limit (770)"
Workaround:
1. Switch to a different timeframe temporarily
2. Switch back to your original timeframe
3. The indicator will reload and function normally
This is a Pine Script limitation related to historical data access and doesn't affect the indicator's core functionality.
COMPATIBILITY
• Pine Script Version: v6
• Chart Types: All chart types supported
• Timeframes: All timeframes (optimized for 1m-1h)
• Markets: Designed for US equity markets during regular trading hours
TIPS FOR MAXIMUM EFFECTIVENESS
1. Combine with Volume: High volume on breakouts increases reliability
2. Market Context: Consider overall market direction and volatility
3. News Awareness: Be cautious around earnings and major announcements
4. Range Quality: Wider ranges often provide better breakout opportunities
5. Time of Day: Early breakouts (first 1-2 hours) often have higher follow-through
This indicator is provided for educational and informational purposes. Always conduct your own analysis and manage risk appropriately.
Weighted Regression Bands (Zeiierman)█ Overview
Weighted Regression Bands is a precision-engineered trend and volatility tool designed to adapt to the real market structure instead of reacting to price noise.
This indicator analyzes Weighted High/Low medians and applies user-selectable smoothing methods — including Kalman Filtering, ALMA, and custom Linear Regression — to generate a Fair Value line. Around this, it constructs dynamic standard deviation bands that adapt in real-time to market volatility.
The result is a visually clean and structurally intelligent trend framework suitable for breakout traders, mean reversion strategies, and trend-driven analysis.
█ How It Works
⚪ Structural High/Low Analysis
At the heart of this indicator is a custom high/low weighting system. Instead of using just the raw high or low values, it calculates a midline = (high + low) / 2, then applies one of three weighting methods to determine which price zones matter most.
Users can select the method using the “Weighted HL Method” setting:
Simple
Selects the single most dominant median (highest or lowest) in the lookback window. Ideal for fast, reactive signals.
Advanced
Ranks each bar based on a composite score: median × range × recency. This method highlights structurally meaningful bars that had both volatility and recency. A built-in Kalman filter is applied for extra stability.
Smooth
Blends multiple bars into a single weighted average using smoothed decay and range. This provides the softest and most stable structural response.
⚪ Smoothing Methods (ALMA / Linear Regression)
ALMA provides responsive, low-lag smoothing for fast trend reading.
Linear Regression projects the Fair Value forward, ideal for trend modeling.
⚪ Kalman Smoothing Filter
Before trend calculations, the indicator applies an optional Kalman-style smoothing filter. This helps:
Reduce choppy false shifts in trend,
Retain signal clarity during volatile periods,
Provide stability for long-term setups.
⚪ Deviation Bands (Dynamic Volatility Envelopes)
The indicator builds ±1, ±2, and ±3 standard deviation bands around the fair value line:
Calculated from the standard deviation of price,
Bands expand and contract based on recent volatility,
Visualizes potential overbought/oversold or trending conditions.
█ How to Use
⚪ Trend Trading & Filtering
Use the Fair Value line to identify the dominant direction.
Only trade in the direction of the slope for higher probability setups.
⚪ Volatility-Based Entries
Watch for price reaching outer bands (+2σ, +3σ) for possible exhaustion.
Mean reversion entries become higher quality when far from Fair Value.
█ Settings
Length – Lookback for Weighted HL and trend smoothing
Deviation Multiplier – Controls how wide the bands are from the fair value line
Method – Choose between ALMA or Linear Regression smoothing
Smoothing – Strength of Kalman Filter (1 = none, <1 = stronger smoothing)
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Customizable 10‑MA SuiteCustomizable 10‑Moving‑Average Suite
OverviewPlot up to 10 independent moving averages on a single chart. Every line can be tailored to your trading style with adjustable length, timeframe, MA type (SMA, EMA, WMA, RMA, VWMA, HMA, LinReg), data source, colour, width, and plot style.
Key Features
True multi‑time‑frame support via request.security(): mix intraday and higher‑time‑frame MAs effortlessly.
Fine‑grained visibility control: toggle each MA on/off to keep charts clean and script performance high.
Versatile display options: choose between line, step, histogram, or area plots for every MA.
Typical Use‑Cases
Quickly compare short‑, medium‑, and long‑term trends.
Identify dynamic support/resistance and moving‑average crossovers.
Add confluence to existing strategies or discretionary setups.
Pro TipHighlight your primary trend MA with a thicker line and bolder colour, while setting secondary MAs to thinner or dashed styles—this keeps focus where it matters and prevents visual clutter.
Enjoy!
Order Blocks📈 Order Blocks Only (With Mitigation Alerts)
This indicator identifies bullish and bearish order blocks on your chart and alerts you when they are formed or mitigated . Order blocks are key institutional price levels where strong buying or selling has previously occurred, often leading to significant future price reactions.
🔍 How It Works:
-Bullish Order Block: Formed when price closes above the high of a recent bearish candle. This suggests buyers have taken control.
-Bearish Order Block: Formed when price closes below the low of a recent bullish candle. This signals seller dominance.
-Once an order block is formed, a box is drawn on the chart to highlight the zone.
-These boxes last for a user-defined number of bars (default is 20) and can be automatically removed when price mitigates (retests and closes beyond) the zone.
🛠 User Settings:
-Show Bullish Order Blocks – Toggle green zones on/off.
-Show Bearish Order Blocks – Toggle red zones on/off.
-Order Block Duration – How many bars the boxes should remain on the chart.
-Delete Mitigated Boxes – If enabled, mitigated zones are automatically removed.
-Custom Colors – Personalize the fill and border colors of bullish and bearish blocks.
🔔 Alerts:
This tool supports four built-in alert types:
-Bullish Order Block Formed
-Bearish Order Block Formed
-Bullish Order Block Mitigated
-Bearish Order Block Mitigated
Set these alerts to stay on top of key price reactions.
✅ How to Use It:
1. Apply the indicator to any chart and timeframe.
2. Watch for new order blocks to form after strong price breaks.
3. Use these zones as potential entry points, stop placement areas, or take profit zones.
4. Enable alerts to catch key institutional levels as they form or are retested.
Supply and Demand Zones🔍 Supply and Demand Zones
by The_Forex_Steward
This indicator automatically identifies Supply and Demand Zones based on aggregated synthetic candles, helping traders pinpoint potential reversal or breakout levels with clarity and precision.
🧠 How It Works:
This tool aggregates price data over a set number of candles (defined by the Aggregation Factor ) to create "synthetic candles" that smooth out noise and highlight significant institutional price activity. These candles are then analyzed to detect bullish or bearish order blocks , which are visualized as zones:
-Demand Zones (Green) : Formed when price breaks above the high of a previous bearish synthetic candle.
-Supply Zones (Red) : Formed when price breaks below the low of a previous bullish synthetic candle.
These areas often represent key institutional interest where price is likely to react.
⚙️ Key Features:
-Aggregation Factor : Groups candles to form larger, synthetic ones. Higher values smooth price and reduce noise.
-Custom Zone Length : Define how far zones extend forward (up to 500 bars).
-Mitigation Logic : Choose whether to auto-delete zones once price breaks through them.
-Visual Customization : Customize zone colors and borders to suit your charting style.
-Alerts : Get notified when new Supply or Demand zones are formed.
📈 How to Use It:
1. Trend Trading : Use zones as dynamic support/resistance to enter with trend pullbacks.
2. Reversals : Look for price reactions at untested zones for potential counter-trend setups.
3. Breakouts : Monitor for zone breaks that signal strong momentum or shifts in market structure.
4. Confluence : Combine with other indicators (like RSI or volume) for more robust trade setups.
🔔 Alerts:
Receive alerts when new demand or supply zones are formed so you can take action in real time.
✅ Recommended Settings:
For intraday trading : Use lower aggregation values (e.g., 3–5).
For swing/position trading : Higher values (e.g., 6–10) may give better structure.
Perp R/R Toolcalculate lot size and automatically plot SL and TP and entry for quicker execution when scalping. SL is currently set to high of candle for shorts and low of candle for longs +1 ATR. can change ATR, risk per trade and r/r ratio in settings. change trade direction to show info for long, short or both.