Percent Change of Range Candles📌 Indicator Description: "Percent Change of Range Candles"
This indicator is designed to visualize the percentage price change over a specified number of candles, relative to the historical market range. Instead of traditional candles, it uses a custom "range candle" visualization that reflects relative changes in context with the highest and lowest points within a given period.
🎯 Purpose and Application
The goal of this indicator is to:
Show how much the current price has changed compared to the price length candles ago (default: 100).
Express this change as a percentage of the total price range during that period.
Help traders identify extreme price movements, whether bullish or bearish.
Serve as an additional filter for momentum zones, divergences, or overextended conditions.
⚙️ How It Works
🔹 Core Calculation:
Range: The difference between the highest and lowest price over the selected period (length).
Price Change: The difference between the current close and the close length bars ago.
Percentage Value: (price_change / range) * 100
🔹 Additional Logic:
The synthetic open value is calculated as the average of the last 5 c values.
The high and low of each range candle are adjusted:
If c is negative, the high is replaced with a shorter-term percentage change (25% of length).
If c is positive, the low is adjusted in the same way.
🔹 Visualization:
Displays custom candles based on percentage change, not real price.
Candle color is green if the current value is above the recent average, and red if below.
Horizontal reference lines are drawn at +100, +70, 0, -70, and -100, helping to identify extremes.
✅ Advantages and Use Cases
Detects market extremes and potential reversal zones.
Useful in volatility or momentum-based strategies.
Can serve as a signal filter or divergence detector when combined with other tools (e.g., RSI, MACD).
Volume
Advanced VW SMI w/ Divergence, Confirmations & TableVolume-Weighted SMI with Dynamic Divergence and Confirmation
Description:
This advanced indicator combines the Stochastic Momentum Index (SMI) with volume weighting, dynamic overbought/oversold bands, and robust divergence detection to help you spot true momentum reversals confirmed by volume, trend, and momentum.
Features
Volume-Weighted SMI
The SMI is amplified or dampened based on normalized volume, filtering out low-interest price moves and highlighting those with real conviction.
Dynamic OB/OS Bands
Overbought and oversold levels adapt automatically to current volatility and trend using moving average and standard deviation bands, keeping signals relevant across all market regimes.
Divergence Detection with Visuals
Real-time bullish and bearish divergence signals are drawn right on the SMI line, including lines and labels, making reversal setups easy to spot.
Triple Confirmation
Divergence signals are filtered by:
Volume surge (user adjustable)
RSI extremes (oversold/overbought)
Higher timeframe trend (optional EMA filter)
Customizable Volume Weighting
Adjust how much influence volume has on SMI signals—tune sensitivity to your market and style.
Performance Table
Track bullish/bearish divergence counts in real time.
How to Use
Add to your chart.
(Move to a separate pane for best results.)
Adjust settings to fit your market (lengths, volume power, trend filter, etc.).
Watch for colored SMI moves outside dynamic bands for momentum extremes.
Look for divergences marked by arrows, lines, and labels on the SMI.
Use table count for an overview of signal frequency.
Tips
Works on all timeframes; try adjusting dynamic band length for higher timeframes.
For scalping, lower the SMI and pivot lengths.
For swing trading, enable trend and volume confirmations for higher confidence.
Use with other price action signals for best results.
Created with Pine Script v5.
If you find this helpful, please give it a like or comment!
Optimized Trend [DaviddTech]Optimized Trend is a comprehensive trend-following indicator that combines multiple analytical techniques for improved decision-making.
Key Features:
Zero-Lag Exponential Moving Average (ZLEMA) to reduce lag and track price movements more effectively.
Adaptive Lag Control: The lag of the ZLEMA can be automatically adjusted based on market volatility (ATR), or manually set for user preference.
Composite Score: A weighted measure combining ZLEMA momentum, short-term price changes, ATR-based volatility, and money flow (using Chaikin Money Flow and Money Flow Index). This creates a 0–100 score reflecting overall market strength.
Dynamic Bands: ATR-based upper and lower bands shift depending on price relative to the ZLEMA, acting as dynamic support/resistance.
Trend Cross Alerts: Plots buy and sell dots when the price crosses the ZLEMA for quick trade signals.
Summary Table: Displays key data including composite score, volatility, trend direction, current lag setting, and a market narrative.
Uniqueness & Research Basis:
This indicator incorporates an adaptive lag mechanism tied to ATR volatility, making the trendline more responsive during high volatility and smoother during calmer markets. It also blends multiple volume/flow metrics into a single money flow component, delivering a synthesized view of market strength not found in traditional ZLEMA tools.
How to Use:
Identify Trend Direction: Use the ZLEMA color (teal for bullish, maroon for bearish) and composite score to confirm market bias.
Monitor Bands: Price reaching the upper band (red fill) may indicate overbought conditions, while the lower band (green fill) may signal oversold conditions.
Entry/Exit Signals: Watch for the plotted (buy) and (sell) dots as potential trade signals.
Fine-Tune Sensitivity: Adjust ZLEMA length and lag settings in the inputs to better match your trading timeframe and style.
Adaptive Lag: Enable or disable to see how dynamic volatility affects responsiveness.
This indicator is designed for educational purposes only and should be used with additional confirmation and risk management in your trading plan.
Chaikin Oscillator with EMA and AlertsOverview
This indicator plots the classic Chaikin Oscillator along with an EMA overlay to help identify changes in accumulation or distribution momentum. It includes visual markers and built-in alerts for key crossover events such as crossing the zero line and crossing above or below the Chaikin EMA.
Concepts
The Chaikin Oscillator is calculated as the difference between two EMAs of Accumulation/Distribution (A/D) volume. It is used to measure the momentum behind buying and selling pressure. An EMA is applied to the oscillator itself to smooth out signals and provide an additional layer of trend confirmation. Crossovers above or below zero, and above or below the EMA, are interpreted as potential signals of market sentiment shifts.
How to Use the Indicator
Apply the indicator to any chart and select your preferred short, long, and EMA lengths. The script will plot the Chaikin Oscillator in teal and its EMA in red. Triangles and labels will appear on the chart when the oscillator crosses above or below the zero line, or when it crosses its EMA. Green triangles indicate bullish zero-line crossovers, while red triangles indicate bearish ones. Lime and maroon labels signal EMA crossovers. Use these signals to assess momentum shifts and potential entry or exit points.
Interpretation
When the Chaikin Oscillator is above zero and rising, it suggests strong buying pressure. When it is below zero and falling, it suggests strong selling pressure. A crossover above the EMA may indicate an emerging bullish trend, while a crossover below the EMA may suggest increasing bearish momentum. Using both the zero line and EMA crossover together helps filter noise and improves reliability of momentum-based signals.
Notes
The indicator includes four alert conditions that can be enabled in TradingView to notify you of Chaikin Oscillator crossovers. It works across all asset classes and timeframes. This tool is especially useful for identifying momentum shifts ahead of price moves and for confirming volume-based signals in trend continuation or reversal scenarios. Adjust input lengths to suit your trading style or the volatility of the instrument you are analyzing.
Chaikin Oscillator Multi-Timeframe BiasOverview
Chaikin Oscillator Multi-Timeframe Bias is an indicator designed to help traders align with institutional buying and selling activity by analyzing Chaikin Oscillator signals across two timeframes—a higher timeframe (HTF) for trend bias and a lower timeframe (LTF) for timing. This dual-confirmation model helps traders avoid false breakouts and trade in sync with market momentum and accumulation or distribution dynamics.
Core Concepts
The Chaikin Oscillator measures the momentum of accumulation and distribution based on price and volume. Institutional traders typically accumulate slowly and steadily, and the Chaikin Oscillator helps reveal this pattern. Multi-timeframe analysis confirms whether short-term price action supports the longer-term trend. This indicator applies a smoothing EMA to each Chaikin Oscillator to help confirm direction and reduce noise.
How to Use the Indicator
Start by selecting your timeframes. The higher timeframe, set by default to Daily, establishes the broader directional bias. The lower timeframe, defaulted to 30 minutes, identifies short-term momentum confirmation. The indicator displays one of five labels: CALL Bias, CALL Wait, PUT Bias, PUT Wait, or NEUTRAL. CALL Bias means both HTF and LTF are bullish, signaling a potential opportunity for long or call trades. CALL Wait indicates that the HTF is bullish, but the LTF hasn’t confirmed yet. PUT Bias signals bearish alignment in both HTF and LTF, while PUT Wait indicates HTF is bearish and LTF has not yet confirmed. NEUTRAL means there is no alignment between timeframes and directional trades are not advised.
Interpretation
When the Chaikin Oscillator is above zero and also above its EMA, this indicates bullish momentum and accumulation. When the oscillator is below zero and below its EMA, it suggests bearish momentum and distribution. Bias labels identify when both timeframes are aligned for a higher-probability directional setup. When a “Wait” label appears, it means one timeframe has confirmed bias but the other has not, suggesting the trader should monitor closely but delay entry.
Notes
This indicator includes alerts for both CALL and PUT bias confirmation when both timeframes are aligned. It works on all asset classes, including stocks, ETFs, cryptocurrencies, and futures. Timeframes are fully customizable, and users may explore combinations such as 1D and 1H, or 4H and 15M depending on their strategy. For best results, consider pairing this tool with volume, volatility, or price action analysis.
Rolling VWAPsThe Rolling VWAP Indicator is a powerful tool designed for traders seeking to analyze price trends with enhanced precision on TradingView. This indicator calculates and displays up to five distinct Volume Weighted Average Prices (VWAPs) over user-defined time periods, allowing for a customizable rolling window measured in days. By incorporating volume into the price averaging process, the Rolling VWAP provides a more accurate representation of the market's true average price, highlighting key support and resistance levels over multiple timeframes.
CVD Divergence & Volume ProfileThis Pine Script indicator, named "CVD Divergence & Volume Profile," is designed to identify potential trading opportunities by combining Cumulative Volume Delta (CVD) divergence with Volume Profile levels and an optional Simple Moving Average (SMA) trend filter. It plots signals directly on the price chart.
Here's a breakdown of what each component does and how to potentially trade with it:
1. Cumulative Volume Delta (CVD) Divergence
What it does: CVD measures the cumulative difference between buying and selling volume. A rising CVD indicates more buying pressure, while a falling CVD indicates more selling pressure. Divergence occurs when the price action contradicts the CVD's direction, suggesting a potential shift in momentum or trend reversal.
Bearish Divergence: The price makes a higher high, but the CVD makes a lower high (or fails to make a new high). This suggests that despite the price increasing, the underlying buying pressure is weakening.
Bullish Divergence: The price makes a lower low, but the CVD makes a higher low (or fails to make a new low). This suggests that despite the price decreasing, the underlying selling pressure is weakening.
Visualization:
Red triangle pointing down on the chart indicates a Bearish Divergence signal.
Green triangle pointing up on the chart indicates a Bullish Divergence signal.
2. Volume Profile Levels (VAH, VAL, POC)
What it does: The indicator calculates simplified Volume Profile levels over a user-defined vp_range (number of candles). These levels represent areas where significant trading activity has occurred:
VAH (Value Area High): The upper boundary of the "Value Area," where 70% of the volume traded.
VAL (Value Area Low): The lower boundary of the "Value Area," where 70% of the volume traded.
POC (Point of Control): The price level within the vp_range where the most volume was traded.
Significance: These levels often act as significant support and resistance zones.
Visualization:
Orange lines for VAH and VAL.
Yellow line for POC.
Zone Proximity (zone_thresh): The indicator only generates divergence signals if the current close price is within a specified percentage zone_thresh of either VAH, VAL, or POC. This filters signals to areas of high liquidity and potential turning points.
3. Trend Filter (SMA)
What it does: This is an optional filter (use_trend_filter) that uses a Simple Moving Average (sma_period, default 200).
Significance: It helps ensure that divergence signals are traded in alignment with the broader market trend, potentially increasing their reliability.
For long signals (bullish divergence), the price (close) must be above the SMA (indicating an uptrend).
For short signals (bearish divergence), the price (close) must be below the SMA (indicating a downtrend).
Visualization: A blue line on the chart representing the SMA.
How to Trade with It (Potential Strategies)
The indicator aims to provide high-probability entry points by combining multiple confirming factors. Here's how you might interpret and trade the signals:
Identify Divergence: Look for the triangle signals on your chart (red for bearish, green for bullish).
Confirm Proximity to Volume Profile Levels: The signal itself confirms that the price is near a significant Volume Profile level (VAH, VAL, or POC). These are areas where price often reacts.
Bullish Signal (Green Triangle): This suggests buying momentum is returning after a price decline, especially when the price is near VAL or POC, which might act as support.
Bearish Signal (Red Triangle): This suggests selling momentum is increasing after a price rally, especially when the price is near VAH or POC, which might act as resistance.
Check Trend Alignment (SMA Filter):
For a long trade: You would ideally want to see a green triangle (bullish divergence) while the price is above the blue SMA line. This indicates a bullish divergence confirming a potential bounce within an existing uptrend.
For a short trade: You would ideally want to see a red triangle (bearish divergence) while the price is below the blue SMA line. This indicates a bearish divergence confirming a potential rejection within an existing downtrend.
Entry and Exit Considerations:
Entry: Consider entering a trade on the candle where the signal appears, or on the subsequent candle for confirmation.
Stop Loss: For a long trade, a logical stop-loss could be placed below the lowest point of the divergence, or below the VAL/POC if the signal occurred near it. For a short trade, above the highest point of the divergence or VAH/POC.
Take Profit: Targets could be set at the opposite Volume Profile level, previous swing highs/lows, or using a fixed risk-reward ratio.
Example Trading Scenario:
Long Trade: You see a green triangle (bullish divergence) printed on the chart. You notice the price is currently at the VAL (orange line). You check the blue SMA line and confirm that the price is above it (uptrend). This confluence of factors (bullish divergence, support at VAL, and uptrend) provides a strong potential long entry signal. You might enter, place your stop loss just below VAL, and target VAH or the next resistance level.
Short Trade: You see a red triangle (bearish divergence). The price is at the VAH (orange line). The price is also below the blue SMA line (downtrend). This suggests a potential short entry. You might enter, place your stop loss just above VAH, and target VAL or the next support level.
[Kpt-Ahab] Poor Mans Orderflow SimulatorScript Description – Poor Mans Orderflow Simulator
Purpose of the Script
This script simulates a simplified order flow approach ("Poor Man's Orderflow") without access to actual Bid/Ask data. The goal is to detect, quantify, and visualize patterns such as absorption, impulsive moves, and structured re-entry behaviors.
Calculation Logic
Absorption Candles
A candle is classified as "absorption" if:
The ratio of body size to full candle range is below a defined threshold,
Volume is significantly higher than the average of the last N periods,
The candle direction is negative (for long absorption) or positive (for short absorption).
These conditions define a candle with high activity but minimal price movement in the respective direction.
Impulse Candles
A candle is classified as "impulse" if:
The body-to-range ratio is high (indicating a strong directional move),
Volume exceeds the average significantly,
The price closes in the direction of the candle body (bullish or bearish).
Additionally, the average range of previous candles serves as a minimum benchmark for the impulse.
Cluster Detection
A cluster is detected when:
A minimum number of absorption candles is counted within a defined lookback period,
Either the long or short version of the absorption logic is used,
The result is a binary condition: cluster active or inactive.
Entry Signals (Re-entry)
An entry signal is generated when:
One or more absorption candles occurred in the last two bars,
A pullback against the direction of absorption occurs,
The current candle shows a directional move confirmed by a close in the expected direction.
These re-entry signals are evaluated separately for long and short scenarios.
Cluster-Confirmed Signals
A separate signal is generated when a valid re-entry setup occurs while a cluster is active. This represents a combined logic condition.
Alert Logic
The script provides a multi-layer alert framework:
Signal selection (Alertmode):
The user defines which signal type should trigger an alert (e.g. re-entry only, cluster only, combination, or impulse).
Optional filter (Filtermode):
A secondary filter limits alerts to cases where an additional condition (e.g. absorption cluster) is active.
Signal output:
As a simple binary value (+1 / –1) for classic alerts,
Or via an encoded Multibit signal, compatible with other modules in the djmad ecosystem.
These alerts are intended for integration with external systems or for use within platform-native visual or automation features.
Deviation from EMA & VWAPThis indicator displays the real-time percentage deviation of price from both the EMA and VWAP.
🔹 EMA Deviation is shown as a smooth blue line
🟧 VWAP Deviation is shown as an orange histogram
📉 Use it to spot overbought/oversold conditions or sharp impulse moves
🔔 Built-in alerts for extreme deviations
🎯 Fully customizable: EMA length, deviation thresholds, VWAP toggle, and more
Ideal for identifying counter-trend setups and price extremes across all timeframes.
Vol > 1.3 × 50-DMA + Price DirectionThis custom script highlights high-energy sessions where volume is at least 1.3 × the 50-day volume moving average (50-DMA) and instantly tells you whether the market absorbed that participation on strength or weakness:
Green bars — Volume ≥ 1.3 × 50-DMA and Close > Open (bull-confirmed volume spike)
Red bars — Volume ≥ 1.3 × 50-DMA and Close < Open (bear-confirmed volume spike)
Gray bars — Volume below the 1.3-multiplier (normal activity)
An orange line plots the exact 1.3 × 50-DMA threshold so you can visually gauge how far each bar exceeds (or misses) the requirement.
Demand Index (Hybrid Sibbet) by TradeQUODemand Index (Hybrid Sibbet) by TradeQUO \
\Overview\
The Demand Index (DI) was introduced by James Sibbet in the early 1990s to gauge “real” buying versus selling pressure by combining price‐change information with volume intensity. Unlike pure price‐based oscillators (e.g. RSI or MACD), the DI highlights moves backed by above‐average volume—helping traders distinguish genuine demand/supply from false breakouts or low‐liquidity noise.
\Calculation\
\
\ \Step 1: Weighted Price (P)\
For each bar t, compute a weighted price:
```
Pₜ = Hₜ + Lₜ + 2·Cₜ
```
where Hₜ=High, Lₜ=Low, Cₜ=Close of bar t.
Also compute Pₜ₋₁ for the prior bar.
\ \Step 2: Raw Range (R)\
Calculate the two‐bar range:
```
Rₜ = max(Hₜ, Hₜ₋₁) – min(Lₜ, Lₜ₋₁)
```
This Rₜ is used indirectly in the exponential dampener below.
\ \Step 3: Normalize Volume (VolNorm)\
Compute an EMA of volume over n₁ bars (e.g. n₁=13):
```
EMA_Volₜ = EMA(Volume, n₁)ₜ
```
Then
```
VolNormₜ = Volumeₜ / EMA_Volₜ
```
If EMA\_Volₜ ≈ 0, set VolNormₜ to a small default (e.g. 0.0001) to avoid division‐by‐zero.
\ \Step 4: BuyPower vs. SellPower\
Calculate “raw” BuyPowerₜ and SellPowerₜ depending on whether Pₜ > Pₜ₋₁ (bullish) or Pₜ < Pₜ₋₁ (bearish). Use an exponential dampener factor Dₜ to moderate extreme moves when true range is small. Specifically:
• If Pₜ > Pₜ₋₁,
```
BuyPowerₜ = (VolNormₜ) / exp
```
otherwise
```
BuyPowerₜ = VolNormₜ.
```
• If Pₜ < Pₜ₋₁,
```
SellPowerₜ = (VolNormₜ) / exp
```
otherwise
```
SellPowerₜ = VolNormₜ.
```
Here, H₀ and L₀ are the very first bar’s High/Low—used to calibrate the scale of the dampening. If the denominator of the exponential is near zero, substitute a small epsilon (e.g. 1e-10).
\ \Step 5: Smooth Buy/Sell Power\
Apply a short EMA (n₂ bars, typically n₂=2) to each:
```
EMA_Buyₜ = EMA(BuyPower, n₂)ₜ
EMA_Sellₜ = EMA(SellPower, n₂)ₜ
```
\ \Step 6: Raw Demand Index (DI\_raw)\
```
DI_rawₜ = EMA_Buyₜ – EMA_Sellₜ
```
A positive DI\_raw indicates that buying force (normalized by volume) exceeds selling force; a negative value indicates the opposite.
\ \Step 7: Optional EMA Smoothing on DI (DI)\
To reduce choppiness, compute an EMA over DI\_raw (n₃ bars, e.g. n₃ = 1–5):
```
DIₜ = EMA(DI_raw, n₃)ₜ.
```
If n₃ = 1, DI = DI\_raw (no further smoothing).
\
\Interpretation\
\
\ \Crossing Zero Line\
• DI\_raw (or DI) crossing from below to above zero signals that cumulative buying pressure (over the chosen smoothing window) has overcome selling pressure—potential Long signal.
• Crossing from above to below zero signals dominant selling pressure—potential Short signal.
\ \DI\_raw vs. DI (EMA)\
• When DI\_raw > DI (the EMA of DI\_raw), bullish momentum is accelerating.
• When DI\_raw < DI, bullish momentum is weakening (or bearish acceleration).
\ \Divergences\
• If price makes new highs while DI fails to make higher highs (DI\_raw or DI declining), this hints at weakening buying power (“bearish divergence”), possibly preceding a reversal.
• If price makes new lows while DI fails to make lower lows (“bullish divergence”), this may signal waning selling pressure and a potential bounce.
\ \Volume Confirmation\
• A strong price move without a corresponding rise in DI often indicates low‐volume “fake” moves.
• Conversely, a modest price move with a large DI spike suggests true institutional participation—often a more reliable breakout.
\
\Usage Notes & Warnings\
\
\ \Never Use DI in Isolation\
It is a \filter\ and \confirmation\ tool—combine with price‐action (trendlines, support/resistance, candlestick patterns) and risk management (stop‐losses) before executing trades.
\ \Parameter Selection\
• \Vol EMA length (n₁)\: Commonly 13–20 bars. Shorter → more responsive to volume spikes, but noisier.
• \Buy/Sell EMA length (n₂)\: Typically 2 bars for fast smoothing.
• \DI smoothing (n₃)\: Usually 1 (no smoothing) or 3–5 for moderate smoothing. Long DI\_EMA (e.g. 20–50) gives a slower signal.
\ \Market Adaptation\
Works well in liquid futures, indices, and heavily traded stocks. In thinly traded or highly erratic markets, adjust n₁ upward (e.g., 20–30) to reduce noise.
---
\In Summary\
The Demand Index (James Sibbet) uses a three‐stage smoothing (volume → Buy/Sell Power → DI) to reveal true demand/supply imbalance. By combining normalized volume with price change, Sibbet’s DI helps traders identify momentum backed by real participation—filtering out “empty” moves and spotting early divergences. Always confirm DI signals with price action and sound risk controls before trading.
Volume Spike Alert & Overlay"Volume Spike Alert & Overlay" highlights unusually high trading volume on a chart. It calculates whether the current volume exceeds a user-defined percentage above the historical average and triggers an alert if it does. The information is also displayed in a customizable on-screen table.
What It Does
Monitors volume for each bar and compares it to an average over a user-defined lookback period.
Supports multiple smoothing methods (SMA, EMA, WMA, RMA) for calculating the average volume.
Triggers an alert when current volume exceeds the threshold percentage above the average.
Displays a table on the chart with:
Current Volume
Average Volume
Threshold Percentage
Optional empty row for spacing/formatting
How It Works
User Inputs:
lookbackPeriods: Number of bars used to calculate the average volume.
thresholdPercent: % above the average that triggers a volume spike alert.
smoothingType: Type of moving average used for volume calculation.
textColor, bgColor: Formatting for the display table.
tablePositionInput: Where the table appears on the chart (e.g., Bottom Right).
Toggles for showing/hiding parts of the table.
Volume Calculations:
Calculates current bar's volume.
Calculates average volume using the selected smoothing method.
Computes the threshold: avgVol * (1 + thresholdPercent / 100).
Compares current volume to threshold.
Table Display:
Dynamically creates a table with volume stats.
Adds rows based on user preferences.
Alerts:
alertcondition fires when currentVol crosses above the calculated threshold.
Message: "Volume Threshold Exceeded"
Usage Examples
Example 1: Spotting High Activity
Apply the script to a stock like AAPL on a 5-minute chart.
Set lookbackPeriods to 20 and thresholdPercent to 30.
Use EMA for more reactive volume tracking.
When volume spikes more than 30% above the 20-period EMA, an alert triggers.
Example 2: Day Trading Filter
For scalpers, apply it to a 1-minute crypto chart (e.g., BTC/USDT).
Set thresholdPercent to 50 to catch only strong surges.
Position the table at the top left and reduce visible info for a clean layout.
Example 3: Long-Term Context
On a daily chart, use SMA and set lookbackPeriods to 50.
Helps identify breakout moves supported by strong volume.
How this is different from Trading View's Volume indicator:
The standard volume plot from trading view allows users to set a alert when the average line is crossed, but it does not allow you to set a custom percentage at which to trigger an alert. This indicator will allow you to set any percentage you wish to monitor and above that percentage threshold will trigger your alert.
===== ORIGINAL DESCRIPTION =====
Volume Spike Alert & Overlay
This indicator will display the following as an overlay on your chart:
Current volume
Average Volume
Threshold for Alert
Description:
This indicator will display the current bar volume based on the chart time frame,
display the average volume based on selected conditions,
allow user selectable threshold over the average volume to trigger an alert.
Options:
Average lookback period
Smoothing type
Alert Threshold %
Enable / Disable Each Value
Change Text Color
Change Background Color
Change Table location
Add/Remove extra row for placement in top corner
Usage Example:
I use this indicator to alert when the current volume exceeds the average volume by a specified percentage to alert to volume spikes.
Set the threshold to 25% in the settings
Create an alert by clicking on the 3 dots on the right of the indicator title on the chart
When the threshold is exceeded the alert will trigger
Adaptive Volume‐Demand‐Index (AVDI)Demand Index (according to James Sibbet) – Short Description
The Demand Index (DI) was developed by James Sibbet to measure real “buying” vs. “selling” strength (Demand vs. Supply) using price and volume data. It is not a standalone trading signal, but rather a filter and trend confirmer that should always be used together with chart structure and additional indicators.
---
\ 1. Calculation Basis\
1. Volume Normalization
$$
\text{normVol}_t
= \frac{\text{Volume}_t}{\mathrm{EMA}(\text{Volume},\,n_{\text{Vol}})_t}
\quad(\text{e.g., }n_{\text{Vol}} = 13)
$$
This smooths out extremely high volume spikes and compares them to the average (≈ 1 means “average volume”).
2. Price Factor
$$
\text{priceFactor}_t
= \frac{\text{Close}_t - \text{Open}_t}{\text{Open}_t}.
$$
Positive values for bullish bars, negative for bearish bars.
3. Component per Bar
$$
\text{component}_t
= \text{normVol}_t \times \text{priceFactor}_t.
$$
If volume is above average (> 1) and the price rises slightly, this yields a noticeably positive value; conversely if the price falls.
4. Raw DI (Rolling Sum)
Over a window of \$w\$ bars (e.g., 20):
$$
\text{RawDI}_t
= \sum_{i=0}^{w-1} \text{component}_{\,t-i}.
$$
Alternatively, recursively for \$t \ge w\$:
$$
\text{RawDI}_t
= \text{RawDI}_{t-1}
+ \text{component}_t
- \text{component}_{\,t-w}.
$$
5. Optional EMA Smoothing
An EMA over RawDI (e.g., \$n\_{\text{DI}} = 50\$) reduces short-term fluctuations and highlights medium-term trends:
$$
\text{EMA\_DI}_t
= \mathrm{EMA}(\text{RawDI},\,n_{\text{DI}})_t.
$$
6.Zero Line
Handy guideline:
RawDI > 0: Accumulated buying power dominates.
RawDI < 0: Accumulated selling power dominates.
2. Interpretation & Application
Crossing Zero
RawDI above zero → Indication of increasing buying pressure (potential long signal).
RawDI below zero → Indication of increasing selling pressure (potential short signal).
Not to be used alone for entry—always confirm with price action.
RawDI vs. EMA_DI
RawDI > EMA\_DI → Acceleration of demand.
RawDI < EMA\_DI → Weakening of demand.
Divergences
Price makes a new high, RawDI does not make a higher high → potential weakness in the uptrend.
Price makes a new low, RawDI does not make a lower low → potential exhaustion of the downtrend.
3. Typical Signals (for Beginners)
\ 1. Long Setup\
RawDI crosses zero from below,
RawDI > EMA\_DI (acceleration),
Price closes above a short-term swing high or resistance.
Stop-Loss: just below the last swing low, Take-Profit/Trailing: on reversal signals or fixed R\:R.
2. Short Setup
RawDI crosses zero from above,
RawDI < EMA\_DI (increased selling pressure),
Price closes below a short-term swing low or support.
Stop-Loss: just above the last swing high.
---
4. Notes and Parameters
Recommended Values (Beginners):
Volume EMA (n₍Vol₎) = 13
RawDI window (w) = 20
EMA over DI (n₍DI₎) = 50 (medium-term) or 1 (no smoothing)
Attention:\
NEVER use in isolation. Always in combination with price action analysis (trendlines, support/resistance, candlestick patterns).
Especially during volatile news phases, RawDI can fluctuate strongly → EMA\_DI helps to avoid false signals.
---
Conclusion The Demand Index by James Sibbet is a powerful filter to assess price movements by their volume backing. It shows whether a rally is truly driven by demand or merely a short-term volume anomaly. In combination with classic chart analysis and risk management, it helps to identify robust entry points and potential trend reversals earlier.
Rolling VWAP with 9:15AM Alert✅ Short Description:
A dynamic Rolling VWAP indicator with deviation bands, real-time Buy/Sell alerts, and a special 9:15 AM IST first candle signal for Indian markets.
✅ Long Description (to publish):
Rolling VWAP with Buy/Sell Alerts & 9:15 AM Candle Signal
Published by: Vijay Bhilwade
📧 Contact: vijshr@yahoo.co.in
🔍 Overview:
This indicator calculates a Rolling Volume Weighted Average Price (VWAP) over a dynamically adjustable window based on chart timeframe or custom input. It includes Buy/Sell crossover alerts, customizable standard deviation bands, and a special first candle signal at 9:15 AM IST — highly relevant for Indian markets.
📌 Key Features:
✅ Rolling VWAP based on price × volume in a sliding window
🎯 Buy Signal: When price crosses above VWAP
🔻 Sell Signal: When price crosses below VWAP
📊 Standard Deviation Bands (optional: 1x, 2x, 3x)
🕒 First Candle Alert at 9:15 AM IST for Indian market open
🔔 Alerts supported for all signal types
🛠️ How to Use:
Add the indicator to any chart (1-minute or 5-minute resolution recommended)
Optional: Customize the VWAP window by enabling “Use a fixed time period”
Configure standard deviation bands for volatility tracking
Enable alerts:
“Buy Alert” / “Sell Alert”
“9:15 Buy Alert” / “9:15 Sell Alert” (fires only on the first market candle at 9:15 AM IST)
🇮🇳 Made for Indian Markets
This script includes a dedicated check for the first candle at 9:15 AM IST, used by professional traders in India to plan high-probability trades.
Low Volatility Breakout Detector)This indicator is designed to visually identify potential breakouts from consolidation during periods of low volatility. It is based on classic Bollinger Bands and relative volume. Its primary purpose is not to generate buy or sell signals but to assist in spotting moments when the market exits a stagnation phase.
Arrows appear only when the price breaks above the upper or below the lower Bollinger Band, the band width is below a specified threshold (expressed in percentage), and volume is above its moving average multiplied by a chosen multiplier (default is 1). This combination may indicate the start of a new impulse following a period of low activity.
The chart background during low volatility is colored based on volume strength—the lower the volume during stagnation, the less transparent the background. This helps quickly spot unusual market behavior under seemingly calm conditions. The background opacity is dynamically scaled relative to the range of volumes over a selected period, which can be set manually (default is 50 bars).
The indicator works best in classic horizontal consolidations, where price moves within a narrow range and volatility and volume clearly decline. It is not intended to detect breakouts from formations such as triangles or wedges, which may not always exhibit low volatility relative to Bollinger Bands.
Settings allow you to adjust:
Bollinger Band length and multiplier,
Volatility threshold (in %),
Background and arrow colors,
Volume moving average length and multiplier,
Bar range used for background opacity scaling.
Note: For reliable results, it’s advisable to tailor the volatility threshold and volume/background ranges to the specific market and timeframe, as different instruments have distinct dynamics. If you want the background color to closely match the color of breakout arrows, you should set the same volume analysis period as the volume moving average length.
Additional note: To achieve a cleaner chart and focus solely on breakout signals, you can disable the background and Bollinger Bands display in the settings. This will leave only the breakout arrows visible on the chart, providing a clearer and more readable market picture.
Golden Triangle Strategy (1H, Setup 1 & 2)🔺 Golden Triangle Strategy – Setup 1 & 2 with Dynamic Trailing Stop (Optimized for 1H Chart)
### 📘 Strategy Summary
This strategy blends **technical pattern recognition** with **volume confirmation** and **dynamic risk management** to capture high-probability breakouts. It features two independent entry setups . More details can be found at thepatternsite.com
I have added intelligent trailing stop that **tightens once a profit threshold is reached**. Please note that this is not mentioned in GoldenTriangle strategy. I just added to capture the profits.
### ✅ Entry Setups
#### **Setup 1 – Golden Triangle Breakout**
* Detects **triangle formations** using recent pivot highs and lows.
* A **bullish breakout** is confirmed when:
* Price **closes above the triangle top**, and
* Price is also **above the 50-period SMA**.
* Entry: At breakout candle close.
* Ideal for early momentum trades after consolidation.
#### **Setup 2 – Price + Volume Confirmation**
* Based on **mean reversion followed by volume surge**:
* Price drops **below the 50 SMA**, then closes **back above it**.
* Requires at least one **"up day"** (current close > previous close).
* Volume must be:
* Above its 50-SMA, **and**
* Higher than each of the **previous 4 days**.
* Entry: At the close of volume-confirmation day.
* Useful when triangle patterns are not clear, but accumulation is strong.
---
### 📈 Entry Logic Recap
| Condition | Setup 1 | Setup 2 |
| ------------------ | --------------------- | --------------------------------------- |
| Pattern | Triangle Breakout | SMA Reclaim + Volume Surge |
| SMA Filter | Close > 50 SMA | Price drops < 50 SMA, then closes above |
| Volume Requirement | Not Required | > Volume SMA + > last 4 bars |
| Entry Trigger | Breakout candle close | After volume confirmation |
---
### 🚪 Exit Strategy
#### 🔁 **Trailing Stop Loss (TSL)**
* **Initial stop:** 10% below the **highest price reached** after entry.
* **Tightening rule:**
* When profit reaches **10%**, the trailing stop is **tightened to 5%**.
* This keeps you in the trade while locking in more profit as the trade moves in your favor.
#### 🔻 **Manual Close**
* If the price drops below the trailing stop, the position is automatically closed using `strategy.close()`.
---
### 🌈 Visual Aids & Additions
* Green background shading while in a trade.
* Real-time dashboard showing:
* SMA values
* Entry signals
* Plots for:
* Dynamic trailing stop
* Weekly Fibonacci R3 and S3 levels as outer support/resistance zones.
---
### 🧠 Ideal Use Cases
* Works well on **1-hour charts** for intraday to short swing trades.
* Especially effective in **sideways-to-bullish markets**.
* Helps avoid false breakouts by using SMA and volume filters.
---
Tip: I also showed weekly R3 on the chart. When the price touches at this level lock your profits. You Dont have to wait until price hits trailing stop loss.
warning : This strategy is published educational purposes only.
VWAP 14 & EMA 8 RibbonIndicator that shows when 8 EMA crosses the VWAP 14. I have found this cross to be very bullish on the weekly timeframe. The VWAP 14 on its own serves as a good support and resistance as well. Very effective on the daily as well and even the 4 hour timeframe.
Z-Score Adaptive Oscillator SuiteZ-Score Adaptive Oscillator Suite
This indicator combines the Relative Strength Index (RSI) Money Flow Index (MFI) Chande Momentum Oscillator (CMO) and the Commodity Channel Index (CCI) with Z-score adaptive mechanism to provide a dynamic and adaptive trading tool.
Key Features:
Oscillators (RSI, MFI, CMO, CCI)
Calculates the oscillators using a customizable period and source.
Helps identify overbought or oversold conditions based on the oscillator average values.
Z-Score Adaptivity:
Applies Z-Score calculation to the Oscillators values over a user-defined lookback period.
Filters market regimes into low or high Z-score conditions based on the Z-score crossing above the user input threshold
Regime-Based Signal Generation:
In high Z-Score markets: Signals are generated using a simple cross of the oscillator midline-levels.
In low Z-Score markets: Signals are based on user-defined thresholds for long and short conditions.
Usage:
The coloring automatically adjusts to market conditions, and acts as potential buy/sell signals.
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute investment advice. Trading involves risk and may result in financial loss. Always perform your own research and consult with a qualified financial advisor before making any trading decisions.
Two Candle Theory (Filtered) - Labels & ColorsOverview
This Pine Script classifies each candle into one of nine sentiment categories based on how the candle closes within its own range and in relation to the previous candle’s high and low. It optionally filters the strongest bullish and bearish signals based on volume spikes.
The script is designed to help traders visually interpret market sentiment through configurable labels and candle colors.
⸻
Classification Logic
Each candle is assessed using two metrics:
1. Close Position – where the candle closes within its own high-low range (High, Mid, Low).
2. Close Comparison – how the current close compares to the previous candle’s high and low (Bull, Bear, or Range).
Based on this, a short label is assigned:
• Bullish Bias: Strongest (SBu), Moderate (MBu), Weak (WBu), Slight (SlB)
• Neutral: Neutral (N)
• Bearish Bias: Slight (SlS), Weak (WBa), Moderate (MBa), Strongest (SBa)
⸻
Volume Filter
A volume spike filter can be applied to the strongest signals:
• SBu and SBa are only shown if volume is significantly higher than the average (SMA × threshold).
• The filter is optional and user-configurable.
⸻
Display Options
Users can control:
• Whether to show labels, bar colors, or both.
• Which of the nine label types are visible.
• Custom colors for each label and corresponding bar.
⸻
Visual Output
• Labels appear above or below candles depending on bullish or bearish classification.
• Bar colors reflect sentiment for quicker visual scanning.
⸻
Use Case
Ideal for identifying momentum shifts, validating trade entries, and highlighting candles that break out of previous ranges with conviction and/or volume.
⸻
Summary
This script simplifies price action by translating each candle into an interpretable sentiment label and color. With optional volume filtering and full display customization, it offers a practical tool for discretionary and systematic traders alike.