Multi-Timeframe Support & Resistance - KSKClean Multi-Timeframe Support & Resistance (S&R) Tool
This indicator automatically plots previous period Highs and Lows for:
🟢 Daily
🔵 Weekly
🟣 Monthly
It provides a clean visual reference for key market levels, which can act as areas of:
Support & Resistance
Breakout or Rejection zones
Entry/Exit decision points
Table Summary:
Compact 2-column table showing all major levels
Can be positioned manually (Top Left, Top Right, etc.)
Auto-refreshes every few bars for performance
Indicators and strategies
Alpha Beta Gamma with Volume CandleAlpha Beta Gamma with Volume Candle
This Pine Script indicator analyzes price dynamics and volume activity to assist traders in identifying momentum, reversals, and key price levels. It calculates three proprietary metrics—Alpha, Beta, and Gamma—based on a user-selected price type (e.g., Open, Close, HL2) and timeframe, using a lookback period (default 37 bars). These metrics normalize price movements relative to the range of highs and lows, helping traders gauge market strength and positioning.
How It Works:
Alpha: Measures the distance of the selected price from the lowest price over the lookback period, normalized by the period length.
Beta: Represents the full price range (high minus low) over the lookback period, scaled by the period length.
Gamma: Normalizes the price’s position within the high-low range, providing a 0–1 scale for relative positioning.
Volume Analysis: The script classifies candles based on volume thresholds relative to a simple moving average (SMA, default 400 bars). High volume (≥ 2x SMA), low volume (≤ 0.5x SMA), and strong signal volume (≥ 1.5x SMA) trigger distinct candle colors to highlight bullish (e.g., deep blue, violet) or bearish (e.g., aqua, pink) conditions.
Custom Bands: Nine horizontal levels (0 to 1, divided into eight equal parts) act as dynamic support/resistance zones, useful for grid-based trading or breakout strategies.
How to Use:
Inputs:
Chart Timeframe: Select the timeframe for price data (e.g., 1H, 1D).
Price Type: Choose the price metric (e.g., Close, HL2) for calculations.
ABG Length: Adjust the lookback period (default 37) for sensitivity.
Volume MA Length: Set the SMA period for volume analysis (default 400).
Volume Thresholds: Customize high, low, and strong volume multipliers.
Visual Settings: Toggle labels, custom bands, and table display; adjust line styles, label sizes, and table positions.
Interpretation:
Use Alpha, Beta, and Gamma plots to assess price momentum and range dynamics.
Monitor colored candles for volume-driven signals (e.g., violet for strong bullish volume).
Leverage custom bands for support/resistance or breakout trading.
Check the table for real-time ABG values and percentage changes.
Settings Tips:
For scalping, reduce the ABG Length (e.g., 20) and use a shorter timeframe (e.g., 5M).
For swing trading, increase the Volume MA Length (e.g., 600) for more stable volume signals.
Enable labels and custom bands for visual clarity on key levels.
This indicator is versatile for various trading styles, combining price-based metrics with volume analysis to enhance decision-making.
EMA Ribbon Cross Multi-TF MonitorThis is not your typical moving average, this give you a great buy and sell alert alongside showing you what price is doing at the 1m and 2m charts with a monitor that updates with price.
The EMA is configurable though I recommend the 2 and 8 ema's as the best ones to catch price moving higher or lower to get an early entry.
You can configure the script to add in different times and it will work on those time frames also, like 15min and 30min so you can see the longer trend of the market.
AE - Aggregated Open InterestAggregated Open Interest
The Aggregated Open Interest indicator provides a comprehensive view of open interest across multiple cryptocurrency exchanges, allowing traders to monitor institutional positioning and market sentiment. By aggregating data from major exchanges like Binance, BitMEX, and Kraken, this indicator offers valuable insights into potential price movements and market shifts.
🔶 CALCULATION
The indicator processes open interest data through multiple analytical methods:
Exchange Aggregation: Collects and normalizes open interest data from multiple exchanges (Binance, BitMEX, Kraken) with proper currency normalization.
Multi-Mode Analysis: Calculates various metrics including raw open interest values, OI change, OI delta, volume-weighted delta, and OI RSI.
Divergence Detection: Uses pivot point analysis to identify divergences between price action and open interest movements.
Activity Assessment: Tracks bullish and bearish activity patterns by correlating open interest changes with price movements.
Formula:
- Aggregate OI = Sum of normalized open interest from selected exchanges
- OI Change = Current OI - Previous OI
- OI Delta = Net change in open interest across timeframes
- OI Delta × Volume = OI Delta weighted by relative volume
- OI RSI = Relative Strength Index applied to open interest values
- OI Heatmap = Multi-timeframe visualization of OI changes across 7 distinct periods
🔶 DETAILS
Visual Features:
Multiple Display Modes:
- Open Interest: Candlestick representation of aggregated open interest
- OI Change: Histogram showing period-to-period changes
- OI Delta: Histogram displaying net OI movements
- OI Delta × Volume: Volume-weighted OI delta for enhanced signals
- OI RSI: Oscillator showing overbought/oversold OI conditions
- OI Heatmap: Multi-timeframe visualization showing OI changes across 7 periods (3, 5, 8, 13,
21, 34, and 55 days)
- Divergence Detection: Color-coded markers (teal for bullish, red for bearish) highlighting - -
significant divergences between price and open interest
- Analysis Table: Real-time summary of key metrics including aggregate OI, recent changes, and
bullish/bearish activity
🔶 Interpretation:
Increasing Open Interest + Rising Price: Strong bullish trend confirmation
Increasing Open Interest + Falling Price: Strong bearish trend confirmation
Decreasing Open Interest + Rising Price: Weak bullish trend (potential reversal)
Decreasing Open Interest + Falling Price: Weak bearish trend (potential reversal)
Divergences: Signal potential trend exhaustion and reversals when price moves in one direction while open interest moves in the opposite direction
Heatmap: Provides at-a-glance insight into open interest trends across multiple timeframes, with green bars indicating rising OI and red bars indicating falling OI
🔶 EXAMPLES
Trend Confirmation: Rising open interest accompanying a price increase confirms strong bullish momentum with institutional backing.
- Example: During January-February 2025, rising OI during price advances confirms institutional
participation in the uptrend.
- Bearish Divergence: Price makes a higher high while open interest makes a lower high,
signaling potential trend reversal.
- Example: Red markers appear at market tops where price continues higher but open interest
fails to confirm, preceding significant corrections.
- Bullish Divergence: Price makes a lower low while open interest makes a higher low,
indicating potential bottoming.
- Example: Teal markers appear at market bottoms where price continues lower but open
interest fails to confirm, preceding significant rallies.
OI Heatmap Analysis: Multiple timeframes showing consistent red signals across short to long-term periods indicate strong institutional selling pressure.
Example: When all 7 periods (3-55 days) show red during a price uptrend, this signals institutional selling into retail strength, often preceding major corrections.
🔶 SETTINGS
Customization Options:
Data Sources: Toggle different exchanges (Binance USDT/USD/BUSD, BitMEX USD/USDT, Kraken USD)
Display Mode: Choose between Open Interest, OI Change, OI Delta, OI Delta × Volume, OI RSI, and OI Heatmap
Currency Units: Display in USD or base cryptocurrency (COIN)
Analysis Tools: Moving Average (length and color), RSI (length and color)
Divergence Detection: Enable/disable signals, adjust lookback period and threshold percentage, customize bullish/bearish divergence colors
OI Heatmap Colors: Customize bullish (green) and bearish (red) signal colors for the multi-timeframe heatmap visualization
The Aggregated Open Interest indicator provides traders with comprehensive insights into institutional positioning across major exchanges, helping identify potential trend continuations, reversals, and key market turning points driven by smart money movements. The addition of the OI Heatmap feature enables traders to quickly visualize open interest trends across multiple timeframes, providing valuable context for institutional positioning over different market cycles.
Divergence Detector - Free🔵Introduction
🟣Understanding Divergence
As mentioned, divergence occurs in technical analysis when a stock's price behaves contrary to indicators on the price chart. Divergence can signify either a reversal of the stock's trend or a continuation of the previous trend correction.
Divergences can act as reversal patterns or continuation patterns. Moreover, divergences can be utilized to identify potential support and resistance levels.
For instance, when an indicator is trending upwards and positive, but the price is declining and trending downwards, divergence occurs. Divergence in a stock indicates trader indecision in buying and selling and warns traders to reconsider their decisions regarding buying or holding the stock.
Divergence aids analysts in identifying critical price points. In indicator divergences, it serves as a potent signal in the realm of technical analysis.
🟣Types of Divergence
1.Regular Divergence
o Positive Regular Divergence (RD+)
o Negative Regular Divergence (RD-)
2.Hidden Divergence
o Positive Hidden Divergence (HD+)
o Negative Hidden Divergence (HD-)
3.Time Divergence
Key Note: This indicator is specifically designed to identify "Regular Divergence" only. Therefore, the following explanation pertains to this type of divergence.
🔵Regular Divergence/Convergence
Regular Divergence(Convergence) occurs due to conflicting behavior between the indicator and the price chart, typically at the end of a trend. Recognizing Regular Divergence suggests an anticipation of a trend reversal or a pattern resembling a reversal.
snapshot
🟣Positive Regular Divergence (RD+)
In contrast to negative divergence, positive Regular Divergence occurs at the end of a downtrend and between two price lows. It manifests when the price forms a new low on the price chart, but the indicator fails to recognize it.
Positive Regular Divergence indicates strong buying pressure and weak selling pressure. Following the identification of positive divergence on the chart, one can anticipate a price increase for the examined stock.
snapshot
🟣Negative Regular Divergence (RD-)
This type of Regular Divergence emerges between two price highs during an uptrend. A new high is formed on the price chart, but the indicator fails to acknowledge it. This scenario indicates negative Regular Divergence.
The likelihood of a subsequent market downturn is high. Negative divergence signifies strong selling pressure and weak buying pressure, suggesting an unfavorable future for the stock.
snapshot
🔵How to use
By utilizing the "Fractal Period" input, you can specify your desired periods for identifying divergences.
Additionally, through the "Divergence Detect Method" feature, you can choose which oscillators (MACD, RSI, or AO) to base divergence identification on.
Divergence in MACD Oscillator:
Divergence in the MACD indicator occurs when the price chart and the MACD line form a noticeable opposing pattern, meaning the price moves contrary to the MACD line. In this scenario, one expects a reversal in price direction.
snapshot
Divergence in RSI Oscillator:
If divergence occurs during a downtrend on the price chart (two consecutive lows, with the second low being lower) and on the corresponding RSI point (two consecutive lows, with the second low being higher), it signifies positive Regular Divergence and implies a buying signal.
Conversely, if divergence occurs during an uptrend on the price chart (two consecutive highs, with the second high being higher) and on the corresponding RSI point (two consecutive highs, with the second high being lower), it indicates negative Regular Divergence, signaling a selling opportunity.
snapshot
Divergence in AO Oscillator:
The AO indicator calculates histograms similar to the AO base. It calculates the difference between the simple moving averages of 5 and 34 periods based on the median of each bar. Then, it plots the bars based on the difference.
It then compares the histograms to detect peaks and troughs in the AO histograms and compares the identified peaks and troughs to the price. Whenever divergence is detected, it plots lines and arrows.
snapshot
🔵Table
The table contains information on the functional features of this oscillator that you can utilize. Four categories of information are presented in the table: "Exist," "Consecutive," "Divergence Quality," and "Change Phase Indicator."
Exist:
If divergence exists, you'll see "+" in this row.
Consecutive:
Divergences may occur consecutively. If same-type divergences form within short intervals, you can observe the count in this row.
snapshot
Divergence Quality: Based on the number of consecutive divergences, their quality can be evaluated. If one divergence exists, its quality is considered "Normal." If two divergences exist, the quality is "Good," and if three or more divergences exist, the quality is considered "Strong."
Change Phase Indicator: If a phase change occurs between two oscillation peaks formed based on divergence, this change is identified and displayed in this row.
snapshot
Stochastics + Williams VixFix Master Strategy📈 Stochastics + Williams VixFix Master Strategy
A precision-built reversal detection tool that combines momentum exhaustion with volatility panic spikes to identify high-probability turning points — especially effective on daily charts for ETFs and indices.
🔍 How It Works:
✅ Buy Signal triggers when:
Stochastics %K and %D are both oversold
A bullish crossover occurs
A VixFix spike confirms market fear
❌ Sell Signal requires:
%K and %D overbought
A bearish crossover + bearish candle confirmation (lower close and red bar)
🎯 Highlights:
Relaxed signal logic to avoid missed opportunities
Filters out weak sell signals in choppy zones
Clean visuals with background color cues
Alerts ready for automation
Use this strategy to confidently spot fear-driven bottoms and euphoria-driven tops — before the herd reacts.
Micro Gaps DetectorSimple Micro Gap Indicator: A Technical Analysis Tool
The Simple Micro Gap Indicator is a specialized momentum indicator designed to identify and analyze micro gaps between consecutive candlesticks in financial charts. Unlike traditional gap analysis that focuses on larger price gaps, this indicator specifically targets smaller, less noticeable spaces between candles.
Key Features:
Detects minimal price disparities between consecutive candlesticks
Helps identify potential short-term momentum shifts
Useful for high-frequency trading and scalping strategies
Functions as a momentum indicator for short-term price movements
Dettsec SM ALERTSThe DETTSEC SilverMic Strategy is a precision-engineered trend-following system designed to identify key market reversals using dynamic ATR-based stop levels. Built with the aim of riding trends while avoiding noise and false signals, this strategy uses the Average True Range (ATR) to calculate adaptive stop zones that respond to market volatility. With a combination of smart trailing logic and visual aids, it offers traders clear entry signals and real-time direction tracking.
At the core of this strategy lies a dual-layer stop system. When the market is trending upwards, the strategy calculates a Long Stop by subtracting the ATR from the highest price (or close, depending on user settings) over a specified period. Conversely, in a downtrend, it calculates a Short Stop by adding ATR to the lowest price (or close). These stops are not static — they trail in the direction of the trend and only reset when a reversal is confirmed, ensuring the system remains adaptive yet stable.
The strategy detects trend direction based on price behavior relative to these stops. When the price closes above the Short Stop, the system identifies a potential bullish reversal and shifts into a long mode. Similarly, a close below the Long Stop flips the system into a bearish mode. These directional changes trigger Buy or Sell signals, plotted clearly on the chart with optional label markers and circular highlights.
To enhance usability, the strategy includes visual elements such as color-filled backgrounds indicating the active trend state (green for long, red for short). Traders can customize whether to display Buy/Sell labels, use closing prices for extremum detection, and highlight state changes. Additionally, real-time alerts are built-in for direction changes and trade entries — empowering traders to stay informed even when off the charts.
Whether you're a manual trader seeking confirmation for your entries, or an algo-enthusiast automating entries based on clean signals, the DETTSEC SilverMic Strategy is designed to deliver clarity, reliability, and precision. As always, it's optimized for performance and simplicity.
Issued By Dettsec Algo Pvt Ltd,
Created By - Gaurav Sanghvi - Co-Founder Dettsec Algo Pvt Ltd
Tanmay Joshi - Founder Dettsec Algo Pvt Ltd
[blackcat] L1 Bollinger Bands Width WatcherOVERVIEW
The Bollinger Bands Width Watcher is an advanced tool designed to monitor the width of Bollinger Bands, providing insights into market volatility and potential trend reversals. This indicator calculates both absolute and relative widths of the bands, plotting them on the chart for easy visualization. It also generates buy and sell signals based on crossover events, helping traders make informed decisions 📊✅.
Today, this article introduces the final member of the Bollinger Bands trio—Bollinger Bands Width (BBW). Derived from the renowned Bollinger Bands, this indicator measures price volatility and identifies trading signals. First, let’s delve into what Bollinger Bands are. They consist of three lines associated with the price of a security:
The middle line is typically a 20-day Simple Moving Average (SMA).
The upper and lower bands represent two standard deviations above and below the middle band.
The Bollinger Bands Width measures the distance between these upper and lower bands.
Bollinger Bands Width = (Upper Band - Lower Band) / Middle Band
Calculating BBW involves subtracting the lower band from the upper band and dividing by the middle band to obtain the BBW value. However, interpreting BBW values alone isn't enough to determine if they're narrow or wide. Different instruments or timeframes might define narrowness differently. To gauge the significance of band narrowing accurately, analyzing past BBW fluctuations alongside price movements is essential.
One prominent theory involving Bollinger Bands is the "squeeze." A squeeze setup comprises two phases:
Low volatility, where bands narrow, and prices move sideways.
Increased volatility, where prices breach either the upper or lower band, initiating a new trend.
During a bullish squeeze, BBW diminishes, and breaking above the upper band signals a new uptrend. Conversely, in a bearish squeeze, BBW declines, and falling below the lower band indicates a new downtrend.
While BBW excels at spotting squeezes, traders must exercise caution. Even with a squeeze setup, a robust market trend might not materialize. Validating breakouts necessitates personal judgment and additional confirmation techniques.
Now, let's explore key parameters and settings:
Length: Defines the period for computing the base SMA, defaulting to 20 days.
Source: Specifies the data source per candle, defaulting to the closing price.
Standard Deviation: Sets the number of standard deviations from the SMA for the upper and lower bands, defaulting to 2.
FEATURES
Calculates Bollinger Bands Width using customizable parameters:
Smoothing Length: Number of bars used for calculating the moving average and standard deviation.
Source Price: Defaults to closing prices but can be adjusted.
Standard Deviation Multiplier: Controls the width of the bands.
Plots two types of Bollinger Bands Width:
Absolute width relative to the basis (Yellow Line).
Relative width compared to the close price (Fuchsia Line).
Fills the area between the two plotted lines for better visual context 🌈
Generates buy ('Buy') and sell ('Sell') labels based on crossover events 🏷️
Provides alerts for crossover signals to notify users of potential trade opportunities 🔔
HOW TO USE
Add the indicator to your TradingView chart by selecting it from the indicators list.
Adjust the Smoothing Length, Source Price, and Standard Deviation Multiplier as needed ⚙️.
Observe the plotted Bollinger Bands Width lines and filled areas for insights into market volatility.
Monitor the chart for buy and sell labels indicating potential trade opportunities.
Set up alerts based on the generated signals to receive notifications when conditions are met 📲.
LIMITATIONS
The indicator may generate false signals in highly volatile or ranging markets 🌪️.
Users should combine this indicator with other forms of analysis for more reliable trading decisions.
The effectiveness of the indicator may vary depending on the asset and timeframe being analyzed.
NOTES
Ensure that you have sufficient historical data available for accurate calculations.
Test the indicator thoroughly on demo accounts before applying it to live trading 🔍.
Customize the appearance and parameters as needed to fit your trading strategy.
SuperTrend + MACD Webhook (bandar)//@version=5
indicator("SuperTrend + MACD Webhook (bandar)", overlay=true)
// === إعدادات SuperTrend ===
atrPeriod = input.int(10, title="ATR Length")
factor = input.float(1.5, title="Multiplier", step=0.1) // ← تم تحديد step = 0.1 بوضوح
= ta.supertrend(factor, atrPeriod)
// === إعدادات MACD ===
fastLen = input.int(12, title="MACD Fast Length")
slowLen = input.int(26, title="MACD Slow Length")
signalSmoothing = input.int(9, title="MACD Signal Smoothing")
= ta.macd(close, fastLen, slowLen, signalSmoothing)
// === منطق الدخول والخروج ===
longSignal = trendDir == 1 and macdLine > signalLine
shortSignal = trendDir == -1 and macdLine < signalLine
// === منع تكرار الإشارة
var bool inTrade = false
symbolName = syminfo.ticker
// === إشارات وتنبيهات webhook
buyCondition = longSignal and not inTrade
sellCondition = shortSignal and inTrade
if buyCondition
inTrade := true
label.new(bar_index, low, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white)
alert('{"action":"buy","symbol":"' + symbolName + '"}', alert.freq_once_per_bar_close)
if sellCondition
inTrade := false
label.new(bar_index, high, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white)
alert('{"action":"sell","symbol":"' + symbolName + '"}', alert.freq_once_per_bar_close)
// === عرض خط SuperTrend
plot(supertrend, color=trendDir == 1 ? color.green : color.red, title="SuperTrend Line")
Smart Market Matrix Smart Market Matrix
This indicator is designed for intraday, scalping, providing automated detection of price pivots, liquidity traps, and breakout confirmations, along with a context dashboard featuring volatility, trend, and volume.
## Summary Description
### Menu Settings & Their Roles
- **Swing Pivot Strength**: Controls the sensitivity for detecting High/Low pivots.
- **Show Pivot Points**: Toggles the display of HH/LL markers on the chart.
- **VWMA Length for Trap Volume** & **Volume Spike Multiplier**: Identify concentrated volume spikes for liquidity traps.
- **Wick Ratio Threshold** & **Max Body Size Ratio**: Detect candles with disproportionate wicks and small bodies (doji-ish) for traps.
- **ATR Length for Trap**: Measures volatility specific to trap detection.
- **VWMA Length for Breakout Volume**, **ATR Multiplier for Breakout**, **ATR Length for Breakout**, **Min Body/Range Ratio**: Set adaptive breakout thresholds based on volatility and volume.
- **OBV Smooth Length**: Smooths OBV momentum for breakout confirmation.
- **Enable VWAP Filter for Confirmations**: Optionally validate breakouts against the VWAP.
- **Enable Higher-TF Trend Filter** & **Trend Filter Timeframe**: Align breakout signals with the 1h/4h/Daily trend.
- **ADX Length**, **EMA Fast/Slow Length for Context**: Parameters for the context dashboard (Volatility, Trend, Volume).
- **Show Intraday VWAP Line**, **VWAP Line Color/Width**: Display the intraday VWAP line with custom style.
### Signal Interpretation Map
| Signal | Description | Recommended Action |
|--------------------------------|-----------------------------------------------------------|-------------------------------------------|
| 📌 **HH / LL (pivot)** | Market structure (support/resistance) | Note key levels |
| **Bull Trap(green diamond)** | Sweep down + volume spike + wick + rejection | Go long with trend filter
| **Bear Trap(red diamond)** | Sweep up + volume spike + wick + rejection | Go short with trend filter
| 🔵⬆️ **Breakout Confirmed Up** | Close > ATR‑scaled high + volume + OBV↑ | Go long with trend filter |
| 🔵⬇️ **Breakout Confirmed Down** | Close < ATR‑scaled low + volume + OBV↓ | Go short with trend filter |
| 📊 **VWAP Line** | Intraday reference to guide price | Use as dynamic support/resistance |
| ⚡ **Volatility** | ATR ratio High/Med/Low | Adjust position size |
| 📈 **Trend Context** | ADX+EMA Strong/Moderate/Weak | Confirm trend direction |
| 🔍 **Volume Context** | Breakout / Rising / Falling / Calm | Check volume momentum |
*This summary gives you a quick overview of the key settings and how to interpret signals for efficient intraday scalping.*
### Suggested Settings
- **Intraday Scalping (5m–15m)**
- `Swing Pivot Strength = 5`
- `VWMA Length for Trap Volume = 10`, `Volume Spike Multiplier = 1.6`
- `ATR Length for Trap = 7`
- `VWMA Length for Breakout Volume = 12`, `ATR Length for Breakout = 9`, `ATR Multiplier for Breakout = 0.5`
- `Min Body/Range Ratio for Breakout = 0.5`, `OBV Smooth Length = 7`
- `Enable Higher-TF Trend Filter = true` (TF = 60)
- `Show Intraday VWAP Line = true` (Color = orange, Width = 2)
- **Swing Trading (4h–Daily)**
- `Swing Pivot Strength = 10`
- `VWMA Length for Trap Volume = 20`, `Volume Spike Multiplier = 2.0`
- `ATR Length for Trap = 14`
- `VWMA Length for Breakout Volume = 30`, `ATR Length for Breakout = 14`, `ATR Multiplier for Breakout = 0.8`
- `Min Body/Range Ratio for Breakout = 0.7`, `OBV Smooth Length = 14`
- `Enable Higher-TF Trend Filter = true` (TF = D)
- `Show Intraday VWAP Line = false`
*Adjust these values based on the symbol and market volatility for optimal performance.*
True Strength Index (TSI)This is my version of TSI which is identical to trading oracle's TSI.
The default settings are:
Short Period Length: 6
Long Period Length: 13
Signal Line Length: 9
A more general and common recommended setting:
Short Period Length: 13
Long Period Length: 25
Signal Line Length: 7
Default settings are intended for day trading - which I use to watch for divergences in price vs. TSI.
Combined High Low & MI Pivot PointsThis is an major upgrade of the old MI_Pivots indicator with mid levels. I have included key levels like the Yesterday high and low, Last weeks high and low and combined it into one indicator. If you trade Forex or Crypto intraday you need this indicator 😊
Zweig Market Breadth Thrust Indicator+Trigger [LazyBear x rwak]The Breadth Thrust (BT) indicator is a market momentum indicator developed by Dr. Martin Zweig. According to Dr. Zweig, a Breadth Thrust occurs when, during a 10-day period, the Breadth Thrust indicator rises from below 40 percent to above 61.5 percent.
A "Thrust" indicates that the stock market has rapidly changed from an oversold condition to one of strength, but has not yet become overbought. This is very rare and has happened only a few times. Dr. Zweig also points out that most bull markets begin with a Breadth Thrust.
This version of the Breadth Thrust indicator includes a trigger visualized with red circles, making it easier to spot when the indicator crosses the critical 61.5% level, signaling potential bullish momentum.
All parameters are configurable. You can draw BT for NYSE, NASDAQ, AMEX, or based on combined data (i.e., AMEX+NYSE+NASD). There is also a "CUSTOM" mode supported, so you can enter your own ADV/DEC symbols.
Credit: The original Breadth Thrust logic was created by LazyBear, whose public indicators can be found here , and app-store indicators here .
More info:
Definition of Breadth Thrust
A Breadth Thrust Signal
A Rare "Zweig" Buy Signal
Zweig Breadth Thrust: Redux
Dual Momentum OSCOverview:
Momentum OSC is a dual-layered momentum oscillator that blends multi-timeframe momentum readings with moving average crossovers for deeper insight into trend acceleration and exhaustion. Perfect for confirming trend strength or spotting early shifts in momentum.
Features:
✅ Two separate momentum streams with customizable timeframes
✅ Smoothing via moving averages for both momenta
✅ Cross-timeframe momentum structure for confirmation and divergence
✅ Color-coded areas for intuitive visual interpretation
✅ Optional crossover markers to signal bullish/bearish momentum shifts
How It Works:
The script calculates two momentum values by comparing current price sources against lagged values across separate timeframes. Each is smoothed with a moving average to filter noise. The difference between momentum and its moving average forms a core component of trend strength confirmation. Optional visual circles mark bullish or bearish crossovers.
Customizable Inputs:
Timeframes, sources, lengths, and MA periods for both momentum streams
Toggle to display momentum cross signals (circles)
Works on any asset or timeframe
NR4/NR7 + Trend + MACD + VWAP FilterThe Ultimate Momentum-Compression Strategy
This strategy merges the power of price compression and trend confirmation, ensuring you're trading when the market is coiled and ready to move. By combining multiple filters—NR4/NR7, trend alignment, MACD momentum, and VWAP support—this setup identifies high-probability trade opportunities in dynamic, trending stocks. Here's how it works:
NR4/NR7 Patterns: These are narrow-range days where the current price range is smaller than the previous 4 or 7 days. This signals potential breakout or continuation setups, as the market is compressing before making a move.
Trend Confirmation: To ensure you're not trading against the current trend, the price must be above the 20 EMA, and the 10 EMA must be above the 20 EMA. This confirms a bullish structure, with the price trending in your favour.
MACD Momentum: The fast MACD line must be above the slow MACD line, confirming the trend is not only intact but also gaining momentum.
VWAP Filter: Price must be above the VWAP (Volume Weighted Average Price). This is the final confirmation that the market is in a strong, bullish phase, with buyers dominating the market.
By requiring all these conditions to align, this strategy takes the guesswork out of day trading. It ensures you're trading within a well-established trend, with compression patterns and momentum backing your trade. The result? You’re entering positions with confidence and clarity, poised to ride strong, sustained moves.
This strategy is for the trader who values both flexibility and discipline—able to capture dynamic moves while staying aligned with market structure and momentum. It’s a refined, systematic approach that makes decisions clear, without the emotional second-guessing.
Volume by PriceDescription:
This Pine Script v6 indicator displays a chart that multiplies the volume by the closing price for each bar. It's often referred to as "monetary volume" or "traded value." This allows for the visualization of monetary activity on a price chart.
Technical Insights:
- Calculation: The indicator simply multiplies the volume of each bar (volume) by its closing price (close).
- Display: The result is plotted as a line in a separate pane below the main price chart. The height of the line at each point represents the product of the volume and the closing price at that time.
- Interpretation:
- Spikes in Volume * Price: Indicate significant monetary activity. This can signal strong interest in the asset at that price level.
- Low Volume * Price: Suggests a lack of interest or conviction.
- Divergences: If volume * price increases while the price decreases (or vice versa), it may signal a weakening of the current trend.
How to Use:
1. Identify Areas of Interest: Look for significant spikes in the volume * price chart. These areas may coincide with key support or resistance levels.
2. Confirm Trends: A price movement upwards (or downwards) accompanied by an increase in volume * price strengthens the validity of that trend.
3. Spot Divergences: Pay attention to situations where the volume * price does not confirm the price movement. This could indicate a potential reversal.
4. Combine with Other Indicators: Use this indicator in conjunction with other technical analysis tools (moving averages, RSI, MACD, etc.) for a more comprehensive view.
Potential Applications:
- Breakout Confirmation: A breakout of a price level (support or resistance) accompanied by increased volume * price is a stronger signal than a breakout with low volume.
- Identifying High Activity Zones: This indicator can help pinpoint price levels where a lot of trading has occurred, potentially indicating future support/resistance areas.
- Analyzing Market Participation: High volume * price suggests strong participation, while low volume * price indicates a lack of interest.
- Detecting Divergences: Divergences between volume * price and price can signal potential trend reversals.
- Momentum Trading: Combined with other momentum indicators, it can help identify entry and exit points.
Important Notes:
- This indicator is based on the closing price. It does not take into account the highs and lows of each bar.
- Volume * price is an analysis tool, not a standalone trading system. It should be used in conjunction with other indicators and strategies.
- The interpretation of volume * price may vary depending on the market and the time frame being analyzed.
Feel free to adapt this description to your own style and needs. You can also add concrete examples or screenshots to illustrate its use.
ADR% Extension Levels from SMA 50I created this indicator inspired by RealSimpleAriel (a swing trader I recommend following on X) who does not buy stocks extended beyond 4 ADR% from the 50 SMA and uses extensions from the 50 SMA at 7-8-9-10-11-12-13 ADR% to take profits with a 20% position trimming.
RealSimpleAriel's strategy (as I understood it):
-> Focuses on leading stocks from leading groups and industries, i.e., those that have grown the most in the last 1-3-6 months (see on Finviz groups and then select sector-industry).
-> Targets stocks with the best technical setup for a breakout, above the 200 SMA in a bear market and above both the 50 SMA and 200 SMA in a bull market, selecting those with growing Earnings and Sales.
-> Buys stocks on breakout with a stop loss set at the day's low of the breakout and ensures they are not extended beyond 4 ADR% from the 50 SMA.
-> 3-5 day momentum burst: After a breakout, takes profits by selling 1/2 or 1/3 of the position after a 3-5 day upward move.
-> 20% trimming on extension from the 50 SMA: At 7 ADR% (ADR% calculated over 20 days) extension from the 50 SMA, takes profits by selling 20% of the remaining position. Continues to trim 20% of the remaining position based on the stock price extension from the 50 SMA, calculated using the 20-period ADR%, thus trimming 20% at 8-9-10-11 ADR% extension from the 50 SMA. Upon reaching 12-13 ADR% extension from the 50 SMA, considers the stock overextended, closes the remaining position, and evaluates a short.
-> Trailing stop with ascending SMA: Uses a chosen SMA (10, 20, or 50) as the definitive stop loss for the position, depending on the stock's movement speed (preferring larger SMAs for slower-moving stocks or for long-term theses). If the stock's closing price falls below the chosen SMA, the entire position is closed.
In summary:
-->Buy a breakout using the day's low of the breakout as the stop loss (this stop loss is the most critical).
--> Do not buy stocks extended beyond 4 ADR% from the 50 SMA.
--> Sell 1/2 or 1/3 of the position after 3-5 days of upward movement.
--> Trim 20% of the position at each 7-8-9-10-11-12-13 ADR% extension from the 50 SMA.
--> Close the entire position if the breakout fails and the day's low of the breakout is reached.
--> Close the entire position if the price, during the rise, falls below a chosen SMA (10, 20, or 50, depending on your preference).
--> Definitively close the position if it reaches 12-13 ADR% extension from the 50 SMA.
I used Grok from X to create this indicator. I am not a programmer, but based on the ADR% I use, it works.
Below is Grok from X's description of the indicator:
Script Description
The script is a custom indicator for TradingView that displays extension levels based on ADR% relative to the 50-period Simple Moving Average (SMA). Below is a detailed description of its features, structure, and behavior:
1. Purpose of the Indicator
Name: "ADR% Extension Levels from SMA 50".
Objective: Draw horizontal blue lines above and below the 50-period SMA, corresponding to specific ADR% multiples (4, 7, 8, 9, 10, 11, 12, 13). These levels represent potential price extension zones based on the average daily percentage volatility.
Overlay: The indicator is overlaid on the price chart (overlay=true), so the lines and SMA appear directly on the price graph.
2. Configurable Inputs
The indicator allows users to customize parameters through TradingView settings:
SMA Length (smaLength):
Default: 50 periods.
Description: Specifies the number of periods for calculating the Simple Moving Average (SMA). The 50-period SMA serves as the reference point for extension levels.
Constraint: Minimum 1 period.
ADR% Length (adrLength):
Default: 20 periods.
Description: Specifies the number of days to calculate the moving average of the daily high/low ratio, used to determine ADR%.
Constraint: Minimum 1 period.
Scale Factor (scaleFactor):
Default: 1.0.
Description: An optional multiplier to adjust the distance of extension levels from the SMA. Useful if levels are too close or too far due to an overly small or large ADR%.
Constraint: Minimum 0.1, increments of 0.1.
Tooltip: "Adjust if levels are too close or far from SMA".
3. Main Calculations
50-period SMA:
Calculated with ta.sma(close, smaLength) using the closing price (close).
Serves as the central line around which extension levels are drawn.
ADR% (Average Daily Range Percentage):
Formula: 100 * (ta.sma(dhigh / dlow, adrLength) - 1).
Details:
dhigh and dlow are the daily high and low prices, obtained via request.security(syminfo.tickerid, "D", high/low) to ensure data is daily-based, regardless of the chart's timeframe.
The dhigh / dlow ratio represents the daily percentage change.
The simple moving average (ta.sma) of this ratio over 20 days (adrLength) is subtracted by 1 and multiplied by 100 to obtain ADR% as a percentage.
The result is multiplied by scaleFactor for manual adjustments.
Extension Levels:
Defined as ADR% multiples: 4, 7, 8, 9, 10, 11, 12, 13.
Stored in an array (levels) for easy iteration.
For each level, prices above and below the SMA are calculated as:
Above: sma50 * (1 + (level * adrPercent / 100))
Below: sma50 * (1 - (level * adrPercent / 100))
These represent price levels corresponding to a percentage change from the SMA equal to level * ADR%.
4. Visualization
Horizontal Blue Lines:
For each level (4, 7, 8, 9, 10, 11, 12, 13 ADR%), two lines are drawn:
One above the SMA (e.g., +4 ADR%).
One below the SMA (e.g., -4 ADR%).
Color: Blue (color.blue).
Style: Solid (style=line.style_solid).
Management:
Each level has dedicated variables for upper and lower lines (e.g., upperLine1, lowerLine1 for 4 ADR%).
Previous lines are deleted with line.delete before drawing new ones to avoid overlaps.
Lines are updated at each bar with line.new(bar_index , level, bar_index, level), covering the range from the previous bar to the current one.
Labels:
Displayed only on the last bar (barstate.islast) to avoid clutter.
For each level, two labels:
Above: E.g., "4 ADR%", positioned above the upper line (style=label.style_label_down).
Below: E.g., "-4 ADR%", positioned below the lower line (style=label.style_label_up).
Color: Blue background, white text.
50-period SMA:
Drawn as a gray line (color.gray) for visual reference.
Diagnostics:
ADR% Plot: ADR% is plotted in the status line (orange, histogram style) to verify the value.
ADR% Label: A label on the last bar near the SMA shows the exact ADR% value (e.g., "ADR%: 2.34%"), with a gray background and white text.
5. Behavior
Dynamic Updating:
Lines update with each new bar to reflect new SMA 50 and ADR% values.
Since ADR% uses daily data ("D"), it remains constant within the same day but changes day-to-day.
Visibility Across All Bars:
Lines are drawn on every bar, not just the last one, ensuring visibility on historical data as well.
Adaptability:
The scaleFactor allows level adjustments if ADR% is too small (e.g., for low-volatility symbols) or too large (e.g., for cryptocurrencies).
Compatibility:
Works on any timeframe since ADR% is calculated from daily data.
Suitable for symbols with varying volatility (e.g., stocks, forex, cryptocurrencies).
6. Intended Use
Technical Analysis: Extension levels represent significant price zones based on average daily volatility. They can be used to:
Identify potential price targets (e.g., take profit at +7 ADR%).
Assess support/resistance zones (e.g., -4 ADR% as support).
Measure price extension relative to the 50 SMA.
Trading: Useful for strategies based on breakouts or mean reversion, where ADR% levels indicate reversal or continuation points.
Debugging: Labels and ADR% plot help verify that values align with the symbol’s volatility.
7. Limitations
Dependence on Daily Data: ADR% is based on daily dhigh/dlow, so it may not reflect intraday volatility on short timeframes (e.g., 1 minute).
Extreme ADR% Values: For low-volatility symbols (e.g., bonds) or high-volatility symbols (e.g., meme stocks), ADR% may require adjustments via scaleFactor.
Graphical Load: Drawing 16 lines (8 upper, 8 lower) on every bar may slow the chart for very long historical periods, though line management is optimized.
ADR% Formula: The formula 100 * (sma(dhigh/dlow, Length) - 1) may produce different values compared to other ADR% definitions (e.g., (high - low) / close * 100), so users should be aware of the context.
8. Visual Example
On a chart of a stock like TSLA (daily timeframe):
The 50 SMA is a gray line tracking the average trend.
Assuming an ADR% of 3%:
At +4 ADR% (12%), a blue line appears at sma50 * 1.12.
At -4 ADR% (-12%), a blue line appears at sma50 * 0.88.
Other lines appear at ±7, ±8, ±9, ±10, ±11, ±12, ±13 ADR%.
On the last bar, labels show "4 ADR%", "-4 ADR%", etc., and a gray label shows "ADR%: 3.00%".
ADR% is visible in the status line as an orange histogram.
9. Code: Technical Structure
Language: Pine Script @version=5.
Inputs: Three configurable parameters (smaLength, adrLength, scaleFactor).
Calculations:
SMA: ta.sma(close, smaLength).
ADR%: 100 * (ta.sma(dhigh / dlow, adrLength) - 1) * scaleFactor.
Levels: sma50 * (1 ± (level * adrPercent / 100)).
Graphics:
Lines: Created with line.new, deleted with line.delete to avoid overlaps.
Labels: Created with label.new only on the last bar.
Plots: plot(sma50) for the SMA, plot(adrPercent) for debugging.
Optimization: Uses dedicated variables for each line (e.g., upperLine1, lowerLine1) for clear management and to respect TradingView’s graphical object limits.
10. Possible Improvements
Option to show lines only on the last bar: Would reduce visual clutter.
Customizable line styles: Allow users to choose color or style (e.g., dashed).
Alert for anomalous ADR%: A message if ADR% is too small or large.
Dynamic levels: Allow users to specify ADR% multiples via input.
Optimization for short timeframes: Adapt ADR% for intraday timeframes.
Conclusion
The script creates a visual indicator that helps traders identify price extension levels based on daily volatility (ADR%) relative to the 50 SMA. It is robust, configurable, and includes debugging tools (ADR% plot and labels) to verify values. The ADR% formula based on dhigh/dlow
Anchored Darvas Box## ANCHORED DARVAS BOX
---
### OVERVIEW
**Anchored Darvas Box** lets you drop a single timestamp on your chart and build a Darvas-style consolidation zone forward from that exact candle. The indicator freezes the first user-defined number of bars to establish the range, verifies that price respects that range for another user-defined number of bars, then waits for the first decisive breakout. The resulting rectangle captures every tick of the accumulation phase and the exact moment of expansion—no manual drawing, complete timestamp precision.
---
### HISTORICAL BACKGROUND
Nicolas Darvas’s 1950s box theory tracked institutional accumulation by hand-drawing rectangles around tight price ranges. A trade was triggered only when price escaped the rectangle.
The anchored version preserves Darvas’s logic but pins the entire sequence to a user-chosen candle: perfect for analysing a market open, an earnings release, FOMC minute, or any other catalytic bar.
---
### ALGORITHM DETAIL
1. **ANCHOR BAR**
*You provide a timestamp via the settings panel.* The script waits until the chart reaches that bar and records its index as **startBar**.
2. **RANGE DEFINITION — BARS 1-7**
• `rangeHigh` = highest high of bars 1-7 plus optional tolerance.
• `rangeLow` = lowest low of bars 1-7 minus optional tolerance.
3. **RANGE VALIDATION — BARS 8-14**
• Price must stay inside ` `.
• Any violation aborts the test; no box is created.
4. **ARMED STATE**
• If bars 8-14 hold the range, two live guide-lines appear:
– **Green** at `rangeHigh`
– **Red** at `rangeLow`
• The script is now “armed,” waiting indefinitely for the first true breakout.
5. **BREAKOUT & BOX CREATION**
• **Up breakout** =`high > rangeHigh` → rectangle drawn in **green**.
• **Down breakout**=`low < rangeLow` → rectangle drawn in **red**.
• Box extends from **startBar** to the breakout bar and never updates again.
• Optional labels print the dollar and percentage height of the box at its left edge.
6. **OPTIONAL COOLDOWN**
• After the box is painted the script can stay silent for a user-defined number of bars, letting you study the fallout without another range immediately arming on top of it.
---
### INPUT PARAMETERS
• **ANCHOR TIME** – Precise yyyy-mm-dd HH:MM:SS that seeds the sequence.
• **BARS TO DEFINE RANGE** – Default 7; affects both definition and validation windows.
• **OPTIONAL TOLERANCE** – Absolute price buffer to ignore micro-wicks.
• **COOLDOWN BARS AFTER BREAKOUT** – Pause length before the indicator is allowed to re-anchor (set to zero to disable).
• **SHOW BOX DISTANCE LABELS** – Toggle to print Δ\$ and Δ% on every completed box.
---
### USER WORKFLOW
1. Add the indicator, open settings, and set **ANCHOR TIME** to the candle you care about (e.g., “2025-04-23 09:30:00” for NYSE open).
2. Watch live as the script:
– Paints the seven-bar range.
– Draws validation lines.
– Locks in the box on breakout.
3. Use the box boundaries as structural stops, targets, or context for further trades.
---
### PRACTICAL APPLICATIONS
• **OPENING RANGE BREAKOUTS** – Anchor at the first second of the session; capture the initial 7-bar range and trade the first clean break.
• **EVENT STUDIES** – Anchor at a news candle to measure immediate post-event volatility.
• **VOLUME PROFILE FUSION** – Combine the anchored box with VPVR to see if the breakout occurs at a high-volume node or a low-liquidity pocket.
• **RISK DISCIPLINE** – Stop-loss can sit just inside the opposite edge of the anchored range, enforcing objective risk.
---
### ADVANCED CUSTOMISATION IDEAS
• **MULTIPLE ANCHORS** – Clone the indicator and anchor several boxes (e.g., London open, New York open).
• **DYNAMIC WINDOW** – Switch the 7-bar fixed length to a volatility-scaled length (ATR percentile).
• **STRATEGY WRAPPER** – Turn the indicator into a `strategy{}` script and back-test anchored boxes on decades of data.
---
### FINAL THOUGHTS
Anchored Darvas Boxes give you Darvas’s timeless range-break methodology anchored to any candle of interest—perfect for dissecting openings, economic releases, or your own bespoke “important” bars with laboratory precision.
Top & Bottom Search ~ Experimental Top & Bottom Search ~ Experimental
This script is designed to identify potential market reversal zones using a combination of classic candlestick patterns (Piercing Line & Dark Cloud Cover) and trend confirmation tools like EMA positioning and optional RSI filters.
Core Features:
Detects Piercing Line and Dark Cloud Cover patterns.
Optional EMA filter to confirm bullish or bearish alignment.
Optional RSI filter to confirm oversold or overbought conditions.
Visual plot of the selected EMA (customizable thickness & color).
Clean and toggleable inputs for user flexibility.
Customizable Settings:
Enable/disable EMA confirmation.
Enable/disable RSI confirmation.
Choose whether to display the EMA on the chart.
Adjust EMA period, RSI thresholds, and candle visuals.
Note:
This is an experimental tool, best used as a supplement to your existing analysis. Not every signal is a guaranteed reversal—this script aims to highlight potential turning points that deserve closer attention.
I HIGHLY recommend using this in coherence with many other indicators in a robust system of indicators that meet your desired time frames and signal periods.
NOTES*
1.) An alternative way to view this indicator is as a "Piercing & Dark Cloud Candle Indicator/Strategy w/ EMA & RSI Logic - Either EMA or RSI Logics are Optional."
2.) When toggling between the RSI and EMA Filters, the default is set to RSI filter applied, however you cannot have both RSI signals and EMA filters on the chart at the same time, it can only be one or the other. So be aware that if you have EMA filter ON and select RSI filter, it will only be displaying the RSI filtered outputs. The ONLY WAY to see the EMA filtered outputs is to only have the EMA filter box checked and NOT the RIS filter box.
3.) Clarity: The display image above for the indicator is with only the RSI filter setting on. EMA filter is an option as well that I recommend considering when conducting trades/analysis.
Session VWAPBeautiful Session VWAP with line breaks and a trend fill. Couldn't find any that provide this level of anchor customizability/clean session breaks so I made my own. Can go up to +/-3σ by default, but you can also put in a custom multiplier set.
Highlight Large Candles// 🔍 Highlight Large Candles Indicator
// 🇬🇧 This indicator highlights candles where the full candle size (high - low) exceeds a user-defined percentage of the opening price (e.g., 1%).
// 🟠 When detected, the candle is colored orange and a label appears showing:
// - Body size
// - Upper wick size
// - Lower wick size
// - Open → Close distance (in price and %)
//
// 🔧 The minimum candle size threshold can be customized in the Settings.
// Ideal for identifying strong momentum or breakout candles.